Welcome! Log In Create A New Profile

Advanced

2015.10 U-Boot for Pogoplug V3 (OXNAS OX820)

Posted by bodhi 
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
December 05, 2014 03:53PM
effendi Wrote:
-------------------------------------------------------
>
> dmesg | grep -i 'bad'
> [    5.490000] Scanning device for bad blocks
> [    5.540000] Bad eraseblock 379 at
> 0x000002f60000
> [    6.170000] UBI: number of bad PEBs:         1
> [    6.210000] UBI: number of PEBs reserved for
> bad PEB handling: 9
> 
>
> Hi, @bohdi. Is this error installation is
> successful?

It's OK. The bad block is way out in other area.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
effendi
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
December 06, 2014 03:57AM
THX for Your reply.

I found an error in the boot. If you can help with this problem?

U-Boot SPL 2013.10 (Apr 27 2014 - 19:08:27)
  Boot device: NAND
Attempting to set PLLA to 800 MHz ...
  plla_ctrl0 : 0000030a
  plla_ctrl1 : 00400000
  plla_ctrl2 : 007f0068
  plla_ctrl3 : 00000193

PLLA Set


U-Boot 2013.10-tld-3 (May 15 2014 - 14:54:14) for OXNAS

DRAM:  128 MiB
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:
Led:    GREEN
mii0
Main Loop
## Error: "preboot_c" not defined
Hit any key to stop autoboot:  0
(Re)start USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
4102704 bytes read in 433 ms (9 MiB/s)
1954792 bytes read in 273 ms (6.8 MiB/s)
7029 bytes read in 216 ms (31.3 KiB/s)
## Booting kernel from Legacy Image at 60500000 ...
   Image Name:   Linux-3.17.0-oxnas-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4102640 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
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    1954728 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 67c4d000, end 67e2a3a8 ... OK
   Loading Device Tree to 67c48000, end 67c4cb74 ... OK

