Welcome! Log In Create A New Profile

Advanced

Linux Kernel 5.4.268 Oxnas (OX820) Pogo V3 package and Debian rootfs

Posted by bodhi 
Next challenge: trying to get apcupsd working....

I have a small APC ups with USB connection. Connecting it to the pogo it shows up in lsusb:
Bus 001 Device 012: ID 051d:0002 American Power Conversion Uninterruptible Power Supply

dmesg
[84001.411456] usb 1-1.3.1: new low-speed USB device number 12 using oxnas-ehci
[84001.621964] usb 1-1.3.1: New USB device found, idVendor=051d, idProduct=0002
[84001.629562] usb 1-1.3.1: New USB device strings: Mfr=3, Product=1, SerialNumber=2
[84001.638794] usb 1-1.3.1: Product: Back-UPS CS 650 FW:817.v6.I USB FW:v6
[84001.646417] usb 1-1.3.1: Manufacturer: American Power Conversion
[84001.654548] usb 1-1.3.1: SerialNumber: XXXXXXXXXXX
[[b]84003.224967] hid-generic 0003:051D:0002.0005: device has no listeners, quitting[/b]

apctest results
root@xxxxxxxxx:~# apctest
2015-06-30 22:59:59 apctest 3.14.10 (13 September 2011) debian
Checking configuration ...
Attached to driver: usb
sharenet.type = Network & ShareUPS Disabled
cable.type = USB Cable
mode.type = USB UPS Driver
Setting up the port ...
apctest FATAL ERROR in linux-usb.c at line 609
Cannot find UPS device --
For a link to detailed USB trouble shooting information,
please see http://www.apcupsd.com/support.html.
apctest error termination completed

It seems to make this work kernel needs hiddev device support to be included. Next release maybe?
Re: Linux Kernel 4.0 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
June 30, 2015 05:46PM
schnee,

> It seems to make this work kernel needs hiddev
> device support to be included. Next release maybe?

Sure, I will make sure hiddev support in next release (soon to be).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
July 03, 2015 08:44AM
Kernel linux-4.1.0-oxnas-tld-1 package was uploaded. Please see 1st post for download link.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
July 12, 2015 05:04PM
bodhi Wrote:
-------------------------------------------------------
> Updated 12 Feb 2015:
>
> Kernel linux-3.18.5-oxnas-tld-1 package was
> uploaded. The following features are new in this
> version:
>
Bodhi,

I supposed you compiled and built the Kernel linux above. If so, do you still have a copy of the linux kernel .config file that I can download from? My preference is for the above version. However, the latest kernel version will do, too.
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
July 12, 2015 05:12PM
@habibie,

> > Updated 12 Feb 2015:
> >
> > Kernel linux-3.18.5-oxnas-tld-1 package was
> > uploaded. The following features are new in
> >

The Dropbox download link is right below the description. The .config file is in the tarball.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
July 13, 2015 04:59PM
Got it. Thank you Bodhi.
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
August 06, 2015 04:43PM
1st of all: Thank you Bodhi for the 4.1 kernel and the hiddev support. Now my pogo can handle the UPS next to i properly :)


I also created an "installer". With that anybody can prepare a sata harddrive with which the pogo can boot from its sata port. Unfortunatelly to reach the sata port the pogo has to be opened. As these devices are out of warranty anyway this won't hurt anyone too much (i hope)

The installer deletes all data from the hdd and creates new partitions. On 1st boot it uses 3.18.5 kernel, but after login it will replace it with 4.1. More details in the readme file and in the actual installer script.

The installer:
https://drive.google.com/file/d/0B421D9UDv6yLQ1hLSXJyM0VXT28

Ákos
Akos, many thanks, I just booted my Medion STS212 system with your installer into Debian with kernel 4.1.

FileDescriptor
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
August 16, 2015 04:17PM
@FileDescriptor,

> Akos, many thanks, I just booted my Medion STS212
> system with your installer into Debian with kernel
> 4.1.
>
> FileDescriptor

Cool! if you have serial console, please post the entire boot log. If, you don't, please post the output of dmesg.

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

