RE: Kernel hangs in KernelFindMemory
- From: Silver <Silver@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 23 Oct 2007 09:52:06 -0700
Comments Inline.
Just wanted to say that you need to ensure that you do not use any
functionality that is xscale specific, and a lot of the XLLP code, amongst
others, is very xscale only.
Geoff
--
Since i dont know how to create a .nb0 through the config.bib,i am
creating nk.nb0 from NK.BIN using viewbin and cvrtbin sequence.
Uncomment ROMSIZE in your config. bib, make it the size of you RAMIMAGE
area + some rounding and you will get a nk.nb0
address table and config.bib otherwise look feasible to me.
The debugger says its running and after some time it time outs.What debugger? The Lauterbach? It should never timeout when connected, it
uses hardware - unless there is a bus problem. Does the system have KITL
setup? I see no ethernet part mapped into you address table.
This code will not test and burst accesses. Turn on caches then use some LDM
1) I have searched through the newsgroups and tested the RAM in the
OALstartup function as follows
/ STM instruction to get some bursts going. Also, writing all 0xAAAAAAAA then
reading back the same address tells you not much. However, I believe some
RAM is behaving as it is getting quite far in bootup. Ensure your ram setup
in the Lauterbach matches your setup in code.
You definitely need a timer initialized, otherwise you will not get a system
2) In the Uart output,my personal debugs messages are also there.Pls
ignore it.VIC and timers are not initialized so pls ignore those
messages and i mapped timer irq with sysintr.
tick.
ZBANK is a hangover from StrongARM, it was an area that always returned 0
3) what is the purpose of ZBANK ? i commented because i dont know
about it.
and was used to clear the caches.
4) what is the purpose of ROMFLAGS ? what should be the ideal value ?See the PB documentation for a description. Ideal depends upon what is ideal
for you.
I can't, I do not know enough about your hardware, but they do look feasible
5)Pls verify that my configurations are correct ?
to me at a quick glance.
6)i just iterated with NK and RAM MEMORY sections with differentLook reasonable.
values and final one is
NK 80100000 00500000 RAMIMAGE ; 5 MB
RAM 80600000 00600000 RAM ; 6 MB
Ok.
7) i havenot builded the nk.lib and cache libraries .I linked to 3
libraries.
$(_PLATCOMMONLIB)\$(_CPUDEPPATH)\oal_cache_arm926.lib \
$(_PLATCOMMONLIB)\$(_CPUDEPPATH)\oal_cache_arm.lib \
$(_PLATCOMMONLIB)\$(_CPUDEPPATH)\oal_cache.lib \
8) i used the following lines in the OEMInit()
TURN_ON_BTB();
// Set memory size for DrWatson kernel support.
//
// dwNKDrWatsonSize = 128 * 1024;
NKForceCleanBoot();
I havent modified the TURN_ON_BTB function,this is same as ofBranch Targt Buffer - you CPU will need to have this option for it to work.
Mainstone's.I commented dwNKDrWatsonSize to avoid one debug message
that is
Error Reporting Memory Reserved, dump size =
9) i dont know what is the ideal value of ROMSIZE for my case,so iAutosize uses leftover RAMIMAGE area for more RAM. See PB docs.
commented.i have tried with AUTOSIZE for both ON and OFF values.No
Difference.
10) Finally,i am waiting for your valuable suggestions/opinions as i.
think experience matters at this moment for me.
Hope there is a community for inexperienced WINCE developers to
have a confidence in ourelves that we are not lost.
Thanking you for a patient listening.
- Follow-Ups:
- Re: Kernel hangs in KernelFindMemory
- From: Manoj
- Re: Kernel hangs in KernelFindMemory
- References:
- Kernel hangs in KernelFindMemory
- From: Manoj
- Kernel hangs in KernelFindMemory
- Prev by Date: Re: WPA2
- Next by Date: Re: Regarding Win CE devce Driver
- Previous by thread: Kernel hangs in KernelFindMemory
- Next by thread: Re: Kernel hangs in KernelFindMemory
- Index(es):
Relevant Pages
|