CANMV-K230-LP4 V3.0 以太网口 LINUX是否没有打开

Viewed 66

问题描述


用 micropython 镜像 以太网口正常。 用RTOS+LINUX 镜像烧录,查网络服务
[root@canaan ~ ]#ifconfig eth0 up
[root@canaan ~ ]#ifconfig
eth0 Link encap:Ethernet HWaddr 00:E0:4C:B3:B4:E4
inet6 addr: fe80::2e0:4cff:feb3:b4e4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:726 (726.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
这个是否是服务没有打开

硬件板卡


CANMV_K230 _LP4 V3.0

软件版本


CanMV-K230_sdcard_v1.6_nncase_v2.8.3

硬件板卡


CANMV_K230 _LP4 V3.0

软件版本


CanMV-K230_sdcard_v1.6_nncase_v2.8.3

2 Answers

需要手工指定打开服务

你好,我也在使用linux+RTOS系统,请问如何开启网络服务呢?

在大核命令行中输入
ifconfig eth0 192.168.110.150 netmask 255.255.255.0 up
用这个命令设置IP 为 192.168.110.150 并开启使用