2012/6/21 Rafał Miłecki <zaj...@gmail.com>: > YOU'RE GREAT GUYS > > boot -tftp -elf 192.168.1.2" :/openwrt-brcm47xx-vmlinux.elf > Loader:elf Filesys:tftp Dev:eth0 > File:192.168.1.2:/openwrt-brcm47xx-vmlinux.elf Options:(null) > Loading: 0x80001000/4400228 0x80433464/118060 Entry at 0x80247370 > Closing network. > Starting program at 0x80247370 > [ 0.000000] Linux version 3.3.8 (za...@linux-bxwm.site) (gcc > version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #5 Thu > Jun 21 12:00:17 CEST 2012 > [ 0.000000] bootconsole [early0] enabled > [ 0.000000] CPU revision is: 00019749 (MIPS 74Kc) > [ 0.000000] bcm47xx: using bcma bus > [ 0.000000] bcma: Found chip with id 0x5300, rev 0x01 and package 0x00 > [ 0.000000] bcma: Failed to scan for common core: -29 > [ 0.000000] Kernel panic - not syncing: Failed to initialize BCMA > bus (err -1) > > Now the rest sounds trivial to fix! :) > > > Why booting elf from tftp allowed to me finally see anything? Any > explanation to that maybe?
OK, I've fixed booting to reach some sane state. I've been working using tftp and elf all the time. Finally my boot log (using tftp + elf) looks like you can see in attached log. So after reaching this stage I've switched from generating ramdisk to generating squashfs. Installed my openwrt-wndr4500-squashfs.chk and... again, nothing. I can't see anything after "Starting program at 0x80001000". I'm quite sure I install chk in the correct way. Just doing ROUTER: CFE> tftpd NOTEBOOK: tftp 192.168.1.1 mode binary put openwrt-wndr4500-squashfs.chk Doing the same with original firmware (put WNDR4500-V1.0.0.58_1.0.13.chk) installs firmware correctly. P.S. I've noticed there is also ttyS1 in logs. So I've modified CMDLINE to use ttyS1 instead of ttyS0, but it didn't help. The only difference is when loading elf using tftp. From some point of booting messages are duplicated: [ 2.900000] Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled [ 2.928000] serial8250.0: ttyS0 at MMIO 0xb8000300 (irq = 2) is a U6_16550A [ 3.600000] console [ttyS0] enabled [ 3.600000] console [ttyS0] enabled [ 3.628000] serial8250.0: ttyS1 at MMIO 0xb8000400 (irq = 2) is a U6_16550A [ 3.628000] serial8250.0: ttyS1 at MMIO 0xb8000400 (irq = 2) is a U6_16550A [ 3.644000] bcm47xx_pflash: error registering platform driver: -19 [ 3.644000] bcm47xx_pflash: error registering platform driver: -19 [ 3.656000] bcm47xx_sflash: found serial flash: blocksize=64KB, numblocks=32, size=2048KB [ 3.656000] bcm47xx_sflash: found serial flash: blocksize=64KB, numblocks=32, size=2048KB [ 3.680000] bcm47xx_part: bcm47xx-sflash: Couldn't find bootloader size [ 3.680000] bcm47xx_part: bcm47xx-sflash: Couldn't find bootloader size [ 3.696000] bcm47xx_nflash: error registering platform driver: -19 [ 3.696000] bcm47xx_nflash: error registering platform driver: -19 [ 3.712000] BCM47xx Watchdog Timer enabled (30 seconds, nowayout) [ 3.712000] BCM47xx Watchdog Timer enabled (30 seconds, nowayout) [ 3.724000] TCP westwood registered [ 3.724000] TCP westwood registered [ 3.732000] NET: Registered protocol family 17 [ 3.732000] NET: Registered protocol family 17 [ 3.740000] 8021q: 802.1Q VLAN Support v1.8 [ 3.740000] 8021q: 802.1Q VLAN Support v1.8 [ 3.748000] turn off boot console early0 [ 3.748000] turn off boot console early0 [ 3.764000] Freeing unused kernel memory: 1552k freed -- Rafał
[ 0.000000] Linux version 3.3.8 (za...@linux-bxwm.site) (gcc version 4.6.3 20120201 (prerelease) (Linaro GCC 4.6-2012.02) ) #31 Fri Jun 22 11:46:47 CEST 2012 [ 0.000000] bootconsole [early0] enabled [ 0.000000] CPU revision is: 00019749 (MIPS 74Kc) [ 0.000000] bcm47xx: using bcma bus [ 0.000000] bcma: Found chip with id 0x5300, rev 0x01 and package 0x00 [ 0.000000] bcma: Core 0 found: BCM4706 ChipCommon (manuf 0x4BF, id 0x500, rev 0x1F, class 0x0) [ 0.000000] bcma: Core 3 found: MIPS 74K (manuf 0x4A7, id 0x82C, rev 0x00, class 0x0) [ 0.000000] bcma: Found rev 6 PMU (capabilities 0x18162406) [ 0.000000] bcma: PLL init unknown for device 0x5300 [ 0.000000] bcma: PMU resource config unknown for device 0x5300 [ 0.000000] bcma: PMU switch/regulators init unknown for device 0x5300 [ 0.000000] bcma: Workarounds unknown for device 0x5300 [ 0.000000] bcma: Initializing MIPS core... [ 0.000000] bcma: IRQ reconfiguration done [ 0.000000] bcma: core 0x0500, irq : 2(S)* 3 4 5 6 D I [ 0.000000] bcma: core 0x082c, irq : 2(S)* 3 4 5 6 D I [ 0.000000] bcma: found serial flash. [ 0.000000] bcma: Early bus registered [ 0.000000] nvram on flash is bigger than the reserved space in memory, will just copy the first 32768 bytes [ 0.000000] Determined physical RAM map: [ 0.000000] memory: 08000000 @ 00000000 (usable) [ 0.000000] Initrd not found or empty - disabling initrd [ 0.000000] Zone PFN ranges: [ 0.000000] Normal 0x00000000 -> 0x00008000 [ 0.000000] Movable zone start PFN for each node [ 0.000000] Early memory PFN ranges [ 0.000000] 0: 0x00000000 -> 0x00008000 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 [ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200 earlyprintk [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes. [ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes [ 0.000000] Writing ErrCtl register=80000aa0 [ 0.000000] Readback ErrCtl register=80000aa0 [ 0.000000] Cache parity protection enabled [ 0.000000] Memory: 125324k/131072k available (2387k kernel code, 5748k reserved, 519k data, 1552k init, 0k highmem) [ 0.000000] NR_IRQS:128 [ 0.000000] Calibrating delay loop... 299.26 BogoMIPS (lpj=598528) [ 0.036000] pid_max: default: 32768 minimum: 301 [ 0.040000] Mount-cache hash table entries: 512 [ 0.044000] NET: Registered protocol family 16 [ 0.052000] bio: create slab <bio-0> at 0 [ 0.056000] Switching to clocksource MIPS [ 0.064000] NET: Registered protocol family 2 [ 0.068000] IP route cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.076000] TCP established hash table entries: 4096 (order: 3, 32768 bytes) [ 0.084000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes) [ 0.088000] TCP: Hash tables configured (established 4096 bind 4096) [ 0.096000] TCP reno registered [ 0.100000] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.104000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.112000] NET: Registered protocol family 1 [ 2.368000] bcma: Core 1 found: BCM4706 GBit MAC (manuf 0x4BF, id 0x52D, rev 0x00, class 0x0) [ 2.376000] bcma: Core 2 found: BCM4706 GBit MAC (manuf 0x4BF, id 0x52D, rev 0x00, class 0x0) [ 2.384000] bcma: Core 4 found: USB 2.0 Host (manuf 0x4BF, id 0x819, rev 0x04, class 0x0) [ 2.396000] bcma: Core 5 found: PCIe (manuf 0x4BF, id 0x820, rev 0x0E, class 0x0) [ 2.400000] bcma: Core 6 found: PCIe (manuf 0x4BF, id 0x820, rev 0x0E, class 0x0) [ 2.408000] bcma: Core 7 found: AMEMC (DDR) (manuf 0x4BF, id 0x52E, rev 0x00, class 0x0) [ 2.416000] bcma: Core 8 found: BCM4706 SOC RAM (manuf 0x4BF, id 0x50E, rev 0x05, class 0x0) [ 2.428000] bcma: Core 9 found: ALTA (I2S) (manuf 0x4BF, id 0x534, rev 0x00, class 0x0) [ 2.436000] bcma: Initializing MIPS core... [ 2.440000] bcma: set_irq: core 0x0820, irq 3 => 3 [ 2.444000] bcma: set_irq: core 0x0820, irq 5 => 4 [ 2.448000] bcma: IRQ reconfiguration done [ 2.452000] bcma: core 0x0500, irq : 2(S)* 3 4 5 6 D I [ 2.460000] bcma: core 0x082c, irq : 2(S)* 3 4 5 6 D I [ 2.464000] bcma: core 0x052d, irq : 2(S)* 3 4 5 6 D I [ 2.472000] bcma: core 0x052d, irq : 2(S)* 3 4 5 6 D I [ 2.476000] bcma: core 0x0819, irq : 2(S) 3 4 5 6* D I [ 2.484000] bcma: core 0x0820, irq : 2(S) 3* 4 5 6 D I [ 2.488000] bcma: core 0x0820, irq : 2(S) 3 4* 5 6 D I [ 2.492000] bcma: core 0x052e, irq : 2(S)* 3 4 5 6 D I [ 2.500000] bcma: core 0x050e, irq : 2(S)* 3 4 5 6 D I [ 2.504000] bcma: core 0x0534, irq : 2(S)* 3 4 5 6 D I [ 2.512000] bcma: PCIEcore in host mode found [ 2.632000] PCI host bridge to bus 0000:00 [ 2.636000] pci_bus 0000:00: root bus resource [mem 0x40000000-0x43ffffff] [ 2.640000] pci_bus 0000:00: root bus resource [io 0x0100-0x07ff] [ 2.648000] bcma: PCI: Fixing up bridge 0000:00:00.0 [ 2.652000] bcma: PCI: Fixing up device 0000:00:00.0 [ 2.660000] bcma: PCI: Fixing up bridge 0000:00:00.1 [ 2.664000] bcma: PCI: Fixing up device 0000:00:00.1 [ 2.672000] bcma: PCI: Fixing up addresses 0000:00:01.0 [ 2.676000] pci 0000:00:01.0: BAR 0: assigned [mem 0x40000000-0x40003fff 64bit] [ 2.688000] PCI: Enabling device 0000:00:01.0 (0000 -> 0002) [ 2.692000] bcma: PCI: Fixing up device 0000:00:01.0 [ 2.696000] bcma: Found chip with id 0x4331, rev 0x02 and package 0x08 [ 2.704000] bcma: Core 0 found: ChipCommon (manuf 0x4BF, id 0x800, rev 0x25, class 0x0) [ 2.712000] bcma: Core 1 found: IEEE 802.11 (manuf 0x4BF, id 0x812, rev 0x1D, class 0x0) [ 2.720000] bcma: Core 2 found: PCIe (manuf 0x4BF, id 0x820, rev 0x13, class 0x0) [ 2.728000] bcma: Found rev 10 PMU (capabilities 0x108C260A) [ 2.732000] bcma: bcma_pcicore_serdes_workaround A/D [ 2.756000] bcma: bcma_pcicore_serdes_workaround B/D [ 2.776000] bcma: bcma_pcicore_serdes_workaround C/D tmp:0x2040 [ 2.780000] bcma: bcma_pcicore_serdes_workaround D/D [ 2.784000] bcma: bcma_sprom_ext_available A capabilities: 0x58500000 [ 2.792000] bcma: bcma_sprom_ext_available B srom_control: 0x3 [ 2.796000] bcma: SPROM offset 0x800 [ 2.840000] bcma: BAD CRC! [ 2.844000] bcma: Failed to get SPROM: -71 [ 2.848000] bcma: Bus registered [ 2.852000] bcma: bcma_sprom_ext_available A capabilities: 0x984801CA [ 2.864000] bcma: Bus registered [ 2.868000] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 2.876000] JFFS2 version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 2.884000] msgmni has been set to 244 [ 2.888000] io scheduler noop registered [ 2.892000] io scheduler deadline registered (default) [ 2.900000] Serial: 8250/16550 driver, 2 ports, IRQ sharing enabled [ 2.928000] serial8250.0: ttyS0 at MMIO 0xb8000300 (irq = 2) is a U6_16550A[ 2.932000] console [ttyS0] enabled, bootconsole disabled [ 2.932000] console [ttyS0] enabled, bootconsole disabled [ 2.964000] serial8250.0: ttyS1 at MMIO 0xb8000400 (irq = 2) is a U6_16550A [ 2.976000] bcm47xx_pflash: error registering platform driver: -19 [ 2.984000] bcm47xx_sflash: found serial flash: blocksize=64KB, numblocks=32, size=2048KB [ 3.000000] bcm47xx_part: bcm47xx-sflash: Couldn't find bootloader size [ 3.008000] bcm47xx_nflash: error registering platform driver: -19 [ 3.016000] BCM47xx Watchdog Timer enabled (30 seconds, nowayout) [ 3.024000] TCP westwood registered [ 3.028000] NET: Registered protocol family 17 [ 3.032000] 8021q: 802.1Q VLAN Support v1.8 [ 3.040000] Freeing unused kernel memory: 1552k freed
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel