Welcome! Log In Create A New Profile

Advanced

2017.07-2023.04 U-Boot Kirkwood - GoFlexNet, GoFlexHome, PogoE02, Dockstar, iConnect, NetgearStora, PogoV4/Mobile, Sheevaplug, NSA325, NSA320, NSA310S, NSA320S, NSA310, HP T5325, Dreamplug

Posted by bodhi 
Hi Bodhi,
Eventually, I get the message from serial console:

U-Boot 2014.07-tld-1 (Jul 18 2014 - 00:29:52)
Pogo E02

SoC: Kirkwood 88F6281_A0
DRAM: 256 MiB
WARNING: Caches not enabled
NAND: 128 MiB
In: serial
Out: serial
Err: serial
Net: egiga0
## Error: "preboot_nc" not defined
Hit any key to stop autoboot: 0
PogoE02>
PogoE02>
PogoE02>
PogoE02> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>> U-Boot 2014.3>>>
suo_jian,

It's a strange behavior from serial console (repeating prompt). If you'd like to confirm your booting process, please power up, interrupt serial console and then list the envs, I will take a look.
printenv

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Hi Bodhi,

Do not worry about above my previous post, it's serial wire connection problem, I have fixed that,

The problem is label of partition, it was rootfs but it should be ROOTFS. My fault !!!!

After change it to upper case, system starts up.

Really thanks for your help !!!!!
Hi

In step 6 I get a permission denied on my Goflex Net so I can not update my uboot (latest recue works great on it).

# flash_erase /dev/mtd0 0 4
flash_erase: error!: /dev/mtd0
error 13 (Permission denied)

I've probably set RO /dev/mtd0 but I can't remember how to unset it.

Help appreciated ;-)

EDIT: booting on a USB key made it possible.



Edited 1 time(s). Last edit at 12/15/2014 11:22AM by Sagittarius.
Hello,

after checking UART loading I flashed this u-boot on to my NSA325v2 using the steps described above.
It worked as promised/expected ;-).
Great work, thank you, bodhi!

This enabled me to boot my (fully LUKS-encrypted) installation directly from a 3TB genuine GPT-partitioned drive.
To be honest I had to find out that I have to remove parenthesis from variables (found it later on described with in the forum).

My question: are there informations/descriptions anywhere about the hush shell related capabilities of this specific implementation?

Thanks!
@Sagittarius,

> EDIT: booting on a USB key made it possible.

It is OK now?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
jfp,

Not very detailed, but this is all we got:
http://www.denx.de/wiki/view/DULG/CommandLineParsing

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
@bodhi

Yes it's OK.

I was booting via TFTP/NFS then I could not manage to install new uboot.
Booting via an USB key let me install it.

Thank you for your work.



Edited 1 time(s). Last edit at 12/17/2014 08:15AM by Sagittarius.
I've uploaded 2014.07-tld-2 U-Boot images. Please see 1st post for download links.

Note that the Netgear Stora and Sheevaplug are still under testing and need feedback. Testers wanted!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Just installed new u-boot tld-2 on pogoE02

a few issues:
@bodhi
A serverip entry in uEnv.txt doesnt change the netconsole server, because that gets started in preboot, before it is reset in
bootcmd, as far as I can see.

Also, in uenv_load, ";ide reset; mmc rescan" dont appear to be valid commands in the new u-boot
("help" in u-boot does not show any ide commands.)

I know "ide reset" was valid on older u-boots, but it seems to be gone?

Thanks for your great work on these devices!

========================
U-Boot 2014.07-tld-2 (Sep 20 2014 - 00:52:18)
Pogo E02
gcc (Debian 4.6.3-14) 4.6.3
GNU ld (GNU Binutils for Debian) 2.22
Hit any key to stop autoboot: 0
(Re)start USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
Unknown command 'mmc' - try 'help'
Unknown command 'ide' - try 'help'

Partition Map for USB device 0 -- Partition Type: DOS

Part Start Sector Num Sectors UUID Type
1 32 29695968 00000000-01 83 Boot
2 29696000 1570816 00000000-02 82
loading envs from usb 0 ...
41 bytes read in 274 ms (0 Bytes/s)
Unknown command 'mmc' - try 'help'
Unknown command 'ide' - try 'help'
importing envs ...
## Info: input data size = 4373 = 0x1115
<snip>



bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
uenv_import=echo importing envs ...; env import -t 0xx810000
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x810000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read; fi; else if $devtype part $disknum; then run uenv_read; fi; fi
uenv_load=mmc rescan; ide reset; setenv uenv_loaded 0; for devtype in usb mmc ide; do for disknum in 0; do run uenv_read_disk; done; done
bootcmd=usb start; run bootcmd_uenv; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset
duncan_h,

