Linux 5.1移植到orange pi (七)--搭建NFS

1:Ubuntu主机安装NFS-server

sudo apt-get install nfs-kernel-server

sudo vim /etc/exports 

++
/home/xxx/nfs *(rw,sync,no_root_squash,no_subtree_check)

exportfs -rv

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

2:Orangepi安装NFS-common

sudo apt install nfs-common

 mount 192.168.0.107:/home//zhangtao/NFSshare /mnt/


root@OrangePi:/mnt# sudo showmount -e 192.168.0.107
Export list for 192.168.0.107:
/home/zhangtao/NFSshare *

3:Build Orange pi报错


root@ubuntu:/home/zhangtao/share/OrangePiH3# ./build.sh
Destination /home/zhangtao/share/OrangePiH3/output/rootfs is not empty.
Clean up space.
Extracting ... + bsdtar -xpf /home/zhangtao/share/OrangePiH3/external/ubuntu-base-16.04.5-base-armhf.tar.gz -C /home/zhangtao/share/OrangePiH3/output/rootfs
+ echo OK
OK
+ cp /usr/bin/qemu-arm-static /home/zhangtao/share/OrangePiH3/output/rootfs/usr/bin
+ cat
+ chmod a+x /home/zhangtao/share/OrangePiH3/output/rootfs/usr/sbin/policy-rc.d
+ case $DISTRO in
+ rm /home/zhangtao/share/OrangePiH3/output/rootfs/etc/resolv.conf
+ cp /etc/resolv.conf /home/zhangtao/share/OrangePiH3/output/rootfs/etc/resolv.conf
+ '[' xenial = xenial ']'
+ DEB=ubuntu
+ DEBUSER=orangepi
+ EXTRADEBS='software-properties-common zram-config ubuntu-minimal'
+ ADDPPACMD=
+ DISPTOOLCMD='apt-get -y install sunxi-disp-tool'
+ add_ubuntu_apt_sources xenial
+ local release=xenial
+ cat
+ set_firefox
+ '[' 0 = 1 ']'
+ rm -rf /home/zhangtao/share/OrangePiH3/output/rootfs/etc/apt/sources.list.d/proposed.list
+ cat
+ chmod +x /home/zhangtao/share/OrangePiH3/output/rootfs/second-phase
+ do_chroot /second-phase
+ cmd=/second-phase
+ chroot /home/zhangtao/share/OrangePiH3/output/rootfs mount -t proc proc /proc
chroot: failed to run command ‘mount’: Exec format error
+ true
+ chroot /home/zhangtao/share/OrangePiH3/output/rootfs mount -t sysfs sys /sys
chroot: failed to run command ‘mount’: Exec format error
+ true
+ chroot /home/zhangtao/share/OrangePiH3/output/rootfs /second-phase
chroot: failed to run command ‘/second-phase’: Exec format error
+ cleanup
+ '[' -e /home/zhangtao/share/OrangePiH3/output/rootfs/proc/cmdline ']'
+ '[' -d /home/zhangtao/share/OrangePiH3/output/rootfs/sys/kernel ']'
+ '[' -d /tmp/tmp.22rPln2aWG ']'
+ rm -rf /tmp/tmp.22rPln2aWG

sudo apt purge qemu-user-static
sudo apt install qemu-user-static

1:https://github.com/orangepi-xunlong/OrangePi_Build/issues/5
2:https://github.com/loboris/OrangePi-BuildLinux/issues/8

没想到回答全是自己回答过的,

  • 1
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值