Menno
Bootloader issue + kernel
August 23, 2010 02:41PM
I install the U-boot bootloader on mtd3. But i want to go back to the orignal bootloader. Therefore i follow this guide http://www.plugapps.com/index.php5?title=Hardware:_Seagate_DockStar_Reflashing

But the dockstar give the following results:
NAND write: device 0 offset 0x100000, size 0x1e30f0
Attempt to write non page aligned data
 1978608 bytes written: ERROR
Marvell>>

U-Boot 2010.03-01266-g42f7128-dirty (Aug 07 2010 - 12:43:01)
Marvell-Sheevaplug

SoC:   Kirkwood 88F6281_A0
DRAM:  128 MB
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x100000, size 0x300000
 3145728 bytes read: OK
Wrong Image Format for bootm command
ERROR: can't get kernel image!
Marvell>> resetenv
Unknown command 'resetenv' - try 'help'
Marvell>> setenv ipaddr 192.168.2.178
Marvell>> setenv serverip 192.168.2.103
Marvell>> setenv bootcmd 'nand read.e 0x800000 0x100000 0x300000; setenv bootarg
s $(console) $(bootargs_root); bootm 0x800000'
Marvell>> saveenv
Saving Environment to NAND...
Erasing Nand...
Erasing at 0xc0000 -- 100% complete.
Writing to Nand... done
Marvell>> nand erase 0x100000 0x400000

NAND erase: device 0 offset 0x100000, size 0x400000
Erasing at 0x4e0000 -- 100% complete.
OK
Marvell>> tftp 0x800000 ce_kernel_redstone_v63.img
Using egiga0 device
TFTP from server 192.168.2.103; our IP address is 192.168.2.178
Filename 'ce_kernel_redstone_v63.img'.
Load address: 0x800000
Loading: T #################################################################
         #################################################################
         #####
done
Bytes transferred = 1978608 (1e30f0 hex)
Marvell>> nand write.e 0x800000 0x100000 0x1e30f0

NAND write: device 0 offset 0x100000, size 0x1e30f0
Attempt to write non page aligned data
 1978608 bytes written: ERROR
Marvell>>

The space on the device is only 128kbit, can i resolve this problem?
Menn
Re: Bootloader issue + kernel
August 23, 2010 02:45PM
Marvell>> nand info

Device 0: nand0, sector size 128 KiB
Marvell>>

Strange?!
Re: Bootloader issue + kernel
August 23, 2010 02:55PM
Your NAND isn't 128k, your sector size is 128k.

If you've installed a new uBoot on mtd3, there is no 'original' to go back to -- it's still there on mtd0. Just change the bootcmd with blparam and you'll be back to the old Pogoplug install with no USB booting.

From the Pogoplug install:

/usr/local/cloudengines/bin/blparam 'bootcmd=run bootcmd_original'

-- Jeff
Menno
Re: Bootloader issue + kernel
August 23, 2010 03:03PM
Excuse me i install it on the MTD0.
cd /tmp
wget http://jeff.doozan.com/debian/uboot/install_uboot_mtd0.sh
chmod +x install_uboot_mtd0.sh
./install_uboot_mtd0.sh

But i'am now logged in to the serial console and i want to reinstall the original kernel and bootloader if it is possible. But when i try to reinstall the new kernel with "tftp 0x800000 ce_kernel_redstone_v63.img" the device gives an error. I can't write the kernel to the proper location.
Menno
Re: Bootloader issue + kernel
August 23, 2010 03:04PM
I have no access anymore to the debian linux distro (only serial console).
gorgone
Re: Bootloader issue + kernel
August 23, 2010 05:40PM
fresh kernel 2.6.35.3

bootlog here

http://pastebin.com/TJMns5Pk
gorgone
Re: Bootloader issue + kernel
August 23, 2010 05:44PM
i compile the kernel with led default orange
and if the sys is booted i set in the rc.local

echo none > /sys/class/leds/dockstar\:orange\:misc/trigger
echo default-on > /sys/class/leds/dockstar\:green\:health/trigger

after this switch the led to green and the sys is ready to login
Menno
Re: Bootloader issue + kernel
August 24, 2010 01:18AM
Thnx for the new kernel, but how can i install this new kernel (without linux access, only console serial access)?