Led:    GREEN

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 3.17.0-oxnas-tld-1 (root@tldDebian) (gcc version 4.6.3 (Debian 4.6.3-14) ) #1 SMP PREEMPT Sat Oct 25 15:59:43 PDT 2014
[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5787d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Pogoplug Pro
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] DT missing boot CPU MPIDR[23:0], fall back to default cpu_logical_map
[    0.000000] Start Ox820 platform
[    0.000000] PERCPU: Embedded 7 pages/cpu @c7ee3000 s6592 r8192 d13888 u32768
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 119840K/131072K available (5686K kernel code, 286K rwdata, 1680K rodata, 174K init, 233K bss, 11232K reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xffe00000   (2048 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff000000   ( 872 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0739db0   (7368 kB)
[    0.000000]       .init : 0xc073a000 - 0xc07659c0   ( 175 kB)
[    0.000000]       .data : 0xc0766000 - 0xc07adb00   ( 287 kB)
[    0.000000]        .bss : 0xc07adb00 - 0xc07e809c   ( 234 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:160
[    0.000017] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 42949670400ns
[    0.000204] Console: colour dummy device 80x30
[    0.000235] Calibrating delay loop... 317.03 BogoMIPS (lpj=1585152)
[    0.059891] pid_max: default: 32768 minimum: 301
[    0.060096] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.060113] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.060974] Initializing cgroup subsys net_cls
[    0.061038] CPU: Testing write buffer coherency: ok
[    0.061445] Setting up static identity map for 0x60567fa0 - 0x60567fd8
[    0.120478] CPU1: Booted secondary processor
[    0.180162] Brought up 2 CPUs
[    0.180190] SMP: Total of 2 processors activated.
[    0.181219] devtmpfs: initialized
[    0.185425] prandom: seed boundary self test passed
[    0.189588] prandom: 100 self tests passed
[    0.189614] pinctrl core: initialized pinctrl subsystem
[    0.192704] NET: Registered protocol family 16
[    0.193256] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.197877] gpio-oxnas 44000000.gpio: at address c8846000
[    0.198192] gpio-oxnas 44100000.gpio: at address c8848000
[    0.198784] pinctrl-oxnas pinctrl: initialized OX820 pinctrl driver
[    0.320839] oxnas-pcie 47c0: PCIe version/deviceID 0x82510b5
[    0.320919] oxnas-pcie 47c0: link up
[    0.321175] oxnas-pcie 47c0: PCI host bridge to bus 0000:00
[    0.321205] pci_bus 0000:00: root bus resource [mem 0x48000000-0x49ffffff]
[    0.321226] pci_bus 0000:00: root bus resource [mem 0x4a000000-0x4bdfffff pref]
[    0.321244] pci_bus 0000:00: root bus resource [io  0x4be00000-0x4befffff]
[    0.321267] pci_bus 0000:00: root bus resource [bus 00-7f]
[    0.321753] PCI: bus0: Fast back to back transfers disabled
[    0.321838] pci 0000:00:00.0: BAR 0: assigned [mem 0x48000000-0x4800ffff]
[    0.322242] vgaarb: loaded
[    0.322759] SCSI subsystem initialized
[    0.323671] usbcore: registered new interface driver usbfs
[    0.323776] usbcore: registered new interface driver hub
[    0.323985] usbcore: registered new device driver usb
[    0.324111] pps_core: LinuxPPS API ver. 1 registered
[    0.324126] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.324195] PTP clock support registered
[    0.325803] cfg80211: Calling CRDA to update world regulatory domain
[    0.326297] Switched to clocksource rps_clocksource_timer
[    0.341071] NET: Registered protocol family 2
[    0.342254] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.342300] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.342336] TCP: Hash tables configured (established 1024 bind 1024)
[    0.342425] TCP: reno registered
[    0.342456] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.342499] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.342824] NET: Registered protocol family 1
[    0.343334] RPC: Registered named UNIX socket transport module.
[    0.343354] RPC: Registered udp transport module.
[    0.343365] RPC: Registered tcp transport module.
[    0.343377] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.343792] Unpacking initramfs...
[    0.556190] Freeing initrd memory: 1908K (c7c4d000 - c7e2a000)
[    0.557350] futex hash table entries: 512 (order: 2, 16384 bytes)
[    0.577438] NFS: Registering the id_resolver key type
[    0.577505] Key type id_resolver registered
[    0.577520] Key type id_legacy registered
[    0.577559] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.577579] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.578467] fuse init (API version 7.23)
[    0.579919] msgmni has been set to 237
[    0.580480] Key type big_key registered
[    0.584545] alg: No test for stdrng (krng)
[    0.659914] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.659947] io scheduler noop registered
[    0.659973] io scheduler deadline registered
[    0.660354] io scheduler cfq registered (default)
[    0.661009] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.662364] console [ttyS0] disabled
[    0.662497] 44200000.uart: ttyS0 at MMIO 0x44200000 (irq = 55, base_baud = 390625) is a 16550A
[    1.213624] console [ttyS0] enabled
[    1.481405] scsi host0: sata_oxnas
[    1.537960] ata1: SATA max UDMA/133 irq 50
[    1.542376] ox820sata: reseting SATA core
[    1.551787] nand: Could not find valid ONFI parameter page; aborting
[    1.558154] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    1.570007] nand: Hynix NAND 128MiB 3,3V 8-bit
[    1.574438] nand: 128MiB, SLC, page size: 2048, OOB size: 64
[    1.580106] Scanning device for bad blocks
[    1.615134] Bad eraseblock 379 at 0x000002f60000
[    1.672002] 2 ofpart partitions found on MTD device 41000000.nand
[    1.678067] Creating 2 MTD partitions on "41000000.nand":
[    1.683463] 0x000000000000-0x000000e00000 : "boot"
[    1.689753] 0x000000e00000-0x000008000000 : "data"
[    1.696545] stmmaceth 40400000.ethernet: no reset control found
[    1.702481] stmmac - user ID: 0x12, Synopsys ID: 0x35
[    1.707504]  Ring mode enabled
[    1.710553]  DMA HW capability register supported
[    1.715056]  Enhanced/Alternate descriptors
[    1.719383]  Enabled extended descriptors
[    1.723384]  RX Checksum Offload Engine supported (type 2)
[    1.728837]  TX Checksum insertion supported
[    1.733089]  Wake-Up On Lan supported
[    1.736729]  Enable RX Mitigation via HW Watchdog Timer
[    1.764669] libphy: stmmac: probed
[    1.768069] eth0: PHY ID 001cc914 at 0 IRQ POLL (stmmac-0:00) active
[    1.774453] eth0: PHY ID 001cc914 at 3 IRQ POLL (stmmac-0:03)
[    1.780308] PPP generic driver version 2.4.2
[    1.784965] rt2800pci 0000:00:00.0: enabling device (0140 -> 0142)
[    1.791385] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 3090, rev 3213 detected
[    1.802634] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 0005 detected
[    1.811709] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.818219] ehci-pci: EHCI PCI platform driver
[    1.823124] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    1.828628] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    1.836426] oxnas-ehci 40200100.ehci: irq 39, io mem 0x40200100
[    1.860597] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    1.866887] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.873676] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.880916] usb usb1: Product: EHCI Host Controller
[    1.885775] usb usb1: Manufacturer: Linux 3.17.0-oxnas-tld-1 ehci_hcd
[    1.892203] usb usb1: SerialNumber: 40200100.ehci
[    1.897766] hub 1-0:1.0: USB hub found
[    1.901652] hub 1-0:1.0: 2 ports detected
[    1.906304] usbcore: registered new interface driver cdc_acm
[    1.911971] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.920040] usbcore: registered new interface driver cdc_wdm
[    1.925757] ata1: SATA link down (SStatus 0 SControl 300)
[    1.931422] usbcore: registered new interface driver usb-storage
[    1.937674] usbcore: registered new interface driver usbserial
[    1.943610] usbcore: registered new interface driver usbserial_generic
[    1.950169] usbserial: USB Serial support registered for generic
[    1.956495] mousedev: PS/2 mouse device common for all mice
[    1.962109] i2c /dev entries driver
[    1.966766] usbcore: registered new interface driver usbhid
[    1.972349] usbhid: USB HID core driver
[    1.976527] TCP: cubic registered
[    1.981063] NET: Registered protocol family 10
[    1.987069] sit: IPv6 over IPv4 tunneling driver
[    1.992660] NET: Registered protocol family 17
[    1.997255] Key type dns_resolver registered
[    2.006256] Freeing unused kernel memory: 172K (c073a000 - c0765000)
Loading, please wait...
[    2.142151] udevd[67]: starting version 175
[    2.220782] usb 1-1: new high-speed USB device number 2 using oxnas-ehci
[    2.383083] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    2.389770] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.398323] usb 1-1: Product: USB2.0 Hub
[    2.411594] hub 1-1:1.0: USB hub found
[    2.440419] hub 1-1:1.0: 4 ports detected
[    2.760373] usb 1-1.3: new high-speed USB device number 3 using oxnas-ehci
[    2.871362] usb 1-1.3: New USB device found, idVendor=8644, idProduct=8003
[    2.878215] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.885524] usb 1-1.3: Product: USB Flash Disk
[    2.891358] usb 1-1.3: Manufacturer: General
[    2.897594] usb 1-1.3: SerialNumber: 03365000000414AB
[    2.904762] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    2.911708] scsi host1: usb-storage 1-1.3:1.0
[    2.932963] usbcore: registered new interface driver uas
[    2.990384] usb 1-1.4: new full-speed USB device number 4 using oxnas-ehci
[    3.101739] usb 1-1.4: New USB device found, idVendor=1a86, idProduct=7523
[    3.108587] usb 1-1.4: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[    3.115896] usb 1-1.4: Product: USB2.0-Ser!
[    3.911101] scsi 1:0:0:0: Direct-Access     General  USB Flash Disk   1.00 PQ: 0 ANSI: 2
[    3.926538] sd 1:0:0:0: [sda] 7831552 512-byte logical blocks: (4.00 GB/3.73 GiB)
[    3.935091] sd 1:0:0:0: [sda] Write Protect is off
[    3.940951] sd 1:0:0:0: [sda] No Caching mode page found
[    3.947171] sd 1:0:0:0: [sda] Assuming drive cache: write through
[    3.959782]  sda: sda1 sda2
[    3.971714] sd 1:0:0:0: [sda] Attached SCSI removable disk
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
[   12.736020] EXT3-fs (sda1): mounted filesystem with ordered data mode
[   12.742612] kjournald starting.  Commit interval 5 seconds
Begin: Running /scripts/local-bottom ... done.
done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: udevd[   14.407680] udevd[259]: starting version 175
. ok
[ ok ] Synthesizing the initial hotplug events...[   14.935016] usbcore: registered new interface driver ch341
[   14.960250] usbserial: USB Serial support registered for ch341-uart
[   14.966607] ch341 1-1.4:1.0: ch341-uart converter detected
done.
[   15.043530] usb 1-1.4: ch341-uart converter now attached to ttyUSB0
[ ok ] Waiting for /dev to be fully populated...done.
[....] Activating swap...[   16.530109] random: nonblocking pool is initialized
done.
[....] Checking root file system...fsck from util-linux 2.20.1
rootfs: clean, 12070/183264 files, 157655/732274 blocks
done.
[   16.922462] EXT3-fs (sda1): using internal journal
[ ok ] Loading kernel modules...done.
[ ok ] Cleaning up temporary files... /tmp /lib/init/rw.
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.20.1
done.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[ ok ] Configuring network interfaces...done.
[ ok ] Starting rpcbind daemon....
[....] Starting NFS common utilities: statd idmapd[   29.370191] stmmaceth 40400000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
. ok
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[ ok ] Starting rpcbind daemon...[....] Already running..
[ ok ] Starting NTP server: ntpd.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1804 (syslogd)
. ok
[ ok ] Starting system message bus: dbus.
[ ok ] Starting NFS common utilities: statd idmapd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting OpenBSD Secure Shell server: sshd.
1803 (klogd)
. ok

Debian GNU/Linux 7 debian ttyS0

debian login:

Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
December 06, 2014 04:04AM
Looks like preboot tries to execute preboot_c ... Can you paste the output of fw_printenv ?
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
December 06, 2014 04:40AM
effendi,

> ## Error: "preboot_c" not defined

This is part of the netconsole starting command:

preboot_nc=run if_netconsole start_netconsole

If you want to start netconsole (which is probably not needed, since you have serial console), then the preboot env should be:
preboot=run preboot_nc

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
effendi
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
December 06, 2014 07:34AM
@morph027 this is print from serial console (boot secquence)

THX @bodhi - I should delete this entry? Where and how to do it?
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
December 06, 2014 03:43PM
effendi
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
December 06, 2014 06:59PM
root@debian:~# fw_printenv
autoload=no
baudrate=115200
bootargs=console=ttyS0,115200n8
bootdelay=10
console=console=ttyS0,115200n8
ethact=mii0
ethaddr=5e:2b:15:71:ec:b6
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
serverip=192.168.0.220
stderr=serial
stdin=serial
stdout=serial
usb_device=0:1
if_netconsole=ping $serverip
preboot_nc=run if_netconsole start_netconsole
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10
uinitrd_addr=0x60e00000
uimage_addr=0x60500000
dtb_addr=0x62c00000
dt_load_dtb=ext2load usb 0:1 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb
dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boot/uInitrd
dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot/uImage
dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr
dt_usb_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm
dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_boot
dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset
bootcmd=run dt_bootcmd_usb
preboot=run preboot_c
ipaddr=192.168.0.24
serwerip=192.168.0.2

Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
December 06, 2014 07:19PM
Reset this to disable netconsole start

fw_setenv preboot

When you want to activate netconsole (when serial is not connected), set this in Debian before rebooting:
fw_setenv preboot 'run preboot_nc'

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
January 30, 2015 10:23AM
What clock speed is the above uboot set at?
How far Do you intend to push it?

I have a spare pogoppro and dont mind pushing it to the limit in the interests of testing and development
shv
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
January 30, 2015 11:27AM
Usually it is 700 MHz. You can try running at 850 MHz which is stable using the file from the following post: http://forum.doozan.com/read.php?3,16017,17548#msg-17548.

-shv



Edited 1 time(s). Last edit at 01/30/2015 11:28AM by shv.
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
February 02, 2015 08:42AM
850 - here i come.....
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
February 06, 2015 04:02AM
Hi Bodhi!

HELP Please!

I flashed 850 MHz Uboot, and my Pogo p24 died. :(
I have serial connection, but nothing showed.

800MHz uboot was fine. (Why I tried 850???? always searching maximum...Krrrrr. :) )

I only execute this command :
./nandwrite /dev/mtd0 uboot.spl.2013.10.ox820.850mhz.mtd0.img

without the
/usr/sbin/flash_erase /dev/mtd0 0x0 6

command before!

Did I do something wrong?

Is is totally dead or are there any way to recover?



Edited 4 time(s). Last edit at 02/06/2015 04:41AM by robert1968@gmail.com.
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
February 06, 2015 05:07AM
@robert,

Bad news if you don't see anything on serial console. And yes, always need to erase before writing to NAND.

Quote
Instruction in 1st post

6. Erase 6 blocks on mtd0
/usr/sbin/flash_erase /dev/mtd0 0x0 6

7. Flash encoded spl stage1 to 0x0
/usr/sbin/nandwrite /dev/mtd0 uboot.spl.2013.10.ox820.mtd0.img

Fortunately, there is a way to recover: You can to boot with SATA.

1. Connect SATA cable to the Pogo V3.
2. Prepare the HDD with SATA version of SPL and u-boot, and with your current rootfs . See shv's post here:
http://forum.doozan.com/read.php?3,16017,17297#msg-17297

I am not using SATA booting so don't have a completed instruction for you.

@shv,

Perhaps you can post your SATA boot step-by-step instruction or log?

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
February 06, 2015 06:06AM
Hi Bodhi,

Thank you very much for very fst response!!!!

It was my fault not to erase uboot before flash.
( I will have "Punishment" for it. Sorry for bad joke (just I've finished -and shocked by- Dostoyevsky book tonight :) )

Thanks for pointing to Sata boot. I will try! and refer.

Regards,
Robert
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
February 06, 2015 02:14PM
@robert,

> ( I will have "Punishment" for it. Sorry for
> bad joke (just I've finished -and shocked by-
> Dostoyevsky book tonight :) )


Great book :)

You should keep the log of the installation in case you need to repeat it when installing new version. It helps to go over it before installation to refresh memory.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
February 06, 2015 05:45PM
Hi Bodhi,

I made command history, and repeated it few dozen times :)
Spending whole day with sata, but cant get working uboot.
But at least I have serial console!

[code
]Stage-1 Bootloader Mon Nov 14 22:18:52 EST 2011
Attempting to set PLLA to 750MHz ...
plla_ctrl0 : 0x0000000A
plla_ctrl1 : 0x000F0000
plla_ctrl2 : 0x001D01A0
plla_ctrl3 : 0x00000017
PLLA Set

Setup memory, testing
Reading disk 0, Image 0
Sector : 0x0000009A
Hdr len: 0x0001FB34
Hdr CRC: 0x2229BDCD
OK
Initialising disks
SATA PHY not ready for device 1
Detecting SATA busses:
Bus 0: Found first device OK
Device 0: Model: WDC WD800BEAS-00RRT0 Firm: 04.01G04 Ser#: WD-WXE208C02426
Type: Hard Disk
Capacity: 76319.0 MB = 74.5 GB (156301488 x 512)
Device 1: not available
Failed to read valid environment from disk, using built-in default


U-Boot 1.1.2 (Dec 31 2011 - 15:24:45)

U-Boot code: 60E00000 -> 60E1FB34 BSS: -> 60E5435C
RAM Configuration:
Bank #0: 60000000 128 MB
SRAM Configuration:
64KB at 0x50000000
NAND:128 MiB
*** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Setting Linux mem= boot arg value

IDE read: device 0 block # 288, count 1 ... 1 blocks read: OK
Hit any key to stop autoboot: 0

Loading from IDE device 0, partition 1: Name: hda1
Type: U-Boot
Image Name: Linux-2.6.31.6_SMP_820
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2159884 Bytes = 2.1 MB
Load Address: 60008000
Entry Point: 60008000
## Booting image at 60500000 ...
Image Name: Linux-2.6.31.6_SMP_820
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 2159884 Bytes = 2.1 MB
Load Address: 60008000
Entry Point: 60008000
Verifying Checksum ... Bad Data CRC

Loading from IDE device 0, partition 2: Name: hda2
Type: U-Boot

** Bad Magic Number **
Unknown command 'lightled' - try 'help'
$

[/code]


my env:


$ printenv
bootcmd=run dload1 boot || run dload2 boot || lightled
bootdelay=2
baudrate=115200
ethaddr=00:30:e0:00:00:01
ipaddr=172.31.0.128
serverip=172.31.0.100
autoload=n
netmask=255.255.0.0
bootfile="uImage"
lightled=ledfail 1
extinguishled=ledfail 0
boot=bootm 60500000
dload1=diskboot 60500000 0:1
dload2=diskboot 60500000 0:2
root_dev1=/dev/sda2
root_dev2=/dev/sda1
root_dev=/dev/sda2
stdin=serial
stdout=serial
stderr=serial
bootargs=root=/dev/sda2 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 rootwait ubi.mtd=2,512 mem=128M poweroutage=yes

Environment size: 565/8188 bytes


Sata is set up based on Warhead described, (on old archlinux page), and sata booting starts, but only have this very limited command prompt.

I tried tftp boot but all my uinitrd or uimage are freeze the Pogo after it is loaded. (probably I dont know the right steps...)

Is there any way to write uboot.spl.2013.10.ox820.850mhz.mtd0.img on this limited command prompt?

Regards,
Robert
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
February 06, 2015 06:29PM
@Robert,

First, I think you've missed the u-boot envs file. u-boot envs text file should also be in the HDD. That's what I remembered, but it was a long time ago that I looked at WarheadsSE procedure. The booting was not successful because the default envs were used. Hence the error:
Failed to read valid environment from disk, using built-in default

Second, if you could not make SATA booting to work with WarheadsSE files then perhaps you should use shv's files to flash new spl, u-boot images to the HDD. You also need u-boot envs file. The procedure is same as WarheadsSE's describe, but with new set of images. See my post above for that.

You're doing it correctly (all you need is to boot successfully with SATA into ALARM, and then recovery is a sure thing). Using WarheadsSE old installation is indeed great for rescue purpose.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
February 07, 2015 01:44AM
I'm attempting updating my 1st PogoPlug Pro with the latest U-Boot and have run into an issue. I followed the instructions at the first post, but skipped step 9 and 10 because I still have the stock firmware installed. Now when I boot I can no longer interact via my serial console. I get the following from serial port:

U-Boot SPL 2013.10 (Apr 27 2014 - 19:08:27)
Boot device: NAND
Attempting to set PLLA to 800 MHz ...
plla_ctrl0 : 0000030a
plla_ctrl1 : 00400000
plla_ctrl2 : 007f0068
plla_ctrl3 : 00000193

PLLA Set


U-Boot 2013.10-tld-3 (May 15 2014 - 14:54:14) for OXNAS

DRAM: 128 MiB
NAND: 128 MiB
NAND read from offset 100000 failed -74
*** Warning - readenv() failed, using default environment

In: serial
Out: serial
Err: serial
Net:
Led: GREEN
mii0
Main Loop
switch to net console


