btauro
Posts: 24
Joined: Fri Jan 12, 2018 3:11 am

General Approach for a Minimal Kernel in ARM

Mon Jan 15, 2018 7:43 am

Hello Everyone,

What could be the main parts that need to be done to have a minimal kernel with Arm v8-A in Raspberry Pi3

Like in X86 we start with frame buffer,GDT ,Interrupts,Keyboard ,MMU,etc

How do we approach kernel Building in ARM in Raspberry pi3 and any reference links to existing minimal kernels,MMU management,IO for raspberry pi3 will be very helpful

Thanks.

dwelch67
Posts: 893
Joined: Sat May 26, 2012 5:32 pm

Re: General Approach for a Minimal Kernel in ARM

Mon Jan 15, 2018 2:06 pm

there are some sticky topics at the top of this forum that contain links to many different baremetal resources. covering framebuffer (not required for kernel development, a uart will do), mmu, usb (keyboard, etc, not required for kernel development, uart will do), booting the chip, interrupts, etc.

You are at the right place, but 99% of baremetal programming is reading (or hacking at what you read since it is often incomplete), almost none of it percentage-wise is programming. So do some reading do some experiments, when you get stuck, come back here there are many folks that have experience with this core/chip and platform at that level.

LdB
Posts: 658
Joined: Wed Dec 07, 2016 2:29 pm

Re: General Approach for a Minimal Kernel in ARM

Mon Jan 15, 2018 5:44 pm

Of your list the keyboard is the most problematic because that requires getting the USB operational which requires getting at least a minimal USB stack operating. There are several people/groups who have done implementations but to even try to integrate those requires a reasonable understanding of the USB. All the other stuff is trivial compared to that.

The only shortcut around it I have seen is turn some GPIO pins into a PS2 port and connect to a PS2 keyboard.

Return to “Bare metal”

Who is online

Users browsing this forum: No registered users and 4 guests