Welcome! Log In Create A New Profile

Advanced

2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)

Posted by bodhi 
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
March 28, 2016 05:24AM
Should i do these steps?
cd /media/sdb1/boot
cp -a zImage-3.17.0-oxnas-tld-1 zImage-3.17.0-oxnas-tld-1.fdt
cat dts/ox820-pogoplug-classic.dtb >> zImage-3.17.0-oxnas-tld-1.fdt
mkimage  -A arm -O linux -C none -T kernel -a 0x60008000 -e 0x60008000 -n 'Linux-3.3.17.0-oxnas-tld-1' -d zImage-3.17.0-oxnas-tld-1.fdt  uImage
sync

I am not sure if that's step 4 or a different step. I am running on the classic pogo. I think so.
What do the steps do?



Edited 4 time(s). Last edit at 03/28/2016 02:15PM by Lithium.
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
March 28, 2016 05:14PM
Lithium,

Don't worry about the rootfs, that will be another subject. You can reboot now. Shutdown, unplug the HDD and power up.

Interrupt serial console and get the output of:
printenv
And post the entire serial console log here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
March 29, 2016 03:51AM
U-Boot SPL 2013.10-tld-4 (Sep 07 2014 - 14:10:12)
  Boot device: NAND
Attempting to set PLLA to 850 MHz ...
  plla_ctrl0 : 0000020a
  plla_ctrl1 : 00330000
  plla_ctrl2 : 0065008b
  plla_ctrl3 : 000000f1

PLLA Set


U-Boot 2015.10-tld-1 (Nov 21 2015 - 01:17:59 -0800)
OXNAS OX820

DRAM:  128 MiB
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   dwmac.40400000
Hit any key to stop autoboot:  0
OX820> printenv
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm 0x60500000 0x60e00000 0x62c00000; else bootm 0x60500000 0x60e00000; fi; else if run load_dtb; then bootm 0x60500000 - 0x62c00000; else bootm 0x60500000; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide
disks=0 1 2 3
dtb_file=/boot/dts/ox820-pogoplug-pro.dtb
ethact=dwmac.40400000
ethaddr=52:3b:20:9c:11:51
if_netconsole=ping $serverip
ipaddr=192.168.0.222
load_dtb=echo loading DTB $dtb_file ...; ext2load $bootdev $device 0x62c00000 $dtb_file
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device 0x60e00000 /boot/uInitrd
load_uimage=echo loading uImage ...; ext2load $bootdev $device 0x60500000 /boot/uImage
mainlineLinux=yes
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if ext2load $dev $disknum:1 0x60500000 /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.0.220
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_import=echo importing envs ...; env import -t 0x60500000
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x60500000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_custom_params=zswap.enabled=1
usb_ready_retry=15

Environment size: 2590/131068 bytes
OX820>

I think this looks Okay to you :) ?

After following the steps on the page you gave me, usied linux 2nov 2014 and followed these steps my serial log looks like this:
U-Boot SPL 2013.10-tld-4 (Sep 07 2014 - 14:10:12)
  Boot device: NAND
Attempting to set PLLA to 850 MHz ...
  plla_ctrl0 : 0000020a
  plla_ctrl1 : 00330000
  plla_ctrl2 : 0065008b
  plla_ctrl3 : 000000f1

PLLA Set


U-Boot 2015.10-tld-1 (Nov 21 2015 - 01:17:59 -0800)
OXNAS OX820

DRAM:  128 MiB
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   dwmac.40400000
Hit any key to stop autoboot:  0
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

Reset IDE: SATA PHY not ready for device 0
ide_preinit failed

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

Part    Start Sector    Num Sectors     UUID            Type
  1     2048            31297648        c754aed3-01     83
loading envs from usb 0 ...
** File not found /boot/uEnv.txt **

