Welcome! Log In Create A New Profile

Advanced

2017.07- 2024.10 U-Boot Kirkwood

Posted by bodhi 
Re: 2013.10 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02
December 14, 2013 06:11PM
StephenR0 Wrote:
-------------------------------------------------------
> I can't find any ide commands in this uBoot. I'm
> trying to boot from an SSD on a sata interface.
> Can this uBoot do that?

Yes it can. But you have to use the image for your box, which box?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: 2013.10 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02
December 14, 2013 06:53PM
Thanks. Obviously, I could have read your message more closely. It tries to work now on my Goflex Net, but I'm having the same problem that led me to try this uBoot. I'm trying to boot a 32 GB Sandisk SSD and it seems to have trouble recognizing the drive. Here's what I get:

Reset IDE: Bus 0: not available  Bus 1: OK
  Device 1: Model: ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ Firm: ?ÿ?ÿ?ÿ?ÿ Ser#: ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 427923841.5 MB = 417894.3 GB (4611474908973580287 x 512)
IDE read: device 1 not ready
IDE read: device 1 not ready
** Bad device ide 0 **
** Bad device ide 0 **

I think this is the same problem that this gentleman had:

http://forum.doozan.com/read.php?3,8840

Can you think of a solution?
Re: 2013.10 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02
December 14, 2013 09:01PM
Did you try both SATA slots? (in the past, the GoFlex Net had problem booting on the left slot, but I have not tried to verify it lately). I normally use the right slot. Also please post the model number here!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: 2013.10 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02
December 14, 2013 09:47PM
I should be using the right slot because it's my understanding that is device 0. But I see that I have not been using that slot for these experiments. The model number is 9ZT5N0-520 if that helps.

Here's the result of several commands:

With nothing in the sata ports.
GoFlexNet> ide reset

Reset IDE: ide_preinit failed
GoFlexNet> ide info

IDE device 0: device type unknown
IDE device 1: device type unknown
GoFlexNet>

With the SSD in the right port.
GoFlexNet> ide reset

Reset IDE: Bus 0: OK Bus 1: not available
  Device 0: Model: ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ Firm: ?ÿ?ÿ?ÿ?ÿ Ser#: ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 427923841.5 MB = 417894.3 GB (4611474908973580287 x 512)
IDE read: device 0 not ready
IDE read: device 0 not ready
GoFlexNet> ide info

IDE device 0: Model: ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ Firm: ?ÿ?ÿ?ÿ?ÿ Ser#: ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 427923841.5 MB = 417894.3 GB (4611474908973580287 x 512)
GoFlexNet>

With the SSD in the left port.
GoFlexNet> ide reset

Reset IDE: Bus 0: not available  Bus 1: OK
  Device 1: Model: ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ Firm: ?ÿ?ÿ?ÿ?ÿ Ser#: ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 427923841.5 MB = 417894.3 GB (4611474908973580287 x 512)
IDE read: device 1 not ready
IDE read: device 1 not ready
GoFlexNet> ide info

IDE device 1: Model: ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ Firm: ?ÿ?ÿ?ÿ?ÿ Ser#: ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ?ÿ
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 427923841.5 MB = 417894.3 GB (4611474908973580287 x 512)
GoFlexNet>

With a 250GB laptop drive in the right port.
GoFlexNet> ide reset

Reset IDE: Bus 0: OK Bus 1: not available
  Device 0: Model: WDC WD2500BEKT-00F3T0  Firm: 11.01A11 Ser#:  WD-WXD0AB9L0727
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)
GoFlexNet> ide info

IDE device 0: Model: WDC WD2500BEKT-00F3T0  Firm: 11.01A11 Ser#:  WD-WXD0AB9L0727
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)
GoFlexNet>

With the laptop drive in the left port.
GoFlexNet> ide reset

Reset IDE: Bus 0: not available  Bus 1: OK
  Device 1: Model: WDC WD2500BEKT-00F3T0  Firm: 11.01A11 Ser#:  WD-WXD0AB9L0727
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)
GoFlexNet> ide info

IDE device 1: Model: WDC WD2500BEKT-00F3T0  Firm: 11.01A11 Ser#:  WD-WXD0AB9L0727
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)
GoFlexNet>

I think it's pretty clear that there's something about uBoot and Sandisk SSDs. When I boot the rescue environment, I have no problem accessing the drive. Indeed, I found a discussion on a German site where someone had the same problem and solved it by loading the kernel from a usb stick then running from the SSD drive. I'd rather this worked as intended, though.
Re: 2013.10 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02
December 15, 2013 03:53PM
StephenR0,

Thanks for a testing with this SSD. I agreed, it seems uBoot has problem reading Sandisk SSD descriptor. I looked at uBoot code for this process, and it is a common function for all SATA. I have some idea how to test/fix this, but atm I don't have the same SSD to test with. Newegg's sale price is quite good for a 32GB SSD (30 USD) so I'm ordering one to use as boot drive for my HTPC. Will see if I can find the cause when I get the disk.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: 2013.10 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02
December 15, 2013 05:47PM
Wow! I really appreciate that! I'm certainly ready to help test, although you probably will have that covered by then. Thanks!
Re: 2013.10 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02
December 23, 2013 07:32AM
I have used the SanDisk 32G ReadyCache SSD as a USB drive on a POGO E02 (pink). Here's my experience forum link

