Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) December 05, 2014 02:53PM |
Admin Registered: 13 years ago Posts: 18,997 |
> 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
effendi
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) December 06, 2014 02:57AM |
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 03:04AM |
Registered: 10 years ago Posts: 12 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) December 06, 2014 03:40AM |
Admin Registered: 13 years ago Posts: 18,997 |
preboot_nc=run if_netconsole start_netconsole
preboot=run preboot_nc
effendi
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) December 06, 2014 06:34AM |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) December 06, 2014 02:43PM |
Admin Registered: 13 years ago Posts: 18,997 |
fw_printenv
effendi
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) December 06, 2014 05: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 06:19PM |
Admin Registered: 13 years ago Posts: 18,997 |
fw_setenv preboot
fw_setenv preboot 'run preboot_nc'
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) January 30, 2015 09:23AM |
Registered: 10 years ago Posts: 1,037 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) January 30, 2015 10:27AM |
Registered: 11 years ago Posts: 214 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) February 02, 2015 07:42AM |
Registered: 10 years ago Posts: 1,037 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) February 06, 2015 03:02AM |
Registered: 10 years ago Posts: 64 |
./nandwrite /dev/mtd0 uboot.spl.2013.10.ox820.850mhz.mtd0.img
/usr/sbin/flash_erase /dev/mtd0 0x0 6
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) February 06, 2015 04:07AM |
Admin Registered: 13 years ago Posts: 18,997 |
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
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) February 06, 2015 05:06AM |
Registered: 10 years ago Posts: 64 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) February 06, 2015 01:14PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) February 06, 2015 04:45PM |
Registered: 10 years ago Posts: 64 |
$ 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
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) February 06, 2015 05:29PM |
Admin Registered: 13 years ago Posts: 18,997 |
Failed to read valid environment from disk, using built-in default
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) February 07, 2015 12:44AM |
Registered: 9 years ago Posts: 461 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) February 07, 2015 01:36AM |
Registered: 11 years ago Posts: 214 |
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
#!/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 fiStep4: Boot with serial cable connected and adapt the boot-env settings to your needs
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) February 07, 2015 01:59AM |
Admin Registered: 13 years ago Posts: 18,997 |
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.
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) February 07, 2015 03:02AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) February 08, 2015 02:28AM |
Registered: 9 years ago Posts: 461 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) February 09, 2015 03:21AM |
Registered: 10 years ago Posts: 64 |
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
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) February 09, 2015 10:20AM |
Registered: 11 years ago Posts: 214 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) February 09, 2015 12:53PM |
Registered: 10 years ago Posts: 64 |
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
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"
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
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) February 09, 2015 02:01PM |
Registered: 10 years ago Posts: 12 |
dd if=u-boot-spl.bin of="$disk" bs=512 seek=34
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
. |-- 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 08:19AM |
Registered: 10 years ago Posts: 64 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) February 10, 2015 08:25AM |
Registered: 11 years ago Posts: 214 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) February 10, 2015 12:46PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: 2013.10 U-Boot for Pogoplug V3 (OXNAS) February 10, 2015 12:50PM |
Registered: 10 years ago Posts: 64 |
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
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
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 #