Goflex Home won't boot with external USB drive plugged in.

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

Re: Goflex Home won't boot with external USB drive plugged i

Postby moonman » Wed Aug 29, 2012 6:03 am

$this->bbcode_second_pass_quote('sambul13', '[')url=https://wiki.archlinux.org/index.php/Netconsole]Netconsole[/url] can post both Uboot and kernel messages, but you need to add netconsole kernel parameters to Uboot (boot arguments) for passing them to kernel at its startup, because it will keep running netconsole after boot.

Try to restart netconsole with the same arguments first, and see if you can get output on another PC. If you do, write them to Uboot.


Did you actually try this yourself to say this works? I've tried this before and didn't get it to work. (maybe I didn't spend enough time...). Strangely it did work on my x86 linux box. When/if you get it to work please come back and tell us how but right now it's useless. Another drawback (vs the way it is setup in UBIT 0.6) is that this way it will only broadcast to a specific machine/mac address.
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: Goflex Home won't boot with external USB drive plugged i

Postby sambul13 » Wed Aug 29, 2012 6:38 am

The citation above just points to the links outlining the approach. In fact, I can't find any netconsole files in ArcLinux ARM, just modprobe says its built-in. May be this is the problem. There is also syslog-ng, but I couldn't make it send logs to another PC either, though its more complex. If you look on the web, there is NO detail info about netconsole static config in ArchLinux at all (not only ARM), and no-one mentioned where its config and script files are or should be in Arch.
Last edited by sambul13 on Wed Aug 29, 2012 12:37 pm, edited 1 time in total.
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm

Re: Goflex Home won't boot with external USB drive plugged i

Postby moonman » Wed Aug 29, 2012 6:57 am

I got it to work:

FOR USB:
$this->bbcode_second_pass_code('', 'fw_setenv usb_custom_params 'loglevel=6 netconsole=6665@10.10.10.3/eth0,6666@10.10.10.4/'')
FOR SATA:
$this->bbcode_second_pass_code('', 'fw_setenv sata_custom_params 'loglevel=6 netconsole=6665@10.10.10.3/eth0,6666@10.10.10.4/'')

I don't know if it's like this with UBIT 0.6, but logging to netconsole only starts when eth0 is up... so it skipps some messages (compare with dmesg output when you 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: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: Goflex Home won't boot with external USB drive plugged i

Postby sambul13 » Wed Aug 29, 2012 12:35 pm

Great! A few questions though:

- where is Uboot config file stored?
- did you try adding a MAC address at the end of that string - does it work?
- what command allows to test netconsole output after starting kernel without modifying Uboot config? Did you find netconfig files in ArchLinux?
- does it post kernel output to the same console where Uboot was posted? Should netconsole startup params on the receiving client be changed?
- how to print a list of available kernel loglevel numbers?

Would a wrong Uboot env. variable be deleted by saving it without a value in netconsole? Interesting guide on Using Uboot command line via serial terminal emulator. Assuming, the same commands allow to control Uboot via netconsole... :)
Last edited by sambul13 on Wed Aug 29, 2012 3:13 pm, edited 1 time in total.
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm

Re: Goflex Home won't boot with external USB drive plugged i

Postby moonman » Wed Aug 29, 2012 3:07 pm

Config file is stored in nand
I didn't try with the mac, I assume it would work for just the machine the mac belongs to
Never tried to get netconsole working on a booted plug
No it doesn't. Look in the GoFlex Home section under advanced. Basically you just listen on a different IP address. Same ip as u-boot doesn't work. I tried that.
man syslog -> scroll down to "The loglevel"
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: Goflex Home won't boot with external USB drive plugged i

Postby sambul13 » Wed Aug 29, 2012 3:32 pm

I assume you have the device hooked to LAN via a router. What LAN IPs do you have for the device in your router web interface after setting netconsole as described in GoFlex Home Advanced section? My defaults are like 192.168.0.?? , but not 10.10.10.? Should one set his router's real subnet IPs instead of 10.10.10.? in ifconfig and setenv ?
Last edited by sambul13 on Wed Aug 29, 2012 3:55 pm, edited 1 time in total.
sambul13
 
Posts: 258
Joined: Sat Aug 18, 2012 10:32 pm

Re: Goflex Home won't boot with external USB drive plugged i

Postby Kurlon » Wed Aug 29, 2012 3:39 pm

netconsole support in u-boot and the kernel are not built to be routed. The expectation is you'll have a device in the local network listening on the various 10.10.10.x target IPs. So you need to be on the same L2 segment/broadcast domain as your GoFlex, in many cases having the GFN plugged into a wireless router while you try to listen on WiFi won't work.
Kurlon
 
Posts: 132
Joined: Fri Jan 06, 2012 10:05 pm

Re: Goflex Home won't boot with external USB drive plugged i

Postby moonman » Wed Aug 29, 2012 3:40 pm

I have 192.168.xxx.xxx as well. It shouldn't matter for UDP packets.
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: Goflex Home won't boot with external USB drive plugged i

Postby Kurlon » Wed Aug 29, 2012 3:43 pm

$this->bbcode_second_pass_quote('moonman', 'I') have 192.168.xxx.xxx as well. It shouldn't matter for UDP packets.


Of course it matters for UDP, they're IP too and follow the same rules.
Kurlon
 
Posts: 132
Joined: Fri Jan 06, 2012 10:05 pm

Re: Goflex Home won't boot with external USB drive plugged i

Postby moonman » Wed Aug 29, 2012 3:51 pm

UDP can be broadcast. TCP cannot. I do have router with Tomato which has igmp proxy so broadcasting to wireless interface works. I do not know if other routers/stock firmware have this functionality.
Last edited by moonman on Wed Aug 29, 2012 5:01 pm, edited 1 time in total.
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

PreviousNext

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 4 guests