Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uboot SPL Support in Nuclei Linux SDK #24

Open
fanghuaqi opened this issue Mar 13, 2024 · 0 comments
Open

Uboot SPL Support in Nuclei Linux SDK #24

fanghuaqi opened this issue Mar 13, 2024 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@fanghuaqi
Copy link
Member

fanghuaqi commented Mar 13, 2024

We have introduced a new branch called dev_nuclei_6.6_v2_spl to provide support for uboot spl.

Note

  • Currently only CORE=ux900fd BOOT_MODE=sd is supported, other configurations are not yet supported.
  • Nuclei CPU need to configured with L2 cache or your SoC have a SRAM can be used to run uboot spl
  • AMP is not supported in this branch.

With new introduced uboot spl, now boot process changed:

freeloader -> opensbi + uboot -> kernel -> freeloader -> uboot-spl -> opensbi + uboot -> kernel

The freeloader now assumed ddr is not yet initialized, so we have to copy uboot-spl from a fixed address in xip spiflash to a shared memory(here we use L2 cache CLM feature to provide a Cluster Local Memory), and then go to uboot spl, and let uboot spl to initialize ddr memory, and in uboot spl, you can do far more things than what you can do in freeloader.

And then uboot spl will initialize ddr memory, and load opensbi + uboot + dtb .composed uboot FIT image from fixed address in xip spiflash, and got to opensbi.

And in opensbi, it will disable L2 cache CLM feature, and enable L2 cache, and then go to Uboot, and uboot will load kernel and rootfs image, and boot linux kernel.

@fanghuaqi fanghuaqi self-assigned this Mar 13, 2024
@fanghuaqi fanghuaqi added the documentation Improvements or additions to documentation label Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant