Bad ethaddr flash - recover with USB eth1 key :D

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

Bad ethaddr flash - recover with USB eth1 key :D

Postby Sagittarius » Sat Oct 31, 2015 12:47 am

For information, I've come to flash 6 kirkwood (3 dockstar and 3 GoflexNet) with default archlinux uboot: pacman -S uboot-dockstar|goflexnet

On one of them, the ethaddr was flashed as: mvNetConfig XX:XX:XX:XX:XX:XX instead of XX:XX:XX:XX:XX:XX (MAC address).
So I have used an asix USB to Ethernet key

$this->bbcode_second_pass_code('', 'lsusb
Bus 001 Device 004: ID 0b95:1790 ASIX Electronics Corp. AX88179 Gigabit Ethernet')

On the alarm boot USB key, I had just to copy /etc/systemd/network/eth0.network to /etc/systemd/network/eth1.network and edit the file as:
$this->bbcode_second_pass_code('', 'Name=eth1

[Network]
DHCP=yes')

Then I defined the USB to Ethernet key MAC address in my dhcp server (get the MAC address by ip link on another computer)
Reboot with only a net cable plugged in the USB to Ethernet key and voilà.

I could ssh to the Dockstar and redefine properly the embeded eth0 ethaddr parameter with fw_setenv ethaddr 'go:od:ma:ca:dd:re'
Last edited by Sagittarius on Sat Oct 31, 2015 2:55 pm, edited 1 time in total.
Dockstar / GoFlexNet booting on NFS / Odroid C1+ / Odroid C2
Sagittarius
 
Posts: 61
Joined: Mon Nov 14, 2011 9:21 pm
Location: France

Re: Bad ethaddr flash - recover with USB eth1 key :D

Postby moonman » Sat Oct 31, 2015 2:51 am

Which uboot were you coming from? The install script greps through the environment to find Mac address so it might have picked up something along the way if it wasn’t defined in a standard way
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Bad ethaddr flash - recover with USB eth1 key :D

Postby Sagittarius » Sat Oct 31, 2015 2:53 pm

First thank you for reading.

I was coming from Bodhi's lastest U-boot (2014.07-tld-2) but with theese parameters that let tftp/nfs booting available:

$this->bbcode_second_pass_code('', 'ethact=egiga0
ethaddr=00:10:75:26:2C:D3
bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run sata_bootcmd; run net_bootcmd; run rescue_bootcmd; run pogo_bootcmd; reset
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
net_bootargs=root=/dev/nfs rw
bootargs_end=:::DB88FXX81:eth0:none
ipaddr=192.168.0.103
serverip=192.168.0.99
tftpserverip=192.168.0.99
netretry=no
mvNetConfig=mv_net_config=($ethaddr,0:1:2:3),mtu=1500
net_rootpath=/volume1/sta3,v3,rsize=32768,wsize=32768,tcp
net_image_name=/3/boot/uImage
net_bootcmd=tftpboot 0x2000000 $net_image_name;setenv bootargs $console $net_bootargs nfsroot=$tftpserverip:$net_rootpath ip=$ipaddr:$tftpserverip$bootargs_end $mvNetConfig $mvPhoneConfig; bootm 0x2000000;
')
Dockstar / GoFlexNet booting on NFS / Odroid C1+ / Odroid C2
Sagittarius
 
Posts: 61
Joined: Mon Nov 14, 2011 9:21 pm
Location: France


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 57 guests