* "kernel access of bad area" while accessing flash
@ 2008-08-27 3:13 Fundu
2008-08-27 11:33 ` Josh Boyer
0 siblings, 1 reply; 2+ messages in thread
From: Fundu @ 2008-08-27 3:13 UTC (permalink / raw)
To: linux embedded
I have a PPC440GX based board.
Do I need to reinitialize Peripheral Bank Configuration Registers (EBC0_B0CR-EBC0_B7CR) from the kernel ?
I'm quite sure that we don't, but just want to make sure. Because the problem
that i'm seeing strongly suggest that it's probably not accessible.
Here's the problem, i'm getting "kernel access of bad
area" when i erase any of the upper 64mb out of 128mb flash region, surprisingly i can easily erase (all of the flash) from u-boot. which makes me ask the earlier question.
any insights welcome.
thanks !
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: "kernel access of bad area" while accessing flash
2008-08-27 3:13 "kernel access of bad area" while accessing flash Fundu
@ 2008-08-27 11:33 ` Josh Boyer
0 siblings, 0 replies; 2+ messages in thread
From: Josh Boyer @ 2008-08-27 11:33 UTC (permalink / raw)
To: Fundu; +Cc: linux embedded
On Tue, Aug 26, 2008 at 08:13:39PM -0700, Fundu wrote:
>I have a PPC440GX based board.
>
>Do I need to reinitialize Peripheral Bank Configuration Registers (EBC0_B0CR-EBC0_B7CR) from the kernel ?
>I'm quite sure that we don't, but just want to make sure. Because the problem
>that i'm seeing strongly suggest that it's probably not accessible.
Typically not. The kernel tends to rely on the EBC registers being properly
programmed by the bootloader/firmware for the devices contained in it's banks.
>Here's the problem, i'm getting "kernel access of bad
> area" when i erase any of the upper 64mb out of 128mb flash region, surprisingly i can easily erase (all of the flash) from u-boot. which makes me ask the earlier question.
>
That sounds more like a mapping issue than an EBC config issue. Make sure
the kernel is calling ioremap on the entire flash memory region.
josh
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-08-27 11:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-27 3:13 "kernel access of bad area" while accessing flash Fundu
2008-08-27 11:33 ` Josh Boyer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox