[GoFlex Net] Disabling ipv6

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

Re: [GoFlex Net] Disabling ipv6

Postby Wesman26 » Tue Dec 11, 2012 9:48 am

So I'm a little hazy on this. What will the serial to ttl adapter allow me to do?
Wesman26
 
Posts: 58
Joined: Mon Feb 06, 2012 2:08 am

Re: [GoFlex Net] Disabling ipv6

Postby moonman » Tue Dec 11, 2012 9:54 am

It will give you the ability to:

Edit U-Boot environment
See what happened and watch your device boot up so you can the the errors that it spits out
basically serial will be your terminal to the device without using ethernet
If you completely brick the device (i.e. u-boot is not recoverable) you can unbrick it. (which i don't think is the case here)

But you will need to open up the device. It isn't that difficult. There are only 3 wires that need to be connected.
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 Net] Disabling ipv6

Postby Wesman26 » Tue Dec 11, 2012 2:10 pm

:shock:
Is there some sort of more in depth tutorial I can find on how to set it up.
Wesman26
 
Posts: 58
Joined: Mon Feb 06, 2012 2:08 am

Re: [GoFlex Net] Disabling ipv6

Postby moonman » Wed Dec 12, 2012 8:20 am

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 Net] Disabling ipv6

Postby Wesman26 » Mon Dec 31, 2012 6:07 am

Okay so I finally got my USB to Serial converter in the mail and I have it set up now. This is the output:
$this->bbcode_second_pass_code('', '
U-Boot 2011.12 (Apr 18 2012 - 23:08:20)
Seagate GoFlexNet

SoC: Kirkwood 88F6281_A1
DRAM: 128 MiB
WARNING: Caches not enabled
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Net: egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot: 0

Reset IDE: .OK Bus 1: not available
Device 0: Model: ST9750422AS Firm: 0001BSM1 Ser#: 5WS0425Z
Type: Hard Disk
Supports 48-bit addressing
Capacity: 715404.8 MB = 698.6 GB (1465149168 x 512)
Loading file "/boot/uImage" from ide device 0:1 (hda1)
2951564 bytes read
Loading file "/boot/uInitrd" from ide device 0:1 (hda1)
** File not found /boot/uInitrd
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-3.1.10-11-ARCH
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2951500 Bytes = 2.8 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... [ 15.084178] rtc-mv rtc-mv: internal RTC not ticking
[ 15.092489] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 25.104510] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[ 25.112836] [<c000d290>] (unwind_backtrace+0x0/0xe0) from [<c03f0f48>] (panic+0x58/0x198)
[ 25.121092] [<c03f0f48>] (panic+0x58/0x198) from [<c055dc2c>] (mount_block_root+0x230/0x280)
[ 25.129604] [<c055dc2c>] (mount_block_root+0x230/0x280) from [<c055df3c>] (prepare_namespace+0x160/0x1c0)
[ 25.139241] [<c055df3c>] (prepare_namespace+0x160/0x1c0) from [<c055d8c8>] (kernel_init+0x11c/0x14c)
[ 25.148437] [<c055d8c8>] (kernel_init+0x11c/0x14c) from [<c000945c>] (kernel_thread_exit+0x0/0x8)
')

And that's where it stops. What should I be doing?
Wesman26
 
Posts: 58
Joined: Mon Feb 06, 2012 2:08 am

Re: [GoFlex Net] Disabling ipv6

Postby WarheadsSE » Mon Dec 31, 2012 4:00 pm

We need to find out what it is passing to the kernel via cmdline. Please get us either, full boot log, or printenv output :)
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: [GoFlex Net] Disabling ipv6

Postby Wesman26 » Mon Dec 31, 2012 4:30 pm

Here is my printenv:
$this->bbcode_second_pass_code('', '
GoFlexNet> printenv
arcNumber=2097
baudrate=115200
bootcmd=run sata_bootcmd; usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset
bootdelay=3
console=ttyS0,115200
ethact=egiga0
ethaddr=02:50:43:24:52:52
force_rescue=0
force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi
led_error=orange blinking
led_exit=green off
led_init=green blinking
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
partition=nand0,2
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi
rescue_installed=0
rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params
sata_boot=ide reset; mw 0x800000 0 1; ext2load ide $sata_device 0x800000 /boot/uImage; if ext2load ide $sata_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
sata_bootcmd=run sata_set_bootargs; run sata_boot
sata_custom_params=ipv6.disable=1
sata_device=0:1
sata_root=/dev/sda1
sata_rootdelay=10
sata_rootfstype=ext3
sata_set_bootargs=setenv bootargs console=$console root=$sata_root rootdelay=$sata_rootdelay rootfstype=$sata_rootfstype $mtdparts $sata_custom_params
stderr=serial
stdin=serial
stdout=serial
ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi
ubifs_mtd=3
ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params
usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi
usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot
usb_device=0:1
usb_init=run usb_scan
usb_root=/dev/sda1
usb_rootdelay=10
usb_rootfstype=ext2
usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done
usb_scan_1=usb=0:1 dev=sda1
usb_scan_2=usb=1:1 dev=sdb1
usb_scan_3=usb=2:1 dev=sdc1
usb_scan_4=usb=3:1 dev=sdd1
usb_scan_list=1 2 3 4
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params

Environment size: 2882/131068 bytes
')

Thanks for all the help!!
Wesman26
 
Posts: 58
Joined: Mon Feb 06, 2012 2:08 am

Re: [GoFlex Net] Disabling ipv6

Postby WarheadsSE » Mon Dec 31, 2012 5:40 pm

This should turn on netconsole for you.

$this->bbcode_second_pass_code('', '
/usr/bin/fw_setenv ipaddr '10.0.10.6'
/usr/bin/fw_setenv ncip '10.10.10.5'
/usr/bin/fw_setenv ncipk '10.10.10.4'
/usr/bin/fw_setenv serverip '10.10.10.3'
preboot=run nc_test nc_start
/usr/bin/fw_setenv nc_test 'ping $ncip'
/usr/bin/fw_setenv nc_start 'setenv stdin nc; setenv stdout nc; setenv stderr nc; version'
/usr/bin/fw_setenv sata_custom_params 'ipv6.disable=1 netconsole=6665@10.10.10.3/eth0,6666@10.10.10.4/'
')
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: [GoFlex Net] Disabling ipv6

Postby Wesman26 » Mon Dec 31, 2012 5:50 pm

Okay, now that I have netconsole up, how can I fix it so that my goflex will actually mount my drive and boot normally?
Wesman26
 
Posts: 58
Joined: Mon Feb 06, 2012 2:08 am

Re: [GoFlex Net] Disabling ipv6

Postby WarheadsSE » Mon Dec 31, 2012 5:54 pm

You should be able to see what it is trying to mount it as.

Does your rootfs file system match the sata_rootfstype = ext3?
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

PreviousNext

Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 3 guests