This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

how to indicate a rootfs on FastModel

I'm trying to run linux arm64 kernel on fast model. I followed the page https://wiki.linaro.org/HowTo/BuildArm64Kernel

After all steps, I had got linux-system-foundation.axf and linux-system.axf.

then I use command as below:

model_shell cadi_system_Linux64-Debug-GCC-4.1.so   linux-system-foundation.axf

The console complained that I didn't indicate a right root path. I had download the pre-built root filesystems

from Linaro Releases, But I don't know how to use it.

Cound anyone help me? thank you!

----

VFS: Cannot open root device "vda2" or unknown-block(254,2): error -6

Please append a correct "root=" boot option; here are the available partitions:

Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(254,2)

Call trace:

Parents
  • Assuming your model is based on the FVP_VE platform with a single cluster, you need to use the img.axf from Linaro Releases , instead of the img-foundation.axf if you want to use the MMC instead of the VirtioBlockDevice.

    In this image, the bootargs are set to use the filesystem from the MMC (root=/dev/mmcblk0p2 instead of /dev/vda2)

    The MMC model does not support images larger than 2GB, so you would not be able to use some of the pre-built filesystem images from Linaro with it, you would need to follow the instructions to rebuild a filesystem image (from the same page) and use
    linaro-media-create --dev fastmodel --output-directory fastmodel --image_size 2000M --hwpack <hwpack filename> --binary <rootfs filename>

    with --image-size smaller than 2GB

Reply
  • Assuming your model is based on the FVP_VE platform with a single cluster, you need to use the img.axf from Linaro Releases , instead of the img-foundation.axf if you want to use the MMC instead of the VirtioBlockDevice.

    In this image, the bootargs are set to use the filesystem from the MMC (root=/dev/mmcblk0p2 instead of /dev/vda2)

    The MMC model does not support images larger than 2GB, so you would not be able to use some of the pre-built filesystem images from Linaro with it, you would need to follow the instructions to rebuild a filesystem image (from the same page) and use
    linaro-media-create --dev fastmodel --output-directory fastmodel --image_size 2000M --hwpack <hwpack filename> --binary <rootfs filename>

    with --image-size smaller than 2GB

Children
No data