aboutsummaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorGravatar Michał Łyszczek <michal.lyszczek@bofc.pl>2017-08-02 20:03:02 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-08-02 21:45:26 +0200
commitf82bd2c9dfa426204108b211785ba9faf1645c9c (patch)
tree9eeb602a646e2bd9e0d82fb73f99c7da90ce6dd1 /board
parent33ac54cee2f0704aa6dfccbfd235f88098c1c6dc (diff)
downloadbuildroot-f82bd2c9dfa426204108b211785ba9faf1645c9c.tar.gz
buildroot-f82bd2c9dfa426204108b211785ba9faf1645c9c.tar.bz2
configs/socrates_cyclone5: new defconfig
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 Signed-off-by: Michał Łyszczek <michal.lyszczek@bofc.pl> [Thomas: - add entry to DEVELOPERS file - refresh .gitlab-ci.yml - fix commit title] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'board')
-rw-r--r--board/altera/socrates_cyclone5/boot-env.txt8
-rw-r--r--board/altera/socrates_cyclone5/genimage.cfg58
-rw-r--r--board/altera/socrates_cyclone5/readme.txt52
3 files changed, 118 insertions, 0 deletions
diff --git a/board/altera/socrates_cyclone5/boot-env.txt b/board/altera/socrates_cyclone5/boot-env.txt
new file mode 100644
index 0000000000..ed5b61386c
--- /dev/null
+++ b/board/altera/socrates_cyclone5/boot-env.txt
@@ -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
diff --git a/board/altera/socrates_cyclone5/genimage.cfg b/board/altera/socrates_cyclone5/genimage.cfg
new file mode 100644
index 0000000000..63fef8ba47
--- /dev/null
+++ b/board/altera/socrates_cyclone5/genimage.cfg
@@ -0,0 +1,58 @@
+image boot.vfat {
+ vfat {
+ files = {
+ "zImage",
+ "socfpga_cyclone5_socrates.dtb"
+ }
+ }
+ size = 8M
+}
+
+image uboot.img {
+ hdimage {
+ partition-table = "no"
+ }
+
+ partition spl {
+ in-partition-table = "no"
+ image = "u-boot-spl.bin.crc"
+ offset = 0
+ size = 64k
+ }
+
+ partition uboot-full {
+ in-partition-table = "no"
+ image = "u-boot.img"
+ offset = 256k
+ }
+
+ size = 1M
+}
+
+image sdcard.img {
+ hdimage {
+ }
+
+ partition uboot-env {
+ in-partition-table = "no"
+ image = "uboot-env.bin"
+ offset = 17408 # 512 * 34 -> just after gpt
+ }
+
+ partition boot {
+ partition-type = 0xc
+ bootable = "true"
+ image = "boot.vfat"
+ }
+
+ partition uboot {
+ partition-type = 0xa2
+ image = "uboot.img"
+ }
+
+ partition rootfs {
+ partition-type = 0x83
+ image = "rootfs.ext2"
+ size = 500M
+ }
+}
diff --git a/board/altera/socrates_cyclone5/readme.txt b/board/altera/socrates_cyclone5/readme.txt
new file mode 100644
index 0000000000..4e78feef11
--- /dev/null
+++ b/board/altera/socrates_cyclone5/readme.txt
@@ -0,0 +1,52 @@
+EBV SoCrates Evaluation Board
+
+Intro
+=====
+
+More information about this board can be found here:
+https://rocketboards.org/foswiki/Documentation/EBVSoCratesEvaluationBoard
+
+Build
+=====
+
+First, load socrates config for buildroot
+
+ make socrates_cyclone5_defconfig
+
+Build everything
+
+ make
+
+Following files will be generated in output/images
+
+.
+├── boot.vfat
+├── rootfs.ext2
+├── rootfs.ext4 -> rootfs.ext2
+├── rootfs.tar
+├── sdcard.img
+├── socfpga_cyclone5_socrates.dtb
+├── u-boot-spl.bin
+├── u-boot-spl.bin.crc
+├── u-boot.bin
+├── u-boot.img
+├── uboot-env.bin
+├── uboot.img
+└── zImage
+
+
+Creating bootable SD card
+=========================
+
+Simply invoke
+
+dd if=output/images/sdcard.img of=/dev/sdX
+
+Where X is your SD card device (not partition)
+
+Booting
+=======
+
+Pins 6:8 on P18 selector is used to determine boot device. To boot socrates from
+sdcard set these pins to value 0x5 (101b). Remaining pins are used to determine
+how to configure FPGA and are not associated with booting into Linux kernel.