On Fri, 2010-12-03 at 20:57 +0100, Hauke Mehrtens wrote: > On 12/03/2010 08:13 PM, Steve Brown wrote: > > Tested on Asus 520gu and 500gpv2. > > > > Hangs at: "Starting program at 0x80001000" > > > > No output thereafter. > > > > Rev 24162 boots on both routers. > > > > Steve > > > Hi Steve, > > Thank you for the information. To fix the problem we need some more > informations. Please also test version r24166. > > Does the same image work on other devices? Have you run make distclean > before building an image for version >= 24167? > > Hauke
Below is the diff between the working (r24166) and non-working (r24236) arch/mips/bcm47xx directories. Looks pretty benign. I thought it might be a problem with the mips distribution. However, r24236 with a 2.6.36.1 kernel builds and boots on a Routerboard 532A. I tried to use cfe_write to tell me where things quit, but couldn't even get it to work on r24166. It's either not in the cfe on my board or I'm not using it properly. Steve ------------- diff -u build_dir/linux-brcm47xx/linux-2.6.36.1/arch/mips/bcm47xx/nvram.c ../trunk-brcm-svn-24165/build_dir/linux-brcm47xx/linux-2.6.34.7/arch/mips/bcm47xx/nvram.c --- build_dir/linux-brcm47xx/linux-2.6.36.1/arch/mips/bcm47xx/nvram.c 2010-12-03 15:40:16.767020193 -0500 +++ ../trunk-brcm-svn-24165/build_dir/linux-brcm47xx/linux-2.6.34.7/arch/mips/bcm47xx/nvram.c 2010-12-03 16:19:43.045019865 -0500 @@ -139,8 +139,7 @@ end = nvram_buf + sizeof(nvram_buf) - 2; end[0] = end[1] = '\0'; for (; *var; var = value + strlen(value) + 1) { - eq = strchr(var, '='); - if (!eq) + if (!(eq = strchr(var, '='))) break; value = eq + 1; if ((eq - var) == strlen(name) && strncmp(var, name, (eq - var)) == 0) @@ -149,4 +148,5 @@ return NULL; } + EXPORT_SYMBOL(nvram_get); diff -u build_dir/linux-brcm47xx/linux-2.6.36.1/arch/mips/bcm47xx/setup.c ../trunk-brcm-svn-24165/build_dir/linux-brcm47xx/linux-2.6.34.7/arch/mips/bcm47xx/setup.c --- build_dir/linux-brcm47xx/linux-2.6.36.1/arch/mips/bcm47xx/setup.c 2010-12-03 15:40:16.730020202 -0500 +++ ../trunk-brcm-svn-24165/build_dir/linux-brcm47xx/linux-2.6.34.7/arch/mips/bcm47xx/setup.c 2010-12-03 16:19:42.945019467 -0500 @@ -84,7 +84,7 @@ static void bcm47xx_fill_sprom(struct ssb_sprom *sprom) { char buf[100]; - u32 uninitialized_var(boardflags); + u32 boardflags; memset(sprom, 0, sizeof(struct ssb_sprom)); _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel