diff options
-rw-r--r-- | conf/machine/include/qoriq-base.inc | 23 | ||||
-rw-r--r-- | conf/machine/ls1043ardb.conf | 2 | ||||
-rw-r--r-- | conf/machine/ls1046afrwy.conf | 2 | ||||
-rw-r--r-- | conf/machine/ls1046ardb.conf | 2 | ||||
-rw-r--r-- | wic/ls104x-uboot-bootpart.wks.in | 21 |
5 files changed, 50 insertions, 0 deletions
diff --git a/conf/machine/include/qoriq-base.inc b/conf/machine/include/qoriq-base.inc index e482b857..92baae74 100644 --- a/conf/machine/include/qoriq-base.inc +++ b/conf/machine/include/qoriq-base.inc | |||
@@ -11,6 +11,29 @@ PREFERRED_VERSION_testfloat = "2a" | |||
11 | SOC_DEFAULT_IMAGE_FSTYPES = "tar.gz ext2.gz.u-boot ext2.gz" | 11 | SOC_DEFAULT_IMAGE_FSTYPES = "tar.gz ext2.gz.u-boot ext2.gz" |
12 | IMAGE_FSTYPES ?= "${SOC_DEFAULT_IMAGE_FSTYPES}" | 12 | IMAGE_FSTYPES ?= "${SOC_DEFAULT_IMAGE_FSTYPES}" |
13 | 13 | ||
14 | # Composite Image Layout (in KBytes) | ||
15 | IMAGE_OFFSET_PBL ?= "4" | ||
16 | IMAGE_OFFSET_FIP ?= "1024" | ||
17 | IMAGE_OFFSET_FMAN_UCODE ?= "9216" | ||
18 | |||
19 | # Composite Image Filenames | ||
20 | IMAGE_FILE_PBL_SD ?= "atf/bl2_sd.pbl" | ||
21 | IMAGE_FILE_FIP_UBOOT ?= "atf/fip_uboot.bin" | ||
22 | |||
23 | # Do not update fstab file when using wic images | ||
24 | WIC_CREATE_EXTRA_ARGS ?= "--no-fstab-update" | ||
25 | |||
26 | IMAGE_BOOT_FILES ?= " \ | ||
27 | ${KERNEL_IMAGETYPE} \ | ||
28 | *.dtb \ | ||
29 | " | ||
30 | |||
31 | SOC_DEFAULT_WKS_FILE ?= "" | ||
32 | SOC_DEFAULT_WKS_FILE_ls1043a ?= "ls104x-uboot-bootpart.wks.in" | ||
33 | SOC_DEFAULT_WKS_FILE_ls1046a ?= "ls104x-uboot-bootpart.wks.in" | ||
34 | |||
35 | WKS_FILE ?= "${SOC_DEFAULT_WKS_FILE}" | ||
36 | |||
14 | MACHINE_FEATURES ?= "pci ext2 ext3 serial" | 37 | MACHINE_FEATURES ?= "pci ext2 ext3 serial" |
15 | MACHINE_EXTRA_RRECOMMENDS += "udev-extraconf udev-rules-qoriq kernel-modules" | 38 | MACHINE_EXTRA_RRECOMMENDS += "udev-extraconf udev-rules-qoriq kernel-modules" |
16 | 39 | ||
diff --git a/conf/machine/ls1043ardb.conf b/conf/machine/ls1043ardb.conf index 369abdcf..3dd572f4 100644 --- a/conf/machine/ls1043ardb.conf +++ b/conf/machine/ls1043ardb.conf | |||
@@ -40,5 +40,7 @@ RCWSD ?= "RR_FQPP_1455/rcw_1600_sdboot" | |||
40 | RCWNAND ?= "RR_FQPP_1455/rcw_1600_nandboot" | 40 | RCWNAND ?= "RR_FQPP_1455/rcw_1600_nandboot" |
41 | 41 | ||
42 | QE_UCODE = "iram_Type_A_LS1021a_r1.0.bin" | 42 | QE_UCODE = "iram_Type_A_LS1021a_r1.0.bin" |
43 | FMAN_UCODE ?= "fsl_fman_ucode_ls1043_r1.1_106_4_18.bin" | ||
44 | |||
43 | EXTRA_IMAGEDEPENDS += "fm-ucode rcw qe-ucode uefi qoriq-atf ls2-phy" | 45 | EXTRA_IMAGEDEPENDS += "fm-ucode rcw qe-ucode uefi qoriq-atf ls2-phy" |
44 | USE_VT = "0" | 46 | USE_VT = "0" |
diff --git a/conf/machine/ls1046afrwy.conf b/conf/machine/ls1046afrwy.conf index f6854a0c..6e42ef37 100644 --- a/conf/machine/ls1046afrwy.conf +++ b/conf/machine/ls1046afrwy.conf | |||
@@ -37,5 +37,7 @@ SERIAL_CONSOLES_CHECK ?= "${SERIAL_CONSOLES}" | |||
37 | RCWQSPI ?= "NN_NNQNNPNP_3040_0506/rcw_1600_qspiboot" | 37 | RCWQSPI ?= "NN_NNQNNPNP_3040_0506/rcw_1600_qspiboot" |
38 | RCWSD ?= "NN_NNQNNPNP_3040_0506/rcw_1600_sdboot" | 38 | RCWSD ?= "NN_NNQNNPNP_3040_0506/rcw_1600_sdboot" |
39 | 39 | ||
40 | FMAN_UCODE ?= "fsl_fman_ucode_ls1046_r1.0_106_4_18.bin" | ||
41 | |||
40 | EXTRA_IMAGEDEPENDS += "fm-ucode rcw qoriq-atf ls2-phy qe-ucode" | 42 | EXTRA_IMAGEDEPENDS += "fm-ucode rcw qoriq-atf ls2-phy qe-ucode" |
41 | USE_VT = "0" | 43 | USE_VT = "0" |
diff --git a/conf/machine/ls1046ardb.conf b/conf/machine/ls1046ardb.conf index 64f26792..cbea2432 100644 --- a/conf/machine/ls1046ardb.conf +++ b/conf/machine/ls1046ardb.conf | |||
@@ -40,5 +40,7 @@ UEFI_QSPIBOOT ?= "LS1046ARDB_EFI_QSPIBOOT.fd" | |||
40 | RCWQSPI ?= "RR_FFSSPPPH_1133_5559/rcw_1800_qspiboot" | 40 | RCWQSPI ?= "RR_FFSSPPPH_1133_5559/rcw_1800_qspiboot" |
41 | RCWSD ?= "RR_FFSSPPPH_1133_5559/rcw_1800_sdboot" | 41 | RCWSD ?= "RR_FFSSPPPH_1133_5559/rcw_1800_sdboot" |
42 | 42 | ||
43 | FMAN_UCODE ?= "fsl_fman_ucode_ls1046_r1.0_106_4_18.bin" | ||
44 | |||
43 | EXTRA_IMAGEDEPENDS += "fm-ucode rcw uefi qoriq-atf qe-ucode ls2-phy" | 45 | EXTRA_IMAGEDEPENDS += "fm-ucode rcw uefi qoriq-atf qe-ucode ls2-phy" |
44 | USE_VT = "0" | 46 | USE_VT = "0" |
diff --git a/wic/ls104x-uboot-bootpart.wks.in b/wic/ls104x-uboot-bootpart.wks.in new file mode 100644 index 00000000..8ca231c6 --- /dev/null +++ b/wic/ls104x-uboot-bootpart.wks.in | |||
@@ -0,0 +1,21 @@ | |||
1 | # short-description: Create SD card image with a boot partition | ||
2 | # long-description: | ||
3 | # Create an image that can be written onto a SD card using dd for use | ||
4 | # with Layerscape lx1043a/ls1046a family. | ||
5 | # It uses u-boot. | ||
6 | # | ||
7 | # The disk layout used is: | ||
8 | # - ----- --------- -------------- -------------------- | ||
9 | # | | PBL | FIP | FMAN-UCODE | boot + rootfs | | ||
10 | # - ----- --------- -------------- -------------------- | ||
11 | # ^ ^ ^ ^ ^ | ||
12 | # | | | | | | ||
13 | # 0 4kiB 1MiB 9MiB 16MiB | ||
14 | # | ||
15 | part PBL --source rawcopy --sourceparams="file=${IMAGE_FILE_PBL_SD}" --ondisk mmcblk --no-table --align ${IMAGE_OFFSET_PBL} | ||
16 | part FIP --source rawcopy --sourceparams="file=${IMAGE_FILE_FIP_UBOOT}" --ondisk mmcblk --no-table --align ${IMAGE_OFFSET_FIP} | ||
17 | part FMAN-UCODE --source rawcopy --sourceparams="file=${FMAN_UCODE}" --ondisk mmcblk --no-table --align ${IMAGE_OFFSET_FMAN_UCODE} | ||
18 | part /boot --source bootimg-partition --ondisk mmcblk --fstype=ext4 --label boot --active --align 16384 --extra-space 0 | ||
19 | part / --source rootfs --ondisk mmcblk --fstype=ext4 --label rootfs --align 16384 | ||
20 | |||
21 | bootloader --ptable msdos | ||