kennylu

kennylu

0个粉丝

17

问答

0

专栏

0

资料

kennylu  发布于  2017-12-12 16:18:43
采纳率 0%
17个问答
3335

3520D无网卡设备

 
3520D 开发板,编译烧录后,没发现网卡设备,如何添加?3520D网卡芯片是哪个型号?




内核log:
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
NR_IRQS:128
GIC CPU mask not found - kernel will fail to boot.
GIC CPU mask not found - kernel will fail to boot.
sched_clock: 32 bits at 62MHz, resolution 16ns, wraps every 68719ms
Console: colour dummy device 80x30
Calibrating delay loop... 1594.16 BogoMIPS (lpj=7970816)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
Initializing cgroup subsys freezer
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0xc04337e8 - 0xc0433840
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 8 bytes.
Serial: AMBA PL011 UART driver
uart:0: ttyAMA0 at MMIO 0x12080000 (irq = 38) is a PL011 rev2
console [ttyAMA0] enabled
uart:1: ttyAMA1 at MMIO 0x12090000 (irq = 39) is a PL011 rev2
uart:2: ttyAMA2 at MMIO 0x120a0000 (irq = 40) is a PL011 rev2
bio: create slab at 0
SCSI subsystem initialized
hi-spi-master hi-spi-master.0: with 2 chip select slaves attached
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Switching to clocksource timer0
NET: Registered protocol family 2
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP: reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
RPC: Registered named UNIX socket transport module.
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
RPC: Registered tcp NFSv4.1 backchannel transport module.
NetWinder Floating Point Emulator V0.97 (double precision)
CPU PMU: probing PMU on CPU 0
hw perfevents: enabled with ARMv7 Cortex-A7 PMU driver, 5 counters available
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
squashfs: version 4.0 (2009/01/31) Phillip Lougher
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
fuse init (API version 7.22)
SGI XFS with ACLs, security attributes, realtime, large block/inode numbers, no debug enabled
msgmni has been set to 114
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254)
io scheduler noop registered
io scheduler deadline registered (default)
io scheduler cfq registered
brd: module loaded
loop: module loaded
hiahci: initializing
ahci ahci.0: can't get clock
ahci: SSS flag set, parallel bus scan disabled
ahci ahci.0: AHCI 0001.0300 32 slots 2 ports 6 Gbps 0x3 impl platform mode
ahci ahci.0: flags: ncq sntf stag pm led clo only pmp fbs slum part ccc sxs boh
scsi0 : ahci_platform
scsi1 : ahci_platform
ata1: SATA max UDMA/133 mmio [mem 0x11010000-0x1101ffff] port 0x100 irq 49
ata2: SATA max UDMA/133 mmio [mem 0x11010000-0x1101ffff] port 0x180 irq 49
Check Flash Memory Controller v100 ...  Found.
SPI Nor(cs 0) ID: 0xc2 0x20 0x17
Block:64KB Chip:8MB Name:"MX25L6436F"
SPI Nor total size: 8MB
3 cmdlinepart partitions found on MTD device hi_sfc
3 cmdlinepart partitions found on MTD device hi_sfc
Creating 3 MTD partitions on "hi_sfc":
0x000000000000-0x000000030000 : "boot"
0x000000030000-0x0000003b0000 : "kernel"
0x0000003b0000-0x000000800000 : "rootfs"
SPI Nand ID Table Version 2.2
Cannot found a valid SPI Nand Device
libphy: Fixed MDIO Bus: probed
Higmac dma_sg_phy: 0x83a80000
libphy: higmac_mdio_bus: probed
PHY mdio0:01 not found
ETH0: rmii, phy_addr=1, mii_name=mdio0
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
before uhci_hcd and ohci_hcd, not after
hiusb-ehci hiusb-ehci.0: HIUSB EHCI
hiusb-ehci hiusb-ehci.0: new USB bus registered, assigned bus number 1
hiusb-ehci hiusb-ehci.0: irq 51, io mem 0x10040000
hiusb-ehci hiusb-ehci.0: USB 0.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
hiusb-ohci hiusb-ohci.0: HIUSB OHCI
hiusb-ohci hiusb-ohci.0: new USB bus registered, assigned bus number 2
hiusb-ohci hiusb-ohci.0: irq 50, io mem 0x10030000
ata1: SATA link down (SStatus 0 SControl 300)
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
i2c /dev entries driver
hisi_i2c hisi_i2c.0: Hisilicon [i2c-0] probed!
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
oprofile: using timer interrupt.
TCP: cubic registered
NET: Registered protocol family 17
VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5
2: SATA link down (SStatus 0 SControl 300)
VFS: Mounted root (jffs2 filesystem) on device 31:2.
Freeing unused kernel memory: 128K (c05a5000 - c05c5000)

            _ _ _ _ _ _ _ _ _ _ _ _
            \  _  _   _  _ _ ___
            / /__/ \ |_/
           / __   /  -  _ ___
          / /  / /  / /
  _ _ _ _/ /  /  \_/  \_ ______
___________\___\__________________

[RCS]: /etc/init.d/S00devs
[RCS]: /etc/init.d/S01udev
[RCS]: /etc/init.d/S80network
我来回答
回答9个
时间排序
认可量排序

kennylu

0个粉丝

17

问答

0

专栏

0

资料

kennylu 2017-12-12 16:39:37
认可0
芯片是 SMSC公司的 LAN8710

kennylu

0个粉丝

17

问答

0

专栏

0

资料

kennylu 2017-12-13 09:57:05
认可0
本帖最后由 kennylu 于 2017-12-13 09:58 编辑

