现在的位置: 首页 > 操作系统 > 正文

linux NFS相关tip

2018年07月06日 操作系统 ⁄ 共 2165字 ⁄ 字号 评论关闭

秒速赛车公式 www.l19l7.cn ?

This is a tip about how to update special file on rootfs on bench via NFS.

?

Initial phase:prepare a? writable rootfs on bench and exported shared directory.

?????????????? 1 modify /home/user/LTIB/rootfs/etc/fstab,

/dev/mmcblk0p1? /factory_data?? ??????????? auto??? ?? defaults,rw,noatime???????????? 0?????? 0
/dev/mmcblk0p2? /usr??????????? ?????? auto??? ?? defaults,rw,_netdev???????????? 0?????? 0
/dev/mmcblk0p3? /usr/local/share ???????? auto?? ??? defaults,rw,_netdev???????????? 0?????? 0

2 run aa0978af/sw/tools/scripts/utilities/ create_dv_images.sh #this will regenerate all of the partition images except dv_fbl_rootfs and dv_fbl_uImage.

?

3 copy rootfs.ext2.* to u stick to update the rootfs via usb

?

4 modify /etc/exports, then run “sudo /etc/init.d/nfs-kernel-server restart” to apply the new configure

#add one line to tail of fstab, for example, export aa0978af/sw/out/linux_dv/bin will export via NFS.

#192.168.53.53 is the ip of bench which can access the exported directory

/home/user/synergy_work/10027501_AF_Parent_Test/aa0978af/sw/out/linux_dv/bin 192.168.53.53(rw,nohide,no_root_squash,async)

?

Main loop:

1 press any key to stop at uboot when powering on the bench

?

2 input “run bootcmd_nor_ip” and press enter. #this will give the bench a static IP 192.168.53.53

?

3 click on an icon just on the right side of Terminal icon on the top panel of vm linux, this will start the telnet to 192.168.53.53. login with root

?

4 on the telnet command line, run

“mount -t nfs -o nolock 192.168.53.2: /home/user/synergy_work/10027501_AF_Parent_Test/aa0978af/sw/out/linux_dv/bin /mnt/nfs”. #then the exported directory will mounted on /mnt/nfs

?

5 update the special files ?by copy which from /mnt/nfs to correspondent destination directory as you like

#for example copy /mnt/nfs/icr_core /usr/local/bin

?

6 reboot the bench, then you will see the result of what you have modify on you code.

?

??????????????? #you may also kill the old program,then restart the newly program, skipping the reboot phase.

?

This is a tip to change a ro mounted file system to rw without refreshing new image.

#change to rw mounting, then /usr can be written.

mount -o remount,rw ?/usr

?

#change to ro mounting, then /usr can’t be written.

mount -o remount,ro ?/usr

?mount -o remount,rw? /???????? /usr 和/startup分区不同,所以可以用此命令将整个根目录remount为可写的

对目标去调试信息减小目标size,但可以打印信息
/opt/freescale/usr/local/gcc-4.4.4-glibc-2.11.1-multilib-1.0/arm-fsl-linux-gnueabi/bin/arm-fsl-linux-gnueabi-strip icr_core_1

抱歉!评论已关闭.

  • 听,盲童唱出心底的阳光 2018-12-17
  • 老婆告老公索债780万 原是二人自导自演 2018-12-17
  • 井冈山交警开展重点车辆严重交通违法行为有奖举报工作 2018-12-17
  • 停车收费新政首日举报量攀升 2018-12-17
  • 这是世界杯开赛当晚的广西 2018-12-16
  • 【理上网来·喜迎十九大】建设世界一流军队的科学指南 2018-12-16
  • 第六届北京农业嘉年华--北京频道--人民网 2018-12-16
  • 【专题】节能降耗 保卫蓝天——浙江省暨杭州市2018年节能宣传周 2018-12-15
  • 【奋斗在新时代】劳道“歹猫”增色互联网“表情” 2018-12-15
  • 驾车撞倒城管队员反复碾压 义乌暴力摊贩被刑拘 2018-12-15
  • 《中国汽车报》2018“西部温暖计划”公益试驾活动即将启程 2018-12-14
  • 奇瑞新能源瑞虎3xe上市 售价8.98万 2018-12-14
  • 几家性价比超高的烤肉店 赶紧去试试 2018-12-14
  • 和“看着就想笑”说说你的“8421” 2018-12-13
  • 中共十八大以来藏语新词术语发布 2018-12-13
  • 920| 136| 209| 865| 949| 220| 270| 195| 819| 354|