Temat: netgear wnap320 openwrt?
Dobra znalazłem chwilę żeby po testować czy uda się zapodanie mu openwrt. Wypatroszyłem go. Później może wstawię foty dla potomnych. Wpiąłem się serialem. Zrobiłem tak jak poniżej. Macie też logi:
Welcome to SDK.
Have a lot of fun...
parter login:
U-Boot 1.1.4 dni-1.09 (Jul 1 2010 - 11:39:24)
AP94 (ar7100) U-boot 0.0.12
DRAM: b8050000: 0xc0140180
128 MB
Top of RAM usable for U-Boot at: 88000000
Reserving 228k for U-Boot at: 87fc4000
Reserving 192k for malloc() at: 87f94000
Reserving 56 Bytes for Board Info at: 87f93fc8
Reserving 36 Bytes for Global Data at: 87f93fa4
Reserving 128k for boot params() at: 87f73fa4
Stack Pointer at: 87f73f88
Now running in RAM - U-Boot at: 87fc4000
id read 0x100000ff
flash size 8MB, sector count = 128
Flash: 8 MB
In: serial
Out: serial
Err: serial
Net: ag7100_enet_initialize...
No valid address in Flash. Using fixed address
: cfg1 0xf cfg2 0x7014
VSCXXX Found 0 unit 0:0 phy_addr: 1 id: 004dd04e
PHY: Atheros AR8021
eth0: 00:03:7f:09:0b:ad
eth0 up
eth0
Manu data is valid!
### main_loop entered: bootdelay=4
### main_loop: bootcmd="bootm 0xbf050000"
Enter SPACE to drop into boot loader: 0
ar7100> setenv ipaddr 192.168.1.1
ar7100> setenv serverip 192.168.1.42
ar7100> saveenv
Saving Environment to Flash...
Protect off BF040000 ... BF04FFFF
Un-Protecting sectors 4..4 in bank 1
Un-Protected 1 sectors
Erasing Flash...Erase Flash from 0xbf040000 to 0xbf04ffff in Bank # 1
First 0x4 last 0x4 sector size 0x10000 4
Erased 1 sectors
Writing to Flash... write addr: bf040000
done
Protecting sectors 4..4 in bank 1
Protected 1 sectors
ar7100> reset
Resetting...
U-Boot 1.1.4 dni-1.09 (Jul 1 2010 - 11:39:24)
AP94 (ar7100) U-boot 0.0.12
DRAM: b8050000: 0xc0140180
128 MB
Top of RAM usable for U-Boot at: 88000000
Reserving 228k for U-Boot at: 87fc4000
Reserving 192k for malloc() at: 87f94000
Reserving 56 Bytes for Board Info at: 87f93fc8
Reserving 36 Bytes for Global Data at: 87f93fa4
Reserving 128k for boot params() at: 87f73fa4
Stack Pointer at: 87f73f88
Now running in RAM - U-Boot at: 87fc4000
id read 0x100000ff
flash size 8MB, sector count = 128
Flash: 8 MB
In: serial
Out: serial
Err: serial
Net: ag7100_enet_initialize...
No valid address in Flash. Using fixed address
: cfg1 0xf cfg2 0x7014
VSCXXX Found 0 unit 0:0 phy_addr: 1 id: 004dd04e
PHY: Atheros AR8021
eth0: 00:03:7f:09:0b:ad
eth0 up
eth0
Manu data is valid!
### main_loop entered: bootdelay=4
### main_loop: bootcmd="bootm 0xbf050000"
Enter SPACE to drop into boot loader: 0
ar7100> tftpboot 0x81000000 1.bin
Trying eth0
Using eth0 device
TFTP from server 192.168.1.42; our IP address is 192.168.1.1
Filename '1.bin'.
Load address: 0x81000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
######
done
Bytes transferred = 18332916 (117bcf4 hex)
ar7100> bootm 0x81000000
## Booting image at 81000000 ...
Image Name: MIPS OpenWrt Linux-5.10.120
Created: 2022-06-10 7:20:21 UTC
Image Type: MIPS Linux Kernel Image (uncompressed)
Data Size: 18332852 Bytes = 17.5 MB
Load Address: 80060000
Entry Point: 80060000
Verifying Checksum ... OK
OK
No initrd
## Transferring control to Linux (at address 80060000) ...
## Giving linux memsize in bytes, 134217728
Starting kernel ...
[ 0.000000] Linux version 5.10.120 (builder@buildhost) (mips-openwrt-linux-musl-gcc (OpenWrt GCC 11.2.0 r19426-2b1941e47d) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 Fri Jun 10 07:20:21 2022
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[ 0.000000] MIPS: machine is Netgear WNDAP360
[ 0.000000] SoC: Atheros AR7161 rev 2
[ 0.000000] Initrd not found or empty - disabling initrd
[ 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] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff]
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32480
[ 0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes, linear)
[ 0.000000] Writing ErrCtl register=00000000
[ 0.000000] Readback ErrCtl register=00000000
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 110600K/131072K available (5844K kernel code, 606K rwdata, 744K rodata, 11740K init, 210K bss, 20472K 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] CPU clock: 680.000 MHz
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5621354254 ns
[ 0.000008] sched_clock: 32 bits at 340MHz, resolution 2ns, wraps every 6316128254ns
[ 0.092880] Calibrating delay loop... 452.19 BogoMIPS (lpj=2260992)
[ 0.227858] pid_max: default: 32768 minimum: 301
[ 0.283296] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.370793] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.465395] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[ 0.559537] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.677279] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[ 0.758641] pinctrl core: initialized pinctrl subsystem
[ 0.825294] NET: Registered protocol family 16
[ 0.879146] thermal_sys: Registered thermal governor 'step_wise'
[ 1.182296] PCI host bridge /ahb/apb/pcie-controller@17010000 ranges:
[ 1.331393] MEM 0x0000000010000000..0x0000000016ffffff
[ 1.393931] IO 0x0000000000000000..0x0000000000000000
[ 1.493285] PCI host bridge to bus 0000:00
[ 1.542328] pci_bus 0000:00: root bus resource [mem 0x10000000-0x16ffffff]
[ 1.624599] pci_bus 0000:00: root bus resource [io 0x0000]
[ 1.691324] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0]
[ 1.772620] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 1.867885] pci 0000:00:11.0: [168c:ff1d] type 00 class 0x020000
[ 1.939814] pci 0000:00:11.0: reg 0x10: [mem 0x00000000-0x0000ffff]
[ 2.016252] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00
[ 2.095460] pci 0000:00:11.0: BAR 0: assigned [mem 0x10000000-0x1000ffff]
[ 2.182738] clocksource: Switched to clocksource MIPS
[ 2.244331] NET: Registered protocol family 2
[ 2.296728] IP idents hash table entries: 2048 (order: 2, 16384 bytes, linear)
[ 2.384001] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 2.484078] TCP established hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 2.575738] TCP bind hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 2.660150] TCP: Hash tables configured (established 1024 bind 1024)
[ 2.736378] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 2.814541] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 2.898165] NET: Registered protocol family 1
[ 2.950313] PCI: CLS 0 bytes, default 32
[ 3.180778] workingset: timestamp_bits=14 max_order=15 bucket_order=1
[ 3.262299] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 3.332193] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 3.450677] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251)
[ 3.541072] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled
[ 3.619363] printk: console [ttyS0] disabled
[ 3.670590] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 10, base_baud = 10625000) is a 16550A
▒▒▒i▒▒i▒▒▒m)▒QJ▒ j! `▒ ▒▒▒Yt▒▒(▒▒▒uQH▒▒!▒& ]{▒ËES▒I▒▒▒▒u▒].E
ɋ▒▒O:▒▒赇 ZڕI▒▒▒^▒*Pi▒Z▒▒8?▒E▒▒▒▒璇T▒S▒▒_▒_y}~TX뿁▒ ް▒B▒▒▒P▒wZEW▒▒tM▒▒_▒▒▒`j▒▒▒▒h+%▒▒▒▒▒▒▒▒d▒U▒▒▒u>j▒▒PEܘ▒▒▒EP`▒P▒W▒^▒ `\▒▒mPE▒▒P+▒e▒▒▒ ▒|Sm▒(▒▒▒x,Qـ▒<▒K▒Dioda pomarańczowa od zasilania po tych ostatnich logach jeszcze kilkanaście sekund sobie mruga potem przestaje. Jak wyjmę przewód gasną 2 diody od sieci i ta druga oznaczona w kształcie wirujących strzałek.
Te 1.bin co mu zapodałem to:
openwrt-22.03.0-rc4-ath79-generic-netgear_wndap360-initramfs-kernel.bin
Na forum openwrt odnośnie modelu wndap360 piszą, że trzeba sobie skompilować kernela. Ja tego nie umiem zrobić. Cezary mógłbyś mi testowego wrzucić? Chyba, ze coś już po powyższych logach można stwierdzić....
