openhwgroup / cva6-sdk

CVA6 SDK containing RISC-V tools and Buildroot
59 stars 64 forks source link

Booting gets stuck when systemd is selected in the update-buildroot branch #51

Closed faridsamandi closed 3 years ago

faridsamandi commented 3 years ago

Hi,

Apparently it is not possible to have systemd using the previous buildroot. So I tried the 'update-buildroot' branch to utilize a more up-to-date buildroot. With that, I could change the init system to systemd and included the systemd package in the image. However, the image doesn't boot; after copying the sd card content into the memory and printing the logo on the console, nothing is printed and kernel initialization procedure doesn't start. Since I was able to boot another image generated by the 'update-buildroot' branch, but without systemd, I think the problem probably has to do something with choosing systemd as the init system. Any help to debug this is really appreciated.

faridsamandi commented 3 years ago

Systemd increases bbl.bin's size and the zsbl was copying only the first 16MB of the sd card. I changed bootrom's code to copy 32MB and it got fixed.