OESF Portables Forum
Everything Else => Zaurus Distro Support and Discussion => Distros, Development, and Model Specific Forums => Archived Forums => OpenBSD => Topic started by: ZDevil on April 12, 2007, 03:48:33 pm
-
Now I am thinking of switching from C1000 to C3200, and I am eager to have an experience of OpenBSD on Z (finally).
Here are a bunch of questions that a typical newbie (such as I) would ask:
1. Do the original OpenBSD packages need to be recompiled in order to be used on Z?
2. Is the SD driver fully functional now (for storage, not for booting)?
3. Does the screen buttons (those along the display panel) work?
4. Is the USB host fully functional?
5. How is wifi CF and bluetooth support?
6. Does the keymapping work perfectly?
7. How about speed, power consumption, and resource usage on Z?
8. Is it easy to do native compilation on Z?
9. How is OpenBSD compared to pdaXrom generally?
10. (How) Can I dual boot OpenBSD and pdaX?
That's that for now. I have to admit that these are very broad questions, but I hope this would be a good start for an extreme newbie ...
Thanks!
-
well,
i'll try to answer as far as i can due to my little openbsd experience on my c3000 people will correct me when i'm wrong
>1. Do the original OpenBSD packages need to be recompiled in order to be used on >Z?
no they do not if you do not want speed optimization
from iamasmith there
https://www.oesf.org/forums/index.php?showtopic=17871 (https://www.oesf.org/forums/index.php?showtopic=17871)
"On OpenBSD default build uses no xscale optimisation for the bulk of the executables - The Kernel is compiled with -mcpu=xscale but the rest of the distribution is compiled (for compatibility with other ARM architectures) with no optimisations. - It is possible to set some environment variables prior to build that will enable xscale optimisations and you get much better performance when you do this."
>2. Is the SD driver fully functional now (for storage, not for booting)?
not yet apparently :
https://www.oesf.org/forums/index.php?showtopic=23517 (https://www.oesf.org/forums/index.php?showtopic=23517)
>5. How is wifi CF and bluetooth support?
my cf wifi card is working out of the box
bluetooth is not yet fully implemented (that's the main reason i do not yet use openbsd on my zaurus
>8. Is it easy to do native compilation on Z?
definitely yes, at least for ports
have a look here
http://www.planetofidiots.com/zaurus/ (http://www.planetofidiots.com/zaurus/)
>10. (How) Can I dual boot OpenBSD and pdaX?
i read that it is not (yet) possible
hth
JP
-
I personally look forward to hearing of your pursuits with OpenBSD, ZDevil. I'm sure you'll bring a lot to the table.
-
Thanks for the answers, jpmatrix! Of course i want more ...
Antikx: surely i would, if i could, if i have a decent native/cross compilation setup, IF OpenBSD will get installed and the packages run well on 3200.
So my current plan is: 860 will go for the latest pdaX release(s), and let 3200 taste OpenBSD, (perhaps) until a final pdaX release is out ... or a dual boot solution is found.
Now having very high hopes of both OpenBSD and pdaX.
-
Find two more useful links for very newbies like me:
Using OpenBSD 4.0
http://www.softwareinreview.com/cms/content/view/56/ (http://www.softwareinreview.com/cms/content/view/56/)
Migrating to OpenBSD
http://www.openbsd.org/faq/faq9.html (http://www.openbsd.org/faq/faq9.html)
-
One new question:
11. What is the safe way to revert back to the stock rom if my OpenBSD setup gets messed up? Does the DM menu still function the same as before? Read the long OpenBSD/Zaurus installation notes last night but didn't happen to see it there.
-
yes you can go back and forward as you wish without trouble
i'm used to flash between pdaxii13 , angstrom and openbsd and i don't remember being stuck somewhere, although going to openbsd can be tricky due to special installation process but nothing is impossible
-
yes you can go back and forward as you wish without trouble
i'm used to flash between pdaxii13 , angstrom and openbsd and i don't remember being stuck somewhere, although going to openbsd can be tricky due to special installation process but nothing is impossible
[div align=\"right\"][a href=\"index.php?act=findpost&pid=159364\"][{POST_SNAPBACK}][/a][/div]
Right, so is it okay if i first flash my C3200 to pdaXrom and then install OpenBSD with the installer (bootloader) ipk?
I just want to be cautious because i don't wanna waste any time crashing into careless mistakes.
Still awaiting my brand new C3200 ...
p.s. Yes the installation of OpenBSD looks quite complicated, but thanks to the documentation. It is so amazingly well-written and clear! So i think i won't have big trouble setting up OpenBSD.
-
well, i don't remember and moreover i don't know for the C3200, but for my C3000 i follow the first steps of the full install procedure listed here :
https://www.oesf.org/forums/index.php?showtopic=17213 (https://www.oesf.org/forums/index.php?showtopic=17213)
hope this help
look in the topics for people talking about the C3200 install
-
1. Do the original OpenBSD packages need to be recompiled in order to be used on Z?
No. You compile the packages you want/need from source via the ports tree.
2. Is the SD driver fully functional now (for storage, not for booting)?
Not yet, but progress is being made. You can read the data stored on the sd card but writing data to the card is still flaky.
3. Does the screen buttons (those along the display panel) work?
Not yet. Those buttons are a pain in the ass anyway.
4. Is the USB host fully functional?
Somewhat.
5. How is wifi CF and bluetooth support?
Wifi support is excellent, but bluetooth support is still being worked on. The bluetooth drivers exist but the communication protocol isn't in place.
6. Does the keymapping work perfectly?
It can be made to work perfectly but you'll have to generate a .Xmodmap and patch kbd.c.
7. How about speed, power consumption, and resource usage on Z?
Power usage has been discussed in other posts. You are running the OS on a microdrive, so power consumption is going to be greater than that of say Cacko. Checkout the following post for more info: Zaurus Power Usage (https://www.oesf.org/forums/index.php?showtopic=22589#)
All I can say about resource usage is that OpenBSD is quite resourceful.
8. Is it easy to do native compilation on Z?
Yes.
9. How is OpenBSD compared to pdaXrom generally?
I've never used pdaXrom, hence I can't help you here.
10. (How) Can I dual boot OpenBSD and pdaX?
"If you know your brother is a greedy bastard (http://ftp://ftp.openbsd.org/pub/OpenBSD/songs/songty.mp3)
never give him the password
If he goes penguin on you,
stop - being - his brother."
-
1. Ok, just wonder if there is big difference between with or without optimalization when compiling.
3. That's still fine, because the silkscreen is not as important as the keyboard.
4. Of course ...
5. That's fine, because I don't really use bluetooth on Z.
6. Does it mean 4.0 or 4.1 has to be rebuilt with these? Which keys are not working (normally)?
7. I am planning to swap the internal MD with a hi-speed CF ...
8. How? Any accessible instructions?
10. That's a bit hard for my greedy Z ...
(sorry, the quote function turns out to be a mess... )
-
Does it mean 4.0 or 4.1 has to be rebuilt with these? Which keys are not working (normally)?
After you apply the patches you'll have to rebuild the system. The main keys are the CAPS, CUT, COPY, PASTE and the screen dimming keys. You'll see what I mean when you install. However, I've never really had any issues with keyboard usage.
How? Any accessible instructions?
Compiling the system from source is quite easy. (If this is what your asking) Here's some instuctions: Upgrading via CVS (https://www.oesf.org/forums/index.php?showtopic=20790#)
-
good news for usbhost in 4.1:
Improved hardware support, including:
New USB client controller support:
Support for the USB client functionality in the pxaudc(4) driver on the Zaurus.
-
A few small questions:
-- Is the feed here http://www.planetofidiots.com/pub/OpenBSD/...packages/zaurus (http://www.planetofidiots.com/pub/OpenBSD/snapshots/packages/zaurus) still unavailable? It cannot be opened with browsers
-- How to activate screen rotation?
-- How to load swap? I have partitioned a 256MB in wd0b for swap. Is it turned on automatically when booting? I can't see it in /etc/fstab.
-- Any simple wifi CF setup instructions?
Thanks!
It's amazing to have the real 4.1 running on Z.
Firefox 2.0.0.3 is also running now, which is ahead of all other ROMs.
*I did read the man pages but didn't find the relevant information there.
-
-- Any simple wifi CF setup instructions?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160107\"][{POST_SNAPBACK}][/a][/div]
well,
from my memory :
ifconfig wi0 up
ifconfig wi0 192.168.1.5 netmask 255.255.255.0
ifconfig wi0 nwid NETWORK_SSID nwkey NETWORK_KEY
route add default 192.168.1.1
just do a google-search with openbsd and ifconfig to have some examples
-
-- Any simple wifi CF setup instructions?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160107\"][{POST_SNAPBACK}][/a][/div]
well,
from my memory :
ifconfig wi0 up
ifconfig wi0 192.168.1.5 netmask 255.255.255.0
ifconfig wi0 nwid NETWORK_SSID nwkey NETWORK_KEY
route add default 192.168.1.1
just do a google-search with openbsd and ifconfig to have some examples
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160113\"][{POST_SNAPBACK}][/a][/div]
My card is Symbol Spectrum24, which is listed as supported.
When I enter ifconfig wi0 up, i got this:
ifconfig: SIOCGIFFLAGS: Device not configured
When plugging in the card, dmesg recognizes the card, but reads:
wi0: init failed
What do i miss here? Thanks again!
-
Here is the output of dmesg:
OpenBSD 4.1-current (GENERIC) #89: Sat Apr 28 14:50:31 MDT 2007
deraadt@zaurus.openbsd.org:/usr/src/sys/arch/zaurus/compile/GENERIC
real mem = 67108864 (65536K) 64MB
avail mem = 53043200 (51800K)
using 844 buffers containing 3457024 bytes (3376K) of memory
mainbus0 (root)
cpu0 at mainbus0: PXA27x step C-5 (XScale core)
cpu0: DC enabled IC enabled WB enabled LABT branch prediction enabled
cpu0: 32KB(32b/l,32way) I-cache, 32KB(32b/l,32way) wr-back-lock D-cache
pxaip0 at mainbus0: CPU clock = 416.000 MHz
pxaintc0 at pxaip0 addr 0x40d00000: Interrupt Controller
pxagpio0 at pxaip0 addr 0x40e00000: GPIO Controller
pxadmac0 at pxaip0 addr 0x40000000 intr 25: DMA Controller
pxaost0 at pxaip0 addr 0x40a00000
com0 at pxaip0 addr 0x40100000 intr 22: pxa2x0, 32 byte fifo
com1 at pxaip0 addr 0x40200000 intr 21: pxa2x0, 32 byte fifo
com2 at pxaip0 addr 0x40700000 intr 20: pxa2x0, 32 byte fifo (SIR)
pxaudc0 at pxaip0: USB Device Controller
usbf0 at pxaudc0: USB revision 1.1
cdcef0 at usbf0: OpenBSD.org CDC Ethernet Emulation, rev 1.01/1.00
cdcef0: address 2a:cb:00:00:00:00
ohci0 at pxaip0, version 1.0
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: PXA27x OHCI root hub, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
lcd0 at pxaip0
wsdisplay0 at lcd0 mux 1: console (std, vt100 emulation)
wsdisplay0: screen 1 added (std, vt100 emulation)
zkbd0 at pxaip0
wskbd0 at zkbd0: console keyboard, using wsdisplay0
scoop0 at pxaip0: PCMCIA/GPIO controller
scoop1 at pxaip0: PCMCIA/GPIO controller
pxapcic0 at pxaip0: 2 slots
pcmcia0 at pxapcic0
pcmcia1 at pxapcic0
pxammc0 at pxaip0: MMC/SD/SDIO controller
sdmmc0 at pxammc0
zssp0 at pxaip0
apm0 at pxaip0
zts0 at pxaip0
wsmouse0 at zts0 mux 0
zaudio0 at pxaip0: I2C, I2S, WM8750 Audio
audio0 at zaudio0
zrc0 at pxaip0: CE-RH2 remote control
wskbd1 at zrc0 mux 1
wskbd1: connecting to wsdisplay0
flash0 at pxaip0: Samsung K9F1G08U0A 128Mx8 3.3V
wdc0 at pcmcia0 function 0 "HITACHI, microdrive" port 0x0/16: irq 138
wd0 at wdc0 channel 0 drive 0:
wd0: 32-sector PIO, LBA, 5859MB, 12000556 sectors
wd0(wdc0:0:0): using BIOS timings
wi0 at pcmcia1 function 0 "Symbol, Spectrum24 LA4100 Series WLAN PC Card, 1.00" port 0x0/64, irq 137
wi0: init failed
: unable to read station address
boot device: wd0.
rootdev=0x1000 rrootdev=0x1000 rawdev=0x1002
scsibus0 at sdmmc0: 2 targets
sd0 at scsibus0 targ 1 lun 0: SCSI2 0/direct fixed
sd0: 243MB, 31 cyl, 255 head, 63 sec, 512 bytes/sec, 498176 sec total
pxammc0: unhandled interrupt 2
and ifconfig:
lo0: flags=8049 mtu 33224
groups: lo
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3
cdcef0: flags=8802 mtu 1500
lladdr 2a:cb:00:00:00:00
enc0: flags=0<> mtu 1536
and ifconfig wi0 up:
ifconfig: SIOCGIFFLAGS: Device not configured
-
Hmmm...
I have a look at /etc/firmware, and see symbol-eprim and symbol-esec both present. They are the firmwares for Symbol Spectrum24 according to http://www.openbsd.org/cgi-bin/cvsweb/~che.../symbol-license (http://www.openbsd.org/cgi-bin/cvsweb/~checkout~/src/sys/dev/microcode/symbol/symbol-license).
And I check with http://en.wikipedia.org/wiki/Comparison_of...ireless_Drivers (http://en.wikipedia.org/wiki/Comparison_of_Open_Source_Wireless_Drivers), wi is the correct interface for this card.
Or am I wrong here?
Already read the ifconfig man page. The problem is I can't even get the interface with "ifconfig -a" What is still missing?
-
did you read this thread ?
https://www.oesf.org/forums/index.php?showtopic=20116&st=0 (https://www.oesf.org/forums/index.php?showtopic=20116&st=0)
-
Thanks, jpmatrix.
So, according to that thread, it seems either the current OpenBSD doesn't support Symbol Spectrum24 (but it IS listed as supported) or some firmware issue?
I've tried using orinoco-fwutils-0.2 to download the firmware files, as I did for pdaXrom r197, and dropped them to /etc/firmware. But still no luck.
-
Thanks, jpmatrix.
So, according to that thread, it seems either the current OpenBSD doesn't support Symbol Spectrum24 (but it IS listed as supported) or some firmware issue?
I've tried using orinoco-fwutils-0.2 to download the firmware files, as I did for pdaXrom r197, and dropped them to /etc/firmware. But still no luck.
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160129\"][{POST_SNAPBACK}][/a][/div]
did you try to drop them in /lib/firmware ?
-
No, there is no /lib dir in my OpenBSD system.
-
OpenBSD doesn't support/play well with any of the mainstream network encryption features , ie ,WPA, or WEP. If you have network keys/security enabled on your wireless router then you'll have to disable them before going any further. Furthermore, you need to have the following files in /etc
hostname.wi0 which should contain the following entries: [span style=\'font-size:8pt;line-height:100%\'](name the file hostname.wi0 not dontbestupid.wi0) [/span]
inet 192.168.#.# 255.255.255.0 NONE
nwid SSID
(Replace 192.168.#.# with you local IP and SSID with your networks ID)
resolv.conf which should contain the following entry:
nameserver 192.168.#.#
mygate which should contain the following entry:
192.168.#.#
After you have added/edited these files reboot your Z.
-
Thanks, mathemajikian.
Tried your method. Same result. Turning off WEP in router, rebooting still see
wi0 at pcmcia1 function 0 "Symbol, Spectrum24 LA4100 Series WLAN PC Card, 1.00" port 0x0/64, irq 137
wi0: init failed
: unable to read station address
But rebooting in the D+B mode, then Upgrade, then in the network configuration, when I say "yes" to using the stored network setting, I see "resolver enabled" now instead of "resolver disabled" before.
Any more hint?
-
Also i read here http://www.mail-archive.com/openbsd-newbie...g/msg00161.html (http://www.mail-archive.com/openbsd-newbies@sfobug.org/msg00161.html)
saying that WEP (but not WPA) is actually supported. Or am i mistaken again?
-
I follow http://www.planetofidiots.com/zaurus/#afterboot (http://www.planetofidiots.com/zaurus/#afterboot)
and edit the line in /etc/sysctl.conf
machdep.lidsuspend=1
Closing the screen lid will suspend the device. But when I power on again i only see a flash and then the display falls into blackout. Need to kill X to go back to the console. Any solution here?
-
I follow http://www.planetofidiots.com/zaurus/#afterboot (http://www.planetofidiots.com/zaurus/#afterboot)
and edit the line in /etc/sysctl.conf
machdep.lidsuspend=1
Closing the screen lid will suspend the device. But when I power on again i only see a flash and then the display falls into blackout. Need to kill X to go back to the console. Any solution here?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160164\"][{POST_SNAPBACK}][/a][/div]
I don't have this issue. Does it happen each time you try and suspend the device in X?
In regards to your wifi issues. Does the card have a version number printed anywhere?
What output does cardctl ident give?
-
I follow http://www.planetofidiots.com/zaurus/#afterboot (http://www.planetofidiots.com/zaurus/#afterboot)
and edit the line in /etc/sysctl.conf
machdep.lidsuspend=1
Closing the screen lid will suspend the device. But when I power on again i only see a flash and then the display falls into blackout. Need to kill X to go back to the console. Any solution here?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160164\"][{POST_SNAPBACK}][/a][/div]
I don't have this issue. Does it happen each time you try and suspend the device in X?
In regards to your wifi issues. Does the card have a version number listed anywhere?
[div align=\"right\"][a href=\"index.php?act=findpost&pid=160181\"][{POST_SNAPBACK}][/a][/div]
Many thanks for your continuous help.
The system can suspend and resume by running zzz with apmd added in /etc/rc.conf.local.
But if i use machdep.lidsuspend=1, closing the lid seems to suspend the device, but powering on brings about what i have described.
I found the dmesg reports my Symbol Spectrum24 as LA4100, but at the back of the card it's printed as LA4137. Or do you want me to look for something else about the card?
The card is working as I tested it on my 860 (Sharp ROM) yesterday and it worked perfectly.
-
Or do you want me to look for something else about the card?
Whats does the following command output?
# cardctl ident
/* Symbol */
product SYMBOL SPECTRUM24 0x0801 Spectrum24 WLAN IEEE 802.11 FHSS
product SYMBOL LA4100 0x0001 Spectrum24 LA4100 Series WLAN
-
Here it is (cardctl ident, there is no pccardctl in my OpenBSD.):
Socket 0:
product info: "Symbol", "Spectrum24 LA4100 Series WLAN PC Card", "1.00"
manfid: 0x026c, 0x0001
function: 6 (network)
Thanks again.
-
did you read this thread ?
https://www.oesf.org/forums/index.php?showtopic=20116&st=0 (https://www.oesf.org/forums/index.php?showtopic=20116&st=0)
Read this post https://www.oesf.org/forums/index.php?showt...ndpost&p=133475 (https://www.oesf.org/forums/index.php?showtopic=20116&view=findpost&p=133475) and you'll get your answer. (Buy a different card)
-
Thanks. So it seems now the only practical solution is to get a new card.