Welcome! Log In Create A New Profile

Advanced

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

Posted by bodhi 
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
October 21, 2015 12:29PM
Me Wrote:
-------------------------------------------------------
> 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.

Yes. You could install Debian rootfs first, and then u-boot. Or do both at the same time. Serial console is highly recommended.

-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)
November 29, 2015 10:54PM
I'm trying to reinstall my PogoPlug Pro, and I'm having difficulty getting network access to it. I installed the 3.17 rootfs to a 2TB drive, and the system seems to be booting successfully. If I pull the drive and connect it to another system, I can see the /var/log/dmesg file being updated correctly. However, I can't seem to find out the IP address of the system. I don't have a serial console, and I don't know what IP address this system is writing to for a netconsole. (I set it up years ago, and it hasn't needed maintenance until now).

Any suggestions so I can login via ssh?
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
November 30, 2015 12:29AM
agiorgio Wrote:
-------------------------------------------------------
> I'm trying to reinstall my PogoPlug Pro, and I'm
> having difficulty getting network access to it. I
> installed the 3.17 rootfs to a 2TB drive, and the
> system seems to be booting successfully. If I
> pull the drive and connect it to another system, I
> can see the /var/log/dmesg file being updated
> correctly. However, I can't seem to find out the
> IP address of the system. I don't have a serial
> console, and I don't know what IP address this
> system is writing to for a netconsole. (I set it
> up years ago, and it hasn't needed maintenance
> until now).
>
> Any suggestions so I can login via ssh?

When you use an existing rootfs to boot another identical box, you will need to make sure the udev rules for persistent-net are removed or modified. This usually causes network problem because of conflicting MAC address.

To make it really simple, remove these 2 files (or rename them to *.save so that they will be regenerated by udev using the new MAC address) before mounting to the other box:
/etc/udev/rules.d/70-persistent-net.rules
/lib/udev/rules.d/75-persistent-net-generator.rules

To reuse the rootfs for many boxes, it is best to modify them (instead of removing). If you want to do that, pls post back for instruction.

-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)
November 30, 2015 06:09AM
Well, I'm not trying to reuse an existing rootfs. I have a a Kirkwood PogoPlug on my network already, but that's running Debian Jesse. The oxnas one is supposed to be elsewhere for off-site backup purposes.

I renamed the existing two udev rules files, but they aren't getting regenerated.

I looked at the dmesg file, and there's no mention of any network device. The log stops after the rootfs is mounted and the journal checked.

I also put an entry in rc,local to dump the contents of fw_printenv, and there's barely anything there:

bootcmd=bootp; setenv bootargs root=/dev/nfs nfsroot=${serverip}:${rootpath} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}::off; bootm
bootdelay=5
baudrate=115200
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
November 30, 2015 12:48PM
Ah! I misunderstood this

If I pull the drive and connect it to another system, I can see the /var/log/dmesg file being updated correctly


If you u-boot envs are like that then it surely won't boot. If it did boot then the correct envs were set temporarily during u-boot. Which u-boot is on this box?

You should check this rootfs /etc/network/interfaces, if it shows dhcp then you would find its dynamic IP in the network. What did /var/log/dmesg show?

-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)
December 01, 2015 05:59AM
I don't remember what version of uBoot is installed on this box. It's probably rather old, since I haven't played with it in a year or two, but I don't recall if it was upgraded when I did the initial installation. Perhaps I should try an older rootfs and see if that helps?

Here's the contents of /etc/network/interfaces:

auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp

Here's the contents of dmesg:

