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

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

抱歉!评论已关闭.

  • 倒着走能治腰颈椎痛?假的! 2019-04-19
  • 长效机制加速推进 楼市下半年或持续降温 2019-04-19
  • 树立文化自信 创新节庆模式 2019-04-19
  • 朝韩将军级会谈时隔11年后在板门店重启 2019-04-19
  • 经济日报多媒体数字报刊 2019-04-18
  • 搞好公有制就是好,故得出结论:计划经济好。 2019-04-18
  • 云南理发店老板涉嫌杀害女演员因办卡纠纷起杀心 2019-04-18
  • 南海网-海南新闻网-权威媒体 海南门户 2019-04-17
  • 海底捞回应侵犯音乐人林海著作权:已停止播放 2019-04-17
  • 自然型社会和规则性社会,是会随着科技的改变而发生改变的,当然只有规矩也就是制度才能规范人的行为,所以国家是不会灭亡的,但国家的形式是会发生改变的。 2019-04-17
  • 惊艳!上外学子英译60首热门中文歌  让世界倾听中国 2019-04-16
  • 西安,给盲人朋友留一条路吧…无障碍设施盲道-编辑整合 2019-04-16
  • 的确如此。报刊亭取消的确是短视行为。把报刊亭设计的现代化一些,与城市绿化衔接起来,相得益彰,成为文化一景多好。 2019-04-16
  • 让更多企业和劳动者尝到协商的“甜头” 2019-04-16
  • 2014金家岭财富论坛嘉宾云集(二) 2019-04-15
  • 248| 14| 368| 9| 184| 923| 610| 580| 564| 924|