imx6 ubuntu1204 nfs环境搭建

来源:互联网 发布:joby八爪鱼 知乎 编辑:程序博客网 时间:2024/06/11 01:45

步骤三部曲 安装 配置 启动

=======================================


Tftp

apt-get install tftpd tftp openbsd-inetd 

mkdir /home/tftpboot

chmod 777 /home/tftpboot 



gedit /etc/inetd.conf 

tftp    dgram        udp        wait        nobody        /usr/sbin/tcpd /usr/sbin/in.tftpd      /opt/tftpboot 


sudo /etc/init.d/openbsd-inetd restart 



MX6Q SABRESD U-Boot >tftpboot uImage

======================================================================================


NFS


apt-get install nfs-kernel-server 

gedit /etc/exports  
/home/android_nfs  rootfs   *(rw,sync,no_root_squash) 


sudo /etc/init.d/portmap restart 
sudo /etc/init.d/nfs-kernel-server restart 


=======================================================


uboot 启动参数设置

setenv bootfile uImage
setenv nfsroot /home/android_nfs

setenv bootcmd 'dhcp;bootm'
set bootargs console=ttymxc0,115200 init=/init ip=dhcp nfsroot=${serverip}:/${nfsroot}  video=mxcfb0:dev=lcd,FRIDA-WSVGA,if=RGB24,bpp=32 video=mxcfb1:off video=kxcfb2:off fbmen=10M fb0base=0x27b00000 vmalloc=400M androidboot.console=ttymxc0  androidboot.hardware=freescale

======================================================================


另外还需要参照fresscale文档修改init.rc init.freescale.rc

=====================================================================



====================================================================

sudo apt-get update

sudo apt-get install samba

sudo apt-get install smbfs  //cifs-utils


备注一个samba 字段

[santoku]

comment = home

path = /home/santoku

writeable = yes

guest ok = yes


vi /etc/samba/smb.conf

/etc/init.d/smbd restart


登陆==》192.168.xx.xx\santoku


还原文件用下面的命令:   bz2.aa
cat a.chm.tar.bz2.a* | tar -jx



357483226@qq.com



0 0
原创粉丝点击