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 minkanjin » Mon Nov 11, 2013 1:15 pm

Hmm... not sure what to check.

It doesn't contain anything b3 related, even when I regenerate it.
minkanjin
 
Posts: 4
Joined: Thu Oct 31, 2013 3:54 pm

Re: B3, Kirkwood based miniserver

Postby WarheadsSE » Mon Nov 11, 2013 2:15 pm

Did you catch all mentions of it? You need to be sure that you are getting the code, the Kconfig's etc.

Your mach-types should include the BUBBA3: http://www.arm.linux.org.uk/developer/m ... hp?id=2893
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Postby ReedWood » Wed Nov 27, 2013 5:52 pm

Catching up from my last post.

@minkanjin: How do you know that a more recent uboot image would help. Do you have one to try?

@moonman: Does your post mean that with/after 3.12 the bubba3 can not be supported any more? Are you still interested in netconsole output. I figured out how to use fw_readenv fw_setenv for the bubba3, but I could not yet get anything out of the netconsole. The arch-linux wiki page is not too helpfull to me. Perhaps, you can point me to a source on where I can read up on netconsole.

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

Re: B3, Kirkwood based miniserver

Postby moonman » Wed Nov 27, 2013 10:17 pm

No, the support is still there with us, but mainline will likely never adopt our patch. Netconsole has to be compiled into u-boot to work and then set up in the u-boot environment. I don't know whether it was compiled in or not for your device.
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 » Thu Nov 28, 2013 7:34 am

All right. Thanks for clarification. I will poke the bubba guys about the netconsole.
ReedWood
 
Posts: 28
Joined: Sun Aug 25, 2013 7:21 pm

Postby ReedWood » Fri Jan 10, 2014 7:58 pm

Just want to let you know that the current kernel from the arm repo boots up fine
3.12.6-2-ARCH #1 PREEMPT Tue Dec 24 21:09:18 MST 2013 armv5tel GNU/Linux

Moreover, I got my hand on a usb to ttl addapter, but I have to solder still. Once done, I can provide boot-up information when needed.

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

Postby ReedWood » Sat Jan 18, 2014 11:50 am

While Linux-3.12.6-2-ARCH did work an the Bubba 3, the current kernel Linux-3.12.8-1-ARCH does not. I stops after successfully uncompressing the kernel image. I attached the head of the log of a successful boot using 3.12.6-2 and the log of the unsuccessfull using 3.12.8-1 at the ond of this post. The uboot version is taken from the uboot prompt and is reported as

B3> version
U-Boot 2010.06 (Jun 10 2011 - 09:06:51)
BUBBA|3

I would be glad, if this issue would be fixable, and am happy to provide and help and information needed.

Thank you!
Wolfgang

Successfull boot 3.12.6-2
--------------------------------
U-Boot 2010.06 (Jun 10 2011 - 09:06:51)
BUBBA|3

SoC: Kirkwood 88F6281_A0
DRAM: 512 MiB
In: serial
Out: serial
Err: serial
Net: egiga0, egiga1
88E1116 Initializing on egiga0 @08 done
88E1116 Initializing on egiga1 @18 done
Hit any key to stop autoboot: 0
** Bad partition 1 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
resetting ...


U-Boot 2010.06 (Jun 10 2011 - 09:06:51)
BUBBA|3

SoC: Kirkwood 88F6281_A0
DRAM: 512 MiB
In: serial
Out: serial
Err: serial
Net: egiga0, egiga1
88E1116 Initializing on egiga0 @08 done
88E1116 Initializing on egiga1 @18 done
Hit any key to stop autoboot: 0
Loading file "/boot/uImage" from sata device 0:1 (gpt1)
3820152 bytes read
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-3.12.6-2-ARCH
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3820088 Bytes = 3.6 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct



Unsuccessfull boot 3.12.8-1
------------------------------------
U-Boot 2010.06 (Jun 10 2011 - 09:06:51)
BUBBA|3

SoC: Kirkwood 88F6281_A0
DRAM: 512 MiB
In: serial
Out: serial
Err: serial
Net: egiga0, egiga1
88E1116 Initializing on egiga0 @08 done
88E1116 Initializing on egiga1 @18 done
Hit any key to stop autoboot: 0
** Bad partition 1 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
resetting ...


U-Boot 2010.06 (Jun 10 2011 - 09:06:51)
BUBBA|3

SoC: Kirkwood 88F6281_A0
DRAM: 512 MiB
In: serial
Out: serial
Err: serial
Net: egiga0, egiga1
88E1116 Initializing on egiga0 @08 done
88E1116 Initializing on egiga1 @18 done
Hit any key to stop autoboot: 0
Loading file "/boot/uImage" from sata device 0:1 (gpt1)
3821896 bytes read
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-3.12.8-1-ARCH
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3821832 Bytes = 3.6 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
ReedWood
 
Posts: 28
Joined: Sun Aug 25, 2013 7:21 pm

Re: B3, Kirkwood based miniserver

Postby moonman » Sat Jan 18, 2014 1:16 pm

I think the behavior was the same when we switched to kernel 3.2 . You need new U-Boot which disables L2 cache. Somebody in the thread mentioned that there's one available on github, so you will need to compile and flash it. Be careful though if it doesn't work you risk getting an expensive paper weight. If you are not sure just freeze the kernel version that works and don't touch it.

If you still want to attempt it, try this first, see if it works: http://forum.doozan.com/read.php?3,7852,7852 .
Some more info: http://projects.doozan.com/uboot/build_uboot.htm

U-Boot that I compiled: https://dl.dropboxusercontent.com/u/150 ... u-boot.kwb

Please do NOT just flash it. Test it, see if it works. I don't know if it works, I don't know if it is properly compiled and don't blame me if you brick your device.
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 » Sat Jan 18, 2014 1:24 pm

Thanks for the quick answer. I read your warning! I read up on the stuff and report back.
ReedWood
 
Posts: 28
Joined: Sun Aug 25, 2013 7:21 pm

Postby ReedWood » Sat Jan 18, 2014 4:42 pm

I used kwboot to test the u-boot.kwb you were so kind to provide. Just as a side node. The image is a regular NAND one, and therefore the -p command line option must be given vor kwboot.

I works almost like a charm, I have 3.12.8 up and running. The only downside is, that the networt devices (there are two) are not recongnized while booting, see the statement "No ethernet found." in the log at the end. In turn, no valid MAC is assigned to the devices, and therefore, they can not brought up by dhcp. Once I assign a MAC by hand using e.g.

sudo ifconfig eth0 hw ether 02:01:02:03:04:08

dhcp picks up the device and networking is there again. This flaw is also documented in the excito forum where also the workarround is mentioned.
http://forum.excito.net/viewtopic.php?f ... 677#p24677
My question here is, why does this u-boot image not recognize the devices, and why can this be "fixed" by setting the MAC manually.

As always, I am happy to provide any info needed. I also would not mind the get my hands dirty, but somehow moonman seems to have one of those rare marble bowls which gives you to power to do remote debugging w/o a connection... :-) Thanks again!

###
U-Boot 2013.01-rc1-g64525a2-dirty (Nov 27 2013 - 23:26:07)
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
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-3.12.8-1-ARCH
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3821832 Bytes = 3.6 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset

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

PreviousNext

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 9 guests