weblog

Debricking my ipaq
February 13th, 2005

This is how I got my iPaq working with Familiar 0.8.0 – it’s left as an exercise to the reader to blow their own bootloader and jffs to 0.8.0 stock.

I had familiar0.7.1 on here before, and the usability wasn’t quite high enough for my requirements so I threw the ipaq in a box until this came out… I Started playing with it yesterday, this is what I’ve done so far.

  1. Upgraded to unstable, played around, messed up moving /usr to /mnt/card and blew it all back to 0.8.0 stock, where I promptly decided to be more careful.
  2. This is where things get useful….
    Setting up ssh (so you can stop using the onscreen keyboard):

    1. Edit /etc/hotplug/net.agent – best done with gpe-edit (oh yeah, I’m a GTK fan, so I used gpe, but don’t fret, I’m installing OPIE later ;) ) from a root terminal window. the version of vi provided by busybox, in this particular rxvt, suck.
    2. Change line that reads
      add|register)

      to

      add|register|attach)
    3. Add the following before line *) near the end
      detach)
          exec /sbin/ifdown $INTERFACE
          ;;
      
  3. In file /etc/network/interfaces:
    replace line  iface usbf inet dhcp  with this:

    iface usbf inet static
            address 192.168.0.202
            netmask 255.255.255.0
            network 192.168.0.0
            gateway 192.168.0.200
  4. Reboot and setup UsbNet on your chosen desktop linux box installing iptables (or whatever you use) for masquerading NAT, spitting out DHCP 192.168.0.202 for the client and 192.168.0.200 for itself.

    Bring up usb0, and ssh root@192.168.254.202 and your done, no more tapping out your root password…. ;)

    (this is all left to the reader, hint: handheld.orgs WIKI, modprobe usbnet and your distribution’s documentation)

  5. Next you’re going to need a DNS server:
    Now remove and replace /etc/resolv/conf with your DNS settings – not doing so (ie, only modifying it) will not keep them over a reboot – as this is a symlink into /var/SOMEWHERE-NOT-IMPORTANT, which is tempfs ;)
  6. Upgrade Flash-ROM to latest stable tree
    First edit /etc/ipkg/base-feed.conf and change the triple slash to a double slash (nice fellas ;) )

    ipkg update
    ipkg upgrade

    Here I get some errors about configuring the new kernel, but it doesn’t seem to make any problems, so I’m not worrying….

  7. Mounting up a CF/MMC card for additional storage:
    I have two cards, a 64Mb SDmmc and a 32Mb vanilla-mmc – my 3780 only has one SDslot so I wanted to use the bigger card until I could splash out on a super-big card after justifying it.
    If the card was to be part of the file system, proper, I had a couple of options, listed below – and my reasons not for picking them – but I was going to be picky – I wanted a proper unix file-system, and planned to consider the card non-removable.
    Card running:

    1. jffs2 – which would require me finding some jffs2 tools, so something to look at later – perhaps poking Gareth over at encryptec…. and Windows can’t read jffs2, I think
    2. vfat – with a loopback filesystem on top, with ext2. Yuk! And I’m not sure about block-leveling to stop write-decay with this, either
    3. ext2 – fsck would be a nightmare
    4. ext3 – needed extra modules, which were present – but disguised inside of the kernel-module-ext2 ipkg :)
    ipkg install kernel-module-ext2
    ipkg install ext2progs
    ipkg install extprogs.mkfs

    I am guessing the package name, sorry. Memory. Will check back and fix.

    mkfs.ext3 /dev/mmc/disc
    mount /dev/mmc/disc /mnt/card

    Add this to /etc/fstab and /etc/ipkg.conf
    /etc/fstab:

    /dev/mmc/disc /mnt/card auto defaults,noatime 0 0

    /etc/ipkg.conf

    dest card /mnt/card

    Now you can install to this new mmc-disc at any time you like by using:

    ipkg -d card PACKAGE
    ipkg-link mount /mnt/card

    At this point I should mention to watch how long it takes you to make the filesystems on your mmc device, I found the SD, while working, far to slow for a system disc – I had to go with my 32Mb card and leave the other in the digicam…. :-/

  8. I am trying to get gnome-games_*.ipkg to install currently, but it seems not want to share the gconf data with gpe-conf…. I’ll get back to you… but it could be a while
  9. I’ve done other stuff too, lots and lots, but not worth documenting as I undid or trashed something and had to repair it ;-)

    Oh, and before you try and mv /something /mnt/card/something remember that jffs2 is transparently compressing so 1k on / probably won’t be 1k on /mnt/card (unless you managed to get jffs2 running on it, and forgot to tell me….)

Leave a Response

Note: XHTML is allowed, such as <a href="" title="" rel=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong> . Line and paragraph breaks automatic, e-mail address never displayed.

Site designed by Darran Rimron for Xalior. Based on Placid.
XHTML 1.0 Strict | CSS