On 2015-06-24 19.18.42 +0200, Piotr Kubaj wrote: > On 06/24/15 19:11, Michael McConville wrote: > > On Wed, Jun 24, 2015 at 05:26:10PM +0200, Piotr Kubaj wrote: > >> I'm mainly a FreeBSD user but want to learn OpenBSD. I'm also interested > >> in basic electronics, like programming own thermometer. That's why I > >> want to install OpenBSD on my BeagleBone Black and write some simple > >> programs using I/O pins. Are there any tutorials on this? I have found > >> some books about FreeBSD kernel programming, but none for OpenBSD. > >> Thanks for your help. > > > > http://www.tedunangst.com/flak/post/OpenBSD-on-BeagleBone-Black > > > > I doubt there's much of what you're looking for. "The Design and > > Implementation of the OpenBSD Operating System" doesn't exist, and there > > isn't (to my knowledge) much long-form writing about the OpenBSD kernel. > > > I don't really have any kernel experience. I took interest in some basic > electronics, but I'm a sysadmin, I want to do it only for fun. I know > how to program, but didn't do anything related to kernel programming > (neither on OpenBSD nor any other OS). But since I've wanted to learn > OpenBSD for quite some time, I figured I would connect both (embedded > device programming and OpenBSD). But if there are no sources to learn > from (apart from source code), I guess I will stay with FreeBSD.
I recommend these man pages: - intro(9) - boot(9) - autoconf(9) - config_attach(9) And then start reading from here: - /usr/src/sys/kern/init_main.c - look at main - /usr/src/sys/arch/arm/arm/autoconf.c - look at cpu_configure There is not, so far as I know, a tutorial for OpenBSD + ARM. -Mike (Oh, and style(9).)