mounting a root file system

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

mounting a root file system

7,031件の閲覧回数
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

ラベル(2)
タグ(1)
9 返答(返信)

3,429件の閲覧回数
daiane_angolini
NXP Employee
NXP Employee

Please, keep us updated

0 件の賞賛
返信

3,429件の閲覧回数
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,430件の閲覧回数
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 件の賞賛
返信

3,430件の閲覧回数
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,430件の閲覧回数
SANJEEV1z
Contributor III

hi daiane,

i want to mount roof file system through nfs

regards

sanjeev

3,430件の閲覧回数
qiang_li-mpu_se
NXP Employee
NXP Employee

You can reference to the attached Linux BSP user guider.

3,430件の閲覧回数
SANJEEV1z
Contributor III

please send me Linux BSP user guider

0 件の賞賛
返信

3,429件の閲覧回数
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 件の賞賛
返信

3,429件の閲覧回数
SANJEEV1z
Contributor III

thanks daiane

0 件の賞賛
返信