QEMU ARM Setup filesystem crash on SDK 2.0

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

QEMU ARM Setup filesystem crash on SDK 2.0

582 Views
sarayuksivanand
Contributor I

Hi ,

 

I was able to run QEMU with LS1043ardb on a debian VM running on my windows machine . I am using the SDK 2.0 and i have followed the steps in the document (https://www.nxp.com/docs/en/supporting-information/QORIQ-SDK-2.0-IC-REV0.pdf?fsrch=1&sr=3&pageNum=1 ) and have been able to complete the fsl-image-virt and was able to launch the qemu using the below command. I have built the base SDK without any additional changes.

./tmp/sysroots/x86_64-linux/usr/bin/qemu-system-aarch64 -m 512 -mem-path /var/lib/hugetlbfs/pagesize-2MB -nographic -cpu cortex-a53 -machine type=virt -kernel ./tmp/deploy/images/ls1043ardb/Image -serial tcp::4446,server,telnet -initrd /home/sarayu/code/yocto_NXP_nocache/QorIQ-SDK-V2.0-20160527-yocto/build_ls1043ardb/tmp/deploy/images/ls1043ardb/fsl-image-virt-ls1043ardb-20180405053052.rootfs.ext2.gz -append 'root=/dev/ram0 rw console=ttyAMA0 rootwait earlyprintk' -monitor stdio

Though i am able to launch qemu it shows the below error logs ,

[   13.084109] RAMDISK: gzip image found at block 0

[   92.753965] RAMDISK: incomplete write (29188 != 32768)

[   92.755767] write error

[   93.167692] VFS: Mounted root (ext2 filesystem) on device 1:0.

[   93.171953] devtmpfs: mounted

[   93.237894] Freeing unused kernel memory: 472K (ffff800000b14000 - ffff800000b8a000)

[   93.240466] Freeing alternatives memory: 48K (ffff800000b8a000 - ffff800000b96000)

[   95.885856] EXT2-fs (ram0): error: read_inode_bitmap: Cannot read inode bitmap - block_group = 43, inode_bitmap = 352258

INIT: version 2.88 booting

[  102.627002] EXT2-fs (ram0): error: read_block_bitmap: Cannot read block bitmap - block_group = 37, block_bitmap = 303105

[  116.708431] EXT2-fs (ram0): error: read_block_bitmap: Cannot read block bitmap - block_group = 37, block_bitmap = 303105

[  137.498031] EXT2-fs (ram0): error: read_block_bitmap: Cannot read block bitmap - block_group = 37, block_bitmap = 303105

[  152.047471] EXT2-fs (ram0): error: read_block_bitmap: Cannot read block bitmap - block_group = 37, block_bitmap = 303105

Starting udev

[  158.191046] attempt to access beyond end of device

[  158.196189] ram0: rw=0, want=593340, limit=524288

[  158.198853] Buffer I/O error on dev ram0, logical block 296669, async page read

[  158.210617] attempt to access beyond end of device

So , when i try to create any file/folder i get the below error ,

root@ls1043ardb:~# mkdir temp
[ 4695.299191] EXT2-fs (ram0): error: read_block_bitmap: Cannot read block bitmap - block_group = 37, block_bitmap = 303105
mkdir: cannot create directory 'temp': Input/output error
root@ls1043ardb:~#

I am unable to do anything with the qemu because of this filesystem error.

Can you please help me resolve this issue ?

Thanks and Regards,

Sarayu

0 Kudos
1 Reply

434 Views
yipingwang
NXP TechSupport
NXP TechSupport

Hello sarayu k sivanandam,

Please  try the following suggestion:

1. Please build a smaller rootfs filesystem, please refer to the method in Error on Topaz/fs-core-image/LXC/Libvirt .

2. Please add "ramdisk_size=10000000" in bootargs.


Have a great day,
TIC

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos