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

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-02-16
  • 蒲县工商质监局非公党委举办2018元旦文艺会 2019-02-16
  • 人民网评:建设数字中国时不我待 2019-02-16
  • 618史上最壕“买家”现身 Google以 5.5亿美元投资京东 2019-02-15
  • 雍正官窑:朕就是这样的品味(图) 2019-02-15
  • 西安司法考试将试点机考 2019-02-15
  • 人民日报新媒体矩阵聚焦十九大 融媒报道"给你好看" 2019-02-14
  • 社会主义是过渡阶段,最终实现共产主义才是其目的。社会主义是在消灭私有制,建立公有制直至无私,实现共产主义。 2019-02-14
  • 四轮电动车销售火爆存安全隐患 专家:需建国家标准 2019-02-14
  • 看懂汽车三元催化器工作原理后还能当金子卖?难为非洲兄弟了! 2019-02-14
  • 周杰伦昆凌为儿子庆生 小小周帅气入镜 2019-02-13
  • 都以为机器人普及了,一切都不是问题了?机器人不需要不断升级?机器人生产啥?不需要人设计? 2019-02-13
  • 价值-热门标签-华商生活 2019-02-13
  • 上合组织引领发展 吉中合作稳步前行——访吉尔吉斯斯坦总统热恩别科夫 2019-02-13
  • 互联网金融协会提示:防范变相“现金贷”业务风险 2019-02-12
  • 673| 132| 648| 754| 445| 441| 471| 79| 691| 767|