Initial commit
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
Some checks failed
Build Kernel / Build all affected Kernels (push) Has been cancelled
Build all core packages / Build all core packages for selected target (push) Has been cancelled
Build and Push prebuilt tools container / Build and Push all prebuilt containers (push) Has been cancelled
Build Toolchains / Build Toolchains for each target (push) Has been cancelled
Build host tools / Build host tools for linux and macos based systems (push) Has been cancelled
Coverity scan build / Coverity x86/64 build (push) Has been cancelled
This commit is contained in:
166
package/boot/uboot-layerscape/Makefile
Normal file
166
package/boot/uboot-layerscape/Makefile
Normal file
@@ -0,0 +1,166 @@
|
||||
#
|
||||
# Copyright (C) 2016 Jiang Yutang <jiangyutang1978@gmail.com>
|
||||
#
|
||||
# This is free software, licensed under the GNU General Public License v2.
|
||||
# See /LICENSE for more information.
|
||||
#
|
||||
|
||||
include $(TOPDIR)/rules.mk
|
||||
|
||||
PKG_NAME:=uboot-layerscape
|
||||
PKG_VERSION:=6.6.3.1.0.0
|
||||
PKG_RELEASE:=1
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=https://github.com/nxp-qoriq/u-boot
|
||||
PKG_SOURCE_VERSION:=lf-6.6.3-1.0.0
|
||||
PKG_MIRROR_HASH:=dec5b6e4fe328b930f201fbf06a0a7b71a9dd72f38f16c9570188c0a7fea916a
|
||||
|
||||
include $(INCLUDE_DIR)/u-boot.mk
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
|
||||
define U-Boot/Default
|
||||
BUILD_TARGET:=layerscape
|
||||
BUILD_SUBTARGET:=armv8_64b
|
||||
BUILD_DEVICES:=$(1)
|
||||
UBOOT_IMAGE:=u-boot-dtb.bin
|
||||
ENV_SIZE:=0x2000
|
||||
endef
|
||||
|
||||
define U-Boot/fsl_ls1012a-frdm
|
||||
NAME:=NXP LS1012AFRDM
|
||||
UBOOT_CONFIG:=ls1012afrdm_tfa
|
||||
endef
|
||||
|
||||
define U-Boot/fsl_ls1012a-rdb
|
||||
NAME:=NXP LS1012ARDB
|
||||
UBOOT_CONFIG:=ls1012ardb_tfa
|
||||
endef
|
||||
|
||||
define U-Boot/fsl_ls1012a-frwy-sdboot
|
||||
NAME:=NXP LS1012AFRWY
|
||||
UBOOT_CONFIG:=ls1012afrwy_tfa
|
||||
endef
|
||||
|
||||
define U-Boot/fsl_ls1028a-rdb
|
||||
NAME:=NXP LS1028ARDB
|
||||
UBOOT_CONFIG:=ls1028ardb_tfa
|
||||
endef
|
||||
|
||||
define U-Boot/fsl_ls1028a-rdb-sdboot
|
||||
NAME:=NXP LS1028ARDB SD Card Boot
|
||||
UBOOT_CONFIG:=ls1028ardb_tfa
|
||||
endef
|
||||
|
||||
define U-Boot/fsl_ls1043a-rdb
|
||||
NAME:=NXP LS1043ARDB
|
||||
UBOOT_CONFIG:=ls1043ardb_tfa
|
||||
endef
|
||||
|
||||
define U-Boot/fsl_ls1043a-rdb-sdboot
|
||||
NAME:=NXP LS1043ARDB SD Card Boot
|
||||
UBOOT_CONFIG:=ls1043ardb_tfa
|
||||
endef
|
||||
|
||||
define U-Boot/fsl_ls1046a-frwy
|
||||
NAME:=NXP LS1046AFRWY
|
||||
UBOOT_CONFIG:=ls1046afrwy_tfa
|
||||
endef
|
||||
|
||||
define U-Boot/fsl_ls1046a-frwy-sdboot
|
||||
NAME:=NXP LS1046AFRWY SD Card Boot
|
||||
UBOOT_CONFIG:=ls1046afrwy_tfa
|
||||
endef
|
||||
|
||||
define U-Boot/fsl_ls1046a-rdb
|
||||
NAME:=NXP LS1046ARDB
|
||||
UBOOT_CONFIG:=ls1046ardb_tfa
|
||||
endef
|
||||
|
||||
define U-Boot/fsl_ls1046a-rdb-sdboot
|
||||
NAME:=NXP LS1046ARDB SD Card Boot
|
||||
UBOOT_CONFIG:=ls1046ardb_tfa
|
||||
endef
|
||||
|
||||
define U-Boot/fsl_ls1088a-rdb
|
||||
NAME:=NXP LS1088ARDB
|
||||
UBOOT_CONFIG:=ls1088ardb_tfa
|
||||
endef
|
||||
|
||||
define U-Boot/fsl_ls1088a-rdb-sdboot
|
||||
NAME:=NXP LS1088ARDB SD Card Boot
|
||||
UBOOT_CONFIG:=ls1088ardb_tfa
|
||||
endef
|
||||
|
||||
define U-Boot/fsl_ls2088a-rdb
|
||||
NAME:=NXP LS2088ARDB
|
||||
UBOOT_CONFIG:=ls2088ardb_tfa
|
||||
endef
|
||||
|
||||
define U-Boot/fsl_lx2160a-rdb
|
||||
NAME:=NXP LX2160ARDB
|
||||
UBOOT_CONFIG:=lx2160ardb_tfa
|
||||
endef
|
||||
|
||||
define U-Boot/fsl_lx2160a-rdb-sdboot
|
||||
NAME:=NXP LX2160ARDB SD Card Boot
|
||||
UBOOT_CONFIG:=lx2160ardb_tfa
|
||||
endef
|
||||
|
||||
define U-Boot/fsl_ls1021a-twr
|
||||
NAME:=NXP LS1021ATWR
|
||||
BUILD_SUBTARGET:=armv7
|
||||
UBOOT_CONFIG:=ls1021atwr_nor
|
||||
ENV_SIZE:=0x20000
|
||||
endef
|
||||
|
||||
define U-Boot/fsl_ls1021a-twr-sdboot
|
||||
NAME:=NXP LS1021ATWR SD Card Boot
|
||||
BUILD_SUBTARGET:=armv7
|
||||
UBOOT_CONFIG:=ls1021atwr_sdcard_ifc
|
||||
UBOOT_IMAGE:=u-boot-with-spl-pbl.bin
|
||||
ENV_SIZE:=0x20000
|
||||
endef
|
||||
|
||||
define U-Boot/fsl_ls1021a-iot-sdboot
|
||||
NAME:=NXP LS1021AIOT SD Card Boot
|
||||
BUILD_SUBTARGET:=armv7
|
||||
UBOOT_CONFIG:=ls1021aiot_sdcard
|
||||
UBOOT_IMAGE:=u-boot-with-spl-pbl.bin
|
||||
ENV_SIZE:=0x2000
|
||||
endef
|
||||
|
||||
UBOOT_TARGETS := \
|
||||
fsl_ls1012a-frdm \
|
||||
fsl_ls1012a-rdb \
|
||||
fsl_ls1012a-frwy-sdboot \
|
||||
fsl_ls1028a-rdb \
|
||||
fsl_ls1028a-rdb-sdboot \
|
||||
fsl_ls1043a-rdb \
|
||||
fsl_ls1043a-rdb-sdboot \
|
||||
fsl_ls1046a-frwy \
|
||||
fsl_ls1046a-frwy-sdboot \
|
||||
fsl_ls1046a-rdb \
|
||||
fsl_ls1046a-rdb-sdboot \
|
||||
fsl_ls1088a-rdb \
|
||||
fsl_ls1088a-rdb-sdboot \
|
||||
fsl_ls2088a-rdb \
|
||||
fsl_lx2160a-rdb \
|
||||
fsl_lx2160a-rdb-sdboot \
|
||||
fsl_ls1021a-twr \
|
||||
fsl_ls1021a-twr-sdboot \
|
||||
fsl_ls1021a-iot-sdboot
|
||||
|
||||
define Build/InstallDev
|
||||
$(INSTALL_DIR) $(STAGING_DIR_IMAGE)
|
||||
$(INSTALL_DATA) $(PKG_BUILD_DIR)/$(UBOOT_IMAGE) \
|
||||
$(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-uboot.bin
|
||||
$(PKG_BUILD_DIR)/tools/mkenvimage -s $(ENV_SIZE) \
|
||||
-o $(STAGING_DIR_IMAGE)/$(BUILD_VARIANT)-uboot-env.bin \
|
||||
files/$(BUILD_VARIANT)-uEnv.txt
|
||||
endef
|
||||
|
||||
define Package/u-boot/install/default
|
||||
endef
|
||||
|
||||
$(eval $(call BuildPackage/U-Boot))
|
||||
@@ -0,0 +1,9 @@
|
||||
fdtaddr=0x8f000000
|
||||
loadaddr=0x88000000
|
||||
fdt_high=0x8fffffff
|
||||
initrd_high=0xffffffffffffffff
|
||||
qspi_boot=sf probe 0:0;sf read $loadaddr 1000000 2800000;bootm $loadaddr
|
||||
bootargs=rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=1550000.spi:1m(bl2),4m(fip),1m(u-boot-env),4m(reserved-1),3m(pfe),2m(reserved-2),1m(dtb),-(firmware)
|
||||
bootcmd=echo starting OpenWrt ...;pfe stop;run qspi_boot
|
||||
bootdelay=3
|
||||
fsl_bootcmd_mcinitcmd_set=y
|
||||
@@ -0,0 +1,9 @@
|
||||
fdtaddr=0x8f000000
|
||||
loadaddr=0x88000000
|
||||
fdt_high=0x8fffffff
|
||||
initrd_high=0xffffffffffffffff
|
||||
sd_boot=ext4load mmc 0:1 $loadaddr fitImage;bootm $loadaddr
|
||||
bootargs=root=/dev/mmcblk0p2 rw rootwait rootfstype=squashfs,f2fs noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200
|
||||
bootcmd=echo starting openwrt ...;pfe stop;run sd_boot
|
||||
bootdelay=3
|
||||
fsl_bootcmd_mcinitcmd_set=y
|
||||
@@ -0,0 +1,8 @@
|
||||
fdtaddr=0x8f000000
|
||||
loadaddr=0x88000000
|
||||
bootm_size=0x10000000
|
||||
qspi_boot=sf probe 0:0;sf read $fdtaddr f00000 100000;sf read $loadaddr 1000000 1000000;bootm $loadaddr - $fdtaddr
|
||||
bootargs=root=/dev/mtdblock8 rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=1550000.spi:1m(bl2),4m(fip),1m(u-boot-env),4m(reserved-1),3m(pfe),2m(reserved-2),1m(dtb),16m(kernel),32m(rootfs),49m@0xf00000(firmware)
|
||||
bootcmd=echo starting openwrt ...;pfe stop;run qspi_boot
|
||||
bootdelay=3
|
||||
fsl_bootcmd_mcinitcmd_set=y
|
||||
@@ -0,0 +1,9 @@
|
||||
fdtaddr=0x8f000000
|
||||
loadaddr=0x88000000
|
||||
fdt_high=0x8fffffff
|
||||
initrd_high=0xffffffff
|
||||
sd_boot=ext4load mmc 0:1 ${loadaddr} fitImage;bootm ${loadaddr}
|
||||
bootargs=root=/dev/mmcblk0p2 rw rootwait rootfstype=squashfs,f2fs noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200
|
||||
bootcmd=echo starting openwrt ...;run sd_boot
|
||||
bootdelay=3
|
||||
fsl_bootcmd_mcinitcmd_set=y
|
||||
@@ -0,0 +1,9 @@
|
||||
fdtaddr=0x8f000000
|
||||
loadaddr=0x88000000
|
||||
fdt_high=0x8fffffff
|
||||
initrd_high=0xffffffff
|
||||
sd_boot=ext4load mmc 0:1 $loadaddr fitImage;bootm $loadaddr
|
||||
bootargs=root=/dev/mmcblk0p2 rw rootwait rootfstype=squashfs,f2fs noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200
|
||||
bootcmd=echo starting openwrt ...;run sd_boot
|
||||
bootdelay=3
|
||||
fsl_bootcmd_mcinitcmd_set=y
|
||||
@@ -0,0 +1,8 @@
|
||||
fdtaddr=0x8f000000
|
||||
loadaddr=0x88000000
|
||||
bootm_size=0x10000000
|
||||
nor_boot=cp.b 60f00000 $fdtaddr 100000;cp.b 61000000 $loadaddr 1000000;bootm $loadaddr - $fdtaddr
|
||||
bootargs=root=/dev/mtdblock6 rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=60000000.nor:1m(rcw),2m(u-boot),1m(u-boot-env),11m(reserved-1),1m(dtb),16m(kernel),32m(rootfs),49m@0xf00000(firmware) cma=64M@0x0-0xb0000000
|
||||
bootcmd=echo starting openwrt ...;run nor_boot
|
||||
bootdelay=3
|
||||
fsl_bootcmd_mcinitcmd_set=y
|
||||
@@ -0,0 +1,10 @@
|
||||
fdtaddr=0x8f000000
|
||||
loadaddr=0x81000000
|
||||
fdt_high=0x8fffffff
|
||||
initrd_high=0xffffffffffffffff
|
||||
hwconfig=fsl_ddr:bank_intlv=auto
|
||||
sd_boot=ext4load mmc 0:1 $loadaddr fitImage;bootm $loadaddr
|
||||
bootargs=root=/dev/mmcblk0p2 rw rootwait rootfstype=squashfs,f2fs noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200
|
||||
bootcmd=echo starting openwrt ...;run sd_boot
|
||||
bootdelay=3
|
||||
fsl_bootcmd_mcinitcmd_set=y
|
||||
@@ -0,0 +1,9 @@
|
||||
fdtaddr=0x8f000000
|
||||
loadaddr=0x81000000
|
||||
bootm_size=0x10000000
|
||||
hwconfig=fsl_ddr:bank_intlv=auto
|
||||
qspi_boot=sf probe 0:0;sf read $loadaddr 1000000 1000000;bootm $loadaddr
|
||||
bootargs=rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=20c0000.spi:1m(bl2),4m(fip),1m(u-boot-env),128k(secure-boot-headers),48m@0x1000000(firmware)
|
||||
bootcmd=echo starting openwrt ...;run qspi_boot
|
||||
bootdelay=3
|
||||
fsl_bootcmd_mcinitcmd_set=y
|
||||
@@ -0,0 +1,10 @@
|
||||
fdtaddr=0x8f000000
|
||||
loadaddr=0x88000000
|
||||
fdt_high=0x8fffffff
|
||||
initrd_high=0xffffffffffffffff
|
||||
hwconfig=fsl_ddr:bank_intlv=auto
|
||||
sd_boot=ext4load mmc 0:1 $loadaddr fitImage;bootm $loadaddr
|
||||
bootargs=root=/dev/mmcblk0p2 rw rootwait rootfstype=squashfs,f2fs noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200
|
||||
bootcmd=echo starting openwrt ...;run sd_boot
|
||||
bootdelay=3
|
||||
fsl_bootcmd_mcinitcmd_set=y
|
||||
@@ -0,0 +1,9 @@
|
||||
fdtaddr=0x8f000000
|
||||
loadaddr=0x88000000
|
||||
bootm_size=0x10000000
|
||||
hwconfig=fsl_ddr:bank_intlv=auto
|
||||
nor_boot=cp.b 60f00000 $fdtaddr 100000;cp.b 61000000 $loadaddr 1000000;bootm $loadaddr - $fdtaddr
|
||||
bootargs=root=/dev/mtdblock8 rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=60000000.nor:1m(bl2),4m(fip),1m(u-boot-env),3m(reserved-1),256k(fman),5888k(reserved-2),1m(dtb),16m(kernel),32m(rootfs),49m@0xf00000(firmware)
|
||||
bootcmd=echo starting openwrt ...;run nor_boot
|
||||
bootdelay=3
|
||||
fsl_bootcmd_mcinitcmd_set=y
|
||||
@@ -0,0 +1,9 @@
|
||||
fdtaddr=0x8f000000
|
||||
loadaddr=0x88000000
|
||||
bootm_size=0x10000000
|
||||
hwconfig=fsl_ddr:bank_intlv=auto
|
||||
sd_boot=ext4load mmc 0:1 ${loadaddr} fitImage;bootm ${loadaddr}
|
||||
bootargs=root=/dev/mmcblk0p2 rw rootwait rootfstype=squashfs,f2fs noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200
|
||||
bootcmd=echo starting openwrt ...;run sd_boot
|
||||
bootdelay=3
|
||||
fsl_bootcmd_mcinitcmd_set=y
|
||||
@@ -0,0 +1,9 @@
|
||||
fdtaddr=0x8f000000
|
||||
loadaddr=0x88000000
|
||||
bootm_size=0x10000000
|
||||
hwconfig=fsl_ddr:bank_intlv=auto
|
||||
qspi_boot=sf probe 0:0;sf read $fdtaddr f00000 100000;sf read $loadaddr 1000000 1000000;bootm $loadaddr - $fdtaddr
|
||||
bootargs=root=/dev/mtdblock9 rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=1550000.spi:1m(bl2),4m(fip),1m(u-boot-env),3m(reserved-1),256k(fman),5888k(reserved-2),1m(dtb),16m(kernel),32m(rootfs),49m@0xf00000(firmware)
|
||||
bootcmd=echo starting openwrt ...;run qspi_boot
|
||||
bootdelay=3
|
||||
fsl_bootcmd_mcinitcmd_set=y
|
||||
@@ -0,0 +1,10 @@
|
||||
fdtaddr=0x8f000000
|
||||
loadaddr=0x88000000
|
||||
fdt_high=0x8fffffff
|
||||
initrd_high=0xffffffffffffffff
|
||||
hwconfig=fsl_ddr:bank_intlv=auto
|
||||
sd_boot=ext4load mmc 0:1 $loadaddr fitImage;bootm $loadaddr
|
||||
bootargs=root=/dev/mmcblk0p2 rw rootwait rootfstype=squashfs,f2fs noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200
|
||||
bootcmd=echo starting openwrt ...;run sd_boot
|
||||
bootdelay=3
|
||||
fsl_bootcmd_mcinitcmd_set=y
|
||||
@@ -0,0 +1,9 @@
|
||||
fdtaddr=0x8f000000
|
||||
loadaddr=0x88000000
|
||||
bootm_size=0x10000000
|
||||
hwconfig=fsl_ddr:bank_intlv=auto
|
||||
qspi_boot=sf probe 0:0;sf read $fdtaddr f00000 100000;sf read $loadaddr 1000000 1000000;bootm $loadaddr - $fdtaddr
|
||||
bootargs=root=/dev/mtdblock9 rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=1550000.spi-0:1m(bl2),4m(fip),1m(u-boot-env),3m(reserved-1),256k(fman),5888k(reserved-2),1m(dtb),16m(kernel),32m(rootfs),49m@0xf00000(firmware)
|
||||
bootcmd=echo starting openwrt ...;run qspi_boot
|
||||
bootdelay=3
|
||||
fsl_bootcmd_mcinitcmd_set=y
|
||||
@@ -0,0 +1,11 @@
|
||||
fdtaddr=0x8f000000
|
||||
loadaddr=0x88000000
|
||||
fdt_high=0xa0000000
|
||||
initrd_high=0xffffffffffffffff
|
||||
hwconfig=fsl_ddr:bank_intlv=auto
|
||||
mc_init=mmc read 80000000 5000 1800;mmc read 80300000 7000 800;fsl_mc start mc 80000000 80300000;mmc read 80400000 6800 800;fsl_mc apply dpl 80400000
|
||||
sd_boot=ext4load mmc 0:1 $loadaddr fitImage;bootm $loadaddr
|
||||
bootargs=root=/dev/mmcblk0p2 rw rootwait rootfstype=squashfs,f2fs noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200
|
||||
bootcmd=echo starting openwrt ...;run mc_init;run sd_boot
|
||||
bootdelay=3
|
||||
fsl_bootcmd_mcinitcmd_set=y
|
||||
11
package/boot/uboot-layerscape/files/fsl_ls1088a-rdb-uEnv.txt
Normal file
11
package/boot/uboot-layerscape/files/fsl_ls1088a-rdb-uEnv.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
fdtaddr=0x8f000000
|
||||
loadaddr=0x88000000
|
||||
fdt_high=0xa0000000
|
||||
initrd_high=0xffffffffffffffff
|
||||
hwconfig=fsl_ddr:bank_intlv=auto
|
||||
mc_init=sf probe 0:0;sf read 80000000 a00000 300000;sf read 80300000 e00000 100000;fsl_mc start mc 80000000 80300000;sf read 80400000 d00000 100000;fsl_mc apply dpl 80400000
|
||||
qspi_boot=sf probe 0:0;sf read $fdtaddr f00000 100000;sf read $loadaddr 1000000 1000000;bootm $loadaddr - $fdtaddr
|
||||
bootargs=root=/dev/mtdblock10 rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS0,115200 mtdparts=20c0000.spi-0:1m(bl2),4m(fip),1m(u-boot-env),4m(reserved-1),3m(mc),1m(dpl),1m(dpc),1m(dtb),16m(kernel),32m(rootfs),49m@0xf00000(firmware)
|
||||
bootcmd=echo starting openwrt ...;run mc_init;run qspi_boot
|
||||
bootdelay=3
|
||||
fsl_bootcmd_mcinitcmd_set=y
|
||||
11
package/boot/uboot-layerscape/files/fsl_ls2088a-rdb-uEnv.txt
Normal file
11
package/boot/uboot-layerscape/files/fsl_ls2088a-rdb-uEnv.txt
Normal file
@@ -0,0 +1,11 @@
|
||||
fdtaddr=0x8f000000
|
||||
loadaddr=0x88000000
|
||||
fdt_high=0xa0000000
|
||||
initrd_high=0xffffffffffffffff
|
||||
hwconfig=fsl_ddr:bank_intlv=auto
|
||||
mc_init=fsl_mc start mc 580a00000 580e00000;fsl_mc apply dpl 580d00000
|
||||
nor_boot=cp.b 580f00000 $fdtaddr 100000;cp.b 581000000 $loadaddr 1000000;bootm $loadaddr - $fdtaddr
|
||||
bootargs=root=/dev/mtdblock9 rootfstype=squashfs,jffs2 noinitrd earlycon=uart8250,mmio,0x21c0500 console=ttyS1,115200 mtdparts=580000000.nor:1m(bl2),4m(fip),1m(u-boot-env),4m(reserved-1),3m(mc),1m(dpl),1m(dpc),1m(dtb),16m(kernel),32m(rootfs),49m@0xf00000(firmware)
|
||||
bootcmd=echo starting openwrt ...;run mc_init;run nor_boot
|
||||
bootdelay=3
|
||||
fsl_bootcmd_mcinitcmd_set=y
|
||||
@@ -0,0 +1,10 @@
|
||||
fdtaddr=0x8f000000
|
||||
loadaddr=0x88000000
|
||||
bootm_size=0x10000000
|
||||
hwconfig=fsl_ddr:bank_intlv=auto
|
||||
mc_init=mmc read 80000000 5000 1800;mmc read 80300000 7000 800;fsl_mc start mc 80000000 80300000;mmc read 80400000 6800 800;fsl_mc apply dpl 80400000
|
||||
sd_boot=ext4load mmc 0:1 ${loadaddr} fitImage;bootm ${loadaddr}
|
||||
bootargs=root=/dev/mmcblk0p2 rw rootwait rootfstype=squashfs,f2fs noinitrd earlycon=pl011,mmio32,0x21c0000 console=ttyAMA0,115200
|
||||
bootcmd=echo starting openwrt ...;run mc_init;run sd_boot
|
||||
bootdelay=3
|
||||
fsl_bootcmd_mcinitcmd_set=y
|
||||
10
package/boot/uboot-layerscape/files/fsl_lx2160a-rdb-uEnv.txt
Normal file
10
package/boot/uboot-layerscape/files/fsl_lx2160a-rdb-uEnv.txt
Normal file
@@ -0,0 +1,10 @@
|
||||
fdtaddr=0x8f000000
|
||||
loadaddr=0x88000000
|
||||
bootm_size=0x10000000
|
||||
hwconfig=fsl_ddr:bank_intlv=auto
|
||||
mc_init=sf probe 0:0;sf read 80000000 a00000 300000;sf read 80300000 e00000 100000;fsl_mc start mc 80000000 80300000;sf read 80400000 d00000 100000;fsl_mc apply dpl 80400000
|
||||
xspi_boot=sf probe 0:0;sf read $fdtaddr f00000 100000;sf read $loadaddr 1000000 1000000;bootm $loadaddr - $fdtaddr
|
||||
bootargs=root=/dev/mtdblock9 rootfstype=squashfs,jffs2 noinitrd earlycon=pl011,mmio32,0x21c0000 console=ttyAMA0,115200 mtdparts=20c0000.spi-0:1m(bl2),4m(fip),1m(u-boot-env),4m(reserved-1),3m(mc),1m(dpl),1m(dpc),1m(dtb),16m(kernel),32m(rootfs),49m@0xf00000(firmware)
|
||||
bootcmd=echo starting openwrt ...;run mc_init;run xspi_boot
|
||||
bootdelay=3
|
||||
fsl_bootcmd_mcinitcmd_set=y
|
||||
@@ -0,0 +1,49 @@
|
||||
From 54a19a8c97608c71b440639c878f2f57b5add95d Mon Sep 17 00:00:00 2001
|
||||
From: Pawel Dembicki <paweldembicki@gmail.com>
|
||||
Date: Mon, 24 Oct 2022 14:19:38 +0200
|
||||
Subject: [PATCH] layerscape: adjust LS1021A-IOT config for OpenWrt
|
||||
|
||||
Two configs are required:
|
||||
- FIT
|
||||
- Ext4load
|
||||
|
||||
Let's enable it. U-boot is now bigger than 512K. Let's enlarge it to
|
||||
768K. Envs start at 1M, so it will fit.
|
||||
|
||||
Signed-off-by: Pawel Dembicki <paweldembicki@gmail.com>
|
||||
---
|
||||
configs/ls1021aiot_sdcard_defconfig | 7 +++++--
|
||||
1 file changed, 5 insertions(+), 2 deletions(-)
|
||||
|
||||
--- a/configs/ls1021aiot_sdcard_defconfig
|
||||
+++ b/configs/ls1021aiot_sdcard_defconfig
|
||||
@@ -24,7 +24,7 @@ CONFIG_AHCI=y
|
||||
CONFIG_LAYERSCAPE_NS_ACCESS=y
|
||||
CONFIG_PCIE1=y
|
||||
CONFIG_PCIE2=y
|
||||
-CONFIG_SYS_MONITOR_LEN=524288
|
||||
+CONFIG_SYS_MONITOR_LEN=786432
|
||||
CONFIG_OF_BOARD_SETUP=y
|
||||
CONFIG_OF_STDOUT_VIA_ALIAS=y
|
||||
CONFIG_RAMBOOT_PBL=y
|
||||
@@ -40,7 +40,7 @@ CONFIG_SPL_MAX_SIZE=0x1a000
|
||||
CONFIG_SPL_PAD_TO=0x1c000
|
||||
CONFIG_SPL_HAS_BSS_LINKER_SECTION=y
|
||||
CONFIG_SPL_BSS_START_ADDR=0x80100000
|
||||
-CONFIG_SPL_BSS_MAX_SIZE=0x80000
|
||||
+CONFIG_SPL_BSS_MAX_SIZE=0xc0000
|
||||
CONFIG_SPL_FSL_PBL=y
|
||||
# CONFIG_SPL_SHARES_INIT_SP_ADDR is not set
|
||||
CONFIG_SYS_SPL_MALLOC=y
|
||||
@@ -66,8 +66,11 @@ CONFIG_CMD_MII=y
|
||||
# CONFIG_CMD_MDIO is not set
|
||||
CONFIG_CMD_PING=y
|
||||
CONFIG_CMD_EXT2=y
|
||||
+CONFIG_CMD_EXT4=y
|
||||
CONFIG_CMD_FAT=y
|
||||
# CONFIG_SPL_EFI_PARTITION is not set
|
||||
+CONFIG_FIT=y
|
||||
+CONFIG_FIT_VERBOSE=y
|
||||
CONFIG_OF_CONTROL=y
|
||||
CONFIG_ENV_OVERWRITE=y
|
||||
CONFIG_ENV_IS_IN_MMC=y
|
||||
Reference in New Issue
Block a user