no IDE devices available
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 220 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
4109737 bytes read in 416 ms (9.4 MiB/s)
loading uInitrd ...
1953812 bytes read in 308 ms (6 MiB/s)
loading DTB /boot/dts/ox820-pogoplug-pro.dtb ...
7029 bytes read in 237 ms (28.3 KiB/s)
## Booting kernel from Legacy Image at 60500000 ...
   Image Name:   Linux-3.3.17.0-oxnas-tld-1
   Created:      2016-03-29   9:13:22 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4109673 Bytes = 3.9 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 60e00000 ...
   Image Name:   initramfs-3.17.0-oxnas-tld-1
   Created:      2014-11-01   7:18:53 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    1953748 Bytes = 1.9 MiB
   Load Address: 60000000
   Entry Point:  60000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 62c00000
   Booting using the fdt blob at 0x62c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 67c4e000, end 67e2afd4 ... OK
   Loading Device Tree to 67c49000, end 67c4db74 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
From there is stops. In the serial log i read: loading DTB /boot/dts/ox820-pogoplug-pro.dtb ... it that okay? If i am correct it should be the classic version.
During these steps:
cd /media/sdb1/boot
cp -a zImage-3.17.0-oxnas-tld-1 zImage-3.17.0-oxnas-tld-1.fdt
cat dts/ox820-pogoplug-pro.dtb >> zImage-3.17.0-oxnas-tld-1.fdt
mkimage  -A arm -O linux -C none -T kernel -a 0x60008000 -e 0x60008000 -n 'Linux-3.3.17.0-oxnas-tld-1' -d zImage-3.17.0-oxnas-tld-1.fdt  uImage
sync
I replaced the pro with classic.



Edited 1 time(s). Last edit at 03/29/2016 04:23AM by Lithium.
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
March 29, 2016 05:01AM
Lithium,

1. Don't do the embedd DTB (you dont need it). Just use the rootfs as is, no change.

2. Power up again, interuppt serial console and:

setenv dtb_file '/boot/dts/ox820-pogoplug-classic.dtb'
boot

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
March 29, 2016 06:13AM
Ho Bodhi,

I didn't do step 4 or did i?

Let mee see what it does.
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
March 29, 2016 01:09PM
Quote

Updated 02 Nov 2014:

Rootfs Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2 was uploaded. This rootfs is to keep in sync with kernel Linux-3.17.0-oxnas-tld-1.

Basic minimal Debian Oxnas rootfs for Popo Pro/Classic V3 plug:

- tarball size: 83M
- install size: 251M
- a basic wheezy rootfs
- Installed packages: nano, avahi, ntp, busybox-syslogd (log to RAM), htop, dialog, bz2.
- see LED controls in /etc/rc.local, and /etc/rc0.d/K08halt
- see some useful aliases in /root/.profile
- root password: root

Download at Dropbox:

Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2
md5:
c8e9df471f331c56befc4051a754bfea

And remember to check the hash of what you download, as always.


INSTALLATION:

Installation can be done on any Linux box, with a fresh USB drive (SD card or HDD would work fine too). It is assuming the USB drive is mounted at /media/sdb1.

1. Format a new Ext3 USB drive, and label it rootfs. Note: if your existing uBoot env for rootfs type is ext2, then you might want to keep it consistent and use Ext2 USB drive. It will work with Ext3 drive without problem, though.

For example:
set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts
rootfstype=ext2

2. Mount the drive on a Linux box. As root user, cd to top level directory and extract it.
cd /media/sdb1
tar -xjf Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2

3. edit /media/sdb1/etc/fstab entry for /dev/root to match the rootfstype of your usb_rootfstype (however, you can keep it as Ext2 without problem in booting an Ext3 partition).
/dev/root / ext2 noatime,errors=remount-ro 0 1

4. Create uImage with embbeded DTB to run with older u-boot. Please see Note 2 below if you are running this kernel witht the new U-Boot.

Pogo Pro vs. Pogo Classic: If you're installing this on a Pogo V3 Classic (no PCI), replace the ox820-pogoplug-pro.dtb below with ox820-pogoplug-classic.dtb.