sure, here you are. Please excuse my typo, my box is a MEDION® LIFE® P89626 (MD 86407) which is "apparently manufactured by MitraStar Technology Corp. which belongs to Unizyx which belong to ZyXEL. The design name is STG-212" (taken from http://wiki.openwrt.org/toh/medion/md86587).

I've replaced the 1,5TB disk to put in into a pure USB external case to replace it with an old 2,5" 40GB only, just to play with it. I came across this site because I'd like to have Debian on it, knowing that support from ALARM had been dropped a long time ago, not expecting to find anything. But OpenWrt supports this box for a few months now, so I started to look around and found the Pogo one from which I knew that at least a "nopci" image would be compatible with my box from my horrible 3.1.10+ experiences.

I need to fine tune the OS a bit, ignoring the UBI0 issue below. I guess I must not tamper with NAND from this image, but as long it can directly boot from SATA this is completely fine with me. Many thanks for your image, making this possible!

I used "stress" tool a bit to put some load on the box - and it was stable so far.

Here is console output (faked MAC address), if you want to do me some more tests please drop a note:

U-Boot 2013.10-ga72eb8f-dirty (Feb 19 2014 - 15:21:12) for OXNAS

DRAM:  128 MiB
IDE:   Bus 0: OK 
  Device 0: Model: ST940210AS Firm: 3.ALC  Ser#: 5QX33HCL
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 38154.3 MB = 37.2 GB (78140160 x 512)
NAND:  128 MiB
reading u-boot.env
In:    serial
Out:   serial
Err:   serial
Net:   mii0
## Error: "safeboot" not defined
Hit any key to stop autoboot:  0 
4488520 bytes read in 731 ms (5.9 MiB/s)
7033 bytes read in 44 ms (155.3 KiB/s)
magic:			0xd00dfeed
totalsize:		0x1b79 (7033)
off_dt_struct:		0x38
off_dt_strings:		0x18d4
off_mem_rsvmap:		0x28
version:		17
last_comp_version:	16
boot_cpuid_phys:	0x0
size_dt_strings:	0x2a5
size_dt_struct:		0x189c
number mem_rsv:		0x0

## Booting kernel from Legacy Image at 60000000 ...
   Image Name:   Linux-4.1.0-oxnas-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4488456 Bytes = 4.3 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 61000000
   Booting using the fdt blob at 0x61000000
   Loading Kernel Image ... OK
   Loading Device Tree to 67e26000, end 67e2ab78 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.1.0-oxnas-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #3 SMP PREEMPT Wed Jul 1 05:11:47 PDT 2015
[    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 11 pages/cpu @c7edc000 s15456 r8192 d21408 u45056
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200n8 root=/dev/sda2 rootfstype=ext4 ubi.mtd=data,512
[    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: 120984K/131072K available (6235K kernel code, 275K rwdata, 1852K rodata, 200K init, 237K bss, 10088K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 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 - 0xc07edec8   (8088 kB)
[    0.000000]       .init : 0xc07ee000 - 0xc0820000   ( 200 kB)
[    0.000000]       .data : 0xc0820000 - 0xc0864fa0   ( 276 kB)
[    0.000000]        .bss : 0xc0864fa0 - 0xc08a06a0   ( 238 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.000000] clocksource rps_clocksource_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 19112603332 ns
[    0.000010] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 21474835200ns
[    0.000176] Console: colour dummy device 80x30
[    0.000209] Calibrating delay loop... 319.48 BogoMIPS (lpj=1597440)
[    0.050032] pid_max: default: 32768 minimum: 301
[    0.050191] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.050209] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.051082] Initializing cgroup subsys net_cls
[    0.051148] CPU: Testing write buffer coherency: ok
[    0.051548] Setting up static identity map for 0x60008220 - 0x60008258
[    0.170147] Brought up 2 CPUs
[    0.170170] SMP: Total of 2 processors activated (638.97 BogoMIPS).
[    0.171151] devtmpfs: initialized
[    0.176432] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.176670] prandom: seed boundary self test passed
[    0.181352] prandom: 100 self tests passed
[    0.181383] pinctrl core: initialized pinctrl subsystem
[    0.182312] NET: Registered protocol family 16
[    0.182878] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.210009] cpuidle: using governor ladder
[    0.240005] cpuidle: using governor menu
[    0.245160] gpio-oxnas 44000000.gpio: at address c8848000
[    0.245491] gpio-oxnas 44100000.gpio: at address c884a000
[    0.246087] pinctrl-oxnas pinctrl: initialized OX820 pinctrl driver
[    0.259456] vgaarb: loaded
[    0.260037] SCSI subsystem initialized
[    0.260930] usbcore: registered new interface driver usbfs
[    0.261045] usbcore: registered new interface driver hub
[    0.261199] usbcore: registered new device driver usb
[    0.261419] pps_core: LinuxPPS API ver. 1 registered
[    0.261432] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.261480] PTP clock support registered
[    0.263260] cfg80211: Calling CRDA to update world regulatory domain
[    0.263790] Switched to clocksource rps_clocksource_timer
[    0.283555] NET: Registered protocol family 2
[    0.284544] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.284590] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.284625] TCP: Hash tables configured (established 1024 bind 1024)
[    0.284725] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.284769] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.285056] NET: Registered protocol family 1
[    0.285542] RPC: Registered named UNIX socket transport module.
[    0.285562] RPC: Registered udp transport module.
[    0.285573] RPC: Registered tcp transport module.
[    0.285585] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.287380] futex hash table entries: 512 (order: 2, 16384 bytes)
[    0.287459] Initialise system trusted keyring
[    0.300592] zpool: loaded
[    0.300618] zbud: loaded
[    0.306147] NFS: Registering the id_resolver key type
[    0.306214] Key type id_resolver registered
[    0.306227] Key type id_legacy registered
[    0.306268] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.306288] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.307238] fuse init (API version 7.23)
[    0.308894] Key type big_key registered
[    0.314877] alg: No test for stdrng (krng)
[    0.368235] Key type asymmetric registered
[    0.368271] Asymmetric key parser 'x509' registered
[    0.368409] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.368445] io scheduler noop registered
[    0.368465] io scheduler deadline registered
[    0.368819] io scheduler cfq registered (default)
[    0.369528] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.371182] console [ttyS0] disabled
[    0.371276] 44200000.uart: ttyS0 at MMIO 0x44200000 (irq = 6, base_baud = 390625) is a 16550A
[    0.899750] console [ttyS0] enabled
[    0.913927] loop: module loaded
[    0.918999] scsi host0: sata_oxnas
[    0.922920] ata1: SATA max UDMA/133 irq 7
[    0.927180] ox820sata: reseting SATA core
[    0.928122] nand: Could not find valid ONFI parameter page; aborting
[    0.928166] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    0.928171] nand: Hynix NAND 128MiB 3,3V 8-bit
[    0.928179] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.928197] Scanning device for bad blocks
[    1.012377] 2 ofpart partitions found on MTD device 41000000.nand
[    1.018444] Creating 2 MTD partitions on "41000000.nand":
[    1.023843] 0x000000000000-0x000000e00000 : "boot"
[    1.030343] 0x000000e00000-0x000008000000 : "data"
[    1.037626] stmmaceth 40400000.ethernet: no reset control found
[    1.043560] stmmac - user ID: 0x12, Synopsys ID: 0x35
[    1.048586]  Ring mode enabled
[    1.051635]  DMA HW capability register supported
[    1.056138]  Enhanced/Alternate descriptors
[    1.060464] 	Enabled extended descriptors
[    1.064465]  RX Checksum Offload Engine supported (type 2)
[    1.069921]  TX Checksum insertion supported
[    1.074178]  Wake-Up On Lan supported
[    1.077813]  Enable RX Mitigation via HW Watchdog Timer
[    1.086804] libphy: stmmac: probed
[    1.090257] eth0: PHY ID 001cc915 at 0 IRQ POLL (stmmac-0:00) active
[    1.096696] eth0: PHY ID 001cc915 at 7 IRQ POLL (stmmac-0:07)
[    1.102545] PPP generic driver version 2.4.2
[    1.107407] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.113953] ehci-pci: EHCI PCI platform driver
[    1.118904] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    1.124439] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    1.132300] oxnas-ehci 40200100.ehci: irq 10, io mem 0x40200100
[    1.150602] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    1.156899] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.163740] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.170949] usb usb1: Product: EHCI Host Controller
[    1.175802] usb usb1: Manufacturer: Linux 4.1.0-oxnas-tld-1 ehci_hcd
[    1.182136] usb usb1: SerialNumber: 40200100.ehci
[    1.187824] hub 1-0:1.0: USB hub found
[    1.191695] hub 1-0:1.0: 2 ports detected
[    1.196679] usbcore: registered new interface driver cdc_acm
[    1.202403] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.210503] usbcore: registered new interface driver cdc_wdm
[    1.216391] usbcore: registered new interface driver usb-storage
[    1.222645] usbcore: registered new interface driver usbserial
[    1.228538] usbcore: registered new interface driver usbserial_generic
[    1.235138] usbserial: USB Serial support registered for generic
[    1.241569] mousedev: PS/2 mouse device common for all mice
[    1.247296] i2c /dev entries driver
[    1.252206] hidraw: raw HID events driver (C) Jiri Kosina
[    1.257840] usbcore: registered new interface driver usbhid
[    1.263475] usbhid: USB HID core driver
[    1.269168] NET: Registered protocol family 10
[    1.275343] sit: IPv6 over IPv4 tunneling driver
[    1.281172] NET: Registered protocol family 17
[    1.285783] Key type dns_resolver registered
[    1.291614] Loading compiled-in X.509 certificates
[    1.300840] Key type encrypted registered
[    1.305651] ubi0: attaching mtd1
[    1.315320] __nand_correct_data: uncorrectable ECC error
[    1.320762] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 82:0, read only 64 bytes, retry
[    1.332057] __nand_correct_data: uncorrectable ECC error
[    1.337354] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 82:0, read only 64 bytes, retry
[    1.348625] __nand_correct_data: uncorrectable ECC error
[    1.353958] ubi0 warning: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 82:0, read only 64 bytes, retry
[    1.365232] __nand_correct_data: uncorrectable ECC error
[    1.370562] ubi0 error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 82:0, read 64 bytes
[    1.380556] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.1.0-oxnas-tld-1 #3
[    1.387397] Hardware name: PLXTECH NAS782X SoC (Flattened Device Tree)
[    1.393940] [<c0010b24>] (unwind_backtrace) from [<c000cf28>] (show_stack+0x10/0x14)
[    1.401684] [<c000cf28>] (show_stack) from [<c05eb3c8>] (dump_stack+0x80/0xc8)
[    1.408885] [<c05eb3c8>] (dump_stack) from [<c03a1e5c>] (ubi_io_read+0x118/0x2f4)
[    1.416366] [<c03a1e5c>] (ubi_io_read) from [<c03a2280>] (ubi_io_read_ec_hdr+0x44/0x23c)
[    1.424450] [<c03a2280>] (ubi_io_read_ec_hdr) from [<c03a6f54>] (ubi_attach+0x130/0x1574)
[    1.432622] [<c03a6f54>] (ubi_attach) from [<c039bce8>] (ubi_attach_mtd_dev+0x608/0xc64)
[    1.440706] [<c039bce8>] (ubi_attach_mtd_dev) from [<c08082f4>] (ubi_init+0x1e4/0x2bc)
[    1.448596] [<c08082f4>] (ubi_init) from [<c0009784>] (do_one_initcall+0x80/0x1d4)
[    1.456163] [<c0009784>] (do_one_initcall) from [<c07eed54>] (kernel_init_freeable+0x110/0x1d4)
[    1.464852] [<c07eed54>] (kernel_init_freeable) from [<c05e908c>] (kernel_init+0x8/0xec)
[    1.472926] [<c05e908c>] (kernel_init) from [<c000a4e8>] (ret_from_fork+0x14/0x2c)
[    1.480524] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    1.492183] ata1.00: ATA-7: ST940210AS, 3.ALC, max UDMA/100
[    1.497735] ata1.00: 78140160 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    1.508835] ata1.00: configured for UDMA/100
[    1.513656] scsi 0:0:0:0: Direct-Access     ATA      ST940210AS       C    PQ: 0 ANSI: 5
[    1.531399] sd 0:0:0:0: [sda] 78140160 512-byte logical blocks: (40.0 GB/37.2 GiB)
[    1.540039] sd 0:0:0:0: [sda] Write Protect is off
[    1.545134] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.607656]  sda: sda1 sda2 sda3
[    1.613573] sd 0:0:0:0: [sda] Attached SCSI disk
[    1.628469] ubi0: scanning is finished
[    1.632345] ubi0 error: ubi_read_volume_table: the layout volume was not found
[    1.640440] ubi0 error: ubi_attach_mtd_dev: failed to attach mtd1, error -22
[    1.647493] UBI error: cannot attach mtd1
[    1.686804] EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
[    1.694745] VFS: Mounted root (ext4 filesystem) readonly on device 8:2.
[    1.721848] devtmpfs: mounted
[    1.725135] Freeing unused kernel memory: 200K (c07ee000 - c0820000)
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[    3.470072] cfg80211: Calling CRDA to update world regulatory domain
[....] Starting the hotplug events dispatcher: udevd[    3.874685] udevd[187]: starting version 175
. ok 
[ ok ] Synthesizing the initial hotplug events...done.
[ ok ] Waiting for /dev to be fully populated...done.
[....] Setting parameters of disc: (none)[    6.630100] cfg80211: Calling CRDA to update world regulatory domain
[ ok                                     .
[    6.934796] EXT4-fs (sda2): re-mounted. Opts: (null)
[....] Checking root file system...fsck from util-linux 2.20.1
rootfs: clean, 36321/262144 files, 356304/1048576 blocks
done.
[    7.319531] EXT4-fs (sda2): re-mounted. Opts: errors=remount-ro
[ ok ] Cleaning up temporary files... /tmp /lib/init/rw.
[ ok ] Loading kernel modules...done.
[    9.231206] random: nonblocking pool is initialized
[    9.800281] cfg80211: Calling CRDA to update world regulatory domain
[....] Activating lvm and md swap...[   11.333521] Adding 524284k swap on /swapfile1.  Priority:-1 extents:3 across:540668k FS
done.
[....] Checking file systems...fsck from util-linux 2.20.1
home: clean, 11/2179072 files, 149030/8714591 blocks
done.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[   12.970119] cfg80211: Calling CRDA to update world regulatory domain
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables ...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.2.2
Copyright 2004-2011 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/74:f0:6d:xx:xx:xx
Sending on   LPF/eth0/74:f0:xx:xx:xx:xx
Sending on   Socket/fallback
DHCPREQUEST on eth0 to 255.255.255.255 port 67
[   16.140003] cfg80211: Calling CRDA to update world regulatory domain
[   18.180157] stmmaceth 40400000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[   19.300016] cfg80211: Calling CRDA to update world regulatory domain
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from 192.168.178.1
bound to 192.168.178.76 -- renewal in 393138 seconds.
[   22.460052] cfg80211: Calling CRDA to update world regulatory domain
done.
[ ok ] Starting rpcbind daemon....
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
[   24.783572] zram: Created 4 device(s)
[   24.840998] zram0: detected capacity change from 0 to 23269376
Setting up swapspace version 1, size = 22720 KiB
no label, UUID=66c55381-2c3f-423b-aca4-9c042f3fe775
[   24.920609] Adding 22720k swap on /dev/zram0.  Priority:10 extents:1 across:22720k SSFS
[   24.933204] zram1: detected capacity change from 0 to 23269376
Setting up swapspace version 1, size = 22720 KiB
no label, UUID=8e1d4cee-75cf-47ff-81f2-4a8aa6db9adf
[   24.965273] Adding 22720k swap on /dev/zram1.  Priority:10 extents:1 across:22720k SSFS
[   24.975331] zram2: detected capacity change from 0 to 23269376
Setting up swapspace version 1, size = 22720 KiB
no label, UUID=54916f10-f6a8-4fab-a802-8f00e0267d1c
[   25.014320] Adding 22720k swap on /dev/zram2.  Priority:10 extents:1 across:22720k SSFS
[   25.025904] zram3: detected capacity change from 0 to 23269376
Setting up swapspace version 1, size = 22720 KiB
no label, UUID=605692a9-c70a-4f8d-a0ba-67df7af58126
[   25.068244] Adding 22720k swap on /dev/zram3.  Priority:10 extents:1 across:22720k SSFS
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[   25.620098] cfg80211: Calling CRDA to update world regulatory domain
[ ok ] Starting rpcbind daemon...[....] Already running..
[ ok ] Starting NTP server: ntpd.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1834 (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.
1837 (klogd)
. ok 
setting : hdparm -S 120 /dev/sda
  -S: bad/missing standby-interval value (0..255)
[   28.780034] cfg80211: Calling CRDA to update world regulatory domain

Debian GNU/Linux 7 debian ttyS0

debian login: [   31.940021] cfg80211: Calling CRDA to update world regulatory domain
[   35.100014] cfg80211: Exceeded CRDA call max attempts. Not calling CRDA

Many thanks again!

FileDescriptor
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
August 17, 2015 03:30PM
@FileDescriptor,

Thanks! it looks good.

And yes about NAND error. I guess your u-boot envs have some old settings that causes mtd1 to be accessed somehow. But you're actually not using NAND at all, booting from external HDD.

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

I had some free time and took my Silverstone DC01 (an OX820 device too) and compiled 4.1.6 kernel for it.

And - once again run in trouble with rtc because this kernel does not power off this device properly. I suppose the processor needs some spesific bits to be set to make it power off. Does anyone know how this is done?

--
tilator
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
August 30, 2015 03:09PM
tilator,

> I had some free time and took my Silverstone DC01
> (an OX820 device too) and compiled 4.1.6 kernel
> for it.
>
> And - once again run in trouble with rtc because
> this kernel does not power off this device
> properly.

Can you describe the rtc problem you have? does the DC01 have RTC?

The Pogo V3 (so are many other plugs such as Dockstar, GoFlex Net) can not be powered down completely. After you shutdown, note that Ethernet LED is still flashing, and if you have a USB hub, it still draws power.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
> Can you describe the rtc problem you have? does
> the DC01 have RTC?
>
> The Pogo V3 (so are many other plugs such as
> Dockstar, GoFlex Net) can not be powered down
> completely. After you shutdown, note that Ethernet
> LED is still flashing, and if you have a USB hub,
> it still draws power.

DC01 has Dallas ds1307 rtc.

Trouble is, if the device is not powered off properly it will not find the rtc at next boot. It gives error code -5.

The same error remains even if the device is taken completely off power (plugged out) and booted again after some seconds. I have not tryed waiting a *long* period before booting again.

But - the error will disappear by booting it up once with the old original 2.6.x.x kernel. So I suppose this old kernel must do some kind of reset before utilizing rtc.

BTW - this device will power properly off (ethernet leds and everything off) with the original kernel. So, I suppose it might be possible for those other oxnas devices too.



Edited 1 time(s). Last edit at 09/01/2015 09:36AM by tilator.
I'm a little lost.

Years back i bought a v3. Installed arch on it (old now but still on USB stick).

Figured that for more USB support a newer kernel (thus u-boot needed to be installed).

So now i picked up where i left a few years back.

I have serial on it. Booted the old arch and followed the instructions to update u-boot.

Arch did not have the FW-toolset so i figured it would work, the mac-address could be in a later stage?

During boot i can see the new 2013-loader but whenever i start my freshly created rootfs-stick, it loads and suggest to decompress and starts the kernel... but never does that.



## Booting kernel from Legacy Image at 60500000 ...
Image Name: Linux-3.3.17.0-oxnas-tld-1
Created: 2015-10-05 21:38:40 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 67c4b000, end 67e27fd4 ... OK
Loading Device Tree to 67c46000, end 67c4ab74 ... OK

Led: GREEN

Starting kernel ...

Uncompressing Linux... done, booting the kernel.


Any idea? I'm confused at step 4, about DTB, note 2 referring to A6. bzzzzt

Thanks,

Martijn
Re: Linux Kernel 3.14.0 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
October 05, 2015 07:59PM
godfather007 Wrote:
-------------------------------------------------------
> I'm a little lost.
>
> Years back i bought a v3. Installed arch on it
> (old now but still on USB stick).
>
> Figured that for more USB support a newer kernel
> (thus u-boot needed to be installed).
>
> So now i picked up where i left a few years back.
>
> I have serial on it. Booted the old arch and
> followed the instructions to update u-boot.
>
> Arch did not have the FW-toolset so i figured it
> would work, the mac-address could be in a later
> stage?
>
> During boot i can see the new 2013-loader but
> whenever i start my freshly created rootfs-stick,
> it loads and suggest to decompress and starts the
> kernel... but never does that.
>
>
>
> ## Booting kernel from Legacy Image at 60500000
> ...
> Image Name: Linux-3.3.17.0-oxnas-tld-1
> Created: 2015-10-05 21:38:40 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 67c4b000, end 67e27fd4 ...
> OK
> Loading Device Tree to 67c46000, end 67c4ab74
> ... OK
>
> Led: GREEN
>
> Starting kernel ...
>
> Uncompressing Linux... done, booting the kernel.
>
>
> Any idea? I'm confused at step 4, about DTB, note
> 2 referring to A6. bzzzzt
>
> Thanks,
>
> Martijn

You need to regenerate uImage file (your step 4 was performed incorrectly). Mount your USB on another Linux box. And then:

cd /media/sdb1/boot
mkimage -A arm -O linux -T kernel -C none -a 0x60008000 -e 0x60008000 -n Linux-3.17.0-oxnas-tld-1 -d vmlinuz-3.17.0-oxnas-tld-1 uImage

Or simply rereate the 3.17 rootfs and don't modify uImage.

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

i recreated the stick a few times (with and without altering the uImage).
It just comes to this point:
******
Starting kernel ...

Uncompressing Linux... done, booting the kernel.
******

I do have a classic v3. Is it maybe the uboot looks for the PRO-dtb?


bodhi Wrote:
-------------------------------------------------------
>
> You need to regenerate uImage file (your step 4
> was performed incorrectly). Mount your USB on
> another Linux box. And then:
>
>
> cd /media/sdb1/boot
> mkimage -A arm -O linux -T kernel -C none -a
> 0x60008000 -e 0x60008000 -n
> Linux-3.17.0-oxnas-tld-1 -d
> vmlinuz-3.17.0-oxnas-tld-1 uImage
>
>
> Or simply rereate the 3.17 rootfs and don't modify
> uImage.



Edited 2 time(s). Last edit at 10/06/2015 03:03AM by godfather007.
So i did not save any FW-env vars from the beginning.

Got the stick back in, to experiment with the uEnv.txt file.

But i saw that the initial booting process got something in motion.

On the root of the stick all the other directories have been created like tmp/usr/bin etc.

I just never saw it on the serial port. So it looks like working.

Have to put the ethaddr var in the uEnv.txt & interfaces?
Re: Linux Kernel 3.14.0 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
October 06, 2015 11:51AM
If you would like confirmation, post the entire serial boot log here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
That would be:

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 2013.10-tld-4 (Sep 08 2014 - 19:43:38) for OXNAS

DRAM: 128 MiB
NAND: 128 MiB
In: serial
Out: serial
Err: serial
Net:
Led: GREEN
mii0
Main Loop
Hit any key to stop autoboot: 0
(Re)start 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
4102704 bytes read in 408 ms (9.6 MiB/s)
1953812 bytes read in 300 ms (6.2 MiB/s)
7029 bytes read in 237 ms (28.3 KiB/s)
## Booting kernel from Legacy Image at 60500000 ...
Image Name: Linux-3.17.0-oxnas-tld-1
Created: 2014-11-01 7:16:44 UTC
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
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 67c4b000, end 67e27fd4 ... OK
Loading Device Tree to 67c46000, end 67c4ab74 ... OK

Led: GREEN

Starting kernel ...

Uncompressing Linux... done, booting the kernel.


It is a classic, not a pro.
I tried a differrent USB stick, ext3 even tried the bootflag for a change.
But like i noticed, the OS-layout is found ( like the USR, BIN, TMP) dir after the first boot.
So it looks like it's mounted.

I found another thread, about someone who had the same issue.
He had to use:
OX820> printenv preboot
OX820> saveenv
OX820> reset

But it did not work out either.
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
October 06, 2015 04:07PM
godfather007,

Everything looks fine so far. It's probably your envs are not set correctly. Pls interrupt serial console and get the ouput of

printenv

One more thing to check: make sure that you have created the rootfs while log in as root user or did sudo su (sudo alone won't work).

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



Edited 1 time(s). Last edit at 10/06/2015 11:28PM by bodhi.
I gathered the information, pushed the preview button.... and went to bed :-)

It's the default environment settings:

OX820> printenv
autoload=no
baudrate=115200
bootargs=console=ttyS0,115200n8
bootcmd=run dt_bootcmd_usb
bootdelay=10
console=console=ttyS0,115200n8
dt_bootcmd_usb=usb start; run dt_usb_bootcmd; usb stop; reset
dt_bootm=bootm $uimage_addr $uinitrd_addr $dtb_addr
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:02:84:27
if_netconsole=ping $serverip
ipaddr=192.168.0.222
mtdids=nand0=41000000.nand
mtdparts=mtdparts=41000000.nand:14m(boot),-(data)
preboot_nc=run if_netconsole start_netconsole
serverip=192.168.0.220
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: 1192/131068 bytes
OX820>




Edited 1 time(s). Last edit at 10/07/2015 01:03AM by godfather007.
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
October 07, 2015 01:48AM
godfather007,

OK, your u-boot envs look good. So the remaining possible culprit is the rootfs. Go ahead and recreate the rootfs on USB followoing the instruction in section:

Quote

Updated 02 Nov 2014:

Rootfs Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2 was uploaded.

But remember to:

- Log in as root or do "sudo su" before doing anything
- create only one Ext3 partition on USB
- skip step 4 (you're booting with separate DTB)
- copy the /boot/dts/ox820-pogoplug-classic.dtb to /boot/dts/ox820-pogoplug-pro.dtb

Boot with this and post serial log if you still have problem.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Geezz... the dtb file... what is it used for anyway?


The 850Mhz gets the thing kind of 'smelly'...


Thanks, it works!



Edited 1 time(s). Last edit at 10/08/2015 03:32AM by godfather007.
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
October 08, 2015 03:32AM
Sort of HAL interpreter


Nice website by the way. Thanks!



Edited 1 time(s). Last edit at 10/08/2015 03:36AM by godfather007.
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
October 08, 2015 12:41PM
I want to run a cron on the PogoPro to operate a USB relay. I have the relay working from the command line, but there is apparently no cron daemon or service running/available. Before I mess things up by trying to install something, I could use some info on how cron is setup in Bodhi's debian file system. I see there are cron.weekly and cron.daily entries in /etc, so I'm assuming something is happening. I'm running Bodhi's 4,1 kernel and the 3.17 Debian file system.

I think a Pogo could be a pretty good home automation platform, especially if you have them sitting around. I can post on the USB relay when I get a little further along.
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
October 08, 2015 02:38PM
As i remember cron is not installed by default, run "apt-get install cron" as root to install it.
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
October 08, 2015 02:48PM
Thanks, that's what I figured. Installed OK and now will start playing.
Hey,

I'm a real newbie in the linux world. I bought a Pogoplug V3 couple of years ago and now I want to turn it into a nas server.
But the description I've found is kinda complicated for me.
So first of all I have to install uboot with this manual?: http://forum.doozan.com/read.php?3,16017
And afterwards keep on going with the manual posted on page 1 of this thread?
Sorry for this stupid question.
Sorry, you can't reply to this topic. It has been closed.