Difference between revisions of "RaspberryPi Osdev"
(Raspberry pi osdev community bootup) |
(Bit of instructions) |
||
Line 1: | Line 1: | ||
Raspberry Pi is an opportunity for people to learn OS development on fixed hardware. This makes it easier to make designs that you can share with others. Thereby we have started a community, which communicates through IRC. | Raspberry Pi is an opportunity for people to learn OS development on fixed hardware. This makes it easier to make designs that you can share with others. Thereby we have started a community, which communicates through IRC. | ||
+ | |||
+ | == Hardware Specific Documentation == | ||
+ | |||
+ | It is bit of essential to know the hardware you're programming. I propose looting the [[RPi Hardware]] -page. From the Components -section you should pick yourself the datasheets of the SoC and CPU Core. Also you might like to look up the quick reference card for ARM instruction set by searching in the internet a bit. | ||
+ | |||
+ | There's other documentation there all splattered around. Especially the forums seem to have gathered some posts that are worth referencing in the wiki once they're refound. | ||
+ | |||
+ | The basics for programming a kernel for raspberry pi seem straightforward. You'll fill a fat32 -partition to a memory card. It contains some specific files you can retrieve from /boot -directory in [https://github.com/raspberrypi/firmware]. | ||
+ | |||
+ | Your kernel goes into kernel.img. The first 16 bytes contain an interrupt vector table and the very first vector is a RESET interrupt, which will boot up the computer. Bootloader might corrupt the first 0x8000 bytes with linux-related attributes if misconfigured. Because of that you might want to add such padding to your kernel as well. | ||
+ | |||
+ | == First Steps == | ||
+ | |||
+ | Once you've gotten the Raspberry Pi to blink a led there's an one very logical next step. First | ||
+ | thing any kernel should be able to do is to load some programs from the development computer. A working environment will resemble a live coding system, bit similar to SuperCollider. The motivation is that you should be able to have fast compile-test -cycles and removing-reformatting-inserting the SD card all the time causes external and internal wearing on the card. | ||
== IRC Channel == | == IRC Channel == |
Revision as of 16:22, 7 June 2012
Raspberry Pi is an opportunity for people to learn OS development on fixed hardware. This makes it easier to make designs that you can share with others. Thereby we have started a community, which communicates through IRC.
Hardware Specific Documentation
It is bit of essential to know the hardware you're programming. I propose looting the RPi Hardware -page. From the Components -section you should pick yourself the datasheets of the SoC and CPU Core. Also you might like to look up the quick reference card for ARM instruction set by searching in the internet a bit.
There's other documentation there all splattered around. Especially the forums seem to have gathered some posts that are worth referencing in the wiki once they're refound.
The basics for programming a kernel for raspberry pi seem straightforward. You'll fill a fat32 -partition to a memory card. It contains some specific files you can retrieve from /boot -directory in [1].
Your kernel goes into kernel.img. The first 16 bytes contain an interrupt vector table and the very first vector is a RESET interrupt, which will boot up the computer. Bootloader might corrupt the first 0x8000 bytes with linux-related attributes if misconfigured. Because of that you might want to add such padding to your kernel as well.
First Steps
Once you've gotten the Raspberry Pi to blink a led there's an one very logical next step. First thing any kernel should be able to do is to load some programs from the development computer. A working environment will resemble a live coding system, bit similar to SuperCollider. The motivation is that you should be able to have fast compile-test -cycles and removing-reformatting-inserting the SD card all the time causes external and internal wearing on the card.
IRC Channel
irc.freenode.net#raspberrypi-osdev
How to connect
* install irssi * start irssi and type in: /connect irc.freenode.net * then type: /join #raspberrypi-osdev