[How-To] update DStar/PP/GFlex to new uBoot for kernel>3.2

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

Re: [How-To] update DStar/PP/GFlex to new uBoot for kernel>3

Postby dikins » Mon Feb 18, 2013 9:59 pm

Thanks moonman, you save me again :)

And one last thing. The MAC address appears to be different after every reboot.
It's so annoying :(

$this->bbcode_second_pass_quote('', 'J')ust one side note: I had to correct the MAC Address on the device by calling

$this->bbcode_second_pass_code('', '/usr/sbin/fw_setenv ethaddr 00:10:75:29:de:ad')

(as stated on the sticker on the bottom of my device). It was set to a different one than the one I set when I installed uboot (v0.6 ?) a long time ago.


Will it fix it?
dikins
 
Posts: 18
Joined: Fri Feb 15, 2013 6:58 pm

Re: [How-To] update DStar/PP/GFlex to new uBoot for kernel>3

Postby moonman » Tue Feb 19, 2013 1:42 am

Yes it will fix it
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: [How-To] update DStar/PP/GFlex to new uBoot for kernel>3

Postby ThinkFast » Tue Mar 05, 2013 11:20 pm

How do I tell what version of uboot I have?
If I followed the instructions for "Pogoplug v2 (Pink/Gray)", would I have the new uboot?
ThinkFast
 
Posts: 29
Joined: Fri Mar 01, 2013 2:14 am

Re: [How-To] update DStar/PP/GFlex to new uBoot for kernel>3

Postby moonman » Tue Mar 05, 2013 11:36 pm

If you installed recently (withing the last 6 months) then you have the new 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: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: [How-To] update DStar/PP/GFlex to new uBoot for kernel>3

Postby ThinkFast » Tue Mar 05, 2013 11:47 pm

Thanks!
ThinkFast
 
Posts: 29
Joined: Fri Mar 01, 2013 2:14 am

Re: [How-To] update DStar/PP/GFlex to new uBoot for kernel>3

Postby morph027 » Thu Mar 14, 2013 8:46 pm

I just got my new Pogo E02 and also upgraded my Goflex Net tu new uBoot and latest rootfs with systemd.

Goflex is fine....but Pogo does not show any output for uBoot (via nc) like Goflex does...(kernel output works fine)

Settings are:

$this->bbcode_second_pass_code('', 'ipaddr=10.10.10.7
ncip=10.10.10.5
ncipk=10.10.10.4
serverip=10.10.10.3
preboot=run nc_test nc_start
nc_test=ping $ncip
nc_start=setenv stdin nc; setenv stdout nc; setenv stderr nc; version
usb_custom_params=ignore_loglevel netconsole=6665@10.10.10.3/eth0,6666@10.10.10.4/')

listening using:

$this->bbcode_second_pass_code('', 'nc -lu 10.10.10.5 6666')

Any ideas?
morph027
 
Posts: 10
Joined: Sun Dec 23, 2012 10:46 pm

Re: [How-To] update DStar/PP/GFlex to new uBoot for kernel>3

Postby moonman » Fri Mar 15, 2013 3:23 am

Did you assign your workstation an IP of 10.10.10.5. Setup can be a bit flaky. Reset your switch and make sure you are connected to the same switch with the pogoplug.
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: [How-To] update DStar/PP/GFlex to new uBoot for kernel>3

Postby morph027 » Sun Mar 17, 2013 11:56 am

Sure, i did

$this->bbcode_second_pass_code('', '
ifconfig eth0:0 10.10.10.5
')

Connected to the same switch...the Goflex even is attached to a switch behind my workstations switch and it works...weird thing...
morph027
 
Posts: 10
Joined: Sun Dec 23, 2012 10:46 pm

Re: [How-To] update DStar/PP/GFlex to new uBoot for kernel>3

Postby suyanlu » Mon Mar 18, 2013 3:01 pm

I think my goflexhome bricked..omg...., pls help me.
after upgrade kernel and u-boot, orange led blinked, but net console cannot see any output...

what I can do now to save my goflex home ?

upgrade process as this:
$this->bbcode_second_pass_code('', '
┌─[✗]─[root@goflexhome]─[/tmp]
└──> ./install_uboot_mtd0.sh --no-uboot-check


!!!!!! DANGER DANGER DANGER DANGER DANGER DANGER !!!!!!

If you lose power to your device while running this script,
it could be left in an unusable state.

This script will replace the bootloader on /dev/mtd0.

This installer will only work on the following devices:
Seagate Dockstar
Seagate GoFlex Net
Seagate GoFlex Home
Pogoplug v1
Pogoplug Pink (v2)
Do not run this installer on any other device.

By typing ok, you agree to assume all liabilities and risks
associated with running this installer.

If you agree, type 'ok' and press ENTER to continue: ok
# checking for /usr/sbin/nandwrite...
# checking for /usr/sbin/nanddump...
# checking for /usr/sbin/flash_erase...
# checking for /usr/sbin/fw_printenv...
# checking for /etc/fw_env.config...

# Validating existing uBoot...
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x00080000...
--2013-03-18 22:25:49-- http://jeff.doozan.com/uboot/valid-uboot.md5
Resolving jeff.doozan.com (jeff.doozan.com)... 50.116.34.13
Connecting to jeff.doozan.com (jeff.doozan.com)|50.116.34.13|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: http://projects.doozan.com/uboot/valid-uboot.md5 [following]
--2013-03-18 22:25:50-- http://projects.doozan.com/uboot/valid-uboot.md5
Resolving projects.doozan.com (projects.doozan.com)... 50.116.34.13
Connecting to projects.doozan.com (projects.doozan.com)|50.116.34.13|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1133 (1.1K) [text/plain]
Saving to: ‘/tmp/valid-uboot.md5’

100%[===============================================>] 1,133 --.-K/s in 0s

2013-03-18 22:25:51 (26.4 MB/s) - ‘/tmp/valid-uboot.md5’ saved [1133/1133]

## Unknown uBoot detected on mtd0: 9ea41cba00c7086fc765fe3442526892
##
## --no-uboot-check flag detected, continuing installation

############################################
Your device could not be auto-detected.

You must be using a device listed below to run this installer.

What device are you using? Type the number of your device and press ENTER.
1 - Seagate Dockstar
2 - Seagate GoFlex Net
3 - Seagate GoFlex Home
4 - Pogoplug v1
5 - Pogoplug v2 - Pink
6 - Other
3
Selected Seagate GoFlex Home

# Installing uBoot
## Installing goflexhome davygravy-2012-04-19
--2013-03-18 22:26:01-- http://download.doozan.com/uboot/files/uboot/uboot.mtd0.goflexhome.davygravy-2012-04-19.kwb.md5
Resolving download.doozan.com (download.doozan.com)... 50.116.34.13
Connecting to download.doozan.com (download.doozan.com)|50.116.34.13|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/tmp/uboot.mtd0.kwb.md5’

[ <=> ] 32 --.-K/s in 0s

2013-03-18 22:26:02 (328 KB/s) - ‘/tmp/uboot.mtd0.kwb.md5’ saved [32]

--2013-03-18 22:26:02-- http://download.doozan.com/uboot/files/uboot/uboot.mtd0.goflexhome.davygravy-2012-04-19.kwb
Resolving download.doozan.com (download.doozan.com)... 50.116.34.13
Connecting to download.doozan.com (download.doozan.com)|50.116.34.13|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 524288 (512K) []
Saving to: ‘/tmp/uboot.mtd0.kwb’

100%[===============================================>] 524,288 56.3KB/s in 11s

2013-03-18 22:26:14 (45.4 KB/s) - ‘/tmp/uboot.mtd0.kwb’ saved [524288/524288]

Erase Total 4 Units
Performing Flash Erase of length 131072 at offset 0x60000 done
Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x20000
Writing data to block 2 at offset 0x40000
Writing data to block 3 at offset 0x60000
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x00080000...
## Verifying new uBoot...
--2013-03-18 22:26:14-- http://download.doozan.com/uboot/files/uboot/uboot.mtd0.goflexhome.davygravy-2012-04-19.kwb.md5
Resolving download.doozan.com (download.doozan.com)... 50.116.34.13
Connecting to download.doozan.com (download.doozan.com)|50.116.34.13|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/tmp/uboot.mtd0.kwb.md5’

[ <=> ] 32 --.-K/s in 0s

2013-03-18 22:26:15 (334 KB/s) - ‘/tmp/uboot.mtd0.kwb.md5’ saved [32]

# Verified successfully!

# Installing uBoot environment
--2013-03-18 22:26:15-- http://download.doozan.com/uboot/files/environment/uboot.environment.md5
Resolving download.doozan.com (download.doozan.com)... 50.116.34.13
Connecting to download.doozan.com (download.doozan.com)|50.116.34.13|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/tmp/uboot.environment.md5’

[ <=> ] 32 --.-K/s in 0s

2013-03-18 22:26:16 (327 KB/s) - ‘/tmp/uboot.environment.md5’ saved [32]

--2013-03-18 22:26:16-- http://download.doozan.com/uboot/files/environment/uboot.environment
Resolving download.doozan.com (download.doozan.com)... 50.116.34.13
Connecting to download.doozan.com (download.doozan.com)|50.116.34.13|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 131072 (128K) []
Saving to: ‘/tmp/uboot.environment’

100%[===============================================>] 131,072 39.9KB/s in 3.2s

2013-03-18 22:26:20 (39.9 KB/s) - ‘/tmp/uboot.environment’ saved [131072/131072]

Erase Total 1 Units
Performing Flash Erase of length 131072 at offset 0xc0000 done
Writing data to block 6 at offset 0xc0000

# Verifying uBoot environment
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x000c0000 and ending at 0x000e0000...
--2013-03-18 22:26:20-- http://download.doozan.com/uboot/files/environment/uboot.environment.md5
Resolving download.doozan.com (download.doozan.com)... 50.116.34.13
Connecting to download.doozan.com (download.doozan.com)|50.116.34.13|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/tmp/uboot.environment.md5’

[ <=> ] 32 --.-K/s in 0s

2013-03-18 22:26:22 (211 KB/s) - ‘/tmp/uboot.environment.md5’ saved [32]

Warning: Bad CRC, using default environment


# Setting arcNumber to 2097 (SheevaPlug)
# Note: if you have a kernel that supports your platform, you should use the proper arcNumber.
# You can set the correct arcNumber by running the following command:
/usr/sbin/fw_setenv arcNumber 3089

# uBoot installation has completed successfully.
┌─[root@goflexhome]─[/tmp]
└──> cd /tmp
┌─[root@goflexhome]─[/tmp]
└──> ls
install_uboot_mtd0.sh mtd0.uboot uboot.environment uboot-mtd0-dump uboot.mtd0.kwb
┌─[root@goflexhome]─[/tmp]
└──> ls
install_uboot_mtd0.sh mtd0.uboot uboot.environment uboot-mtd0-dump uboot.mtd0.kwb
┌─[root@goflexhome]─[/tmp]
└──> tar cvfz /home/External/Go
GoAgent/
GoFlexHome_ArchLinux_Install_Configure/
GoFlexHomeHowToVideo/
GoFlexHome_Upgrade_Kernel_UBoot_201303182227/
┌─[root@goflexhome]─[/tmp]
└──> tar cvfz /home/External/Go
GoAgent/
GoFlexHome_ArchLinux_Install_Configure/
GoFlexHomeHowToVideo/
GoFlexHome_Upgrade_Kernel_UBoot_201303182227/
┌─[root@goflexhome]─[/tmp]
└──> tar cvfz /home/External/GoFlexHome_Upgrade_Kernel_UBoot_201303182227/upgrade_uboot.orig.tar.gz *
install_uboot_mtd0.sh
mtd0.uboot
uboot.environment
uboot-mtd0-dump
uboot.mtd0.kwb
┌─[root@goflexhome]─[/tmp]
└──> ls
install_uboot_mtd0.sh mtd0.uboot uboot.environment uboot-mtd0-dump uboot.mtd0.kwb
┌─[root@goflexhome]─[/tmp]
└──> cp -rp * /home/External/GoFlexHome_
GoFlexHome_ArchLinux_Install_Configure/
GoFlexHome_Upgrade_Kernel_UBoot_201303182227/
┌─[root@goflexhome]─[/tmp]
└──> cp -rp * /home/External/GoFlexHome_Upgrade_Kernel_UBoot_201303182227/
┌─[root@goflexhome]─[/tmp]
└──> ls
install_uboot_mtd0.sh mtd0.uboot uboot.environment uboot-mtd0-dump uboot.mtd0.kwb
┌─[root@goflexhome]─[/tmp]
└──> fw_printenv|grep arcNum
arcNumber=2097
┌─[root@goflexhome]─[/tmp]
└──> /usr/sbin/fw_setenv arcNumber 3338
┌─[root@goflexhome]─[/tmp]
└──> fw_printenv|grep arcNum
arcNumber=3338
┌─[root@goflexhome]─[/tmp]
└──> /usr/sbin/fw_setenv sata_device '0:1'
┌─[root@goflexhome]─[/tmp]
└──> /usr/sbin/fw_setenv sata_root '/dev/sda1'
┌─[root@goflexhome]─[/tmp]
└──> /usr/sbin/fw_setenv sata_rootfstype 'ext3'
┌─[root@goflexhome]─[/tmp]
└──> /usr/sbin/fw_setenv sata_rootdelay '10'
┌─[root@goflexhome]─[/tmp]
└──>
┌─[root@goflexhome]─[/tmp]
└──> /usr/sbin/fw_setenv sata_set_bootargs 'setenv bootargs console=$console root=$sata_root rootdelay=$sata_rootdelay rootfstype=$sata_rootfstype $mtdparts $sata_custom_params'
┌─[root@goflexhome]─[/tmp]
└──> /usr/sbin/fw_setenv 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'
┌─[root@goflexhome]─[/tmp]
└──> /usr/sbin/fw_setenv sata_bootcmd 'run sata_set_bootargs; run sata_boot'
┌─[root@goflexhome]─[/tmp]
└──> /usr/sbin/fw_setenv bootcmd 'usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run sata_bootcmd; run rescue_bootcmd; run pogo_bootcmd; reset'
┌─[root@goflexhome]─[/tmp]
└──> /usr/sbin/fw_setenv ipaddr '10.10.10.6'
/usr/sbin/fw_setenv ncipk '10.10.10.4'
/usr/sbin/fw_setenv serverip '10.10.10.3'
/usr/sbin/fw_setenv preboot 'run nc_test nc_start'
/usr/sbin/fw_setenv nc_test 'ping $ncip'
/usr/sbin/fw_setenv nc_start 'setenv stdin nc; setenv stdout nc; setenv stderr nc; version'
┌─[root@goflexhome]─[/tmp]
└──> /usr/sbin/fw_setenv ncip '10.10.10.5'
┌─[root@goflexhome]─[/tmp]
└──> /usr/sbin/fw_setenv ncipk '10.10.10.4'
┌─[root@goflexhome]─[/tmp]
└──> /usr/sbin/fw_setenv serverip '10.10.10.3'
┌─[root@goflexhome]─[/tmp]
└──> /usr/sbin/fw_setenv preboot 'run nc_test nc_start'
┌─[root@goflexhome]─[/tmp]
└──> /usr/sbin/fw_setenv nc_test 'ping $ncip'
┌─[root@goflexhome]─[/tmp]
└──> /usr/sbin/fw_setenv nc_start 'setenv stdin nc; setenv stdout nc; setenv stderr nc; version'
┌─[root@goflexhome]─[/tmp]
└──>
┌─[root@goflexhome]─[/tmp]
└──> /usr/sbin/fw_setenv usb_custom_params 'ignore_loglevel netconsole=6665@10.10.10.3/eth0,6666@10.10.10.4/'
┌─[root@goflexhome]─[/tmp]
└──> /usr/sbin/fw_setenv sata_custom_params 'ignore_loglevel netconsole=6665@10.10.10.3/eth0,6666@10.10.10.4/'
┌─[root@goflexhome]─[/tmp]
└──> cat /etc/fw_env.config
# Configuration file for fw_(printenv/saveenv) utility.
# Up to two entries are valid, in this case the redundand
# environment sector is assumed present.
# MTD device name Device offset Env. size Flash sector size
#/dev/mtd2 0x0000 0x20000 0x20000

# segate dockstar:
#/dev/mtd0 0xc0000 0x20000 0x20000
/dev/mtd0 0x60000 0x20000 0x20000

# iomega iconnect
# /dev/mtd0 0xa0000 0x20000 0x20000

# CuBox
# /dev/mtd0 0xc0000 0x10000 0x10000
┌─[root@goflexhome]─[/tmp]
└──> /usr/sbin/fw_setenv usb_custom_params 'ignore_loglevel netconsole=6665@10.10.10.3/eth0,6666@10.10.10.4/ elevator=bfq'
┌─[root@goflexhome]─[/tmp]
└──> /usr/sbin/fw_setenv sata_custom_params 'ignore_loglevel netconsole=6665@10.10.10.3/eth0,6666@10.10.10.4/ elevator=bfq'
┌─[root@goflexhome]─[/tmp]
└──>
┌─[root@goflexhome]─[/tmp]
└──> pacman -Sy linux-kirkwood linux-headers-kirkwood
:: Synchronizing package databases...
core is up to date
extra is up to date
community is up to date
alarm is up to date 0.0 B 0.00B/s 00:00 [----------------------------] 0%
aur is up to date
warning: linux-kirkwood-3.8.3-0 is up to date -- reinstalling
warning: linux-headers-kirkwood-3.8.3-0 is up to date -- reinstalling
resolving dependencies...
looking for inter-conflicts...

Targets (2): linux-headers-kirkwood-3.8.3-0 linux-kirkwood-3.8.3-0

Total Installed Size: 68.90 MiB
Net Upgrade Size: 0.00 MiB

Proceed with installation? [Y/n] n
┌─[root@goflexhome]─[/tmp]
└──> fw_printenv
bootdelay=5
baudrate=115200
arcNumber=3338
sata_device=0:1
sata_root=/dev/sda1
sata_rootfstype=ext3
sata_rootdelay=10
sata_set_bootargs=setenv bootargs console=$console root=$sata_root rootdelay=$sata_rootdelay rootfstype=$sata_rootfstype $mtdparts $sata_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
bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run sata_bootcmd; run rescue_bootcmd; run pogo_bootcmd; reset
ipaddr=10.10.10.6
ncip=10.10.10.5
ncipk=10.10.10.4
serverip=10.10.10.3
preboot=run nc_test nc_start
nc_test=ping $ncip
nc_start=setenv stdin nc; setenv stdout nc; setenv stderr nc; version
usb_custom_params=ignore_loglevel netconsole=6665@10.10.10.3/eth0,6666@10.10.10.4/ elevator=bfq
sata_custom_params=ignore_loglevel netconsole=6665@10.10.10.3/eth0,6666@10.10.10.4/ elevator=bfq

')
suyanlu
 
Posts: 31
Joined: Fri Mar 15, 2013 9:33 am

Re: [How-To] update DStar/PP/GFlex to new uBoot for kernel>3

Postby moonman » Tue Mar 19, 2013 8:52 am

Try creating a bootable USB stick and boot from it. Use ext2 fs
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 14 guests