mounting a root file system

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

mounting a root file system

7,330 Views
SANJEEV1z
Contributor III

hi,

we brought new i.MX6q SABRELITE board,

anybody  has document about "how to mount a root file system. "

if so, please share

regards

sanjeev

Labels (2)
Tags (1)
9 Replies

3,728 Views
daiane_angolini
NXP Employee
NXP Employee

Please, keep us updated

0 Kudos
Reply

3,728 Views
SANJEEV1z
Contributor III

hi daiane,

     about mounting root file system, from the below link, i got BSP

<Embedded Linux software, platform, distributions, packages, libraries, development and debugging too...>

i simply  put rfs file(got from the link), into server machine

and i executed the commands as in PDF section 3.3.

and i mounted file system:)

thanks and regards

sanjeev

3,729 Views
ajaypatel
Contributor I

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. 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. 2. Unpack urmadisk.img using following command :

dd if=uramdisk.img of=ramdisk bs=64 skip=1

  1. 3. Now extract it : zcat ramdisk >my_ramdisk
  2. 4. Mkdir rootfs
  3. 5. Cd rootfs
  4. 6. cpio -id < ../ my_ramdisk
  5. 7. After above steps you can find root filesystem files in rootfs folder.
  6. 8. After any modification in filesystem, you can repack the rootfs using following commands:

find ./ | cpio -H newc -o > ../newramdisk

cd ..

gzip newramdisk

  1. 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-

0 Kudos
Reply

3,729 Views
daiane_angolini
NXP Employee
NXP Employee

You will copy any "rootfs" to the SDCard, and then you will set the kernel command line (the default one will mount the rootfs)

Please, let me know what commands/steps you already made

3,729 Views
SANJEEV1z
Contributor III

hi daiane,

i want to mount roof file system through nfs

regards

sanjeev

3,729 Views
qiang_li-mpu_se
NXP Employee
NXP Employee

You can reference to the attached Linux BSP user guider.

3,729 Views
SANJEEV1z
Contributor III

please send me Linux BSP user guider

0 Kudos
Reply

3,728 Views
daiane_angolini
NXP Employee
NXP Employee

SANJEEV1z follow the User Guide that Qiang Li had included in his reply.

Start from step 1

When you face problems, please, let us know. Post the log and which step you´re trying.

When you have finished the User Guide, you will be able to choose from where you will boot, and you will understand what you´re doing.

baby-steps, ok?

0 Kudos
Reply

3,728 Views
SANJEEV1z
Contributor III

thanks daiane

0 Kudos
Reply