After this there is no more output to the serial port! Is there any way to re-enable output to the serial port? Any other way to recover?

- Ray
shv
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
February 07, 2015 02:36AM
@Robert,
your boot environment looks OK for the old WarheadsSE booting procedure. It looks that you don't have the right rootfs on partition sda2 (ext3/partition name rootfs).

Nevertheless I want to recommend you to use new uboot. Bodhi already pointed you to my post: http://forum.doozan.com/read.php?3,16017,17297#msg-17297.

The device must support 512 Byte sector size either natively or by simulation.

Step1: prepare mbr partition table:
sda1: rootfs including boot files (ext4) with partition name rootfs
sda2: linux swap partition
sda3: data (ext4)
Step2: Extract the content of the archive http://pogoplug.cwsurf.de/ox820-sata-uboot.tar.gz to your rootfs partition

Step3: Prepare SATA booting by adapting and executing the following script
#!/bin/sh

# uncomment line below and set to the correct disk
#disk=/dev/sda

if [ -z "${disk}" ] ; then
   echo "You must uncomment/set the 'disk' variable"
   exit -1
fi

workarea="/boot"

stage1File=$workarea/u-boot-spl.bin

perl <<EOF | dd of="$disk" bs=512
    print "\x00" x 0x1a4;
    print "\x00\x5f\x01\x00";
    print "\x00\xdf\x00\x00";
    print "\x00\x80\x00\x00";
    print "\x00" x (0x1b0 -0x1a4 -12 );
    print "\x22\x80\x00\x00";
    print "\x22\x00\x00\x00";
    print "\x00\x80\x00\x00";
EOF

if [ -f $stage1File ];then
        echo "Writing stage 1"
        dd if=$stage1File    of="$disk" bs=512 seek=34
fi
Step4: Boot with serial cable connected and adapt the boot-env settings to your needs

Please also read the posts of morph027 starting from: http://forum.doozan.com/read.php?3,16017,18341#msg-18341

-shv



Edited 4 time(s). Last edit at 02/07/2015 02:42AM by shv.
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
February 07, 2015 02:59AM
@rayknight,

You've missed this instruction:

Requirements: 

The starting point could be one of of the following: 

1 .Your Pogo V3 is already running Debian rootfs with Arch kernel 
2. Your Pogo V3 is already running Arch rootfs with Arch kernel 
3. Your Pogo V3 is already running the latest Debian rootfs from Latest Linux Kernel 3.xx and rootfs Pogo V3 thread (or you plan to run this rootfs after installing U-Boot) 
4. You are running stock kernel, and have gained SHH access to the box, and have downloaded u-boot-tools and mtd-utils (fw_setenv, flash_erase, nandwrite …) to work with NAND mtds. And plan to run a USB rootfs that came from any of the above 3.

Note the requirements states that you need to run new rootfs that came from any of the first 3. This u-boot won't work with stock firmware.

Yes, there should be a way for you to connect netconsole and then either switch back to serial console, or change u-boot envs to boot the latest Debian rootfs. Let me take a look at the code to see which ip address was set in the default envs.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
February 07, 2015 04:02AM
@Ray,

You can switch back to serial console by pressing a key very quickly when you see the serial console starts. Try pressing any key even before it starts and keep pounding it very quickly. It will interrupt u-boot and get to the prompt.

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
February 08, 2015 03:28AM
Thanks for the reply bodhi. However, after further web searches I believe I am closer to what I actually want. I found some posts on the Arch Arm Linux forums and then some pointers to github for Pogoplug_V3_Emdebian_Debian which also had directions for creating a bootable SATA disk. I can now directly boot the SATA disk I created. I will be studying the scripts and I should be able to figure out how to modify them to use the newer 3.17 kernel from your links and the Debian Jessie repositories to create a bootable SATA disk with a 3.17 kernel and Debian Jessie. Since I want to run from the SATA disk it seems that I didn't really need to upgrade U-Boot at all! I have 2 Pogoplug Pro's and a Classic B01 that I am modifying the case front to include an eSATA port. I even located a nice MassCool enclosure that includes a USB power cable with the eSATA cable and a USB 2.0 cable that works great to power the drive from the front USB port.

Thanks,
Ray
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
February 09, 2015 04:21AM
Hi SHV,

Thank you for help!
It is not 100% clear what to do, but I will try.
Situation reminds me to have a helicopter view for things to do, but with eyes patched. :)

Unfortunately I cant manage to work WarheadsSE steps. After 2 days very hard trial, I allway failed to start loading kernel or If it starts allways hang up. Something wrong with my rootfs. It is suspect my HDD has some special defect or else.

So I will tried the second advise: new uboot.

I did following steps:

fdisk /dev/sdc
o - emty partion table
n - Create part 1
n - Create part 2 - type 82
n - Create part 3
w - write

510 mkfs.ext4 /dev/sdc1
513 mkfs.ext4 /dev/sdc3
514 tune2fs -L "rootfs" /dev/sdc1
522 tune2fs -L "adat" /dev/sdc3
518 mount /dev/sdc1 /mnt/sdc1

Extract the content ox820-sata-uboot.tar.gz
copy /boot to rootfs partition
530 umount rootfs
531 umount adat

modify disk_create_shv - disk modified to sdc.
run it:
#./disk_create_shv

detach from PC and attached to Pogo

Tried to boot.

Serial output:

Stage-1 Bootloader Mon Nov 14 22:36:34 EST 2011
Attempting to set PLLA to 850MHz ...
  plla_ctrl0 : 0x0000020A
  plla_ctrl1 : 0x00330000
  plla_ctrl2 : 0x0065008B
  plla_ctrl3 : 0x000000F1
PLLA Set

Setup memory, testing
Reading disk 0, Image 0
  Sector : 0x0000009A
  Hdr len: 0x00000000
  Hdr CRC: 0x00000000
 length 0
Reading disk 0, Image 1
  Sector : 0x0000DF78
  Hdr len: 0x00000000
  Hdr CRC: 0x00000000
 length 0
