Temat: Problem z wgraniem mac/art WR841N v9

Dzień Dobry!
Mam problem z przygotowaniem u-boot/mac/art w tp-link wr841n v9.
Zmieniłem flash na 16MB, wrzuciłem na nią u-boot od pepe2k, przez u-boot wrzuciłem art, jednak wifi dalej nie działa, mogę je włączyć ale nie jest znajdowane i nie znajduje innych sieci. Do u-boota nie dokleiłem mac'a, gdzieś czytałem, że bez niego nie będzie działać wi-fi. Po doklejeniu maca i próby wrzucenia przez u-boot pojawia się informacja po serial'u, że obraz jest za duży. Po zaprogramowaniu zewnętrznym programatorem router nie uruchamia się.

Mogę prosić o sprawdzenie obrazu art lub/i o przygotowanie u-boota z moim adresem mac?

Z góry dziękuję.

Link do zrzutu z kostki 4MB:
https://mega.nz/#!1oonWBTC!w7FncrHMS4yN … TnhpP58Lt0
ART:
https://mega.nz/#!l0xwTbxD!eb2TSdQdKgju … e7LRKJgUBE

2

Odp: Problem z wgraniem mac/art WR841N v9

Patrz zawsze na rozmiar dumpa. 4MB to 4194304 bajtów, a nie 4194368. Dump dłuższy o 64b, a co za tym idzie art też.
Utnij/wywal ostatnie 64 bajty ze swojego arta i będzie ok.
Twój art ma 65600 bajtów (ponad 64kB) i koniec wygląda tak:

00013f0 544c 7868 a08c cdb9 7c3c 7c3c 7c3c 7c3c
0001400 7c3c 7c3c 7c3c 7c3c 7c3c 7c3c 7c3c 7c3c
*
0001440 ffff ffff ffff ffff ffff ffff ffff ffff
*
0010040

Mój art z tego samego routera ma 65536 bajtów (równe 64kB) i koniec wygląda tak samo jak Twój, z tą różnicą, że w moim nie ma dodatkowych 64 zer na końcu obrazu:

00013f0 544c 7868 a08c cdb9 7c3c 7c3c 7c3c 7c3c
0001400 7c3c 7c3c 7c3c 7c3c 7c3c 7c3c 7c3c 7c3c
*
0001440 ffff ffff ffff ffff ffff ffff ffff ffff
*
0010000

Nie wiem, czym/w jaki sposób zgrywałeś wsad swojej pamięci, ale musisz zmienić metodę, bo wyprodukowany output ma zły rozmiar, więc nie wiadomo, czy reszta wsadu jest ok.

Nawet bez doklejenia swoich danych do uboota by pepe2k, router i jego wifi wstaną i będą działać poprawnie.

rt-ac56u tomato, 2x wdr3600@16MB/u-boot pepe2k/lede, 2x wt3020f@16MB/e3372s/gargoyle/lede, 3x wr841n@16MB/64MB/u-boot pepe2k/lede, rt-n18u tomato, 2x rb750gr2 ROS, 3x rb750gr3 ROS, Unifi ap ac lr

3

Odp: Problem z wgraniem mac/art WR841N v9

Dump robiłem programatorkiem ch431a. Po zrobieniu zrzutu starszą wersją programu plik ma 4194304 bajtów.
Poprawny obraz
Poprawny art
Jednak nadal po wgraniu do większej kostki wi-fi nie działa.
Log z włączania:

***************************************
*     U-Boot 1.1.4-e5984195-clean     *
*          Build: 2017-02-24          *
***************************************

** Warning: bad env CRC, using default,
   use 'saveenv' to save it in FLASH

  BOARD: TP-Link TL-WR841N/D v9
    SOC: QCA953x ver. 1 rev. 1
    CPU: MIPS 24Kc
    RAM: 64 MB DDR1 16-bit CL3-3-3-8
  FLASH: 16 MB Winbond W25Q128
    MAC: 00:03:7F:09:0B:AD (fixed)
 CLOCKS: CPU/RAM/AHB/SPI/REF
         550/400/200/ 25/ 25 MHz

