hola,
más avances; ya tengo la imagen sysupgrade preparada para flashear y va sin problemas... . No lo he conseguido desde la opción 2 del u-boot (sigue utilizando el particionado de la flash original).
** AL SEGUIR ESTOS PASOS PERDEMOS EL FIRMWARE ORIGINAL Y NO SÉ SI SE PODRÁ VOLVER A PONER **
- Arrancamos el firm en RAM siguiente según los pasos del post anterior:
https://www.dropbox.com/sh/ta6symxe5gpkw2u/FXaolNGmVU/openwrt-ramips-rt305x-asl26555-initramfs-uImage.bin- Subimos por SCP el firmware siguiente a /tmp:
https://www.dropbox.com/sh/87fccre4ucv8dmy/HVyXmG5Gq-/openwrt-ramips-rt305x-asl26555-squashfs-sysupgrade.bin- Ejecutamos: mtd write /tmp/<nombre del firmware> firmware.
La partición firmware (kernel+rootfs) está definida según esto:
root@OpenWrt:/etc/config# cat /proc/mtd
dev: size erasesize name
mtd0: 00030000 00010000 "u-boot"
mtd1: 00010000 00010000 "boot-env"
mtd2: 00010000 00010000 "factory"
mtd3: 000e0000 00010000 "kernel"
mtd4: 00ea0000 00010000 "rootfs"
mtd5: 00d00000 00010000 "rootfs_data"
mtd6: 00f80000 00010000 "firmware"
mtd7: 00010000 00010000 "devdata"
mtd8: 00010000 00010000 "cert"
mtd9: 00010000 00010000 "langpack"
( he respetado las cert y langpack aunque están prácticamente vacías ) (nunca borrar el devdata)
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 13312 1604 11708 12% /
/dev/root 1792 1792 0 100% /rom
tmpfs 15076 1716 13360 11% /tmp
tmpfs 512 0 512 0% /dev
root 15076 44 15032 0% /tmp/root
overlayfs:/tmp/root 15076 44 15032 0% /tmp/root
/dev/mtdblock5 13312 1604 11708 12% /overlay
overlayfs:/overlay 13312 1604 11708 12% /
Adjunto el bootlog completo: [spoiler][ 0.000000] Linux version 3.2.9 (chisco@chisco-desktop) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #6 Mon Mar 19 22:40:08 WET 2012
[ 0.000000] prom: fw_arg0=801e82d4, fw_arg1=801e82d4, fw_arg2=00000000, fw_arg3=80255b8c
[ 0.000000] env= (null) is not in RAM, skipping
[ 0.000000] env= (null) is not in RAM, skipping
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU revision is: 0001964c (MIPS 24KEc)
[ 0.000000] Ralink RT3052 id:1 rev:3 running at 384.00 MHz
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 02000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Zone PFN ranges:
[ 0.000000] Normal 0x00000000 -> 0x00002000
[ 0.000000] Movable zone start PFN for each node
[ 0.000000] early_node_map[1] active PFN ranges
[ 0.000000] 0: 0x00000000 -> 0x00002000
[ 0.000000] On node 0 totalpages: 8192
[ 0.000000] free_area_init_node: node 0, pgdat 80224f00, node_mem_map 81000000
[ 0.000000] Normal zone: 64 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 8128 pages, LIFO batch:0
[ 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: 8128
[ 0.000000] Kernel command line: board=ASL26555 console=ttyS1,57600 mtdparts=spi0.0:192k(u-boot)ro,64k(boot-env)ro,64k(factory)ro,896k(kernel),14976k(rootfs),15872k@0x50000(firmware),64k@0xff0000(devdata)ro,64k@0xfd0000(cert)ro,64k@0xfe0000(langpack)ro board=ASL26555 console=ttyS1,57600 mtdparts=spi0.0:192k(u-boot)ro,64k(boot-env)ro,64k(factory)ro,896k(kernel),14976k(rootfs),15872k@0x50000(firmware),64k@0xff0000(devdata)ro,64k@0xfd0000(cert)ro,64k@0xfe0000(langpack)ro console=ttyS1,57600 rootfstype=squashfs,jffs2
[ 0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[ 0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000000] Primary instruction cache 32kB, 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=00064120
[ 0.000000] Readback ErrCtl register=00064120
[ 0.000000] Memory: 29988k/32768k available (1883k kernel code, 2780k reserved, 313k data, 164k init, 0k highmem)
[ 0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:48
[ 0.000000] console [ttyS1] enabled, bootconsole disabled
[ 0.010000] Calibrating delay loop... 255.59 BogoMIPS (lpj=1277952)
[ 0.090000] pid_max: default: 32768 minimum: 301
[ 0.100000] Mount-cache hash table entries: 512
[ 0.110000] NET: Registered protocol family 16
[ 0.120000] MIPS: machine is Alpha ASL26555
[ 0.140000] bio: create slab <bio-0> at 0
[ 0.150000] Switching to clocksource MIPS
[ 0.160000] NET: Registered protocol family 2
[ 0.170000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.190000] TCP established hash table entries: 1024 (order: 1, 8192 bytes)
[ 0.200000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.210000] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.230000] TCP reno registered
[ 0.230000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.240000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.260000] NET: Registered protocol family 1
[ 0.310000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.320000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.340000] msgmni has been set to 58
[ 0.350000] io scheduler noop registered
[ 0.360000] io scheduler deadline registered (default)
[ 0.370000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.380000] serial8250: ttyS0 at MMIO 0x10000500 (irq = 13) is a 16550A
[ 0.400000] serial8250: ttyS1 at MMIO 0x10000c00 (irq = 20) is a 16550A
[ 0.420000] m25p80 spi0.0: s25sl12801 (16384 Kbytes)
[ 0.430000] 9 cmdlinepart partitions found on MTD device spi0.0
[ 0.440000] Creating 9 MTD partitions on "spi0.0":
[ 0.450000] 0x000000000000-0x000000030000 : "u-boot"
[ 0.460000] 0x000000030000-0x000000040000 : "boot-env"
[ 0.480000] 0x000000040000-0x000000050000 : "factory"
[ 0.490000] 0x000000050000-0x000000130000 : "kernel"
[ 0.500000] 0x000000130000-0x000000fd0000 : "rootfs"
[ 0.520000] mtd: partition "rootfs" set to be root filesystem
[ 0.530000] mtd: partition "rootfs_data" created automatically, ofs=2D0000, len=D00000
[ 0.550000] 0x0000002d0000-0x000000fd0000 : "rootfs_data"
[ 0.560000] 0x000000050000-0x000000fd0000 : "firmware"
[ 0.570000] 0x000000ff0000-0x000001000000 : "devdata"
[ 0.590000] 0x000000fd0000-0x000000fe0000 : "cert"
[ 0.600000] 0x000000fe0000-0x000000ff0000 : "langpack"
[ 0.620000] TCP westwood registered
[ 0.630000] NET: Registered protocol family 17
[ 0.640000] 8021q: 802.1Q VLAN Support v1.8
[ 0.660000] VFS: Mounted root (squashfs filesystem) readonly on device 31:4.
[ 0.680000] Freeing unused kernel memory: 164k freed
[ 3.600000] input: gpio-keys-polled as /devices/platform/gpio-keys-polled/input/input0
[ 3.790000] Button Hotplug driver version 0.4.1
[ 4.090000] Registered led device: asl26555:green:wifi
[ 4.090000] Registered led device: asl26555:green:power
[ 4.090000] Registered led device: asl26555:green:status
[ 4.090000] Registered led device: asl26555:green:adsl
[ 8.600000] Compat-wireless backport release: compat-wireless-2012-02-27-1-r30958
[ 8.620000] Backport based on wireless-testing.git master-2012-02-27
[ 8.670000] cfg80211: Calling CRDA to update world regulatory domain
[ 9.840000] cfg80211: World regulatory domain updated:
[ 9.850000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
[ 9.860000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 9.880000] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 9.890000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
[ 9.910000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 9.930000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
[ 9.950000] SCSI subsystem initialized
[ 10.270000] usbcore: registered new interface driver usbfs
[ 10.280000] usbcore: registered new interface driver hub
[ 10.300000] usbcore: registered new device driver usb
[ 11.120000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[ 11.120000] Registered led device: rt2800pci-phy0::radio
[ 11.120000] Registered led device: rt2800pci-phy0::assoc
[ 11.120000] Registered led device: rt2800pci-phy0::quality
[ 11.940000] PPP generic driver version 2.4.2
[ 12.240000] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 12.410000] NET: Registered protocol family 24
[ 12.680000] nf_conntrack version 0.5.0 (471 buckets, 1884 max)
[ 13.180000] dwc_otg: version 2.72a 24-JUN-2008
[ 13.190000] dwc_otg: Core Release: 2.66a
[ 13.400000] dwc_otg: Periodic Transfer Interrupt Enhancement - disabled
[ 13.410000] dwc_otg: Multiprocessor Interrupt Enhancement - disabled
[ 13.430000] dwc_otg: Using DMA mode
[ 13.430000] dwc_otg: Device using Buffer DMA mode
[ 13.440000] dwc_otg dwc_otg.0: DWC OTG Controller
[ 13.450000] dwc_otg dwc_otg.0: new USB bus registered, assigned bus number 1
[ 13.470000] dwc_otg dwc_otg.0: irq 26, io mem 0x101c0000
[ 13.480000] dwc_otg: Init: Port Power? op_state=1
[ 13.490000] dwc_otg: Init: Power Port (0)
[ 13.500000] hub 1-0:1.0: USB hub found
[ 13.500000] hub 1-0:1.0: 1 port detected
[ 13.550000] Initializing USB Mass Storage driver...
[ 13.560000] usbcore: registered new interface driver usb-storage
[ 13.580000] USB Mass Storage support registered.
[ 14.030000] usb 1-1: new high-speed USB device number 2 using dwc_otg
[ 14.330000] scsi0 : usb-storage 1-1:1.0
[ 15.330000] scsi 0:0:0:0: Direct-Access Generic STORAGE DEVICE 9407 PQ: 0 ANSI: 0
[ 15.470000] sd 0:0:0:0: [sda] 1984000 512-byte logical blocks: (1.01 GB/968 MiB)
[ 15.490000] sd 0:0:0:0: [sda] Write Protect is off
[ 15.500000] sd 0:0:0:0: [sda] Mode Sense: 03 00 00 00
[ 15.520000] sd 0:0:0:0: [sda] No Caching mode page present
[ 15.530000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 15.550000] sd 0:0:0:0: [sda] No Caching mode page present
[ 15.570000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 15.600000] sda: sda1
[ 15.630000] sd 0:0:0:0: [sda] No Caching mode page present
[ 15.640000] sd 0:0:0:0: [sda] Assuming drive cache: write through
[ 15.650000] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 19.630000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0
[ 19.680000] jffs2_build_filesystem(): unlocking the mtd device... done.
[ 19.690000] jffs2_build_filesystem(): erasing all blocks after the end marker...
[ 35.260000] ramips-wdt: timeout value 60 must be 0 < timeout < 33
[ 42.960000] device eth0.1 entered promiscuous mode
[ 42.970000] device eth0 entered promiscuous mode
[ 43.040000] br-lan: port 1(eth0.1) entering forwarding state
[ 43.050000] br-lan: port 1(eth0.1) entering forwarding state
[ 115.000000] done.
[ 115.010000] JFFS2 notice: (796) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[ 214.540000] wlan0: authenticate with 30:39:ff:88:33:ff
[ 214.660000] wlan0: send auth to 30:39:ff:88:33:ff (try 1/3)
[ 214.660000] wlan0: authenticated
[ 214.740000] wlan0: associate with 30:39:ff:88:33:ff (try 1/3)
[ 214.740000] wlan0: RX AssocResp from 30:39:ff:88:33:ff (capab=0x411 status=0 aid=4)
[ 214.740000] wlan0: associated
[/spoiler]
A ver si termino algunas cosas que faltan y preparo los parches para abrir un ticket...
Saludos.