使用自定义yocto图像在Jetson Nano上没有以太网访问 [英] No ethernet access on jetson nano with custom yocto image
问题描述
我已经用收据为jetson nano创建了一个非常小的图像:
I've created a very minimal image for the jetson nano with the recepe:
inherit core-image
inherit distro_features_check
REQUIRED_DISTRO_FEATURES = "x11"
IMAGE_FEATURES += "package-management splash"
CORE_OS = "packagegroup-core-boot \
packagegroup-core-x11 \
packagegroup-xfce-base \
kernel-modules \
"
WIFI_SUPPORT = " \
ifupdown \
dropbear\
crda \
iw \
"
DEV_SDK_INSTALL = " \
opencv \
opencv-samples \
gstreamer1.0-omx-tegra \
python-numpy \
binutils \
binutils-symlinks \
coreutils \
cpp \
cpp-symlinks \
diffutils \
elfutils elfutils-binutils \
file \
g++ \
g++-symlinks \
gcc \
gcc-symlinks \
gdb \
gdbserver \
gettext \
git \
ldd \
libstdc++ \
libstdc++-dev \
libtool \
ltrace \
make \
pkgconfig \
python3-modules \
strace \
"
EXTRA_TOOLS_INSTALL = " \
bzip2 \
ethtool \
findutils \
grep \
i2c-tools \
iproute2 \
iptables \
less \
lsof \
nano \
nmap \
tcpdump \
unzip \
util-linux \
wget \
zip \
curl \
"
IMAGE_INSTALL += " \
${CORE_OS} \
${DEV_SDK_INSTALL} \
${EXTRA_TOOLS_INSTALL} \
${WIFI_SUPPORT} \
"
使用树莓派v2.1相机玩耍.到目前为止,一切工作正常,除了以太网访问.当我运行
To play around with a raspberry pi v2.1 camera. Everything works so far except ethernet access. When I run
ifconfig
我得到了一个IPv6 ip地址,并且一切看起来都很好(除非我也想要一个ipv4地址,但还没有考虑).但是当我运行命令
I get an IPv6 ip-address and everything is looking good (except I would also want a ipv4 address if but haven't looked into that yet). But when I run the command
ping google.com
说"ping:错误的地址google.com",如果我在8.8.8.8上运行ping,它将返回"ping:sendto:网络无法访问".
Is says "ping: bad address 'google.com' and if I run ping on 8.8.8.8 it returns "ping: sendto: network is uncreachable".
这不是以太网电缆或路由器出现问题,因为相同的以太网电缆和访问在我的PC上工作正常.当以太网连接到jetson nano时,绿色指示灯一直亮着,而橙色指示灯一直闪烁着.
It's not the ethernet cable or my router that has a problem, as the same ethernet cable and access works just fine on my PC. When the ethernet is connected to the jetson nano, the green light is constantly on while the orange light is constantly blinking.
是什么原因引起的问题,如何解决并重新访问互联网?
What could be causing the problem and how do I fix it and get access to the internet again?
推荐答案
我运行了命令:
ifup eth0
我有一个ipv4地址,然后一切正常.
I got a ipv4 address and then everything worked.
这篇关于使用自定义yocto图像在Jetson Nano上没有以太网访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!