[uClinux-dev] XIP broken in 2.4.31-uc0 ? (fwd)

David McCullough davidm at snapgear.com
Thu Oct 6 18:20:08 EDT 2005


Jivin Erwin Authried lays it down ...
> Am Don, den 06.10.2005 schrieb David McCullough um 12:43:
> > Jivin Erwin Authried lays it down ...
> > > Hi David,
> > > it doesn't crash, I'm only getting those messages when an app is
> > > started:
> > > 
> > > kernel BUG at mmap.c:1343!
> > 
> > I don't understand that,  something must still be wrong.
> > There were a lot of things I fixed that should mean this bug can no
> > longer happen.  Obviously still more to go.
> > 
> > Are you getting this for every app or just a particular app ?
> > Can you run multiple copies of "sh" now without errors ?
> > 
> I'm using busybox with msh compiled in. Just for clarifying, there are
> no crashes, just this "kernel BUG ..." message. That's what happens when
> I invoke sh two times:
> -------------------------------------------------------------
> # sh
> BINFMT_FLAT: Loading file: /bin/sh
> kernel BUG at mmap.c:1343!
> Mapping is 7f0d6e20, Entry point is 50, data_start is 304a0
> Load /bin/sh: TEXT=7f0d6e60-7f1072c0 DATA=340004-347874
> BSS=347874-35b214
> 
> 
> BusyBox v1.00 (2005.10.05-08:34+0000) Built-in shell (msh)
> Enter 'help' for a list of built-in commands.
> 
> # sh
> BINFMT_FLAT: Loading file: /bin/sh
> kernel BUG at mmap.c:1343!
> kernel BUG at mmap.c:1343!
> Mapping is 7f0d6e20, Entry point is 50, data_start is 304a0
> Load /bin/sh: TEXT=7f0d6e60-7f1072c0 DATA=2c0004-2c7874
> BSS=2c7874-2db214
> 
> 
> BusyBox v1.00 (2005.10.05-08:34+0000) Built-in shell (msh)
> Enter 'help' for a list of built-in commands.
> 
> #
> -------------------------------------------------------------
> 
> It seems to happen with every application that is executed from romfs
> after two or more invocations. I have verified that the message doesn't
> show up when applications are executed via NFS, although the text
> segment is shared with NFS too.
> 
> I tried a very small testapplication from romfs:
> 
> main(){ while(1) ; }
> 
> I get the following output when I start this app 4x in the background:
> 
> -------------------------------------------------------------
> # looptest &
> BINFMT_FLAT: Loading file: /bin/looptest
> kernel BUG at mmap.c:1343!
> Mapping is 7f12b0a0, Entry point is 44, data_start is e60
> Load /bin/looptest: TEXT=7f12b0e0-7f12bf00 DATA=39c004-39c214
> BSS=39c214-39c514
> 80
> # looptest &
> BINFMT_FLAT: Loading file: /bin/looptest
> kernel BUG at mmap.c:1343!
> Mapping is 7f12b0a0, Entry point is 44, data_start is e60
> Load /bin/looptest: TEXT=7f12b0e0-7f12bf00 DATA=2e0004-2e0214
> BSS=2e0214-2e0514
> 81
> # looptest &
> BINFMT_FLAT: Loading file: /bin/looptest
> kernel BUG at mmap.c:1343!
> kernel BUG at mmap.c:1343!
> Mapping is 7f12b0a0, Entry point is 44, data_start is e60
> Load /bin/looptest: TEXT=7f12b0e0-7f12bf00 DATA=2ce004-2ce214
> BSS=2ce214-2ce514
> 82
> # looptest &
> BINFMT_FLAT: Loading file: /bin/looptest
> kernel BUG at mmap.c:1343!
> kernel BUG at mmap.c:1343!
> kernel BUG at mmap.c:1343!
> Mapping is 7f12b0a0, Entry point is 44, data_start is e60
> Load /bin/looptest: TEXT=7f12b0e0-7f12bf00 DATA=2d4004-2d4214
> BSS=2d4214-2d4514
> 83
> # 
> -------------------------------------------------------------
> 
> > What filesystem are you using ?  blkmem or MTD ?
> > 
> Currently, I'm using blkmem, the flash with the romfs is at address
> 7f000000. Please let me know if you want any special tests/debugging
> outputs.


Thanks,  this looks exactly like the fix in lib/rbtree.c  was not
applied,  but I am sure you have that.  Gerg ran something here
yesterday on real HW and had some problems as well.

So it looks like I will have to dig out some real HW and try it,  the
emulators seem to be fine with it.

Cheers,
Davidm

-- 
David McCullough, davidm at cyberguard.com.au, Custom Embedded Solutions + Security
Ph:+61 734352815 Fx:+61 738913630 http://www.uCdot.org http://www.cyberguard.com



More information about the uClinux-dev mailing list