mengxp

mengxp

0个粉丝

18

问答

0

专栏

1

资料

mengxp  发布于  2018-01-15 21:56:40
采纳率 0%
18个问答
4446

hi3516cv300 uboot 网络不通问题求助

 
本帖最后由 mengxp 于 2018-1-15 22:12 编辑

在uboot界面ping主机出错如下

System startup


U-Boot 2010.06 (Jan 15 2018 - 14:45:55)

Check Flash Memory Controller v100 ... Found
SPI Nor(cs 0) ID: 0xc2 0x20 0x18
Block:64KB Chip:16MB Name:"MX25L128XX"
SPI Nor total size: 16MB
MMC:
EMMC/MMC/SD controller initialization.
Card did not respond to voltage select!
No EMMC/MMC/SD device found !
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
hisilicon #
hisilicon #
hisilicon #
hisilicon #
hisilicon # ping 192.168.1.100
Hisilicon ETH net controler
MAC:   00-00-23-34-45-66
eth0 : phy status change : LINK=DOWN : DUPLEX=FULL : SPEED=100M
eth1 : phy status change : LINK=UP : DUPLEX=FULL : SPEED=100M
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.

Abort
ping failed; host 192.168.1.100 is not alive
hisilicon # ping 192.168.1.100
Hisilicon ETH net controler
MAC:   00-00-23-34-45-66
eth0 : phy status change : LINK=DOWN : DUPLEX=FULL : SPEED=100M
eth1 : phy status change : LINK=UP : DUPLEX=FULL : SPEED=100M
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.
hieth:net-drv.c:513: hw can't add a tx addr.

Abort
ping failed; host 192.168.1.100 is not alive
hisilicon #
hisilicon # mii info
PHY 0x00: OUI = 0x0732, Model = 0x01, Rev = 0x06, 100baseT, FDX
PHY 0x02: OUI = 0x0732, Model = 0x01, Rev = 0x06, 100baseT, FDX
hisilicon # printenv
bootargs=mem=96M console=ttyAMA0,115200
bootcmd=bootm 0x82000000
bootdelay=1
baudrate=115200
ipaddr=192.168.1.10
serverip=192.168.1.2
netmask=255.255.255.0
bootfile="uImage"
ethaddr=00:0c:30:9b:01:1d
stdin=serial
stdout=serial
stderr=serial
verify=n
ver=U-Boot 2010.06 (Jan 15 2018 - 14:45:55)

这是什么问题呢??
ps: uboot是sdk中默认的uboot。PHY芯片是rtl8202f,phyaddr是1,和sdk原理图一致。
我来回答
回答2个
时间排序
认可量排序

mengxp

0个粉丝

18

问答

0

专栏

1

资料

mengxp 2018-01-15 22:46:32
认可0
解决了。。。是原理图画错了。导致phyaddr设置的其实是2。改了硬件,phyaddr是1,就正常了。。

不过像我这种情况phyaddr设置为2了。如何改uboot呢?我看uboot定义文件hi3516cv300.h是这样的
#ifdef CONFIG_NET_HISFV300
        #define HISFV_RESET_PHY_BY_CRG
        #define HISFV_MII_MODE                                0
        #define HISFV_RMII_MODE                                1
        #define HIETH_MII_RMII_MODE_U                        HISFV_RMII_MODE
        #define HIETH_MII_RMII_MODE_D                        HISFV_RMII_MODE
        #define HISFV_PHY_U                                1
        #define HISFV_PHY_D                                2 /* fix me */
#endif /* CONFIG_NET_HISFV300 */

好像是需要改
HISFV_PHY_U
HISFV_PHY_D
上面这个默认是支持phyaddr=1的
如果支持phyaddr2怎么改?HISFV_PHY_U定义为2?

rainti

0个粉丝

2

问答

0

专栏

0

资料

rainti 2018-06-25 11:09:57
认可0
海思的文档有说明, 《外围设备驱动 操作指南.doc》

Hi3516CV300/Hi3516EV100 DMEB板上PHY地址默认为1,当选用不同的PHY地址时须在U-boot和Kernel下更改PHY地址配置。
        U-boot下配置方式
U-boot下可通过更改U-boot配置文件中宏定义HISFV_PHY_U的值来配置不同的PHY地址。Hi3516CV300/Hi3516EV100的U-boot包含以下配置文件。
−        include/configs/hi3516cv300.h
−        include/configs/hi3516ev100.h
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币

Markdown 语法

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

Markdown 语法

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

举报类型

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

详细说明

易百纳技术社区