...
Los arv4518pw no están probados, sólo he incorporado el código y ahora mismo no tengo posibilidad de probarlo porque no tengo ninguno a mano.
Si hay alguien que quiera probar en algún arv4518pw que me diga si le ha funcionado o no.
Si hay alguien que quiera hacer un parche en lugar de la chapuza de sustituir ficheros como he hecho yo, es libre de hacerlo.
...
Buenas!
Perdón por el laaargo letargo ajeno a mis menesteres en el foro: mi ARV7518PW con 3dBi tiene potencia para cubrir con wireless mi piso (zulo) de alquiler. Pero me he puesto a trastear con el ARV4518PWR01, compilando desde el nuevo repo (genial, mil gracias a todos!) y...
Primera compilación: perfecto, arranca pero sin wireless.
Segunda compilación, modificando el dts y el ath_eep.c: kernel panic. Tras hace run make clean y demás (por si algún objeto no se compilaba correctamente), lo mismo.
Como decir esto sin dar más información es de llorona quejica, adjunto el trace del arranque... Me temo que no sé por dónde empezar a debugar.
U-Boot 2010.03 (May 16 2012 - 05:51:08)
Board: ARV4518PW
SoC: Danube/Twinpass/Vinax-VE V1.3, DDR Speed 166 MHz, CPU Speed 333 MHz
DRAM: 64 MB
Flash: 4 MB
Net:
searching for rtl8306 switch ... found
lq_cpe_eth
Hit any key to stop autoboot: 0
## Booting kernel from Legacy Image at b0020000 ...
Image Name: MIPS OpenWrt Linux-3.10.24
Created: 2014-03-19 15:43:04 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1222614 Bytes = 1.2 MB
Load Address: 80002000
Entry Point: 80002000
Verifying Checksum ... OK
Uncompressing Kernel Image ... OK
Starting kernel ...
[ 0.000000] Linux version 3.10.24 (bruno@amilo) (gcc version 4.6.4 (OpenWrt/Linaro GCC 4.6-2013.05 r39156) ) #2 Wed Mar 19 16:42:39 CET 4
[ 0.000000] SoC: Danube rev 1.3
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 00019641 (MIPS 24KEc)
[ 0.000000] MIPS: machine is ARV4518PWR01 - SMC7908A-ISP
[ 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] Primary instruction cache 16kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyLTQ0,115200 init=/etc/preinit
[ 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: 61064k/65536k available (2598k kernel code, 4472k reserved, 852k data, 188k init, 0k highmem)
[ 0.000000] NR_IRQS:256
[ 0.000000] CPU Clock: 333MHz
[ 0.000000] Calibrating delay loop... 221.18 BogoMIPS (lpj=442368)
[ 0.036000] pid_max: default: 32768 minimum: 301
[ 0.040000] Mount-cache hash table entries: 512
[ 0.048000] pinctrl core: initialized pinctrl subsystem
[ 0.052000] NET: Registered protocol family 16
[ 0.072000] pinctrl-xway 1e100b10.pinmux: Init done
[ 0.076000] dma-xway 1e104100.dma: Init done - hw rev: 3, ports: 5, channels: 20
[ 0.084000] PCI host bridge /fpi@10000000/pci@E105400 ranges:
[ 0.088000] MEM 0x0000000018000000..0x0000000019ffffff
[ 0.092000] IO 0x000000001ae00000..0x000000001affffff
[ 0.116000] bio: create slab <bio-0> at 0
[ 0.124000] usbcore: registered new interface driver usbfs
[ 0.128000] usbcore: registered new interface driver hub
[ 0.132000] usbcore: registered new device driver usb
[ 0.136000] PCI host bridge to bus 0000:00
[ 0.140000] pci_bus 0000:00: root bus resource [mem 0x18000000-0x19ffffff]
[ 0.144000] pci_bus 0000:00: root bus resource [io 0x1ae00000-0x1affffff]
[ 0.148000] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff]
[ 0.152000] pci 0000:00:0e.0: BAR 0: assigned [mem 0x18000000-0x1800ffff]
[ 0.156000] pci 0000:00:0e.0: SLOT:14 PIN:1 IRQ:30
[ 0.160000] Switching to clocksource MIPS
[ 0.168000] NET: Registered protocol family 2
[ 0.176000] TCP established hash table entries: 512 (order: 0, 4096 bytes)
[ 0.180000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[ 0.188000] TCP: Hash tables configured (established 512 bind 512)
[ 0.196000] TCP: reno registered
[ 0.196000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.204000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.212000] NET: Registered protocol family 1
[ 0.216000] gptu: totally 6 16-bit timers/counters
[ 0.220000] gptu: misc_register on minor 63
[ 0.224000] gptu: succeeded to request irq 126
[ 0.228000] gptu: succeeded to request irq 127
[ 0.236000] gptu: succeeded to request irq 128
[ 0.240000] gptu: succeeded to request irq 129
[ 0.244000] gptu: succeeded to request irq 130
[ 0.248000] gptu: succeeded to request irq 131
[ 0.260000] lantiq,vmmc 1f103000.vmmc: requested GPIO 255
[ 0.264000] lantiq,vmmc 1f103000.vmmc: reserved 1MB at 0x03900000
[ 0.272000] ath5k,eeprom 103f0400.ath5k_eep: eeprom expected size : 4096
[ 0.280000] ath5k,eeprom 103f0400.ath5k_eep: mac expected size : 6
[ 0.284000] ath5k,eeprom 103f0400.ath5k_eep: eeprom read size : 4096
[ 0.292000] ath5k,eeprom 103f0400.ath5k_eep: mac address size : 6
[ 0.296000] CPU 0 Unable to handle kernel paging request at virtual address 00000000, epc == 80364a40, ra == 80364a2c
[ 0.308000] Oops[#1]:
[ 0.308000] CPU: 0 PID: 1 Comm: swapper Not tainted 3.10.24 #2
[ 0.308000] task: 83823958 ti: 83824000 task.ti: 83824000
[ 0.308000] $ 0 : 00000000 00000000 00000000 00000000
[ 0.308000] $ 4 : 802eb149 802f0000 00000000 00000000
[ 0.308000] $ 8 : 1d008c16 00020100 00000150 00005520
[ 0.308000] $12 : 8c160a1c 00000000 00000000 00010000
[ 0.308000] $16 : 80390000 810011d4 8385921c 83854d80
[ 0.308000] $20 : 83854d90 80340000 00000024 80361210
[ 0.308000] $24 : 00000000 00000000
[ 0.308000] $28 : 83824000 83825d40 80340810 80364a2c
[ 0.308000] Hi : 00000b68
[ 0.308000] Lo : 00002da0
[ 0.308000] epc : 80364a40 of_ath5k_eeprom_probe+0x400/0x648
[ 0.308000] Not tainted
[ 0.308000] ra : 80364a2c of_ath5k_eeprom_probe+0x3ec/0x648
[ 0.308000] Status: 1100fc03 KERNEL EXL IE
[ 0.308000] Cause : 00800008
[ 0.308000] BadVA : 00000000
[ 0.308000] PrId : 00019641 (MIPS 24KEc)
[ 0.308000] Modules linked in:
[ 0.308000] Process swapper (pid: 1, threadinfo=83824000, task=83823958, tls=00000000)
[ 0.308000] Stack : 103f0400 83854d90 00000006 0000004f 83858908 00000000 83854d90 00000000
83854d90 00000000 00000000 00000000 8034b8b8 80183bd8 838a5c00 83854d90
00000000 803c0000 ffffffed 80345260 8034b8b8 80183f60 838a5c80 00000000
83854d90 80185924 00200200 83854dc4 83854d90 8034b8b8 8034b8b8 00000000
80390000 80184138 00000000 801821cc 838a5c80 00000000 00000000 8034b8b8
...
[ 0.308000] Call Trace:
[ 0.308000] [<80364a40>] of_ath5k_eeprom_probe+0x400/0x648
[ 0.308000] [<80183f60>] driver_probe_device+0x148/0x2b4
[ 0.308000] [<80184138>] __driver_attach+0x6c/0xa4
[ 0.308000] [<801824d0>] bus_for_each_dev+0x5c/0xa0
[ 0.308000] [<801834f0>] bus_add_driver+0xcc/0x244
[ 0.308000] [<801844d4>] driver_register+0xbc/0x178
[ 0.308000] [<80185394>] platform_driver_probe+0x24/0x80
[ 0.308000] [<8000f36c>] do_one_initcall+0xec/0x194
[ 0.308000] [<80361a58>] kernel_init_freeable+0x138/0x200
[ 0.308000] [<8000a6a8>] kernel_init+0x10/0x10c
[ 0.308000] [<80006470>] ret_from_kernel_thread+0x10/0x18
[ 0.308000]
[ 0.308000]
Code: 080d9296 afa00024 00431021 <94430000> 7c0318a0 a4430000 8fa20024 24420001 afa20024
[ 0.516000] ---[ end trace dc0e8a2835e829f2 ]---
[ 0.520000] Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
[ 0.520000]
Muchas gracias! Si veis que pueda ayudar con cualquier cosa, decídmelo...
Edito para decir que me pondré a hacer "dev_info" varios para ver si puedo ser más útil para averiguar en qué punto el código deja de funcionar. Hasta la línea 354 del ath_eep.c todo parece funcionar. De ahí en adelante, la cosa es algún segmentation fault ...
Gracias de nuevo!