qn1512018791

qn1512018791

0个粉丝

5

问答

0

专栏

0

资料

qn1512018791  发布于  2020-04-09 22:11:59
采纳率 0%
5个问答
5028

hi3559a双网口问题

现在是有gmac0 初始的没什么问题,gmac1那一路不知道为什么一直创建不到eth1这个设备。 设备树上也开启了。硬件电路上和gmac0上完全一致。 打印有如下
hi_gmac_v200 101c0000.ethernet: invalid resource
hi_gmac_v200 101c0000.ethernet (unnamed net_device) (uninitialized): using random MAC address 92:f6:89:73:a0:0a
attached PHY 1 to driver Generic PHY, PHY_ID=0x1cc916
Higmac dma_sg_phy: 0x0000000063c80000
ETH: rgmii, phy_addr=1
hi_gmac_v200 101e0000.ethernet: invalid resource
hi_gmac_v200 101e0000.ethernet (unnamed net_device) (uninitialized): using random MAC address f2:ec:13:89:20:cd
phy 3 not found


Phy 3 总是not found 也找不到phy_id,又搞过的大佬给指点一二吗
我来回答
回答18个
时间排序
认可量排序

qn1512018791

0个粉丝

5

问答

0

专栏

0

资料

qn1512018791 2020-04-10 11:31:42
认可0
解决了,结帖1

eiudng

0个粉丝

17

问答

0

专栏

0

资料

eiudng 2020-04-23 12:25:08
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=156545&ptid=79781]qn1512018791 发表于 2020-4-10 11:31[/url]
解决了,结帖1[/quote]

lz,现在也碰到这个问题,请问怎么解决的?

qn1512018791

0个粉丝

5

问答

0

专栏

0

资料

qn1512018791 2020-04-23 16:10:37
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=157165&ptid=79781]eiudng 发表于 2020-4-23 12:25[/url]
lz,现在也碰到这个问题,请问怎么解决的?[/quote]

在Uboot里改管脚复用就好了

eiudng

0个粉丝

17

问答

0

专栏

0

资料

eiudng 2020-04-23 17:55:03
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=157180&ptid=79781]qn1512018791 发表于 2020-4-23 16:10[/url]
在Uboot里改管脚复用就好了[/quote]

大神,能具体点么

初次接触uboot:L

qn1512018791

0个粉丝

5

问答

0

专栏

0

资料

qn1512018791 2020-04-24 10:54:26
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=157187&ptid=79781]eiudng 发表于 2020-4-23 17:55[/url]
大神,能具体点么

初次接触uboot[/quote]

有个叫Uboot烧录的手册里,里面有管脚复用章节,你看看,lan1 和bt1120输出是复用的,得把管脚配成lan1

eiudng

0个粉丝

17

问答

0

专栏

0

资料

eiudng 2020-04-24 12:42:04
认可0
本帖最后由 eiudng 于 2020-4-27 10:10 编辑

[quote][url=forum.php?mod=redirect&goto=findpost&pid=157225&ptid=79781]qn1512018791 发表于 2020-4-24 10:54[/url]
有个叫Uboot烧录的手册里,里面有管脚复用章节,你看看,lan1 和bt1120输出是复用的,得把管脚配成lan1[/quote]

在uboot下 执行ping命令输出  ETH0: PHY(mdio0, phyaddr=1, rgmii) not link!

hisilicon # mii device
MII devices: 'mdio0' 'mdio1'
Current device: 'mdio0'

hisilicon # printenv      
PHY_addr=1
arch=arm
baudrate=115200
board=hi3559av100
board_name=hi3559av100
bootargs=mem=512M console=ttyAMA0,115200 root=/dev/mtdblock2 rw;rootfstype=yaffs2 mtdparts=hinand:1M(boot),9M(kernel),16M(rootfs)
bootcmd=nand read 0x44000000 0x100000 0x900000;bootm 0x44000000
bootdelay=2
cpu=armv8
ethact=gmac0
soc=hi3559av100
stderr=serial
stdin=serial
stdout=serial
vendor=hisilicon
verify=n

qn1512018791

0个粉丝

5