看内核log :
Creating 3 MTD partitions on "hi_sfc":
0x000000000000-0x000000030000 : "boot"
0x000000030000-0x0000003b0000 : "kernel"
0x0000003b0000-0x000000800000 : "rootfs"
SPI Nand ID Table Version 2.2
Cannot found a valid SPI Nand Device
libphy: Fixed MDIO Bus: probed
Higmac dma_sg_phy: 0x83a80000
libphy: higmac_mdio_bus: probed
PHY mdio0:01 not found
ETH0: rmii, phy_addr=1, mii_name=mdio0
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
before uhci_hcd and ohci_hcd, not after
hiusb-ehci hiusb-ehci.0: HIUSB EHCI
hiusb-ehci hiusb-ehci.0: new USB bus registered, assigned bus number 1

PHY mdio0:01 not found,  可是我在内核中有开启mdio. 是我没开对?还是其他什么地方?

开启内核:

hero

0个粉丝

1

问答

0

专栏

0

资料

hero 2017-12-13 15:06:02
认可0
我的v300网络也没有效

kennylu

0个粉丝

17

问答

0

专栏

0

资料

kennylu 2017-12-14 09:57:40
认可0
要改PHY ID? 还是哪地方没开启? 现在没什么头绪。现在在看内核代码,想搞懂里面的加载机制。你们有什么好办法吗?

wobn

0个粉丝

2

问答

0

专栏

0

资料

wobn 2017-12-14 10:04:08
认可0
这个问题,我遇到解决了。其实很简单

kennylu

0个粉丝

17

问答

0

专栏

0

资料

kennylu 2017-12-14 11:32:26
认可0
怎么解决的?

ngswfx

2个粉丝

55

问答

1

专栏

40

资料

ngswfx 2017-12-14 12:25:29
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=82009&ptid=38435]kennylu 发表于 2017-12-12 16:39[/url]
芯片是 SMSC公司的 LAN8710[/quote]

我这边的板子上都没有PHY,是内部集成有一个吧,用着也可以呀

我是看Ehternet (10 or 100Mbit)里面 hieth family network device support 开启的内部enable inner phy,你是不是需要先关闭这个呀

kennylu

0个粉丝

17

问答

0

专栏

0

资料

kennylu 2017-12-14 13:50:57
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=82119&ptid=38435]ngswfx 发表于 2017-12-14 12:25[/url]
我这边的板子上都没有PHY,是内部集成有一个吧,用着也可以呀

我是看Ehternet (10 or 100Mbit)里面 hi ...[/quote]

你好, 你说的关闭 inner phy 是哪一个?我里面好像没看到有哈。

kennylu

0个粉丝

17

问答

0

专栏

0

资料

kennylu 2017-12-15 10:05:55
认可0
多谢各位的回答。问题已解决了:
        需要修改Phy 地址。在SDK 代码中 默认启用的是phy addr 1。 我这板子里需要修改为2, 接口模式 选择6。

         (2)   hieth-gmac phy0 addr                                                               
         (6)   hieth-gmac phy0 interface mode

Symbol: HIGMAC_PHY0_ADDR [=2]                                                                                               |
  | Type  : integer                                                                                                             |
  | Range : [1 31]                                                                                                              |
  | Prompt: hieth-gmac phy0 addr                                                                                                |
  |   Location:                                                                                                                 |
  |     -> Device Drivers                                                                                                       |
  |       -> Network device support (NETDEVICES [=y])                                                                           |
  |         -> Ethernet driver support (ETHERNET [=y])                                                                          |
  |           -> hieth gmac family network device support (HIETH_GMAC [=y])


编译好后烧录启动的log, 可以读到phy_id:

libphy: Fixed MDIO Bus: probed
Higmac dma_sg_phy: 0x83a80000
libphy: higmac_mdio_bus: probed
phydev->phy_id = 0x7c0f1
ETH0: rgmii, phy_addr=2, mii_name=mdio0
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
before uhci_hcd and ohci_hcd, not after

烧录好后查看、配置好接口:

~ # ifconfig -a
eth0      Link encap:Ethernet  HWaddr F2:63:B5:22:82:8C  
          inet addr:192.168.0.55  Bcast:192.168.0.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2410 errors:0 dropped:92 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:134852 (131.6 KiB)  TX bytes:280 (280.0 B)
          Interrupt:48

lo        Link encap:Local Loopback  
          LOOPBACK  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:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

测试网络,ping 网关:
~ # ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1): 56 data bytes
64 bytes from 192.168.0.1: seq=0 ttl=64 time=0.902 ms
64 bytes from 192.168.0.1: seq=1 ttl=64 time=0.810 ms
64 bytes from 192.168.0.1: seq=2 ttl=64 time=0.793 ms
64 bytes from 192.168.0.1: seq=3 ttl=64 time=0.786 ms




或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
+ 添加网盘链接/附件

Markdown 语法

  • 加粗**内容**
  • 斜体*内容*
  • 删除线~~内容~~
  • 引用> 引用内容
  • 代码`代码`
  • 代码块```编程语言↵代码```
  • 链接[链接标题](url)
  • 无序列表- 内容
  • 有序列表1. 内容
  • 缩进内容
  • 图片![alt](url)
相关问答
无更多相似问答 去提问
举报反馈

举报类型

  • 内容涉黄/赌/毒
  • 内容侵权/抄袭
  • 政治相关
  • 涉嫌广告
  • 侮辱谩骂
  • 其他

详细说明

易百纳技术社区