[    0.000000] Linux version 2.6.31.6_SMP_820 (root@hunchback) (gcc version 4.7.0 20120505 (prerelease) (GCC) ) #7 SMP Thu Jun 14 20:31:06 CDT 2012
[    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] On node 0 totalpages: 32768
[    0.000000] free_area_init_node: node 0, pgdat c045a9e0, node_mem_map c0483000
[    0.000000]   Normal zone: 256 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 32512 pages, LIFO batch:7
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: root=/dev/sda1 ubi.mtd=2,512 rootfstype=ext3 console=ttyS0,115200 elevator=cfq mac_adr=0x00,0x30,0xe0,0x00,0x00,0x01 rootwait mem=128M poweroutage=yes
[    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: 125112KB available (4012K code, 316K data, 144K 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... 279.34 BogoMIPS (lpj=1396736)
[    0.260000] Security Framework initialized
[    0.260000] Mount-cache hash table entries: 512
[    0.270000] CPU: Testing write buffer coherency: ok
[    0.270000] Calibrating local timer... 350.00MHz.
[    0.340000] CPU1: Booted secondary processor
[    0.440000] Calibrating delay loop... 279.34 BogoMIPS (lpj=1396736)
[    0.670000] Brought up 2 CPUs
[    0.680000] SMP: Total of 2 processors activated (558.69 BogoMIPS).
[    0.690000] tmpfs: No value for mount option 'mode'
[    0.690000] devtmpfs: initialized
[    0.700000] NET: Registered protocol family 16
[    0.700000] Number of DMA channels = 4, version = 4
[    0.710000] Reserving a DMA channel for DirectRAID
[    0.710000] Allocating 389 SRAM generic DMA descriptors
[    1.220000] PCIeA version/deviceID 082510b5
[    1.220000] PCIeB version/deviceID 082510b5
[    4.250000] ox820_pci_preinit() PCIEB link up timeout (00001814)
[    4.250000] ox820_pcie_setup_resources() Enabling PCIe Pre-Emphasis
[    4.260000] ox820_pciea_setup_resources() resource c781b140
[    4.260000] ox820_pciea_setup_resources()    io:      0x4be00000 - 0x4befffff
[    4.270000] ox820_pciea_setup_resources()    non-pre: 0x48000000 - 0x49ffffff
[    4.280000] ox820_pciea_setup_resources()    pre:     0x4a000000 - 0x4bdfffff
[    4.280000] pci 0000:00:00.0: reg 10 32bit mmio: [0x000000-0x00ffff]
[    4.280000] PCI: bus0: Fast back to back transfers disabled
[    4.290000] PCI: bus1: Fast back to back transfers enabled
[    4.310000] bio: create slab <bio-0> at 0
[    4.320000] SCSI subsystem initialized
[    4.320000] libata version 3.00 loaded.
[    4.320000] usbcore: registered new interface driver usbfs
[    4.330000] usbcore: registered new interface driver hub
[    4.330000] usbcore: registered new device driver usb
[    4.380000] NET: Registered protocol family 2
[    4.380000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    4.390000] Switched to NOHz mode on CPU #0
[    4.390000] TCP established hash table entries: 4096 (order: 3, 32768 bytes)
[    4.390000] Switched to NOHz mode on CPU #1
[    4.400000] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    4.410000] TCP: Hash tables configured (established 4096 bind 4096)
[    4.410000] TCP reno registered
[    4.420000] NET: Registered protocol family 1
[    4.420000] Create fragment cache
[    4.450000] fuse init (API version 7.12)
[    4.450000] msgmni has been set to 244
[    4.460000] alg: No test for stdrng (krng)
[    4.460000] io scheduler noop registered
[    4.470000] io scheduler anticipatory registered
[    4.470000] io scheduler deadline registered
[    4.470000] io scheduler cfq registered (default)
[    4.500000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    4.510000] serial8250: ttyS0 at MMIO 0x44200000 (irq = 55) is a 16550A
[    4.520000] brd: module loaded
[    4.530000] loop: module loaded
[    4.540000] ox820sata: OX820 sata core.
[    4.540000] scsi0 : oxnassata
[    4.550000] scsi1 : oxnassata
[    4.550000] ata1: SATA max UDMA/133 irq 50
[    4.550000] ata2: SATA max UDMA/133 irq 50
[    4.560000] ox820sata: reseting SATA core
[    4.920000] ata1: SATA link down (SStatus 0 SControl 300)
[    4.920000] ox820sata: reseting SATA core
[    5.280000] ata2: SATA link down (SStatus 0 SControl 300)
[    5.280000] tun: Universal TUN/TAP device driver, 1.6
[    5.290000] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
[    5.290000] NAND: Page read time 40ms
[    5.300000] NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix NAND 128MiB 3,3V 8-bit)
[    5.310000] Scanning device for bad blocks
[    5.380000] Creating 2 MTD partitions on "NAND 128MiB 3,3V 8-bit":
[    5.390000] 0x000000000000-0x000000e00000 : "boot"
[    5.390000] 0x000000e00000-0x000008000000 : "rootfs"
[    5.400000] UBI: attaching mtd2 to ubi0
[    5.400000] UBI: physical eraseblock size:   131072 bytes (128 KiB)
[    5.410000] UBI: logical eraseblock size:    129024 bytes
[    5.410000] UBI: smallest flash I/O unit:    2048
[    5.420000] UBI: sub-page size:              512
[    5.420000] UBI: VID header offset:          512 (aligned 512)
[    5.430000] UBI: data offset:                2048
[    5.840000] UBI: attached mtd2 to ubi0
[    5.840000] UBI: MTD device name:            "rootfs"
[    5.850000] UBI: MTD device size:            114 MiB
[    5.850000] UBI: number of good PEBs:        912
[    5.860000] UBI: number of bad PEBs:         0
[    5.860000] UBI: max. allowed volumes:       128
[    5.870000] UBI: wear-leveling threshold:    4096
[    5.870000] UBI: number of internal volumes: 1
[    5.880000] UBI: number of user volumes:     1
[    5.880000] UBI: available PEBs:             0
[    5.890000] UBI: total number of reserved PEBs: 912
[    5.890000] UBI: number of PEBs reserved for bad PEB handling: 9
[    5.900000] UBI: max/mean erase counter: 2/0
[    5.900000] UBI: image sequence number: 0
[    5.900000] UBI: background thread "ubi_bgt0d" started, PID 313
[    5.900000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.900000] ehci_hcd: block sizes: qh 128 qtd 96 itd 160 sitd 96
[    5.900000] <6>probe for usb
[    5.900000] <6>starting usb for 820
[    5.900000] ehci_hcd: block sizes: qh 128 qtd 96 itd 160 sitd 96
[    5.900000] <6>initialise for OX820 series USB
[    5.900000] <6>usb hsmph ctrl set to:0x2a5435e0
[    5.900000] <6>registers:
[    5.900000] <6>SYS_CTRL_CKEN_CTRL 0xf1e00024: 0x00000000
[    5.900000] <6>SYS_CTRL_RSTEN_CTRL 0xf1e00028: 0x00000000
[    5.900000] <6>SYS_CTRL_USBHSPHY_CTRL 0xf1e00084: 0x00002abd
[    5.900000] <6>SYS_CTRL_TERTIARY_SEL 0xf1e0008c: 0x00000000
[    5.900000] <6>SYS_CTRL_SECONDARY_SEL 0xf1e00014: 0x01fff018
[    5.900000] <6>SYS_CTRL_REF300_DIV 0xf1e000f8: 0x00001900
[    5.900000] <6>SYS_CTRL_USB_CTRL 0xf1e00090: 0x00000042
[    5.900000] <6>@ed200000 Device ID register 42fa05
[    5.900000] oxnas-ehci oxnas-ehci.0: OXNAS EHCI Host Controller
[    5.900000] drivers/usb/core/inode.c: creating file 'devices'
[    5.900000] drivers/usb/core/inode.c: creating file '001'
[    5.900000] oxnas-ehci oxnas-ehci.0: new USB bus registered, assigned bus number 1
[    5.900000] oxnas-ehci oxnas-ehci.0: reset
[    5.900000]  hcs_params 0x1210012 dbg=2 ind cc=0 pcc=0 ordered ports=2
[    5.900000] oxnas-ehci oxnas-ehci.0: reset
[    5.900000]  hcc_params 0006 thresh 0 uframes 256/512/1024 park
[    5.900000] oxnas-ehci oxnas-ehci.0: park 0
[    5.900000] oxnas-ehci oxnas-ehci.0: reset command 080b02 park=3 ithresh=8 period=1024 Reset HALT
[    5.900000] oxnas-ehci oxnas-ehci.0: ...powerdown ports...
[    5.930000] oxnas-ehci oxnas-ehci.0: irq 39, io mem 0x00000000
[    5.930000] oxnas-ehci oxnas-ehci.0: reset command 080b02 park=3 ithresh=8 period=1024 Reset HALT
[    5.930000] oxnas-ehci oxnas-ehci.0: init command 010009 (park)=0 ithresh=1 period=256 RUN
[    5.950000] oxnas-ehci oxnas-ehci.0: USB 0.0 started, EHCI 1.00
[    5.950000] usb usb1: default language 0x0409
[    5.950000] usb usb1: udev 1, busnum 1, minor = 0
[    5.950000] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    5.960000] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    5.970000] usb usb1: Product: OXNAS EHCI Host Controller
[    5.970000] usb usb1: Manufacturer: Linux 2.6.31.6_SMP_820 ehci_hcd
[    5.980000] usb usb1: SerialNumber: usb
[    5.980000] usb usb1: uevent
[    5.980000] usb usb1: usb_probe_device
[    5.980000] usb usb1: configuration #1 chosen from 1 choice
[    5.990000] usb usb1: adding 1-0:1.0 (config #1, interface 0)
[    5.990000] usb 1-0:1.0: uevent
[    5.990000] hub 1-0:1.0: usb_probe_interface
[    5.990000] hub 1-0:1.0: usb_probe_interface - got id
[    5.990000] hub 1-0:1.0: USB hub found
[    5.990000] hub 1-0:1.0: 2 ports detected
[    5.990000] hub 1-0:1.0: standalone hub
[    5.990000] hub 1-0:1.0: individual port power switching
[    5.990000] hub 1-0:1.0: individual port over-current protection
[    5.990000] hub 1-0:1.0: Single TT
[    5.990000] hub 1-0:1.0: TT requires at most 8 FS bit times (666 ns)
[    5.990000] hub 1-0:1.0: power on to power good time: 20ms
[    5.990000] hub 1-0:1.0: local power source is good
[    5.990000] hub 1-0:1.0: enabling power on all ports
[    6.000000] drivers/usb/core/inode.c: creating file '001'
[    6.000000] Initializing USB Mass Storage driver...
[    6.000000] usbcore: registered new interface driver usb-storage
[    6.010000] USB Mass Storage support registered.
[    6.010000] usbcore: registered new interface driver libusual
[    6.020000] mice: PS/2 mouse device common for all mice
[    6.020000] usbcore: registered new interface driver hiddev
[    6.030000] usbcore: registered new interface driver usbhid
[    6.040000] usbhid: v2.6:USB HID core driver
[    6.040000] TCP cubic registered
[    6.040000] NET: Registered protocol family 10
[    6.050000] lo: Disabled Privacy Extensions
[    6.050000] NET: Registered protocol family 17
[    6.060000] RPC: Registered udp transport module.
[    6.060000] RPC: Registered tcp transport module.
[    6.070000] Waiting for root device /dev/sda1...
[    6.090000] oxnas-ehci oxnas-ehci.0: GetStatus port 1 status 001803 POWER sig=j CSC CONNECT
[    6.090000] hub 1-0:1.0: port 1: status 0101 change 0001
[    6.190000] hub 1-0:1.0: state 7 ports 2 chg 0002 evt 0000
[    6.190000] hub 1-0:1.0: port 1, status 0101, change 0000, 12 Mb/s
[    6.310000] usb 1-1: new high speed USB device using oxnas-ehci and address 2
[    6.370000] oxnas-ehci oxnas-ehci.0: port 1 high speed
[    6.370000] oxnas-ehci oxnas-ehci.0: GetStatus port 1 status 8001205 POWER sig=se0 PE CONNECT
[    6.460000] usb 1-1: default language 0x0409
[    6.460000] usb 1-1: udev 2, busnum 1, minor = 1
[    6.460000] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    6.460000] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    6.470000] usb 1-1: Product: USB2.0 Hub
[    6.470000] usb 1-1: uevent
[    6.470000] usb 1-1: usb_probe_device
[    6.480000] usb 1-1: configuration #1 chosen from 1 choice
[    6.480000] usb 1-1: adding 1-1:1.0 (config #1, interface 0)
[    6.480000] usb 1-1:1.0: uevent
[    6.480000] hub 1-1:1.0: usb_probe_interface
[    6.480000] hub 1-1:1.0: usb_probe_interface - got id
[    6.480000] hub 1-1:1.0: USB hub found
[    6.490000] hub 1-1:1.0: 4 ports detected
[    6.490000] hub 1-1:1.0: standalone hub
[    6.490000] hub 1-1:1.0: ganged power switching
[    6.490000] hub 1-1:1.0: global over-current protection
[    6.490000] hub 1-1:1.0: Single TT
[    6.490000] hub 1-1:1.0: TT requires at most 32 FS bit times (2664 ns)
[    6.490000] hub 1-1:1.0: Port indicators are supported
[    6.490000] hub 1-1:1.0: power on to power good time: 100ms
[    6.490000] hub 1-1:1.0: local power source is good
[    6.490000] hub 1-1:1.0: no over-current condition exists
[    6.490000] hub 1-1:1.0: enabling power on all ports
[    6.490000] drivers/usb/core/inode.c: creating file '002'
[    6.490000] hub 1-0:1.0: state 7 ports 2 chg 0000 evt 0002
[    6.590000] hub 1-1:1.0: port 2: status 0101 change 0001
[    6.690000] usb 1-1: link qh256-0001/ffc00100 start 1 [1/0 us]
[    6.690000] hub 1-1:1.0: state 7 ports 4 chg 0004 evt 0000
[    6.690000] hub 1-1:1.0: port 2, status 0101, change 0000, 12 Mb/s
[    6.770000] usb 1-1.2: new high speed USB device using oxnas-ehci and address 3
[    6.920000] usb 1-1.2: default language 0x0409
[    6.920000] usb 1-1.2: udev 3, busnum 1, minor = 2
[    6.920000] usb 1-1.2: New USB device found, idVendor=174c, idProduct=55aa
[    6.920000] usb 1-1.2: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[    6.930000] usb 1-1.2: Product: ASMT1051
[    6.930000] usb 1-1.2: Manufacturer: asmedia
[    6.940000] usb 1-1.2: SerialNumber: 123456789012
[    6.940000] usb 1-1.2: uevent
[    6.940000] usb 1-1.2: usb_probe_device
[    6.940000] usb 1-1.2: configuration #1 chosen from 1 choice
[    6.950000] usb 1-1.2: adding 1-1.2:1.0 (config #1, interface 0)
[    6.950000] usb 1-1.2:1.0: uevent
[    6.950000] usb-storage 1-1.2:1.0: usb_probe_interface
[    6.950000] usb-storage 1-1.2:1.0: usb_probe_interface - got id
[    6.950000] scsi2 : SCSI emulation for USB Mass Storage devices
[    6.960000] usb-storage: device found at 3
[    6.960000] usb-storage: waiting for device to settle before scanning
[    6.960000] drivers/usb/core/inode.c: creating file '003'
[   11.960000] scsi 2:0:0:0: Direct-Access     ASMT     2105             0    PQ: 0 ANSI: 6
[   11.970000] usb-storage: device scan complete
[   11.970000] sd 2:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
[   11.980000] sd 2:0:0:0: [sda] Write Protect is off
[   11.980000] sd 2:0:0:0: [sda] Mode Sense: 43 00 00 00
[   11.980000] sd 2:0:0:0: [sda] Assuming drive cache: write through
[   11.990000] sd 2:0:0:0: [sda] Assuming drive cache: write through
[   12.000000]  sda: sda1 sda2 sda3
[   12.060000] sd 2:0:0:0: [sda] Assuming drive cache: write through
[   12.070000] sd 2:0:0:0: [sda] Attached SCSI disk
[   12.130000] kjournald starting.  Commit interval 5 seconds
[   12.130000] EXT3 FS on sda1, internal journal
[   12.130000] EXT3-fs: recovery complete.
[   12.130000] EXT3-fs: mounted filesystem with writeback data mode.
[   12.130000] VFS: Mounted root (ext3 filesystem) on device 8:1.
[   12.160000] devtmpfs: mounted
[   12.170000] Freeing init memory: 144K
[   15.520000] EXT3 FS on sda1, internal journal

Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
December 02, 2015 01:06AM
agiorgio,

I see. Your box has a pretty old kernel. And you are running a hybrid Arch kernel + Debian rootfs. And you are running with stock u-boot (or Arch variant).
> [    0.000000] Linux version 2.6.31.6_SMP_820

You can download the rootfs in the first post of this thread, following the instruction to put it on a USB drive and boot. In addition, you can install the new u-boot at the same time:
http://forum.doozan.com/read.php?3,16017

-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)
December 03, 2015 11:09PM
Well, I tried two different rootfs from that thread (Debian-3.12.13-oxnas-tld-5-rootfs-bodhi.tar.bz2 and Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2). Neither one got my system on the network. I also tried varkey's rootfs (debian-rootfs-pogopro-varkey.tar.gz), and that produced a strange error regarding the MAC address for the network interface.
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
December 03, 2015 11:16PM
agiorgio Wrote:
-------------------------------------------------------
> Well, I tried two different rootfs from that
> thread
> (Debian-3.12.13-oxnas-tld-5-rootfs-bodhi.tar.bz2
> and
> Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2).
> Neither one got my system on the network. I also
> tried varkey's rootfs
> (debian-rootfs-pogopro-varkey.tar.gz), and that
> produced a strange error regarding the MAC address
> for the network interface.

I've splitted your booting problem into a different thread (the forum split functiona does not leave behind a notice):
http://forum.doozan.com/read.php?2,24758

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



Edited 1 time(s). Last edit at 12/03/2015 11:18PM by bodhi.
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
February 08, 2016 01:09PM
I try to use kernel 4.4 with Akitio Mycloud mini and stage1 loader from u-boot version 2013.10 capable to load u-boot and kernel from sata using sata as root device too.

This does not work. It always mounts root readonly and naturally falls in kernel panic while accessing virtual memory.

Is there some trick to make it mount rw? I have used GPT and MSDOS partition tables with the same result.

Edit: Is it possible even with correct root-parameter in bootargs u-boot passes kernel wrong information and it does try to use nand as root device?



Edited 2 time(s). Last edit at 02/08/2016 01:14PM by tilator.
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
February 08, 2016 02:23PM
tilator Wrote:
-------------------------------------------------------
> I try to use kernel 4.4 with Akitio Mycloud mini
> and stage1 loader from u-boot version 2013.10
> capable to load u-boot and kernel from sata using
> sata as root device too.
>
> This does not work. It always mounts root readonly
> and naturally falls in kernel panic while
> accessing virtual memory.
>
> Is there some trick to make it mount rw? I have
> used GPT and MSDOS partition tables with the same
> result.
>
> Edit: Is it possible even with correct
> root-parameter in bootargs u-boot passes kernel
> wrong information and it does try to use nand as
> root device?

Please post serial console log (and printenv output in serial console).

BTW, did you build kernel 4.4 using my patch? I'm having a kernel panic running it pretty early and trying to troubleshoot. I think it's a bad build/patch so I am reviewing my new patch.

-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)
February 08, 2016 02:36PM
> Please post serial console log (and printenv
> output in serial console).
>
> BTW, did you build kernel 4.4 using my patch? I'm
> having a kernel panic running it pretty early and
> trying to troubleshoot. I think it's a bad
> build/patch so I am reviewing my new patch.

