echo "CONFIG_USB_SUPPORT=n" >> .config
📝 Archivos Modificados
DTS modificado: repos/openwrt/target/linux/ramips/dts/mt7621_librerouter_librerouter-r2.dts
Firmware generado: build/bin/targets/ramips/mt7621/librerouteros-24.10.1-r28597-0425664679-ramips-mt7621-librerouter_librerouter-r2-squashfs-sysupgrade.bin
El cambio es permanente y quedará incluido en futuras compilaciones del firmware.
podrías darme los oneliner para encender y apagar los gpio de pci-e
¡Por supuesto! Aquí están los oneliners para controlar manualmente los GPIOs de PCI-E en el LibreRouter R2:
Control Manual de GPIOs PCI-E
Exportar y Configurar GPIOs (hacer una vez al inicio)
# Exportar GPIO 19 y GPIO 8 (reset lines de PCI-E)
echo 19 > /sys/class/gpio/export && echo 8 > /sys/class/gpio/export
# Configurar como outputs
echo out > /sys/class/gpio/gpio19/direction && echo out > /sys/class/gpio/gpio8/direction
Apagar PCI-E (mantener en reset - ACTIVE_LOW)
# ACTIVE_LOW significa: escribir 0 = HIGH = RESET ACTIVO = tarjetas apagadas
echo 0 > /sys/class/gpio/gpio19/value && echo 0 > /sys/class/gpio/gpio8/value
Encender PCI-E (liberar reset)
# ACTIVE_LOW significa: escribir 1 = LOW = RESET INACTIVO = tarjetas encendidas
echo 1 > /sys/class/gpio/gpio19/value && echo 1 > /sys/class/gpio/gpio8/value
Secuencia Completa de Reset (Ciclo de Power)
# Reset completo de las tarjetas PCI-E
echo 0 > /sys/class/gpio/gpio19/value && echo 0 > /sys/class/gpio/gpio8/value && sleep 1 && echo 1 > /sys/class/gpio/gpio19/value && echo 1 > /sys/class/gpio/gpio8/value && sleep 2 && echo 1 > /sys/bus/pci/rescan
Verificar Estado Actual de los GPIOs
# Ver configuración y valor actual
cat /sys/class/gpio/gpio19/direction && cat /sys/class/gpio/gpio19/value && cat /sys/class/gpio/gpio8/direction && cat /sys/class/gpio/gpio8/value
Limpiar (unexport GPIOs)
# Liberar los GPIOs cuando termines
echo 19 > /sys/class/gpio/unexport && echo 8 > /sys/class/gpio/unexport
Script Completo de Diagnóstico
Si quieres un script todo-en-uno para probar:
#!/bin/sh
# Script de diagnóstico PCI-E para LibreRouter R2
echo "=== Exportando GPIOs ==="
echo 19 > /sys/class/gpio/export 2>/dev/null
echo 8 > /sys/class/gpio/export 2>/dev/null
echo "=== Configurando como outputs ==="
echo out > /sys/class/gpio/gpio19/direction
echo out > /sys/class/gpio/gpio8/direction
echo "=== Apagando tarjetas (reset activo) ==="
echo 0 > /sys/class/gpio/gpio19/value
echo 0 > /sys/class/gpio/gpio8/value
sleep 2
echo "=== Encendiendo tarjetas (liberando reset) ==="
echo 1 > /sys/class/gpio/gpio19/value
echo 1 > /sys/class/gpio/gpio8/value
sleep 3
echo "=== Forzando rescan de PCI ==="
echo 1 > /sys/bus/pci/rescan 2>/dev/null
echo "=== Esperando detección ==="
sleep 5
echo "=== Verificando detección de PCI-E ==="
dmesg | grep -i "pcie\|ath9k" | tail -20
echo "=== Interfaces wireless detectadas ==="
ls /sys/class/net/ | grep wlan || echo "No se detectaron interfaces wlan"
echo "=== Estado de los GPIOs ==="
echo "GPIO 19: direction=$(cat /sys/class/gpio/gpio19/direction) value=$(cat /sys/class/gpio/gpio19/value)"
echo "GPIO 8: direction=$(cat /sys/class/gpio/gpio8/direction) value=$(cat /sys/class/gpio/gpio8/value)"
Notas Importantes
ACTIVE_LOW: Los GPIOs están configurados como ACTIVE_LOW en el DTS, por lo que:
0 = voltaje HIGH = reset ACTIVO = tarjetas OFF
1 = voltaje LOW = reset INACTIVO = tarjetas ON
Orden de operación: Ambos GPIOs (19 y 8) deben manipularse juntos para funcionamiento correcto.
Timing: Es importante dar tiempo (1-3 segundos) entre apagar y encender para que las tarjetas se reseteen completamente.
Con el nuevo firmware: El kernel debería manejar estos GPIOs automáticamente durante el boot, así que estos comandos son principalmente para diagnóstico/testing.
## Salida del r28654-d2d9b1eaeb
```
Net: MediaTek MT7530
Error: eth@1e100000 address 03:17:73:ab:cd:ef illegal value
eth0: eth@1e100000
Error: eth@1e100000 address 03:17:73:ab:cd:ef illegal value
Hit any key to stop autoboot: 0
## Booting kernel from Legacy Image at bfc50000 ...
Image Name: MIPS LibreRouterOs Linux-6.6.89
Image Type: MIPS Linux Kernel Image (uncompressed)
Data Size: 3293163 Bytes = 3.1 MiB
Load Address: 80001000
Entry Point: 80001000
Verifying Checksum ... OK
Working FDT set to 0
Loading Kernel Image to 80001000
OpenWrt kernel loader for MIPS based SoC
Copyright (C) 2011 Gabor Juhos <juhosg@openwrt.org>
Decompressing kernel... done!
Starting kernel at 80001000...
[ 0.000000] Linux version 6.6.89 (pablo@Ova) (mipsel-openwrt-linux-musl-gcc (OpenWrt GCC 13.3.0 r28654-d2d9b1eaeb) 13.3.0, GNU ld (GNU Binutils) 2.42) #0 SMP Thu May 15 18:27:48 2025
[ 0.000000] SoC Type: MediaTek MT7621 ver:1 eco:4
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001992f (MIPS 1004Kc)
[ 0.000000] MIPS: machine is LibreRouter R2
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] VPE topology {2,2} total 4
[ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.000000] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000000fffffff]
[ 0.000000] percpu: Embedded 12 pages/cpu s18816 r8192 d22144 u49152
[ 0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[ 0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes, linear)
[ 0.000000] Writing ErrCtl register=0004d842
[ 0.000000] Readback ErrCtl register=0004d842
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 64960
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] Memory: 247448K/262144K available (8077K kernel code, 649K rwdata, 1720K rodata, 1252K init, 219K bss, 14696K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[ 0.000000] rcu: Hierarchical RCU implementation.
[ 0.000000] Tracing variant of Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[ 0.000000] NR_IRQS: 256
[ 0.000000] rcu: srcu_init: Setting srcu_struct sizes based on contention.
[ 0.000000] clocksource: GIC: mask: 0xffffffffffffffff max_cycles: 0xcaf478abb4, max_idle_ns: 440795247997 ns
[ 0.000004] sched_clock: 64 bits at 880MHz, resolution 1ns, wraps every 4398046511103ns
[ 0.096109] Calibrating delay loop... 586.13 BogoMIPS (lpj=2930688)
[ 0.230251] pid_max: default: 32768 minimum: 301
[ 0.294235] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.380980] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[ 0.482360] RCU Tasks Trace: Setting shift to 2 and lim to 1 rcu_task_cb_adjust=1 rcu_task_cpu_ids=4.
[ 0.592702] rcu: Hierarchical SRCU implementation.
[ 0.649475] rcu: Max phase no-delay instances is 1000.
[ 0.712800] smp: Bringing up secondary CPUs ...
[ 0.767171] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 0.767198] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.767212] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 0.767260] CPU1 revision is: 0001992f (MIPS 1004Kc)
[ 0.826490] Synchronize counters for CPU 1: done.
[ 1.187657] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 1.187681] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 1.187693] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 1.187726] CPU2 revision is: 0001992f (MIPS 1004Kc)
[ 1.246624] Synchronize counters for CPU 2: done.
[ 1.606569] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[ 1.606592] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 1.606605] MIPS secondary cache 256kB, 8-way, linesize 32 bytes.
[ 1.606640] CPU3 revision is: 0001992f (MIPS 1004Kc)
[ 1.665722] Synchronize counters for CPU 3: done.
[ 2.024837] smp: Brought up 1 node, 4 CPUs
[ 2.079679] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 2.196776] futex hash table entries: 1024 (order: 3, 32768 bytes, linear)
[ 2.283122] pinctrl core: initialized pinctrl subsystem
[ 2.348206] NET: Registered PF_NETLINK/PF_ROUTE protocol family
[ 2.419120] thermal_sys: Registered thermal governor 'step_wise'
[ 2.421429] /pinctrl: Fixed dependency cycle(s) with /pinctrl/pinctrl0
[ 2.571291] mt7621-pinctrl pinctrl: invalid group "gpio" for function "gpio"
[ 2.671397] clocksource: Switched to clocksource GIC
[ 2.739984] NET: Registered PF_INET protocol family
[ 2.797799] IP idents hash table entries: 4096 (order: 3, 32768 bytes, linear)
[ 2.885124] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[ 2.984437] Table-perturb hash table entries: 65536 (order: 6, 262144 bytes, linear)
[ 3.077265] TCP established hash table entries: 2048 (order: 1, 8192 bytes, linear)
[ 3.169082] TCP bind hash table entries: 2048 (order: 3, 32768 bytes, linear)
[ 3.254763] TCP: Hash tables configured (established 2048 bind 2048)
[ 3.331866] MPTCP token hash table entries: 256 (order: 0, 4096 bytes, linear)
[ 3.417943] UDP hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 3.495865] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes, linear)
[ 3.580322] NET: Registered PF_UNIX/PF_LOCAL protocol family
[ 3.647322] PCI: CLS 0 bytes, default 32
[ 3.698091] workingset: timestamp_bits=14 max_order=16 bucket_order=2
[ 3.776286] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 3.845330] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 3.967952] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 4.034456] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 4.101140] mt7621_gpio 1e000600.gpio: registering 32 gpios
[ 4.168199] mt7621-pci 1e1<0000.pcie: host bridge /pcie@1e140000 ranges:
[ 4.247762] mt7621-pci 1e140000.pcie: No bus range found for /pcie@1e140000, using [bus 00-ff]
[ 4.353120] mt7621-pci 1e140000.pcie: MEM 0x0060000000..0x006fffffff -> 0x0060000000
[ 4.451173] mt7621-pci 1e140000.pcie: IO 0x001e160000..0x001e16ffff -> 0x0000000000
[ 4.901417] mt7621-pci 1e140000.pcie: PCIE0 enabled
[ 4.959012] mt7621-pci 1e140000.pcie: PCIE1 enabled
[ 5.017418] mt7621-pci 1e140000.pcie: PCIE2 enabled
[ 5.076039] PCI coherence region base: 0x60000000, mask/settings: 0xf0000002
[ 5.160531] mt7621-pci 1e140000.pcie: PCI host bridge to bus 0000:00
[ 5.236526] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 5.302209] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[ 5.384629] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 5.458763] pci 0000:00:00.0: [0e8d:0801] type 01 class 0x060400
[ 5.530692] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[ 5.605790] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[ 5.681021] pci 0000:00:00.0: supports D1
[ 5.728875] pci 0000:00:00.0: PME# supported from D0 D1 D3hot
[ 5.798456] pci 0000:00:01.0: [0e8d:0801] type 01 class 0x060400
[ 5.869762] pci 0000:00:01.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[ 5.944832] pci 0000:00:01.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[ 6.020012] pci 0000:00:01.0: supports D1
[ 6.067922] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[ 6.137540] pci 0000:00:02.0: [0e8d:0801] type 01 class 0x060400
[ 6.208801] pci 0000:00:02.0: reg 0x10: [mem 0x00000000-0x7fffffff]
[ 6.283871] pci 0000:00:02.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[ 6.359053] pci 0000:00:02.0: supports D1
[ 6.406954] pci 0000:00:02.0: PME# supported from D0 D1 D3hot
[ 6.477761] pci 0000:00:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 6.572923] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 6.668870] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 6.765117] pci 0000:01:00.0: [168c:003c] type 00 class 0x028000
[ 6.836872] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[ 6.918222] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[ 6.998625] pci 0000:01:00.0: supports D1 D2
[ 7.049959] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[ 7.112256] pci 0000:00:00.0: bridge window [io 0x0000-0x0fff]
[ 7.185250] pci 0000:00:00.0: bridge window [mem 0x00000000-0x000fffff]
[ 7.266621] pci 0000:00:00.0: bridge window [mem 0x00000000-0x000fffff pref]
[ 7.353209] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[ 7.432813] pci 0000:02:00.0: [168c:003c] type 00 class 0x028000
[ 7.504516] pci 0000:02:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[ 7.585870] pci 0000:02:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[ 7.666269] pci 0000:02:00.0: supports D1 D2
[ 7.717603] pci 0000:00:01.0: PCI bridge to [bus 02-ff]
[ 7.779891] pci 0000:00:01.0: bridge window [io 0x0000-0x0fff]
[ 7.852900] pci 0000:00:01.0: bridge window [mem 0x00000000-0x000fffff]
[ 7.934269] pci 0000:00:01.0: bridge window [mem 0x00000000-0x000fffff pref]
[ 8.020857] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 02
[ 8.100398] pci 0000:03:00.0: [168c:003c] type 00 class 0x028000
[ 8.172163] pci 0000:03:00.0: reg 0x10: [mem 0x00000000-0x001fffff 64bit]
[ 8.253519] pci 0000:03:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[ 8.333916] pci 0000:03:00.0: supports D1 D2
[ 8.385248] pci 0000:00:02.0: PCI bridge to [bus 03-ff]
[ 8.447549] pci 0000:00:02.0: bridge window [io 0x0000-0x0fff]
[ 8.520548] pci 0000:00:02.0: bridge window [mem 0x00000000-0x000fffff]
[ 8.601916] pci 0000:00:02.0: bridge window [mem 0x00000000-0x000fffff pref]
[ 8.688505] pci_bus 0000:03: busn_res: [bus 03-ff] end is updated to 03
[ 8.767842] pci 0000:00:00.0: BAR 0: no space for [mem size 0x80000000]
[ 8.847067] pci 0000:00:00.0: BAR 0: failed to assign [mem size 0x80000000]
[ 8.930524] pci 0000:00:01.0: BAR 0: no space for [mem size 0x80000000]
[ 9.009807] pci 0000:00:01.0: BAR 0: failed to assign [mem size 0x80000000]
[ 9.093263] pci 0000:00:02.0: BAR 0: no space for [mem size 0x80000000]
[ 9.172546] pci 0000:00:02.0: BAR 0: failed to assign [mem size 0x80000000]
[ 9.256008] pci 0000:00:00.0: BAR 8: assigned [mem 0x60000000-0x601fffff]
[ 9.337373] pci 0000:00:01.0: BAR 8: assigned [mem 0x60200000-0x603fffff]
[ 9.418742] pci 0000:00:02.0: BAR 8: assigned [mem 0x60400000-0x605fffff]
[ 9.500113] pci 0000:00:00.0: BAR 9: assigned [mem 0x60600000-0x606fffff pref]
[ 9.586699] pci 0000:00:01.0: BAR 9: assigned [mem 0x60700000-0x607fffff pref]
[ 9.673285] pci 0000:00:02.0: BAR 9: assigned [mem 0x60800000-0x608fffff pref]
[ 9.759869] pci 0000:00:00.0: BAR 1: assigned [mem 0x60900000-0x6090ffff]
[ 9.841244] pci 0000:00:01.0: BAR 1: assigned [mem 0x60910000-0x6091ffff]
[ 9.922611] pci 0000:00:02.0: BAR 1: assigned [mem 0x60920000-0x6092ffff]
[ 10.003980] pci 0000:00:00.0: BAR 7: assigned [io 0x0000-0x0fff]
[ 10.077002] pci 0000:00:01.0: BAR 7: assigned [io 0x1000-0x1fff]
[ 10.150028] pci 0000:00:02.0: BAR 7: assigned [io 0x2000-0x2fff]
[ 10.223060] pci 0000:01:00.0: BAR 0: assigned [mem 0x60000000-0x601fffff 64bit]
[ 10.310690] pci 0000:01:00.0: BAR 6: assigned [mem 0x60600000-0x6060ffff pref]
[ 10.397264] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 10.456719] pci 0000:00:00.0: bridge window [io 0x0000-0x0fff]
[ 10.529750] pci 0000:00:00.0: bridge window [mem 0x60000000-0x601fffff]
[ 10.611120] pci 0000:00:00.0: bridge window [mem 0x60600000-0x606fffff pref]
[ 10.697712] pci 0000:02:00.0: BAR 0: assigned [mem 0x60200000-0x603fffff 64bit]
[ 10.785344] pci 0000:02:00.0: BAR 6: assigned [mem 0x60700000-0x6070ffff pref]
[ 10.871919] pci 0000:00:01.0: PCI bridge to [bus 02]
[ 10.931405] pci 0000:00:01.0: bridge window [io 0x1000-0x1fff]
[ 11.004404] pci 0000:00:01.0: bridge window [mem 0x60200000-0x603fffff]
[ 11.085776] pci 0000:00:01.0: bridge window [mem 0x60700000-0x607fffff pref]
[ 11.172369] pci 0000:03:00.0: BAR 0: assigned [mem 0x60400000-0x605fffff 64bit]
[ 11.260000] pci 0000:03:00.0: BAR 6: assigned [mem 0x60800000-0x6080ffff pref]
[ 11.346576] pci 0000:00:02.0: PCI bridge to [bus 03]
[ 11.406029] pci 0000:00:02.0: bridge window [io 0x2000-0x2fff]
[ 11.479060] pci 0000:00:02.0: bridge window [mem 0x60400000-0x605fffff]
[ 0 11.560430] pci 0000:00:02.0: bridge window [mem 0x60800000-0x608fffff pref]
[ 11.648680] Serial: 8250/16550 driver, 3 ports, IRQ sharing disabled
[ 11.727027] printk: console [ttyS0] disabled
�˗�˗��Z▒{��▒�3�����{�▒SZ�▒NR/o����O۔k
```
screen /dev/ttyUSB0 115200
```
BusyBox v1.36.1 (2025-05-15 18:27:48 UTC) built-in shell (ash)
_______ ________ __
| |.-----.-----.-----.| | | |.----.| |_
| - || _ | -__| || | | || _|| _|
|_______|| __|_____|__|__||________||__| |____|
|__| W I R E L E S S F R E E D O M
-----------------------------------------------------
LibreRouterOs 24.10-SNAPSHOT, r28654-d2d9b1eaeb
-----------------------------------------------------
___ __ __ _______ __
| |_|__| |--.----.-----.| | |-----.-----| |--.
| | | _ | _| -__|| | -__|__ --| |
|_____|__|_____|__| |_____||__|_|__|_____|_____|__|__|
------------------------------------------------------
LiMe final-release development (final-release rev. 7e93cf0 20250515_1926)
------------------------------------------------------
https://libremesh.org
------------------------------------------------------
=== System Notes =================================================
= edit via http://thisnode.info/app/#/notes or /etc/banner.notes =
=== 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@LiMe-101929:~# reboot
root@LiMe-101929:~# [ 34.392849] reboot: Restarting system
U-Boot SPL 2025.04-rc4-g15d6518c942f (Mar 28 2025 - 12:06:43 -0300)
Trying to boot from NOR
U-Boot 2025.04-rc4-g15d6518c942f (Mar 28 2025 - 12:06:43 -0300)
CPU: MediaTek MT7621A ver 1, eco 4
Boot: DDR3, SPI-NOR 3-Byte Addr
Clock: CPU: 880MHz, DDR: 1200MT/s, Bus: 220MHz, XTAL: 40MHz
Model: MediaTek MT7621 RFB (SPI-NOR)
DRAM: 256 MiB
Core: 39 devices, 18 uclasses, devicetree: separate
MMC: mmc@1e130000: 0
Loading Environment from Flash... *** Warning - bad CRC, using default environment
Loading Environment from SPIFlash... SF: Detected w25q256 with page size 256 Bytes, erase size 4 KiB, total 32 MiB
������������+$HHLL�)�º���ɥ�ѭ��▒��ͽ���m���M�u��������5R�+$HHLLWMNN�SS�ɥ�ѭ��▒��ͽ���m���M�j��������5)ځ���r���������ɥ�ѭ����э��ͽ���ڕ�ɱ��ꁑ�ͅ����5R�+$HHLL���7171] printk: bootconsole [early0] disabled
[ 11.621643] spi-mt7621 1e000b00.spi: sys_freq: 220000000
[ 11.628383] ------------[ cut here ]------------
[ 11.633078] WARNING: CPU: 1 PID: 1 at drivers/mtd/spi-nor/core.c:3228 spi_nor_init+0x190/0x198
[ 11.641697] enabling reset hack; may not recover from unexpected reboots
[ 11.648392] Modules linked in:
[ 11.651447] CPU: 1 PID: 1 Comm: swapper/0 Not tainted 6.6.89 #0
[ 11.657349] Stack : 809ab440 80089d28 000000ba 00000004 00000000 00000000 8183796c 80b70000
[ 11.665711] 80a30000 808b069c 00000000 00000000 00000000 00000001 81837918 818a5780
[ 11.674070] 00000000 00000000 808b069c 81837850 ffffefff 00000000 ffffffea 00000000
[ 11.682427] 8183785c 000000bb 809b3000 ffffffff 808b069c 00000001 81837a18 804ec834
[ 11.690784] 00000009 808e0f7c 809ab440 81bcfe80 00000018 80489fa8 00000004 80b70004
[ 11.699138] ...
[ 11.701581] Call Trace:
[ 11.704013] [<800079f4>] show_stack+0x28/0xf0
[ 11.708384] [<807b1220>] dump_stack_lvl+0x60/0x80
[ 11.713074] [<8002d9b4>] __warn+0xb0/0xe4
[ 11.717094] [<8002db68>] warn_slowpath_fmt+0x180/0x188
[ 11.722218] [<804ec834>] spi_nor_init+0x190/0x198
[ 11.726913] [<804ee6bc>] spi_nor_scan+0x514/0xddc
[ 11.731604] [<804ef018>] spi_nor_probe+0x94/0x2f8
[ 11.736296] [<8049d038>] really_probe+0xd4/0x368
[ 11.740927] [<8049d4fc>] driver_probe_device+0x48/0x110
[ 11.746139] [<8049d694>] __device_attach_driver+0xd0/0x118
[ 11.751611] [<8049acf0>] bus_for_each_drv+0x7c/0xc8
[ 11.756477] [<8049dadc>] __device_attach+0xf8/0x16c
[ 11.761346] [<8049bef4>] bus_probe_device+0xb4/0xdc
[ 11.766211] [<80499400>] device_add+0x578/0x7a4
[ 11.770732] [<80511338>] __spi_add_device+0xb0/0x188
[ 11.775697] [<80511dec>] spi_register_controller+0x704/0xb40
[ 11.781340] [<80512280>] devm_spi_register_controller+0x58/0xc0
[ 11.787241] [<8049fbb0>] platform_probe+0x50/0xa4
[ 11.791940] [<8049d038>] really_probe+0xd4/0x368
[ 11.796549] [<8049d4fc>] driver_probe_device+0x48/0x110
[ 11.801761] [<8049d78c>] __driver_attach+0xb0/0x180
[ 11.806640] [<8049aafc>] bus_for_each_dev+0x70/0xb8
[ 11.811503] [<8049c170>] bus_add_driver+0xf8/0x224
[ 11.816281] [<8049e490>] driver_register+0x88/0x154
[ 11.821143] [<80001644>] do_one_initcall+0x50/0x2e0
[ 11.826003] [<80a38158>] kernel_init_freeable+0x284/0x314
[ 11.831405] [<807dbbe4>] kernel_init+0x20/0x114
[ 11.835941] [<80002b18>] ret_from_kernel_thread+0x14/0x1c
[ 11.841325]
[ 11.842845] ---[ end trace 0000000000000000 ]---
[ 11.847481] spi-nor spi0.0: w25q256 (32768 Kbytes)
[ 11.852473] 6 fixed-partitions partitions found on MTD device spi0.0
[ 11.858854] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[ 11.866190] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[ 11.873848] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[ 11.881188] OF: Bad cell count for /palmbus@1e000000/spi@b00/flash@0/partitions
[ 11.888789] Creating 6 MTD partitions on "spi0.0":
[ 11.893629] 0x000000000000-0x000000030000 : "u-boot"
[ 11.900457] 0x000000030000-0x000000031000 : "u-boot-env"
[ 11.907075] 0x000000031000-0x000000040000 : "dummy"
[ 11.913329] 0x000000040000-0x000000050000 : "factory"
[ 11.919683] 0x000000050000-0x000000ff0000 : "firmware"
[ 11.926224] 2 uimage-fw partitions found on MTD device firmware
[ 11.932211] Creating 2 MTD partitions on "firmware":
[ 11.937164] 0x000000000000-0x00000032402b : "kernel"
[ 11.942131] mtd: partition "kernel" doesn't end on an erase/write block -- force read-only
[ 11.951590] 0x00000032402b-0x000000fa0000 : "rootfs"
[ 11.956627] mtd: partition "rootfs" doesn't start on an erase/write block boundary -- force read-only
[ 11.967031] mtd: setting mtd6 (rootfs) as root device
[ 11.972218] 1 squashfs-split partitions found on MTD device rootfs
[ 11.978385] 0x000000920000-0x000000fa0000 : "rootfs_data"
[ 11.985138] 0x000000ff0000-0x000001f90000 : "fw2"
[ 12.135215] mt7530-mdio mdio-bus:1f: MT7530 adapts as multi-chip module
[ 12.150642] mtk_soc_eth 1e100000.ethernet eth0: mediatek frame engine at 0xbe100000, irq 19
[ 12.162429] mtk_soc_eth 1e100000.ethernet eth1: mediatek frame engine at 0xbe100000, irq 19
[ 12.172805] i2c_dev: i2c /dev entries driver
[ 12.178269] i2c-mt7621 1e000900.i2c: clock 100 kHz
[ 12.187148] NET: Registered PF_INET6 protocol family
[ 12.195679] Segment Routing with IPv6
[ 12.199434] In-situ OAM (IOAM) with IPv6
[ 12.203572] NET: Registered PF_PACKET protocol family
[ 12.208987] 8021q: 802.1Q VLAN Support v1.8
[ 12.243764] mt7530-mdio mdio-bus:1f: MT7530 adapts as multi-chip module
[ 12.277786] mt7530-mdio mdio-bus:1f: configuring for fixed/rgmii link mode
[ 12.286999] mt7530-mdio mdio-bus:1f lan1 (uninitialized): PHY [mt7530-0:01] driver [MediaTek MT7530 PHY] (irq=22)
[ 12.299833] mt7530-mdio mdio-bus:1f: Link is Up - 1Gbps/Full - flow control rx/tx
[ 12.302797] mt7530-mdio mdio-bus:1f lan2 (uninitialized): PHY [mt7530-0:02] driver [MediaTek MT7530 PHY] (irq=23)
[ 12.320429] mt7530-mdio mdio-bus:1f lan3 (uninitialized): PHY [mt7530-0:03] driver [MediaTek MT7530 PHY] (irq=24)
[ 12.333537] mt7530-mdio mdio-bus:1f sfp (uninitialized): PHY [mt7530-0:04] driver [MediaTek MT7530 PHY] (irq=25)
[ 12.346002] mtk_soc_eth 1e100000.ethernet eth0: entered promiscuous mode
[ 12.352920] DSA: tree 0 setup
[ 12.356888] clk: Disabling unused clocks
[ 12.366347] VFS: Mounted root (squashfs filesystem) readonly on device 31:6.
[ 12.377591] Freeing unused kernel image (initmem) memory: 1252K
[ 12.383606] This architecture does not have kernel memory protection.
[ 12.390042] Run /sbin/init as init process
[ 12.891126] init: Console is alive
[ 12.894931] init: - watchdog -
[ 13.996055] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 14.064257] usbcore: registered new interface driver usbfs
[ 14.069981] usbcore: registered new interface driver hub
[ 14.075525] usbcore: registered new device driver usb
[ 14.082415] gpio_button_hotplug: loading out-of-tree module taints kernel.
[ 14.100489] xhci-mtk 1e1c0000.xhci: supply vbus not found, using dummy regulator
[ 14.108277] xhci-mtk 1e1c0000.xhci: supply vusb33 not found, using dummy regulator
[ 14.116441] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[ 14.121895] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 1
[ 14.134467] xhci-mtk 1e1c0000.xhci: hcc params 0x01401198 hci version 0x96 quirks 0x0000000000280010
[ 14.143753] xhci-mtk 1e1c0000.xhci: irq 27, io mem 0x1e1c0000
[ 14.149762] xhci-mtk 1e1c0000.xhci: xHCI Host Controller
[ 14.155132] xhci-mtk 1e1c0000.xhci: new USB bus registered, assigned bus number 2
[ 14.162626] xhci-mtk 1e1c0000.xhci: Host supports USB 3.0 SuperSpeed
[ 14.170176] hub 1-0:1.0: USB hub found
[ 14.174174] hub 1-0:1.0: 2 ports detected
[ 14.179449] usb usb2: We don't know the algorithms for LPM for this host, disabling LPM.
[ 14.188863] hub 2-0:1.0: USB hub found
[ 14.192818] hub 2-0:1.0: 1 port detected
[ 14.206175] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 14.224256] init: - preinit -
[ 15.211220] mtk_soc_eth 1e100000.ethernet wan: renamed from eth1
[ 16.681822] random: crng init done
Cannot parse config file '/etc/fw_env.config': No such file or directory
Failed to find NVMEM device
[ 17.589030] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[ 17.601624] mt7530-mdio mdio-bus:1f lan1: configuring for phy/gmii link mode
[ 17.608869] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
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
[ 21.863806] jffs2: notice: (584) jffs2_build_xattr_subsystem: complete building xattr subsystem, 21 of xdatum (0 unchecked, 2 orphan) and 27 of xref (2 dead, 0 orphan) found.
[ 21.881336] mount_root: switching to jffs2 overlay
[ 21.889300] overlayfs: upper fs does not support tmpfile.
[ 21.903342] urandom-seed: Seeding with /etc/urandom.seed
[ 22.017508] procd: - early -
[ 22.020614] procd: - watchdog -
[ 22.626185] procd: - watchdog -
[ 22.630462] procd: - ubus -
[ 22.792604] procd: - init -
Please press Enter to activate this console.
[ 23.568229] kmodloader: loading kernel modules from /etc/modules.d/*
[ 23.641003] mtk-eip93 1e004000.crypto: EIP93 Crypto Engine Initialized.
[ 24.106534] ipip: IPv4 and MPLS over IPv4 tunneling driver
[ 24.127316] Loading modules backported from Linux version v6.12.6-0-ge9d65b48ce1a
[ 24.134852] Backport generated by backports.git v6.1.110-1-35-g410656ef04d2
[ 24.496619] batman_adv: B.A.T.M.A.N. advanced 2024.3-openwrt-5 (compatibility version 15) loaded
[ 24.521976] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 24.676362] urngd: v1.0.2 started.
[ 35.786641] mtk_soc_eth 1e100000.ethernet eth0: Link is Down
[ 35.810022] mtk_soc_eth 1e100000.ethernet eth0: configuring for fixed/rgmii link mode
[ 35.818461] mtk_soc_eth 1e100000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 35.824262] mt7530-mdio mdio-bus:1f lan1: configuring for phy/gmii link mode
[ 35.836498] br-lan: port 1(lan1) entered blocking state
[ 35.841947] br-lan: port 1(lan1) entered disabled state
[ 35.847310] mt7530-mdio mdio-bus:1f lan1: entered allmulticast mode
[ 35.853750] mtk_soc_eth 1e100000.ethernet eth0: entered allmulticast mode
[ 35.862976] mt7530-mdio mdio-bus:1f lan1: entered promiscuous mode
[ 35.886567] br-lan: entered promiscuous mode
[ 35.914420] mt7530-mdio mdio-bus:1f lan2: configurin� for phy/gmii link mode
[ 35.924368] br-lan: port 2(lan2) entered blocking state
[ 35.929688] br-lan: port 2(lan2) entered disabled state
[ 35.935243] mt7530-mdio mdio-bus:1f lan2: entered allmulticast mode
[ 35.943797] mt7530-mdio mdio-bus:1f lan2: entered promiscuous mode
[ 35.964743] mt7530-mdio mdio-bus:1f lan3: configuring for phy/gmii link mode
[ 35.973409] br-lan: port 3(lan3) entered blocking state
[ 35.978658] br-lan: port 3(lan3) entered disabled state
[ 35.984143] mt7530-mdio mdio-bus:1f lan3: entered allmulticast mode
[ 35.993103] mt7530-mdio mdio-bus:1f lan3: entered promiscuous mode
[ 36.160676] mt7530-mdio mdio-bus:1f sfp: configuring for phy/gmii link mode
[ 36.170890] br-lan: port 4(sfp) entered blocking state
[ 36.176318] br-lan: port 4(sfp) entered disabled state
[ 36.181619] mt7530-mdio mdio-bus:1f sfp: entered allmulticast mode
[ 36.190698] mt7530-mdio mdio-bus:1f sfp: entered promiscuous mode
[ 36.205220] mtk_soc_eth 1e100000.ethernet wan: PHY [mt7530-0:00] driver [MediaTek MT7530 PHY] (irq=21)
[ 36.214901] mtk_soc_eth 1e100000.ethernet wan: configuring for phy/rgmii link mode
[ 36.249764] mtk_soc_eth 1e100000.ethernet wan: entered promiscuous mode
[ 36.609873] 8021q: adding VLAN 0 to HW filter on device bat0
[ 36.623751] br-lan: port 5(bat0) entered blocking state
[ 36.629032] br-lan: port 5(bat0) entered disabled state
[ 36.634498] bat0: entered allmulticast mode
[ 36.639211] bat0: entered promiscuous mode
[ 36.643795] br-lan: port 5(bat0) entered blocking state
[ 36.649069] br-lan: port 5(bat0) entered forwarding state
[ 37.101916] batman_adv: bat0: No IGMP Querier present - multicast optimizations disabled
[ 37.110050] batman_adv: bat0: No MLD Querier present - multicast optimizations disabled
[ 56.075098] mt7530-mdio mdio-bus:1f lan1: Link is Up - 1Gbps/Full - flow control rx/tx
[ 56.075201] br-lan: port 1(lan1) entered blocking state
[ 56.088284] br-lan: port 1(lan1) entered forwarding state
[ 56.142957] mt7530-mdio mdio-bus:1f lan1: Link is Down
[ 56.148343] br-lan: port 1(lan1) entered disabled state
[ 58.319741] mt7530-mdio mdio-bus:1f lan1: Link is Up - 100Mbps/Half - flow control off
[ 58.321977] br-lan: port 1(lan1) entered blocking state
[ 58.332920] br-lan: port 1(lan1) entered forwarding state
[ 63.870022] mt7530-mdio mdio-bus:1f lan1: Link is Down
[ 63.875375] br-lan: port 1(lan1) entered disabled state
[ 66.319627] mt7530-mdio mdio-bus:1f lan1: Link is Up - 100Mbps/Half - flow control off
[ 66.326277] br-lan: port 1(lan1) entered blocking state
[ 66.332809] br-lan: port 1(lan1) entered forwarding state