New board - EVB SoCrates based on Altera Cyclone 5
PATCH v2 1/1 New board - EVB SoCrates based on Altera Cyclone 5
From: Micha? ?yszczek <[email protected]>
Configuration contains:
- building uboot (and spl) from altera's github
- booting from SD card
- working ethernet, serial, i2c, fpga_manager
- minimal rootfs with busybox
- ready to flash SD card image
---
Changes v1 -> v2:
(all changes suggested by Thomas Petazzoni)
- merged boot.scr and boot-env into single boot-env
- removed create_sdcard.sh in favor of more complete genimage.cfg
- changed size of vfat boot partition to more sane value
- removed custom kernel defconfig and used one from kernel source tree
- removed custom dts and used one from kernel source tree
- corrected spelling in readme.txt
- droped some custom config of buildroot (now using default ones)
- added missing tools to create sdcard.img
- removed binary SPL (all compiled from source now)
board/altera/socrates_cyclone5/boot-env.txt | 8 ++++ board/altera/socrates_cyclone5/genimage.cfg | 58 +++++++++++++++++++++++++++++ board/altera/socrates_cyclone5/readme.txt | 52 ++++++++++++++++++++++++++ configs/socrates_cyclone5_defconfig | 32 ++++++++++++++++ 4 files changed, 150 insertions(+) create mode 100644 board/altera/socrates_cyclone5/boot-env.txt create mode 100644 board/altera/socrates_cyclone5/genimage.cfg create mode 100644 board/altera/socrates_cyclone5/readme.txt create mode 100644 configs/socrates_cyclone5_defconfig
board/altera/socrates_cyclone5/boot-env.txt new file +8 -0
@@ -0,0 +1,8 @@ +linux_load_address=0x100000 +linux_dtb_load_address=0x100 +linux_dtb=socfpga_cyclone5_socrates.dtb +linux_load=mmc rescan; fatload mmc 0:1 ${linux_load_address} zImage; fatload mmc 0:1 ${linux_dtb_load_address} ${linux_dtb} +bootargs=console=ttyS0,115200 root=/dev/mmcblk0p3 ro rootwait +source_env=fatload mmc 0:1 0x2000000 boot.scr; source 0x2000000 +bootcmd=run linux_load; bootz ${linux_load_address} - ${linux_dtb_load_address} +bootdelay=1
board/altera/socrates_cyclone5/genimage.cfg new file +58 -0
58 lines not on this page · raw message
board/altera/socrates_cyclone5/readme.txt new file +52 -0
52 lines not on this page · raw message
configs/socrates_cyclone5_defconfig new file +32 -0
@@ -0,0 +1,32 @@ +BR2_arm=y +BR2_cortex_a9=y +BR2_ARM_ENABLE_NEON=y +BR2_ARM_ENABLE_VFP=y +BR2_ARM_FPU_NEON=y +BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1=y +BR2_ROOTFS_POST_IMAGE_SCRIPT="support/scripts/genimage.sh" +BR2_ROOTFS_POST_SCRIPT_ARGS="-c board/altera/socrates_cyclone5/genimage.cfg" +BR2_LINUX_KERNEL=y +BR2_LINUX_KERNEL_CUSTOM_GIT=y +BR2_LINUX_KERNEL_CUSTOM_REPO_URL="https://github.com/altera-opensource/linux-socfpga.git" +BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION="rel_socfpga-4.1.33-ltsi_17.07.02_pr" +BR2_LINUX_KERNEL_DEFCONFIG="socfpga" +BR2_LINUX_KERNEL_DTS_SUPPORT=y +BR2_LINUX_KERNEL_INTREE_DTS_NAME="socfpga_cyclone5_socrates" +BR2_TARGET_ROOTFS_EXT2=y +BR2_TARGET_ROOTFS_EXT2_4=y +BR2_TARGET_UBOOT=y +BR2_TARGET_UBOOT_BUILD_SYSTEM_KCONFIG=y +BR2_TARGET_UBOOT_CUSTOM_GIT=y +BR2_TARGET_UBOOT_CUSTOM_REPO_URL="https://github.com/altera-opensource/u-boot-socfpga.git" +BR2_TARGET_UBOOT_CUSTOM_REPO_VERSION="v2017.07" +BR2_TARGET_UBOOT_BOARD_DEFCONFIG="socfpga_socrates" +BR2_TARGET_UBOOT_FORMAT_IMG=y +BR2_TARGET_UBOOT_SPL=y +BR2_TARGET_UBOOT_ALTERA_SOCFPGA_IMAGE_CRC=y +BR2_TARGET_UBOOT_ENVIMAGE=y +BR2_TARGET_UBOOT_ENVIMAGE_SOURCE="board/altera/socrates_cyclone5/boot-env.txt" +BR2_TARGET_UBOOT_ENVIMAGE_SIZE="8192" +BR2_PACKAGE_HOST_DOSFSTOOLS=y +BR2_PACKAGE_HOST_GENIMAGE=y +BR2_PACKAGE_HOST_MTOOLS=y
--
2.10.2
PATCH v2 1/1 New board - EVB SoCrates based on Altera Cyclone 5
Hello,
Quoted 11 lines · Micha? ?yszczek
From: Micha? ?yszczek <[email protected]>
Configuration contains:
- building uboot (and spl) from altera's github
- booting from SD card
- working ethernet, serial, i2c,fpga_manager
- minimal rootfs with busybox
- ready to flash SD card imageSigned-off-by Micha? ?yszczek <[email protected]>
Quoted 12 lines
---
Changes v1 -> v2:
(all changes suggested by Thomas Petazzoni)
- merged boot.scr and boot-env into single boot-env
- removedcreate_sdcard.shin favor of more complete genimage.cfg
- changed size of vfat boot partition to more sane value
- removed custom kernel defconfig and used one from kernel source tree
- removed custom dts and used one from kernel source tree
- corrected spelling in readme.txt
- droped some custom config of buildroot (now using default ones)
- added missing tools to create sdcard.img
- removed binary SPL (all compiled from source now)
I've applied, with the following changes:
[Thomas:
- add entry to DEVELOPERS file
- refresh .gitlab-ci.yml
- fix commit title]
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com