TI中文支持网
TI专业的中文技术问题搜集分享网站

求助DM8127 IPNC RDK的网络问题

ipnc rdk版本为3.5

从nand中ubifs启动,进入系统网络不通,必须在相机里ping一下主机ip,然后网络就通畅了,这次ping也是直接成功;从主机ping相机无效,不能通。

uboot args如下两种都试过,不知道是不是参数设置有问题

setenv bootargs 'console=ttyO0,115200n8 rootwait=1 rw ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs init=/init mem=80M vram=4M notifyk.vpssm3_sva=0xBFD00000 ip=192.168.1.168 eth=00.0C.0C.02.39.6F cmemk.phys_start=0x85000000 cmemk.phys_end=0x89000000 cmemk.allowOverlap=1 earlyprintk'

setenv bootargs 'console=ttyO0,115200n8 rootwait=1 rw ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs init=/init mem=80M vram=4M notifyk.vpssm3_sva=0xBFD00000 ip=192.168.1.168:192.168.1.37:192.168.1.1:255.255.255.0:::off eth=00.0C.0C.02.39.6F cmemk.phys_start=0x85000000 cmemk.phys_end=0x89000000 cmemk.allowOverlap=1 earlyprintk'

uboot、内核用光盘自带的和自己编译的都试过,都是这问题

然后nfs启动不成功,应该也是上述问题导致的,不知道是不是内核的网络驱动有问题,大家指教一下,谢谢

kunlong tian:

steven Lee1

ipnc rdk版本为3.5

从nand中ubifs启动,进入系统网络不通,必须在相机里ping一下主机ip,然后网络就通畅了,这次ping也是直接成功;从主机ping相机无效,不能通。

uboot args如下两种都试过,不知道是不是参数设置有问题

setenv bootargs 'console=ttyO0,115200n8 rootwait=1 rw ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs init=/init mem=80M vram=4M notifyk.vpssm3_sva=0xBFD00000 ip=192.168.1.168 eth=00.0C.0C.02.39.6F cmemk.phys_start=0x85000000 cmemk.phys_end=0x89000000 cmemk.allowOverlap=1 earlyprintk'

setenv bootargs 'console=ttyO0,115200n8 rootwait=1 rw ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs init=/init mem=80M vram=4M notifyk.vpssm3_sva=0xBFD00000 ip=192.168.1.168:192.168.1.37:192.168.1.1:255.255.255.0:::off eth=00.0C.0C.02.39.6F cmemk.phys_start=0x85000000 cmemk.phys_end=0x89000000 cmemk.allowOverlap=1 earlyprintk'

uboot、内核用光盘自带的和自己编译的都试过,都是这问题

然后nfs启动不成功,应该也是上述问题导致的,不知道是不是内核的网络驱动有问题,大家指教一下,谢谢

steven Lee1:

回复 kunlong tian:

谢谢你的回复

我试了一下,把相机的switch切换到DHCP模式,相机和电脑直连

bootargs参数设置如下:setenv bootargs 'console=ttyO0,115200n8 rootwait=1 rw ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs init=/init mem=80M vram=4M notifyk.vpssm3_sva=0xBFD00000 ip=dhcp eth=00.0C.0C.02.39.6F cmemk.phys_start=0x85000000 cmemk.phys_end=0x89000000 cmemk.allowOverlap=1 earlyprintk'

内核启动的时候打印信息如下:

CPSW phy found : id is : 0x4dd074PHY 0:01 not foundSending DHCP requests ..PHY: 0:00 – Link is Up – 1000/Full…. timed out!IP-Config: Reopening network devices…

CPSW phy found : id is : 0x4dd074PHY 0:01 not foundSending DHCP requests .PHY: 0:00 – Link is Up – 1000/Full….. timed out!IP-Config: Auto-configuration of network failed.UBIFS: recovery neededUBIFS: recovery completedUBIFS: mounted UBI device 0, volume 0, name "rootfs"UBIFS: file system size:   103612416 bytes (101184 KiB, 98 MiB, 816 LEBs)UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)UBIFS: media format:       w4/r0 (latest is w4/r0)UBIFS: default compressor: lzo

上面dhcp自动配置那里会卡上好几分钟,进入系统之后ifconfig如下:

eth0      Link encap:Ethernet  HWaddr 00:0C:0C:02:39:6F            UP BROADCAST NOTRAILERS RUNNING ALLMULTI MULTICAST  MTU:1500  Metric:1          RX packets:13 errors:0 dropped:0 overruns:0 frame:0          TX packets:17 errors:0 dropped:0 overruns:0 carrier:0          collisions:0 txqueuelen:1000           RX bytes:1279 (1.2 KiB)  TX bytes:10030 (9.7 KiB)          Interrupt:40

