Skip to contentSkip to conversation

Memory Access Problem

U-Boot-Users sudhakar rajashekhara 2 participants 2 messages Feb 24, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

We have ported U-boot and Linux to a custom 8280 board. For this board, the LED base has been set at 0x2200A000. I am able to write to this base from U-boot using mw command and control the LED display. But if I try to access the same memory from Linux, the kernel is raising an exception. I even tried to map this memory area by calling ioremap in MMU_init but the result was same. Do I have to do any other configuration in the Linx kernel to access this memory area? Following is the log:

regards,
Sudhakar.

=======================================================

Oops: kernel access of bad area, sig: 11

NIP: C0139034 XER: 00000000 LR: C0139024 SP: C05B9F90
REGS: c05b9ee0 TRAP: 0300
Not tainted

MSR: 00009032 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11

DAR: 2200A000, DSISR: 22000000

TASK = c05b8000[1] 'swapper' Last syscall: -1

last math 00000000 last altivec 00000000

GPR00: FFFFFFFF C05B9F90 C05B8000 C0110000 00001032 00000001 00000001 00000000

GPR08: F0000088 2200A000 C012D417 C05B9EA0 C0170000 00000000 10000000 00000000
GPR24: 00000000 00000000 40000000 007FFF7E 007FFF00 00000000 C0170000 007FFEB0
Call backtrace:
=======================================================

__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools

#1 lore raw
Quoted 7 lines · In message <[email protected]> you wrote:

We have ported U-boot and Linux to a custom 8280 board. For this board, the LED base has been set at 0x2200A000. I am able to write to this base from U-boot using mw command and control the LED display. But if I try to access the same memory from Linux, the kernel is raising an exception. I even tried to map

This is not a U-Boot related question. It is thus off topic on this list.

Quoted 2 lines

this memory area by calling ioremap in MMU_init but the result was same. Do I have to do any other

...

Quoted 6 lines
Oops: kernel access of bad area, sig: 11
NIP: C0139034 XER: 00000000 LR: C0139024 SP: C05B9F90
REGS: c05b9ee0 TRAP: 0300
   Not tainted

MSR: 00009032 EE: 1 PR: 0 FP: 0 ME: 1 IR/DR: 11
DAR: 2200A000, DSISR: 22000000

^^^^^^^^^^^^^^^

I think that this address was not mapped by the Linux kernel. Check you code again. Also, please reconsider your memory map - see
http://www.denx.de/twiki/bin/view/PPCEmbedded/Kernel#Section_10.2.

Best regards,

Wolfgang Denk

Signature · 4 lines
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
"God is a comedian playing to an audience too afraid to laugh."
- Voltaire