I compiled firmware for USB mod but not work. Please tell me How can I do it.
With help by MBS in forum https://forum.openwrt.org/viewtopic.php?id=69860 My router work well with TL-WR941V5.
In lede I run command
git clone git://git.lede-project.org/source.git
chown -R huy source
cd source
./scripts/feeds update -a
./scripts/feeds install -a
the go to /source/target/linux/ar71xx/files/arch/mips/ath79 directory and modify mach-tl-wr841n-v8.c file and add line ath79_register_usb(); after line tl_wr841n_v8_gpio_keys); (Ln 282)
I run:
make menuconfig
then choose TL-WR941V5, Block-mount, kmod ext4, kmod usb store,
but firmware not found USB Hub.
please help me.strong text
I go to /source/target/linux/ar71xx/image drectory and add line
define Device/tl-wr941nd-v5
$(Device/tplink-4mlzma)
DEVICE_TITLE := TP-LINK TL-WR941N/ND v5
DEVICE_PACKAGES := kmod-usb-core kmod-usb2
BOARDNAME := TL-WR941ND-v5
DEVICE_PROFILE := TLWR941
TPLINK_HWID := 0x09410005
in tp-link.mk file
and goto source/target/linux/ar71xx/files/arch/mips/ath79 directory modify mach-tl-wr841n-v8.c file by add
static void __init tl_wr941nd_v5_setup(void)
{
tl_ap123_setup();
ath79_register_leds_gpio(-1, ARRAY_SIZE(tl_wr941nd_v5_leds_gpio),
tl_wr941nd_v5_leds_gpio);
ath79_register_gpio_keys_polled(1, TL_WR841NV8_KEYS_POLL_INTERVAL,
ARRAY_SIZE(tl_wr841n_v8_gpio_keys),
tl_wr841n_v8_gpio_keys);
**ath79_register_usb();**
}
MIPS_MACHINE(ATH79_MACH_TL_WR941ND_V5, "TL-WR941ND-v5", "TP-LINK TL-WR941N/ND v5",
tl_wr941nd_v5_setup);
but USB can not work like this:
BusyBox v1.25.1 () built-in shell (ash)
_________
/ /\ _ ___ ___ ___
/ LE / \ | | | __| \| __|
/ DE / \ | |__| _|| |) | _|
/________/ LE \ |____|___|___/|___| lede-project.org
\ \ DE /
\ LE \ / -----------------------------------------------------------
\ DE \ / Reboot (17.01.0, r3205-59508e3)
\________\/ -----------------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@LEDE:~# dmesg
[ 0.000000] Linux version 4.4.50 (huy@debian) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3205-59508e3) ) #0 Mon Feb 20 17:13:44 2017
[ 0.000000] MyLoader: sysp=38aa814d, boardp=adf8095f, parts=d252f747
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[ 0.000000] SoC: Atheros AR9341 rev 1
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] No valid device tree found, continuing without
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] On node 0 totalpages: 16384
[ 0.000000] free_area_init_node: node 0, pgdat 803c7730, node_mem_map 81000000
[ 0.000000] Normal zone: 128 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 16384 pages, LIFO batch:3
[ 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] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: board=TL-WR941ND-v5 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] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] Memory: 60428K/65536K available (2733K kernel code, 152K rwdata, 720K rodata, 292K init, 193K bss, 5108K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:51
[ 0.000000] Clocks: CPU:535.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7144898866 ns
[ 0.000010] sched_clock: 32 bits at 267MHz, resolution 3ns, wraps every 8027976190ns
[ 0.008859] Calibrating delay loop... 266.64 BogoMIPS (lpj=1333248)
[ 0.091903] pid_max: default: 32768 minimum: 301
[ 0.097282] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.104801] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.115744] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.127734] NET: Registered protocol family 16
[ 0.134426] MIPS: machine is TP-LINK TL-WR941N/ND v5
[ 0.597695] clocksource: Switched to clocksource MIPS
[ 0.604975] NET: Registered protocol family 2
[ 0.610833] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.618815] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.626045] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.633378] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.640068] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.647507] NET: Registered protocol family 1
[ 0.652570] PCI: CLS 0 bytes, default 32
[ 0.657530] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.664644] Crashlog allocated RAM at address 0x3f00000
[ 0.686616] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.693312] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.707462] io scheduler noop registered
[ 0.711990] io scheduler deadline registered (default)
[ 0.718079] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.725789] console [ttyS0] disabled
[ 0.749985] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[ 0.759798] console [ttyS0] enabled
[ 0.767346] bootconsole [early0] disabled
[ 0.779561] m25p80 spi0.0: found mx25l3205d, expected m25p80
[ 0.785443] m25p80 spi0.0: mx25l3205d (4096 Kbytes)
[ 0.791895] 5 tp-link partitions found on MTD device spi0.0
[ 0.797660] Creating 5 MTD partitions on "spi0.0":
[ 0.802661] 0x000000000000-0x000000020000 : "u-boot"
[ 0.809464] 0x000000020000-0x00000014b4f8 : "kernel"
[ 0.816501] 0x00000014b4f8-0x0000003f0000 : "rootfs"
[ 0.823609] mtd: device 2 (rootfs) set to be root filesystem
[ 0.829574] 1 squashfs-split partitions found on MTD device rootfs
[ 0.835963] 0x000000360000-0x0000003f0000 : "rootfs_data"
[ 0.843462] 0x0000003f0000-0x000000400000 : "art"
[ 0.850309] 0x000000020000-0x0000003f0000 : "firmware"
[ 0.875863] libphy: ag71xx_mdio: probed
[ 1.469785] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:00 [uid=004dd042, driver=Generic PHY]
[ 1.480034] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[ 2.069573] ag71xx-mdio.1: Found an AR934X built-in switch
[ 2.111947] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[ 2.120314] NET: Registered protocol family 17
[ 2.125016] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[ 2.138242] 8021q: 802.1Q VLAN Support v1.8
[ 2.152927] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[ 2.162190] Freeing unused kernel memory: 292K (803e7000 - 80430000)
[ 3.360561] init: Console is alive
[ 3.364320] init: - watchdog -
[ 4.827254] usbcore: registered new interface driver usbfs
[ 4.833116] usbcore: registered new interface driver hub
[ 4.838759] usbcore: registered new device driver usb
[ 4.891601] SCSI subsystem initialized
[ 4.904757] usbcore: registered new interface driver usb-storage
[ 4.921681] init: - preinit -
[ 5.604211] random: procd: uninitialized urandom read (4 bytes read, 9 bits of entropy available)
[ 7.832377] mount_root: loading kmods from internal overlay
[ 8.176855] jffs2: notice: (370) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 8.193320] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[ 8.203167] block: extroot: not configured
[ 8.237826] jffs2: notice: (367) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 8.384831] block: attempting to load /tmp/jffs_cfg/upper/etc/config/fstab
[ 8.394260] block: extroot: not configured
[ 8.399571] mount_root: switching to jffs2 overlay
[ 8.412448] urandom-seed: Seeding with /etc/urandom.seed
[ 8.574629] procd: - early -
[ 8.577819] procd: - watchdog -
[ 9.207475] procd: - ubus -
[ 9.406799] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[ 9.416716] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[ 9.426169] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[ 9.435898] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[ 9.445315] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[ 9.455755] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[ 9.465350] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[ 9.475123] procd: - init -
[ 9.836256] Loading modules backported from Linux version wt-2016-10-03-1-g6fcb1a6
[ 9.844148] Backport generated by backports.git backports-20160324-9-g0e38f5c
[ 9.859724] nf_conntrack version 0.5.0 (948 buckets, 3792 max)
[ 9.906126] xt_time: kernel timezone is -0000
[ 9.935601] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 9.992909] PPP generic driver version 2.4.2
[ 10.000404] NET: Registered protocol family 24
[ 10.058464] ath: EEPROM regdomain: 0x0
[ 10.058488] ath: EEPROM indicates default country code should be used
[ 10.058498] ath: doing EEPROM country->regdmn map search
[ 10.058522] ath: country maps to regdmn code: 0x3a
[ 10.058535] ath: Country alpha2 being used: US
[ 10.058545] ath: Regpair used: 0x3a
[ 10.072070] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 10.077978] ieee80211 phy0: Atheros AR9340 Rev:1 mem=0xb8100000, irq=47
[ 11.152801] random: jshn: uninitialized urandom read (4 bytes read, 18 bits of entropy available)
[ 11.251832] random: ubusd: uninitialized urandom read (4 bytes read, 18 bits of entropy available)
[ 17.327367] device eth1 entered promiscuous mode
[ 17.348717] br-lan: port 1(eth1) entered forwarding state
[ 17.354335] br-lan: port 1(eth1) entered forwarding state
[ 18.287841] br-lan: port 1(eth1) entered disabled state
[ 18.919352] eth1: link up (1000Mbps/Full duplex)
[ 18.924189] br-lan: port 1(eth1) entered forwarding state
[ 18.929857] br-lan: port 1(eth1) entered forwarding state
[ 19.448411] device wlan0 entered promiscuous mode
[ 19.476821] br-lan: port 2(wlan0) entered forwarding state
[ 19.482614] br-lan: port 2(wlan0) entered forwarding state
[ 20.927705] br-lan: port 1(eth1) entered forwarding state
[ 21.477736] br-lan: port 2(wlan0) entered forwarding state
[ 46.327727] random: nonblocking pool is initialized
Please help me.
One question, it has not happened to you that after installing the image the router reboots indefinitely?