[LEDE-DEV] ar7 (TI AR7): update to kernel 4.4, please test

Mohammed Berdai mohammed.berdai at gmail.com
Tue Sep 20 13:57:52 PDT 2016


On 09/18/2016 04:18 PM, Hauke Mehrtens wrote:
> Hi,
> 
> I updated the ar7 target to kernel 4.4 in this branch:
> https://git.lede-project.org/?p=lede/hauke/staging.git;a=shortlog;h=refs/heads/kernel-4.4
> 
> If you have any device supported by this target please test it and
> report back if the ar7 target is still working with kernel 4.4 like
> with the old kernel or if you see new problems. Please report back if it
> worked and if it does not work. I only compile tested this because I do
> not have this hardware.
> 
> Having the target at kennel 4.4 is a requirement to get it into the next
> release.
> 
> Hauke
> 
> _______________________________________________
> Lede-dev mailing list
> Lede-dev at lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/lede-dev
> 

Hi,

I tested your git rep before kernel 4.4 commit and after it.

I have Dlink DSL-624 and DSL-524. They have identical hardware. The former has a Wifi card.

I have already tested John's (blogic)) repo when he tried to port AR7 to 4.4 and reported back.

These are the results:

before 4.4 commit (kernel 3.18.29):
 * Ethernet ports work (ping works)
 * via UART, boot msgs appear almost normal except two/three lines
 * also via UART, greeting msg and results of commands appear scrambled however,
   late msgs from boot like   random: nonblocking pool is initialized  still appear normal


after 4.4 commit:
 * no response from pinging at 192.168.1.1. In some rare cases I get only one response during early boot.
 * large portion of boot msgs get omitted after 10 seconds
 * no results are shown when issuing commands via UART.


These issues happened exactly the same as John's attempt to port 4.4 two months ago


Mohammed,


here are bootlogs:

Before 4.4
ADAM2 Revision 0.22.02_b04_Mar  9 2005
(C) Copyright 1996-2003 Texas Instruments Inc. All Rights Reserved.
(C) Copyright 2003 Telogy Networks, Inc.
Usage: setmfreq [-d] [-s sys_freq, in MHz] [cpu_freq, in MHz]
Memory optimization Complete!

Adam2_AR7RD > 
Press any key to abort OS load, or wait 7 seconds for OS to boot...
[    0.000000] Linux version 3.18.29 (rave at ravebox) (gcc version 5.4.0 (LEDE GCC 5.4.0 r1619) ) #0 Sat Sep 17 19:43:29 2016
[    0.000000] ar7-gpio: registered 32 GPIOs
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00018448 (MIPS 4KEc)
[    0.000000] TI AR7 (TNETD7300), ID: 0x0005, Revision: 0x27
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 01000000 @ 14000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x14000000-0x14ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x14000000-0x14ffffff]
[    0.000000] Initmem setup node 0 [mem 0x14000000-0x14ffffff]
[    0.000000] Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 16 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
[    0.000000] Kernel command line:  console=ttyS0,38400n8 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 64 (order: -4, 256 bytes)
[    0.000000] Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Memory: 11244K/16384K available (2867K kernel code, 114K rwdata, 564K rodata, 156K init, 196K bss, 5140K reserved)
[    0.000000] NR_IRQS:256
[    0.000000] Calibrating delay loop... 148.88 BogoMIPS (lpj=744448)
[    0.080000] pid_max: default: 32768 minimum: 301
[    0.090000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.100000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.120000] NET: Registered protocol family 16
[    0.160000] Switched to clocksource MIPS
[    0.170000] NET: Registered protocol family 2
[    0.190000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.210000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.230000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.250000] TCP: reno registered
[    0.260000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.280000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.300000] NET: Registered protocol family 1
[    0.380000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.430000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.440000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.480000] msgmni has been set to 21
[    0.500000] io scheduler noop registered
[    0.510000] io scheduler deadline registered (default)
[    0.520000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.540000] serial8250: ttyS0 at MMIO 0x8610e00 (irq = 15, base_baud = 3906250) is a TI-AR7
[    0.570000] console [ttyS0] enabled
[    0.570000] console [ttyS0] enabled
[    0.590000] bootconsole [early0] disabled
[    0.590000] bootconsole [early0] disabled
[    0.620000] serial8250: ttyS1 at MMIO 0x8610f00 (irq = 16, base_baud = 3906250) is a TI-AR7
[    0.650000] physmap platform flash device: 02000000 at 10000000
[    0.670000] physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000001 Chip ID 0x0022f9
[    0.700000] Amd/Fujitsu Extended Query Table at 0x0040
[    0.720000]   Amd/Fujitsu Extended Query version 1.1.
[    0.730000] number of CFI chips: 1
[    0.750000] 4 ar7part partitions found on MTD device physmap-flash.0
[    0.770000] Creating 4 MTD partitions on "physmap-flash.0":
[    0.790000] 0x000000000000-0x000000010000 : "loader"
[    0.810000] 0x0000003f0000-0x000000400000 : "config"
[    0.830000] 0x000000010000-0x0000003f0000 : "linux"
[    0.850000] 0x000000137547-0x0000003f0000 : "rootfs"
[    0.870000] mtd: device 3 (rootfs) set to be root filesystem
[    0.890000] 1 squashfs-split partitions found on MTD device rootfs
[    0.910000] 0x0000002c0000-0x0000003f0000 : "rootfs_data"
[    0.970000] libphy: Fixed MDIO Bus: probed
[    1.300000] libphy: cpmac-mii: probed
[    1.370000] cpmac cpmac.1: regs: 08612800, irq: 41, phy: fixed-0:01, mac: 00:17:9a:7c:2f:f0
[    1.460000] cpmac cpmac.0: regs: 08610000, irq: 27, phy: fixed-0:00, mac: 00:17:9a:7c:2f:f0
[    1.490000] vlynq0: regs 0x08611800, irq 29, mem 0x04000000
[    2.420000] vlynq1: regs 0x08611c00, irq 33, mem 0x0c000000
[    3.340000] TCP: cubic registered
[    3.350000] NET: Registered protocol family 10
[    3.370000] NET: Registered protocol family 17
[    3.390000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    3.420000] 8021q: 802.1Q VLAN Support v1.8
[    3.460000] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[    3.510000] Freeing prom memory: 1020k freed
[    3.530000] Freeing unused kernel memory: 156K (94479000 - 944a0000)
[    5.620000] init: Console is alive
[    6.560000] init: - preinit -
[    7.390000] random: jshn urandom read with 11 bits of entropy available
eers 3d g
         [    8.500000] eth0: Link is Up - 100Mbps/Full - flow control off