With the command:
Marvell>> nand write.e 0x800000 0x100000 0x1e30f0

I get the error:
NAND write: device 0 offset 0x100000, size 0x1e30f0
Attempt to write non page aligned data
 1978608 bytes written: ERROR

Also when i install another kernel i get the same Error. How can we resolve this?
Re: Bootloader issue + kernel
August 24, 2010 10:38AM
Hi,

A few important points:

1) You are very close to bricking your device. Be extremely careful.
2) The guide you are trying to follow will re-install the Pogoplug kernel. It does not affect uBoot at all.

Your problem right now isn't uBoot, it's the fact that you've messed up what used to be your Pogoplug install. You *should* be able to boot into Pogoplug with the following:

Download http://jeff.doozan.com/debian/uboot/uboot-original-mtd0.kwb and add it to your tftp server.

Interrupt uBoot and run the following:

tftp 0x800000 uboot-original-mtd0.kwb
go 0x800200

This should start the old uBoot.

Note: All of the below commands assume that you are in the old uBoot. If a command fails and you restart,
be sure to run the above command to get back into the old uBoot.

Interrupt the old uBoot and try the following:

run bootcmd_original

If that works, you should be back in the Pogoplug environment.

If that does not work, reboot into the old uBoot, run 'printenv' and post the results here.

Out of curiosity, why were you trying to reset uBoot in the first place?

-- Jeff
Menno
Re: Bootloader issue + kernel
August 24, 2010 01:34PM
Thanks for your help, but the dockstar is dead. It works and the device booted in CE mode. I think i make a mistake and therefore when i reboot i get no serial access anymore to the dockstar.

I have 3 dockstars. One with USB debian linux and that works great (everytime that i boot, the dockstar boot into debian). But when i put the USB stick to another dockstar. I get the following error:

U-Boot 1.1.4 (Jul 16 2009 - 21:02:16) Cloud Engines (3.4.16)

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 00690D60

Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 128MB
DRAM Total size 128MB  16bit width
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:256 MB

CPU : Marvell Feroceon (Rev 1)
CLOUD ENGINES BOARD: PP_GTI:3.0

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0
Saving Environment to NAND...
Erasing Nand...Writing to Nand... done

NAND read: device 0 offset 0x2500000, size 0x40000

Reading data from 0x253f800 -- 100% complete.
 262144 bytes read: OK
## Starting application at 0x00C00000 ...


U-Boot 2009.11-00432-g1650ec9-dirty (Mar 07 2010 - 22:13:20)
PlugApps Pogoplug

SoC:   Kirkwood 88F6281_A0
DRAM:  128 MB
NAND:  256 MiB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot:  0
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 3 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
1432436 bytes read
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-2.6.32-5
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1432372 Bytes =  1.4 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Linux version 2.6.32-5-kirkwood (Debian 2.6.32-18) (ben@decadent.
org.uk) (gcc version 4.3.5 (Debian 4.3.5-2) ) #1 Sat Jul 24 13:37:14 UTC 2010
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005317
7
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Marvell SheevaPlug Reference Board
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pag
es: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdela
y=10 rootfstype=ext2
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 128MB = 128MB total
[    0.000000] Memory: 125468KB available (3508K code, 582K data, 124K init, 0K
highmem)
[    0.000000] SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, N
odes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:114
[    0.000000] Console: colour dummy device 80x30
[   21.474956] Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
[   21.714914] Security Framework initialized
[   21.714933] SELinux:  Disabled at boot.
[   21.714954] Mount-cache hash table entries: 512
[   21.715201] Initializing cgroup subsys ns
[   21.715214] Initializing cgroup subsys cpuacct
[   21.715224] Initializing cgroup subsys devices
[   21.715232] Initializing cgroup subsys freezer
[   21.715240] Initializing cgroup subsys net_cls
[   21.715274] CPU: Testing write buffer coherency: ok
[   21.715807] devtmpfs: initialized
[   21.717293] regulator: core version 0.5
[   21.717465] NET: Registered protocol family 16
[   21.717852] Kirkwood: MV88F6281-A0, TCLK=200000000.
[   21.717865] Feroceon L2: Cache support initialised.
[   21.719744] bio: create slab <bio-0> at 0
[   21.720029] vgaarb: loaded
[   21.720500] Switching to clocksource orion_clocksource
[   21.724321] NET: Registered protocol family 2
[   21.724575] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[   21.725464] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[   21.725564] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[   21.725618] TCP: Hash tables configured (established 4096 bind 4096)
[   21.725628] TCP reno registered
[   21.725785] NET: Registered protocol family 1
[   21.726043] NetWinder Floating Point Emulator V0.97 (double precision)
[   21.726283] audit: initializing netlink socket (disabled)
[   21.726316] type=2000 audit(0.244:1): initialized
[   21.733071] VFS: Disk quotas dquot_6.5.2
[   21.733341] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[   21.733438] JFFS2 version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[   21.734094] msgmni has been set to 245
[   21.735815] alg: No test for stdrng (krng)
[   21.735938] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 2
53)
[   21.735951] io scheduler noop registered
[   21.735959] io scheduler anticipatory registered
[   21.735967] io scheduler deadline registered
[   21.736159] io scheduler cfq registered (default)
[   21.742325] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[   21.742808] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[   22.053556] console [ttyS0] enabled
[   22.057632] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xda (Micron NAND 25
6MiB 3,3V 8-bit)
[   22.066245] Scanning device for bad blocks
[   22.146313] Creating 3 MTD partitions on "orion_nand":
[   22.151491] 0x000000000000-0x000000100000 : "u-boot"
[   22.157062] 0x000000100000-0x000000500000 : "uImage"
[   22.162560] 0x000000500000-0x000010000000 : "root"
[   22.168622] mice: PS/2 mouse device common for all mice
[   23.180539] rtc-mv rtc-mv: internal RTC not ticking
[   23.185536] i2c /dev entries driver
[   23.189239] cpuidle: using governor ladder
[   23.193493] cpuidle: using governor menu
[   23.197530] Registered led device: plug:green:health
[   23.202585] mv_xor_shared mv_xor_shared.0: Marvell shared XOR driver
[   23.208982] mv_xor_shared mv_xor_shared.1: Marvell shared XOR driver
[   23.250565] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[   23.290564] mv_xor mv_xor.1: Marvell XOR: ( xor fill cpy )
[   23.330563] mv_xor mv_xor.2: Marvell XOR: ( xor cpy )
[   23.370563] mv_xor mv_xor.3: Marvell XOR: ( xor fill cpy )
[   23.377344] TCP cubic registered
[   23.380605] NET: Registered protocol family 17
[   23.385409] registered taskstats version 1
[   23.390182] /build/buildd-linux-2.6_2.6.32-18-armel-fzSohs/linux-2.6-2.6.32/d
ebian/build/source_armel_none/drivers/rtc/hctosys.c: unable to open rtc device (
rtc0)
[   23.404793] Initalizing network drop monitor service
[   23.409829] Waiting 10sec before mounting root device...
[   33.420813] VFS: Cannot open root device "sda1" or unknown-block(0,0)
[   33.427289] Please append a correct "root=" boot option; here are the availab
le partitions:
[   33.435704] 1f00            1024 mtdblock0 (driver?)
[   33.440716] 1f01            4096 mtdblock1 (driver?)
[   33.445718] 1f02          257024 mtdblock2 (driver?)
[   33.450723] Kernel panic - not syncing: VFS: Unable to mount root fs on unkno
wn-block(0,0)
[   33.459059] [<c002dee4>] (unwind_backtrace+0x0/0xdc) from [<c02b5c68>] (panic
+0x34/0x128)
[   33.467296] [<c02b5c68>] (panic+0x34/0x128) from [<c0008fb0>] (mount_block_ro
ot+0x25c/0x2b4)
[   33.475792] [<c0008fb0>] (mount_block_root+0x25c/0x2b4) from [<c00091a0>] (pr
epare_namespace+0x12c/0x198)
[   33.485427] [<c00091a0>] (prepare_namespace+0x12c/0x198) from [<c00085e0>] (k
ernel_init+0xf0/0x12c)
[   33.494530] [<c00085e0>] (kernel_init+0xf0/0x12c) from [<c0028e7c>] (kernel_t
hread_exit+0x0/0x8)