I'll get log ASAP. The device is now busy with hard drive check.

I got the kernel source directly from openwrt. Do you have your patch somewhere in the github?
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
February 08, 2016 02:46PM
tilator,

Ah, I did not know openWRT has realeased kernel 4.4. That's a really good source, I should go look at their patch.

I've only published up to the 4.1 patch in this thread. I'm still working on patch 4.4.

-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)
February 08, 2016 03:03PM
So, here you have kernel boot log:

## Booting kernel from Legacy Image at 60500000 ...
   Image Name:   Linux-4.4.0
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3787808 Bytes = 3.6 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 6fe26000, end 6fe2affe ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.4.0 (harri@Iomega2) (gcc version 4.6.3 (Debian 4.6.3-14) ) #5 SMP Mon Feb 8 18:07:54 EET 2016
[    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: Akitio
[    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] PERCPU: Embedded 11 pages/cpu @cffdb000 s16160 r8192 d20704 u45056
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: root=/dev/sda1 console=ttyS0,115200 noinitrd rootwait elevator=cfq mac_adr=0x00,0x01,0xd2,0x12,0x26,0xce rootwait ubi.mtd=2,512 mem=256M poweroutage=yes
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 252108K/262144K available (5373K kernel code, 199K rwdata, 1612K rodata, 196K init, 235K bss, 10036K 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 : 0xd0800000 - 0xff800000   ( 752 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc06da854   (6987 kB)
[    0.000000]       .init : 0xc06db000 - 0xc070c000   ( 196 kB)
[    0.000000]       .data : 0xc070c000 - 0xc073dc28   ( 200 kB)
[    0.000000]        .bss : 0xc073dc28 - 0xc0778bf8   ( 236 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    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.000202] Console: colour dummy device 80x30
[    0.000235] Calibrating delay loop... 319.48 BogoMIPS (lpj=1597440)
[    0.050030] pid_max: default: 32768 minimum: 301
[    0.050199] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.050216] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.051033] CPU: Testing write buffer coherency: ok
[    0.051458] Setting up static identity map for 0x60008220 - 0x60008258
[    0.110154] Brought up 2 CPUs
[    0.110177] SMP: Total of 2 processors activated (638.97 BogoMIPS).
[    0.111408] devtmpfs: initialized
[    0.116249] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.116446] pinctrl core: initialized pinctrl subsystem
[    0.117168] NET: Registered protocol family 16
[    0.117875] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.122810] gpio-oxnas 44000000.gpio: at address d0848000
[    0.123133] gpio-oxnas 44100000.gpio: at address d084a000
[    0.123655] pinctrl-oxnas pinctrl: initialized OX820 pinctrl driver
[    0.134026] vgaarb: loaded
[    0.134438] SCSI subsystem initialized
[    0.135275] usbcore: registered new interface driver usbfs
[    0.135375] usbcore: registered new interface driver hub
[    0.135480] usbcore: registered new device driver usb
[    0.136038] i2c-gpio i2c-gpio: using pins 41 (SDA) and 42 (SCL)
[    0.136156] pps_core: LinuxPPS API ver. 1 registered
[    0.136168] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.136222] PTP clock support registered
[    0.138242] clocksource: Switched to clocksource rps_clocksource_timer
[    0.138780] FS-Cache: Loaded
[    0.139048] CacheFiles: Loaded
[    0.153333] NET: Registered protocol family 2
[    0.154176] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.154227] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    0.154280] TCP: Hash tables configured (established 2048 bind 2048)
[    0.154373] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.154411] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.154677] NET: Registered protocol family 1
[    0.155197] RPC: Registered named UNIX socket transport module.
[    0.155217] RPC: Registered udp transport module.
[    0.155225] RPC: Registered tcp transport module.
[    0.155233] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.156572] futex hash table entries: 512 (order: 2, 16384 bytes)
[    0.175513] ntfs: driver 2.1.32 [Flags: R/W].
[    0.176135] fuse init (API version 7.23)
[    0.184637] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.184665] io scheduler noop registered
[    0.184680] io scheduler deadline registered
[    0.184742] io scheduler cfq registered (default)
[    0.185239] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.186529] console [ttyS0] disabled
[    0.186598] 44200000.uart: ttyS0 at MMIO 0x44200000 (irq = 6, base_baud = 390625) is a 16550A
[    0.658437] console [ttyS0] enabled
[    0.664381] scsi host0: sata_oxnas
[    0.668436] scsi host1: sata_oxnas
[    0.672189] ata1: SATA max UDMA/133 irq 7
[    0.676183] ata2: SATA max UDMA/133 irq 7
[    0.681264] nand: Could not find valid ONFI parameter page; aborting
[    0.683870] sata_oxnas: resetting SATA core
[    0.691845] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
[    0.698168] nand: Hynix NAND 256MiB 3,3V 8-bit
[    0.702617] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.710197] Scanning device for bad blocks
[    0.879618] 2 ofpart partitions found on MTD device NAND 256MiB 3,3V 8-bit
[    0.886487] Creating 2 MTD partitions on "NAND 256MiB 3,3V 8-bit":
[    0.892661] 0x000000000000-0x0000026c0000 : "Boot partition"
[    0.900188] 0x000000e00000-0x00000e740000 : "Date partition"
[    0.908218] oxnas-gmac 40400000.ethernet: snps,phy-addr property is deprecated
[    0.915558] oxnas-gmac 40400000.ethernet: no reset control found
[    0.921576] stmmac - user ID: 0x12, Synopsys ID: 0x35
[    0.926599]  Ring mode enabled
[    0.929633]  DMA HW capability register supported
[    0.934156]  Enhanced/Alternate descriptors
[    0.938490]  Enabled extended descriptors
[    0.942499]  RX Checksum Offload Engine supported (type 2)
[    0.947952]  TX Checksum insertion supported
[    0.952230]  Wake-Up On Lan supported
[    0.955873]  Enable RX Mitigation via HW Watchdog Timer
[    0.964282] libphy: stmmac: probed
[    0.967682] eth0: PHY ID 001cc914 at 0 IRQ POLL (stmmac-0:00)
[    0.973457] eth0: PHY ID 001cc914 at 3 IRQ POLL (stmmac-0:03)
[    0.979576] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.986119] ehci-pci: EHCI PCI platform driver
[    0.991019] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    0.996518] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    1.004352] oxnas-ehci 40200100.ehci: irq 10, io mem 0x40200100
[    1.030023] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    1.036405] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.043230] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.050457] usb usb1: Product: EHCI Host Controller
[    1.055316] usb usb1: Manufacturer: Linux 4.4.0 ehci_hcd
[    1.060628] usb usb1: SerialNumber: 40200100.ehci
[    1.066199] hub 1-0:1.0: USB hub found
[    1.070092] hub 1-0:1.0: 2 ports detected
[    1.074846] usbcore: registered new interface driver usb-storage
[    1.081223] mousedev: PS/2 mouse device common for all mice
[    1.091568] rtc-ds1307 0-0068: rtc core: registered ds1307 as rtc0
[    1.097745] rtc-ds1307 0-0068: 56 bytes nvram
[    1.103790] usbcore: registered new interface driver usbhid
[    1.109335] usbhid: USB HID core driver
[    1.115207] NET: Registered protocol family 10
[    1.121139] sit: IPv6 over IPv4 tunneling driver
[    1.126658] NET: Registered protocol family 17
[    1.135385] Key type encrypted registered
[    1.140139] UBI error: cannot open mtd 2, error -19
[    1.146949] rtc-ds1307 0-0068: setting system clock to 2016-02-08 22:56:20 UTC (1454972180)
[    1.193638] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    1.206113] ata1.00: ATA-8: SAMSUNG HN-M101MBB, 2AR10001, max UDMA/133
[    1.212618] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    1.225676] ata1.00: configured for UDMA/133
[    1.230632] scsi 0:0:0:0: Direct-Access     ATA      SAMSUNG HN-M101M 0001 PQ: 0 ANSI: 5
[    1.240343] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[    1.248330] sata_oxnas: resetting SATA core
[    1.248760] sd 0:0:0:0: [sda] Write Protect is off
[    1.249000] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.290117] sata_oxnas: resetting SATA core
[    1.969996] ata2: SATA link down (SStatus 0 SControl 310)
[    2.053657] ata1: exception Emask 0x10 SAct 0x0 SErr 0x0 action 0xe frozen
[    2.060520] ata1: hard resetting link
[    2.973649] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    2.992496] ata1.00: configured for UDMA/133
[    2.996807] ata1: EH complete
[    3.061911] GPT:disk_guids don't match.
[    3.065774] GPT:partition_entry_array_crc32 values don't match: 0xe877fdb6 != 0x85d86836
[    3.073861] GPT: Use GNU Parted to correct GPT errors.
[    3.079070]  sda: sda1 sda2 sda3
[    3.085091] sd 0:0:0:0: [sda] Attached SCSI disk
[    3.089843] UBIFS error (pid: 1): cannot open "ubi0:rootfs", error -19
[    3.124116] EXT4-fs (sda1): couldn't mount as ext3 due to feature incompatibilities
[    3.133404] EXT4-fs (sda1): INFO: recovery required on readonly filesystem
[    3.140334] EXT4-fs (sda1): write access will be enabled during recovery
[    3.971033] EXT4-fs (sda1): recovery complete
[    4.011827] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[    4.019502] VFS: Mounted root (ext4 filesystem) readonly on device 8:1.
[    4.026265] devtmpfs: mounted
[    4.029501] Freeing unused kernel memory: 196K (c06db000 - c070c000)
[    4.141877] Unable to handle kernel paging request at virtual address b6e75f50
[    4.149071] pgd = cfaf8000
[    4.151756] [b6e75f50] *pgd=6fadf831, *pte=6ede459f, *ppte=6ede4e6e
[    4.158003] Internal error: Oops: 17 [#1] SMP ARM
[    4.162677] Modules linked in:
[    4.165711] CPU: 0 PID: 1 Comm: init Not tainted 4.4.0 #5
[    4.171077] Hardware name: PLXTECH NAS782X SoC (Flattened Device Tree)
[    4.177566] task: cf844000 ti: cf848000 task.ti: cf848000
[    4.182940] PC is at v6wbi_flush_user_tlb_range+0x28/0x48
[    4.188318] LR is at on_each_cpu_mask+0x58/0x60
[    4.192826] pc : [<c000aa2c>]    lr : [<c007d7ec>]    psr: 80000093
[    4.192826] sp : cf849eb8  ip : 00000000  fp : cfafadc0
[    4.204244] r10: cfaf4000  r9 : 00000002  r8 : cfadf6d8
[    4.209438] r7 : cf849ed4  r6 : c001856c  r5 : cfaf4160  r4 : 20000013
[    4.215933] r3 : 00000001  r2 : 00100071  r1 : b6fb7000  r0 : b6fb6001
[    4.222420] Flags: Nzcv  IRQs off  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    4.229603] Control: 00c5787d  Table: 6faf800a  DAC: 00000051
[    4.235315] Process init (pid: 1, stack limit = 0xcf848190)
[    4.240852] Stack: (0xcf849eb8 to 0xcf84a000)
[    4.245186] 9ea0:                                                       00000001 b6fb5000
[    4.253327] 9ec0: 6ee0f75f cfadf6dc b6fb7000 c001875c 00000103 cfa974d0 b6fb5000 b6fb7000
[    4.261470] 9ee0: b6fb7000 c00b5254 00000000 6ee0f7df 00000002 b6fb7000 00000381 cfa974d0
[    4.269614] 9f00: b6fb6fff cfaf4034 b6fb5000 cfaf4000 cfa97580 cfa974d0 00000000 00100071
[    4.277754] 9f20: b6fb5000 00100073 00000000 cfaf4000 b6fb7000 c00b5420 00000000 00000000
[    4.285893] 9f40: cfa26d80 00000139 00000000 00000000 00000000 00000002 00000022 b6fb7000
[    4.294033] 9f60: b6fb7000 00000001 b6fb5000 00000000 cf848000 00000000 bea3cabc c00b5608
[    4.302172] 9f80: 00100071 c00b2c48 00000022 cfa974d0 b6ff38f0 b6ff4fb8 b6e74000 0000007d
[    4.310315] 9fa0: c0009884 c00096c0 b6ff38f0 b6ff4fb8 b6fb5000 00002000 00000001 b6fb56cc
[    4.318458] 9fc0: b6ff38f0 b6ff4fb8 b6e74000 0000007d b6ff4fb8 b6ecc440 b6fb702c bea3cabc
[    4.326602] 9fe0: 00000000 bea3c9f0 b6fd9900 b6fe5aac 80000010 b6fb5000 00000000 00000000
[    4.334753] [<c000aa2c>] (v6wbi_flush_user_tlb_range) from [<c007d7ec>] (on_each_cpu_mask+0x58/0x60)
[    4.343856] [<c007d7ec>] (on_each_cpu_mask) from [<c001875c>] (flush_tlb_range+0x4c/0x6c)
[    4.352002] [<c001875c>] (flush_tlb_range) from [<c00b5254>] (change_protection_range+0x2d8/0x32c)
[    4.360919] [<c00b5254>] (change_protection_range) from [<c00b5420>] (mprotect_fixup+0x174/0x21c)
[    4.369751] [<c00b5420>] (mprotect_fixup) from [<c00b5608>] (SyS_mprotect+0x140/0x1c0)
[    4.377630] [<c00b5608>] (SyS_mprotect) from [<c00096c0>] (ret_fast_syscall+0x0/0x3c)
[    4.385425] Code: e20330ff e1830600 e1a01601 e5922028 (ee080f36)
[    4.391485] ---[ end trace 82d914bd4ff756b4 ]---



... and environment:

2=ext4load ide 0 0x60500000 /boot/uImage; ext4load ide 0 0x61000000 /boot/Silverstone_4.1.6.dtb
3=bootm 60500000 - 61000000
4=ext4load ide 0 0x60500000 /boot/uImage; ext4load ide 0 0x61000000 /boot/Silverstone.dtb
5=ext4lo 0x60500000 /boot/uImage416; ext4load ide 0 0x61000000 /boot/ox820-Akitio.dtb
6=ext4load ide 0 0x60500000 /boot/uImage; ext4load ide 0 0x61000000 /boot/ox820-akitio.dtb
7=ext4load ide 0 0x60500000 /boot/uImage; ext4load ide 0 0x61000000 /boot/ox820-Akitio.dtb
8=ext4load ide 0 0x60500000 /boot/uImage_f; bootm 60500000
9=ext4load ide 0 0x60500000 /boot/uImage; ext4load ide 0 0x61000000 /boot/effective.dtb
autoload=no
baudrate=115200
boot_dhcp=run load_kernel_dhcp && run boot_kernel;
boot_kernel=bootm 0x62000000
boot_rescue=run load_kernel_rescue && run boot_kernel;
boot_ubi=run load_kernel_ubi && run boot_kernel;
bootargs=root=/dev/sda1 console=ttyS0,115200 noinitrd rootwait elevator=cfq mac_adr=0x00,0x01,0xd2,0x12,0x26,0xce rootwait ubi.mtd=2,512 mem=256M poweroutage=yes
bootargs1=root=/dev/sda1 console=ttyS0,115200 noinitrd rootwait elevator=cfq mac_adr=0x00,0x01,0xd2,0x12,0x26,0xce rootwait ubi.mtd=2,512 mem=256M poweroutage=yes
bootargs2=root=/dev/sda1 console=ttyS0,115200 noinitrd rootwait elevator=cfq mac_adr=0x00,0x01,0xd2,0x12,0x26,0xce mem=256M poweroutage=yes
bootcmd=run 8
bootdelay=1
console=console=ttyS0,115200n8 earlyprintk=serial
ethact=mii0
ethaddr=00:25:31:01:66:5F
ipaddr=192.168.50.100
load_kernel_dhcp=dhcp 0x62000000 oxnas-rescue.bin
load_kernel_rescue=nand read 0x62000000 0x4e0000 0x400000
load_kernel_ubi=ubi readvol 0x62000000 kernel
mtdids=nand0 41000000.nand
mtdparts=mtdparts=41000000.nand:14m(boot),-(ubi)
normalboot=run boot_ubi; run boot_rescue; run boot_dhcp;
serverip=192.168.50.59
stderr=serial
stdin=serial
stdout=serial

Environment size: 1860/16380 bytes



As you can see, I have several different boot variations to debug it. RTC did get up fine here but kernel paniced at 4.14s.

I did boot kernel from u-boot prompt by "run 6 3".

Run 8 boots old kernel. Stage1 and u-boot are both 2013.10 and this device boots everything from sata. Nand is not used at all.

2013.10 stage1, 2013.10 u-boot + old kernel does it as expected.



Edited 2 time(s). Last edit at 02/08/2016 03:16PM by tilator.
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
February 08, 2016 03:11PM
Here is same kernel as above after power boot. As you can see, the RTC is not up now (1.047884s). Of cource booting hang up again with readonly root:

## Booting kernel from Legacy Image at 60500000 ...
   Image Name:   Linux-4.4.0
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3787808 Bytes = 3.6 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 6fe26000, end 6fe2affe ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.4.0 (harri@Iomega2) (gcc version 4.6.3 (Debian 4.6.3-14) ) #5 SMP Mon Feb 8 18:07:54 EET 2016
[    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: Akitio
[    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] PERCPU: Embedded 11 pages/cpu @cffdb000 s16160 r8192 d20704 u45056
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line: root=/dev/sda1 console=ttyS0,115200 noinitrd rootwait elevator=cfq mac_adr=0x00,0x01,0xd2,0x12,0x26,0xce rootwait ubi.mtd=2,512 mem=256M poweroutage=yes
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 252108K/262144K available (5373K kernel code, 199K rwdata, 1612K rodata, 196K init, 235K bss, 10036K 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 : 0xd0800000 - 0xff800000   ( 752 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc06da854   (6987 kB)
[    0.000000]       .init : 0xc06db000 - 0xc070c000   ( 196 kB)
[    0.000000]       .data : 0xc070c000 - 0xc073dc28   ( 200 kB)
[    0.000000]        .bss : 0xc073dc28 - 0xc0778bf8   ( 236 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:160
[    0.000000] clocksource: rps_clocksource_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 19112603332 ns
[    0.000007] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 21474835200ns
[    0.000189] Console: colour dummy device 80x30
[    0.000220] Calibrating delay loop... 319.48 BogoMIPS (lpj=1597440)
[    0.050032] pid_max: default: 32768 minimum: 301
[    0.050196] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.050214] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.051051] CPU: Testing write buffer coherency: ok
[    0.051481] Setting up static identity map for 0x60008220 - 0x60008258
[    0.110159] Brought up 2 CPUs
[    0.110182] SMP: Total of 2 processors activated (638.97 BogoMIPS).
[    0.111413] devtmpfs: initialized
[    0.115921] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.116116] pinctrl core: initialized pinctrl subsystem
[    0.116830] NET: Registered protocol family 16
[    0.117539] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.122455] gpio-oxnas 44000000.gpio: at address d0848000
[    0.122787] gpio-oxnas 44100000.gpio: at address d084a000
[    0.123297] pinctrl-oxnas pinctrl: initialized OX820 pinctrl driver
[    0.133895] vgaarb: loaded
[    0.134300] SCSI subsystem initialized
[    0.135134] usbcore: registered new interface driver usbfs
[    0.135229] usbcore: registered new interface driver hub
[    0.135331] usbcore: registered new device driver usb
[    0.135887] i2c-gpio i2c-gpio: using pins 41 (SDA) and 42 (SCL)
[    0.136010] pps_core: LinuxPPS API ver. 1 registered
[    0.136020] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.136079] PTP clock support registered
[    0.138094] clocksource: Switched to clocksource rps_clocksource_timer
[    0.138647] FS-Cache: Loaded
[    0.138918] CacheFiles: Loaded
[    0.153267] NET: Registered protocol family 2
[    0.154117] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.154173] TCP bind hash table entries: 2048 (order: 2, 16384 bytes)
[    0.154224] TCP: Hash tables configured (established 2048 bind 2048)
[    0.154321] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.154362] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.154636] NET: Registered protocol family 1
[    0.155151] RPC: Registered named UNIX socket transport module.
[    0.155171] RPC: Registered udp transport module.
[    0.155184] RPC: Registered tcp transport module.
[    0.155194] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.156533] futex hash table entries: 512 (order: 2, 16384 bytes)
[    0.175173] ntfs: driver 2.1.32 [Flags: R/W].
[    0.175756] fuse init (API version 7.23)
[    0.184399] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[    0.184427] io scheduler noop registered
[    0.184442] io scheduler deadline registered
[    0.184501] io scheduler cfq registered (default)
[    0.184993] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.186306] console [ttyS0] disabled
[    0.186373] 44200000.uart: ttyS0 at MMIO 0x44200000 (irq = 6, base_baud = 390625) is a 16550A
[    0.658152] console [ttyS0] enabled
[    0.664079] scsi host0: sata_oxnas
[    0.668116] scsi host1: sata_oxnas
[    0.671866] ata1: SATA max UDMA/133 irq 7
[    0.675865] ata2: SATA max UDMA/133 irq 7
[    0.680194] sata_oxnas: resetting SATA core
[    0.681018] nand: Could not find valid ONFI parameter page; aborting
[    0.681062] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
[    0.681064] nand: Hynix NAND 256MiB 3,3V 8-bit
[    0.681072] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.681088] Scanning device for bad blocks
[    0.846528] 2 ofpart partitions found on MTD device NAND 256MiB 3,3V 8-bit
[    0.853416] Creating 2 MTD partitions on "NAND 256MiB 3,3V 8-bit":
[    0.859573] 0x000000000000-0x0000026c0000 : "Boot partition"
[    0.867033] 0x000000e00000-0x00000e740000 : "Date partition"
[    0.875240] oxnas-gmac 40400000.ethernet: snps,phy-addr property is deprecated
[    0.882580] oxnas-gmac 40400000.ethernet: no reset control found
[    0.888563] stmmac - user ID: 0x12, Synopsys ID: 0x35
[    0.893629]  Ring mode enabled
[    0.896668]  DMA HW capability register supported
[    0.901191]  Enhanced/Alternate descriptors
[    0.905518]  Enabled extended descriptors
[    0.909501]  RX Checksum Offload Engine supported (type 2)
[    0.914974]  TX Checksum insertion supported
[    0.919216]  Wake-Up On Lan supported
[    0.922869]  Enable RX Mitigation via HW Watchdog Timer
[    0.931322] libphy: stmmac: probed
[    0.934717] eth0: PHY ID 001cc914 at 0 IRQ POLL (stmmac-0:00)
[    0.940477] eth0: PHY ID 001cc914 at 3 IRQ POLL (stmmac-0:03)
[    0.946603] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    0.953152] ehci-pci: EHCI PCI platform driver
[    0.958031] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    0.963568] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    0.971384] oxnas-ehci 40200100.ehci: irq 10, io mem 0x40200100
[    0.990026] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    0.996382] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.003205] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.010426] usb usb1: Product: EHCI Host Controller
[    1.015278] usb usb1: Manufacturer: Linux 4.4.0 ehci_hcd
[    1.020587] usb usb1: SerialNumber: 40200100.ehci
[    1.026183] hub 1-0:1.0: USB hub found
[    1.030028] hub 1-0:1.0: 2 ports detected
[    1.034813] usbcore: registered new interface driver usb-storage
[    1.041187] mousedev: PS/2 mouse device common for all mice
[    1.047884] rtc-ds1307: probe of 0-0068 failed with error -5
[    1.055183] usbcore: registered new interface driver usbhid
[    1.060797] usbhid: USB HID core driver
[    1.066516] NET: Registered protocol family 10
[    1.072304] sit: IPv6 over IPv4 tunneling driver
[    1.077864] NET: Registered protocol family 17
[    1.086499] Key type encrypted registered
[    1.091274] UBI error: cannot open mtd 2, error -19
[    1.095979] hctosys: unable to open rtc device (rtc0)
[    1.233653] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    1.246133] ata1.00: ATA-8: SAMSUNG HN-M101MBB, 2AR10001, max UDMA/133
[    1.252638] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    1.265697] ata1.00: configured for UDMA/133
[    1.270679] scsi 0:0:0:0: Direct-Access     ATA      SAMSUNG HN-M101M 0001 PQ: 0 ANSI: 5
[    1.280396] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[    1.288381] sata_oxnas: resetting SATA core
[    1.288821] sd 0:0:0:0: [sda] Write Protect is off
[    1.289070] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    1.330094] sata_oxnas: resetting SATA core
[    2.009999] ata2: SATA link down (SStatus 0 SControl 310)
[    2.093693] ata1: exception Emask 0x10 SAct 0x0 SErr 0x0 action 0xe frozen
[    2.100554] ata1: hard resetting link
[    3.013680] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    3.032542] ata1.00: configured for UDMA/133
[    3.036851] ata1: EH complete
[    3.106240] GPT:disk_guids don't match.
[    3.110067] GPT:partition_entry_array_crc32 values don't match: 0xe877fdb6 != 0x85d86836
[    3.118151] GPT: Use GNU Parted to correct GPT errors.
[    3.123356]  sda: sda1 sda2 sda3
[    3.129070] sd 0:0:0:0: [sda] Attached SCSI disk
[    3.133885] UBIFS error (pid: 1): cannot open "ubi0:rootfs", error -19
[    3.168542] EXT4-fs (sda1): couldn't mount as ext3 due to feature incompatibilities
[    3.194222] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[    3.201994] VFS: Mounted root (ext4 filesystem) readonly on device 8:1.
[    3.215183] devtmpfs: mounted
[    3.218618] Freeing unused kernel memory: 196K (c06db000 - c070c000)

(Sorry, this thread is for a different kernel version)

Here is original kernel 2.6.31.14 booting. An yes - it is stock kernel even this has some errors in the middle too:


U-Boot 2013.10 (May 09 2014 - 22:50:06) for OXNAS

DRAM:  256 MiB
IDE:   SATA PHY not ready for device 1
Bus 0: OK Bus 1: not available
  Device 0: Model: SAMSUNG HN-M101MBB Firm: 2AR10001 Ser#: S2RUJ9AB703398
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 953869.7 MB = 931.5 GB (1953525168 x 512)
NAND:  256 MiB
In:    serial
Out:   serial
Err:   serial
Net:   mii0
Hit any key to stop autoboot:  0
3116304 bytes read in 569 ms (5.2 MiB/s)
## Booting kernel from Legacy Image at 60500000 ...
   Image Name:   Linux-2.6.31.14-fast-20110801-fa
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3116240 Bytes = 3 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK

Starting kernel ...

Uncompressing Linux.......................................................................................................................................................................................... done, booting the kernel.
Linux version 2.6.31.14-fast-20110801-fan (root@ubuntu) (gcc version 4.2.4) #41 SMP Fri Oct 14 10:05:59 CST 2011
CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5387f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: Oxsemi NAS
1 memory region
Ignoring unrecognised tag 0x00000000
Memory policy: ECC disabled, Data cache writealloc
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
Kernel command line: root=/dev/sda1 console=ttyS0,115200 noinitrd rootwait elevator=cfq mac_adr=0x00,0x01,0xd2,0x12,0x26,0xce rootwait ubi.mtd=2,512 mem=256M poweroutage=yes
PID hash table entries: 1024 (order: 10, 4096 bytes)
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB = 256MB total
Memory: 253568KB available (5372K code, 311K data, 160K init, 0K highmem)
Hierarchical RCU implementation.
NR_IRQS:96
OX820_RPS_init_irq: interrupts 64 to 96
ox820_clocksource_init() Timer 2 running at 390625 Hz
Console: colour dummy device 80x30
console [ttyS0] enabled
Calibrating delay loop... 319.48 BogoMIPS (lpj=1597440)
Security Framework initialized
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
Calibrating local timer... 399.98MHz.
CPU1: Booted secondary processor
Calibrating delay loop... 319.48 BogoMIPS (lpj=1597440)
Brought up 2 CPUs
SMP: Total of 2 processors activated (638.97 BogoMIPS).
NET: Registered protocol family 16
Number of DMA channels = 4, version = 4
Allocating 303 SRAM generic DMA descriptors
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: Calling CRDA to update world regulatory domain
NET: Registered protocol family 2
Switched to NOHz mode on CPU #0
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
Switched to NOHz mode on CPU #1
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
NET: Registered protocol family 1
Create fragment cache
thermAndFan: initializing - NAS7820
fuse init (API version 7.12)
SGI XFS with security attributes, large block/inode numbers, no debug enabled
msgmni has been set to 495
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler anticipatory registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x44200000 (irq = 55) is a 16550A
brd: module loaded
loop: module loaded
ox820sata: OX820 sata core.
scsi0 : oxnassata
scsi1 : oxnassata
ata1: SATA max UDMA/133 irq 50
ata2: SATA max UDMA/133 irq 50
ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata1.00: ATA-8: SAMSUNG HN-M101MBB, 2AR10001, max UDMA/133
ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 0/32)
ata1.00: configured for UDMA/133
ata1: exception Emask 0x10 SAct 0x0 SErr 0x0 action 0x9 t4
ata1.00: configured for UDMA/133
ata1: EH complete
ata2: SATA link down (SStatus 0 SControl 300)
scsi 0:0:0:0: Direct-Access     ATA      SAMSUNG HN-M101M 2AR1 PQ: 0 ANSI: 5
sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
NAND device: Manufacturer ID: 0xad, Chip ID: 0xda (Hynix NAND 256MiB 3,3V 8-bit)
Scanning device for bad blocks
 sda:
Creating 2 MTD partitions on "NAND 256MiB 3,3V 8-bit":
0x000000000000-0x0000026c0000 : "Boot partition"
0x0000026c0000-0x000010000000 : "Data Partition"
UBI: attaching mtd2 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    129024 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          512 (aligned 512)
UBI: data offset:                2048
UBI: attached mtd2 to ubi0
UBI: MTD device name:            "Data Partition"
UBI: MTD device size:            217 MiB
UBI: number of good PEBs:        1738
UBI: number of bad PEBs:         0
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             0
UBI: total number of reserved PEBs: 1738
UBI: number of PEBs reserved for bad PEB handling: 17
UBI: max/mean erase counter: 11/1
UBI: image sequence number: 425135024
UBI: background thread "ubi_bgt0d" started, PID 335
GPT:disk_guids don't match.
GPT:partition_entry_array_crc32 values don't match: 0xe877fdb6 != 0x85d86836
GPT: Use GNU Parted to correct GPT errors.
 sda1 sda2 sda3
Probing for Synopsis GMAC, unit 0
eth0: use mtd hwaddr
eth0: Tuning GMAC 0 RGMII timings
eth0: PHY is Realtek RTL8211D, type 0x001cc914
eth0: GMAC ver = 53, vendor ver = 18 at 0xed400000, IRQ 40
eth0: Found PHY at address 3, type 0x001cc914 -> 10/100/1000
eth0: Ethernet addr: 00:01:d2:12:26:ce
probe() eth0: Leon x2 clock
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
Start USB clocks
oxnas-ehci oxnas-ehci.0: OXNAS EHCI Host Controller
oxnas-ehci oxnas-ehci.0: new USB bus registered, assigned bus number 1
sd 0:0:0:0: [sda] Attached SCSI disk
oxnas-ehci oxnas-ehci.0: irq 39, io mem 0x00000000
oxnas-ehci oxnas-ehci.0: USB 0.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
IRQ 53 uses trigger mode 0; requested 3
input: gpio-keys as /devices/platform/gpio-keys/input/input0
irq 54: nobody cared (try booting with the "irqpoll" option)
[<c0035ce8>] (unwind_backtrace+0x0/0xe8) from [<c007df3c>] (__report_bad_irq+0x74/0xa4)
[<c007df3c>] (__report_bad_irq+0x74/0xa4) from [<c007e0f0>] (note_interrupt+0x184/0x1f8)
[<c007e0f0>] (note_interrupt+0x184/0x1f8) from [<c007ee04>] (handle_level_irq+0xbc/0x12c)
[<c007ee04>] (handle_level_irq+0xbc/0x12c) from [<c0030058>] (asm_do_IRQ+0x58/0xb0)
[<c0030058>] (asm_do_IRQ+0x58/0xb0) from [<c0030bd8>] (__irq_svc+0x38/0xc0)
Exception stack(0xc0593ec0 to 0xc0593f08)
3ec0: c0593f18 c05c7b00 00000000 00000000 00000102 c0029130 00000000 00000000
3ee0: c0592000 c0594040 c0028000 0000000a 003ce93f c0593f08 c0057c3c c00578a0
3f00: 20000113 ffffffff
[<c0030bd8>] (__irq_svc+0x38/0xc0) from [<c00578a0>] (__do_softirq+0x48/0x13c)
[<c00578a0>] (__do_softirq+0x48/0x13c) from [<c0057c3c>] (irq_exit+0x7c/0x98)
[<c0057c3c>] (irq_exit+0x7c/0x98) from [<c0030264>] (do_local_timer+0x50/0x6c)
[<c0030264>] (do_local_timer+0x50/0x6c) from [<c0030bd8>] (__irq_svc+0x38/0xc0)
Exception stack(0xc0593f60 to 0xc0593fa8)
3f60: 60000013 00000000 00000000 c0592000 c0592000 c05b9ad0 c0598080 00004000
3f80: c05c7ae8 c0597e4c c0028000 c00297a0 00000000 c0593fa8 c0032124 c0032128
3fa0: 60000013 ffffffff
[<c0030bd8>] (__irq_svc+0x38/0xc0) from [<c0032128>] (default_idle+0x24/0x2c)
[<c0032128>] (default_idle+0x24/0x2c) from [<c0031f9c>] (cpu_idle+0x60/0x94)
[<c0031f9c>] (cpu_idle+0x60/0x94) from [<c0008c20>] (start_kernel+0x2c8/0x3b8)
[<c0008c20>] (start_kernel+0x2c8/0x3b8) from [<60008084>] (0x60008084)
handlers:
[<c02f3940>] (gpio_keys_isr+0x0/0x9c)
Disabling IRQ #54
rtc-ds1307 0-0068: rtc core: registered m41t00 as rtc0
i2c-gpio i2c-gpio.0: using pins 41 (SDA) and 42 (SCL)
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
device-mapper: ioctl: 4.15.0-ioctl (2009-04-01) initialised: dm-devel@redhat.com
Registered led device: hddaerr
Registered led device: hddberr
Registered led device: system
Registered led device: firmware
Registered led device: usbcopy
TCP cubic registered
NET: Registered protocol family 10
NET: Registered protocol family 17
RPC: Registered udp transport module.
RPC: Registered tcp transport module.
rtc-ds1307 0-0068: setting system clock to 2016-02-08 23:17:43 UTC (1454973463)
md: Waiting for all devices to be available before autodetect
md: If you don't use raid, use raid=noautodetect
md: Autodetecting RAID arrays.
md: Scanned 0 and added 0 devices.
md: autorun ...
md: ... autorun DONE.
EXT3-fs: sda1: couldn't mount because of unsupported optional features (240).
EXT2-fs: sda1: couldn't mount because of unsupported optional features (240).
EXT4-fs (sda1): barriers enabled
kjournald2 starting: pid 375, dev sda1:8, commit interval 5 seconds
EXT4-fs (sda1): internal journal on sda1:8
EXT4-fs (sda1): delayed allocation enabled
EXT4-fs: file extents enabled
EXT4-fs: mballoc enabled
EXT4-fs (sda1): mounted filesystem with ordered data mode
VFS: Mounted root (ext4 filesystem) on device 8:1.
Freeing init memory: 160K
Entering non-interactive startup



Edited 3 time(s). Last edit at 02/08/2016 03:20PM by tilator.
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
February 08, 2016 03:12PM
Hi tilator,

Let's keep the conversation in this thread. As I mentioned in the u-boot thread, it would be informative to see serial boot log for stock kernel to get some hints about which extra commands were executed during stock kernel startup.

