For i.MX6q SABRELITE board, root file system is in form of ramdisk image which is a part of the boot.img. boot.img is loaded on first partition of SD card which will not mount directly.
If you want to mount the root file system to access it, you have to follow these steps :
- 1. Get the urmadisk.img file. You can find this file from Android source code or from the prebuilt image set of the i.mx6q SABRELITE.
- 2. Unpack urmadisk.img using following command :
dd if=uramdisk.img of=ramdisk bs=64 skip=1
- 3. Now extract it : zcat ramdisk >my_ramdisk
- 4. Mkdir rootfs
- 5. Cd rootfs
- 6. cpio -id < ../ my_ramdisk
- 7. After above steps you can find root filesystem files in rootfs folder.
- 8. After any modification in filesystem, you can repack the rootfs using following commands:
find ./ | cpio -H newc -o > ../newramdisk
cd ..
gzip newramdisk
- 9. You can use mkimage command to create new uramdisk.img :
mkimage -A arm -T newramdisk -C none -n newramdisk -d newramdisk.gz newuramdisk.img
Thanks,
Ajay-