<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Linux Device Hacking - uBoot</title>
        <description>Bootloader tips and tricks</description>
        <link>http://forum.doozan.com/list.php?3</link>
        <lastBuildDate>Tue, 21 May 2013 09:49:54 -0400</lastBuildDate>
        <generator>Phorum 5.2.18</generator>
        <item>
            <guid>http://forum.doozan.com/read.php?3,12506,12506#msg-12506</guid>
            <title>How to revert to factory uboot of Goflex Net (1 reply)</title>
            <link>http://forum.doozan.com/read.php?3,12506,12506#msg-12506</link>
            <description><![CDATA[ I want to rerevert to the factory uboot of Goflex Net. How can can I read the factory uboot back from flash rootfs partition and write it to flash? Is it necessary to change the uboot environment variables which were changed during installation of new uboot? I don't have any mtdblock devices in /dev.<br />
<br />
I found out how to do that after Debian was booted from a USB Stick:<br />
<pre class="bbcode">
mknod /dev/mtdblock2 b 31 2
mount -t jffs2 -o ro /dev/mtdblock2 /mnt
cp /mnt/uboot-original-mtd0.kwb /root
umount /dev/mtdblock2
apt-get install mtd-utils

# the next commands could brick the device if something is wrong
cd /root
flash_erase /dev/mtd0 0 4
nandwrite /dev/mtd0 uboot-original-mtd0.kwb
reboot

#after reboot ssh-login shall be possible -&gt; activate hbmgr
mount -o remount,rw / # remount rootfs writeable
vi /etc/init.d/rcS
#uncomment the line with &quot;/etc/init.d/hbmgr.sh start&quot;
reboot
</pre>]]></description>
            <dc:creator>shv</dc:creator>
            <category>uBoot</category>
            <pubDate>Fri, 17 May 2013 22:20:47 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,12460,12460#msg-12460</guid>
            <title>iConnect not boots from Stick when DVB-C Stick plugged in (4 replies)</title>
            <link>http://forum.doozan.com/read.php?3,12460,12460#msg-12460</link>
            <description><![CDATA[ Hello.<br />
<br />
I will try to explain my problem with my bad english. Sorry for this.<br />
<br />
I have an iomega iConnect debianized with this Tutorial: <a href="http://www.congenio.de/infos/iconnect.html"  rel="nofollow">http://www.congenio.de/infos/iconnect.html</a><br />
<br />
All runs good. I will use my iomega als tvheadend Server. For this I need two DVB-C Sticks from Sundtek. First I tried only the USB-Stick and configured all. After this I plugged in one DVB-Card for testing. Since testing I had the problem that after reboot a while nothing happens and then the original firmware loaded.<br />
<br />
Yesterday i made some tests and after i plugged out my DVB-C Card the iomega booted from my USB-Stick.<br />
<br />
The USB-Sticks plugged in at Port 1 at the back of the iconnect.<br />
<br />
Now I don`t know what todo next. It isn´t a nice solution to unplug the DVB-C Card each reboot. I often works remotly some miles away on the iconnect.<br />
<br />
I´m not a specialistin uBoot etc. so I don´t know what to do. Is there anyone out there who can help me or push me in the right direction.<br />
<br />
Sorry if there are to less information. If you need one, tell me and i will bring it.<br />
<br />
Thanks for reading till here.<br />
<br />
Greats<br />
pr0]]></description>
            <dc:creator>pr0j3ctx</dc:creator>
            <category>uBoot</category>
            <pubDate>Wed, 15 May 2013 03:05:19 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,12457,12457#msg-12457</guid>
            <title>PogoPlug Mobile SD Boot Troubles (4 replies)</title>
            <link>http://forum.doozan.com/read.php?3,12457,12457#msg-12457</link>
            <description><![CDATA[ Hello, I am having some issues getting my Pogoplug mobile to boot from an SD card. I'll say up front that I am no linux expert so if there is anything unclear or additional information needed please let me know.<br />
<br />
I followed bodhi's guide for getting this setup (<a href="http://forum.doozan.com/read.php?2,11663,page=1"  rel="nofollow">http://forum.doozan.com/read.php?2,11663,page=1</a>)<br />
I've tried 2 different images for the SD card. One from a file called Debian.Wheezy.20130407.Pogoplug.tar (sorry I can't remember where I found this and I can't find it searching) and the other currently on the SD card from Davy's Zyxel thread here (<a href="http://forum.doozan.com/read.php?2,7806"  rel="nofollow">http://forum.doozan.com/read.php?2,7806</a>).<br />
<br />
The SD card is fromated ext2 3gb for partition 1 and 1gb swap for partition 2.<br />
<br />
I think the uboot install worked out ok because I get feedback from netconsole as follows<br />
<pre class="bbcode">
** Block device usb 3 not supported
** Block device usb 0 not supported
** Block device usb 0 not supported
Wrong Image Format for bootm command
ERROR: can't get kernel image!
stopping USB..
SDHC found. Card desciption is:
Manufacturer:       0x1b, OEM &quot;SM&quot;
Product name:       &quot;FBA4B&quot;, revision 1.1
Serial number:      171337637
Manufacturing date: 11/2012
CRC:                0x00, b0 = 0
mmc1 is available
SDHC found. Card desciption is:
Manufacturer:       0x1b, OEM &quot;SM&quot;
Product name:       &quot;FBA4B&quot;, revision 1.1
Serial number:      171337637
Manufacturing date: 11/2012
CRC:                0x00, b0 = 0
mmc1 is available
Loading file &quot;/boot/uImage&quot; from mmc device 0:1 (xxa1)
2279256 bytes read
Loading file &quot;/boot/uInitrd&quot; from mmc device 0:1 (xxa1)
7004538 bytes read
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-3.3.2
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2279192 Bytes = 2.2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-3.3.2-kirkwood-dg
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    7004474 Bytes = 6.7 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...</pre>
<br />
At this point it seems to hang and drops off my network (no longer in device table on router).<br />
<br />
I took a look at the logs on the SD card and they all say<br />
<br />
<pre class="bbcode">
(Nothing has been logged yet.)</pre>
<br />
Which seems to be the default for them on a fresh install.<br />
<br />
Here is my printenv output. Maybe I have a mistake somewhere in here?<br />
<br />
<pre class="bbcode">
Pogov4&gt; printenv
arcNumber=2097
baudrate=115200
bootargs=console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ext2 mtdpar
ts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root)
bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd;
 usb stop; run mmc_bootcmd
bootdelay=10
console=ttyS0,115200
ethact=egiga0
ethaddr=02:50:43:52:d1:04
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
if_netconsole=ping $serverip
ipaddr=192.168.10.46
led_error=orange blinking
led_exit=green off
led_init=green blinking
mainlineLinux=yes
mmc_bootcmd=mmc init; mmc init; ext2load mmc 0:1 0x00800000 /boot/uImage; if ext
2load mmc 0:1 0x01100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else boot
m 0x800000; fi
mtddevname=uImage2
mtddevnum=2
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M
(root)
ncip=192.168.10.38
partition=nand0,2
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
preboot=run if_netconsole start_netconsole
rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; na
nd 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
serverip=192.168.10.38
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; se
tenv stdout nc; setenv stderr nc; version;
stderr=nc
stdin=nc
stdout=nc
ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data &amp;&amp; ubifsmount rootfs &amp;&amp; u
bifsload 0x800000 /boot/uImage &amp;&amp; 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 ext
2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; el
se 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 t
est $usb_scan_done -eq 0 &amp;&amp; ext2load usb $usb 0x800000 /boot/uImage 1; then usb_
scan_done=1; echo &quot;Found bootable drive on usb $usb&quot;; setenv usb_device $usb; se
tenv 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: 2955/131068 bytes</pre>
<br />
So is it my SD card? Is it my kernel? Is it my env? I'm not really sure how to proceed to fix this. Any help would be apprciated. Thank you.]]></description>
            <dc:creator>sosuke</dc:creator>
            <category>uBoot</category>
            <pubDate>Thu, 16 May 2013 05:58:39 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,12386,12386#msg-12386</guid>
            <title>Semi-bricked GoFlex Home in need of fixing (2 replies)</title>
            <link>http://forum.doozan.com/read.php?3,12386,12386#msg-12386</link>
            <description><![CDATA[ I semi-bricked my GoFlex Home a while ago by trying out a new u-boot. It appears that it knocked out the ethernet connectivity &amp; killed the ability to boot properly. I do realize that I tried the GoFlex Net u-boot &amp; I believe that I jacked up the process for using it with a GoFlex Home. What's the best way to go about fixing this?<br />
<br />
It is currently connected via serial, which is where I copied the log from.<br />
<br />
<pre class="bbcode">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
Using egiga0 device
ping failed; host 10.10.10.5 is not alive
Hit any key to stop autoboot:  0

Reset IDE: ide_preinit failed
** Bad partition 1 **
** Bad partition 1 **
Wrong Image Format for bootm command
ERROR: can't get kernel image!
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 1 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found
** Block device usb 0 not supported

** Invalid boot device **
Creating 1 MTD partitions on &quot;nand0&quot;:
0x000002500000-0x000010000000 : &quot;mtd=3&quot;
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
UBI error: validate_ec_hdr: bad VID header offset 2048, expected 512
UBI error: validate_ec_hdr: bad EC header
UBI error: ubi_io_read_ec_hdr: validation failed for PEB 0
UBI error: ubi_init: cannot attach mtd1
UBI error: ubi_init: UBI error: cannot initialize UBI, error -22
UBI init error 22
** Block device usb 0 not supported
** Block device usb 1 not supported
** Block device usb 2 not supported
** Block device usb 3 not supported
** Block device usb 0 not supported
** Block device usb 0 not supported
Wrong Image Format for bootm command
ERROR: can't get kernel image!
stopping USB..
### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x800000
Scanning JFFS2 FS:  done.
find_inode failed for name=uboot-original-mtd0.kwb
load: Failed to find inode
### JFFS2 LOAD ERROR&lt;0&gt; for uboot-original-mtd0.kwb!
### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x800000
Scanning JFFS2 FS:</pre>
<br />
Edit: I am able to gain access to the command prompt. U-Boot checks as 1.21.]]></description>
            <dc:creator>CrimsonKnight13</dc:creator>
            <category>uBoot</category>
            <pubDate>Tue, 07 May 2013 07:21:23 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,12381,12381#msg-12381</guid>
            <title>U-Boot for Device-Tree Kernel (3 replies)</title>
            <link>http://forum.doozan.com/read.php?3,12381,12381#msg-12381</link>
            <description><![CDATA[ I'm starting this thread to gather info about getting newer u-Boot builds to enable booting Flattened Device Tree (FDT) kernel (3.5 and later).<br />
<br />
U-Boot 2013.01 has most of the board definitions, except for GoFlex Net/Home and Pogoplug Mobile/V4. <br />
<br />
So we do have supports for these Kirkwood boxes (perhaps also other Kirkwwod boxes)<br />
- Goflex Net/Home (with patch)<br />
- iConnect<br />
- Dockstar<br />
- Pogo E02<br />
- Sheevaplug<br />
<br />
<br />
<b>Status</b>:<br />
<br />
1. GoFlex Net/Home:<br />
<br />
<ul><li> So far I got a patched version of U-Boot 2013.01 running with FDT-enabled kernel 3.6.11 on a GoFlex Net. This was using the patch that rpress post <a href="http://forum.doozan.com/read.php?2,8177,12230#msg-12230" rel="nofollow">here</a>. </li><li> Currently I'm having problem with netconsole. The 2nd character in a command always got dropped, and working around it by repeating the 2nd char in a command (e.g. seetnv) enabled it to execute correctly. However, kernel just hang after executing boot command. </li></ul>
<br />
2. Pogoplug E02:<br />
<br />
<ul><li> So far I got a patched version of U-Boot 2013.01 running with non-FDT kernel 3.6.11 on a Pogo E02. We don't have Debian FDT board patch for Pogo E02 yet. </li><li> It exibits the same netconsole problem as in GoFlex Net version. </li></ul>]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>uBoot</category>
            <pubDate>Sun, 12 May 2013 15:13:15 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,12356,12356#msg-12356</guid>
            <title>Dockstar actual UBoot, Rescue 2.8.2 in NAND doesn't boot Debian from USB (11 replies)</title>
            <link>http://forum.doozan.com/read.php?3,12356,12356#msg-12356</link>
            <description><![CDATA[ Hi all,<br />
<br />
I have dockstars which in some point in time didn't get back up again.<br />
Using a Nokia USB-cable with some test hooks, tftp'ed mtd0, 1, 2 and installed rescue from USB stick.<br />
Unfortunately, they don't boot the USB stick which installed without error messages (wheezy-script)<br />
<br />
I attached my environment.<br />
uname -a<br />
Linux pogo02-rescue 3.3.2-kirkwide #1 Mon Oct 29 17:52:07 CDT 2012 armv5tel GNU/Linux<br />
<br />
Please help me making the devices work again.<br />
<br />
#update#<br />
######start boot-log ########<br />
<br />
U-Boot 2011.12 (Feb 12 2012 - 21:33:07)<br />
Seagate FreeAgent DockStar<br />
<br />
SoC:   Kirkwood 88F6281_A0<br />
DRAM:  128 MiB<br />
WARNING: Caches not enabled<br />
NAND:  256 MiB<br />
In:    serial<br />
Out:   serial<br />
Err:   serial<br />
Net:   egiga0<br />
88E1116 Initialized on egiga0<br />
Hit any key to stop autoboot:  0<br />
(Re)start USB...<br />
USB:   Register 10011 NbrPorts 1<br />
USB EHCI 1.00<br />
scanning bus for devices... 3 USB Device(s) found<br />
       scanning bus for storage devices... 1 Storage Device(s) found<br />
Loading file &quot;/rescueme&quot; from usb device 0:1 (usbda1)<br />
** File not found /rescueme<br />
reading /rescueme.txt<br />
<br />
** Unable to read &quot;/rescueme.txt&quot; from usb 0:1 **<br />
Creating 1 MTD partitions on &quot;nand0&quot;:<br />
0x000002500000-0x000010000000 : &quot;mtd=3&quot;<br />
UBI: attaching mtd1 to ubi0<br />
UBI: physical eraseblock size:   131072 bytes (128 KiB)<br />
UBI: logical eraseblock size:    129024 bytes<br />
UBI: smallest flash I/O unit:    2048<br />
UBI: sub-page size:              512<br />
UBI: VID header offset:          512 (aligned 512)<br />
UBI: data offset:                2048<br />
UBI: attached mtd1 to ubi0<br />
UBI: MTD device name:            &quot;mtd=3&quot;<br />
UBI: MTD device size:            219 MiB<br />
UBI: number of good PEBs:        1752<br />
UBI: number of bad PEBs:         0<br />
UBI: max. allowed volumes:       128<br />
UBI: wear-leveling threshold:    4096<br />
UBI: number of internal volumes: 1<br />
UBI: number of user volumes:     0<br />
UBI: available PEBs:             1731<br />
UBI: total number of reserved PEBs: 21<br />
UBI: number of PEBs reserved for bad PEB handling: 17<br />
UBI: max/mean erase counter: 1/1<br />
UBIFS error (pid 0): ubifs_get_sb: cannot open &quot;ubi:rootfs&quot;, error -19<br />
Error reading superblock on volume 'ubi:rootfs'!<br />
Loading file &quot;/boot/uImage&quot; from usb device 0:1 (usbda1)<br />
1 bytes read<br />
Found bootable drive on usb 0:1<br />
Loading file &quot;/boot/uImage&quot; from usb device 0:1 (usbda1)<br />
1606576 bytes read<br />
Loading file &quot;/boot/uInitrd&quot; from usb device 0:1 (usbda1)<br />
6883383 bytes read<br />
## Booting kernel from Legacy Image at 00800000 ...<br />
   Image Name:   kernel 3.2.0-4-kirkwood<br />
   Image Type:   ARM Linux Kernel Image (uncompressed)<br />
   Data Size:    1606512 Bytes = 1.5 MiB<br />
   Load Address: 00008000<br />
   Entry Point:  00008000<br />
   Verifying Checksum ... OK<br />
## Loading init Ramdisk from Legacy Image at 01100000 ...<br />
   Image Name:   ramdisk 3.2.0-4-kirkwood<br />
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)<br />
   Data Size:    6883319 Bytes = 6.6 MiB<br />
   Load Address: 00000000<br />
   Entry Point:  00000000<br />
   Verifying Checksum ... OK<br />
   Loading Kernel Image ... OK<br />
OK<br />
<br />
Starting kernel ...<br />
<br />
Uncompressing Linux... done, booting the kernel.<br />
<br />
######## end bootlog ###########<br />
<br />
Thanks in advance and greetings<br />
   CP]]></description>
            <dc:creator>cpe</dc:creator>
            <category>uBoot</category>
            <pubDate>Fri, 10 May 2013 00:44:12 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,12340,12340#msg-12340</guid>
            <title>Boot from USB while SATA disks connected (2 replies)</title>
            <link>http://forum.doozan.com/read.php?3,12340,12340#msg-12340</link>
            <description><![CDATA[ Hi,<br />
<br />
i'm using a GoFlexHome with 3.1.10-17-ARCH. The OS is installed on a USB-Stick (ext2). For the databackup, I want to use two 3,5&quot; hd-drives as raid 1, too. <br />
<br />
Cause i use 3,5&quot; disk, i use a extra power supply for the disks. So i can switch the disks, during the boot process on! After i set the disks into the raid1, i must use for a working bootprocess, the following steps:<br />
* Switch off the power supply for the disks<br />
* Reboot/switch on the GoFlex<br />
* Wait for finished uboot (the led becomes on)<br />
* Switch on the power supply for the disks<br />
<br />
If i don't switch the power supply of the disks during the boot process on, the boot fails. See the log! If the disks on the beginning of the bootprocess on, the boot fails too!<br />
<br />
My google search told me, that i must use disklabel for working booting. I used tunefs to give my stick the label &quot;rootfs&quot; and changed the usb_init entry in my env!<br />
<br />
fw_setenv usb_init &quot;run usb_scan; setenv usb_root LABEL=rootfs&quot;<br />
<br />
But the booting problem is still alive. <br />
<br />
The boot log is always the same:<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br/></small><strong></strong><br/>U-Boot 2010.09 (Feb 16 2011 - 18:42:02)<br />
UBIT v0.6 by Jeff Doozan and Peter Carmichael<br />
(Re)start USB...<br />
USB:   Register 10011 NbrPorts 1<br />
USB EHCI 1.00<br />
scanning bus for devices... 2 USB Device(s) found<br />
       scanning bus for storage devices... 1 Storage Device(s) found<br />
Hit any key to stop autoboot:  0 <br />
UBIFS error (pid 0): ubifs_get_sb: cannot open &quot;ubi:fast&quot;, error -19<br />
Error reading superblock on volume 'ubi:fast'!<br />
UBIFS not mounted, use ubifs mount to mount volume first!<br />
Loading file &quot;/boot/uImage&quot; from usb device 0:1 (usbda1)<br />
2869732 bytes read<br />
Loading file &quot;/uInitrd&quot; from usb device 0:1 (usbda1)<br />
** File not found /uInitrd<br />
Loading file &quot;/boot/uInitrd&quot; from usb device 0:1 (usbda1)<br />
** File not found /boot/uInitrd<br />
## Booting kernel from Legacy Image at 00680000 ...<br />
   Image Name:   Linux-3.1.10-17-ARCH<br />
   Image Type:   ARM Linux Kernel Image (uncompressed)<br />
   Data Size:    2869668 Bytes = 2.7 MiB<br />
   Load Address: 00008000<br />
   Entry Point:  00008000<br />
   Verifying Checksum ... OK<br />
   Loading Kernel Image ... OK<br />
OK<br />
<br />
Starting kernel ..</div></blockquote>
<br />
The kernel-startup messages a different:<br />
<br />
<blockquote class="bbcode"><div><small>Quote<br/></small><strong>SATA switched on, after uboot finished</strong><br/>
[   22.838797] rtc-mv rtc-mv: internal RTC not ticking<br />
[   23.374057] sd 2:0:0:0: [sda] No Caching mode page present<br />
[   23.379619] sd 2:0:0:0: [sda] Assuming drive cache: write through<br />
[   23.388181] sd 2:0:0:0: [sda] No Caching mode page present<br />
[   23.393883] sd 2:0:0:0: [sda] Assuming drive cache: write through<br />
[   23.425058] sd 2:0:0:0: [sda] No Caching mode page present<br />
[   23.430610] sd 2:0:0:0: [sda] Assuming drive cache: write through<br />
[   23.643752] ata1: exception Emask 0x10 SAct 0x0 SErr 0x4010000 action 0xe frozen<br />
[   23.651250] ata1: edma_err_cause=00000010 pp_flags=00000000, dev connect<br />
[   23.657985] ata1: SError: { PHYRdyChg DevExch }<br />
[   23.662630] ata2: exception Emask 0x10 SAct 0x0 SErr 0x4010000 action 0xe frozen<br />
[   23.670092] ata2: edma_err_cause=00000010 pp_flags=00000000, dev connect<br />
[   23.676829] ata2: SError: { PHYRdyChg DevExch }<br />
[   25.949158] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)<br />
[   35.960322] EXT4-fs (sda1): couldn't mount as ext3 due to feature incompatibilities</div></blockquote>
<br />
<blockquote class="bbcode"><div><small>Quote<br/></small><strong>SATA always off</strong><br/>
[   22.852634] rtc-mv rtc-mv: internal RTC not ticking<br />
[   23.388068] sd 2:0:0:0: [sda] No Caching mode page present<br />
[   23.393631] sd 2:0:0:0: [sda] Assuming drive cache: write through<br />
[   23.402193] sd 2:0:0:0: [sda] No Caching mode page present<br />
[   23.407893] sd 2:0:0:0: [sda] Assuming drive cache: write through<br />
[   23.421194] sd 2:0:0:0: [sda] No Caching mode page present<br />
[   23.426894] sd 2:0:0:0: [sda] Assuming drive cache: write through<br />
[   25.842956] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)<br />
[   35.854835] EXT4-fs (sda1): couldn't mount as ext3 due to feature incompatibilities<br />
[  126.882998] systemd[1]: Timed out waiting for device dev-md0.device.<br />
[  126.912981] systemd[1]: Dependency failed for /media/dddrive.<br />
[  126.942985] systemd[1]: Dependency failed for Local File Systems.</div></blockquote>
<br />
<blockquote class="bbcode"><div><small>Quote<br/></small><strong>SATA always on</strong><br/>
[   25.847139] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)<br />
[   35.893260] EXT4-fs (sda1): ext4_check_descriptors: Block bitmap for group 0 not in group (block 2838187772)!<br />
[   35.903272] EXT4-fs (sda1): group descriptors corrupted!<br />
[   35.927178] EXT4-fs (sda1): couldn't mount as ext2 due to feature incompatibilities<br />
[   35.964621] EXT4-fs (sda1): ext4_check_descriptors: Block bitmap for group 0 not in group (block 2838187772)!<br />
[   35.974624] EXT4-fs (sda1): group descriptors corrupted!<br />
[   36.056765] Unable to handle kernel paging request at virtual address 00303030<br />
[   36.064043] pgd = c0004000<br />
[   36.066801] [00303030] *pgd=00000000<br />
[   36.070418] Internal error: Oops: 5 [#1] PREEMPT<br />
[   36.075056] Modules linked in:<br />
[   36.078135] CPU: 0    Not tainted  (3.1.10-17-ARCH #1)<br />
[   36.083303] PC is at mount_block_root+0x200/0x280<br />
[   36.088033] LR is at mount_block_root+0x1e0/0x280<br />
[   36.092761] pc : [&lt;c052fbfc&gt;]    lr : [&lt;c052fbdc&gt;]    psr: 40000013<br />
[   36.092766] sp : c7829f80  ip : 00000000  fp : 00000000<br />
[   36.104303] r10: c049f470  r9 : c7812150  r8 : 00008000<br />
[   36.109554] r7 : 00000000  r6 : c0551e7c  r5 : c7812021  r4 : 00303030<br />
[   36.116112] r3 : c7829eb0  r2 : c7829f74  r1 : c049f448  r0 : 00000039<br />
[   36.122669] Flags: nZcv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment kernel<br />
[   36.130020] Control: 0005397f  Table: 00004000  DAC: 00000017<br />
[   36.135791] Process swapper (pid: 1, stack limit = 0xc7828270)<br />
[   36.141651] Stack: (0xc7829f80 to 0xc782a000)<br />
[   36.146043] 9f80: 00000000 00000000 00006180 c74a4c80 00006000 c00d3508 c78190a0 c7497300<br />
[   36.154266] 9fa0: c049f470 00000001 c0593380 c0551e91 c000945c 00000013 00000000 00000000<br />
[   36.162489] 9fc0: 00000000 c052ff3c fffffffe 00000002 00000000 c0558ee4 c0558ee4 c052f8c8<br />
[   36.170711] 9fe0: 00000000 00000000 00000000 00000000 c052f7ac c000945c ffffffff ffffffff<br />
[   36.178942] [&lt;c052fbfc&gt;] (mount_block_root+0x200/0x280) from [&lt;c052ff3c&gt;] (prepare_namespace+0x160/0x1c0)<br />
[   36.188565] [&lt;c052ff3c&gt;] (prepare_namespace+0x160/0x1c0) from [&lt;c052f8c8&gt;] (kernel_init+0x11c/0x14c)<br />
[   36.197758] [&lt;c052f8c8&gt;] (kernel_init+0x11c/0x14c) from [&lt;c000945c&gt;] (kernel_thread_exit+0x0/0x8)<br />
[   36.206682] Code: e1a00004 ebf3b5e7 e2800001 e0844000 (e5d43000) <br />
[   36.212882] ---[ end trace 2f254dfb3bd44332 ]---<br />
[   36.217644] Kernel panic - not syncing: Attempted to kill init!<br />
[   36.223632] [&lt;c000d290&gt;] (unwind_backtrace+0x0/0xe0) from [&lt;c03cc914&gt;] (panic+0x58/0x198)<br />
[   36.231898] [&lt;c03cc914&gt;] (panic+0x58/0x198) from [&lt;c0021a48&gt;] (do_exit+0x88/0x7a0)<br />
[   36.239548] [&lt;c0021a48&gt;] (do_exit+0x88/0x7a0) from [&lt;c000b8e0&gt;] (die+0x1d4/0x200)<br />
[   36.247106] [&lt;c000b8e0&gt;] (die+0x1d4/0x200) from [&lt;c03cc7ec&gt;] (__do_kernel_fault.part.2+0x54/0x74)<br />
[   36.256051] [&lt;c03cc7ec&gt;] (__do_kernel_fault.part.2+0x54/0x74) from [&lt;c03d3f98&gt;] (do_page_fault.part.3+0x274/0x2b0)<br />
[   36.266489] [&lt;c03d3f98&gt;] (do_page_fault.part.3+0x274/0x2b0) from [&lt;c03d4000&gt;] (do_page_fault+0x2c/0x94)<br />
[   36.275965] [&lt;c03d4000&gt;] (do_page_fault+0x2c/0x94) from [&lt;c00083cc&gt;] (do_DataAbort+0x34/0x98)<br />
[   36.284570] [&lt;c00083cc&gt;] (do_DataAbort+0x34/0x98) from [&lt;c03d27b8&gt;] (__dabt_svc+0x38/0x60)<br />
[   36.292896] Exception stack(0xc7829f38 to 0xc7829f80)<br />
[   36.297998] 9f20:                                                       00000039 c049f448<br />
[   36.306231] 9f40: c7829f74 c7829eb0 00303030 c7812021 c0551e7c 00000000 00008000 c7812150<br />
[   36.314474] 9f60: c049f470 00000000 00000000 c7829f80 c052fbdc c052fbfc 40000013 ffffffff<br />
[   36.322729] [&lt;c03d27b8&gt;] (__dabt_svc+0x38/0x60) from [&lt;c052fbfc&gt;] (mount_block_root+0x200/0x280)<br />
[   36.331597] [&lt;c052fbfc&gt;] (mount_block_root+0x200/0x280) from [&lt;c052ff3c&gt;] (prepare_namespace+0x160/0x1c0)<br />
[   36.341241] [&lt;c052ff3c&gt;] (prepare_namespace+0x160/0x1c0) from [&lt;c052f8c8&gt;] (kernel_init+0x11c/0x14c)<br />
[   36.350448] [&lt;c052f8c8&gt;] (kernel_init+0x11c/0x14c) from [&lt;c000945c&gt;] (kernel_thread_exit+0x0/0x8)</div></blockquote>
<br />
Does anybody, what i must do, for a working boot, with the connected SATA disks?]]></description>
            <dc:creator>Marcel</dc:creator>
            <category>uBoot</category>
            <pubDate>Sun, 28 Apr 2013 16:34:27 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,12292,12292#msg-12292</guid>
            <title>Can uboot boot in to an ext3 patition (1 reply)</title>
            <link>http://forum.doozan.com/read.php?3,12292,12292#msg-12292</link>
            <description><![CDATA[ Sorry newbie type question, but<br />
Is it possible to boot into an ext3 partition ?,<br />
I've noticed a few posts about failing to reboot after a power outage/failure. I assume using an ext2 partition.<br />
<br />
I've only just got my pogoE02 and it wouldn't take long to reload Debian , although I found that loading wheezy failed, I had to install squeeze and then upgrade.<br />
<br />
Or could I clone the drive reformat it and load the cloned image ????, a link to a howto on that would help<br />
<br />
Thanks<br />
Richard]]></description>
            <dc:creator>richard-g8jvm</dc:creator>
            <category>uBoot</category>
            <pubDate>Wed, 24 Apr 2013 20:38:58 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,12261,12261#msg-12261</guid>
            <title>Boot your Dockstar by TFTP/NFS (1 reply)</title>
            <link>http://forum.doozan.com/read.php?3,12261,12261#msg-12261</link>
            <description><![CDATA[ Hi there!<br />
<br />
A few month ago, I was trying to boot my dockstar by TFTP &amp; NFS... but did not succeed.<br />
I've left my dockstar on the side for a time, and I recently tried again successfully !<br />
<br />
My <u>deep gratitude to this fellow community</u> who made it all possible by their numerous contributions !<br />
<br />
Here's my modest contribution...<br />
<br />
I tried this with a newly-installed debian wheezy distribution on my dockstar, the latest uboot, and a unmodified debian kernel.<br />
<br />
This guide assumes that you already have a functionnal NFS, TFTP and DHCP server on your network.<br />
In my example, I'm running the TFTP and NFS server on a NAS running Debian, and the DHCP server on a router running OpenWRT.<br />
<br />
Here's how I proceeded<br />
<br />
1. Install <a href="http://forum.doozan.com/read.php?3,6965,8189#msg-8189"  rel="nofollow">latest uboot</a> <b>on the Dockstar</b>:<br />
<pre class="bbcode">
cd /tmp
wget <a href="http://projects.doozan.com/uboot/install_uboot_mtd0.sh"  rel="nofollow">http://projects.doozan.com/uboot/install_uboot_mtd0.sh</a>
chmod +x install_uboot_mtd0.sh
./install_uboot_mtd0.sh</pre>
<br />
2. Install a fresh debian <b>on the Dockstar</b> using the well known <a href="http://projects.doozan.com/debian/"  rel="nofollow">Jeff's script</a>, or try to use your existing dockstar installation.<br />
<br />
3. Copy the dockstar rootfs <b>on the NFS Server</b>:<br />
<pre class="bbcode">
mkdir -p /mnt/usbdockstar
mkdir -p /srv/nfs/hosts/dockstar
mount /dev/&lt;whatever-device-your-dockstar-rootfs-is-on&gt; /mnt/usbdockstar
cp -av /mnt/usbdockstar/* /srv/nfs/hosts/dockstar/
umount /mnt/usbdockstar</pre>
<br />
4. Copy the dockstar boot files <b>on the TFTP Server</b>:<br />
<pre class="bbcode">
mkdir -p /mnt/usbdockstar
mkdir -p /srv/nfs/hosts/dockstar
mount /dev/&lt;whatever-device-your-dockstar-rootfs-is-on&gt; /mnt/usbdockstar
cp -av /mnt/usbdockstar/boot/u* /srv/tftp/nfs/dockstar/
umount /mnt/usbdockstar</pre>
<br />
5. Add the dockstar folder as shared folder <b>on the NFS server</b>:<br />
<pre class="bbcode">
if ! cat /etc/exports | grep /srv/nfs/hosts/dockstar &gt;/dev/null; then
cat &lt;&lt;EOF &gt;&gt;/etc/exports
/srv/nfs/hosts/dockstar                 192.168.0.0/255.255.0.0(rw,sync,no_root_squash,no_subtree_check)
EOF
fi
exportfs -av</pre>
<br />
6. Make changes onto the dockstar rootfs hosted <b>on the NFS server</b> to allow it to properly boot by NFS:<br />
<pre class="bbcode">
# Define Dockstar RootFS location on NFS Server
ROOTFS=/srv/nfs/hosts/dockstar

#Change Root entry in /etc/fstab
sed -i 's;^/dev/root.*;/dev/root       /               nfs    noatime,errors=remount-ro 0 1;' $ROOTFS/etc/fstab

#Disable eth0 auto-configuration
sed -i 's;auto eth0;#auto eth0;' $ROOTFS/etc/network/interfaces

#Disable eth0 auto-configuration (ifplugd)
sed -i 's;eth0;;' $ROOTFS/etc/default/ifplugd;
sed -i 's;^\(INTERFACES\)=&quot;auto&quot;;\1=&quot;&quot;;' $ROOTFS/etc/default/ifplugd
sed -i 's;^\(HOTPLUG_INTERFACES\)=&quot;all&quot;;\1=&quot;&quot;;' $ROOTFS/etc/default/ifplugd</pre>
<br />
7. Create NetBoot variables in uboot <b>on the Dockstar</b> from the running Linux:<br />
This will not yet alter the Dockstar startup configuration. All the following commands create non-existing variables into uBoot.<br />
<pre class="bbcode">
#NetBoot variables
# -User-Serviceable
fw_setenv net_dhcp_c '1'
fw_setenv net_dhcp_s '0'
fw_setenv net_c_ipaddr ''
fw_setenv net_c_netmask ''
fw_setenv net_c_gatewayip ''
fw_setenv net_tftp_server '192.168.1.1'
fw_setenv net_tftp_kernel 'nfs/dockstar/uImage'
fw_setenv net_tftp_initrd 'nfs/dockstar/uInitrd'
fw_setenv net_nfs_server '192.168.1.1'
fw_setenv net_nfs_path '/srv/nfs/hosts/dockstar'

# -Fixed
fw_setenv net_bootcmd 'run net_check_dhcp_c; run net_check_dhcp_s; run net_set_bootargs; run net_boot'
fw_setenv net_boot 'tftp 0x800000 $net_tftp_kernel; echo; echo ** Kernel Boot Arguments: $bootargs; echo;if tftp 0xe00000 $net_tftp_initrd; then bootm 0x800000 0xe00000;else bootm 0x800000;fi'
fw_setenv net_set_bootargs 'setenv serverip $net_tftp_server; setenv bootargs console=$console root=/dev/nfs rootfstype=nfs rootwait nfsroot=$net_nfs_server:$net_nfs_path ip=$ipaddr:$net_nfs_server:$gatewayip:$netmask:dockstar:eth0:off $mtdparts'
fw_setenv net_check_dhcp_c 'if test $net_dhcp_c -eq 1 ; then run net_set_c_ip_dhcp; else run net_set_c_ip_stat; fi;echo ** IP Address: $ipaddr; echo ** Subnet Mask: $netmask; echo ** Def Gateway: $gatewayip'
fw_setenv net_set_c_ip_dhcp 'dhcp; echo; echo ** net_dhcp_c = 1 --&gt; Getting IP Settings by DHCP'
fw_setenv net_set_c_ip_stat 'setenv ipaddr $net_c_ipaddr; setenv netmask $net_c_netmask; setenv gatewayip $net_c_gatewayip; echo; echo ** net_dhcp_c = 0 --&gt; Using static IP Settings'
fw_setenv net_check_dhcp_s 'if test $net_dhcp_s -eq 1 &amp;&amp; test $net_dhcp_c -eq 1 ; then run net_set_s_ip_dhcp; else run net_set_s_ip_stat; fi;echo ** TFTP Boot Server: $net_tftp_server; echo ** NFS Boot Server: $net_nfs_server; echo'
fw_setenv net_set_s_ip_dhcp 'setenv net_tftp_server $serverip; setenv net_nfs_server $serverip;echo; echo ** net_dhcp_s and net_dhcp_c = 1 --&gt; Getting TFTP and NFS Boot Server by DHCP'
fw_setenv net_set_s_ip_stat 'echo; echo ** net_dhcp_s or net_dhcp_c = 0 --&gt; Using static TFTP and NFS Boot Server'

#NetBoot variables End</pre>
<br />
8. Now you need access to uBoot to test the TFTP/NFS boot.<br />
You can either <a href="http://wejp.k.vu/dockstar/dockstar_repair_with_serial_cable"  rel="nofollow">plug a serial adapter</a> on your Dockstar or <a href="http://forum.doozan.com/read.php?3,14"  rel="nofollow">configure uBoot to send the information by netconsole</a><br />
I used the first option, but here's the procedure for the second one, assuming your NetCat client runs on 192.168.1.250.<br />
<br />
<b>On the dockstar</b>, enter:<br />
<pre class="bbcode">
fw_setenv netcatip 192.168.1.250
fw_setenv if_netconsole 'ping $netcatip'
fw_setenv start_netconsole 'setenv ncip $netcatip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;'
fw_setenv preboot 'dhcp; run if_netconsole start_netconsole'</pre>
<br />
To receive the console on your computer, run:<br />
<pre class="bbcode">
nc -l -u -p 6666</pre>
<br />
9. Reboot the dockstar, interrupt the autoboot and execute <br />
<pre class="bbcode">
run net_bootcmd</pre>
<br />
It should boot your dockstar by TFTP and NFS.<br />
<pre class="bbcode">
U-Boot 2011.12 (Feb 12 2012 - 21:33:07)
Seagate FreeAgent DockStar

SoC:   Kirkwood 88F6281_A0
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
u-boot&gt;&gt; run net_bootcmd
BOOTP broadcast 1
*** Unhandled DHCP Option in OFFER/ACK: 28
*** Unhandled DHCP Option in OFFER/ACK: 28
DHCP client bound to address 192.168.222.239
Using egiga0 device
TFTP from server 192.168.222.1; our IP address is 192.168.222.239
Filename 'boot/gpxelinux.0'.
Load address: 0x800000
Loading: #######
done
Bytes transferred = 89432 (15d58 hex)

** net_dhcp_c = 1 --&gt; Getting IP Settings by DHCP
** IP Address: 192.168.1.239
** Subnet Mask: 255.255.255.0
** Def Gateway: 192.168.1.254

** net_dhcp_s or net_dhcp_c = 0 --&gt; Using static TFTP and NFS Boot Server
** TFTP Boot Server: 192.168.1.1
** NFS Boot Server: 192.168.1.1

Using egiga0 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.239
Filename 'nfs/dockstar/uImage'.
Load address: 0x800000
Loading: #################################################################
         #############################################
done
Bytes transferred = 1606576 (1883b0 hex)

** Kernel Boot Arguments: console=ttyS0,115200 root=/dev/nfs rootfstype=nfs rootwait nfsroot=192.168.1.1:/srv/nfs/hosts/dockstar ip=192.168.1.239:192.168.1.1:192.168.1.254:255.255.255.0:dockstar:eth0:off mtdparts=orion_nand:1M(u)

Using egiga0 device
TFTP from server 192.168.1.1; our IP address is 192.168.1.239
Filename 'nfs/dockstar/uInitrd'.
Load address: 0xe00000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ##########
done
Bytes transferred = 6817161 (680589 hex)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-3.2.0-4-kirkwood
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    1606512 Bytes = 1.5 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 00e00000 ...
   Image Name:   initramfs-3.2.0-4-kirkwood
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6817097 Bytes = 6.5 MiB
   Load Address: 00000000
   Entry Point:  00000000
   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 3.2.0-4-kirkwood (debian-kernel@lists.debian.org) (gcc version 4.6.3 (Debian 4.6.3-15) ) #1 Debian 3.2.41-2

 ...

IP-Config: eth0 hardware address 00:10:75:27:3e:f3 mtu 1500
IP-Config: eth0 guessed broadcast address 192.168.1.255
IP-Config: eth0 complete:
 address: 192.168.1.239  broadcast: 192.168.1.255    netmask: 255.255.255.0
 gateway: 192.168.1.254  dns0     : 0.0.0.0          dns1   : 0.0.0.0
 host   : dockstar
 rootserver: 192.168.1.1 rootpath:
 filename  :
Begin: Running /scripts/nfs-premount ... done.

 ...

[....] Starting OpenBSD Secure Shell server: sshd. ok

Debian GNU/Linux 7.0 dockstar ttyS0

dockstar login:</pre>
<br />
10. If your boot attempt was successful, alter the dockstar boot sequence to try to boot by NFS with the following command:<br />
<pre class="bbcode">
fw_setenv bootcmd 'usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run net_bootcmd; run rescue_bootcmd; run pogo_bootcmd; reset'</pre>
<br />
It's a copy of the original boot command, altered to try to boot by NFS after it fails to boot by USB, but before it tries to boot the rescue_system.<br />
<br />
Next time you reboot, your dockstar will boot by NFS if it cannot find a bootable USB storage.<br />
<br />
EnJoY !<br />
<br />
<br />
N.B.<br />
In the current configuration, the dockstar will get an IP address by DHCP, but will boot from the statically defined TFTP &amp; NFS server. If you want the dockstar to get the IP address of the TFTP &amp; NFS server by DHCP, just change this:<br />
<pre class="bbcode">
fw_setenv net_dhcp_s '1'</pre>
The DHCP server should then provide the server address with the dhcp option 66<br />
(known as 'TFTP server name' or 'next-server')<br />
<br />
Alternatively, if there's no DHCP server on your network or the DHCP server gives faulty information (I had the case with a cable modem that returned an inexisting boot file in option 67), You can statically define your client IP settings with the following changes:<br />
<pre class="bbcode">
fw_setenv net_dhcp_c '0'
fw_setenv net_c_ipaddr '192.168.1.5'
fw_setenv net_c_netmask '255.255.255.0'
fw_setenv net_c_gatewayip '192.168.1.254'</pre>
In this case, you also MUST statically define the IP address for<br />
<pre class="bbcode">
fw_setenv net_tftp_server '192.168.1.1'
fw_setenv net_nfs_server '192.168.1.1'
</pre>]]></description>
            <dc:creator>tsunulukai</dc:creator>
            <category>uBoot</category>
            <pubDate>Sat, 20 Apr 2013 10:22:46 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,12218,12218#msg-12218</guid>
            <title>uBoot does not count down in Serial Console (Pogo E02) [SOLVED] (17 replies)</title>
            <link>http://forum.doozan.com/read.php?3,12218,12218#msg-12218</link>
            <description><![CDATA[ I'm running davy's uBoot on my Pogo E02:<br />
<br />
Netconsole:<br />
<pre class="bbcode">
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: 10</pre>
<br />
I have serial console connected to this E02 and it is strange that I don't see the count down.<br />
<pre class="bbcode">
U-Boot 2011.12 (Feb 20 2012 - 21:21:59)
Pogoplug E02

SoC:   Kirkwood 88F6281_A0
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
88E1116 Initialized on egiga0
Using egiga0 device
host 192.168.0.220 is alive</pre>
<br />
uBoot env for boot delay:<br />
<br />
bootdelay=3<br />
<br />
Anybody knows why? if you have serial console on Pogo E02, does yours have a countdown?]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>uBoot</category>
            <pubDate>Sun, 05 May 2013 16:37:17 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,12194,12194#msg-12194</guid>
            <title>POGO-E02 Debian installation broken (2 replies)</title>
            <link>http://forum.doozan.com/read.php?3,12194,12194#msg-12194</link>
            <description><![CDATA[ Hi,<br />
my deabian installation crashed recently.<br />
my usb stick is broken and all data on it is lost.<br />
i am stuck with an POGO-E02(black) looping arround without an usb stick.<br />
<br />
i have no idear on gettin it runnig again,<br />
i tested a ARCHLINUX usb boot stick which worked,<br />
but there was no access to the mtdblock1 to reset it to original Pogoplug.<br />
<br />
is there any solution for my problem,<br />
for example an image of another usb stick to boot in the system again?]]></description>
            <dc:creator>zAM</dc:creator>
            <category>uBoot</category>
            <pubDate>Thu, 09 May 2013 04:16:00 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,12187,12187#msg-12187</guid>
            <title>Altered Uboot env, PPV4, need to revert to initial env (3 replies)</title>
            <link>http://forum.doozan.com/read.php?3,12187,12187#msg-12187</link>
            <description><![CDATA[ Hi, with the help of bodhi and shv, I was able to get my pogoplug series 4 to flash the custom uboot. I was unable to boot with a second usb drive plugged in and attempted to change some of the usb_boot env and usb_root settings in uboot.<br />
<br />
I was hoping that someone might be able to help identify what command I would need to revert my env back to normal. I've tried, but I don't think that I am chaining them together right. Every time I make a change, it seems to get worse. <br />
<br />
Follows is my printenv listing.<pre class="bbcode">
rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params

Environment size: 2966/131068 bytes
Pogov4&gt; printenv
printenv

arcNumber=3960
baudrate=115200
bootargs=console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ext2 mtdpar
ts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M(root)
bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd;
 usb stop; run mmc_bootcmd
bootdelay=10
console=ttyS0,115200
ethact=egiga0
ethaddr=02:50:43:5c:3f:bd
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
if_netconsole=ping $serverip
ipaddr=192.168.1.99
led_error=orange blinking
led_exit=green off
led_init=green blinking
machid=F78
mainlineLinux=yes
mmc_bootcmd=mmc init; mmc init;ext2load mmc 0:1 0x00800000 /boot/uImage; if ext2
load mmc 0:1 0x01100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm
 0x800000; fi
mtddevname=uImage2
mtddevnum=2
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:2M(u-boot),3M(uImage),3M(uImage2),8M(failsafe),112M
(root)
ncip=192.168.1.252
partition=nand0,2
pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi
preboot=run if_netconsole start_netconsole
rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; na
nd 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
serverip=192.168.1.252
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; se
tenv stdout nc; setenv stderr nc; version;
stderr=nc
stdin=nc
stdout=nc
ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data &amp;&amp; ubifsmount rootfs &amp;&amp; u
bifsload 0x800000 /boot/uImage &amp;&amp; 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 ext
2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; el
se 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 t
est $usb_scan_done -eq 0 &amp;&amp; ext2load usb $usb 0x800000 /boot/uImage 1; then usb_
scan_done=1; echo &quot;Found bootable drive on usb $usb&quot;; setenv usb_device $usb; se
tenv 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: 2966/131068 bytes
Pogov4&gt;</pre>
My other exploits were listed <a href="http://forum.doozan.com/read.php?2,12105,12129#msg-12129"  rel="nofollow">here</a><br />
<br />
here is my boot log.<br />
<pre class="bbcode">
U-Boot 2011.12 (Apr 08 2012 - 19:03:41)
Cloud Engines-Pogoplug v4/Mobile:MMC version
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... 2 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
Loading file &quot;/rescueme&quot; from usb device 0:1 (usbda1)
** File not found /rescueme
reading /rescueme.txt

** Unable to read &quot;/rescueme.txt&quot; from usb 0:1 **
incorrect device type in data
Partition data not found!
Loading file &quot;/boot/uImage&quot; from usb device 0:1 (usbda1)
1 bytes read
Found bootable drive on usb 0:1
Loading file &quot;/boot/uImage&quot; from usb device 0:1 (usbda1)
2185768 bytes read
Loading file &quot;/boot/uInitrd&quot; from usb device 0:1 (usbda1)
6938844 bytes read
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-3.3.2-kirkwood-shv
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2185704 Bytes = 2.1 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-3.3.2-kirkwood-shv
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    6938780 Bytes = 6.6 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK
Using machid 0xf78 from environment

Starting kernel ...</pre>
<br />
edit...I edited my post as I had not had a successful boot after last night, but tried again today from a different computer and was successful.]]></description>
            <dc:creator>t3ch42</dc:creator>
            <category>uBoot</category>
            <pubDate>Thu, 11 Apr 2013 18:29:49 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,12158,12158#msg-12158</guid>
            <title>GoFlex Home: booting the original firmware (6 replies)</title>
            <link>http://forum.doozan.com/read.php?3,12158,12158#msg-12158</link>
            <description><![CDATA[ I have installed the new u-boot using Jeff's install_uboot_mtd0.sh in my Seagate GoFlex Home without any problems. I have also installed Debian following davygravy's instructions in <a href="http://forum.doozan.com/read.php?2,7806"  rel="nofollow">http://forum.doozan.com/read.php?2,7806</a>. However I only have a few moments everyday to work in the unit (while is not serving files to the family) and hence, I need to boot the original firmware until my Debian installation is fully configured and working. According to <a href="http://projects.doozan.com/uboot/"  rel="nofollow">http://projects.doozan.com/uboot/</a>, it can be done by simply unplugging the USB drive and rebooting. But it doesn't work in my case. I plugged a serial cable to the GFH and here is the output:<br />
<br />
<pre class="bbcode">
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:  3 ??? 2 ??? 1 ??? 0 
(Re)start USB...
USB:   Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 1 USB Device(s) found
       scanning bus for storage devices... 0 Storage Device(s) found
** Block device usb 0 not supported

** Invalid boot device **
Creating 1 MTD partitions on &quot;nand0&quot;:
0x000002500000-0x000010000000 : &quot;mtd=3&quot;
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
UBI error: validate_ec_hdr: bad VID header offset 2048, expected 512
UBI error: validate_ec_hdr: bad EC header
UBI error: ubi_io_read_ec_hdr: validation failed for PEB 0
UBI error: ubi_init: cannot attach mtd1
UBI error: ubi_init: UBI error: cannot initialize UBI, error -22
UBI init error 22
** Block device usb 0 not supported
** Block device usb 1 not supported
** Block device usb 2 not supported
** Block device usb 3 not supported
** Block device usb 0 not supported
** Block device usb 0 not supported
Wrong Image Format for bootm command
ERROR: can't get kernel image!
stopping USB..
### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x800000
Scanning JFFS2 FS:   ?? done.

find_inode failed for name=uboot-original-mtd0.kwb

load: Failed to find inode

### JFFS2 LOAD ERROR&lt;0&gt; for uboot-original-mtd0.kwb!
### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x800000
Scanning JFFS2 FS:</pre>
<br />
The printenv output is <br />
<pre class="bbcode">
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 &amp;&amp; ubifsmount rootfs &amp;&amp; ubifsload 0x800000 /boot/uImage &amp;&amp; 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 &amp;&amp; ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo &quot;Found bootable drive on usb $usb&quot;; 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:10:75:29:73:32
arcNumber=3338</pre>
<br />
I was able to boot the original kernel by running the original uboot environment commands:<br />
<pre class="bbcode">
GoFlexNet&gt; setenv bootargs_root 'ubi.mtd=2,2048 root=ubi0:rootfs rootfstype=ubifs init=/linuxrc'
GoFlexNet&gt; setenv console2 'console=ttyS0,115200'
GoFlexNet&gt; setenv bootcmd 'nand read.e 0x800000 0x100000 0x600000; setenv bootargs $(console2) $(bootargs_root); bootm 0x800000'
GoFlexNet&gt; run bootcmd 

NAND read: device 0 offset 0x100000, size 0x600000
 6291456 bytes read: OK
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-2.6.22.18
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2095148 Bytes = 2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux.................................................................................................................................... done, booting the kernel.</pre>
but then it hangs. I tried setting all the original environment variables before running those commands without any success.<br />
<br />
I can revert to the original uboot but I would like to have a way to boot the original firmware from the updated uboot. <br />
<br />
Does you have any idea on what is going wrong?<br />
<br />
Thanks and sorry for this long post.]]></description>
            <dc:creator>teosoft</dc:creator>
            <category>uBoot</category>
            <pubDate>Wed, 10 Apr 2013 17:42:12 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,12084,12084#msg-12084</guid>
            <title>Cant update uboot: wget: content-length 337 is garbage (2 replies)</title>
            <link>http://forum.doozan.com/read.php?3,12084,12084#msg-12084</link>
            <description><![CDATA[ Hi, <br />
Thank You for Your great support and a way to unlock power in my Pogoplug. <br />
<br />
I have Pogoplug E02. Brand new, just activated. Ive gain asscess to SSH and I am trying to update uboot to be able to use alternative linux distro like Debian or Archlinux. <br />
<br />
I am struggling with the update procedutre. Simply - It cant install new uboot.<br />
<br />
Ive tried few times - at first it downloaded some files and it took some operations but unfortunaletty I dont have log for this. But anyway - it stops in the same way as at first run: rm: &quot;cannot remove '/tmp/valid-uboot.md5': No such file or directory&quot;<br />
Heres terminal output: <br />
<pre class="bbcode">
Using username &quot;root&quot;.
-bash-3.2# cd /tmp
-bash-3.2# wget <a href="http://projects.doozan.com/uboot/install_uboot_mtd0.sh"  rel="nofollow">http://projects.doozan.com/uboot/install_uboot_mtd0.sh</a>
Connecting to projects.doozan.com (50.116.34.13:80)
install_uboot_mtd0.s 100% |*******************************| 18406  --:--:-- ETA
-bash-3.2# chmod +x install_uboot_mtd0.sh
-bash-3.2# ./install_uboot_mtd0.sh


!!!!!!  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...
Connecting to jeff.doozan.com (50.116.34.13:80)
wget: content-length 337       is garbage
grep: /tmp/valid-uboot.md5: No such file or directory
## Unknown uBoot detected on mtd0: c7b77a049725096d83db958f39b2c0c3
##
## The installer could not detect the version of your current uBoot
## This may happen if you have installed a different uBoot on
## /dev/mtd0 or if you have bad blocks on /dev/mtd0
##
## If you have bad blocks on mtd0, you should not try to install uBoot.
##
## Installation cancelled.
rm: cannot remove '/tmp/valid-uboot.md5': No such file or directory</pre>
<br />
It looks like wget cant download proper files (?) <br />
I have some new files in /etc like : fw_env.config<br />
Pogoplug restarts without any problems and work flawlessly but still I d like to play with full linux distro... <br />
Pleae help me.]]></description>
            <dc:creator>janptak</dc:creator>
            <category>uBoot</category>
            <pubDate>Tue, 02 Apr 2013 04:00:29 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,11831,11831#msg-11831</guid>
            <title>Please help with uboot compiling on dockstar (2 replies)</title>
            <link>http://forum.doozan.com/read.php?3,11831,11831#msg-11831</link>
            <description><![CDATA[ Hi<br />
<br />
Cutting a long story short:<br />
I can compile uboot without errors, but as soon as i try to load the new kwb from the already installed uboot, the dockstar hangs.<br />
<br />
i have a dockstar, i am currently running the latest uboot installed with jeffs installer.<br />
It is version 2011.12 compiled by davygravy if i am not completely mistaken.<br />
This version works fine, it does not support mmc however. Since i modded my dockstar to have the sd slot, i would reallz like to use it.<br />
I am running a gentoo on this dockstar (gcc 4.6.3), i thought i could just download the 2011.12 sources, apply the patches (which i found in other threads) and compile. Compiling went fine, the dd command for aligning aswell, but as soon as i try to &quot;go&quot; after ther tftp, the dockstar hangs.<br />
To make sure that it wasnt the patches, i tried a 2011.12 and 2013.01 vanilla compile, 2011.12 with the dockstar patches but withou the mmc patch ... none did work. i also tried aligned/non aligned and bin/kwb. As you can see i do not have much experience in this area, thats why i tried all combinations.<br />
<br />
I read the forums for quite a while, and in another thread it was suggeste to use the codesourcery 2009q3 for compiling. Thing is: cant find that software anymore, and maybe i dont need it.<br />
<br />
questions:<br />
do i maybe miss compiler options ?<br />
do i need a different compiler/toolchain ? i could setup a vm with the eldk ... <br />
maybe somebody has a build environment?<br />
maybe there is a uboot already that can boot current kernels (3.8.2) and has mmc/sd support for the dockstar?<br />
<br />
any hints are really appreciated. <br />
many thanks in advance]]></description>
            <dc:creator>mr_evil</dc:creator>
            <category>uBoot</category>
            <pubDate>Tue, 12 Mar 2013 14:46:41 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,11641,11641#msg-11641</guid>
            <title>Hello, pbs with Uboot/Nand... :( (2 replies)</title>
            <link>http://forum.doozan.com/read.php?3,11641,11641#msg-11641</link>
            <description><![CDATA[ First of all, thanks to all contributors for helping people !! <br />
<br />
Then.. sorry for my scholar english (and maybe incorrect) I'm french ;)<br />
<br />
ok let's talks about my problem(s) :<br />
<br />
I've two GFH. One is fine, running Arch.. The second one is running.. almost..<br />
<br />
I've installed a jeff's u-boot through the script.<br />
<br />
I can boot from USB on the Rescue System. (thanks !)<br />
<br />
But when I want to upgrade the Uboot :<br />
<br />
<pre class="bbcode">
nandwrite /dev/mtd1 uImage-mtd1.img
Writing data to block 0 at offset 0x0
Bad block at 0, 1 block(s) from 0 will be skipped
Writing data to block 1 at offset 0x20000
Bad block at 20000, 1 block(s) from 20000 will be skipped
Writing data to block 2 at offset 0x40000
Bad block at 40000, 1 block(s) from 40000 will be skipped
Writing data to block 3 at offset 0x60000
Bad block at 60000, 1 block(s) from 60000 will be skipped
Writing data to block 4 at offset 0x80000
Bad block at 80000, 1 block(s) from 80000 will be skipped
Writing data to block 5 at offset 0xa0000
Bad block at a0000, 1 block(s) from a0000 will be skipped
Writing data to block 6 at offset 0xc0000
Bad block at c0000, 1 block(s) from c0000 will be skipped
Writing data to block 7 at offset 0xe0000
Bad block at e0000, 1 block(s) from e0000 will be skipped
Writing data to block 8 at offset 0x100000
Bad block at 100000, 1 block(s) from 100000 will be skipped
Writing data to block 9 at offset 0x120000
Bad block at 120000, 1 block(s) from 120000 will be skipped
Writing data to block 10 at offset 0x140000
Bad block at 140000, 1 block(s) from 140000 will be skipped
Writing data to block 11 at offset 0x160000
Bad block at 160000, 1 block(s) from 160000 will be skipped
Writing data to block 12 at offset 0x180000
Bad block at 180000, 1 block(s) from 180000 will be skipped
Writing data to block 13 at offset 0x1a0000
Bad block at 1a0000, 1 block(s) from 1a0000 will be skipped
Writing data to block 14 at offset 0x1c0000
Bad block at 1c0000, 1 block(s) from 1c0000 will be skipped
Writing data to block 15 at offset 0x1e0000
Bad block at 1e0000, 1 block(s) from 1e0000 will be skipped
Writing data to block 16 at offset 0x200000
Bad block at 200000, 1 block(s) from 200000 will be skipped
Writing data to block 17 at offset 0x220000
Bad block at 220000, 1 block(s) from 220000 will be skipped
Writing data to block 18 at offset 0x240000
Bad block at 240000, 1 block(s) from 240000 will be skipped
Writing data to block 19 at offset 0x260000
Bad block at 260000, 1 block(s) from 260000 will be skipped
Writing data to block 20 at offset 0x280000
Bad block at 280000, 1 block(s) from 280000 will be skipped
Writing data to block 21 at offset 0x2a0000
Bad block at 2a0000, 1 block(s) from 2a0000 will be skipped
Writing data to block 22 at offset 0x2c0000
Bad block at 2c0000, 1 block(s) from 2c0000 will be skipped
Writing data to block 23 at offset 0x2e0000
Bad block at 2e0000, 1 block(s) from 2e0000 will be skipped
Writing data to block 24 at offset 0x300000
Bad block at 300000, 1 block(s) from 300000 will be skipped
Writing data to block 25 at offset 0x320000
Bad block at 320000, 1 block(s) from 320000 will be skipped
Writing data to block 26 at offset 0x340000
Bad block at 340000, 1 block(s) from 340000 will be skipped
Writing data to block 27 at offset 0x360000
Bad block at 360000, 1 block(s) from 360000 will be skipped
Writing data to block 28 at offset 0x380000
Bad block at 380000, 1 block(s) from 380000 will be skipped
Writing data to block 29 at offset 0x3a0000
Bad block at 3a0000, 1 block(s) from 3a0000 will be skipped
Writing data to block 30 at offset 0x3c0000
Bad block at 3c0000, 1 block(s) from 3c0000 will be skipped
Writing data to block 31 at offset 0x3e0000
Bad block at 3e0000, 1 block(s) from 3e0000 will be skipped
Writing data to block 32 at offset 0x400000
ioctl(MEMGETBADBLOCK): Invalid argument
Data was only partially written due to error
: Invalid argument</pre>
<br />
<pre class="bbcode">
nandtest /dev/mtd0
ECC corrections: 0
ECC failures   : 0
Bad blocks     : 8
BBT blocks     : 0
Bad block at 0x00000000
Bad block at 0x00020000
Bad block at 0x00040000
Bad block at 0x00060000
Bad block at 0x00080000
Bad block at 0x000a0000
Bad block at 0x000c0000
Bad block at 0x000e0000

Finished pass 1 successfully</pre>
<br />
try everything i've found to clean this and had a proper uboot..<br />
<br />
the GFH boots on archlinux, rescue system, get a DHCP address, be accessed through ssh but i can't see anything on netconsole..<br />
<br />
Serial adapter is on the way..<br />
<br />
Any ideas ?]]></description>
            <dc:creator>troupier</dc:creator>
            <category>uBoot</category>
            <pubDate>Sat, 02 Mar 2013 07:33:57 -0500</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,11622,11622#msg-11622</guid>
            <title>Problems with Pogoplug E02 (2 replies)</title>
            <link>http://forum.doozan.com/read.php?3,11622,11622#msg-11622</link>
            <description><![CDATA[ Hi,<br />
<br />
First: sorry for my english :-)<br />
<br />
I have 3 identical Pogoplugs E02 buy in December.<br />
<br />
One i have installing Debian with the script of December, all fine.<br />
<br />
Yesterday i want isntall the other 2, all ok boot no boot.<br />
<br />
Led ist ornage but no network connection. I take the image of the 1, but no running too.<br />
<br />
I see that there are changes in the script, perhaps a new bootlader?<br />
<br />
Can i backup the bootlader partition from my first running pogo und flash the other 2?<br />
How?<br />
<br />
Thx for your help]]></description>
            <dc:creator>bernd99</dc:creator>
            <category>uBoot</category>
            <pubDate>Wed, 27 Feb 2013 15:23:13 -0500</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,11583,11583#msg-11583</guid>
            <title>[Pogoplug] Booting with multiple USB devices plugged in (12 replies)</title>
            <link>http://forum.doozan.com/read.php?3,11583,11583#msg-11583</link>
            <description><![CDATA[ Apologies if this has already been answered before - I looked but didn't find it.<br />
<br />
I have Debian Squeeze running on my Pogoplug per the instructions here: <a href="http://projects.doozan.com/debian/"  rel="nofollow">http://projects.doozan.com/debian/</a><br />
<br />
My boot device is a thumb drive. When just the thumb drive is plugged in, it boots up great. However, if I have an external USB drive plugged in, it doesn't boot up. If I plug the USB drive in after it is booted up, everything works fine.<br />
<br />
How do I tell the bootloader to boot from a specific USB drive?]]></description>
            <dc:creator>Clark</dc:creator>
            <category>uBoot</category>
            <pubDate>Sat, 02 Mar 2013 09:56:01 -0500</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,11538,11538#msg-11538</guid>
            <title>[Pogoplug Series 4] Booting Debian with Arch Linux ARM uBoot (15 replies)</title>
            <link>http://forum.doozan.com/read.php?3,11538,11538#msg-11538</link>
            <description><![CDATA[ Here I want to describe how I modified uBoot envs in the Pogoplug V4 to boot Debian. This is done for booting with SATA or USB drive. To boot with SD card or USB, see Davygravy's instruction at <a href="http://forum.doozan.com/read.php?3,7477"  rel="nofollow">http://forum.doozan.com/read.php?3,7477</a>  (Davygravy's uBoot is of newer version and much more flexible in that we can use netconsole and other newer uBoot features, however it does not boot with SATA). <br />
<br />
As usual, the warning: if you don't have serial console, and have no mean of installing serial console in the future, to recover from potential problems in messing with uBoot envs, then perhaps you should not do it. Arch uBoot does not have netconsole capability, so serial console is needed to recover from bad uBoot envs. <br />
<br />
These steps were copied from my installation log. Again, please study the uBoot envs below and make sure that it makes sense to you before modifying them.<br />
<br />
This procedure will allow for SATA drive booting first and then USB drive booting.<br />
<br />
<pre class="bbcode">
- Boot into Pogo OS, and save CloudEngines (CE) bin directory /usr/local/cloudengines/bin to a USB drive. We need blparam in this direcotry to change uBoot envs later 
- Install Arch Linux ARM on USB. See instruction at <a href="http://archlinuxarm.org/platforms/armv5/pogoplug-series-4"  rel="nofollow">http://archlinuxarm.org/platforms/armv5/pogoplug-series-4</a>
- Boot into Arch, copy saved CE bin directory to /usr/local/bin/cloudengines/bin/

- To list uBoot envs
/usr/local/bin/cloudengines/bin/blparam

- Add uBoot envs to boot Debian

cd /usr/local/bin/cloudengines/bin/

./blparam debian_usb='if ext2load usb 0:1 0x800000 /boot/uImage; then run alarm_which; run alarm_args; fi; if ext2load usb 0:1 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi'

./blparam isDisk='no'

./blparam debian_ide='if ext2load ide 0:1 0x800000 /boot/uImage; then setenv device /dev/sda1; run alarm_args; if ext2load ide 0:1 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi; else setenv isDisk yes; fi'

./blparam debian_boot='ide reset; run alarm_revert; if ide part 0; then run debian_ide; else setenv isDisk no; fi; run debian_usb'

- Modify bootcmd env 

./blparam bootcmd='if usb start; then run debian_boot; else nand read 0x800000 0x100000 0x73d0c; go 0x800000; fi'

- Shutdown and cold start with you Debian SATA or USB drive.
</pre>]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>uBoot</category>
            <pubDate>Mon, 04 Mar 2013 04:57:35 -0500</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,11532,11532#msg-11532</guid>
            <title>Pogoplug boot problem (4 replies)</title>
            <link>http://forum.doozan.com/read.php?3,11532,11532#msg-11532</link>
            <description><![CDATA[ I have a Pogoplug E02. I mess around with uboot with fw_setenv and it does not boot up anymore. (no response to SSH, no status light on the device, IP assigned to pogoplug) I could netconsole to it and it shows the following when i reboot.<br />
<pre class="bbcode">
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 
u-boot&gt;&gt;</pre>
<br />
fw_printenv output:<br />
<pre class="bbcode">
Pogoplug:ß$  /usr/sbin/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 &amp;&amp; ubifsmount rootfs &amp;&amp; ubifsload 0x800000 /boot/uImage &amp;&amp; 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 &amp;&amp; ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo &quot;Found bootable drive on usb $usb&quot;; 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_device=0:1
usb_root=/dev/sda1
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
ethaddr=00:25:31:03:04:9C
arcNumber=2097
serverip=192.168.0.102
ipaddr=192.168.0.103
if_netconsole=ping $serverip
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
preboot=run if_netconsole start_netconsole
usb_rootfstype=ext3
usb_init=usb stop; usb start; run usb_scan
bootcmd=usb=start</pre>
<br />
How can I restore to normal pogoplug prompt?]]></description>
            <dc:creator>timmypro</dc:creator>
            <category>uBoot</category>
            <pubDate>Sun, 31 Mar 2013 12:54:20 -0400</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,11491,11491#msg-11491</guid>
            <title>uBoot install Error (no replies)</title>
            <link>http://forum.doozan.com/read.php?3,11491,11491#msg-11491</link>
            <description><![CDATA[ i try to istall uBoot on my goFlex Home but every time i start the script i say´s 404 Not Found! IS there a Bug in the Script or the downloadserver moved?<br />
<pre class="bbcode">
!!!!!!  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.

-n 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...
Connecting to jeff.doozan.com (50.116.34.13:80)
Connecting to projects.doozan.com (50.116.34.13:80)
valid-uboot.md5      100% |********************************************************************************************************************************************************************************************|  1133  --:--:-- ETA
./install_uboot_mtd0.sh: line 250: head: not found
## Unknown uBoot detected on mtd0: 907809c6d628dd10b143a36d9b3f57ca
##
## --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
./install_uboot_mtd0.sh: line 342: head: not found
./install_uboot_mtd0.sh: line 342: sed: not found

# Installing uBoot
## Installing goflexhome
Connecting to download.doozan.com (50.116.34.13:80)
wget: server returned error: HTTP/1.1 404 Not Found
Connecting to download.doozan.com (50.116.34.13:80)
wget: server returned error: HTTP/1.1 404 Not Found
## uBoot could not be downloaded, or the MD5 does not match.
## Exiting. No changes were made to mtd0.
ubit0-6:/tmp#</pre>
<br />
Greeting<br />
AcidFire]]></description>
            <dc:creator>AcidFir</dc:creator>
            <category>uBoot</category>
            <pubDate>Mon, 11 Feb 2013 10:44:23 -0500</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,11459,11459#msg-11459</guid>
            <title>getting the dockstar into arm mode with jtag (no replies)</title>
            <link>http://forum.doozan.com/read.php?3,11459,11459#msg-11459</link>
            <description><![CDATA[ hey everyone,<br />
<br />
managed to brick my dockstar (accidently erased 0x0...). got a bus pirate with seeedstudio connect cable. <br />
i connected the bus pirate to the jtag using the info at: <a href="http://translate.google.de/translate?hl=de&amp;sl=fr&amp;tl=en&amp;u=http%3A%2F%2Fpsolyca.free.fr%2Fwiki%2Fdoku.php%3Fid%3Ddockstar%3Ajtag"  rel="nofollow">http://translate.google.de/translate?hl=de&amp;sl=fr&amp;tl=en&amp;u=http%3A%2F%2Fpsolyca.free.fr%2Fwiki%2Fdoku.php%3Fid%3Ddockstar%3Ajtag</a><br />
i connected a cheap usb ttl converter like the one varkey used for the goflex net.<br />
<br />
i think i got jtag running, but everytime i try to halt the cpu, it freezes in thumb mode :(<br />
target state: halted<br />
target halted in Thumb state due to debug-request, current mode: Supervisor<br />
cpsr: 0x400000f3 pc: 0xffff0a42<br />
MMU: enabled, D-Cache: enabled, I-Cache: enabled<br />
<br />
how can i get that damn thing into arm mode to get a new uboot?<br />
<br />
thanks]]></description>
            <dc:creator>murpf</dc:creator>
            <category>uBoot</category>
            <pubDate>Thu, 07 Feb 2013 05:16:29 -0500</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,11437,11437#msg-11437</guid>
            <title>uboot installs, but not environment.  [Inactive] (15 replies)</title>
            <link>http://forum.doozan.com/read.php?3,11437,11437#msg-11437</link>
            <description><![CDATA[ I have a black E02.  The  install script appears to install uboot ok but fails when trying to install the environment.<br />
<br />
<pre class="bbcode">
...
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...
Connecting to jeff.doozan.com (50.116.34.13:80)
valid-uboot.md5      100% |***************************************************************|  1133  --:--:-- ETA
## Valid uBoot detected: [pinkpogo davygravy-2012-02-20-current]
## The newest uBoot is already installed on mtd0.


You are already running the latest uBoot.
Your current uBoot environment should be reasonable.  However, if you're having
any probems booting, you can reset the environment variables to know good values.
Would you like to reset the uBoot environment? [N/y] y

# Installing uBoot environment
Connecting to download.doozan.com (50.116.34.13:80)
uboot.environment.md 100% |***************************************************************|    32  --:--:-- ETA
Erase Total 1 Units
Performing Flash Erase of length 131072 at offset 0xc0000
MTD Erase failure: Input/output error
Writing data to block 6 at offset 0xc0000
Bad block at c0000, 1 block(s) from c0000 will be skipped
Writing data to block 7 at offset 0xe0000

# Verifying uBoot environment
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x000c0000 and ending at 0x000e0000...
Connecting to download.doozan.com (50.116.34.13:80)
uboot.environment.md 100% |***************************************************************|    32  --:--:-- ETA
## VERIFICATION FAILED!
## uBoot environment was not properly written to mtd0.  Please re-run this installer.</pre>
<br />
From that output it almost looks like the installer may have succesfully id'ed the bad block and written the env to block 7 instead of 6.  Is that correct?<br />
<br />
It looks like the script does it's verification against the hardcoded block 6 so that might explain why the verification failed.  I edited the script as follows to see if the env was succesfully written to block 7:<br />
<br />
<pre class="bbcode">
Pogoplug:/tmp$ !diff
diff install_uboot_mtd0.sh install_uboot_mtd0_mod.sh 
--- install_uboot_mtd0.sh	Sat Jan  1 00:01:45 2000
+++ install_uboot_mtd0_mod.sh	Sat Jan  1 00:56:45 2000
@@ -527,7 +527,7 @@
   echo &quot;# Verifying uBoot environment&quot;
 
   # Verify the uBoot environment
-  $NANDDUMP --noecc --omitoob -f &quot;/tmp/uboot.environment&quot; -s 0xc0000 -l 0x20000 /dev/mtd0
+  $NANDDUMP --noecc --omitoob -f &quot;/tmp/uboot.environment&quot; -s 0xe0000 -l 0x20000 /dev/mtd0
   wget -O &quot;$UBOOT_ENV.md5&quot; &quot;$UBOOT_ENV_URL.md5&quot;
   verify_md5 &quot;/tmp/uboot.environment&quot; &quot;$UBOOT_ENV.md5&quot;
   if [ &quot;$?&quot; -ne &quot;0&quot; ]; then
Pogoplug:/tmp$</pre>
<br />
But when I ran the modified script it still failed verification.<br />
<br />
<pre class="bbcode">
# Installing uBoot environment
Connecting to download.doozan.com (50.116.34.13:80)
uboot.environment.md 100% |***************************************************************|    32  --:--:-- ETA
Erase Total 1 Units
Performing Flash Erase of length 131072 at offset 0xc0000
MTD Erase failure: Input/output error
Writing data to block 6 at offset 0xc0000
Bad block at c0000, 1 block(s) from c0000 will be skipped
Writing data to block 7 at offset 0xe0000

# Verifying uBoot environment
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x000e0000 and ending at 0x00100000...
Connecting to download.doozan.com (50.116.34.13:80)
uboot.environment.md 100% |***************************************************************|    32  --:--:-- ETA
## VERIFICATION FAILED!
## uBoot environment was not properly written to mtd0.  Please re-run this installer.</pre>
<br />
In any case rebooting with a USB drive doesn't work.  The LED just lights up orange and my routers device table never shows the rebooting box.  I'm also unable to use fw_printenv.  I get the following:<br />
<br />
<pre class="bbcode">
Pogoplug:/tmp$ /usr/sbin/fw_printenv 
Too few good blocks within range
Pogoplug:/tmp$</pre>
<br />
Does anyone have any ideas on how to move forward?  It seems like others who have had problems were able to skip a bad block and write the objects to the next blocks.  Should I try doing that by manually having my modded script write to block 7 (which I assume is 0xe0000)?  Perhaps the issue is that block 7 isn't erased before being written to?<br />
<br />
For the record, the proposed changes to the script are shown below, but I'm pretty terrified that if I run this I'll brick the box since I don't really know anything about any of this hardware.<br />
<br />
<pre class="bbcode">
Pogoplug:/tmp$ !diff
diff install_uboot_mtd0.sh install_uboot_mtd0_mod.sh 
--- install_uboot_mtd0.sh	Sat Jan  1 00:01:45 2000
+++ install_uboot_mtd0_mod.sh	Sat Jan  1 01:11:18 2000
@@ -520,14 +520,14 @@
     echo &quot;## Could not install uBoot environment, exiting&quot;
     exit 1
   fi
-  $FLASH_ERASE /dev/mtd0 0xc0000 1
-  $NANDWRITE -s 786432 /dev/mtd0 &quot;$UBOOT_ENV&quot;
+  $FLASH_ERASE /dev/mtd0 0xe0000 1
+  $NANDWRITE -s 917504 /dev/mtd0 &quot;$UBOOT_ENV&quot;
 
   echo &quot;&quot;
   echo &quot;# Verifying uBoot environment&quot;
 
   # Verify the uBoot environment
-  $NANDDUMP --noecc --omitoob -f &quot;/tmp/uboot.environment&quot; -s 0xc0000 -l 0x20000 /dev/mtd0
+  $NANDDUMP --noecc --omitoob -f &quot;/tmp/uboot.environment&quot; -s 0xe0000 -l 0x20000 /dev/mtd0
   wget -O &quot;$UBOOT_ENV.md5&quot; &quot;$UBOOT_ENV_URL.md5&quot;
   verify_md5 &quot;/tmp/uboot.environment&quot; &quot;$UBOOT_ENV.md5&quot;
   if [ &quot;$?&quot; -ne &quot;0&quot; ]; then
Pogoplug:/tmp$</pre>
<br />
Also, in case it's not blindingly obvious, while I'm comfortable on the software side of linux, messing around with this sort of stuff is completely new to me.]]></description>
            <dc:creator>chackoc</dc:creator>
            <category>uBoot</category>
            <pubDate>Sun, 03 Mar 2013 22:03:01 -0500</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,11366,11366#msg-11366</guid>
            <title>Minor &quot;glitch&quot; in install_uboot_mtd0.sh (no replies)</title>
            <link>http://forum.doozan.com/read.php?3,11366,11366#msg-11366</link>
            <description><![CDATA[ Hello there,<br />
<br />
this is actually a post directed to Jeff.<br />
<br />
I just noticed a minor &quot;glitch&quot; in the install_uboot_mtd0.sh script. I think line 144 should read:<br />
<pre class="bbcode">
      local is_readonly=1</pre>
<br />
So that a read-only file system is later remounted read-only. The debian installer script (kirkwood.debian-wheezy.sh) is correct in this regard.<br />
<br />
Keep up the good work<br />
sed]]></description>
            <dc:creator>sed</dc:creator>
            <category>uBoot</category>
            <pubDate>Wed, 30 Jan 2013 17:55:59 -0500</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,11365,11365#msg-11365</guid>
            <title>Pogoplug E02 completely dead - no ssh, www and serial (2 replies)</title>
            <link>http://forum.doozan.com/read.php?3,11365,11365#msg-11365</link>
            <description><![CDATA[ Hi there I have got a Pogoplug which is completetly dead - cant get access to it?<br />
I think the only solution would be to recover via jtag?<br />
Since pogoplugged.com is dead there is not much information about how to realize this with an ftdi chip or with the bus pirate?<br />
Thanks for your replys!]]></description>
            <dc:creator>chiefdome</dc:creator>
            <category>uBoot</category>
            <pubDate>Tue, 05 Feb 2013 04:08:53 -0500</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,11361,11361#msg-11361</guid>
            <title>Goflex Net fail -need help to unbrick (4 replies)</title>
            <link>http://forum.doozan.com/read.php?3,11361,11361#msg-11361</link>
            <description><![CDATA[ Hello,<br />
<br />
i have an almost new Goflex Net device, that i wanted to run debian. After trying different solutions (installing debian and rescue), i have problem with my device.<br />
<br />
I cannot install a new uboot, and the only way i can access it is through the serial port with uart boot. I tried some of the suggestions in the forum, but i am stuck with it. <br />
It seems the first nand block is bad. I want to ask the experts, what to do to get it running, if somebody could help me with unbricking. I hope there is some light chance to use it :)<br />
<br />
I can boot it by uart to the dns-320 image on the usb, but i cannot install uboot. The script ends with verification failed. I tried writing with nandwrite (found in this forum that somebody managed to repair it with the same symptoms) with no success.<br />
<br />
I cannot get further. Here is my log:<br />
<br />
##<br />
## VERIFICATION FAILED!<br />
##<br />
## uBoot was not properly installed to mtd0.<br />
##<br />
##<br />
## YOUR DEVICE MAY BE IN AN UNUSABLE STATE.<br />
## DO NOT REBOOT OR POWER OFF YOUR DEVICE<br />
##<br />
##<br />
## Make a backup of /tmp/uboot-mtd0-dump someplace safe and<br />
## then re-run this installer.<br />
<br />
root@debian-kirkwood-wide:/tmp# /usr/sbin/flash_erase /dev/mtd0 0 5<br />
Erase Total 5 Un[  748.998066] nand_erase_nand: attempt to erase a bad block at page 0x00000000<br />
its<br />
Performing Flash Erase of length 131072 at offset 0x0<br />
MTD Erase failure: Input/output error<br />
root@debian-kirkwood-wide:/tmp# /usr/sbin/nandwrite /dev/mtd0 uboot.mtd0.kwb<br />
Writing data to block 0 at offset 0x0<br />
Bad block at 0, 1 block(s) from 0 will be skipped<br />
Writing data to block 1 at offset 0x20000<br />
Writing data to block 2 at offset 0x40000<br />
Writing data to block 3 at offset 0x60000<br />
Writing data to block 4 at offset 0x80000<br />
td0t@debian-kirkwood-wide:/tmp# nanddump -bnof /tmp/uBoot.dump -l 0x80000 /dev/m<br />
Block size 131072, page size 2048, OOB size 64<br />
Dumping data starting at 0x00000000 and ending at 0x00080000...<br />
root@debian-kirkwood-wide:/tmp# diff -s uboot.mtd0.kwb uBoot.dump<br />
Binary files uboot.mtd0.kwb and uBoot.dump differ<br />
root@debian-kirkwood-wide:/tmp#<br />
<br />
Any help is much appreciated.]]></description>
            <dc:creator>daveeeee</dc:creator>
            <category>uBoot</category>
            <pubDate>Thu, 31 Jan 2013 03:39:40 -0500</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,11354,11354#msg-11354</guid>
            <title>uBoot install canceled with Pogo E02(Black) (10 replies)</title>
            <link>http://forum.doozan.com/read.php?3,11354,11354#msg-11354</link>
            <description><![CDATA[ Hello<br />
<br />
I have a Pogoplug E02Black)<br />
<br />
I want to install Debian uboot on my Pogoplug E02(Black). but I can't install on my device<br />
<br />
Can you help me to solve my problem?<br />
<br />
My pogo's nand flash has a 1 bad blocks at 60000.  Maybe, Is this a my problem?<br />
<br />
I don't know about it<br />
<br />
I hope to resolve my problems and install on my Pogoplug E02(Black)<br />
<br />
I'll take iinfomations about my pogoplug E02(Black) below<br />
<br />
My Pogo's cpu info is<br />
<br />
<pre class="bbcode">
Processor       : ARM926EJ-S rev 1 (v5l)
BogoMIPS        : 1192.75
Features        : swp half thumb fastmult edsp
CPU implementer : 0x56
CPU architecture: 5TE
CPU variant     : 0x2
CPU part        : 0x131
CPU revision    : 1
Cache type      : write-back
Cache clean     : cp15 c7 ops
Cache lockdown  : format C
Cache format    : Harvard
I size          : 16384
I assoc         : 4
I line length   : 32
I sets          : 128
D size          : 16384
D assoc         : 4
D line length   : 32
D sets          : 128
Hardware        : Feroceon-KW
Revision        : 0000
Serial          : 0000000000000000</pre>
<br />
uname -a is<br />
<br />
<pre class="bbcode">
Linux Pogoplug 2.6.22.18 #81 Tue Oct 19 16:05:00 PDT 2010 armv5tejl unknown</pre>
<br />
version is <br />
<br />
<pre class="bbcode">
Linux version 2.6.22.18 (bdietrich@buildman) (gcc version 4.2.1) #81 Tue Oct 19 16:05:00 PDT 2010</pre>
<br />
meminfo is <br />
<br />
<pre class="bbcode">
MemTotal:       256008 kB
MemFree:        154968 kB
Buffers:            12 kB
Cached:          84940 kB
SwapCached:          0 kB
Active:          18712 kB
Inactive:        67140 kB
SwapTotal:           0 kB
SwapFree:            0 kB
Dirty:               0 kB
Writeback:           0 kB
AnonPages:         928 kB
Mapped:           1588 kB
Slab:            13472 kB
SReclaimable:     1368 kB
SUnreclaim:      12104 kB
PageTables:         96 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:    128004 kB
Committed_AS:    83048 kB
VmallocTotal:   385024 kB
VmallocUsed:       324 kB
VmallocChunk:   384696 kB</pre>
<br />
blparam is<br />
<br />
<pre class="bbcode">
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
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
bootargs=console=ttyS0,115200 root=/dev/mtdblock2 ro
serverip=169.254.254.252
ipaddr=169.254.254.253
ethaddr=00:25:31:02:D6:74
cesvcid=LE9FW64CV8GHU3Z46W8Q2S3Z7N
ceboardver=PPV2
bootcmd=nand read.e 0x800000 0x100000 0x200000; setenv bootargs $(console) $(bootargs_root); bootm 0x800000</pre>
<br />
fw_printenv is<br />
<br />
<pre class="bbcode">
ethact=egiga0
bootdelay=3
baudrate=115200
arcNumber=2097
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 &amp;&amp; ubifsmount rootfs &amp;&amp; ubifsload 0x800000 /boot/uImage &amp;&amp; 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 &amp;&amp; ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo &quot;Found bootable drive on usb $usb&quot;; 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</pre>
<br />
dmesg is <br />
<pre class="bbcode">
[    0.000000] Linux version 2.6.22.18 (bdietrich@buildman) (gcc version 4.2.1) #81 Tue Oct 19 16:05:00 PDT 2010
[    0.000000] CPU: ARM926EJ-S [56251311] revision 1 (ARMv5TE), cr=00053177
[    0.000000] Machine: Feroceon-KW
[    0.000000] Using UBoot passing parameters structure
[    0.000000] Memory policy: ECC disabled, Data cache writeback
[    0.000000] On node 0 totalpages: 65536
[    0.000000]   DMA zone: 512 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 65024 pages, LIFO batch:15
[    0.000000]   Normal zone: 0 pages used for memmap
[    0.000000] CPU0: D VIVT write-back cache
[    0.000000] CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
[    0.000000] CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
[    0.000000] Built 1 zonelists.  Total pages: 65024
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mtdblock2 ro
[    0.000000] PID hash table entries: 1024 (order: 10, 4096 bytes)
[    0.000000] Console: colour dummy device 80x30
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.010000] Memory: 256MB 0MB 0MB 0MB = 256MB total
[    0.010000] Memory: 255872KB available (3592K code, 253K data, 124K init)
[    0.010000] Calibrating delay loop... 1192.75 BogoMIPS (lpj=5963776)
[    0.250000] Mount-cache hash table entries: 512
[    0.250000] CPU: Testing write buffer coherency: ok
[    0.250000] NET: Registered protocol family 16
[    0.250000]
[    0.250000] CPU Interface
[    0.250000] -------------
[    0.250000] SDRAM_CS0 ....base 00000000, size 256MB
[    0.250000] SDRAM_CS1 ....disable
[    0.250000] SDRAM_CS2 ....disable
[    0.250000] SDRAM_CS3 ....disable
[    0.250000] PEX0_MEM ....base e8000000, size 128MB
[    0.250000] PEX0_IO ....base f2000000, size   1MB
[    0.250000] INTER_REGS ....base f1000000, size   1MB
[    0.250000] NFLASH_CS ....base fa000000, size   2MB
[    0.250000] SPI_CS ....base f4000000, size  16MB
[    0.250000] BOOT_ROM_CS ....no such
[    0.250000] DEV_BOOTCS ....no such
[    0.250000] CRYPT_ENG ....base f0000000, size   2MB
[    0.250000]
[    0.250000]   Marvell Development Board (LSP Version KW_LSP_4.2.7_patch21_with_rx_desc_tuned)-- SHEEVA PLUG  Soc: 88F6281 A0 LE
[    0.250000]
[    0.250000]  Detected Tclk 200000000 and SysClk 400000000
[    0.250000] MV Buttons Device Load
[    0.250000] Marvell USB EHCI Host controller #0: c0652600
[    0.750000] PEX0 interface detected no Link.
[    0.750000] PCI: bus0: Fast back to back transfers enabled
[    0.750000] SCSI subsystem initialized
[    0.750000] usbcore: registered new interface driver usbfs
[    0.750000] usbcore: registered new interface driver hub
[    0.750000] usbcore: registered new device driver usb
[    0.750000] NET: Registered protocol family 2
[    0.760000] Time: kw_clocksource clocksource has been installed.
[    0.850000] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.850000] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
[    0.850000] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
[    0.850000] TCP: Hash tables configured (established 8192 bind 8192)
[    0.850000] TCP reno registered
[    0.880000] RTC has been updated!!!
[    0.880000] RTC registered
[    0.880000] Use the XOR engines (acceleration) for enhancing the following functions:
[    0.880000]   o RAID 5 Xor calculation
[    0.880000]   o kernel memcpy
[    0.880000]   o kenrel memzero
[    0.880000] Number of XOR engines to use: 4
[    0.880000] cesadev_init(c00117b0)
[    0.880000] mvCesaInit: sessions=640, queue=64, pSram=f0000000
[    0.880000] MV Buttons Driver Load
[    0.880000] squashfs: version 3.3 (2007/10/31) Phillip Lougher
[    0.880000] squashfs: LZMA suppport for slax.org by jro
[    0.880000] JFFS2 version 2.2. (NAND) Ã‚Â© 2001-2006 Red Hat, Inc.
[    0.880000] io scheduler noop registered
[    0.880000] io scheduler anticipatory registered (default)
[    0.900000] Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
[    0.900000] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
[    0.910000] RAMDISK driver initialized: 16 RAM disks of 16384K size 1024 blocksize
[    0.920000] Loading Marvell Ethernet Driver:
[    0.920000]   o Cached descriptors in DRAM
[    0.920000]   o DRAM SW cache-coherency
[    0.930000]   o Single RX Queue support - ETH_DEF_RXQ=0
[    0.930000]   o Single TX Queue support - ETH_DEF_TXQ=0
[    0.940000]   o TCP segmentation offload enabled
[    0.940000]   o Receive checksum offload enabled
[    0.950000]   o Transmit checksum offload enabled
[    0.950000]   o Network Fast Processing (Routing) supported
[    0.960000]   o Driver ERROR statistics enabled
[    0.960000]   o Driver INFO statistics enabled
[    0.970000]   o Proc tool API enabled
[    0.970000]   o Rx descripors: q0=128
[    0.970000]   o Tx descripors: q0=532
[    0.980000]   o Loading network interface(s):
[    0.990000]     o eth0, ifindex = 1, GbE port = 0
[    0.990000]     o eth1, ifindex = 2, GbE port = 1
[    1.000000]
[    1.000000] mvFpRuleDb (cfdf6000): 2048 entries, 8192 bytes
[    1.000000] Intel(R) PRO/1000 Network Driver - version 7.3.20-k2-NAPI
[    1.010000] Copyright (c) 1999-2006 Intel Corporation.
[    1.020000] e100: Intel(R) PRO/100 Network Driver, 3.5.17-k4-NAPI
[    1.020000] e100: Copyright(c) 1999-2006 Intel Corporation
[    1.030000]
[    1.030000] Warning Sata is Powered Off
[    1.030000] NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c $Revision: 1.41 $
[    1.040000] NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix NAND 128MiB 3,3V 8-bit)
[    1.050000] Scanning device for bad blocks
[    1.050000] Bad eraseblock 3 at 0x00060000
[    1.110000] Using static partition definition
[    1.110000] Creating 4 MTD partitions on &quot;nand_mtd&quot;:
[    1.120000] 0x00000000-0x00100000 : &quot;u-boot&quot;
[    1.120000] 0x00100000-0x00500000 : &quot;uImage&quot;
[    1.130000] 0x00500000-0x02500000 : &quot;root&quot;
[    1.130000] 0x02500000-0x08000000 : &quot;data&quot;
[    1.140000] ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
[    1.140000] ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
[    1.180000] ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
[    1.200000] ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
[    1.200000] usb usb1: configuration #1 chosen from 1 choice
[    1.210000] hub 1-0:1.0: USB hub found
[    1.210000] hub 1-0:1.0: 1 port detected
[    1.330000] ohci_hcd: 2006 August 04 USB 1.1 'Open' Host Controller (OHCI) Driver
[    1.330000] USB Universal Host Controller Interface driver v3.0
[    1.610000] usb 1-1: new high speed USB device using ehci_marvell and address 2
[    1.760000] usb 1-1: configuration #1 chosen from 1 choice
[    1.760000] hub 1-1:1.0: USB hub found
[    1.770000] hub 1-1:1.0: 4 ports detected
[    1.880000] usbcore: registered new interface driver usblp
[    1.880000] drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
[    1.890000] Initializing USB Mass Storage driver...
[    1.890000] usbcore: registered new interface driver usb-storage
[    1.900000] USB Mass Storage support registered.
[    1.910000] mice: PS/2 mouse device common for all mice
[    1.910000] i2c /dev entries driver
[    1.910000] Linux telephony interface: v1.00
[    1.920000] md: linear personality registered for level -1
[    1.920000] md: raid0 personality registered for level 0
[    1.930000] md: raid1 personality registered for level 1
[    2.100000] raid6: int32x1     97 MB/s
[    2.270000] raid6: int32x2    114 MB/s
[    2.440000] raid6: int32x4    122 MB/s
[    2.610000] raid6: int32x8    110 MB/s
[    2.610000] raid6: using algorithm int32x4 (122 MB/s)
[    2.610000] md: raid6 personality registered for level 6
[    2.620000] md: raid5 personality registered for level 5
[    2.620000] md: raid4 personality registered for level 4
[    2.630000] raid5: measuring checksumming speed
[    2.680000]    arm4regs  :  1084.000 MB/sec
[    2.730000]    8regs     :   754.800 MB/sec
[    2.780000]    32regs    :   899.600 MB/sec
[    2.780000] raid5: using function: arm4regs (1084.000 MB/sec)
[    2.790000] device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-devel@redhat.com
[    2.790000] dm_crypt using the OCF package.
[    2.800000] sdhci: Secure Digital Host Controller Interface driver
[    2.800000] sdhci: Copyright(c) Pierre Ossman
[    2.810000] usbcore: registered new interface driver usbhid
[    2.810000] drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
[    2.820000] TCP cubic registered
[    2.820000] NET: Registered protocol family 1
[    2.830000] NET: Registered protocol family 17
[    2.830000] md: Autodetecting RAID arrays.
[    2.840000] md: autorun ...
[    2.840000] md: ... autorun DONE.
[    4.600000] Empty flash at 0x009ac208 ends at 0x009ac800
[    8.800000] VFS: Mounted root (jffs2 filesystem) readonly.
[    8.800000] Freeing init memory: 124K
[   10.940000] eth0: link down
[   10.950000] eth0: started
[   12.530000] eth0: link up, full duplex, speed 100 Mbps</pre>
<br />
Install is<br />
<br />
<pre class="bbcode">
Pogoplug:/$ cd /tmp
Pogoplug:/tmp$ wget <a href="http://jeff.doozan.com/debian/uboot/install_uboot_mtd0.sh"  rel="nofollow">http://jeff.doozan.com/debian/uboot/install_uboot_mtd0.sh</a>
Connecting to jeff.doozan.com (50.116.34.13:80)
install_uboot_mtd0.s 100% |*******************************| 18406  00:00:00 ETA
Pogoplug:/tmp$ chmod +x install_uboot_mtd0.sh
Pogoplug:/tmp$ ./install_uboot_mtd0.sh


!!!!!!  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...
Connecting to jeff.doozan.com (50.116.34.13:80)
valid-uboot.md5      100% |*******************************|  1133  --:--:-- ETA
## Unknown uBoot detected on mtd0: ec3fadd50ae24760b035b0afe9ac6018
##
## The installer could not detect the version of your current uBoot
## This may happen if you have installed a different uBoot on
## /dev/mtd0 or if you have bad blocks on /dev/mtd0
##
## If you have bad blocks on mtd0, you should not try to install uBoot.
##
## Installation cancelled.</pre>
<br />
Install(no prompt no uboot check parameter) is<br />
<pre class="bbcode">
Pogoplug:/tmp$ ./install_uboot_mtd0.sh --noprompt --no-uboot-check parameter
# 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...
Connecting to jeff.doozan.com (50.116.34.13:80)
valid-uboot.md5      100% |*******************************|  1133  --:--:-- ETA
## Unknown uBoot detected on mtd0: ec3fadd50ae24760b035b0afe9ac6018
##
## --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
5
Selected Pogoplug v2 - Pink

# Installing uBoot
## Installing pinkpogo davygravy-2012-02-20
Connecting to download.doozan.com (50.116.34.13:80)
uboot.mtd0.kwb.md5   100% |*******************************|    32  --:--:-- ETA
Connecting to download.doozan.com (50.116.34.13:80)
uboot.mtd0.kwb       100% |*******************************|   512k 00:00:00 ETA
Erase Total 4 Units
Performing Flash Erase of length 131072 at offset 0x60000
MTD Erase failure: Input/output error
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
Bad block at 60000, 1 block(s) from 60000 will be skipped
Writing data to block 4 at offset 0x80000
Block size 131072, page size 2048, OOB size 64
Dumping data starting at 0x00000000 and ending at 0x00080000...
## Verifying new uBoot...
Connecting to download.doozan.com (50.116.34.13:80)
uboot.mtd0.kwb.md5   100% |*******************************|    32  --:--:-- ETA
##
##
## VERIFICATION FAILED!
##
## uBoot was not properly installed to mtd0.
##
##
## YOUR DEVICE MAY BE IN AN UNUSABLE STATE.
## DO NOT REBOOT OR POWER OFF YOUR DEVICE
##
##
## Make a backup of /tmp/uboot-mtd0-dump someplace safe and
## then re-run this installer.
</pre>]]></description>
            <dc:creator>ploks</dc:creator>
            <category>uBoot</category>
            <pubDate>Sat, 02 Feb 2013 13:02:14 -0500</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,11340,11340#msg-11340</guid>
            <title>I was wrong: installed uboot on B04 (1 reply)</title>
            <link>http://forum.doozan.com/read.php?3,11340,11340#msg-11340</link>
            <description><![CDATA[ Hi,<br />
<br />
I used the command --force, but my pogo is pro and not pink v2, so i have now a bricked pogoplug .<br />
I bought the cable C-42, so I have a serial connection. Befor installing,<br />
i made backups with<br />
<pre class="bbcode">
# nanddump -nof mtd0.backup /dev/mtd0
# nanddump -nf mtd0.backup.oob</pre>
Using the boot sata: i used these commands:<br />
<pre class="bbcode">
flash_erase /dev/mtd0 0 4
nandwrite /dev/mtd0 mtd0.backup
reboot</pre>
The Pogoplug does not start. With serial connection i see this in terminal <br />
<pre class="bbcode">
# screen /dev/ttyUSB0 115200 8N1
Reading NAND, Image 0
Uncorrectable error(s) encountered in page with starting address 0x00040000.

Uncorrectable error(s) encountered in page with starting address 0x00040000.

Hdr len: 0xA1A2A3A4
Hdr CRC: 0xB1B2B3B4
read failed
Reading NAND, Image 1
Uncorrectable error(s) encountered in page with starting address 0x00100000.

Uncorrectable error(s) encountered in page with starting address 0x00100000.

Hdr len: 0xA1A2A3A4
Hdr CRC: 0xB1B2B3B4
read failed
Reading NAND, Image 0
Uncorrectable error(s) encountered in page with starting address 0x00040000.</pre>
Is it possible to reset the nand correctly. ? :S<br />
<br />
Thanks]]></description>
            <dc:creator>zampara</dc:creator>
            <category>uBoot</category>
            <pubDate>Sun, 27 Jan 2013 14:06:20 -0500</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,11257,11257#msg-11257</guid>
            <title>Dockstar - now way to boot (1 reply)</title>
            <link>http://forum.doozan.com/read.php?3,11257,11257#msg-11257</link>
            <description><![CDATA[ Hi all,<br />
<br />
I have a dockstar on which I installed a couple of years ago Debian Squeeze.<br />
Yesterday I tried to do a dist-upgrade.<br />
Something went wrong.<br />
<br />
No way to reboot via usb key.<br />
<br />
I can boot using v3 rescue USB key.<br />
<br />
Without USB key this is what I see via serial cable.<br />
<br />
U-Boot 2011.12 (Feb 12 2012 - 21:33:07)<br />
Seagate FreeAgent DockStar<br />
<br />
SoC:   Kirkwood 88F6281_A0<br />
DRAM:  128 MiB<br />
WARNING: Caches not enabled<br />
NAND:  256 MiB<br />
In:    serial<br />
Out:   serial<br />
Err:   serial<br />
Net:   egiga0<br />
88E1116 Initialized on egiga0<br />
Hit any key to stop autoboot:  0 <br />
(Re)start USB...<br />
USB:   Register 10011 NbrPorts 1<br />
USB EHCI 1.00<br />
scanning bus for devices... 2 USB Device(s) found<br />
       scanning bus for storage devices... 0 Storage Device(s) found<br />
** Block device usb 0 not supported<br />
<br />
** Invalid boot device **<br />
Creating 1 MTD partitions on &quot;nand0&quot;:<br />
0x000002500000-0x000010000000 : &quot;mtd=3&quot;<br />
UBI: attaching mtd1 to ubi0<br />
UBI: physical eraseblock size:   131072 bytes (128 KiB)<br />
UBI: logical eraseblock size:    129024 bytes<br />
UBI: smallest flash I/O unit:    2048<br />
UBI: sub-page size:              512<br />
UBI: VID header offset:          512 (aligned 512)<br />
UBI: data offset:                2048<br />
UBI error: ubi_read_volume_table: the layout volume was not found<br />
UBI error: ubi_init: cannot attach mtd1<br />
UBI error: ubi_init: UBI error: cannot initialize UBI, error -22<br />
UBI init error 22<br />
** Block device usb 0 not supported<br />
** Block device usb 1 not supported<br />
** Block device usb 2 not supported<br />
** Block device usb 3 not supported<br />
** Block device usb 0 not supported<br />
** Block device usb 0 not supported<br />
Wrong Image Format for bootm command<br />
ERROR: can't get kernel image!<br />
stopping USB..<br />
### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x800000<br />
Scanning JFFS2 FS:  done.<br />
find_inode failed for name=uboot-original-mtd0.kwb<br />
load: Failed to find inode<br />
### JFFS2 LOAD ERROR&lt;0&gt; for uboot-original-mtd0.kwb!<br />
### JFFS2 loading 'uboot-original-mtd0.kwb' to 0x800000<br />
Scanning JFFS2 FS:   <br />
<br />
thanks to all<br />
Satjuice]]></description>
            <dc:creator>satjuice</dc:creator>
            <category>uBoot</category>
            <pubDate>Tue, 22 Jan 2013 16:28:25 -0500</pubDate>
        </item>
        <item>
            <guid>http://forum.doozan.com/read.php?3,11128,11128#msg-11128</guid>
            <title>Swap boot disks with between two dock (1 reply)</title>
            <link>http://forum.doozan.com/read.php?3,11128,11128#msg-11128</link>
            <description><![CDATA[ Hello<br />
<br />
Forgive me if it's not the right place to post, I'am a newbie with this subject, I just presume it's the appropriate forum..<br />
<br />
I own two docks, on each I attached an USB disk, and I installed Debian squeeze following <a href="http://projects.doozan.com/debian/"  rel="nofollow">http://projects.doozan.com/debian/</a>, it works fine, thank you Jeff :-)<br />
<br />
If I try to swap disks and put disk 2 on dock 1 (and vice versa), none of them boots.<br />
<br />
Do I miss something ? is this normal ? does it mean that the pair can't be separate and only the parts installed conjointly work  ?<br />
<br />
Thanks for your reply<br />
<br />
Andre]]></description>
            <dc:creator>Andre Chantme</dc:creator>
            <category>uBoot</category>
            <pubDate>Thu, 10 Jan 2013 05:01:28 -0500</pubDate>
        </item>
    </channel>
</rss>
