I have an Asus wl520gu. I can't find the right entry point for the cfe api. The one in bcm47xx/prom.c (0xBFC00500) works for the 5352 on an Asus wl500gp but not the 5354. It just hangs at "Starting program". I tested prom_putchar on the 5352, so its cfe api does work.
I checked 2.6.23, the Asus GPL code and dd-wrt, but the cfe api isn't used.
If I turn off CONFIG_EARLY_PRINTK and commented out prom_init_cfe, prom_init_console and prom_init_cmdline in prom.c, the 5354 boots. Either I have the wrong entry point or the api functionality is missing from the cfe. The cfe is rather stripped down, no ping, no nvram functions either than set, etc. This was probably done either to save space or confound the evil people who replace factory firmware.
Any idea, short of disassembling the 5354 cfe, on how to determine whether the api is really there and, if so, how to find the entry point?
The fw_arg's passed from both processors cfe's are below.
Steve
========================= BCM5354 ================
Loader:raw Filesys:raw Dev:flash0.os File: Options:(null)
Loading: .. 3752 bytes read
Entry at 0x80001000
Closing network.
Starting program at 0x80001000
Linux version 2.6.23.17 (brown@mythtv.cortland.com) (gcc version 4.1.2) #3 Sat May 31 16:00:27 PDT 2008
arch/mips/kernel/setup.c:528
arch/mips/kernel/setup.c:530
arch/mips/bcm947xx/prom.c:44
arch/mips/bcm947xx/prom.c:50 arg0:0xea8 arg1:0x80434760 arg2:0x80434760 arg3:0x80420084
arch/mips/bcm947xx/prom.c:52 arg3[0]:0x8fbf0014 arg3[1]:0x8fb00010 arg3[2]:0x3e00008 arg3[3]:0x27bd0018
arch/mips/bcm947xx/prom.c:66 mem:0x1000000
arch/mips/kernel/setup.c:532
CPU revision is: 00029029
arch/mips/kernel/setup.c:542
ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x14, vendor 0x4243)
======================== BCM5352 ================
Starting program at 0x80001000
Linux version 2.6.23.17 (brown@mythtv.cortland.com) (gcc version 4.1.2) #3 Sat May 31 16:00:27 PDT 2008
arch/mips/kernel/setup.c:528
arch/mips/kernel/setup.c:530
arch/mips/bcm947xx/prom.c:44
arch/mips/bcm947xx/prom.c:50 arg0:0xea8 arg1:0x8043b5c0 arg2:0x8043b5c0 arg3:0x80424e7c
arch/mips/bcm947xx/prom.c:52 arg3[0]:0x8fbf0014 arg3[1]:0x8fb00010 arg3[2]:0x3e00008 arg3[3]:0x27bd0018
arch/mips/bcm947xx/prom.c:66 mem:0x1000000
arch/mips/kernel/setup.c:532
CPU revision is: 00029008
arch/mips/kernel/setup.c:542
ssb: Core 0 found: ChipCommon (cc 0x800, rev 0x0E, vendor 0x4243)
ssb: Core 1 found: Fast Ethernet (cc 0x806, rev 0x09, vendor 0x4243)