[Buildroot] RISCV64 kernel panic: cannot open root device

Mark Corbin mark.corbin at embecosm.com
Mon Feb 25 09:40:51 UTC 2019


Hello Jay

On 25/02/2019 09:03, Jay Aurabind wrote:
> Hi,
>
> I built 2018.11.2 version of buildroot with config https://pastebin.com/eSPt939r
>
> I am getting a kernel panic due to "VFS: Cannot open root device "vda"
> or unknown-block(0,0): error -6". Full kernel log:
> https://pastebin.com/9zdZDDtR
>
> The command used for launching qemu is:
>
> qemu-system-riscv64 -nographic -machine virt -kernel output/images/bbl
>   -append "console=ttyS0"     -drive
> file=output/images/rootfs.ext2,format=raw,id=hd0     -device
> virtio-blk-device,drive=hd0   -netdev user,id=net0    -device
> virtio-net-device,netdev=net0
>
> What could be wrong?
>

At the moment RISC-V still requires a custom kernel. You need to choose
'custom git repository' for your kernel version and set...

URL of custom repository -> https://github.com/riscv/riscv-linux.git
Custom repository version -> 8fe28cb58bcb235034b64cbbb7550a8a43fd88be

Regards

Mark

-- 
Mark Corbin
Embecosm Ltd.
https://www.embecosm.com


More information about the buildroot mailing list