mounting a root file system

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

mounting a root file system

6,241 次查看
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 回复数

2,639 次查看
daiane_angolini
NXP Employee
NXP Employee

Please, keep us updated

0 项奖励

2,639 次查看
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

2,640 次查看
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 项奖励

2,640 次查看
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

2,640 次查看
SANJEEV1z
Contributor III

hi daiane,

i want to mount roof file system through nfs

regards

sanjeev

2,640 次查看
qiang_li-mpu_se
NXP Employee
NXP Employee

You can reference to the attached Linux BSP user guider.

2,640 次查看
SANJEEV1z
Contributor III

please send me Linux BSP user guider

0 项奖励

2,639 次查看
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 项奖励

2,639 次查看
SANJEEV1z
Contributor III

thanks daiane

0 项奖励