问答

0

专栏

0

资料

qn1512018791 2020-04-24 12:54:00
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=157235&ptid=79781]eiudng 发表于 2020-4-24 12:42[/url]
在uboot下 执行ping命令输出  ETH0: PHY(mdio0, phyaddr=1, rgmii) not link!

hisilicon # mii device ...[/quote]

驱动加上就能2个了

eiudng

0个粉丝

17

问答

0

专栏

0

资料

eiudng 2020-04-24 13:51:15
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=157236&ptid=79781]qn1512018791 发表于 2020-4-24 12:54[/url]
驱动加上就能2个了[/quote]

还不知道怎么加呢。

eiudng

0个粉丝

17

问答

0

专栏

0

资料

eiudng 2020-04-26 10:38:47
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=157225&ptid=79781]qn1512018791 发表于 2020-4-24 10:54[/url]
有个叫Uboot烧录的手册里,里面有管脚复用章节,你看看,lan1 和bt1120输出是复用的,得把管脚配成lan1[/quote]

是 《Hi3559A╱C V100 U-boot 移植应用开发指南.pdf》这个手册麽?
可里面没提到 管脚复用。

大神帮个忙,现在就卡在 网络这个点,网络没通很多工作没法开始。

qn1512018791

0个粉丝

5

问答

0

专栏

0

资料

qn1512018791 2020-04-26 16:27:10
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=157336&ptid=79781]eiudng 发表于 2020-4-26 10:38[/url]
是 《Hi3559A╱C V100 U-boot 移植应用开发指南.pdf》这个手册麽?
可里面没提到 管脚复用。

[/quote]

对啊。2.4节又说,需要改excel一个表格,把你的管脚复用写到里面,然生生成新的bin文件,再然后到你的Uboot里生成新的uboot文件。

eiudng

0个粉丝

17

问答

0

专栏

0

资料

eiudng 2020-04-26 17:26:05
认可0
本帖最后由 eiudng 于 2020-4-27 10:12 编辑

[quote][url=forum.php?mod=redirect&goto=findpost&pid=157368&ptid=79781]qn1512018791 发表于 2020-4-26 16:27[/url]
对啊。2.4节又说,需要改excel一个表格,把你的管脚复用写到里面,然生生成新的bin文件,再然后到你的Ubo ...[/quote]

多谢答复,主要是还不太清楚怎么修改《Hi3559AV100-DMEB_8L_T-DDR4_2664M_4GB_16bitx4-A73_1608M.xlsm》

我看了《Hi3559AV100_PINOUT_CN.xlsx》中 IOCFG_REG88这个寄存器的默认值是0x00001400,但在
《Hi3559AV100-DMEB_8L_T-DDR4_2664M_4GB_16bitx4-A73_1608M.xlsm》中却是0x491,纳闷,不知道为什么。


iocfg_reg110,iocfg_reg111,iocfg_reg112是新加的(这几个寄存器的默认值是0x00001400,为了改成lan1输出把寄存器前4位置成4这个值),大神是这样加吗?

qn1512018791

0个粉丝

5

问答

0

专栏

0

资料

qn1512018791 2020-04-28 17:45:32
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=157379&ptid=79781]eiudng 发表于 2020-4-26 17:26[/url]
多谢答复,主要是还不太清楚怎么修改《Hi3559AV100-DMEB_8L_T-DDR4_2664M_4GB_16bitx4-A73_1608M.xlsm ...[/quote]