cd /media/sdb1/boot
cp -a zImage-3.17.0-oxnas-tld-1 zImage-3.17.0-oxnas-tld-1.fdt
cat dts/ox820-pogoplug-pro.dtb >> zImage-3.17.0-oxnas-tld-1.fdt
mkimage -A arm -O linux -C none -T kernel -a 0x60008000 -e 0x60008000 -n 'Linux-3.3.17.0-oxnas-tld-1' -d zImage-3.17.0-oxnas-tld-1.fdt uImage
sync

5. Done. Take this USB rootfs to your plug and cold start.

Note1: After logging in this rootf the first time, remember to generate new SSH key to make it your own unique rootfs. And also update your rootfs to get the latest Debian package updates:
rm /etc/ssh/ssh_host*
ssh-keygen -A

apt-get update
apt-get upgrade

Note2: To simplify the first time installation process, the uImage is recreated with the DTB embedded in step 4. If you are familiar with FDT kernel booting, and want to boot with separate DTB, see the Kernel 3.17 installation section A.6 in this thread for instruction about setting up u-boot envs. Or if you are going run this kernel with the new u-boot as mentioned, then do set up booting as described in section A.6.


Note3: if the Linux box that you are using to create rootfs does not already have mkimage installed then install u-boot-tools package to make it available:
apt-get install u-boot-tools

Note4: For setting up wireless on the Pogo Pro, please see: http://forum.doozan.com/read.php?2,16044,20964#msg-20964

Skip step 4 in this procedure.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
March 29, 2016 03:31PM
Hi Bodhi,

I did something wrong at step 4 indeed.
Thought that the last part didn't belong to part 4 but it did.

I can login in Debian yeah! :), i think i should do step 5 now? Should i also update this kernel with the instructions on the top page of that topic?

Edit:
Updating with step 5.



Edited 5 time(s). Last edit at 03/29/2016 03:55PM by Lithium.
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
March 29, 2016 05:54PM
Lithium Wrote:
-------------------------------------------------------
> Hi Bodhi,
>
> I did something wrong at step 4 indeed.
> Thought that the last part didn't belong to part 4
> but it did.
>
> I can login in Debian yeah! :),

Cool! I think we are done here. Any new question, please make a new Debian topic.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
March 29, 2016 06:29PM
Bodhi, really thanks for your time and help!

I managed to update and install to the latest kernel.
Installing samba, sickrage, sabnzdb, transmission etc.
Any recommendations?
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
March 30, 2016 06:48AM
Hello Bodhi,

I just compiled OpenWRT for my PogoPlug Pro 02 and noticed these two files fit-pogoplug-pro.itb and fit-pogoplug-pro.its in the kernel source directory. My understanding is their names imply a FIT image. If so, how can I use them, instead of uImage and dtb files, with your u-boot?
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
March 30, 2016 06:03PM
habibie,

No it will not work. I did not activate the FIT capability in this u-boot.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
March 30, 2016 10:35PM
bodhi Wrote:
-------------------------------------------------------
> habibie,
>
> No it will not work. I did not activate the FIT
> capability in this u-boot.

Hello Bodhi,

Do you have a plan to activate the FIT capability in the near future? I sure would like to take advantage of it.
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
March 31, 2016 12:44AM
habibie,

I'll look into this for the next u-boot. BTW, even if I have this turned on, the kernel installation procedure will not change, for the sake of backward compatilbility with older u-boots.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
March 31, 2016 11:07PM
bodhi Wrote:
-------------------------------------------------------
> habibie,
>
> I'll look into this for the next u-boot. BTW, even
> if I have this turned on, the kernel installation
> procedure will not change, for the sake of
> backward compatilbility with older u-boots.

Hello Bodhi,

I appreciate that. Thank you.
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
April 06, 2016 07:14AM
bodhi Wrote:
-------------------------------------------------------
> 2015.10 U-Boot for Pogoplug V3 (OXNAS
> OX820)