Reading disk 1, Image 0
  Sector : 0x0000009A

it is endless reading...

Any advise?

Unfortunately I dont understand morph027 steps...



Edited 2 time(s). Last edit at 02/09/2015 05:28AM by robert1968@gmail.com.
shv
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
February 09, 2015 11:20AM
Please post the output of the following commands:
fdisk -lc
blkid

Please stop the bootloader at the countdown and post the output of:
printenv

-shv
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
February 09, 2015 01:53PM
Hi SHV,

Thanks for help!

big2 b # fdisk -lc 
....

Disk /dev/sdc: 80.0 GB, 80026361856 bytes
255 fej, 63 szektor, 9729 cilinder, összesen 156301488 szektor
Egység: szektorok 1 * 512 = 512 bájt
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Lemezazonosító: 0x00008000

  Eszköz Indítás   Eleje         Vége      Blokkok  Az  Rendszer
/dev/sdc1            2048     4196351     2097152   83  Linux
/dev/sdc2         4196352     5220351      512000   82  Linux lapozó / Solaris
/dev/sdc3         5220352     9414655     2097152   83  Linux

blkid
big2 b # blkid
....
/dev/sdc1: LABEL="rootfs" UUID="fdaa9acf-1cdd-4107-a766-27a1f3a9f396" TYPE="ext4" 
/dev/sdc3: LABEL="adat" UUID="42039567-a36d-48cd-bf34-cf21c58b5d3b" TYPE="ext4"

There is no counter!!!
I tried to press esc but nothing happens.

Terminal ready
Stage-1 Bootloader Mon Nov 14 22:36:34 EST 2011
Attempting to set PLLA to 850MHz ...
  plla_ctrl0 : 0x0000020A
  plla_ctrl1 : 0x00330000
  plla_ctrl2 : 0x0065008B
  plla_ctrl3 : 0x000000F1
PLLA Set

Setup memory, testing
Reading disk 0, Image 0
  Sector : 0x0000009A
  Hdr len: 0x00000000
  Hdr CRC: 0x00000000
 length 0
Reading disk 0, Image 1
  Sector : 0x0000DF78
  Hdr len: 0x00000000
  Hdr CRC: 0x00000000
 length 0
Reading disk 1, Image 0
  Sector : 0x0000009A
  Hdr len: 0xA1A2A3A4
  Hdr CRC: 0xB1B2B3B4
 read failed
Reading disk 1, Image 1
  Sector : 0x0000DF78
  Hdr len: 0xA1A2A3A4
  Hdr CRC: 0xB1B2B3B4
 read failed
Reading disk 0, Image 0
  Sector : 0x0000009A
  Hdr len: 0x00000000
  Hdr CRC: 0x00000000
 length 0
Reading disk 0, Image 1
  Sector : 0x0000DF78
  Hdr len: 0x00000000
  Hdr CRC: 0x00000000
 length 0
Reading disk 1, Image 0
  Sector : 0x0000009A
  Hdr len: 0xA1A2A3A4
  Hdr CRC: 0xB1B2B3B4
 read failed
Reading disk 1, Image 1
  Sector : 0x0000DF78
  Hdr len: 0xA1A2A3A4
  Hdr CRC: 0xB1B2B3B4
 read failed
Reading disk 0, Image 0
  Sector : 0x0000009A
  Hdr len: 0x00000000
  Hdr CRC: 0x00000000
 length 0
Reading disk 0, Image 1
  Sector : 0x0000DF78
  Hdr len: 0x00000000
  Hdr CRC: 0x00000000
 length 0
Reading disk 1, Image 0
  Sector : 0x0000009A
  Hdr len: 0xA1A2A3A4
  Hdr CRC: 0xB1B2B3B4
 read failed

This read failed is endless.

Is my HDD failured???

Thanks Robert
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
February 09, 2015 03:01PM
Looks like it's trying to read from disk but nothing's found...

Steps that worked for me:

