summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--conf/machine/arria10.conf29
-rw-r--r--wic/sdimage-arria10.wks8
2 files changed, 35 insertions, 2 deletions
diff --git a/conf/machine/arria10.conf b/conf/machine/arria10.conf
index d5f3427..b7313ae 100644
--- a/conf/machine/arria10.conf
+++ b/conf/machine/arria10.conf
@@ -4,7 +4,10 @@
4 4
5require conf/machine/include/socfpga.inc 5require conf/machine/include/socfpga.inc
6 6
7PREFERRED_VERSION_u-boot-socfpga ?= "v2014.10%" 7PREFERRED_VERSION_u-boot-socfpga ?= "v2019.07%"
8
9SPL_BINARY = "u-boot-with-spl.sfp"
10UBOOT_BINARY = "u-boot-dtb.img"
8 11
9UBOOT_CONFIG ??= "arria10-socdk" 12UBOOT_CONFIG ??= "arria10-socdk"
10 13
@@ -18,5 +21,27 @@ KMACHINE = "arria10"
18KERNEL_DEVICETREE ?= "\ 21KERNEL_DEVICETREE ?= "\
19 socfpga_arria10_socdk_sdmmc.dtb \ 22 socfpga_arria10_socdk_sdmmc.dtb \
20 socfpga_arria10_socdk_qspi.dtb \ 23 socfpga_arria10_socdk_qspi.dtb \
21 socfpga_arria10_socdk_nand.dts \ 24 socfpga_arria10_socdk_nand.dtb \
22 " 25 "
26
27SERIAL_CONSOLES ?= "115200;ttyS0"
28
29UBOOT_EXTLINUX ?= "1"
30UBOOT_EXTLINUX_LABELS ?= "default"
31UBOOT_EXTLINUX_DEFAULT_LABEL ?= "Arria10 SOCDK SDMMC"
32
33UBOOT_EXTLINUX_MENU_DESCRIPTION_default ?= "Arria10 SOCDK SDMMC"
34UBOOT_EXTLINUX_KERNEL_IMAGE_default ?= "../${KERNEL_IMAGETYPE}"
35UBOOT_EXTLINUX_FDT_default ?= "../socfpga_arria10_socdk_sdmmc.dtb"
36UBOOT_EXTLINUX_KERNEL_ARGS_default ?= "rootwait rw earlycon"
37UBOOT_EXTLINUX_ROOT_default ?= "root=/dev/mmcblk0p3"
38
39IMAGE_BOOT_FILES ?= " \
40 ${KERNEL_DEVICETREE} \
41 ${KERNEL_IMAGETYPE} \
42 ${UBOOT_BINARY} \
43 extlinux.conf;extlinux/extlinux.conf \
44 "
45
46WKS_FILE ?= "sdimage-arria10.wks"
47IMAGE_FSTYPES +="wic"
diff --git a/wic/sdimage-arria10.wks b/wic/sdimage-arria10.wks
new file mode 100644
index 0000000..6ab3284
--- /dev/null
+++ b/wic/sdimage-arria10.wks
@@ -0,0 +1,8 @@
1# short-description: Create an SD card image for the Arria 10 SoC.
2# long-description: Create an SD card image for the Arria 10 SoC.
3# Boot files are located in the first vfat partition and u-Boot is located in
4# the third partition.
5
6part --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4 --size 50M
7part --source rawcopy --sourceparams="file=u-boot-with-spl.sfp" --ondisk mmcblk --system-id=a2 --align 4 --fixed-size 10M
8part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4