Slashdot Mirror


Palmtop NetBSD

BSD Forums writes "'Of course it runs NetBSD.' NetBSD is fantastically portable, but that doesn't make it supremely easy to install on oddball hardware like a Dreamcast or a palmtop computer. Michael Lucas demonstrates cross-installation with the HP Jornada."

26 of 154 comments (clear)

  1. I think SCO should sue by Anonymous Coward · · Score: 4, Funny

    For something... but I don't know what, and I don't think that matters to them, either.

  2. Oh no, here come the trolls...... by Anonymous Coward · · Score: 3, Insightful

    BSD is alive an well. Why does everyone keep saying it is dying?

  3. portability by Twister002 · · Score: 3, Interesting

    Does anyone know of a linux or BSD based distro that will install on an old Palm Pilot? Not the III or V lines, the original lines. I've got one just sitting around. I've already got a replacement for it I just want to play around with it. Does anyone have any links for instructions on installing Linux (or any other OS) on them?

    --
    "For a successful technology, honesty must take precedence over public relations for nature cannot be fooled." -Feynman
    1. Re:portability by BenjyD · · Score: 4, Informative

      Well, there's palm linux (palm-linux.sourceforge.net). Doesn't work on my m100, dunno about the older Palms.

    2. Re:portability by techturtle · · Score: 3, Insightful

      Check out Embedded Linux/Microcontoller project I've never tried it personally, but looks promissing. Don't know about support for the older platforms you're talking about though. Gives you somewhere to start though.

      Some very usefull tools that I've used on newer Palm devices with net connectivity:
      Top Gun SSH - Works pretty good for remote shell access.
      PalmVNC - Decent VNC implementation for the Palm.

      Not *nix on the Palm, but gives you good access to remote systems.

      --
      If you don't have something nice to sig, then don't sig anything at all.
  4. Full text: by parkanoid · · Score: 4, Informative

    Palmtop NetBSD
    by Michael Lucas
    06/05/2003

    In my previous article, I discussed building the latest NetBSD-current and installing it on your system. Today, we take things a little further and use NetBSD's cross-building abilities as a tool to install it on a rather unusual platform â" specifically, the HP Jornada 728 palmtop, which comes with Windows CE (WinCE) embedded. While HP no longer makes this device, you can pick them up used or on auction sites. The process discussed here uses examples from the Jornada 728, but with some tweaking will work on many other types of hardware. You could even install onto standard PC hardware in this manner, if you wanted to be masochistic about it.

    Setup
    This method requires that you already have a NetBSD machine that can physically accept the disk device you want to install onto, and that has the same sort of disklabel(8) as the Jornada, which means that you need the same endian hardware. You're probably best off running standard X86 hardware for this type of installation on this type of palmtop. In this example, I use a Toshiba laptop running NetBSD-current 1.6P to install NetBSD-current 1.6P on my Jornada. I'm using a 512MB flash card to run NetBSD, and am using a PCMCIA adapter to attach the flash card to the laptop during the installation phase. If you're using a desktop, you could use a USB-to-Flash adapter.

    Running NetBSD on your Jornada will erase all data from the WinCE operating system. That's OK, because you'll never boot back to Windows once you discover the joys of palmtop UNIX, right? Still, you might want the WinCE data some day, so be certain to back up your device before starting this install! Some people who switch boots between WinCE and NetBSD use the backup tool that comes with WinCE to back up their data to the FAT partition on their flash card. If you do this, be sure to use only the backup tool that came with the Jornada, not a newer version.

    NetBSD runs on a whole bunch of hardware that was never intended to run UNIX, so this install isn't really anything special. Each of these unusual platforms has its own unique requirements, which are generally documented on the appropriate port page for that architecture. Check the port page for an instructions document, which in this case is the Using NetBSD/hpcarm page. The directions may be partially obsolete, as code development frequently outpaces the web documentation. Still, it's a good place to start. Also search the mailing list archives for your chosen platform for other people's experiences installing and running NetBSD on that system. Lastly, you'll want to be certain that NetBSD runs on your system â" for example, while the Jornada 720 and 728 are well-supported, the Jornada 820 isn't yet.

    Bootstrapping
    The how-to-use page for hpcarm shows that you need a kernel and a boot loader that runs in the WinCE environment. At this time the page also mentions a root filesystem image, which is not yet available. The only piece you really need to get at this point is the hpcarm boot loader, which is available as a uuencoded file in the NetBSD source tree at /usr/src/sys/arch/hpc/stand/binary/ARM/hpcboot.exe .uu. If you have trouble with uudecode, Google led me to a variety of places from which it could be downloaded. Get the boot loader hpcboot.exe and save it for later. Don't worry about the kernel linked from that page; we'll build our own kernel.

    Now go to your existing NetBSD system. We covered the basics of building NetBSD in the last article, including getting the source code and using the build.sh building system. As each platform has its own compiler requirements, make(1), and so on, we need to start by building these tools for the hpcarm architecture. Here, we use the -T flag to specify where to put these tools, and the -m flag to specify the type of machine for which you're building.

    # cd /usr/src
    # ./build.sh -m hpcarm -T /

    1. Re:Full text: by chromatic · · Score: 5, Insightful

      If you'd asked permission to reprint the article, I'd have given it to you. That wasn't very nice.

    2. Re:Full text: by parkanoid · · Score: 5, Interesting

      Erm. I did not realize a quick cut'n'paste aimed at alleviating the slashdot effect would be considered a reprint. Please pardon me, normally it isn't a problem.

    3. Re:Full text: by chromatic · · Score: 2

      Thanks for understanding.

      I appreciate that you're trying to help people read the article, but we've quite a bit of bandwidth and processor power and we've survived Slashdotting before. Pre-emptive cutting and pasting just seems a little silly.

    4. Re:Full text: by chromatic · · Score: 2, Interesting

      Every article has a copyright notice. Would adding a note about reprint requests make it clearer?

  5. TI 89 by Elie+De+Brauwer · · Score: 4, Interesting

    When will somebody port it to my TI-89 calculator machine. It has a MC68k processor in it.

  6. Done before by Anonymous Coward · · Score: 5, Informative

    People have done similar installations on Windows CE devices for awhile. For example, I run NetBSD 1.6 on my IBM z50, also with a 512MB Compact Flash card. The only difference is that this installation was done entirely from a NetBSD mothership while I installed from a FreeBSD ftp server I set up.

  7. Why bother? by Twyst · · Score: 4, Insightful

    See, this is the thing I've never understood - why would you install *nix/BSD on a palmtop? Most of the apps out there are not designed for such a small screen - I've experienced the pain of XWindows on a 640x480 screen - And there's such a huge base of apps out there already. Mind you, I prefer the Palm OS over WinCE, and 99% of what I want / need in a PDA is already available.

    I can't see the benefits of this. In my mind, it's like tearing out the upholstery of your car, and replacing it with gravel. Sure, the car's still usable, but it's not comfortable to use, and it looks like crap.

    --
    -- Karma is for people who think they matter.
    1. Re:Why bother? by addaboy · · Score: 5, Insightful

      because it's there. it's a hobby thing.

    2. Re:Why bother? by Twyst · · Score: 2, Interesting

      Well, I can sort of understand that - hell, I do casemods..

      But at the same time, a casemod doesn't impair the computer's operation - just its looks.

      There aren't as many apps out there for the PDA *nix market, as far as I know, since it's nowhere near as well-developed. It's like cutting an arm off in exchange for a really cool watch on the other wrist - you lose more than you gain.

      Now, replacing WinCE with PalmOS - THAT would be impressive. PalmOS is far more stable than wince, and there are more apps for it.

      --
      -- Karma is for people who think they matter.
    3. Re:Why bother? by baka_boy · · Score: 2, Interesting

      I've got an iPaq that runs Familiar Linux, and it's a great mobile hacking and experimentation platform. True, I wouldn't want to write full apps with the tiny onscreen keyboard, but it's nice to be able to either try out an algorithm or quick script idea in Python on a full-featured Linux system that fits in a coat pocket. If I had the extra couple of hundred dollars lying around, I'd definitely make the switch to one of the WinCE devices with even a tiny keyboard, and probably be able to use for for most of the tasks I'd normally assign to either my PDA or laptop.

      Personally, at least, I've found that at least 80% of my time on either kind of portable device map fine into basic console tools: mutt for email, links or w3m for quick web browsing, and remote server administration via ssh, and a bit of Ruby scripting here are there. Not too much there that requires a GUI, (even if I liked the WinCE UI, which I don't) or support for the huge library of mediocre shareware and Windows-specific integration and synchronization that seem to dominate the PalmOS market.

    4. Re:Why bother? by LizardKing · · Score: 4, Insightful

      why would you install *nix/BSD on a palmtop?

      For similar reasons that my company installs it on haldheld devices I guess. We run a minimal installation, including X, and write apps using the fltk toolkit. OK, you're not going to run OpenOffice or Mozilla on the things, but for specialised applications (warehouse management in our case), they work well. And it's a damned sight nicer programming a NetBSD app than a Windows CE one (the handhelds come preloaded with WinCE).

      Chris

  8. Right... by Malicious · · Score: 5, Funny

    When asked to comment why he wanted to install BSD on a Palmtop, Michael Lucas responded 'The Devil made me do it'

    --
    01101001001000000110000101101101001000000110001001 10000101110100011011010110000101101110
    1. Re:Right... by tomstdenis · · Score: 2, Funny

      You mean this dude?

      http://iahu.ca:8080/bsd_dude.html :-)

      [for the curious that's my LibTomMath source in the background...]

      Tom

      --
      Someday, I'll have a real sig.
  9. never by SHEENmaster · · Score: 2, Interesting

    You couldn't fit the kernel into ram, much less enough to do anything useful.

    If you want it bad enough, steal the PDP11 UNIX source from SCO and port that. BSD or Linux will never fit.

    --
    You can't judge a book by the way it wears its hair.
  10. Open-source OSes on Handheld Devices by The+Pi-Guy · · Score: 4, Interesting

    For those of you out there who own a Compaq/HP iPAQ, and would like to run an Open-source OS on it, it is currently possibly to run Linux on it, thanks to HP's Cambridge Research Labs, and of course many contributors around the world. For more, please visit Handhelds.org. (For what it's worth, I am the person who is porting Linux to the iPAQ h1910 - and no, I am not paid by HP.)

    ~pi/joshua/nontoxic/whatever

  11. Look a z50 with NetBSD preinstalled! by vcbumg2 · · Score: 2, Interesting
    Welcome to Adobe GoLive 6

    Here is an IBM z50 with 265mg cf preloaded with NetBSD!!! Instant WarDriving!!!

    A link on the page leads to the z50 serving a stats site under apache!!!!

    --

    projects @ http://spectechnologies.net

  12. Well...perhaps it isn't. by fireboy1919 · · Score: 3, Interesting

    But I don't see how it's as portable as it claims. It's nearly impossible to build a cross-compiler for Linux from netbsd, especially if you don't have the libraries and headers already compiled for you. I've been trying fruitlessly for several years now.

    Palmtop NetBSD isn't that desirable for me, because I'd have to sacrifice using a Linux distro if I wanted to do cross-compiles. Of course, if I'm wrong, I'd love to know it. :)

    --
    Mod me down and I will become more powerful than you can possibly imagine!
  13. Phenom Ultra by hiroshi912681 · · Score: 2, Interesting

    NetBSD supposedly supports the Hitachi PERSONA HPW-230JC, which is the 32 meg version of what I have, a Phenom Ultra. But, the funny thing is... the bootloader program is only for Windows CE 2.11, not 2.0 that the machines come with (so, I can't even test it). I've gone through hell trying to find an open source operating system to run on this thing, with no dice. Anyone have one of these things?

  14. BSD... when was it behind? by vcbumg2 · · Score: 5, Interesting

    You can do the same thing with Linux you can do with BSDs.
    It is how they do it that is different I have found that once you know how a bsd system works I can quickly cut out a system that does what I want and nothing that I dont.
    For me BSDs a cleaner simpler and just as powerful as any free or commercial Unix out there on a few processors.
    I have a IBM z50 running NetBSD and X11 and a webserver on a 265mg CF!!! and I know every process that executes and why.

    --

    projects @ http://spectechnologies.net

  15. Zaurus port by mivok · · Score: 2, Interesting

    I'm curious.. has anybody tried porting this to the Sharp Zaurus (SL-5500g is what I have, but any model)? And if not.. how hard would it be?