I did not use the updated uBoot that bodhi is working on.....
Re: 2013.10 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02
December 23, 2013 10:20AM
Well, that's interesting. I'll play around with it and see how I come out. Thanks.

---------------
Edit: Of course if it fixes it, I won't be able to test for the problem. Bodhi, what's your opinion of this given what you're planning?



Edited 1 time(s). Last edit at 12/23/2013 10:30AM by StephenR0.
Re: 2013.10 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02
December 23, 2013 02:38PM
I've posted reply in the Debian section thread:
http://forum.doozan.com/read.php?2,14558,14563#msg-14563

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: 2013.10 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02
December 30, 2013 11:38PM
Regarding questions about NSA325 uBoot, we don't have the patch at the moment, so it is not available, yet.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: 2013.10 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02
January 03, 2014 06:03AM
StephenR0,

I looked at this IDE identification code (to identify the hard disk) a week ago. Very ugly to read (the authors said so :) I put a debug statement in to print out all relevant values and looked at them. They just did not seem right. I'll have to postpone this for a few weeks.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: 2013.10 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02
January 03, 2014 02:48PM
Not a problem. I'll boot from usb until a solution presents itself.
Hi Bodhi,

I could successfully update my GoFlex Net & my Pogo E02 with your uBoot and update to Debian Jessie and your latest 3.12.0 kernel. Thanks for your solutions!

Everything works great except for the inherent weakness of the GoFlex and Pogoplug and that is the missing internal clock. I made some research today with Google and was surprised to see that the standard uBoot includes the "sntp" command (see: http://git.denx.de/cgi-bin/gitweb.cgi?p=u-boot.git;a=tree;f=net;h=5d23e3c37666f4aeb97a90fcadaa95ad6443a8b1;hb=HEAD and ). As far as I could figure out this is not included in your uBoot.

Since my router also works as a time server having the uBoot "sntp" command available would probably solve this remaining issue. It would simply be a "sntp -s <router ip address>" uBoot command in the boot sequence.

Is is possible to add this in your uBoot implementation? Thanks already for a feedback and a hopefully positive answer!

Klaus
P.S.: is your source code available? I could only find compiled uBoot packages.

P.S.P.S.: also found this post ( http://lists.denx.de/pipermail/u-boot/2005-March/009563.html )



Edited 1 time(s). Last edit at 01/05/2014 10:14AM by mkl.
Re: 2013.10 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02 - sntp command ?
January 05, 2014 11:47AM
Klaus,

No problem! I'll be glad to add this SNTP feature to later uBoot builds. It is readily available in mainline uBoot source. But I'm curious: would NTP in Debian solve your issue? It would come up a little later than uBoot SNTP, but it would provide completed NTP functionality, while uBoot SNTP has some limitation.

Of course all my patches would be available to everyone! the reason I've only provided Linux Kirkwood patch/headers/config because many people want to compile their own kernel, and for my kernel builds GPL compliance. For uBoot, I would provide the patch when requested, but it is a lot riskier for others since it's so easy to brick their boxes with bad boot loader build, while kernel can't damage anything.

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

You're right, Debian NTP resolves this problem to some extent but the actual time isn't available in the early boot process. I had some problems in the beginning because the synchronisation with the time server sometimes happened minutes later. My current quick-and-dirty solution was to smuggle a "sntp" command in one of the standard scripts which are executed very early in the boot process. But that is of course not an elegant solution ...

You're definitely right that there is some risk in testing uBoot but as far as I understood from the different posts in the forum it should be possible to load a uBoot binary with tftp into memory without flashing it permanently. Correct?
In this scenario the risk should be manageable.

Klaus
Hi Bodhi,

I visited this thread since many failures on Pogo E02 with 3TB..
Thanks a lot!

But it looks like all your dropbox download links are dead now.
Could you check them or any one can share them?

Jsk.
jsk Wrote:
-------------------------------------------------------
> Hi Bodhi,
>
> I visited this thread since many failures on Pogo
> E02 with 3TB..
> Thanks a lot!
>
> But it looks like all your dropbox download links
> are dead now.
> Could you check them or any one can share them?
>
> Jsk.

This was because of security setting of my network.

Thanks anyway!
Re: 2013.10 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02 - sntp command ?
January 05, 2014 10:56PM
@Klaus,

Yes, it should be possible to load a uBoot binary with tftp into memory, but it will only work for the case where the new uBoot binary is very close to existing one (same size, same layout of code and data). So tftp would not work if the new uBoot is 2013.10 and the existing uBoot is 2011.xx. This is because uBoot was designed to run from the system initial state (after a reset or cold start), it does not try to reinitialize the states again after loading into memory. So the safe way is to have either UART booting, or JTAG for testing. During UART booting, the transfered uBoot image under test is the only binary being loaded from initial state.

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

that's good to know!
I'd read a lot of posts (especially Davy's post about UART booting with the kwboot tool) and also Jeff's information about testing a new uBoot (http://projects.doozan.com/uboot/build_uboot.htm). The kwboot tool is probably the best option for my GoFlex Net. Investing in a JTAG solution (like this one: http://www.seeedstudio.com/depot/bus-pirate-v3-assembled-p-609.html?cPath=61_68, http://wiki.openwrt.org/toh/seagate/goflexnet#recovery.bricked.uboot.of.goflexnet.buspirate.cygwin) is at least currently not an option.

But it would of course be much simpler if you would supply an updated uBoot with "sntp" :-)
Nonetheless, would you mind to send me the source code of your implementation via PM.

