mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 23:47:24 +00:00
9a1a0aedbb
MPC8536E can support booting from NAND flash which uses the image u-boot-nand.bin. This image contains two parts: a 4K NAND loader and a main U-Boot image. The former is appended to the latter to produce u-boot-nand.bin. The 4K NAND loader includes the corresponding nand_spl directory, along with the code twisted by CONFIG_NAND_SPL. The main U-Boot image just like a general U-Boot image except the parts that included by CONFIG_SYS_RAMBOOT. When power on, eLBC will automatically load from bank 0 the 4K NAND loader into the FCM buffer RAM where CPU can execute the boot code directly. In the first stage, the NAND loader copies itself to RAM or L2SRAM to free up the FCM buffer RAM, then loads the main image from NAND flash to RAM or L2SRAM and boot from it. This patch implements the NAND loader to load the main image into L2SRAM, so the main image can configure the RAM by using SPD EEPROM. In the first stage, the NAND loader copies itself to the second to last 4K address space, and uses the last 4K address space as the initial RAM for stack. Obviously, the size of L2SRAM shouldn't be less than the size of the image used. If so, the workaround is to generate another image that includes the code to configure the RAM by SPD and load it to L2SRAM first, then relocate the main image to RAM to boot up. Signed-off-by: Mingkai Hu <Mingkai.hu@freescale.com> Signed-off-by: Kumar Gala <galak@kernel.crashing.org> |
||
---|---|---|
.. | ||
common | ||
m547xevb | ||
m548xevb | ||
m5208evbe | ||
m5235evb | ||
m5249evb | ||
m5253demo | ||
m5253evbe | ||
m5271evb | ||
m5272c3 | ||
m5275evb | ||
m5282evb | ||
m5329evb | ||
m5373evb | ||
m52277evb | ||
m53017evb | ||
m54451evb | ||
m54455evb | ||
mpc832xemds | ||
mpc837xemds | ||
mpc837xerdb | ||
mpc5121ads | ||
mpc7448hpc2 | ||
mpc8260ads | ||
mpc8266ads | ||
mpc8313erdb | ||
mpc8315erdb | ||
mpc8323erdb | ||
mpc8349emds | ||
mpc8349itx | ||
mpc8360emds | ||
mpc8360erdk | ||
mpc8536ds | ||
mpc8540ads | ||
mpc8541cds | ||
mpc8544ds | ||
mpc8548cds | ||
mpc8555cds | ||
mpc8560ads | ||
mpc8568mds | ||
mpc8569mds | ||
mpc8572ds | ||
mpc8610hpcd | ||
mpc8641hpcn | ||
mx31ads | ||
mx31pdk | ||
p1_p2_rdb | ||
p2020ds |