I think at least system led gpio is right because it's inherit form juhosg's 
DB120 mach.
Notice that "leds-gpio: probe of leds-gpio failed with error -16"
Any other reason?
 
 
------------------ ???????? ------------------
??????: "axishero"<[email protected]>;
????????: 2012??4??28??(??????) ????0:05
??????: "openwrt-devel"<[email protected]>; 

????: [OpenWrt-Devel] Add support for TL-WR1041N v2(leds are not working)

 
Here is my patch to add support for tplink tl-wr1041n v2(ar9342+ar8327).Perhaps 
all functions are working besides leds and the only one button.


Serial message:


U-Boot 1.1.4 (Dec 31 2011 - 13:38:52)


U-boot MI124




DRAM:  64 MB
id read 0x100000ff
flash size 4MB, sector count = 64
Flash:  4 MB
Using default environment


In:    serial
Out:   serial
Err:   serial
Net:   ag934x_enet_initialize...
No valid address in Flash. Using fixed address
 wasp  reset mask:c03300 
WASP  ----> S17 PHY *
: cfg1 0x7 cfg2 0x7114
eth0: ba:be:fa:ce:08:41
athrs17_reg_init: complete
eth0 up
eth0
Autobooting in 1 seconds
## Booting image at 9f020000 ...
   Uncompressing Kernel Image ... OK


Starting kernel ...