Thanks
Klaus
Re: 2013.10 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02 - sntp command ?
January 06, 2014 11:43AM
Klaus,

Yes. I would try UART booting and make sure it works first (some users reported that their Goflex Net does not work with UART booting).

I will build new uBoot versions and publish the patch. But it will be in a few weeks (probably in February).

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

great! February is fine since I will be quite busy in January.

Klaus
Hi Bodhi et al,
I have had occasional problems with the default times of dec 31 1969 when my pogo v2 boots.
My current work-around is to run a script at boot that keeps checking for the network and when it finally comes up running rdate one time. Once I have a reasonable date, I start ntpd to keep it up to date.

I found sntp in a fedora dist but don't see it with debian or arch. It would be very nice if time could be set by uboot, before the OS loads!

Thanks for all the great stuff you do to keep these devices accessible to ordinary folks.

TJ
Re: 2013.10 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02
February 08, 2014 06:55PM
Klaus and TJ,

I've built a new version with SNTP and DNS config options and testing it right now. ATM, I can't get out to ntp server or ping Google either. I believe I'm missing some required config switch(es) and am troubleshooting it :)

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: 2013.10 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02
February 09, 2014 12:48PM
Klaus and TJ,

I will upload new uBoot images with SNTP support, in a couple days, … or this weekend!

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



Edited 1 time(s). Last edit at 02/14/2014 05:58PM by bodhi.
Re: 2013.10 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02
February 16, 2014 01:20PM
My pogo E02 runs Debian wheey (kernel 3.2, ext2) on a flash drive. After flashing the 08 Dec 2013 uboot, my pogo cannot boot. The stock system cannot boot either. The front LED doesn't turn on. I thought it was bricked. Fortunately, I have another flash drive with bodhi's Debian-3.13.1 rootfs (ext2 format), it boots from the front USB port. I also tried bodhi's 3.13.1 rootfs at a rear USB port, it cannot boot.

I'm not sure what the problem is. Is it safe to run Jeff's script to restore the uboot?
http://projects.doozan.com/uboot/install_uboot_mtd0.sh

Or anything I need to change to boot the stock system or my original Debian system?

root@pogo:~# fw_printenv
ethact=egiga0
bootdelay=3
baudrate=115200
mainlineLinux=yes
console=ttyS0,115200
led_init=green blinking
led_exit=green off
led_error=orange blinking
mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)
mtdids=nand0=orion_nand
partition=nand0,2
stdin=serial
stdout=serial
stderr=serial
rescue_installed=0
rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params
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
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
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
ubifs_mtd=3
ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params
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
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_list=1 2 3 4
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_init=run usb_scan
usb_device=0:1
usb_root=/dev/sda1
usb_rootfstype=ext2
usb_rootdelay=10
usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params
usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot
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
bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset
ethaddr=00:xx:xx:xx:xx:xx
arcNumber=2097



Edited 2 time(s). Last edit at 02/16/2014 01:52PM by charlez.
Re: 2013.10 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02
February 16, 2014 02:28PM
If you don't have serial console, then set up netconsole:
http://forum.doozan.com/read.php?3,14

Watch the boot log to see if there is any error. If not sure, post the log here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: 2013.10 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02
February 16, 2014 05:27PM
bodhi, thanks! I restored the uboot and it works fine now.
Re: 2013.10 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02
February 16, 2014 08:31PM
I've uploaded new uBoot (2013.10-tld-2) images for GoFlexNet, GoFlex Home, Pogoplug E02. Please see 1st post for download link.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: 2013.10 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02
February 21, 2014 05:51PM
Hi bodhi,

thank you for your uBoot builds for the GoFlexNet!

I've a problem with this new version (2013.10-tld-2) - the older 2013.10 was ok.

It gives very much (debug?) output while using the SATA ports. E.g:
ide_outb (dev= 0, port= 0x108, val= 0x01) : @ 0xf1082108
ide_inb (dev= 0, port= 0x11c) : @ 0xf108211c -> 0x58
...

Is it possible to turn it off?

ext2ls is nearly unusable and ext2load needs very long, because there is so much output on the serial console.

Thank you

- Chris aka SuperVirus
Re: 2013.10 U-Boot for FDT and Non-FDT Kernel - GoFlex Net/GoFlex Home/Pogo E02
February 21, 2014 07:18PM
Hi Christ,

Yes, looks like I forgot to remove debug statements in this build:) unfortunately I dont know any way to turn it off when it is running!
I will rebuild it along with new uBoot images for iConnect and Dockstar and release all at once.

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