Re:Kernel 101 – Let’s write a Kernel
by e12e on Tuesday April 15, 2014 @05:05AM
(#7590963)
This makes me really sad. 32bit mode x86 assembly is such a mess compared to amd64 -- I guess it's a good excuse to work with qemu and arm, if nothing else ;-)
[ Parent
| on HN ]
Re:Kernel 101 – Let’s write a Kernel
by TallGuyShort on Tuesday April 15, 2014 @10:49AM
(#7592100)
On the topic of ARM, does anybody know of a similar example like this for ARM? One that just shows you how to pass control to C and do some basic I/O?
Re:Kernel 101 – Let’s write a Kernel
by TallGuyShort on Tuesday April 15, 2014 @02:12PM
(#7593368)
Too late to edit my post, but I eventually found this: http://wiki.osdev.org/ARM_Integrator-CP_Bare_Bones. I haven't tried it out yet as I'm still getting the cross-compiler toolchain together (doesn't seem to be part of OpenSUSE 12, at least not an obvious part), and it's not as well explained, but still the best I've found.
It would be difficult to write an article similar to this on ARM, because there's no equivalent of what the PC "standard" is to x86 for ARM. Every ARM board and SoC have different boot protocols and peripheral devices.
There are some bootloaders that are commonly used in ARM, such as U-Boot. Perhaps that could be used to get started.