Hi: I want to hook my serial GPS up with Haiku, to use with the OpenStreetMaps editor (JOSM). I’m already running JOSM on Haiku (and it works great!). JOSM depends on the OpenJDK port, which seems to be doing well, so hats off to all those who contributed to OpenJDK being put on Haiku.
To make my own map tracks in JOSM requires the serial GPS input. What’s the status of serial comm on Haiku? On my Raspberry Pi, I can get the output from the serial GPS like so:
cat /dev/ttyAMA0 > myGPStrektrack1.nmea.
How to do the same on Haiku?
For anybody who’s running a Pi, here’s my setup for JOSM on that platform:
The serial port(s) are at /dev/ports/pc_serial0 and up. The standard serial port is used for kernel debugging, so you may have to change your BIOS settings for address and interrupt number to make your hardware show up. Or turn off the kernel usage of the serial port; use a text editor to modify /boot/home/config/settings/kernel/drivers/kernel to do that.
You can try the SerialConnect app to experiment with the port.
[quote=agmsmith]The serial port(s) are at /dev/ports/pc_serial0 and up. The standard serial port is used for kernel debugging, so you may have to change your BIOS settings for address and interrupt number to make your hardware show up. Or turn off the kernel usage of the serial port; use a text editor to modify /boot/home/config/settings/kernel/drivers/kernel to do that.
You can try the SerialConnect app to experiment with the port.[/quote]
Thanks for that info! Now I see that Haiku has the stty program, so I can control the serial port that way. I should be good to go … GPSing.
Your device seems to be using an USB port, so it will show up at /dev/ports/usb0 and the Kernel won’t be interfering with that. You can use the SerialConnect app as a quick way to check if everything looks ok.
Besides the unusual port device name, we are compatible to UNIX APIs for serial ports so it should be file to use it the same way as in Linux.
Sorry for hijacking this thread, but i just bricked my mobo while i was trying to update its bios which didn’t go well, So i was wondering if i could use the serial port in haiku to flash the mobo? if so, what tools haiku has to offer?
I’d appreciate any help to revive my mobo.
I doubt that you could use the serial port to flash the motherboard. I don’t know of any systems that used serial for that purpose. Older ones sometimes worked off a floppy disk or hard drive. Newer ones can use a USB memory stick. Check your motherboard manufacturer’s web site for firmware update techniques.
The worst case for me required a new BIOS chip from ASUS, which fortunately wasn’t too expensive, but it took a couple of weeks to arrive.
Thanks for all the answers. Sorry I conflated this issue by mentioning the Raspberry Pi. Of course, Haiku in this case is running on a boring old i386, which does have an old-timey serial port. The ttyAMA0 device mentioned in the first post is the number one UART on the Raspberry Pi2, and is really unrelated to the statement about running Haiku. Maybe someday there will be an ARM port for Haiku tho …
I gave a plug to Haiku on my site, since Haiku + OpenJDK seems to run JOSM so well for me: https://programmingmiscellany.wordpress.com/other-soc/raspey-riscey/raspi-riscy-rehab-6/
Just another thing I can add to the usefulness of Haiku list …
I have one other question:
I saved the packages directory - so that I could install programs without using a network connection. The next time I wanted to install a package, I dragged the saved package into /system/packages. That didn’t seem to install anything. I right clicked the file for the package I wanted to install. When the HaikuDepot application appeared, I clicked the install button and it purportedly did a “local” installation. However; the apps weren’t installed, or on the app menu.
I thought I’d read somewhere that packages were installed simply by dragging them into the packages folder. In this case I had to re-install the package from the network to get it going …
Answering my own question, all I had to do was to drag the saved hpkg packages into /boot/home/config/packages, everything installed automatically, and all was well.