- put u-boot-spl.bin (from http://pogoplug.cwsurf.de/ox820-sata-uboot.tar.gz) as stage1 to disk (assuming sdc from your output above):

dd if=u-boot-spl.bin of="$disk" bs=512 seek=34

- created ext4 partition as rootfs containing boot files
- untared rootfs from linux-3.16.0-oxnas-tld-1-bodhi.tar.bz2 to it
- copied u-boot.env, u-boot.img from ox820-sata-uboot.tar.gz to /boot
- renamed /boot/ox820-pogoplug-classic.dtb to /boot/ox820-pogoplug-pro.dtb

./mkenvimage -s 16384 -o u-boot.env u-boot-env.txt

u-boot-env.txt (mind the mac address when copying!)

dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr
autoload=no
baudrate=115200
bootargs=console=ttyS0,115200n8
bootcmd=run dt_bootcmd_ide
bootdelay=3
console=console=ttyS0,115200n8
dt_bootcmd_ide=ide start; run dt_ide_bootcmd; ide stop; reset
dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset
dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr
dt_ide_boot=run dt_ide_load_uimage; run dt_ide_load_initrd; run dt_ide_load_dtb; run dt_bootm
dt_ide_bootcmd=run ide_set_bootargs; run dt_ide_boot
dt_ide_load_dtb=ext2load ide 0:1 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb
dt_ide_load_initrd=ext2load ide 0:1 $uinitrd_addr /boot/uInitrd
dt_ide_load_uimage=ext2load ide 0:1 $uimage_addr /boot/uImage
dt_load_dtb=ext2load usb 0:1 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb
dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boot/uInitrd
dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot/uImage
dt_usb_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm
dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_boot
dtb_addr=0x62c00000
ethact=mii0
ethaddr=00:25:31:XX:XX:XX
ide_set_bootargs=setenv bootargs root=/dev/sda1 rootfstype=ext4 console=ttyS0,115200 mem=128M
if_netconsole=ping $serverip
ipaddr=10.10.10.1
serverip=10.10.10.5
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
preboot_nc=run if_netconsole start_netconsole
preboot=run preboot_nc 
sata_bootcmd=run usb_set_bootargs; run sata_boot
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version
stderr=serial
stdin=serial
stdout=serial
uimage_addr=0x60500000
uinitrd_addr=0x60e00000
usb_device=0:1
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10

You might change things to 3.17 rootfs and kernel. This is how my current boot directory looks like.

.
|-- System.map-3.17.0-oxnas-tld-1
|-- config-3.17.0-oxnas-tld-1
|-- dts
|   |-- ox820-pogoplug-classic.dtb
|   `-- ox820-pogoplug-pro.dtb -> ox820-pogoplug-classic.dtb
|-- initrd.img-3.17.0-oxnas-tld-1
|-- u-boot.env
|-- u-boot.img
|-- uImage -> uImage-3.17.0-oxnas-tld-1
|-- uImage-3.17.0-oxnas-tld-1
|-- uImage.fdt_appended
|-- uInitrd -> uInitrd-3.17.0-oxnas-tld-1
|-- uInitrd-3.17.0-oxnas-tld-1
`-- vmlinuz-3.17.0-oxnas-tld-1
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
February 10, 2015 09:19AM
Hi Morph027

Thanks for detailed steps!

I have some doubt please clarify them:
Regarding linux-3.16.0-oxnas-tld-1-bodhi.tar.bz2 file:
Q1: Is it sure not typo here? "- untared rootfs from linux-3.16.0-oxnas-tld-1-bodhi.tar.bz2 to it "
It is a kernel tar file not containing rootfs.
Mybe you mean Debian-3.16.... ? (But I cant find Debian-3.16 too...)

Q2: Also a litle confusing: The link shows tld-1 but the file is -tld4- to be download - is this a problem? or should not bother with it?

Q3: Where the mkenvimage is?

Sorry for many question....

Regards,
Robert
shv
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
February 10, 2015 09:25AM
Robert,
Can you please upload the script which you used for step3?

The latest rootfs is Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2 but this is not your problem because at least one of two prerequisites for SATA booting seams to be not met.

You don't need mkenvimage because you can use the serial console to adapt the boot env.

-shv



Edited 5 time(s). Last edit at 02/10/2015 09:37AM by shv.
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
February 10, 2015 01:46PM
Hi shv,

> The latest rootfs is
> Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2 but
> this is not your problem because at least one of
> two prerequisites for SATA booting seams to be not
> met.

Does your SATA u-boot envs setup work with rootfs Debian-3.12.13-oxnas-tld-5-rootfs-bodhi.tar.bz2 (with step 6 in the instruction to set up FDT envs)?

Also should it work with Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2 if you skip step 4 in the instruction (don't make embeded DTB uImage)?

-bodhi
===========================
Wiki
latest Kirkwood kernel builds and rootfs
latest u-boot-kirkwood builds
latest Oxnas kernel builds and rootfs
latest u-boot-oxnas builds
latest MVEBU Armada kernel builds and rootfs
U-Boot & Kernel Booting process
bodhi's u-boot GitHub
bodhi's corner
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS)
February 10, 2015 01:50PM
Hi Shv,

Thank you very much for help!

I started to use a new sata disk. Just to exclude -hypotetical HDD problem-.
This disk is 40GB (attached as sdb.)

big2 b # fdisk -lc

Disk /dev/sdb: 40.0 GB, 40007761920 bytes
64 fej, 32 szektor, 38154 cilinder, összesen 78140160 szektor
Egység: szektorok 1 * 512 = 512 bájt
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Lemezazonosító: 0x00008000

  Eszköz Indítás   Eleje         Vége      Blokkok  Az  Rendszer
/dev/sdb1            2048     4098047     2048000   83  Linux
/dev/sdb2         4098048     5122047      512000   82  Linux lapozó / Solaris
/dev/sdb3         5122048     9316351     2097152   83  Linux

blkid
/dev/sdb1: LABEL="rootfs" UUID="88e16050-70c6-4dac-8972-90bc2fe6197a" TYPE="ext4" 
/dev/sdb3: LABEL="adat" UUID="6126b6ec-df14-4a79-ab52-bfa10ddd9df6" TYPE="ext4"



#more /adat/images/pogo/sata_boot_new/disk_create_shv

#!/bin/sh
disk=/dev/sdb

if [ -z "${disk}" ] ; then
   echo "You must uncomment/set the 'disk' variable"
   exit -1
fi

workarea="/adat/images/pogo/sata_boot_new/boot"

stage1File=$workarea/u-boot-spl.bin

perl <<EOF | dd of="$disk" bs=512
    print "\x00" x 0x1a4;
    print "\x00\x5f\x01\x00";
    print "\x00\xdf\x00\x00";
    print "\x00\x80\x00\x00";
    print "\x00" x (0x1b0 -0x1a4 -12 );
    print "\x22\x80\x00\x00";
    print "\x22\x00\x00\x00";
    print "\x00\x80\x00\x00";
EOF

if [ -f $stage1File ];then
        echo "Writing stage 1"
        dd if=$stage1File    of="$disk" bs=512 seek=34
fi



ls -la  /media/b/rootfs/boot/          -----------This is the HDD mounted on PC
összesen 12316
drwxr-xr-x  3 root root    4096 febr  10 19:36 .
drwxr-xr-x 22 root root    4096 febr  10 15:22 ..
drwxr-xr-x  2 root root    4096 aug    3  2014 dts
-rw-r--r--  1 root root    7033 máj   11  2014 ox820-pogoplug-pro.dtb
-rwxr-xr-x  1 root root   16384 jan    1  1970 u-boot.env
-rw-r--r--  1 root root  525880 aug    3  2014 u-boot.img
-rwxr-xr-x  1 root root   32120 aug    3  2014 u-boot-spl.bin
-rw-r--r--  1 root root 3676848 aug    3  2014 uImage
-rw-r--r--  1 root root 2212156 aug    3  2014 uImage_2.6.31.14_OX820_1.2_shv.Pro
-rw-r--r--  1 root root 2103272 aug    3  2014 uInitrd
-rwxr-xr-x  1 root root 4010416 aug   23 03:22 zImage-3.16.0-oxnas-tld-1


HDD attached to Pogo



U-Boot SPL 2013.10-g3a0f380-dirty (Jul 26 2014 - 14:31:34)
  Boot device: SATA
Attempting to set PLLA to 850 MHz ...
  plla_ctrl0 : 0000020a
  plla_ctrl1 : 00330000
  plla_ctrl2 : 0065008b
  plla_ctrl3 : 000000f1

PLLA Set
Bus 0: OK 
  Device 0: 
** File not found /boot/bootargs.bin **


U-Boot 2013.10-g3a0f380-dirty (Jul 26 2014 - 10:18:57) for OXNAS

DRAM:  128 MiB
IDE:   Bus 0: OK 
  Device 0: Model: ST940210AS Firm: 3.ALC  Ser#: 5QX21TEE
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 38154.3 MB = 37.2 GB (78140160 x 512)
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   
Led:	GREEN
mii0
Main Loop
Hit any key to stop autoboot:  0 
ide - IDE sub-system

Usage:
ide reset - reset IDE controller
ide info  - show available IDE devices
ide device [dev] - show or set current device
ide part [dev] - print partition table of one or all IDE devices
ide read  addr blk# cnt
ide write addr blk# cnt - read/write `cnt' blocks starting at block `blk#'
    to/from memory address `addr'
2212156 bytes read in 369 ms (5.7 MiB/s)
## Booting kernel from Legacy Image at 60500000 ...
   Image Name:   Linux-2.6.31.14_OX820_1.2_shv
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2212092 Bytes = 2.1 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Led:	GREEN

Starting kernel ...

Uncompressing Linux....................................................................................................................................... done, booting the kernel.
[    0.000000] Linux version 2.6.31.14_OX820_1.2_shv (root@plug2) (gcc version 4.4.5 (Debian 4.4.5-8) ) #1 SMP Fri Oct 4 11:38:10 CEST 2013
[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5387f
[    0.000000] CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
[    0.000000] Machine: Oxsemi NAS
[    0.000000] 1 memory region
[    0.000000] Ignoring unrecognised tag 0x00000000
[    0.000000] Memory policy: ECC disabled, Data cache writealloc
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: root=/dev/sda2 rootfstype=ext3 console=ttyS0,115200 mem=128M
[    0.000000] PID hash table entries: 512 (order: 9, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 128MB = 128MB total
[    0.000000] Memory: 125368KB available (3816K code, 304K data, 132K init, 0K highmem)
[    0.000000] Hierarchical RCU implementation.
[    0.000000] NR_IRQS:96
[    0.000000] OX820_RPS_init_irq: interrupts 64 to 96
[    0.010000] Console: colour dummy device 80x30
[    0.010000] console [ttyS0] enabled
[    0.020000] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744)
[    0.230000] Security Framework initialized
[    0.230000] Mount-cache hash table entries: 512
[    0.240000] CPU: Testing write buffer coherency: ok
[    0.240000] Calibrating local timer... 425.50MHz.
[    0.310000] CPU1: Booted secondary processor
[    0.410000] Calibrating delay loop... 339.14 BogoMIPS (lpj=1695744)
[    0.620000] Brought up 2 CPUs
[    0.630000] SMP: Total of 2 processors activated (678.29 BogoMIPS).
[    0.640000] NET: Registered protocol family 16
[    0.640000] Number of DMA channels = 4, version = 4
[    0.650000] Reserving a DMA channel for DirectRAID
[    0.650000] Allocating 389 SRAM generic DMA descriptors

and freeze here.

If I stop it when counter:

OX820 # printenv
¤dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr
autoload=no
baudrate=115200
bootargs=console=ttyS0,115200n8
bootcmd=run dt_bootcmd_ide
bootdelay=3
console=console=ttyS0,115200n8
dt_bootcmd_ide=ide start; run dt_ide_bootcmd; ide stop; reset
dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset
dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr
dt_ide_boot=run dt_ide_load_uimage; run dt_ide_load_initrd; run dt_ide_load_dtb; run dt_bootm
dt_ide_bootcmd=run ide_set_bootargs; run dt_sata_boot
dt_ide_load_dtb=ext2load ide 0:1 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb
dt_ide_load_initrd=ext2load ide 0:1 $uinitrd_addr /boot/uInitrd
dt_ide_load_uimage=ext2load ide 0:1 $uimage_addr /boot/uImage
dt_load_dtb=ext2load usb 0:1 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb
dt_load_initrd=ext2load usb 0:1 $uinitrd_addr /boot/uInitrd
dt_load_uimage=ext2load usb 0:1 $uimage_addr /boot/uImage
dt_sata_boot=ext2load ide 0:1 $uimage_addr /boot/uImage_2.6.31.14_OX820_1.2_shv.Pro; bootm $uimage_addr
dt_usb_boot=run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm
dt_usb_bootcmd=run usb_set_bootargs; run dt_usb_boot
dtb_addr=0x62c00000
ethact=mii0
ethaddr=00:25:31:01:C6:76
ide_set_bootargs=setenv bootargs root=/dev/sda2 rootfstype=ext3 console=ttyS0,115200 mem=128M
if_netconsole=ping $serverip
ipaddr=192.168.0.100
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
preboot_nc=run if_netconsole start_netconsole
sata_bootcmd=run usb_set_bootargs; run sata_boot
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version
stderr=serial
stdin=serial
stdout=serial
uimage_addr=0x60500000
uinitrd_addr=0x60e00000
usb_device=0:1
usb_set_bootargs=setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootdelay=10

Environment size: 1898/16380 bytes
OX820 #

There is a strange character beginning in the first row. It looks like an error.
Author:

Your Email:


Subject:


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