原因:ubuntu16之后nfs默认使用nfs的版本为3,4
解决:原子用户手册中/【正点原子】I.MX6U网络环境TFTP&NFS搭建手册V1.3.1/第四章 4.3 NFS挂载文件系统
具体:
- sudo vim /etc/default/nfs-kernel-server
-
- 更改内容为如下所示:
- # Number of servers to start up
- #RPCNFSDCOUNT=8
- RPCNFSDCOUNT="-V 2 8"
-
- # Runtime priority of server (see nice(1))
- RPCNFSDPRIORITY=0
-
- # Options for rpc.mountd.
- # If you have a port-based firewall, you might want to set up
- # a fixed port here using the --port option. For more information,
- # see rpc.mountd(8) or http://wiki.debian.org/SecuringNFS
- # To disable NFSv4 on the server, specify '--no-nfs-version 4' here
- RPCMOUNTDOPTS="-V 2 --manage-gids"
-
- # Do you want to start the svcgssd daemon? It is only required for Kerberos
- # exports. Valid alternatives are "yes" and "no"; the default is "no".
- NEED_SVCGSSD=""
-
- # Options for rpc.svcgssd.
- RPCSVCGSSDOPTS="--nfs-version 2,3,4 --debug --syslog"
-
- 重新启动nfs服务
- sudo service nfs-kernel-server restart
如果系统比较新,如使用22.04,则还需要参考下面的文章,具体修改文件/etc/nfs.conf:
imx6ull 开发板uboot无法通过nfs下载ubuntu22虚拟机中共享文件
解决Ubuntu 22.04 LTS作为nfs server时根文件系统挂载失败的问题
原因:gcc版本过高导致的
解决:ubuntu20.04 编译uboot、linux内核时报multiple definition of `yylloc‘ 错误
原因:缺少库
解决:正点原子用户手册/常见问题汇总/第六章 内核移植问题/6.2.5 执行脚本没有生成zImage,只有Image
具体:
sudo apt-get install lzop
原因:缺少库
解决:内核编译make menuconfig报错,<command-line>: fatal error: curses.h: 没有那个文件或目录
具体:
sudo apt-get install libncurses5-dev
原子出厂设备树使用:以7寸屏为例
imx6ull-14x14-emmc-7-1024x600-c.dts ——> imx6ull-14x14-evk-emmc.dts——> imx6ull-14x14-evk.dts ——> imx6ull.dtsi