Hit any key to stop booting:  0

Booting image from 0x9F020000...

   Vendor/image name:    OpenWrt r48532
   Hardware ID:          0x8410009
   Whole image size:     3.8 MB (3932160 bytes)
   Kernel size:          1.1 MB (1176608 bytes)
   Rootfs size:          2.1 MB (2196018 bytes)
   Kernel load address:  0x80060000
   Kernel entry point:   0x80060000

   Header CRC...  skipped
   Data CRC...    skipped

Stopping network... OK!
Uncompressing Kernel... OK!
Starting kernel...

[    0.000000] Linux version 3.18.23 (buildbot@builder1) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r47269) ) #1 Sun Jan 31 18:39:35 CET 2016
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] SoC: Qualcomm Atheros QCA9533 ver 1 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] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x03ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x03ffffff]
[    0.000000] Initmem setup node 0 [mem 0x00000000-0x03ffffff]
[    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: 16256
[    0.000000] Kernel command line:  board=TL-WR841N-v9  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: 60812K/65536K available (2586K kernel code, 128K rwdata, 540K rodata, 256K init, 193K bss, 4724K reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] Clocks: CPU:550.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
[    0.000000] Calibrating delay loop... 366.18 BogoMIPS (lpj=1830912)
[    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.080000] NET: Registered protocol family 16
[    0.080000] MIPS: machine is TP-LINK TL-WR841N/ND v9
[    0.530000] Switched to clocksource MIPS
[    0.540000] NET: Registered protocol family 2
[    0.540000] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.540000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.550000] TCP: Hash tables configured (established 1024 bind 1024)
[    0.560000] TCP: reno registered
[    0.560000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.570000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.570000] NET: Registered protocol family 1
[    0.580000] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.610000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.610000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.620000] msgmni has been set to 118
[    0.630000] io scheduler noop registered
[    0.630000] io scheduler deadline registered (default)
[    0.640000] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
▒[    0.670000] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A
[    0.680000] console [ttyS0] enabled
[    0.680000] console [ttyS0] enabled
[    0.690000] bootconsole [early0] disabled
[    0.690000] bootconsole [early0] disabled
[    0.700000] m25p80 spi0.0: found w25q128, expected m25p80
[    0.700000] m25p80 spi0.0: w25q128 (16384 Kbytes)
[    0.710000] 5 tp-link partitions found on MTD device spi0.0
[    0.720000] Creating 5 MTD partitions on "spi0.0":
[    0.720000] 0x000000000000-0x000000020000 : "u-boot"
[    0.730000] 0x000000020000-0x00000013f620 : "kernel"
[    0.730000] 0x00000013f620-0x000000ff0000 : "rootfs"
[    0.740000] mtd: device 2 (rootfs) set to be root filesystem
[    0.740000] 1 squashfs-split partitions found on MTD device rootfs
[    0.750000] 0x000000360000-0x000000ff0000 : "rootfs_data"
[    0.760000] 0x000000ff0000-0x000001000000 : "art"
[    0.760000] 0x000000020000-0x000000ff0000 : "firmware"
[    0.800000] libphy: ag71xx_mdio: probed
[    1.390000] ag71xx-mdio.1: Found an AR934X built-in switch
[    1.430000] eth0: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[    2.030000] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd042, driver=Generic PHY]
[    2.040000] eth1: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    2.050000] TCP: cubic registered
[    2.050000] NET: Registered protocol family 17
[    2.050000] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    2.070000] Bridge firewalling registered
[    2.070000] 8021q: 802.1Q VLAN Support v1.8
[    2.080000] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    2.090000] Freeing unused kernel memory: 256K (80390000 - 803d0000)
[    3.170000] init: Console is alive
[    3.170000] init: - watchdog -
[    5.300000] init: - preinit -
[    5.920000] random: procd urandom read with 9 bits of entropy available
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    7.990000] eth0: link up (1000Mbps/Full duplex)
[    9.280000] jffs2: notice: (345) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[    9.300000] mount_root: switching to jffs2 overlay
[    9.350000] eth0: link down
[    9.360000] procd: - early -
[    9.360000] procd: - watchdog -
[   10.160000] procd: - ubus -
[   11.170000] procd: - init -
Please press Enter to activate this console.
[   11.960000] NET: Registered protocol family 10
[   11.970000] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   11.990000] Loading modules backported from Linux version master-2015-03-09-0-g141f155
[   12.000000] Backport generated by backports.git backports-20150129-0-gdd4a670
[   12.010000] ip_tables: (C) 2000-2006 Netfilter Core Team
[   12.030000] nf_conntrack version 0.5.0 (954 buckets, 3816 max)
[   12.070000] xt_time: kernel timezone is -0000
[   12.110000] cfg80211: Calling CRDA to update world regulatory domain
[   12.110000] cfg80211: World regulatory domain updated:
[   12.120000] cfg80211:  DFS Master region: unset
[   12.120000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   12.130000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   12.140000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz, 92000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[   12.150000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   12.160000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[   12.170000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[   12.180000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   12.190000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   12.200000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   12.280000] PPP generic driver version 2.4.2
[   12.290000] NET: Registered protocol family 24
[   12.360000] ieee80211 phy0: Atheros AR9531 Rev:1 mem=0xb8100000, irq=2
[   12.380000] cfg80211: Calling CRDA for country: US
[   12.380000] cfg80211: Regulatory domain changed to country: US
[   12.390000] cfg80211:  DFS Master region: FCC
[   12.390000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   12.400000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
[   12.410000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2300 mBm), (N/A)
[   12.420000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2300 mBm), (0 s)
[   12.430000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2300 mBm), (0 s)
[   12.440000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
[   12.450000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
[   18.900000] device eth0 entered promiscuous mode
[   18.920000] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   18.960000] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   20.170000] cfg80211: Calling CRDA to update world regulatory domain
[   20.200000] cfg80211: World regulatory domain updated:
[   20.210000] cfg80211:  DFS Master region: unset
[   20.210000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
[   20.220000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
[   20.230000] cfg80211:   (2457000 KHz - 2482000 KHz @ 20000 KHz, 92000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[   20.240000] cfg80211:   (2474000 KHz - 2494000 KHz @ 20000 KHz), (N/A, 2000 mBm), (N/A)
[   20.250000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
[   20.260000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
[   20.270000] cfg80211:   (5490000 KHz - 5730000 KHz @ 160000 KHz), (N/A, 2000 mBm), (0 s)
[   20.270000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 2000 mBm), (N/A)
[   20.280000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 0 mBm), (N/A)
[   21.000000] eth0: link up (1000Mbps/Full duplex)
[   21.000000] br-lan: port 1(eth0) entered forwarding state
[   21.010000] br-lan: port 1(eth0) entered forwarding state
[   21.040000] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   23.010000] br-lan: port 1(eth0) entered forwarding state
[   73.890000] random: nonblocking pool is initialized

4

Odp: Problem z wgraniem mac/art WR841N v9

"MAC: 00:03:7F:09:0B:AD (fixed)"

Nie masz adresu MAC.

5 (edytowany przez Filo301 2017-03-15 13:31:37)

Odp: Problem z wgraniem mac/art WR841N v9

MAC jest w ostatnich 5Kb u-boota, tak? Po doklejeniu go do u-boota od Ciebie router nie wstaje.
PS. dzięki za świetną modyfikację!


@E: Zrobiłem wszystko jeszcze raz i poszło. Wszystkim dziękuję za pomoc!