Can i fix this?
Menno
Re: Bootloader issue + kernel
August 24, 2010 01:36PM
For clarity this is a new dock unit... and the old one won't boot anymore
Menno
Re: Bootloader issue + kernel
August 24, 2010 02:51PM
In another topic: Jeff you say:

I've seen that error when uBoot doesn't read the uInitrd image. It can happen if you run the mtd installer again after running the debian installer. You can fix it by running the following from uBoot:

But when i run this code:
setenv bootcmd_usb 'run set_bootargs_usb; run usb_init; ext2load usb $usb_device 0x800000 /boot/uImage; ext2load usb $usb_device 0x1100000 /boot/uInitrd; bootm 0x800000 0x1100000'
I get:
setenv bootcmd_usb 'run set_bootargs_usb; run usb_init; ext2load usb $usb_d
evice 0x800000 /boot/uImage; ext2load usb $usb_device 0x1100000 /boot/uInitrd; b
ootm 0x800000'
** Too many args (max. 16) **
Re: Bootloader issue + kernel
August 24, 2010 02:59PM
You're running the old Plugbox uBoot on that (new) dockstar. You need to install one of my newer uBoots.

-- Jeff
Menno
Re: Bootloader issue + kernel
August 24, 2010 03:55PM
Thanks for your help it works!!!!

For the other people i did:

setenv ipaddr 192.168.0.200
setenv server 192.168.0.100
tftp 0x800000 u-boot.bin.512k
go 0x800000

And if it works in pogoplug enviriorment:
flash_eraseall /dev/mtd3
nandwrite /dev/mtd3 uboot.bin.512k
Re: Bootloader issue + kernel
August 24, 2010 04:03PM
I'm glad it works! I'm sorry we lost one but at least you have 2 unlocked dockstars!

For other people:

Don't mess with the flash_erase commands directly. You can just run the uboot install script :)

-- Jeff
Oakley470
Re: Bootloader issue + kernel
July 16, 2013 10:03PM
I know this thread is very old but Jeff i managed to mess up my uboot i believe and am now trying your method here to reflash, i have a pogoplug e02 pink. attempting to enter the pogo environment with run bootcmd_original gives an error so here is my printenv results after rebooting per your instructions.

u-boot>> setenv serverip 169.254.251.110
u-boot>> tftp 0x800000 uboot.mtd0.dockstar.original.kwb
Using egiga0 device
TFTP from server 169.254.251.110; our IP address is 169.254.251.120
Filename 'uboot.mtd0.dockstar.original.kwb'.
Load address: 0x800000
Loading: ####################################
done
Bytes transferred = 524288 (80000 hex)
u-boot>> go 0x800200
## Starting application at 0x00800200 ...


U-Boot 1.1.4 (Jul 16 2009 - 21:02:16) Cloud Engines (3.4.16)

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 00690D60

Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM Total size 256MB  16bit width
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:128 MB

CPU : Marvell Feroceon (Rev 1)
CLOUD ENGINES BOARD: PPV2

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME], egiga1
Hit any key to stop autoboot:  0
## Error: "bootcmd_original
/usr/local/cloudengines/bin/./blparam" not defined
CE>> printenv
baudrate=115200
loads_echo=0
rootpath=/mnt/ARM_FS/
netmask=255.255.0.0
run_diag=yes
console=console=ttyS0,115200
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_root=root=/dev/mtdblock2 ro
ethmtu=1500
usb0Mode=host
nandEcc=1bit
ethact=egiga0
bootargs=console=ttyS0,115200 root=/dev/mtdblock2 ro
serverip=169.254.254.252
ipaddr=169.254.254.253
ethaddr=00:25:31:00:A2:3A
cesvcid=AWVSL58GTCD4T3R3FQGZ8K7G5E
ceboardver=PPV2
bootcmd=run bootcmd_original
/usr/local/cloudengines/bin/./blparam bootcmd=run
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
disaMvPnp=no

Environment size: 758/131068 bytes
CE>>
Booting to the installed uboot gives the error shown above
## Error: "bootcmd_original
/usr/local/cloudengines/bin/./blparam" not defined

Booting with a linux usb gives a kernel panic. I have posted full details of my error before tftping here http://forum.doozan.com/read.php?3,12981 .
Please help!
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: