Arm Community
Site
Search
User
Site
Search
User
Groups
Arm Research
DesignStart
Education Hub
Graphics and Gaming
High Performance Computing
Innovation
Multimedia
Open Source Software and Platforms
Physical
Processors
Security
System
Software Tools
TrustZone for Armv8-M
中文社区
Blog
Announcements
Artificial Intelligence
Automotive
Healthcare
HPC
Infrastructure
Innovation
Internet of Things
Machine Learning
Mobile
Smart Homes
Wearables
Forums
All developer forums
IP Product forums
Tool & Software forums
Support
Open a support case
Documentation
Downloads
Training
Arm Approved program
Arm Design Reviews
Community Help
More
Cancel
Developer Community
Tools and Software
Software Tools
Jump...
Cancel
Software Tools
Arm Development Studio forum
MMU problem on ARM926EJ-S
Tools, Software and IDEs blog
Forums
Videos & Files
Help
Jump...
Cancel
New
Replies
2 replies
Subscribers
126 subscribers
Views
1543 views
Users
0 members are here
Related
MMU problem on ARM926EJ-S
Offline
Fabu Kosmi
over 7 years ago
Note: This was originally posted on 19th January 2011 at http://forums.arm.com
Hello community!
I've faced a problem while porting an OKL4 3.0 kernel to an ARM926EJ-S (Samsung S3C2412) board. I'm able to compile my kernel and load it into the boards RAM, but after starting it there is no reaction on my serial output. So I started to debug the source code. Due to the fact that I've got no JTAG and other debugging methods failed I'm using a LED based debugging method. I activate a LED by writing into its register. So I encountered a very early function in code in which the execution flow stucks:
It is a function that enables MMU, caching e.g.. I figured out: if I set the MMU disable bit in it I get out of this function. But if i enable the MMU, the flow stucks. The MMU is a necessary part of the kernel.
Before the MMU gets enabled the code has to perform several code specific operations:
###########################################################
start() must ensure that the platform is set to the following state:
- All caching is disabled.
- Virtual memory is disabled (MMU is turned off).
- Memory controllers are configured and running.
- The stack pointer is set.
- Other control registers required for further initialization are set.
###########################################################
After that the code enables MMU, caching e.g. considering following ARM926EJ-S specific requirements (ARM926EJ-S TM Revision: r0p5 Technical Reference Manual):
1. Program the TTB register (CP15 c2) and the domain access control register (CP15 c3).
2. Program first-level and second-level page tables as required, ensuring that a valid translation table is placed in memory at the location specified by the TTB register.
I could image the (a) problem refers to page table related issues.
Do you have an idea which problems I've to take into account?
Best regards,
Fabu
Offline
Fabu Kosmi
over 7 years ago
Note: This was originally posted on 24th January 2011 at
http://forums.arm.com
I did that - but unfortunately it doesn't work anyway.
Cancel
Up
0
Down
Reply
Cancel
Offline
jameer mulani
over 7 years ago
Note: This was originally posted on 21st January 2011 at
http://forums.arm.com
You need to invalidate TLB abd caches.
Cancel
Up
0
Down
Reply
Cancel
More questions in this forum
By title
By date
By reply count
By view count
By most asked
By votes
By quality
Descending
Ascending
All recent questions
Unread questions
Questions you've participated in
Questions you've asked
Unanswered questions
Answered questions
Questions with suggested answers
Questions with no replies
Answered
Failed to read contents of Internal RAM L1-I_DATA in ARM DS
0
Arm Development Studio
Cache
Debug and Trace Services Layer (DTSL)
13457
views
23
replies
Latest
4 months ago
by
Boon Khai
Answered
DS-5 connect fail when cortex-r5 is in lock-step mode
+1
11225
views
10
replies
Latest
5 months ago
by
Stuart Hirons
Answered
On Cortex-M4F microcontrollers: is fixed point math faster or floating point?
+1
10774
views
10
replies
Latest
5 months ago
by
Ronan Synnott
Answered
Debugging kernel: OS support not working for Linux 5.4
+1
Kernel Developers
External Hardware Debug
Debugger
9648
views
5
replies
Latest
5 months ago
by
sgoldschmidt
Answered
DS-5 bare metal wait error after run "debug"
+1
DS-5 Development Studio
Debugging
Arm Compiler 5
Memory
32544
views
14
replies
Latest
5 months ago
by
prasadghole
<
>
View all questions in Arm Development Studio forum