diff options
-rw-r--r-- | conf/machine/arria10.conf | 29 | ||||
-rw-r--r-- | wic/sdimage-arria10.wks | 8 |
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 | ||
5 | require conf/machine/include/socfpga.inc | 5 | require conf/machine/include/socfpga.inc |
6 | 6 | ||
7 | PREFERRED_VERSION_u-boot-socfpga ?= "v2014.10%" | 7 | PREFERRED_VERSION_u-boot-socfpga ?= "v2019.07%" |
8 | |||
9 | SPL_BINARY = "u-boot-with-spl.sfp" | ||
10 | UBOOT_BINARY = "u-boot-dtb.img" | ||
8 | 11 | ||
9 | UBOOT_CONFIG ??= "arria10-socdk" | 12 | UBOOT_CONFIG ??= "arria10-socdk" |
10 | 13 | ||
@@ -18,5 +21,27 @@ KMACHINE = "arria10" | |||
18 | KERNEL_DEVICETREE ?= "\ | 21 | KERNEL_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 | |||
27 | SERIAL_CONSOLES ?= "115200;ttyS0" | ||
28 | |||
29 | UBOOT_EXTLINUX ?= "1" | ||
30 | UBOOT_EXTLINUX_LABELS ?= "default" | ||
31 | UBOOT_EXTLINUX_DEFAULT_LABEL ?= "Arria10 SOCDK SDMMC" | ||
32 | |||
33 | UBOOT_EXTLINUX_MENU_DESCRIPTION_default ?= "Arria10 SOCDK SDMMC" | ||
34 | UBOOT_EXTLINUX_KERNEL_IMAGE_default ?= "../${KERNEL_IMAGETYPE}" | ||
35 | UBOOT_EXTLINUX_FDT_default ?= "../socfpga_arria10_socdk_sdmmc.dtb" | ||
36 | UBOOT_EXTLINUX_KERNEL_ARGS_default ?= "rootwait rw earlycon" | ||
37 | UBOOT_EXTLINUX_ROOT_default ?= "root=/dev/mmcblk0p3" | ||
38 | |||
39 | IMAGE_BOOT_FILES ?= " \ | ||
40 | ${KERNEL_DEVICETREE} \ | ||
41 | ${KERNEL_IMAGETYPE} \ | ||
42 | ${UBOOT_BINARY} \ | ||
43 | extlinux.conf;extlinux/extlinux.conf \ | ||
44 | " | ||
45 | |||
46 | WKS_FILE ?= "sdimage-arria10.wks" | ||
47 | IMAGE_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 | |||
6 | part --source bootimg-partition --ondisk mmcblk --fstype=vfat --label boot --active --align 4 --size 50M | ||
7 | part --source rawcopy --sourceparams="file=u-boot-with-spl.sfp" --ondisk mmcblk --system-id=a2 --align 4 --fixed-size 10M | ||
8 | part / --source rootfs --ondisk mmcblk --fstype=ext4 --label root --align 4 | ||