UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Observer amassa
Observer
115 Views
Registered: ‎12-06-2018

Linux rootfs file system 32MB

I am trying to boot Linux with a 32MB root filesystem. I am using busybox to create the rootfs with the following steps:

-$ dd if=/dev/zero of=ramdisk32.image bs=1024 count=32768

-$ mke2fs -F ramdisk32.image -L "ramdisk" -b 1024 -m 0

-$ tune2fs ramdisk32.image -i 0

-$ mkdir ramdisk

-$ sudo mount -o loop ramdisk32.image ramdisk/

-$ sudo cp -R _rootfs/* ramdisk

-$ sudo umount ramdisk/

-$ gzip -v9 ramdisk32.image

-$ mkimage -A arm -n 'RAM disk 32MB' -T ramdisk -C gzip -d ramdisk32.image.gz uramdisk.image.gz

However, when I attempt to boot Linux on my system, I get the error message

RAMDISK: incomplete write (17106 != 32768)

write error

EXT4-fs (ram0): bad geometry: block count 32768 exceeds size of device (16384 blocks)

...

Any help is appreciated. Thanks.

 

0 Kudos