And please use code tag.

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



Edited 1 time(s). Last edit at 02/08/2016 03:13PM by bodhi.
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
February 08, 2016 03:33PM
What's the difference between the 2 boots for kernel 4.4?

The first boot has panic,

[    0.000000] Linux version 4.4.0 (harri@Iomega2) (gcc version 4.6.3 (Debian 4.6.3-14) ) #5 SMP Mon Feb 8 18:07:54 EET 2016
<snip>
[    4.141877] Unable to handle kernel paging request at virtual address b6e75f50
[    4.149071] pgd = cfaf8000
[    4.151756] [b6e75f50] *pgd=6fadf831, *pte=6ede459f, *ppte=6ede4e6e
[    4.158003] Internal error: Oops: 17 [#1] SMP ARM
[    4.162677] Modules linked in:
[    4.165711] CPU: 0 PID: 1 Comm: init Not tainted 4.4.0 #5
[    4.171077] Hardware name: PLXTECH NAS782X SoC (Flattened Device Tree)
[    4.177566] task: cf844000 ti: cf848000 task.ti: cf848000
[    4.182940] PC is at v6wbi_flush_user_tlb_range+0x28/0x48


and 2nd boot does not

[    0.000000] Linux version 4.4.0 (harri@Iomega2) (gcc version 4.6.3 (Debian 4.6.3-14) ) #5 SMP Mon Feb 8 18:07:54 EET 2016
<snip>
[    3.168542] EXT4-fs (sda1): couldn't mount as ext3 due to feature incompatibilities
[    3.194222] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[    3.201994] VFS: Mounted root (ext4 filesystem) readonly on device 8:1.
[    3.215183] devtmpfs: mounted
[    3.218618] Freeing unused kernel memory: 196K (c06db000 - c070c000)

-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)
February 08, 2016 05:02PM
Second boot just hang up.

Only difference is, first boot has booting with original kernel before this. Second has booting with 4.4.0 kernel (with hang and panic) before it.
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
February 08, 2016 05:26PM
Sorry I'm not sure I understood.

I'm interested in what make the boot that has no kernel panic successful running until 3.218618 seconds:

## Booting kernel from Legacy Image at 60500000 ...
   Image Name:   Linux-4.4.0
   Image Type:   ARM Linux Kernel Image (uncompressed)

<snip>

[    3.218618] Freeing unused kernel memory: 196K (c06db000 - c070c000)

Was it a cold boot, or was it a reboot? If a reboot, was stock kernel running before it?

-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)
February 08, 2016 05:29PM
The 2nd case is the boot when kernel panic occured at 4.15 seconds:

[    4.158003] Internal error: Oops: 17 [#1] SMP ARM
[    4.162677] Modules linked in:
[    4.165711] CPU: 0 PID: 1 Comm: init Not tainted 4.4.0 #5
[    4.171077] Hardware name: PLXTECH NAS782X SoC (Flattened Device Tree)
[    4.177566] task: cf844000 ti: cf848000 task.ti: cf848000
[    4.182940] PC is at v6wbi_flush_user_tlb_range+0x28/0x48
[    4.188318] LR is at on_each_cpu_mask+0x58/0x60

Was it a cold boot? or reboot? if reboot, what was running before reboot?

-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)
February 08, 2016 05:39PM
bodhi Wrote:
-------------------------------------------------------
> Sorry I'm not sure I understood.
>
> I'm interested in what make the boot that has no
> kernel panic successful running until 3.218618
> seconds:
>
>
> ## Booting kernel from Legacy Image at 60500000
> ...
>    Image Name:   Linux-4.4.0
>    Image Type:   ARM Linux Kernel Image
> (uncompressed)
> 
> <snip>
> 
> [    3.218618] Freeing unused kernel memory: 196K
> (c06db000 - c070c000)
>
>
> Was it a cold boot, or was it a reboot? If a
> reboot, was stock kernel running before it?


I think I can see that this actually was not successful. Did it just hang here?

-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)
February 08, 2016 06:15PM
> > Was it a cold boot, or was it a reboot? If a
> > reboot, was stock kernel running before it?
>
>
> I think I can see that this actually was not
> successful. Did it just hang here?

Actually you are right.

After cold boot it simply freezes here:

[    3.581611] EXT4-fs (sda1): couldn't mount as ext3 due to feature incompatibilities
[    3.607293] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[    3.615034] VFS: Mounted root (ext4 filesystem) readonly on device 8:1.
[    3.628257] devtmpfs: mounted
[    3.631726] Freeing unused kernel memory: 196K (c06db000 - c070c000)

Rebooting from older kernel produces kernel panic.

B.T.W root partition is ext4, but is there some recognition problem since it says it's ext3? The trouble has to be there.

I did try GPT and MSDOS partition tables. Both freeze here with readonly root file system.
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
February 08, 2016 06:33PM
bodhi Wrote:
-------------------------------------------------------
> tilator,
>
> Ah, I did not know openWRT has realeased kernel
> 4.4. That's a really good source, I should go look
> at their patch.
>
> I've only published up to the 4.1 patch in this
> thread. I'm still working on patch 4.4.

It does not look like they have 4.4 yet. Currently they are at 4.0.

https://dev.openwrt.org/browser/trunk/target/linux/oxnas?rev=45711&order=name

-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)
February 09, 2016 12:18AM
tilator,

> B.T.W root partition is ext4, but is there some
> recognition problem since it says it's ext3? The
> trouble has to be there.
>
> I did try GPT and MSDOS partition tables. Both
> freeze here with readonly root file system.

No, I think it is not related. Usually if your rootfs fs has error, then it will become read-only. Try taking it to another box if possible and run e2fsck.

My guess is currently the kernel panic has hung the whole thing before it boots to initramfs prompt, so you can't fix the fs errors (if any) in a maintenance shell.

I'm hopeful that I will likely get this kernel panic figured out, and get 4.4 running.

-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)
February 09, 2016 12:32AM
> It does not look like they have 4.4 yet. Currently
> they are at 4.0.
>
> https://dev.openwrt.org/browser/trunk/target/linux
> /oxnas?rev=45711&order=name

How about this:

https://dev.openwrt.org/browser/trunk/target/linux/oxnas
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
February 09, 2016 01:03AM
tilator Wrote:
-------------------------------------------------------
> > It does not look like they have 4.4 yet.
> Currently
> > they are at 4.0.
> >
> >
> https://dev.openwrt.org/browser/trunk/target/linux
>
> > /oxnas?rev=45711&order=name
>
> How about this:
>
> https://dev.openwrt.org/browser/trunk/target/linux
> /oxnas

Damn! I guess I don't know how to navigate openWRT repo :) In any case, I've just got passed this kernel panic and getting back to a good baseline.

-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)
February 09, 2016 01:55AM
> In any case, I've just got passed this
> kernel panic and getting back to a good baseline.

I still wonder what to do. I did already try to make partition table and everything twice. I even changed from GPT to MSDOS. Nothing changed.

And - it always boots with an older kernel. It's only this newer kernel having "readonly root" problem.

There is u-boot 2014.10 available with sata support with the Openwrt source. It makes u-boot, but does not make stage1 (spl). I did try it using 2013.10 stage1 and 2014.10 u-boot. Result is always the same. Readonly root device.
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
February 09, 2016 02:38AM
I'm at 2015.10 for u-boot:
http://forum.doozan.com/read.php?3,16017

But I don't think u-boot is related at all to your problem with RO rootfs. Most likely the rootfs fs was set to RO due to the kernel booting problem.

I'm making a clean build. If it boots successful, I'll let you know.

-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)
February 09, 2016 03:41AM
bodhi Wrote:
-------------------------------------------------------
> I'm at 2015.10 for u-boot:
> http://forum.doozan.com/read.php?3,16017
>
> But I don't think u-boot is related at all to your
> problem with RO rootfs. Most likely the rootfs fs
> was set to RO due to the kernel booting problem.

I agree. This has to be kernel problem. I have just been trying everything.

> I'm making a clean build. If it boots successful,
> I'll let you know.

I'll wait what you find out. What device do you have to test it?

I'm also compiling kernel again with different settings. Partition or file system settings are what I expect to give solution here.
Re: Linux Kernel 4.1 Pogo V3 (Oxnas OX820) package and rootfs (Flattened Device Tree)
February 09, 2016 07:09AM
I suppose the problem might be this:

OX820 processor can only boot from sata if there are some special bytes in start of the disk.

The bytes are set using this script:

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

It might be this that prevents kernel booting properly.
Sorry, you can't reply to this topic. It has been closed.