[U-Boot] questions on SPL

Hi
I am very sorry to ask this simple question. I read a lot of document and googled online, but I still feel puzzled by the SPL of U-Boot.
I has an ancient SoC s3c2440 which is armv4t architecture. s3c2440 will copy the first 4K code on NAND to static SRAM. It is obvious that u-boot bin is bigger than 4K. so Here is my question:
1. In this condition, do I must compile a SPL bin? and flash it to the first page of NAND flash. if it's, I think the SPL should be less than 4K, or it's meaningless, It still need to copy remain content, and has no difference with a single u-boot.
2. can I only compile a regular u-boot and do copy work and relocate work at this single u-boot. namely, merge SPL and regular u-boot, does u-boot support this framework?
thanks very much!
From 袁建鹏 (Yuan Jianpeng)

On Wed, 13 Dec 2017 22:20:57 +0800 herbert yuanjp@hust.edu.cn wrote:
Hi
I am very sorry to ask this simple question. I read a lot of document and googled online, but I still feel puzzled by the SPL of U-Boot.
I has an ancient SoC s3c2440 which is armv4t architecture. s3c2440 will copy the first 4K code on NAND to static SRAM. It is obvious that u-boot bin is bigger than 4K. so Here is my question:
It is very unlikely that the 4K that you load is the SPL.
It may be a bl1 image, which is crafted by SoC vendor and needs to be signed.
I can only recommend looking on the old u-boot from the board BSP and check what is going on.
IIRC the s3c2440 is not supported by u-boot anymore.
- In this condition, do I must compile a SPL bin? and flash it to
the first page of NAND flash. if it's, I think the SPL should be less than 4K, or it's meaningless, It still need to copy remain content, and has no difference with a single u-boot.
- can I only compile a regular u-boot and do copy work and relocate
work at this single u-boot. namely, merge SPL and regular u-boot, does u-boot support this framework?
thanks very much!
From 袁建鹏 (Yuan Jianpeng)
U-Boot mailing list U-Boot@lists.denx.de https://lists.denx.de/listinfo/u-boot
Best regards,
Lukasz Majewski
--
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd@denx.de
participants (2)
-
herbert
-
Lukasz Majewski