Skip to contentSkip to conversation

Strange memory allocation problem in linux

U-Boot-Users Ara Avanesyan 2 participants 3 messages Mar 23, 2005 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

Hi,

I do not know whether this is a right group to ask this question, but i'm giving it a try.
Here is what I have,
I have a loadable module (linux.2.4.20) which contains a 2 mb static gloabal array.
When I load it from linux booted via U-Boot system crashes. Everything works ok if I do the same thing with the same linux booted with RedBoot.
Before loading the module I check the current meminfo and get the same result both times.

Some glue or something where and what to look?

Thanks!
Ara

Additional information:
The same error occurs if I just run depmod -a.

system: Avila board 64 MB RAM, ixdp425 architecture, U-Boot: 1.1.2

error message:

Unable to handle kernel paging request at virtual address e59f30f8
mm = c000a320 pgd = c3e60000
*pgd = 00000000, *pmd = 00000000
Internal error: Oops: 0
CPU: 0

pc 2 [<c0054f64>] lr : [<00000000>] Tainted: GF
sp : c3e45e94 ip : c3e45eb4 fp : c3e45eb0
r10: 00000000 r9 : c3e45f04 r8 : 00000004
r7 : 00000004 r6 : c016a000 r5 : c3e44000 r4 : e59f3054
r3 : e91ba870 r2 : c019cc70 r1 : 00000000 r0 : 00000000
Flags: nzCv IRQs on FIQs on Mode SVC_32 Control: 39FF Table: 03E60000
DAC: 00000015
Process klogd (pid: 89, stack limit = 0xc3e443a0)

Stack: (0xc3e45e94 to 0xc3e46000)
#2 lore raw
Quoted 6 lines · In message <001b01c52f89$2166d6e0$1000000a@araavanesyan> you wrote:

I have a loadable module (linux.2.4.20) which contains a 2 mb static gloabal array.
When I load it from linux booted via U-Boot system crashes. Everything works ok if I do the same thing with the same linux booted with RedBoot.

You cannot boot he same kernel image from Redboot and U-Boot, so there is most probably a difference betwween your two kernel images.

Did you record the kernel boot messages in both cases and run a "diff" over them? What did you see?

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
If all economists were laid end to end, they would not reach  a  con-
clusion.
#3 lore raw
Quoted 2 lines
Quoted 2 lines

I have a loadable module (linux.2.4.20) which contains a 2 mb static

gloabal

Quoted 3 lines
Quoted 3 lines

array.
When I load it from linux booted via U-Boot system crashes. Everything works ok if I do the same thing with the same linux booted

with

Quoted 4 lines
Quoted 1 line

RedBoot.

You cannot boot he same kernel image from Redboot and U-Boot, so there is most probably a difference betwween your two kernel images.

But I did, for redboot I do: make zImage and for u-boot I do: make uImage. and the only difference between my binaries is the u-boot's 64 byte info block.

Quoted 3 lines

Did you record the kernel boot messages in both cases and run a "diff" over them? What did you see?

Yes, I get exactly(!) the same text:(
I tried /proc/sys entries, all of them are the same for both cases.

Thanks!
Ara