B3, Kirkwood based miniserver

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

Re: B3, Kirkwood based miniserver

Postby moonman » Sat Jan 18, 2014 9:01 pm

I've modified the u-boot a bit just by comparing the code to other devices. The same warning applies:
https://dl.dropboxusercontent.com/u/150 ... -boot2.kwb
md5sum: b5ce1e50b8a0f9c006c7b10a955ec3a7

If it still doesn't work then I would create a systemd script that inits the ethernet ports.
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: 3387
Joined: Sat Jan 15, 2011 3:36 am

Postby ReedWood » Sun Jan 19, 2014 12:03 am

This is what I get with the new image

###
U-Boot 2013.01-rc1-g64525a2-dirty (Jan 18 2014 - 13:45:51)
BUBBA|3

SoC: Kirkwood 88F6281_A1
DRAM: 512 MiB
WARNING: Caches not enabled
SF: Detected M25P16 with page size 64 KiB, total 2 MiB
In: serial
Out: serial
Err: serial
Net: Net Initialization Skipped
No ethernet found.
88E1116 Initializing on egiga0No such device: egiga0
88E1116 Initializing on egiga1No such device: egiga1
Hit any key to stop autoboot: 0
3821896 bytes read
###

The possibly interesting part is

Net: Net Initialization Skipped
No ethernet found.
88E1116 Initializing on egiga0No such device: egiga0
88E1116 Initializing on egiga1No such device: egiga1
ReedWood
 
Posts: 28
Joined: Sun Aug 25, 2013 7:21 pm

Re: B3, Kirkwood based miniserver

Postby moonman » Sun Jan 19, 2014 12:47 am

Unfortunately I don't know enough about U-Boot to even have an idea of what the problem could be. A fairly easy fix if you use dhcpcd https://wiki.archlinux.org/index.php/MA ... stemd_unit

After you would just need to enable it: systemctl enable macspoof@eth0 (and/or macspoof@eth1) and that's it. If you ever want to use anything other than dhcpcd just change Before=dhcpcd@%i.service to whatever service is responsible for bringing up the network.
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: 3387
Joined: Sat Jan 15, 2011 3:36 am

Re: B3, Kirkwood based miniserver

Postby WarheadsSE » Sun Jan 19, 2014 1:11 am

More then likely, they are simply mapped wrong to the mux. It happens.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: B3, Kirkwood based miniserver

Postby moonman » Sun Jan 19, 2014 5:49 am

According to this you may need to set ethaddr http://www.denx.de/wiki/DULG/NetNoEthernetFound

Could you post output of "printenv" from both versions. (Run this command from within U-Boot after interrupting the boot process)

