Re: [OpenWrt-Devel] ar71xx: Update to 3.14 [Flash Erasing / Bandwidth ]

2014-08-11 Thread Andre Valentin

Hi Daniel,

thanks for the hint. I will check it the next days. I'm now a bit busy.
Also I noticed that TCP throughput went from 15MBit/s PPPoE to 6 MBit/s.
It seems it is about codel, because all streams get the same rate, if using 
multiple.
I jut want to share my expierence with 3.14 so the developer has some hints.

Kind regards,

On 10.08.2014 15:00, Daniel Golle wrote:

Hi Andre,

there were some changes related to fastmap, I suspect that
commit c22301ad4fa0f4cf71e9c877d072e6f07a0bf682
UBI: fastmap: fix backward compatibility with image_seq
or something related might cause the problem you observe.

How excactly did you flash the image to the device?

Cheers

Daniel

On Sat, Aug 09, 2014 at 08:54:42PM +0200, Andre Valentin wrote:

Hi Daniel!

Please take a look at this (old kernel 3.10)
[3.42] UBI: attaching mtd8 to ubi0
[3.57] UBI: EOF marker found, PEBs from 105 will be erased
[3.58] UBI: scanning is finished
[3.61] UBI: attached mtd8 (name ubiroot, size 249 MiB) to ubi0
[3.61] UBI: PEB size: 131072 bytes (128 KiB), LEB size: 126976 bytes
[3.62] UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 2048
[3.63] UBI: VID header offset: 2048 (aligned 2048), data offset: 4096
[3.63] UBI: good PEBs: 1992, bad PEBs: 0, corrupted PEBs: 0
[3.64] UBI: user volume: 2, internal volumes: 1, max. volumes count: 128
[3.65] UBI: max/mean erase counter: 0/0, WL threshold: 4096, image 
sequence number: 975457251
[3.66] UBI: available PEBs: 791, total reserved PEBs: 1201, PEBs 
reserved for bad PEB handling: 40
[3.67] UBI: background thread ubi_bgt0d started, PID 274
[3.68] mtd: device 9 (rootfs) set to be root filesystem

And here the new one:
[3.53] UBI: auto-attach mtd8
[3.53] UBI: attaching mtd8 to ubi0
[3.85] UBI error: scan_peb: bad image sequence number 811584292 in PEB 
224, expected 1326740447
[3.86] Erase counter header dump:
[3.86]  magic  0x55424923
[3.86]  version1
[3.87]  ec 1
[3.87]  vid_hdr_offset 2048
[3.87]  data_offset4096
[3.88]  image_seq  811584292
[3.88]  hdr_crc0xa455ffb3
[3.88] erase counter header hexdump:
[3.89] UBI error: ubi_attach_mtd_dev: failed to attach mtd8, error -22
[3.90] UBI error: ubi_auto_attach: cannot attach mtd8

Are you sure about this? This Flash image is about 25 MiB, like the old one. So 
PEB 224 is in the area where ubi should erase all.
Seems to me that the erasing of the additional space is not done.
Also the message about the EOF marker is not displayed. Has there something 
changed between 3.10 and 3.14?

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@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] ar71xx: Update to 3.14

