[patch v7]layerscape: add 64b/32b target for ls1043ardb device#417
[patch v7]layerscape: add 64b/32b target for ls1043ardb device#417fsl-jyt wants to merge 1 commit intolede-project:masterfrom
Conversation
|
V7 patch update summary:
|
A simple bootup log both in 64b and 32b:U-Boot 2016.012.0+ga9b437f (Aug 15 2016 - 19:24:19 +0800) SoC: unknown (0x87920410) Environment size: 2057/131068 bytes U-Boot 2016.01 (Oct 16 2016 - 18:21:05 +0000) SoC: unknown (0x87920410) Error: flags type check failure for "serverip" <= "" (type: i)himport_r: can't insert "serverip=" into hash table Error: flags type check failure for "ipaddr" <= "" (type: i)himport_r: can't insert "ipaddr=" into hash table Environment size: 2110/131068 bytes ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ done U-Boot 2016.012.0+ga9b437f (Aug 15 2016 - 19:24:19 +0800) SoC: unknown (0x87920410) Environment size: 2057/131068 bytes U-Boot 2016.01 (Oct 16 2016 - 19:19:29 +0000) SoC: unknown (0x87920410) EEPROM: NXID v1 Environment size: 2110/131068 bytes Booting kernel from Legacy Image at 82000000 ...Image Name: ARM64 LEDE Linux-4.4.24 Flattened Device Tree blob at 8f000000Booting using the fdt blob at 0x8f000000 Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 BusyBox v1.25.1 () built-in shell (ash) / LE / \ | | | | | __| === WARNING! ===================================== in order to prevent unauthorized SSH logins.root@lede:/# ifconfig eth0 Link encap:Ethernet HWaddr 00:04:9F:04:1C:73 eth1 Link encap:Ethernet HWaddr 00:04:9F:04:1C:74 lo Link encap:Local Loopback root@lede:/# cat /proc/mtd [ 17.925504] jffs2: Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes dev: size erasesize name U-Boot 2016.012.0+ga9b437f (Aug 15 2016 - 19:24:19 +0800) SoC: unknown (0x87920410) Environment size: 2057/131068 bytes U-Boot 2016.01 (Oct 16 2016 - 19:19:29 +0000) SoC: unknown (0x87920410) EEPROM: NXID v1 Environment size: 2110/131068 bytes ................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................ done U-Boot 2016.012.0+ga9b437f (Aug 15 2016 - 19:24:19 +0800) SoC: unknown (0x87920410) Environment size: 2057/131068 bytes U-Boot 2016.01 (Oct 16 2016 - 19:19:29 +0000) SoC: unknown (0x87920410) EEPROM: NXID v1 Environment size: 2110/131068 bytes Booting kernel from Legacy Image at 82000000 ...Image Name: ARM LEDE Linux-4.4.24 Flattened Device Tree blob at 8f000000Booting using the fdt blob at 0x8f000000 Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 BusyBox v1.25.1 () built-in shell (ash) / LE / \ | | | | | __| === WARNING! ===================================== in order to prevent unauthorized SSH logins.root@lede:/# ifconfig eth0 Link encap:Ethernet HWaddr 00:04:9F:04:1C:73 eth1 Link encap:Ethernet HWaddr 00:04:9F:04:1C:74 lo Link encap:Local Loopback root@lede:/# cat /[ 19.344623] jffs2: Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes U-Boot 2016.012.0+ga9b437f (Aug 15 2016 - 19:24:19 +0800) SoC: unknown (0x87920410) |
Add support for NXP layerscape ls1043ardb 64b/32b Dev board. LS1043a is an SoC with 4x64-bit up to 1.6 GHz ARMv8 A53 cores. ls1043ardb support features as: 2GB DDR4, 128MB NOR/512MB NAND, USB3.0, eSDHC, I2C, GPIO, PCIe/Mini-PCIe, 6x1G/1x10G network port, etc. 64b/32b ls1043ardb target is using 4.4 kernel, and rcw/u-boot/fman images from NXP QorIQ SDK release. All of 4.4 kernel patches porting from SDK release or upstream. QorIQ SDK ISOs can be downloaded from this location: http://www.nxp.com/products/software-and-tools/run-time-software/linux-sdk/linux-sdk-for-qoriq-processors:SDKLINUX Signed-off-by: Yutang Jiang <yutang.jiang@nxp.com>
| dd if=$(KDIR)/rcw.bin >> $@ | ||
| endef | ||
|
|
||
| define Build/append-ls-uboot |
There was a problem hiding this comment.
LS1043a is a ARMv8 64b SoC, for customer can run the old 32b application on it, we change some code to switch to 32b mode while 64b uboot jump to kernel.
So, the 32b kernel is booted by a 64b toolchain compiled uboot, while 32b toolchain cannot compile 64b uboot.
I used an unfriendly way to achieve it in lede: Before make 32b, must first make 64b firmware, while compile uboot in 64b, copy it to bin/targets/layerscape/64b/ , then copy it to current $(KDIR)/ to using while make 32b.
If user do not know it and first make 32b, it should add a check and warning for user:
define Build/append-ls-uboot
if [ 32b = $(SUBTARGET) ]; then
if [ -f
else
echo "* WARNING _" ;
echo "$(BIN_DIR)/../64b/$(1)-u-boot-dtb.bin not exist, please first make 64b device:$(1) then make the 32b" ;
echo "_**********" ;
exit 1;
fi;
fi
dd if=$(KDIR)/$(1)-u-boot-dtb.bin >> $@
endef
|
building the 64 bit uboot under the 64bit target and then using it inside the 32bit target will break our buildbot setup i am afraid. @jow- any ideas ? we could package the 64bit uboot binary and use that inside the 32bit target |
|
@blogic @jow- |
|
If there are no problems with the redistribution rights of the blob files I see no problem with pulling them from your github account. |
Add support for NXP layerscape ls1043ardb 64b/32b Dev board.
LS1043a is an SoC with 4x64-bit up to 1.6 GHz ARMv8 A53 cores.
ls1043ardb support features as: 2GB DDR4, 128MB NOR/512MB NAND, USB3.0, eSDHC,
I2C, GPIO, PCIe/Mini-PCIe, 6x1G/1x10G network port, etc.
64b/32b ls1043ardb target is using 4.4 kernel, and rcw/u-boot/fman images from
NXP QorIQ SDK release.
All of 4.4 kernel patches porting from SDK release or upstream.
QorIQ SDK ISOs can be downloaded from this location:
http://www.nxp.com/products/software-and-tools/run-time-software/linux-sdk/linux-sdk-for-qoriq-processors:SDKLINUX
Signed-off-by: Yutang Jiang yutang.jiang@nxp.com