Cool! thanks for reporting your observation. These default envs are my initial cut, they have a lot of room for improvement :) I plan to update them to make it boot a little cleaner (to remove misleading messages such as you saw).

> A serverip entry in uEnv.txt doesnt change the
> netconsole server, because that gets started in
> preboot, before it is reset in
> bootcmd, as far as I can see.

Yes, I expected that. I did not want to provide instruction for preboot due to the potentials of locking users out of the box because of typo :) Either the commands in preboot need to change to allow that, or the "run bootcmd_uenv" must be specified in preboot. I think I will remove that example based on your feedback.

>
> Also, in uenv_load, ";ide reset; mmc rescan"
> dont appear to be valid commands in the new
> u-boot
> ("help" in u-boot does not show any ide
> commands.)
>
> I know "ide reset" was valid on older u-boots, but
> it seems to be gone?
>

The Pogo E02 does not have SATA so ide reset is not available. I think you probably remember using it on Goflex Net/Home or Pogo V4. The default envs were defined to cover all cases. On the Pogo E02, you can take out anything related to ide or mmc.

uenv_load=usb start; setenv uenv_loaded 0; for devtype in usb; do for disknum in 0; do run uenv_read_disk; done; done

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
2014.07-tld-2 version of u-boot and Sheevaplug are working fine, Sheevaplug boots successfully with this version. I did no testing on the added new feature though, just regular boot sequence stuff.

PogoPlug e02 specs
Thanks Wzl!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
@duncan_h and others,

I've updated the instruction regarding the uEnv.txt in the 1st post. I've modified it slightly to make it a little easier to remove the devices that are not availble (so you won't see the error messages about non-existing devices).

D.1 Modify u-boot envs

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Hi Bodhi,

I updated to new U-boot, but cant overwrite eth address
fw_setenv ethaddr '00:10:75:26:65:BD'
Can't overwrite "ethaddr"

from your default ip addr.

fw_setenv ethaddr '00:10:75:26:65:BD'
Can't overwrite "ethaddr"

How can I overwrite?

Update!!

Workaround !
You can overwrite ethaddr value, if you stop booting when counter is down count and when Goflex prompt is available, then issue the command:
setenv ethaddr 'xx:xx.xx.xx'
saveenv





Edited 2 time(s). Last edit at 12/29/2014 09:15AM by robert1968@gmail.com.
Hello,

Im trying to install debian onto my NSA-320S but theres not much here related to NSA-320S

I can help to post logs and test the UBOOT/kernel if you provide me with the files to test, I have attached my boot log and i can give you more console info if needed


Thank you in advance
Attachments:
open | download - bootlog.txt (2.7 KB)
jochar,

Try running the rootfs for NSA320 first as an experiment. Memory capacity is not the same, but if everything else works the same way then it's not hard to make the DTS file for NS320S. Download this 3.17 rootfs and put it on USB stick, boot with it and please post serial boot log and dmesg if successful.
http://forum.doozan.com/read.php?2,12096

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Pogoplug E02 with Bad eraseblock 4
December 29, 2014 05:47PM
I have a Pogoplug E02 that has beed updated with Jeff's U-Boot and like to install Bodhi's U-Boot. The Pogo E02 will not boot from a 3T Drive. It just goes to the rescue system:
 U-Boot 2011.12 (Feb 20 2012 - 21:21:59)
Pogoplug E02
arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q3-67) 4.4.1
GNU ld (Sourcery G++ Lite 2009q3-67) 2.19.51.20090709
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 "/rescueme" from usb device 0:1 (usbda1)

I have successfully installed Bodhi's U-boot on several Pogoplug V4 and tested that the drive boots Ok on the V4s.

Pogoplug E02 dmesg:
[root@pogoplug ~]# dmesg | grep -i 'bad'
[   10.728488] Scanning device for bad blocks
[   10.732941] Bad eraseblock 4 at 0x000000080000


Should I use the following in Arch Linux to install U-Boot?
# flash_erase /dev/mtd0 0 5

# nandwrite /dev/mtd0 uboot.2014.07-tld-2.pogo_e02.mtd0.kwb

Thanks!



Edited 2 time(s). Last edit at 12/29/2014 05:54PM by rickgtx.
bodhi Wrote:
-------------------------------------------------------
> jochar,
>
> Try running the rootfs for NSA320 first as an
> experiment. Memory capacity is not the same, but
> if everything else works the same way then it's
> not hard to make the DTS file for NS320S. Download
> this 3.17 rootfs and put it on USB stick, boot
> with it and please post serial boot log and dmesg
> if successful.
> http://forum.doozan.com/read.php?2,12096