>
> This U-Boot supports OX820 boxes such as Pogoplug
> V3, Pogoplug V3 Classic, and possibly many other
> OXNAS boxes such as MEDION® LIFE® P89626,
> Silverstone DC01, and Akitio Mycloud mini.
>
> ,,,
>
> This u-boot supports the following latest U-Boot
> features (among others):
>
> - Ability to customize u-boot envs in a script
> (uEnv.txt) during boot, without committing changes
> to NAND (see section A below for instruction).
> This feature also can be used for rescue purpose
> where the u-boot envs were messed up, or when the
> NAND envs block is bad.
> - both FDT and non-FDT kernel booting
> - supports EFI/GPT partition > 2TB (SATA and USB)
> either for booting or just attached.
> - boot Ext4 rootfs
> - SNTP (Simple NTP to set date time during U-Boot
> booting)
> - bootz (boot with zImage).
> - Run the Pogo V3 at 850mhz (for whatever reason,
> if you wish to run at 700Mhz as previous version
> did, then use the old u-boot SPL version
> uboot.spl.2013.10.ox820.mtd0.img in previous
> version). U-boot image proper is independent of
> the SPL, so it can still be updated to
> uboot.2015.10-tld-1.
>
>
Bodhi,

The above statements I quoted from the OP in this thread says the 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820) has a support for bootz. Then, in this post, you clearly indicated you were working on adding new feature to this u-boot: SNTP, bootz, large GPT HDD, load envs. I am a bit confused.

Regardless, my PogoPlug Pro 02 has been flashed with your U-Boot 2013.10-tld-5 (Mar 07 2015 - 16:50:17) for OXNAS. Is it safe to say my PogoPlug Pro 02 is ready to support bootz? If so, all I need is to add this line bootz=echo Booting from ${disk} ...; run setargs; bootz ${loadaddr} - ${fdt_addr}; on top of the existing line bootm=echo Booting from ${disk} ...; run setargs; bootm ${loadaddr}; to my uEnv.txt file (as shown below) to support bootz?

Before:
...
bootm=echo Booting from ${disk} ...; run setargs; bootm ${loadaddr};
...

After
...
bootz=echo Booting from ${disk} ...; run setargs; bootz ${loadaddr} - ${fdt_addr};
bootm=echo Booting from ${disk} ...; run setargs; bootm ${loadaddr};
...
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
April 06, 2016 02:49PM
habibie,

>
> The above statements I quoted from the OP in this
> thread says the 2015.10 U-Boot for Pogoplug V3
> (OXNAS OX820)
has a support for bootz.
> Then, in this

> you clearly indicated you
> were working on adding new feature to this
> u-boot: SNTP, bootz, large GPT HDD, load envs
.
> I am a bit confused.

That post was in Sept 2014. The current time is April 2016 :)

>
> Regardless, my PogoPlug Pro 02 has been flashed
> with your U-Boot 2013.10-tld-5 (Mar 07 2015 -
> 16:50:17) for OXNAS
. Is it safe to say my
> PogoPlug Pro 02 is ready to support bootz?

Yes.

Try bootz in serial console, so if it does not work then there is no harm done. If it does not work then post your log here and I will take a look.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
April 06, 2016 04:36PM
bodhi Wrote:
-------------------------------------------------------
> >
> > Regardless, my PogoPlug Pro 02 has been flashed
> > with your U-Boot 2013.10-tld-5 (Mar 07 2015
> -
> > 16:50:17) for OXNAS
. Is it safe to say my
> > PogoPlug Pro 02 is ready to support bootz?
>
> Yes.
>
> Try bootz in serial console, so if it does not
> work then there is no harm done. If it does not
> work then post your log here and I will take a
> look.

Hello Bodhi,

Thank you for your quick response. I will try this later.
Hello Bodhi,

Fantastic work so far. I've been able to breath new life into my Iomega HMNHD CE thanks to your and others work.

Do you know when the latest u-boot will be updated to include SATA support?

-DaveP
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
April 14, 2016 12:09AM
DaveP Wrote:
-------------------------------------------------------
> Hello Bodhi,
>
> Fantastic work so far. I've been able to breath
> new life into my Iomega HMNHD CE thanks to your
> and others work.
>
> Do you know when the latest u-boot will be updated
> to include SATA support?
>
> -DaveP

Dave,

It already included SATA support.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
April 17, 2016 10:30PM
Updated 22 Nov 2015
I've uploaded the uboot.2015.10-tld-1 u-Boot image for Pogoplug V3 Oxnas.


