summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--conf/machine/include/qoriq-base.inc23
-rw-r--r--conf/machine/ls1043ardb.conf2
-rw-r--r--conf/machine/ls1046afrwy.conf2
-rw-r--r--conf/machine/ls1046ardb.conf2
-rw-r--r--wic/ls104x-uboot-bootpart.wks.in21
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"
11SOC_DEFAULT_IMAGE_FSTYPES = "tar.gz ext2.gz.u-boot ext2.gz" 11SOC_DEFAULT_IMAGE_FSTYPES = "tar.gz ext2.gz.u-boot ext2.gz"
12IMAGE_FSTYPES ?= "${SOC_DEFAULT_IMAGE_FSTYPES}" 12IMAGE_FSTYPES ?= "${SOC_DEFAULT_IMAGE_FSTYPES}"
13 13
14# Composite Image Layout (in KBytes)
15IMAGE_OFFSET_PBL ?= "4"
16IMAGE_OFFSET_FIP ?= "1024"
17IMAGE_OFFSET_FMAN_UCODE ?= "9216"
18
19# Composite Image Filenames
20IMAGE_FILE_PBL_SD ?= "atf/bl2_sd.pbl"
21IMAGE_FILE_FIP_UBOOT ?= "atf/fip_uboot.bin"
22
23# Do not update fstab file when using wic images
24WIC_CREATE_EXTRA_ARGS ?= "--no-fstab-update"
25
26IMAGE_BOOT_FILES ?= " \
27 ${KERNEL_IMAGETYPE} \
28 *.dtb \
29"
30
31SOC_DEFAULT_WKS_FILE ?= ""
32SOC_DEFAULT_WKS_FILE_ls1043a ?= "ls104x-uboot-bootpart.wks.in"
33SOC_DEFAULT_WKS_FILE_ls1046a ?= "ls104x-uboot-bootpart.wks.in"
34
35WKS_FILE ?= "${SOC_DEFAULT_WKS_FILE}"
36
14MACHINE_FEATURES ?= "pci ext2 ext3 serial" 37MACHINE_FEATURES ?= "pci ext2 ext3 serial"
15MACHINE_EXTRA_RRECOMMENDS += "udev-extraconf udev-rules-qoriq kernel-modules" 38MACHINE_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"
40RCWNAND ?= "RR_FQPP_1455/rcw_1600_nandboot" 40RCWNAND ?= "RR_FQPP_1455/rcw_1600_nandboot"
41 41
42QE_UCODE = "iram_Type_A_LS1021a_r1.0.bin" 42QE_UCODE = "iram_Type_A_LS1021a_r1.0.bin"
43FMAN_UCODE ?= "fsl_fman_ucode_ls1043_r1.1_106_4_18.bin"
44
43EXTRA_IMAGEDEPENDS += "fm-ucode rcw qe-ucode uefi qoriq-atf ls2-phy" 45EXTRA_IMAGEDEPENDS += "fm-ucode rcw qe-ucode uefi qoriq-atf ls2-phy"
44USE_VT = "0" 46USE_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}"
37RCWQSPI ?= "NN_NNQNNPNP_3040_0506/rcw_1600_qspiboot" 37RCWQSPI ?= "NN_NNQNNPNP_3040_0506/rcw_1600_qspiboot"
38RCWSD ?= "NN_NNQNNPNP_3040_0506/rcw_1600_sdboot" 38RCWSD ?= "NN_NNQNNPNP_3040_0506/rcw_1600_sdboot"
39 39
40FMAN_UCODE ?= "fsl_fman_ucode_ls1046_r1.0_106_4_18.bin"
41
40EXTRA_IMAGEDEPENDS += "fm-ucode rcw qoriq-atf ls2-phy qe-ucode" 42EXTRA_IMAGEDEPENDS += "fm-ucode rcw qoriq-atf ls2-phy qe-ucode"
41USE_VT = "0" 43USE_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"
40RCWQSPI ?= "RR_FFSSPPPH_1133_5559/rcw_1800_qspiboot" 40RCWQSPI ?= "RR_FFSSPPPH_1133_5559/rcw_1800_qspiboot"
41RCWSD ?= "RR_FFSSPPPH_1133_5559/rcw_1800_sdboot" 41RCWSD ?= "RR_FFSSPPPH_1133_5559/rcw_1800_sdboot"
42 42
43FMAN_UCODE ?= "fsl_fman_ucode_ls1046_r1.0_106_4_18.bin"
44
43EXTRA_IMAGEDEPENDS += "fm-ucode rcw uefi qoriq-atf qe-ucode ls2-phy" 45EXTRA_IMAGEDEPENDS += "fm-ucode rcw uefi qoriq-atf qe-ucode ls2-phy"
44USE_VT = "0" 46USE_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#
15part PBL --source rawcopy --sourceparams="file=${IMAGE_FILE_PBL_SD}" --ondisk mmcblk --no-table --align ${IMAGE_OFFSET_PBL}
16part FIP --source rawcopy --sourceparams="file=${IMAGE_FILE_FIP_UBOOT}" --ondisk mmcblk --no-table --align ${IMAGE_OFFSET_FIP}
17part FMAN-UCODE --source rawcopy --sourceparams="file=${FMAN_UCODE}" --ondisk mmcblk --no-table --align ${IMAGE_OFFSET_FMAN_UCODE}
18part /boot --source bootimg-partition --ondisk mmcblk --fstype=ext4 --label boot --active --align 16384 --extra-space 0
19part / --source rootfs --ondisk mmcblk --fstype=ext4 --label rootfs --align 16384
20
21bootloader --ptable msdos