[   11.570000] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[   11.610000] urandom-seed: Seed file not found (/etc/urandom.seed)
[   11.970000] procd: - early -
[   12.550000] eth0: Link is Down
[   12.740000] procd: - ubus -
[   12.860000] procd: - init -
ttt
   [   13.990000] NET: Registered protocol family 8
[   14.010000] NET: Registered protocol family 20
[   14.050000] PPP generic driver version 2.4.2
[   14.090000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   14.190000] registered device TI Avalanche SAR
[   14.210000] Sangam detected
[   14.220000] requesting firmware image "ar0700xx.bin"
[   16.850000] tn7dsl_set_modulation : Setting mode to 0xffff
[   16.870000] Creating new root folder avalanche in the proc for the driver stats 
[   16.900000] Texas Instruments ATM driver: version:[7.03.01.00]
[   16.940000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   17.000000] nf_conntrack version 0.5.0 (194 buckets, 776 max)
[   17.090000] NET: Registered protocol family 24
[   17.200000] xt_time: kernel timezone is -0000
[   32.300000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[   32.340000] jffs2_build_filesystem(): unlocking the mtd device... done.
[   32.360000] jffs2_build_filesystem(): erasing all blocks after the end marker... 
[   34.280000] device eth0 entered promiscuous mode
[   34.340000] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   34.640000] device eth1 entered promiscuous mode
[   34.660000] br-lan: port 2(eth1) entered forwarding state
[   34.680000] br-lan: port 2(eth1) entered forwarding state
[   34.700000] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   35.030000] eth0: Link is Up - 100Mbps/Full - flow control off
[   35.270000] eth1: Link is Up - 100Mbps/Full - flow control off
[   35.300000] br-lan: port 1(eth0) entered forwarding state
[   35.310000] br-lan: port 1(eth0) entered forwarding state
[   36.680000] br-lan: port 2(eth1) entered forwarding state
[   37.310000] br-lan: port 1(eth0) entered forwarding state
[   44.300000] done.
[   44.300000] jffs2: notice: (571) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.



 l
  __/   _ |_|_ o   ---   _----
                               
                                uname
                                     x
                                       [   80.240000] random: nonblocking pool is initialized







After 4.4:

ADAM2 Revision 0.22.02_b04_Mar  9 2005
(C) Copyright 1996-2003 Texas Instruments Inc. All Rights Reserved.
(C) Copyright 2003 Telogy Networks, Inc.
Usage: setmfreq [-d] [-s sys_freq, in MHz] [cpu_freq, in MHz]
Memory optimization Complete!

