sifive / freedom

Source files for SiFive's Freedom platforms
Apache License 2.0
1.11k stars 286 forks source link

I want to load the device tree from the SD card #140

Closed ImagineMiracle-wxn closed 5 years ago

ImagineMiracle-wxn commented 5 years ago

I need to remove the u500 device tree file from the free project and load it into the SD card by bbl. And already done so. My solution is this, write the device tree file and bbl to the SD card at the same time, and specify their location, 'freedom-u-sdk/riscv-pk/machine/minit.c' to load with this fixed address Device tree file. The device tree is not used in ‘freedom/bootrom/sdboot/head.S’. The bitstream and bbl image can be successfully generated, but when running on the u500, it will be stuck at the load bbl. That is to say, the print message "BOOT" stops working. image

And, What is the role of 0x7ffff000? 'freedom/bootrom/sdbot/head.S' image