Hi Naresh,

Thanks for replying.

I've investigated this further since this posting, and found out that the devices are named 
ethernet@XXXXX, with XXXXX being the lower part of the address block (probably in AHB area) 
to the device's hardware. Also, the missing bits where the hardware MAC addresses in 
environment variables eth<N>addr with <N>=1, 2, 3, ... with 1 being the 
interface designated in ethprime.

Is all a bit confusing. I had to look a lot into the sources, and add extra 
traces to figure much of this out. Nothing in any wiki or document, and it 
seems that some of you are not entirely clear about it too.

Anyway, thanks for taking the time to reply.

Rehards
David F.

----------------------------------------------------------------------

Message: 1
Date: Tue, 5 Apr 2016 16:37:17 +0530
From: "Naresh Kumar Mehta"<[email protected]>
To: "'OpenWrt User List'"<[email protected]>
Subject: Re: [OpenWrt-Users] [forum] Configuring the ethernet properly
        in      openwrt u-boot
Message-ID:<[email protected]>
Content-Type: text/plain; charset="utf-8"

Did you try eth0 or eth1 instead of egiga1?

From: openwrt-users [mailto:[email protected]] On Behalf 
Of David Fernandez
Sent: Monday, April 04, 2016 6:16 PM
To:[email protected]
Subject: [OpenWrt-Users] [forum] Configuring the ethernet properly in openwrt 
u-boot

Hi there, I'm a bit new to openwrt, so apologies if this is a too silly 
question?

I've configured images to boot using u-boot, prepared an MMC with thhe uboot 
kwb image in bin, and got uboot booting, but, it seems that I can't get 
ethernet propely configured with a static address:

U-Boot SPL 2016.03 (Apr 01 2016 - 07:12:17)
High speed PHY - Version: 2.0
Detected Device ID 6828
board SerDes lanes topology details:
 | Lane #  | Speed |  Type       |
 --------------------------------
 |   0    |  3   |  SATA0       |
 |   1    |  0   |  SGMII1      |
 |   2    |  5   |  PCIe1       |
 |   3    |  5   |  USB3 HOST1  |
 |   4    |  5   |  PCIe2       |
 |   5    |  0   |  SGMII2      |
 --------------------------------
PCIe, Idx 1: detected no link
PCIe, Idx 2: detected no link
High speed PHY - Ended Successfully
DDR3 Training Sequence - Ver TIP-1.29.0
DDR3 Training Sequence - Switching XBAR Window to FastPath Window
DDR3 Training Sequence - Ended Successfully
Trying to boot from MMC
U-Boot 2016.03 (Apr 01 2016 - 07:12:17 +0000) SoC: MV88F6828-A0 at 1600 MHz
I2C:   ready
DRAM:  1 GiB (800 MHz, ECC not enabled)
MMC:   mv_sdh: 0
Model: SolidRun Clearfog A1
Board: SolidRun ClearFog
Net:
Error: ethernet@30000 address not set.
No ethernet found.
=> printenv
baudrate=115200
bootdelay=3
ethact=egiga1
ethprime=egiga1
fdt_high=0x10000000
fdtcontroladdr=3fb58b38
initrd_high=0x10000000
ipaddr=192.168.160.2
serverip=192.168.160.1
stderr=serial@12000
stdin=serial@12000
stdout=serial@12000
Environment size: 259/65532 bytes

I suspect that I'm not using the right ethernet device name for ethact or 
ethprime. I've tried with ethernet@30000, but it says exactly the same.

Does anybody know something obvious that could be wrong?
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

Reply via email to