OpenBSD/zaurus: pocket-sized BSD

uticus1 pts1 comments

The closest thing to cute kittens

OpenBSD stories

miod<br>software<br>OpenBSD<br>stories<br>The closest thing to cute kittens

(Follow this link to go back to the main zaurus page,<br>and this link to go back to the previous part.)

OpenBSD/zaurus: pocket-sized BSD

It was time to work on the real objective: the Zaurus port. Its early infancy<br>can be seen in this teaser from Rahn on december 14th (still 2004):

hi theo<br>OpenBSD/pxaarm (zaurus) booting ...<br>initarm: Configuring system ...<br>physmemory: 16384 pages at 0xa0000000 -> 0xa3ffffff<br>Allocating page tables<br>freestart = 0xa0009000, free_pages = 503 (0x000001f7)<br>IRQ stack: p0xa01d1000 v0xc01d1000<br>ABT stack: p0xa01d0000 v0xc01d0000<br>UND stack: p0xa01cf000 v0xc01cf000<br>SVC stack: p0xa01cd000 v0xc01cd000<br>Creating L1 page table at 0xa01fc000<br>Mapping kernel<br>Constructing L2 page tables<br>freestart = 0xa05b4000, free_pages = 14924 (0x3a4c)<br>switching to new L1 page table @0xa01fc000...bootstrap done.<br>init subsystems: stacks vectors undefined page pmap [ bsd ELF symbol table not valid: bad magic ]<br>[ no symbol table formats found ]<br>Copyright (c) 1982, 1986, 1989, 1991, 1993<br>The Regents of the University of California. All rights reserved.<br>Copyright (c) 1995-2004 OpenBSD. All rights reserved. http://www.OpenBSD.org<br>OpenBSD 3.6-current (RAMDISK) #122: Tue Dec 14 10:45:58 CST 2004<br>drahn@poof:/usr/src/sys/arch/pxaarm/compile/RAMDISK<br>real mem = 67108864 (65536K)<br>avail mem = 53321728 (52072K)<br>using 844 buffers containing 3457024 bytes (3376K) of memory<br>mainbus0 (root)<br>cpu0 at mainbus0: PXA250 rev 6 (XScale core)<br>cpu0: DC enabled IC enabled WB enabled LABT branch prediction enabled<br>cpu0: 32KB/32B 32-way Instruction cache<br>cpu0: 32KB/32B 32-way write-back-locking Data cache<br>pxaip0 at mainbus0: PXA2x0 Onchip Peripheral Bus : CPU clock = -1005166764.000 MHz<br>pxaintc0 at pxaip0 addr 0x40d00000: Interrupt Controller<br>pxagpio0 at pxaip0 addr 0x40e00000: GPIO Controller<br>back to slacking...<br>wow<br>nice<br>CPU clock = -1005166764.000 MHz<br>fun.<br>a portable 10THz machine, amazing :)<br>also have to figure out what the problem with setting DTR|RTS in the<br>serial driver<br>what cereal chip is this?<br>martin, you missed the minus sign<br>well, I had commented out the code that figures out bus clock because<br>it runs too damn slow on simulator<br>16550 'compatible'<br>plus it's only 1Thz<br>oh. you're in hell<br>onboard pxa serial port

This did not go unnoticed.

hi<br>Dale, drop me an image, pleeeaase. :-)<br>I'm fed up with the last OpenZaurus dist.<br>you want OpenBeauZau instead?<br>Absolutely !<br>hehehe<br>you have to have a serial cable for the zaurus<br>http://www.dalerahn.com/~drahn/zaurus/ zbsdmod.o.gz uncompress that<br>file and on the zaurus 'sudo insmod -f zbsdmod.o<br>Sh!t, I knew I had forgotten an accessory...<br>btw, the serial cable is for console, isn't it ?<br>does this mean the serial connector needs a NiH cable?<br>yes<br>an USB keyboard won't work like on the Cassiopeia?<br>sorry, just managed to make serial console work a couple of hours ago,<br>not that far yet<br>slacker!<br>j/k<br>np<br>the usb on the thing is usb slave only, and the display is not currently<br>configuring.<br>As long as I can play with it instead of being pissed of by the<br>unresponsive login I have now. ;-)<br>tdeval, but you can't play with it until it is in the tree!<br>So you tell me it will boot with a _beautiful_ *black* screen ? :D<br>no, blue<br>Ooh<br>I must try that<br>no, it will keep up whatever screen linux had, no screen support working<br>yet.<br>Ok, ok, ordering the serial cable now...<br>So that when I get it, you'll have the display and keyboard<br>running... ;-)<br>right now all that you could see is that the green mail light turns on.<br>well, debugging will be much easier than the last two weeks, when all I<br>had was that green light.<br>yeah, obviously

One week later, Rahn shared his code.

www.dalerahn.com/~drahn/zaurus/zdiffs.041221 for the impatient<br>+echo hello theo >/dev/ttyC0<br>oh you think you are funny<br>put that in when i didn't realize that the display on the 860 was<br>external ;-)<br>+#if NRAID > 0<br>+ { &raid_cd, "raid", 71 },<br>+#endif<br>optimist.<br>copy/paste<br>I know :)

On Christmas day, Rahn addressed one of the most difficult problems in<br>computing: naming things.

Since i am getting clloser with the Zaurus port, should I actually name<br>my port OpenBSD/zaurus instead of OpenBSD/pxaarm (which is my current<br>scheme?)<br>are there any other pxaarm devices?<br>if not, naming it zaurus is much better imho.<br>there are likely other xscale devices, however much of the shared code<br>is really in arm/xscale not pxaarm/...<br>xscale -> pxa25x/pxa27x<br>pxa is much better than pxaarm imho<br>Ok, no argument there...<br>just should it be pxa or zaurus?<br>i vote zaurus. because people know what zaurus is, but they don't know<br>what pxa is.<br>me too<br>for such embedded shitz it's easier to make a port per board

Date: Sun, 26 Dec 2004 18:53:30 +0000<br>From: Miod Vallat<br>To: Dale Rahn<br>Subject: zaurus diffs

Here is my feedback on zdiffs.041221...

[...60 lines of boring comments on the diff...]

-->

The initial import of the Zaurus codebase took place on<br>december 30th.

Port of...

zaurus openbsd serial page port pxaarm

Related Articles