You may just need to
$this->bbcode_second_pass_code('', 'setenv ethaddr 00:11:22:33:44:55
setenv eth1addr 55:44:33:22:11:00
saveenv')
within u-boot
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: 3387
Joined: Sat Jan 15, 2011 3:36 am

Postby ReedWood » Sun Jan 19, 2014 12:52 pm

Seems like your guess is correct. Within the original u-boot image I see

ethact=egiga0
ethaddr=00:22:02:00:1e:ba
eth1addr=00:22:02:00:1e:bb

but not in the new one. For completeness, I post the full output of printvar for both images

###Good image (3G version from Excito)
B3> printenv
bootdelay=1
baudrate=115200
preboot=
loadaddr=0x800000
console=ttyS0
bootfile=uImage
flashfile=u-boot.kwb
installfile=install.itb
setdiskargs=setenv bootargs root=$diskdev console=$console,$baudrate serial=${serial#} key=$key button=$button
setbootargs=setenv bootargs root=$rootdev rw console=$console,$baudrate $othbootargs
usbbootroot=/dev/sda1
usbbootdev=usb 0:1
usbboot=usb start; setenv diskdev $usbbootroot; run setdiskargs; ext2load $usbbootdev $loadaddr /boot/$bootfile; bootm
usbflashdev=usb 0:1
usbflash=fatload $usbflashdev $loadaddr /install/$flashfile && sf probe 0:0 && sf erase 0 80000; sf write $loadaddr 0 $filesize
satadev=sata 0:1
sataroot=/dev/sda1
sataboot=setenv diskdev $sataroot; run setdiskargs; ext2load $satadev $loadaddr /boot/$bootfile; bootm
usbinstallroot=/dev/ram0
usbinstalldev=usb 0:1
usbinstall=usb start; setenv diskdev $usbinstallroot; run setdiskargs; fatload $usbinstalldev $loadaddr /install/$installfile; bootm
bootalt1=run sataboot || reset
bootalt2=run usbinstall || run usbflash || run sataboot || reset
ethact=egiga0
ethaddr=00:22:02:00:1e:ba
eth1addr=00:22:02:00:1e:bb
serial#=4773
key=MY9lUnZnipL/8TwjF/qU/X3Gzoc=
usb_custom_params=loglevel=8 netconsole=6666@192.168.2.101/eth0,6666@192.168.2.103/3c:07:54:49:20:cc
stdin=serial
stdout=serial
stderr=serial
button=0
bootcmd=run sataboot || reset

Environment size: 1343/65532 bytes
###


###New version w/o network interfaces as posted by moonman
B3> printenv
baudrate=115200
bootalt1=run sataboot || reset
bootalt2=run usbinstall || run usbflash || run sataboot || reset
bootcmd=run sataboot || reset
bootdelay=1
bootfile=uImage
button=0
console=ttyS0
eth1addr=00:22:02:00:1e:bb
ethact=egiga0
ethaddr=00:22:02:00:1e:ba
flashfile=u-boot.kwb
installfile=install.itb
key=MY9lUnZnipL/8TwjF/qU/X3Gzoc=
loadaddr=0x800000
sataboot=setenv diskdev $sataroot; run setdiskargs; ext2load $satadev $loadaddr /boot/$bootfile; bootm
satadev=sata 0:1
sataroot=/dev/sda1
serial#=4773
setbootargs=setenv bootargs root=$rootdev rw console=$console,$baudrate $othbootargs
setdiskargs=setenv bootargs root=$diskdev console=$console,$baudrate serial=${serial#} key=$key button=$button
stderr=serial
stdin=serial
stdout=serial
usb_custom_params=loglevel=8 netconsole=6666@192.168.2.101/eth0,6666@192.168.2.103/3c:07:54:49:20:cc
usbboot=usb start; setenv diskdev $usbbootroot; run setdiskargs; ext2load $usbbootdev $loadaddr /boot/$bootfile; bootm
usbbootdev=usb 0:1
usbbootroot=/dev/sda1
usbflash=fatload $usbflashdev $loadaddr /install/$flashfile && sf probe 0:0 && sf erase 0 80000; sf write $loadaddr 0 $filesize
usbflashdev=usb 0:1
usbinstall=usb start; setenv diskdev $usbinstallroot; run setdiskargs; fatload $usbinstalldev $loadaddr /install/$installfile; bootm
usbinstalldev=usb 0:1
usbinstallroot=/dev/ram0

Environment size: 1401/65532 bytes
###
ReedWood
 
Posts: 28
Joined: Sun Aug 25, 2013 7:21 pm

Postby ReedWood » Sun Jan 19, 2014 1:01 pm

I guess saving env would work if I would have falshed the new image to the B3, but I still boot using kwboot.
ReedWood
 
Posts: 28
Joined: Sun Aug 25, 2013 7:21 pm

Postby ReedWood » Sun Jan 19, 2014 3:45 pm

ReedWood
 
Posts: 28
Joined: Sun Aug 25, 2013 7:21 pm

Re:

Postby moonman » Sun Jan 19, 2014 8:19 pm

$this->bbcode_second_pass_quote('ReedWood', 'P')erhaps this is of interest.
http://forum.excito.net/viewtopic.php?f ... =15#p24719


Yes, it is possible, but you will have to perform this procedure with every kernel update. I think it is a lot easier to setup systemd service that sets up the interfaces for you and forget about it.

Your u-boot environments look fine, so setting ethaddr won't help.
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: 3387
Joined: Sat Jan 15, 2011 3:36 am

Previous

Return to Marvell Kirkwood

Who is online

Users browsing this forum: Google [Bot] and 24 guests