i have a pogoplug pro (p01) sata and mini pcie wifi. just got the device in my hands lastnight shipped by amazon.
i ssh into the stock pogoplug os and started to follow the tutorial


i did not see any errors in dmesg for Bad eraseblocks 0-16 ( | grep Bad && grep bad)
found some bad blocks in the high 200's but i continued.

(cat /proc/mtd) did not match the expected output, there was 3 lines output identicle to ZZbao
Quote
zzbao
dev: size erasesize name
mtd0: 08000000 00020000 "NAND 128MiB 3,3V 8-bit"
mtd1: 00e00000 00020000 "boot"
mtd2: 07200000 00020000 "rootfs"

This is different from the instruction (mtd0 -> boot, mtd1 -> data). can I proceed?

so i continued steps 6-10 with matching expecting output . i felt all was good...

Quote
bodhi
So the bottom line is if you have only one rootfs in a single Ext3 partition, which is labeled as rootfs, then you're all set.

SO, i rebooted the machine thinking all was set...





Updated 02 Nov 2014: Rootfs Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2 was uploaded.
so, i have my usb stick on my labtop labeled as rootfs ext3 formated. i extracted the package
and
cd /media/sdb1/boot
cp -a zImage-3.17.0-oxnas-tld-1 zImage-3.17.0-oxnas-tld-1.fdt
cat dts/ox820-pogoplug-pro.dtb >> zImage-3.17.0-oxnas-tld-1.fdt
mkimage -A arm -O linux -C none -T kernel -a 0x60008000 -e 0x60008000 -n 'Linux-3.3.17.0-oxnas-tld-1' -d zImage-3.17.0-oxnas-tld-1.fdt uImage
sync


took the stick over to the powered off machine and, It wont boot...

do i need a serial connection to recover this machine?
or can i prepare my usb stick properly and boot up a linux os ?
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
April 17, 2016 11:30PM
i8igmac,

> Updated 22 Nov 2015
> I've uploaded the uboot.2015.10-tld-1 u-Boot image
> for Pogoplug V3 Oxnas.


>
> so i continued steps 6-10 with matching expecting
> output . i felt all was good...

So far so good.

> so, i have my usb stick on my labtop labeled as
> rootfs ext3 formated. i extracted the package
> and
> cd /media/sdb1/boot
> cp -a zImage-3.17.0-oxnas-tld-1
> zImage-3.17.0-oxnas-tld-1.fdt
> cat dts/ox820-pogoplug-pro.dtb >>
> zImage-3.17.0-oxnas-tld-1.fdt
> mkimage -A arm -O linux -C none -T kernel -a
> 0x60008000 -e 0x60008000 -n
> 'Linux-3.3.17.0-oxnas-tld-1' -d
> zImage-3.17.0-oxnas-tld-1.fdt uImage
> sync
>

A wrong step above.

> do i need a serial connection to recover this
> machine?
> or can i prepare my usb stick properly and boot up
> a linux os ?

No need to connect serial. After you have updated u-boot successfully, it is quite easy to recover. The step you have done above was for booting with stock u-boot. So all you need to do is:

- Mount this USB rootfs on another Linux box. And restore the uImage to the original, and it will boot.

- If you'd rather not doing that, then just recreate the USB rootfs again, this time keep the uImage as is. Skipping this section:
> cd /media/sdb1/boot
> cp -a zImage-3.17.0-oxnas-tld-1
> zImage-3.17.0-oxnas-tld-1.fdt
> cat dts/ox820-pogoplug-pro.dtb >>
> zImage-3.17.0-oxnas-tld-1.fdt
> mkimage  -A arm -O linux -C none -T kernel -a
> 0x60008000 -e 0x60008000 -n
> 'Linux-3.3.17.0-oxnas-tld-1' -d
> zImage-3.17.0-oxnas-tld-1.fdt  uImage
> sync

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



