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
没想到回答全是自己回答过的,