From: ipif <ipif@ymail.com>
To: sparclinux@vger.kernel.org
Subject: alloc_io_res: cannot occupy / paging request fails
Date: Tue, 14 Apr 2009 12:00:41 +0000 [thread overview]
Message-ID: <23038125.post@talk.nabble.com> (raw)
Hi,
I'm trying to get MTD support working on my embedded sparc (leon3, V8).
There are 32MB of flash on the board I want to utilize starting at 0x0. The
corresponding kernel options are:
CONFIG_MTD_PHYSMAP=y
CONFIG_MTD_PHYSMAP_START=0x00000000
CONFIG_MTD_PHYSMAP_LEN=0x02000000
With these options the kernel stops booting with
"alloc_io_res(phys_00000000): cannot occupy".
So I changed IOBASE_END and VMALLOC_START from 0xfe600000 to 0xff400000 in
include/asm-sparc/vaddrs.h. And voila, the kernel boots fine. But when I Try
to access the flash with dd the following happens:
Unable to handle kernel paging request at virtual address fe640000
tsk->{mm,active_mm}->context = 000000ae
tsk->{mm,active_mm}->pgd = fc01f400
\|/ ____ \|/
"@'/ ,. \`@"
/_| \__/ |_\
\__U_/
dd(2616): Oops [#1]
PSR: f30000c2 PC: f01b543c NPC: f01b5440 Y: 00000000 Not tainted
PC: <cfi_intelext_read+0x158/0x1b4>
%G: fbd77d70 00000000 00000000 fe640000 00000000 00000000 fbd76000
00000000
%O: 00000000 00000000 01640000 00000000 00032000 01640000 fbd77d78
f01b53dc
RPC: <cfi_intelext_read+0xf8/0x1b4>
%L: 00000200 00000000 f0034ce4 01640000 f0ae39e0 f0b0c3e4 fbd76000
0005d000
%I: 00000000 01640000 f0ae3a18 00000200 fbd77e64 fbd16200 fbd77de0
f01ad1c0
Caller[f01ad1c0]: mtd_read+0xf8/0x23c
Caller[f007607c]: vfs_read+0x9c/0x140
Caller[f0076598]: sys_read+0x38/0x64
Caller[f0011310]: syscall_is_too_hard+0x3c/0x40
Caller[00011b20]: 0x11b28
Instruction DUMP: c405600c 86008013 84102000 <c208c002> c228801d 8400a001
80a08010 12bffffc 94100019
Thanks,
-jan
--
View this message in context: http://www.nabble.com/alloc_io_res%3A-cannot-occupy---paging-request-fails-tp23038125p23038125.html
Sent from the sparclinux mailing list archive at Nabble.com.
reply other threads:[~2009-04-14 12:00 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=23038125.post@talk.nabble.com \
--to=ipif@ymail.com \
--cc=sparclinux@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.