From: "Ara Avanesyan" <araav@hylink.am>
To: <linux-kernel@vger.kernel.org>, <avila@lists.unixstudios.net>
Subject: Strange memory problem with Linux booted from U-Boot
Date: Mon, 28 Mar 2005 19:57:52 +0500 [thread overview]
Message-ID: <00ae01c533a6$85ddf1f0$1000000a@araavanesyan> (raw)
In-Reply-To: <20050127144441.GB4848@home.fluff.org>
Hi,
I need some help on solving this strange problem.
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 the 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.
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.
Linux is MontaVista(R) Linux(R) Professional Edition 3.1.
Ok, now an amazing reproduction of the same problem from user mode:
the code below works for val = (~0), but not for 0, or even (~ff).
Again, it works fine for linux booted from RedBoot.
Some glue or something where and what to look?
Any ideas of what potentially could cause this problem?
Please CC me on reply.
Thanks!
Ara
Several days ago I posted this question to U-boot mailing list but got not
much help there:)
____
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)
___
Now the (user level) code:
#include <iostream>
using namespace std;
const int pass = 64;
const int size = 2 * 1024 * 1024;
const int val = 0xffffff00;
int main()
{
cout << "starting val == " << hex << val << endl;
char *buf = new char[size];
cout << "allocated memory of " << size << " bytes. buf == " << (int)buf
<< endl;
for (int j = 0; j < pass; j++)
{
cout << "passing " << j << endl;
for (int i = 0; i < size; i++)
{
buf[i] = val;
}
cout << "passed" << endl;
}
cout << "freeing" << endl;
delete []buf;
cout << "finished!" << endl;
return 0;
}
next prev parent reply other threads:[~2005-03-28 14:58 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-27 14:40 ixdp4xx restart. watchdog enable value Ara Avanesyan
2005-01-27 14:44 ` Ben Dooks
2005-03-28 14:57 ` Ara Avanesyan [this message]
2005-03-28 15:06 ` Strange memory problem with Linux booted from U-Boot Jan Engelhardt
2005-03-29 7:02 ` Ara Avanesyan
2005-03-28 16:17 ` linux-os
2005-03-30 7:21 ` Eugene Surovegin
2005-03-31 13:39 ` Ara Avanesyan
2005-01-27 16:01 ` ixdp4xx restart. watchdog enable value David Vrabel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='00ae01c533a6$85ddf1f0$1000000a@araavanesyan' \
--to=araav@hylink.am \
--cc=avila@lists.unixstudios.net \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome