<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">Hi Hesham,<br>
I don't have an answer for you, but you may be able to find some
help or example code on the raspberrypi.org forums. <br>
A couple of examples:<br>
<a
href="http://www.raspberrypi.org/phpBB3/viewtopic.php?t=40183&p=336705">http://www.raspberrypi.org/phpBB3/viewtopic.php?t=40183&p=336705</a><br>
<a
href="http://www.raspberrypi.org/phpBB3/viewtopic.php?t=40665&p=332205">http://www.raspberrypi.org/phpBB3/viewtopic.php?t=40665&p=332205</a><br>
<br>
I avoided the MMU setup on the raspberry pi BSP, because I knew
that the GPU based bootloader set up the memory for the ARM CPU.
More info on the whole boot process here:<br>
<a href="http://elinux.org/RPi_Software">http://elinux.org/RPi_Software</a><br>
<br>
Another nice thing to have for work like this is a JTAG debugger
setup. I hope I can get an inexpensive setup for mine before I try
to add any more drivers. <br>
The readme at the repository below has some good info on setting
up JTAG on the raspberry pi:<br>
<a
href="https://github.com/dwelch67/raspberrypi/tree/master/armjtag">https://github.com/dwelch67/raspberrypi/tree/master/armjtag</a><br>
<br>
Alan<br>
<br>
<br>
On 8/22/2013 6:48 PM, Hesham Moustafa wrote:<br>
</div>
<blockquote
cite="mid:CA+wsVCDnwSPEiWiLpj4kh8tKB6AEXfL8qUQ_3GW-vMoKvnWNRQ@mail.gmail.com"
type="cite">
<div dir="ltr">Hey all,
<div><br>
</div>
<div>I am working on Raspberry Pi BSP which has ARM1176JZF-S
(ARMv6) processor on it. Here is what I am doing that causes
the processor to halt:</div>
<div><br>
</div>
<div>At BSP startup, specifically in bsp_start_hook_0 function,
I call another function that :</div>
<div>1- Initialize first level page tables (sections) with
READ/WRITE permissions.</div>
<div>2- Invalidate TLB.</div>
<div>3- Enable MMU, Cache, Protection bits in control register.</div>
<div><br>
</div>
<div>Initialization is done correctly and the program reaches my
application (test case), which tries to update first level
page table entries to force another protection attributes for
a memory region. At this part, after, or before, modifying the
page table entry, I try to invalidate TLB but the program
halts there. I disable MMU and Caches during updating page
tables and invalidating TLB. </div>
<div><br>
</div>
<div>When removing the function call that invalidates the TLB,
the program proceed to the end successfully.</div>
<div><br>
</div>
<div>Not sure why the processor halts when trying to invalidate
the TLB "at the second time". I hope someone can tell me the
reason.</div>
<div><br>
</div>
<div>Regards,</div>
<div>Hesham</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
rtems-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rtems-devel@rtems.org">rtems-devel@rtems.org</a>
<a class="moz-txt-link-freetext" href="http://www.rtems.org/mailman/listinfo/rtems-devel">http://www.rtems.org/mailman/listinfo/rtems-devel</a>
</pre>
</blockquote>
<br>
</body>
</html>