2012/6/21 Florian Fainelli <flor...@openwrt.org>: > On Thursday 21 June 2012 08:53:24 Rafał Miłecki wrote: >> 2012/6/20 Rafał Miłecki <zaj...@gmail.com>: >> > I've compiled OpenWRT from git and generated image for my WNDR4500 with: >> > $(call Image/Build/Chk,$(1),wndr4500,U12H189T00_NETGEAR,1,$(patsubst >> > jffs2-%,jffs2,$(1))) >> > >> > 1) Official upgrades seem to work, I've successfully upgraded 1.0.0.58 >> > to 1.0.0.103. >> > >> > 2) Installing openwrt-wndr4500-squashfs.chk using stock (official) >> > firmware GUI partially-failed with: >> > Writing 2756608 bytes to /dev/mtd15. >> > ......................mtd ioctl MEMERASE error. >> > See 1.upgrade.txt for details. >> > >> > 3) I've tried re-installing same image using tftp. I've used CFE >> > bootloader, executed "tfptd" and then uploaded image from my notebook. >> > It looks it succeed: >> > Reading :: Done. 2756666 bytes read >> > Programming...done. 2756666 bytes written >> > Write len/chksum offset @ 0x00EFFFF8...done. >> > However I'm still getting the same boot freeze. See 2.tftp.txt for > details. >> > >> > Any tips on that? >> >> I've removed target/linux/brcm47xx/patches-3.3/116-MIPS-BCM47xx-Remove-CFE- > console.patch >> and dropped "depends on arm" from KERNEL_EARLY_PRINTK. Did "make >> clean", reconfigured kernel, enabled EARLY and tried again. Still the >> same problem, 0x80001000 is last thing I can see :( > > Did you make sure the kernel command-line also includes "earlyprintk"? If that > still does not work, then obviously something is not ok from the very > beginning of kernel boot.
I didn't know it's required. I've modified target/linux/brcm47xx/config-3.3 and now after using "make", my build_dir/linux-brcm47xx/linux-3.3.8/.config looks like this: # CONFIG_TEST_KSTRTOX is not set CONFIG_EARLY_PRINTK=y CONFIG_CMDLINE_BOOL=y CONFIG_CMDLINE="root=/dev/mtdblock2 rootfstype=squashfs,jffs2 noinitrd console=ttyS0,115200 earlyprintk" # CONFIG_CMDLINE_OVERRIDE is not set Unfortunately, I still don't get anything after "Starting program at 0x80001000". > Can you try to load just the ELF kernel from CFE? Hauke, do you have any idea > what could have gone wrong for Rafal's device? Sure, if I just find howto on that. Just give me some time for this :) Yesterday I've used tftpd to install official firmware after I soft-bricked my routed with OpenWRT build. It has worked just fine, official firmware was installed correctly, so the hardware seems to be alright, not hard-bricked or anyhow damaged. -- Rafał _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel