Pues... Es extraño, pero no he necesitado volver a entrar en el bootloader danube.
Lo que hice fue:
- Entrar en modo uart
- cat u-boot.asc >> /dev/ttyUSB0
- Esperar a que arrancase el u-boot.
Tal y como entró hice
- loady del u-boot de CieNTi (arv4518pw) a una dirección de memoria (creo que la 0x80500000)
- protect off all
- cp.b 0x805000000 0xb0000000
y luego reinicié el router. Me encontré con un u-boot funcional instalado. Esto era mi prioridad, porque el cirio de entrar en modo UART en mi caso se las trae. Tras esto, ya dí por hecho que tocaba instalar el openwrt:
- loady 0x80500000
-> Paso por ymodem la imagen que pasaste (Linux OpenWrt 3.3.8 #1 Mon Jul 9 19:56:11 UTC 2012 mips GNU/Linux)
- protect off all
- era 0xb0020000 ${filesize}
-> Esto es porque dice la página de Openwrt que la imagen empieza en el 20000
- era 0xb0030000 +${filesize}
-> Porque me fío más bien poco de lo diga la página de Openwrt
- cp.b 0x80500000 0xb0030000 ${filesize}
-> Para confirmar lo que me fío de OpenWrt
- reset
-> Para ver si todo funciona
Y parece que sí, que funciona... He aquí el log:
-------------------------------------------------------------------
[ 0.000000] Linux version 3.3.8 (fnord@tschunk) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #1 Mon Jul 9 19:56:11 UTC 2012
[ 0.000000] SoC: Danube rev 1.5
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 00019641 (MIPS 24KEc)
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone PFN ranges:
[ 0.000000] Normal 0x00000000 -> 0x00004000
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] Early memory PFN ranges
[ 0.000000] 0: 0x00000000 -> 0x00004000
[ 0.000000] On node 0 totalpages: 16384
[ 0.000000] free_area_init_node: node 0, pgdat 802ea4a0, node_mem_map 81000000
[ 0.000000] Normal zone: 128 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 16256 pages, LIFO batch:3
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc:
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyLTQ1,115200 rootfstype=squashfs,jffs2 machtype=ARV7518PW
[ 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] 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] Writing ErrCtl register=0005fb60
[ 0.000000] Readback ErrCtl register=0005fb60
[ 0.000000] Memory: 61672k/65536k available (2411k kernel code, 3864k reserved, 567k data, 176k init, 0k highmem)
[ 0.000000] NR_IRQS:256
[ 0.000000] CPU Clock: 333MHz
[ 0.000000] Calibrating delay loop... 221.18 BogoMIPS (lpj=442368)
[ 0.040000] pid_max: default: 32768 minimum: 301
[ 0.044000] Mount-cache hash table entries: 512
[ 0.052000] NET: Registered protocol family 16
[ 0.060000] gpiochip_add: registered GPIOs 0 to 15 on device: ltq_gpio
[ 0.064000] gpiochip_add: registered GPIOs 16 to 31 on device: ltq_gpio
[ 0.068000] MIPS: machine is ARV7518PW - ASTORIA
[ 0.072000] gpiochip_add: registered GPIOs 100 to 115 on device: ltq_ebu
[ 0.112000] bio: create slab <bio-0> at 0
[ 0.120000] PCI host bridge to bus 0000:00
[ 0.124000] pci_bus 0000:00: root bus resource [mem 0x18000000-0x19ffffff]
[ 0.128000] pci_bus 0000:00: root bus resource [io 0x1ae00000-0x1affffff]
[ 0.132000] pci 0000:00:0e.0: [168c:ff1d] type 0 class 0x000200
[ 0.132000] pci 0000:00:0e.0: fixup device configuration
[ 0.136000] pci 0000:00:0e.0: fixup info: [168c:0029] revision 01 class 0x028000
[ 0.140000] pci 0000:00:0e.0: reg 10: [mem 0x00000000-0x0000ffff]
[ 0.140000] pci 0000:00:0e.0: PME# supported from D0 D3hot
[ 0.140000] pci 0000:00:0e.0: BAR 0: assigned [mem 0x18000000-0x1800ffff]
[ 0.144000] pci 0000:00:0e.0: SLOT:14 PIN:1 IRQ:30
[ 0.148000] Switching to clocksource MIPS
[ 0.156000] NET: Registered protocol family 2
[ 0.164000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.168000] TCP established hash table entries: 2048 (order: 2, 16384 bytes)
[ 0.176000] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.184000] TCP: Hash tables configured (established 2048 bind 2048)
[ 0.188000] TCP reno registered
[ 0.192000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.200000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.204000] NET: Registered protocol family 1
[ 0.208000] PCI: CLS 0 bytes, default 32
[ 0.212000] gptu: totally 6 16-bit timers/counters
[ 0.216000] gptu: misc_register on minor 63
[ 0.220000] gptu: succeeded to request irq 126
[ 0.224000] gptu: succeeded to request irq 127
[ 0.228000] gptu: succeeded to request irq 128
[ 0.232000] gptu: succeeded to request irq 129
[ 0.240000] gptu: succeeded to request irq 130
[ 0.244000] gptu: succeeded to request irq 131
[ 0.252000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.256000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.268000] msgmni has been set to 120
[ 0.272000] io scheduler noop registered
[ 0.276000] io scheduler deadline registered (default)
[ 0.280000] ltq_asc.1: ttyLTQ1 at MMIO 0x1e100c00 (irq = 112) is a ltq_asc
[ 0.288000] console [ttyLTQ1] enabled, bootconsole disabled
[ 0.304000] ltq_nor: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x0000c2 Chip ID 0x0022cb
[ 0.312000] ltq_nor: Found an alias at 0x800000 for the chip at 0x0
[ 0.312000] Amd/Fujitsu Extended Query Table at 0x0040
[ 0.316000] Amd/Fujitsu Extended Query version 1.1.
[ 0.320000] number of CFI chips: 1
[ 0.324000] Creating 4 MTD partitions on "ltq_nor":
[ 0.328000] 0x000000000000-0x000000020000 : "uboot"
[ 0.336000] 0x000000020000-0x000000030000 : "uboot_env"
[ 0.344000] 0x000000030000-0x0000007f0000 : "linux"
[ 0.352000] found squashfs behind kernel
[ 0.352000] Creating 2 MTD partitions on "ltq_nor":
[ 0.356000] 0x000000030000-0x00000013a8de : "kernel"
[ 0.364000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[ 0.376000] 0x00000013a8de-0x0000007f0000 : "rootfs"
[ 0.380000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only
[ 0.396000] mtd: partition "rootfs" set to be root filesystem
[ 0.400000] mtd: partition "rootfs_data" created automatically, ofs=360000, len=490000
[ 0.408000] 0x000000360000-0x0000007f0000 : "rootfs_data"
[ 0.416000] 0x0000007f0000-0x000000800000 : "board_config"
[ 0.572000] ltq_mii: probed
[ 0.596000] eth0: Atheros AR8216 switch driver attached.
[ 0.696000] eth0: attached PHY [Atheros AR8216/AR8236/AR8316] (phy_addr=ltq_etop-fffffff:00, irq=-1)
[ 0.708000] Registered led device: soc:red:power
[ 0.708000] Registered led device: soc:green:power
[ 0.708000] Registered led device: soc:green:wifi
[ 0.708000] Registered led device: soc:green:adsl
[ 0.712000] Registered led device: soc:green:internet
[ 0.712000] Registered led device: soc:red:internet
[ 0.712000] Registered led device: soc:green:voip
[ 0.712000] Registered led device: soc:green:phone1
[ 0.712000] Registered led device: soc:green:phone2
[ 0.712000] Registered led device: soc:orange:fail
[ 0.716000] Registered led device: soc:green:usb
[ 0.716000] Registered led device: soc:orange:wps
[ 0.716000] Registered led device: soc:green:wps
[ 0.716000] Registered led device: soc:red:wps
[ 0.716000] TCP cubic registered
[ 0.720000] NET: Registered protocol family 17
[ 0.724000] Bridge firewalling registered
[ 0.728000] 8021q: 802.1Q VLAN Support v1.8
[ 0.744000] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[ 0.752000] Freeing unused kernel memory: 176k freed
[ 7.072000] JFFS2 notice: (409) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 0 orphan) and 11 of xref (0 dead, 2 orphan) found.
[ 9.760000] Compat-wireless backport release: compat-wireless-2012-06-14
[ 9.764000] Backport based on wireless-testing.git master-2012-06-14
[ 9.768000] compat.git: wireless-testing.git
[ 9.812000] cfg80211: Calling CRDA to update world regulatory domain
[ 9.816000] cfg80211: World regulatory domain updated:
[ 9.820000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 9.828000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 9.836000] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 9.844000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 9.852000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 9.856000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 10.476000] usbcore: registered new interface driver usbfs
[ 10.480000] usbcore: registered new interface driver hub
[ 10.484000] usbcore: registered new device driver usb
[ 11.464000] PCI: Enabling device 0000:00:0e.0 (0000 -> 0002)
[ 11.476000] ath: EEPROM regdomain: 0x67
[ 11.476000] ath: EEPROM indicates we should expect a direct regpair map
[ 11.476000] ath: Country alpha2 being used: 00
[ 11.476000] ath: Regpair used: 0x67
[ 11.484000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 11.488000] Registered led device: ath9k-phy0
[ 11.488000] ieee80211 phy0: Atheros AR9280 Rev:2 mem=0xb8000000, irq=30
[ 11.516000] NET: Registered protocol family 8
[ 11.520000] NET: Registered protocol family 20
[ 11.572000] Button Hotplug driver version 0.4.1
[ 11.612000] PPP generic driver version 2.4.2
[ 12.020000] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 12.476000] NET: Registered protocol family 24
[ 12.508000] nf_conntrack version 0.5.0 (966 buckets, 3864 max)
[ 12.916000] IFX MEI Version 5.00.00
[ 13.080000]
[ 13.080000] Infineon CPE API Driver version: DSL CPE API V3.24.4.4
[ 13.236000] ATM (A1) firmware version 1.0.19
[ 13.240000] ifxmips_atm: ATM init succeed
[ 13.272000] dwc_otg: version 2.60a 22-NOV-2006
[ 13.880000] DWC_otg: Using DMA mode
[ 13.880000] dwc_otg dwc_otg.0: DWC OTG Controller
[ 13.884000] dwc_otg dwc_otg.0: new USB bus registered, assigned bus number 1
[ 13.892000] dwc_otg dwc_otg.0: irq 62, io mem 0xffffffffbe101000
[ 13.900000] DWC_otg: Init: Port Power? op_state=1
[ 13.904000] DWC_otg: Init: Power Port (0)
[ 13.908000] hub 1-0:1.0: USB hub found
[ 13.912000] hub 1-0:1.0: 1 port detected
[ 13.936000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled/input/input0
[ 14.288000] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 20.032000] device eth0.1 entered promiscuous mode
[ 20.036000] device eth0 entered promiscuous mode
[ 20.048000] br-lan: port 1(eth0.1) entered forwarding state
[ 20.052000] br-lan: port 1(eth0.1) entered forwarding state
[ 22.056000] br-lan: port 1(eth0.1) entered forwarding state