2014-08-09 Thread Andre Valentin

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.00] Linux version 3.14.16 (avalentin@varus) (gcc version 4.8.3 
(OpenWrt/Linaro GCC 4.8-2014.04 r42002) ) #1 Fri Aug 8 11:52:10 CEST 2014
[0.00] bootconsole [early0] enabled
[0.00] CPU0 revision is: 00019750 (MIPS 74Kc)
[0.00] SoC: Qualcomm Atheros QCA9558 rev 0
[0.00] Determined physical RAM map:
[0.00]  memory: 0800 @  (usable)
[0.00] User-defined physical RAM map:
[0.00]  memory: 1000 @  (usable)
[0.00] Initrd not found or empty - disabling initrd
[0.00] Zone ranges:
[0.00]   Normal   [mem 0x-0x0fff]
[0.00] Movable zone start for each node
[0.00] Early memory node ranges
[0.00]   node   0: [mem 0x-0x0fff]
[0.00] Reserving 0MB of memory at 0MB for crashkernel
[0.00] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[0.00] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 
bytes
[0.00] Built 1 zonelists in Zone order, mobility grouping on.  Total 
pages: 65024
[0.00] 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.00] PID hash table entries: 1024 (order: 0, 4096 bytes)
[0.00] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[0.00] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[0.00] Writing ErrCtl register=
[0.00] Readback ErrCtl register=
[0.00] Memory: 255864K/262144K available (2701K kernel code, 126K 
rwdata, 360K rodata, 196K init, 193K bss, 6280K reserved)
[0.00] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[0.00] NR_IRQS:51
[0.00] Clocks: CPU:720.000MHz, DDR:600.000MHz, AHB:200.000MHz, 
Ref:40.000MHz
[0.00] Calibrating delay loop... 358.80 BogoMIPS (lpj=1794048)
[0.06] pid_max: default: 32768 minimum: 301
[0.06] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[0.07] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[0.07] NET: Registered protocol family 16
[0.08] MIPS: machine is Zyxel NBG6716
[0.13] ar724x-pci ar724x-pci.0: PCIe link is down
[0.13] registering PCI controller with io_map_base unset
[0.14] registering PCI controller with io_map_base unset
[0.55] bio: create slab bio-0 at 0
[0.55] PCI host bridge to bus :00
[0.56] pci_bus :00: root bus resource [mem 0x1000-0x11ff]
[0.56] pci_bus :00: root bus resource [io  0x]
[0.57] pci_bus :00: No busn resource found for root bus, will use 
[bus 00-ff]
[0.57] PCI host bridge to bus :01
[0.58] pci_bus :01: root bus resource [mem 0x1200-0x13ff]
[0.58] pci_bus :01: root bus resource [io  0x0001]
[0.59] pci_bus :01: No busn resource found for root bus, will use 
[bus 01-ff]
[0.59] pci :01:00.0: BAR 0: assigned [mem 0x1200-0x121f 
64bit]
[0.60] pci :01:00.0: BAR 6: assigned [mem 0x1220-0x1220 
pref]
[0.60] pci :01:00.0: using irq 41 for pin 1
[0.61] Switched to clocksource MIPS
[0.61] NET: Registered protocol family 2
[0.62] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[0.62] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[0.63] TCP: Hash tables configured (established 2048 bind 2048)
[0.64] TCP: reno registered
[0.64] UDP hash table entries: 256 (order: 0, 4096 bytes)
[0.64] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[0.65] NET: Registered protocol family 1
[0.66] futex hash table entries: 256 (order: -1, 3072 bytes)
[0.67] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[0.68] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) 
(CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[0.69] msgmni has been set to 499
[0.69] io scheduler noop registered
[0.70] io scheduler deadline registered (default)
[0.70] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[0.73] serial8250.0: ttyS0 at MMIO 0x1802 (irq = 11, base_baud = 
250) is a 16550A
[0.74] console [ttyS0] enabled
[0.74] console [ttyS0] enabled
[0.75] bootconsole [early0] disabled
[0.75] bootconsole [early0] disabled
[0.76] m25p80 spi0.0: found mx25l12805d, expected m25p80
[0.76] m25p80 spi0.0: mx25l12805d (16384 Kbytes)
[0.77] 4 cmdlinepart partitions found on MTD device spi0.0
[

Re: [OpenWrt-Devel] ar71xx: Update to 3.14

2014-08-09 Thread Daniel Golle
Hi Andre!

Does the bootloader itself support UBI?
If not, flashing a raw ubinized image directly to NAND might or might not
work, depending on whether the NAND chip got any badblocks on areas used by UBI.
Building a UBI-capable U-Boot loader (either to replace the factory loader or
as a 2nd stage loader) is one way to solve this, booting an kernel+initramdisk
installer to perform the initial ubiformat is another way.

Hope that helps!


On Sat, Aug 09, 2014 at 01:06:41PM +0200, Andre Valentin wrote:
 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.00] Linux version 3.14.16 (avalentin@varus) (gcc version 4.8.3 
 (OpenWrt/Linaro GCC 4.8-2014.04 r42002) ) #1 Fri Aug 8 11:52:10 CEST 2014
 [0.00] bootconsole [early0] enabled
 [0.00] CPU0 revision is: 00019750 (MIPS 74Kc)
 [0.00] SoC: Qualcomm Atheros QCA9558 rev 0
 [0.00] Determined physical RAM map:
 [0.00]  memory: 0800 @  (usable)
 [0.00] User-defined physical RAM map:
 [0.00]  memory: 1000 @  (usable)
 [0.00] Initrd not found or empty - disabling initrd
 [0.00] Zone ranges:
 [0.00]   Normal   [mem 0x-0x0fff]
 [0.00] Movable zone start for each node
 [0.00] Early memory node ranges
 [0.00]   node   0: [mem 0x-0x0fff]
 [0.00] Reserving 0MB of memory at 0MB for crashkernel
 [0.00] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
 [0.00] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 
 32 bytes
 [0.00] Built 1 zonelists in Zone order, mobility grouping on.  Total 
 pages: 65024
 [0.00] 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.00] PID hash table entries: 1024 (order: 0, 4096 bytes)
 [0.00] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
 [0.00] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
 [0.00] Writing ErrCtl register=
 [0.00] Readback ErrCtl register=
 [0.00] Memory: 255864K/262144K available (2701K kernel code, 126K 
 rwdata, 360K rodata, 196K init, 193K bss, 6280K reserved)
 [0.00] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
 [0.00] NR_IRQS:51
 [0.00] Clocks: CPU:720.000MHz, DDR:600.000MHz, AHB:200.000MHz, 
 Ref:40.000MHz
 [0.00] Calibrating delay loop... 358.80 BogoMIPS (lpj=1794048)
 [0.06] pid_max: default: 32768 minimum: 301
 [0.06] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
 [0.07] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 
 bytes)
 [0.07] NET: Registered protocol family 16
 [0.08] MIPS: machine is Zyxel NBG6716
 [0.13] ar724x-pci ar724x-pci.0: PCIe link is down
 [0.13] registering PCI controller with io_map_base unset
 [0.14] registering PCI controller with io_map_base unset
 [0.55] bio: create slab bio-0 at 0
 [0.55] PCI host bridge to bus :00
 [0.56] pci_bus :00: root bus resource [mem 0x1000-0x11ff]
 [0.56] pci_bus :00: root bus resource [io  0x]
 [0.57] pci_bus :00: No busn resource found for root bus, will use 
 [bus 00-ff]
 [0.57] PCI host bridge to bus :01
 [0.58] pci_bus :01: root bus resource [mem 0x1200-0x13ff]
 [0.58] pci_bus :01: root bus resource [io  0x0001]
 [0.59] pci_bus :01: No busn resource found for root bus, will use 
 [bus 01-ff]
 [0.59] pci :01:00.0: BAR 0: assigned [mem 0x1200-0x121f 
 64bit]
 [0.60] pci :01:00.0: BAR 6: assigned [mem 0x1220-0x1220 
 pref]
 [0.60] pci :01:00.0: using irq 41 for pin 1
 [0.61] Switched to clocksource MIPS
 [0.61] NET: Registered protocol family 2
 [0.62] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
 [0.62] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
 [0.63] TCP: Hash tables configured (established 2048 bind 2048)
 [0.64] TCP: reno registered
 [0.64] UDP hash table entries: 256 (order: 0, 4096 bytes)
 [0.64] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
 [0.65] NET: Registered protocol family 1
 [0.66] futex hash table entries: 256 (order: -1, 3072 bytes)
 [0.67] squashfs: version 4.0 (2009/01/31) Phillip Lougher
 [0.68] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) 
 (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
 [0.69] msgmni has been set to 499
 [0.69] io scheduler noop registered
 [