lo        Link encap:Local Loopback            inet addr:127.0.0.1  Mask:255.0.0.0          UP LOOPBACK RUNNING  MTU:16436  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:0           RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

网络当然是不通的,dhcp还没配置到ip,过了几分钟之后会有如下打印信息

net_get_netmask: ioctl SIOCGIFNETMASK: Cannot assign requested address

CPSW phy found : id is : 0x4dd074PHY 0:01 not foundnet_search_gateway:eth0, 1A8C0, 0, 1dns=192.168.1.1net_search_gateway:eth0, 1A8C0, 0, 1net_search_gateway:eth0, 0, FE01A8C0, 3dns=192.168.1.1g_file_storage gadget: No serial-number string provided!g_file_storage gadget: File-backed Storage Gadget, version: 1 September 2010g_file_storage gadget: Number of LUNs=1g_file_storage gadget-lun0: ro=0, nofua=0, file: /dev/sbulla[09/Nov/2012:09:06:19 +0000] boa: server version Boa/0.94.13[09/Nov/2012:09:06:19 +0000] boa: server built Jul 17 2013 at 17:44:22.[09/Nov/2012:09:06:19 +0000] boa: starting server pid=578, port 80queue id:0<UDN>uuid:Upnp-TVEmulator-1_0-00_0016014191</UDN>

ApproDrvInit: 9ApproDrvInit: 10Upnp port is 0UPnP Initialized OK ip=192.168.1.168, port=0desc_doc_url = http://192.168.1.168/tvdevicedesc.xml

然后网络才会通,这个情况不知道你们遇到过没?

如果设置为nfs启动模式,设置dhcp,bootargs参数如下:setenv bootargs 'console=ttyO0,115200n8 root=/dev/nfs rw mem=80M vram=4M notifyk.vpssm3_sva=0xBFD00000 nfsroot=192.168.1.37:/opt/IPNC_RDK_Release_V3.5/Source/ipnc_rdk/target/filesys,nolock ip=dhcp eth=00.0C.0C.02.39.6F cmemk.phys_start=0x85000000 cmemk.phys_end=0x89000000 cmemk.allowOverlap=1 earlyprintk'

会一直卡在下面这一段:

CPSW phy found : id is : 0x4dd074PHY 0:01 not foundSending DHCP requests ..PHY: 0:00 – Link is Up – 1000/Full…. timed out!IP-Config: Retrying forever (NFS root)…

CPSW phy found : id is : 0x4dd074PHY 0:01 not foundSending DHCP requests .PHY: 0:00 – Link is Up – 1000/Full….. timed out!IP-Config: Retrying forever (NFS root)…

CPSW phy found : id is : 0x4dd074PHY 0:01 not foundSending DHCP requests .PHY: 0:00 – Link is Up – 1000/Full….. timed out!IP-Config: Retrying forever (NFS root)…

CPSW phy found : id is : 0x4dd074PHY 0:01 not foundSending DHCP requests .PHY: 0:00 – Link is Up – 1000/Full….. timed out!IP-Config: Retrying forever (NFS root)…

CPSW phy found : id is : 0x4dd074PHY 0:01 not foundSending DHCP requests .PHY: 0:00 – Link is Up – 1000/Full….. timed out!IP-Config: Retrying forever (NFS root)…

CPSW phy found : id is : 0x4dd074PHY 0:01 not foundSending DHCP requests .PHY: 0:00 – Link is Up – 1000/Full…

不知道是不是因为等待的时间不够长。。。

请帮我分析一下,谢谢

 

kunlong tian:

回复 steven Lee1:

不好意思一开始可能理解错了

ubifs启动bootargs如你一开始设的两种方式,switch选择dhcp要通过路由器,直连应该是无效的,你可以试一下这种

switch用静态ip,启动后默认为192.168.1.168,直连你看一下本地pc网络设置,我们这里是没有问题的

NFS启动貌似bootargs里要设为dhcp,也是要通过路由器

如果用直连的话,才需要设静态ip,但以这种方式不知道为什么总是挂不上nfs

steven Lee1:

回复 kunlong tian:

多谢您的回复

那我试试通过路由器设置dhcp模式挂载nfs启动看看

直连静态ip我们这个启动之后网络没连上的问题也不知道是为什么,有时候可以连上有时候不能连上

junliang zhang:

回复 steven Lee1:

  请问你这个问题解决了么,我现在也遇到这个问题了,谢谢

赞(0)
未经允许不得转载:TI中文支持网 » 求助DM8127 IPNC RDK的网络问题
分享到: 更多 (0)