Thanks for the info, but im stuck at a point that i have a 16g usb key formated and rootfs Debian-3.17.0-kirkwood-tld-1-rootfs-bodhi.tar extracted and edited on it, but how do i boot it? i dont have a hdd conected to it neither i did update uboot...

can you provide me with detailed instructions so i can post my findings back?

regards
Also which usb port should i use? there are 3 one in the front and 2 in the back
Re: Pogoplug E02 with Bad eraseblock 4
December 29, 2014 10:52PM
rickgtx Wrote:
-------------------------------------------------------
> I have a Pogoplug E02 that has beed updated with
> Jeff's U-Boot and like to install Bodhi's U-Boot.
> The Pogo E02 will not boot from a 3T Drive. It
> just goes to the rescue system:
>
>  U-Boot 2011.12 (Feb 20 2012 - 21:21:59)
> Pogoplug E02
> arm-none-linux-gnueabi-gcc (Sourcery G++ Lite
> 2009q3-67) 4.4.1
> GNU ld (Sourcery G++ Lite 2009q3-67)
> 2.19.51.20090709
> 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 "/rescueme" from usb device 0:1
> (usbda1)
>
>
> I have successfully installed Bodhi's U-boot on
> several Pogoplug V4 and tested that the drive
> boots Ok on the V4s.
>
> Pogoplug E02 dmesg:
>
> [root@pogoplug ~]# dmesg | grep -i 'bad'
> [   10.728488] Scanning device for bad blocks
> [   10.732941] Bad eraseblock 4 at 0x000000080000
>
>
>
> Should I use the following in Arch Linux to
> install U-Boot?
>
> # flash_erase /dev/mtd0 0 5
> 
> # nandwrite /dev/mtd0
> uboot.2014.07-tld-2.pogo_e02.mtd0.kwb
>
>
> Thanks!

rickgtx,

Even though the bad block is in 1st 1M, it's in the unused portion of NAND (block 4 is the 5th block). So you can follow the instruction in the first post to flash u-boot as normal. Don't need to do work around. Make sure to double check that you don't see any error during flashing.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
@jochar,

Unfortunately, it is a little complicated to do this, using stock u-boot.

1. Plug in the USB and power up
2. Interrupt serial console,check if your stock u-boot can boot USB:
usb start

If the usb command is available in u-boot, you should see the drive started. And then can try to boot USB with a few changes in envs (basically the same as normal usb booting in other u-boot installation). And you should not save envs while doing this (setting envs in serial console w/o executing savenev), since it is still a test to see if you can boot the new rootfs.

Further thought:

If you can use "usb start" command to start the drive in stock u-boot. Please post the list of the envs:
printenv

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 12/30/2014 03:42AM by bodhi.
Hi Bodhi.

Thanks for your incredible work!

Just one small typo in Uboot flashing instruction : The file name is misstyped:

A. Flashing Instruction:
step 7.
7. Write image to NAND

nandwrite /dev/mtd0 uboot.2014.07-tld-2.goflexnet.mtd0.kwb

Regards.
Robert
Robert,

Did you mean you had a typo that caused problem? or does the instruction istelf has a typo (I did not see it).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
bodhi Wrote:
-------------------------------------------------------
> @jochar,

> Further thought:
>
> If you can use "usb start" command to start the
> drive in stock u-boot. Please post the list of the
> envs:
>
> printenv
>

The stock printenv is in my attachment in my first post, i will try the rest now
Envs are in the attachment
Attachments:
open | download - envs.txt (2.9 KB)
Ok im looking at the printenv output but i has no idea whta to change :( im a noob when it comes to this

Marvell>>  usb start
(Re)start USB...
USB:   scanning bus for devices... 2 USB Device(s) found
Waiting for storage device(s) to settle before scanning...
0 Storage Device(s) found

USB stick is in the front USB port

Thats about all the info i can give you, env list is in the previous posts attachment

Thanks for the help



Edited 1 time(s). Last edit at 12/30/2014 06:29AM by jochar.
Hi Bodhi,

Typo on this page: http://forum.doozan.com/read.php?3,12381

nandwrite /dev/mtd0 uboot.2014.07.tld-2.goflexnet.mtd0.kwb
but should be:
nandwrite /dev/mtd0 uboot.2014.07-tld-2.goflexnet.mtd0.kwb


Only a "-" in the filename...
Very small typo...

Robert



Edited 1 time(s). Last edit at 12/30/2014 09:39AM by robert1968@gmail.com.
@Robert,

Thanks!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
@jochar,

The good news is usb command is available. But the USB storage drive was not found. Please try the ports in the back.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Sorry, you can't reply to this topic. It has been closed.