Adam2_AR7RD > 
Press any key to abort OS load, or wait 7 seconds for OS to boot...
[    0.000000] Linux version 4.4.21 (rave at ravebox) (gcc version 5.4.0 (LEDE GCC 5.4.0 r1619) ) #0 Sun Sep 18 13:50:50 2016
[    0.000000] ar7-gpio: failed to add gpiochip
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00018448 (MIPS 4KEc)
[    0.000000] TI AR7 (TNETD7300), ID: 0x0005, Revision: 0x27
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 01000000 @ 14000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000014000000-0x0000000014ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000014000000-0x0000000014ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000014000000-0x0000000014ffffff]
[    0.000000] Primary instruction cache 16kB, VIPT, 4-way, linesize 16 bytes.
[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 16 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
[    0.000000] Kernel command line:  console=ttyS0,38400n8 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 64 (order: -4, 256 bytes)
[    0.000000] Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Memory: 11136K/16384K available (2953K kernel code, 125K rwdata, 600K rodata, 156K init, 195K bss, 5248K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 25483472618 ns
[    0.000039] sched_clock: 32 bits at 75MHz, resolution 13ns, wraps every 28633115129ns
[    0.024263] Calibrating delay loop... 148.88 BogoMIPS (lpj=744448)
[    0.113362] pid_max: default: 32768 minimum: 301
[    0.128154] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.148536] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.184669] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.219139] NET: Registered protocol family 16
[    0.308261] clocksource: Switched to clocksource MIPS
[    0.330968] NET: Registered protocol family 2
[    0.348809] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.370469] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.390164] TCP: Hash tables configured (established 1024 bind 1024)
[    0.410774] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.428996] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.449568] NET: Registered protocol family 1
[    0.544866] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.564126] No memory allocated for crashlog
[    0.675293] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.693144] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.739804] io scheduler noop registered
[    0.751719] io scheduler deadline registered (default)
[    0.768833] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.789018] serial8250: ttyS0 at MMIO 0x8610e00 (irq = 15, base_baud = 3906250) is a TI-AR7
[    0.814672] console [ttyS0] enabled
[    0.814672] console [ttyS0] enabled
[    0.836194] bootconsole [early0] disabled
[    0.836194] bootconsole [early0] disabled
[    0.861788] serial8250: ttyS1 at MMIO 0x8610f00 (irq = 16, base_baud = 3906250) is a TI-AR7
[    0.892408] physmap platform flash device: 02000000 at 10000000
[    0.911270] physmap-flash.0: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000001 Chip ID 0x0022f9
[    0.943788] Amd/Fujitsu Extended Query Table at 0x0040
[    0.959896]   Amd/Fujitsu Extended Query version 1.1.
[    0.975718] number of CFI chips: 1
[    0.998129] 4 ar7part partitions found on MTD device physmap-flash.0
[    1.018067] Creating 4 MTD partitions on "physmap-flash.0":
[    1.035538] 0x000000000000-0x000000010000 : "loader"
[    1.059560] 0x0000003f0000-0x000000400000 : "config"
[    1.085178] 0x000000010000-0x0000003f0000 : "linux"
[    1.110582] 0x0000001436d5-0x0000003f0000 : "rootfs"
[    1.136007] mtd: device 3 (rootfs) set to be root filesystem
[    1.153885] 1 squashfs-split partitions found on MTD device rootfs
[    1.173275] 0x0000002d0000-0x0000003f0000 : "rootfs_data"
[    1.219552] libphy: Fixed MDIO Bus: probed
[    1.550553] libphy: cpmac-mii: probed
[    1.624517] cpmac cpmac.1: regs: 08612800, irq: 41, phy: fixed-0:01, mac: 00:17:9a:7c:2f:f0
[    1.714492] cpmac cpmac.0: regs: 08610000, irq: 27, phy: fixed-0:00, mac: 00:17:9a:7c:2f:f0
[    1.743255] vlynq0: regs 0x08611800, irq 29, mem 0x04000000
[    1.761403] vlynq1: regs 0x08611c00, irq 33, mem 0x0c000000
[    1.784859] NET: Registered protocol family 10
[    1.832624] NET: Registered protocol family 17
[    1.847175] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    1.886470] 8021q: 802.1Q VLAN Support v1.8
[    1.922477] VFS: Mounted root (squashfs filesystem) readonly on device 31:3.
[    1.971754] Freeing prom memory: 1020k freed
[    1.989484] Freeing unused kernel memory: 156K (94499000 - 944c0000)
[    4.088574] init: Console is alive
[    5.038637] init: - preinit -
[    5.870906] random: jshn: uninitialized urandom read (4 bytes read, 8 bits of entropy available)
[    6.119892] random: jshn: uninitialized urandom read (4 bytes read, 9 bits of entropy available)
[    6.264320] random: jshn: uninitialized urandom read (4 bytes read, 9 bits of entropy available)
[    6.668920] eth0: Link is Up - 100Mbps/Full - flow control off
eers 3d g
         [   10.140605] mount_root: jffs2 not ready yet, using temporary tmpfs overlay
[   10.182570] urandom-seed: Seed file not found (/etc/urandom.seed)
[   82.568483] random: nonblocking pool is initialized















 
 





More information about the Lede-dev mailing list