[    0.000000] Linux version 3.3.3 (gzanan@qq810091899) (gcc version 4.6.3 
20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Thu Apr 26 22:59:05 CST 2012
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0001974c (MIPS 74Kc)
[    0.000000] SoC: Atheros AR9342 rev 1
[    0.000000] Clocks: CPU:525.000MHz, DDR:400.000MHz, AHB:200.000MHz, 
Ref:25.000MHz
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 00000000 (usable)
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone PFN ranges:
[    0.000000]   Normal   0x00000000 -> 0x00004000
[    0.000000] Movable zone start PFN for each node
[    0.000000] Early memory PFN ranges
[    0.000000]     0: 0x00000000 -> 0x00004000
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total 
pages: 16256
[    0.000000] Kernel command line:  board=TL-WR1041N-v2 console=ttyS0,115200 
rootfstype=squashfs,jffs2 noinitrd
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    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] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 61800k/65536k available (2073k kernel code, 3736k 
reserved, 389k data, 200k init, 0k highmem)
[    0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, 
Nodes=1
[    0.000000] NR_IRQS:48
[    0.000000] Calibrating delay loop... 261.73 BogoMIPS (lpj=1308672)
[    0.080000] pid_max: default: 32768 minimum: 301
[    0.080000] Mount-cache hash table entries: 512
[    0.090000] NET: Registered protocol family 16
[    0.090000] gpiochip_add: registered GPIOs 0 to 22 on device: ath79
[    0.100000] MIPS: machine is TP-LINK TL-WR1041N v2
[    0.310000] bio: create slab <bio-0> at 0
[    0.320000] Switching to clocksource MIPS
[    0.320000] NET: Registered protocol family 2
[    0.330000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.330000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[    0.340000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    0.340000] TCP: Hash tables configured (established 2048 bind 2048)
[    0.350000] TCP reno registered
[    0.350000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.360000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.360000] NET: Registered protocol family 1
[    0.390000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.390000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) 
(CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.400000] msgmni has been set to 120
[    0.410000] io scheduler noop registered
[    0.410000] io scheduler deadline registered (default)
[    0.420000] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.440000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
[    0.450000] console [ttyS0] enabled, bootconsole disabled
[    0.450000] console [ttyS0] enabled, bootconsole disabled
[    0.460000] m25p80 spi0.0: found en25q32b, expected m25p80
[    0.470000] m25p80 spi0.0: en25q32b (4096 Kbytes)
[    0.480000] 5 tp-link partitions found on MTD device spi0.0
[    0.480000] Creating 5 MTD partitions on "spi0.0":
[    0.490000] 0x000000000000-0x000000020000 : "u-boot"
[    0.490000] 0x000000020000-0x0000000fc404 : "kernel"
[    0.500000] mtd: partition "kernel" must either start or end on erase block 
boundary or be smaller than an erase block -- forcing read-only
[    0.510000] 0x0000000fc404-0x0000003f0000 : "rootfs"
[    0.520000] mtd: partition "rootfs" must either start or end on erase block 
boundary or be smaller than an erase block -- forcing read-only
[    0.530000] mtd: partition "rootfs" set to be root filesystem
[    0.540000] mtd: partition "rootfs_data" created automatically, ofs=2C0000, 
len=130000 
[    0.550000] 0x0000002c0000-0x0000003f0000 : "rootfs_data"
[    0.560000] 0x0000003f0000-0x000000400000 : "art"
[    0.560000] 0x000000020000-0x0000003f0000 : "firmware"
[    0.700000] ag71xx_mdio: probed
[    0.700000] eth0: Atheros AG71xx at 0xb9000000, irq 4
[    1.280000] eth0: AR8327 switch driver attached.
[    1.420000] ag71xx ag71xx.0: eth0: connected to PHY at ag71xx-mdio.0:00 
[uid=004dd033, driver=Atheros AR8216/AR8236/AR8316]
[    1.430000] TCP westwood registered
[    1.430000] NET: Registered protocol family 17
[    1.440000] 8021q: 802.1Q VLAN Support v1.8
[    1.450000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    1.460000] Freeing unused kernel memory: 200k freed
- preinit -
[    3.260000] leds-gpio: probe of leds-gpio failed with error -16
Press the [f] key and hit [enter] to enter failsafe mode
[    4.420000] eth0: link up (1000Mbps/Full duplex)
- regular preinit -
[    6.520000] JFFS2 notice: (440) jffs2_build_xattr_subsystem: complete 
building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 11 of xref (0 
dead, 2 orphan) found.
switching to jffs2
- init -
[    6.660000] eth0: link down


Please press Enter to activate this console. [    8.050000] Compat-wireless 
backport release: compat-wireless-2012-04-17-1-r31481
[    8.060000] Backport based on wireless-testing.git master-2012-04-17
[    8.090000] cfg80211: Calling CRDA to update world regulatory domain
[    8.470000] usbcore: registered new interface driver usbfs
[    8.470000] usbcore: registered new interface driver hub
[    8.480000] usbcore: registered new device driver usb
[    8.550000] cfg80211: World regulatory domain updated:
[    8.560000] cfg80211:   (start_freq - end_freq @ bandwidth), 
(max_antenna_gain, max_eirp)
[    8.560000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 
2000 mBm)
[    8.570000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 
2000 mBm)
[    8.580000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 
2000 mBm)
[    8.590000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 
2000 mBm)
[    8.600000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 
2000 mBm)
[    9.070000] ieee80211 phy0: Atheros AR9340 Rev:0 mem=0xb8100000, irq=47
[    9.080000] cfg80211: Calling CRDA for country: US
[    9.200000] PPP generic driver version 2.4.2
[    9.310000] cfg80211: Regulatory domain changed to country: US
[    9.320000] cfg80211:   (start_freq - end_freq @ bandwidth), 
(max_antenna_gain, max_eirp)
[    9.330000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 
2700 mBm)
[    9.340000] cfg80211:   (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 
1700 mBm)
[    9.350000] cfg80211:   (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 
2000 mBm)
[    9.350000] cfg80211:   (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 
2000 mBm)
[    9.360000] cfg80211:   (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 
2000 mBm)
[    9.370000] cfg80211:   (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 
3000 mBm)
[    9.400000] ip_tables: (C) 2000-2006 Netfilter Core Team
[    9.500000] NET: Registered protocol family 24
[    9.610000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    9.640000] nf_conntrack version 0.5.0 (968 buckets, 3872 max)
[   11.500000] eth0: link up (1000Mbps/Full duplex)
[   14.760000] device eth0.1 entered promiscuous mode
[   14.770000] device eth0 entered promiscuous mode
[   14.810000] br-lan: port 1(eth0.1) entered forwarding state
[   14.820000] br-lan: port 1(eth0.1) entered forwarding state



Two questions are wating to be answered by the gurus:
1??How to find the right GPIO definition number?Any efficient way to do this?
2??After apply the patch,I must key in "make dirclean" to get wr1041n appeared 
in Makemenu,"make target/linux/clean" is not effective.It takes so much time to 
recompile all stuff.Any faster way to compile a new machine besides dirclean?
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to