Edited 1 time(s). Last edit at 04/17/2016 11:32PM by bodhi.
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
April 18, 2016 11:00AM
Thank you for the quick response. I reinstalled as instructed. I also updated to kerne 4.1
She works ;-]

I have connected a 8gig ssd to the sata port, but i see nothing in dmesg or ls /dev/sd*

tonight ill check the ssd on a desktop and attempt the debian install to confirm the ssd even works or maybe bad cord.

Hard drives should work with only a sata cord?


(Maybe a suggestion, not sure if its relevant)
(dmesg | grep Bad)
(Capital B shows Bad eraseblocks 200 something)
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
April 18, 2016 01:15PM
i8igmac,

> Hard drives should work with only a sata cord?

You need power. The red SATA connector is only for data.

> (Maybe a suggestion, not sure if its relevant)
> (dmesg | grep Bad)
> (Capital B shows Bad eraseblocks 200 something)

dmesg | grep -i bad

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
jay
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
May 11, 2016 02:03AM
hi,
is there any need to change the bootvars to boot from sata instead of usb?
if yes, how?
tnx
jay
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
May 11, 2016 03:06AM
jay,

If you have flashed uboot.2013.10-tld-5.ox820.environment.img then the boot option is automatic.

However, to make sure it boot SATA first

fw_setenv devices 'ide usb'

or only boot SATA
fw_setenv devices 'ide'

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



Edited 1 time(s). Last edit at 05/11/2016 03:07AM by bodhi.
jay
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
May 11, 2016 07:51PM
tnx
jay
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
September 22, 2016 03:43AM
I've split the recent posts to its own topic here:
http://forum.doozan.com/read.php?3,30131

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
cheng
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
October 29, 2016 09:40AM
There are 4 files in the tar,but only 3 of *.img were used in the tutorial,what's the uboot.2013.10-tld-5.ox820.environment for?
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
October 29, 2016 03:08PM
cheng Wrote:
-------------------------------------------------------
> There are 4 files in the tar,but only 3 of *.img
> were used in the tutorial,what's the
> uboot.2013.10-tld-5.ox820.environment for?

It's the uboot.2013.10-tld-5.ox820.environment.img in text. In case you need it to restore the default envs. Using uEnv.txt you can load it during boot.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
pulledfromthewater
Re: 2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)
December 19, 2016 12:17PM
After installing this version of u-boot, "usb start" gives the following. I've tried increasing the timeout to all manner of values to no avail. Plugging in a USB drive gives an identical result.

scanning bus 0 for devices... EHCI timed out on TD - token=0x80008c80
unable to get device descriptor (error=-1)
1 USB Device(s) found
       scanning usb for storage devices... 0 Storage Device(s) found


Here's my printenv:

bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec; reset
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm 0x60500000 0x60e00000 0x62c00000; else bootm 0x60500000 0x60e00000; fi; else if run load_dtb; then bootm 0x60500000 - 0x62c00000; else bootm 0x605i
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide
disks=0 1 2 3
dtb_file=/boot/dts/ox820-pogoplug-pro.dtb
ethact=dwmac.40400000
ethaddr=52:3b:20:9c:11:51
if_netconsole=ping $serverip
ipaddr=192.168.0.9
load_dtb=echo loading DTB $dtb_file ...; ext2load $bootdev $device 0x62c00000 $dtb_file
load_initrd=echo loading uInitrd ...; ext2load $bootdev $device 0x60e00000 /boot/uInitrd
load_uimage=echo loading uImage ...; ext2load $bootdev $device 0x60500000 /boot/uImage
mainlineLinux=yes
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
preboot=run preboot_nc
preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$e
serverip=192.168.0.3
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_import=echo importing envs ...; env import -t 0x60500000
uenv_init_devices=setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done;
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices;  do for disknum in 0; do run uenv_read_disk; done; done;
uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x60500000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi
uenv_read_disk=if test $devtype -eq mmc; then if $devtype part; then run uenv_read;  fi; else if $devtype part $disknum; then run uenv_read; fi;  fi
usb_custom_params=zswap.enabled=1
usb_ready_retry=15
Sorry, you can't reply to this topic. It has been closed.