IOCFG_REG109        0x1084        0x1404        0        write        31        0        0x0000000FD
IOCFG_REG110        0x1088        0x1404        0        write        31        0        0x0000000FD
IOCFG_REG111        0x108C        0x1404        0        write        31        0        0x0000000FD
IOCFG_REG112        0x1090        0x1404        0        write        31        0        0x0000000FD
IOCFG_REG113        0x1094        0x1404        0        write        31        0        0x0000000FD
IOCFG_REG114        0x1098        0x1404        0        write        31        0        0x0000000FD
IOCFG_REG115        0x109C        0x1404        0        write        31        0        0x0000000FD
IOCFG_REG116        0x10A0        0x1404        0        write        31        0        0x0000000FD
IOCFG_REG117        0x10A4        0x1404        0        write        31        0        0x0000000FD
IOCFG_REG118        0x10A8        0x1404        0        write        31        0        0x0000000FD
IOCFG_REG119        0x10AC        0x1404        0        write        31        0        0x0000000FD
IOCFG_REG120        0x10B0        0x1404        0        write        31        0        0x0000000FD
IOCFG_REG121        0x10B4        0x1404        0        write        31        0        0x0000000FD
IOCFG_REG122        0x10B8        0x1404        0        write        31        0        0x0000000FD
IOCFG_REG123        0x10BC        0x1404        0        write        31        0        0x0000000FD
IOCFG_REG125        0x10C4        0x94        0        write        31        0        0x0000000FD

eiudng

0个粉丝

17

问答

0

专栏

0

资料

eiudng 2020-04-29 12:49:37
认可0
[quote][url=forum.php?mod=redirect&goto=findpost&pid=157537&ptid=79781]qn1512018791 发表于 2020-4-28 17:45[/url]
IOCFG_REG109        0x1084        0x1404        0        write        31        0        0x0000000FD
IOCFG_REG110        0x1088        0x1404        0        write        31        0        0x000 ...[/quote]

多谢大神,现在ifconfig -a能看到eht0和eth1 了

qn1585638433

0个粉丝

0

问答

0

专栏

0

资料

qn1585638433 2020-06-08 15:16:43
认可0
大佬,我这边看到了eth1但是接上网线灯还是不亮,请问除了复用还需改其他的吗

qq244321647

0个粉丝

1

问答

0

专栏

0

资料

qq244321647 2020-08-11 11:42:27
认可0
参考上了上面的配置,系统起来后网络的灯不亮。最后定位到eth1管脚的复用不对,需参考eth0的复用值。配置下ip就能用eth1了

姿态

0个粉丝

2

问答

0

专栏

0

资料

姿态 2021-09-27 16:53:46
认可0

按照这个更改了.xlsm文件后重新生成了boot文件为啥还是找不到Eth1?

艾编程的鲁小班

18个粉丝

25

问答

17

专栏

32

资料

艾编程的鲁小班 2023-02-14 14:18:12
认可0

问下老板最后解决了吗?
我有遇到类似问题ifconfig -a可以看到对应网口,但是phy0灯不亮,网络起不来。

~ # ifconfig -a
eth0      Link encap:Ethernet  HWaddr E2:9C:B7:6E:C6:E9  
          inet addr:192.168.10.52  Bcast:192.168.10.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:2 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:190 (190.0 B)  TX bytes:0 (0.0 B)
          Interrupt:38 

eth1      Link encap:Ethernet  HWaddr 06:CB:65:2E:BE:97  
          inet6 addr: fe80::4cb:65ff:fe2e:be97/64 Scope:Link
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:295 errors:0 dropped:3 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:43979 (42.9 KiB)  TX bytes:586 (586.0 B)
          Interrupt:42 

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)
~ # dmesg | grep eth
psci: probing for conduit method from DT.
gmac_v200 10290000.ethernet: invalid resource
gmac_v200 10290000.ethernet (unnamed net_device) (uninitialized): using random MAC address e2:9c:b7:6e:c6:e9
gmac_v200 102a0000.ethernet: invalid resource
gmac_v200 102a0000.ethernet (unnamed net_device) (uninitialized): using random MAC address 06:cb:65:2e:be:97
usbcore: registered new interface driver cdc_ether
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
gmac_v200 102a0000.ethernet eth1: Link is Up - 100Mbps/Full - flow control rx/tx
IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
gmac_v200 102a0000.ethernet eth1: Link is Down
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready

Forever Love

0个粉丝

0

问答

0

专栏

0

资料

Forever Love 2024-01-17 12:09:50
认可0

引用 @姿态 “按照这个更改了.xlsm文件后重新生成了”
为啥我这边也是这么个情况呢?还有什么地方要配置吗?

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

Markdown 语法

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

Markdown 语法

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

举报类型

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

详细说明

易百纳技术社区