搭建NFS环境并从NFS启动开发板
来源:互联网 发布:淘宝商家和快递合作 编辑:程序博客网 时间:2024/06/11 19:32
搭建NFS环境并从NFS启动开发板
编译好ltib后,就可以从中获得我们所需的u-boot、kernel、文件系统了,我们可以把这三部分内容下载(通过freescale提供的Mfgtools工具)到开发板系统就可以跑起来。但是,调试时我们需要频繁的修改内核配置,每次都用这个工具下载就太麻烦,而使用NFS就可以避免这个问题,大大提高开发效率。下面是在Ubuntu12.04 LTS下搭建NFS调试环境的步骤。
1 Ubuntu主机环境设置
(2)Make a tftp directory here(Ex: make /tftpboot as tftp directory )
(3)Open /etc/inetd.conf and edit
(4)Restart tftp service
(2)Create symbolic link to ltib/rootfs
and add as belows:
(4)Restart the NFS server
另外,u-boot环境变量也需做相应的配置,下面附上我的u-boot环境变量值做参考:
以上为nfs开发环境的搭建步骤.
1 Ubuntu主机环境设置
1.1 安装tftp服务
(1)Setup tftp server files
apt-get install tftpd tftp openbsd-inetd
(2)Make a tftp directory here(Ex: make /tftpboot as tftp directory )
mkdir /tftpbootchmod 777 /tftpboot
(3)Open /etc/inetd.conf and edit
gedit /etc/inetd.confand add belows:
tftp dgram udp wait nobody /usr/sbin/tcpd /usr/sbin/in.tftpd /tftpboot
(4)Restart tftp service
sudo /etc/init.d/openbsd-inetd restart
1.2 NFS配置
(1)Install NFS service on host
sudo apt-get install nfs-kernel-server
(2)Create symbolic link to ltib/rootfs
sudo ln -s <ltib instalation folder>/rootfs /tftpboot/rootfs(3)Setup export:
sudo gedit /etc/exports
and add as belows:
/tftpboot/rootfs/ *(rw,no_root_squash,no_subtree_check,async)
(4)Restart the NFS server
sudo /etc/init.d/nfs-kernel-server restart
2 Setting Target Linux Image to use NFS
2.1 配置ltib选项
./ltib -m config
(1)On first page menu, go to "Target Image Generation -> Options" ,Select the option NFS only and choose linux kernel version、u-boot then exit LTIB configuration to compile with the new configuration.
(2)LTIB should start new compiling and create a new Linux image on <ltib folder>/rootfs/boot/uImage (3) Copy the created image on <ltib folder>/rootfs/boot/uImage to /tftpboot/uImage
另外,u-boot环境变量也需做相应的配置,下面附上我的u-boot环境变量值做参考:
MX6Solo SABRESD U-Boot > printbootdelay=3baudrate=115200ipaddr=192.168.6.103 //开发板的ipserverip=192.168.6.34 //服务器ipnetmask=255.255.255.0loadaddr=0x10800000rd_loadaddr=(0x10800000 + 0x300000)netdev=eth0ethprime=FEC0uboot=u-boot.binkernel=uImageethaddr=00:0C:0C:A0:02:6Anfsroot=/tftpboot/rootfs //文件系统bootargs_base=setenv bootargs console=ttymxc0,115200 nosmpbootargs_nfs=setenv bootargs ${bootargs} root=/dev/nfs ip=dhcp nfsroot=${serverip}:${nfsroot},v3,tcpbootcmd_net=run bootargs_base bootargs_nfs; tftpboot ${loadaddr} ${kernel}; bootmbootargs_mmc=setenv bootargs ${bootargs} ip=dhcp root=/dev/mmcblk0p1 rootwaitbootcmd_mmc=run bootargs_base bootargs_mmc; mmc dev 3; mmc read ${loadaddr} 0x800 0x2000; bootmethact=FEC0bootcmd=run bootcmd_netstdin=serialstdout=serialstderr=serial //成功的启动参数
以上为nfs开发环境的搭建步骤.
0 0
- E9 搭建 NFS 环境并从 NFS 启动开发板
- 搭建NFS环境并从NFS启动开发板
- 天嵌E9卡片i.mx6q-Linux12.04搭建nfs环境以及从nfs启动开发板
- 天嵌E9卡片i.mx6q-Linux12.04搭建nfs环境以及从nfs启动开发板
- NFS开发环境搭建
- OK6410开发板:挂载NFS、从NFS启动:
- AT91SAM9X5-EK开发板从NFS启动
- 开发板从nfs文件系统启动
- 开发板设置从nfs启动
- mini2440 nfs开发环境搭建
- NFS启动开发板
- 开发板NFS启动
- OK6410开发板开发环境搭建-NFS文件启动和使用dnw2烧写镜像文件
- OK6410开发板开发环境搭建-NFS文件启动和使用dnw2烧写镜像文件
- OK6410开发板开发环境搭建-NFS文件启动和使用dnw2烧写镜像文件
- 从NFS启动Linux并挂载根文件系统
- 为OK6410开发板搭建nfs交叉开发环境
- Ubuntu搭建NFS并挂载到6410开发板
- CodeForces 549D (暴力、模拟)
- OC内存管理 MRC与ARC
- MySQL Replication主从和双主配置
- Hibernate的ID生成策略
- java中的类型转换
- 搭建NFS环境并从NFS启动开发板
- 欢迎使用CSDN-markdown编辑器
- 安装ttf-mscorefonts-installer的方法
- java面向对象(继承)
- javascript深入理解js闭包
- Math类中的round,ceil,floor
- Objective-C学习笔记之分类
- VC++6.0 修改项目工程名称
- 最近最小天数日期计算,程序有问题~