[OpenWrt-Devel] ar71xx: Update to 3.14

Andre Valentin avalentin at marcant.net
Sat Aug 9 07:06:41 EDT 2014


Hi Felix!

I saw that you upgraded ar71xx to 3.14. I tested it immediateley, of course. It seems there is a problem with ubi. Please take a look at this:

[    0.000000] Linux version 3.14.16 (avalentin at varus) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r42002) ) #1 Fri Aug 8 11:52:10 CEST 2014
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019750 (MIPS 74Kc)
[    0.000000] SoC: Qualcomm Atheros QCA9558 rev 0
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 08000000 @ 00000000 (usable)
[    0.000000] User-defined physical RAM map:
[    0.000000]  memory: 10000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x0fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x0fffffff]
[    0.000000] Reserving 0MB of memory at 0MB for crashkernel
[    0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
[    0.000000] Kernel command line:  board=NBG6716 console=ttyS0,115200 mtdparts=spi0.0:256k(u-boot)ro,64k(env)ro,64k(RFdata)ro,-(nbu);ar934x-nfc:2048k(zyxel_rfsd),2048k(romd),1024k(header),2048k(kernel),-(ubi) mem=256M rootfstype=squashfs noinitrd
[    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] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 255864K/262144K available (2701K kernel code, 126K rwdata, 360K rodata, 196K init, 193K bss, 6280K reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Clocks: CPU:720.000MHz, DDR:600.000MHz, AHB:200.000MHz, Ref:40.000MHz
[    0.000000] Calibrating delay loop... 358.80 BogoMIPS (lpj=1794048)
[    0.060000] pid_max: default: 32768 minimum: 301
[    0.060000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.070000] NET: Registered protocol family 16
[    0.080000] MIPS: machine is Zyxel NBG6716
[    0.130000] ar724x-pci ar724x-pci.0: PCIe link is down
[    0.130000] registering PCI controller with io_map_base unset
[    0.140000] registering PCI controller with io_map_base unset
[    0.550000] bio: create slab <bio-0> at 0
[    0.550000] PCI host bridge to bus 0000:00
[    0.560000] pci_bus 0000:00: root bus resource [mem 0x10000000-0x11ffffff]
[    0.560000] pci_bus 0000:00: root bus resource [io  0x0000]
[    0.570000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[    0.570000] PCI host bridge to bus 0000:01
[    0.580000] pci_bus 0000:01: root bus resource [mem 0x12000000-0x13ffffff]
[    0.580000] pci_bus 0000:01: root bus resource [io  0x0001]
[    0.590000] pci_bus 0000:01: No busn resource found for root bus, will use [bus 01-ff]
[    0.590000] pci 0000:01:00.0: BAR 0: assigned [mem 0x12000000-0x121fffff 64bit]
[    0.600000] pci 0000:01:00.0: BAR 6: assigned [mem 0x12200000-0x1220ffff pref]
[    0.600000] pci 0000:01:00.0: using irq 41 for pin 1
[    0.610000] Switched to clocksource MIPS
[    0.610000] NET: Registered protocol family 2
[    0.620000] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    0.620000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.630000] TCP: Hash tables configured (established 2048 bind 2048)
[    0.640000] TCP: reno registered
[    0.640000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.640000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.650000] NET: Registered protocol family 1
[    0.660000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.670000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.680000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.690000] msgmni has been set to 499
[    0.690000] io scheduler noop registered
[    0.700000] io scheduler deadline registered (default)
[    0.700000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.730000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 2500000) is a 16550A
[    0.740000] console [ttyS0] enabled
[    0.740000] console [ttyS0] enabled
[    0.750000] bootconsole [early0] disabled
[    0.750000] bootconsole [early0] disabled
[    0.760000] m25p80 spi0.0: found mx25l12805d, expected m25p80
[    0.760000] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[    0.770000] 4 cmdlinepart partitions found on MTD device spi0.0
[    0.770000] Creating 4 MTD partitions on "spi0.0":
[    0.780000] 0x000000000000-0x000000040000 : "u-boot"
[    0.780000] 0x000000040000-0x000000050000 : "env"
[    0.790000] 0x000000050000-0x000000060000 : "RFdata"
[    0.800000] 0x000000060000-0x000001000000 : "nbu"
[    0.800000] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xda
[    0.810000] nand: Hynix NAND 256MiB 3,3V 8-bit
[    0.810000] nand: 256MiB, SLC, page size: 2048, OOB size: 64
[    0.820000] Scanning device for bad blocks
[    0.990000] random: nonblocking pool is initialized
[    1.000000] 5 cmdlinepart partitions found on MTD device ar934x-nfc
[    1.010000] Creating 5 MTD partitions on "ar934x-nfc":
[    1.010000] 0x000000000000-0x000000200000 : "zyxel_rfsd"
[    1.020000] 0x000000200000-0x000000400000 : "romd"
[    1.020000] 0x000000400000-0x000000500000 : "header"
[    1.030000] 0x000000500000-0x000000700000 : "kernel"
[    1.040000] 0x000000700000-0x000010000000 : "ubi"
[    1.070000] switch0: Atheros AR8337 rev. 2 switch registered on ag71xx-mdio.0
[    2.310000] libphy: ag71xx_mdio: probed
[    2.940000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.0:00 [uid=004dd036, driver=Atheros AR8216/AR8236/AR8316]
[    2.950000] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:RGMII
[    3.500000] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:SGMII
[    3.510000] TCP: cubic registered
[    3.520000] NET: Registered protocol family 17
[    3.520000] 8021q: 802.1Q VLAN Support v1.8
[    3.530000] UBI: auto-attach mtd8
[    3.530000] UBI: attaching mtd8 to ubi0
[    3.850000] UBI error: scan_peb: bad image sequence number 811584292 in PEB 224, expected 1326740447
[    3.860000] Erase counter header dump:
[    3.860000] 	magic          0x55424923
[    3.860000] 	version        1
[    3.870000] 	ec             1
[    3.870000] 	vid_hdr_offset 2048
[    3.870000] 	data_offset    4096
[    3.880000] 	image_seq      811584292
[    3.880000] 	hdr_crc        0xa455ffb3
[    3.880000] erase counter header hexdump:
[    3.890000] UBI error: ubi_attach_mtd_dev: failed to attach mtd8, error -22
[    3.900000] UBI error: ubi_auto_attach: cannot attach mtd8
[    3.900000] UBIFS error (pid 1): ubifs_mount: cannot open "ubi0:rootfs", error -19
[    3.910000] VFS: Cannot open root device "(null)" or unknown-block(0,0): error -6
[    3.920000] Please append a correct "root=" boot option; here are the available partitions:
[    3.930000] 1f00             256 mtdblock0  (driver?)
[    3.930000] 1f01              64 mtdblock1  (driver?)
[    3.940000] 1f02              64 mtdblock2  (driver?)
[    3.940000] 1f03           16000 mtdblock3  (driver?)
[    3.950000] 1f04            2048 mtdblock4  (driver?)
[    3.950000] 1f05            2048 mtdblock5  (driver?)
[    3.960000] 1f06            1024 mtdblock6  (driver?)
[    3.960000] 1f07            2048 mtdblock7  (driver?)
[    3.970000] 1f08          254976 mtdblock8  (driver?)
[    3.970000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

The image has been flashed via bootloader. (This is the first boot log!) Before, this was no problem. Now it only works
if I upgrade an existing system or if I create the ubi0 manually. Here is the ubinfo -a output for this image:

UBI version:                    1
Count of UBI devices:           1
UBI control device major/minor: 10:60
Present UBI devices:            ubi0

ubi0
Volumes count:                           2
Logical eraseblock size:                 126976 bytes, 124.0 KiB
Total amount of logical eraseblocks:     1992 (252936192 bytes, 241.2 MiB)
Amount of available logical eraseblocks: 0 (0 bytes)
Maximum count of volumes                 128
Count of bad physical eraseblocks:       0
Count of reserved physical eraseblocks:  40
Current maximum erase counter value:     2
Minimum input/output unit size:          2048 bytes
Character device major/minor:            253:0
Present volumes:                         0, 1

Volume ID:   0 (on ubi0)
Type:        dynamic
Alignment:   1
Size:        174 LEBs (22093824 bytes, 21.1 MiB)
State:       OK
Name:        rootfs
Character device major/minor: 253:1
-----------------------------------
Volume ID:   1 (on ubi0)
Type:        dynamic
Alignment:   1
Size:        1774 LEBs (225255424 bytes, 214.8 MiB)
State:       OK
Name:        rootfs_data
Character device major/minor: 253:2

Kind regards,

André

-- 
Mit freundlichen Grüßen,
André Valentin
Projektkoordination / Systemadministration

MarcanT GmbH, Ravensberger Str. 10 G, D - 33602 Bielefeld
Fon: +49 (521) 95945-0 | Fax -18
URL: http://www.marcant.net | http://www.global-m2m.com

Geschäftsführer: Thorsten Hojas
Handelsregister: AG Bielefeld, HRB 35827 USt-ID Nr.: DE 190203238
___________________________________________________________
CONFIDENTIALITY NOTICE
The contents of this email are confidential to the ordinary user of the
email address to which it was addressed and may also be privileged. If
you are not the addressee of this email you may not copy, forward,
disclose or otherwise use it or any part of it in any form whatsoever.
If you have received this email in error please email the sender by
replying to this message.
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel



More information about the openwrt-devel mailing list