File:  [NetBSD Developer Wiki] / wikisrc / tutorials / how_to_install_netbsd_on_hpcsh.mdwn
Revision 1.2: download - view: text, annotated - select for diffs
Sun Feb 5 07:14:36 2012 UTC (8 years, 9 months ago) by schmonz
Branches: MAIN
CVS tags: HEAD
dos2unix

    1: This how-to describes how to install NetBSD/hpcsh on a Jornada 620LX. We will be using a 2 GB compact flash card and no swap.
    2: 
    3: The following is a basic recollection of the steps required to wrangle NetBSD 4.99.69 onto my 75MHz, 16MB/RAM HP Jornada 620LX. I know of at least one other 620LX with NetBSD on it, but that was 1.6; Most of the directions I found with regards to putting NetBSD on a Jornada were with the 720+ lines, which host a 200+MHz StrongARM CPU as well as 32-64+MB RAM.
    4: 
    5: Also, not having a serial cable for this (somewhat) rare Jornada I did the entire install through the in-ROM Windows CE and a CF Disk.
    6: 
    7: **Contents**
    8: 
    9: [[!toc]]
   10: 
   11: #List of things necessary for this install
   12: 
   13: * An x86 machine capable of running NetBSD
   14: * Your Jornada 620LX
   15: * A ~>1GB CF Disk
   16: * A CF Disk reader for x86 machine 
   17: 
   18: #The process over-simplified
   19: 
   20: 1. Install NetBSD on x86 and bring it up to -current
   21: 2. Build tools/kernel/release for HPCSH on the x86 machine
   22: 3. Partition (fdisk) & DiskLabel CF Disk
   23: 4. Unpack release onto CF Disk
   24: 5. Boot Jornada into CE and run HPCBoot.exe from CF Disk
   25: 6. Enjoy NetBSD 
   26: 
   27: #The REAL breakdown
   28: 
   29: * Install onto a spare x86 machine, I'm not going to hand-hold through this install, as a basic install is perfectly fine.
   30: * In /usr/src, build the HPCSH(-3) tools: 
   31: 
   32:     $ cd /usr/src/ && ./build.sh -u -m hpcsh tools
   33: 
   34: * Build the HPCSH(-3) kernel: 
   35: 
   36:     $ ./build.sh -u -m hpcsh kernel=GENERIC
   37: 
   38: * Build the HPCSH(-3) release: 
   39: 
   40:     $ ./build.sh -u -m hpcsh -U release
   41: 
   42: * NOTE: on building release I had it fail multiple times because I had not cleared out my /usr/src/../obj/* and my /usr/src/../tools/* and then rebuilt my tools for x86 after moving to -current.
   43: * Attach the CFDisk to the NetBSD machine. Partition it into two partitions (I used a 2GB card and partitioned into 24MB and a 1.9GB).
   44: * You can get away with using as little as a few MB, but I figured better safe than sorry with the extra space the 2GB card allots me.
   45: * Note: Delete all partitions using fdisk before creating/editing these ones! 
   46: <pre><code>
   47: fdisk /dev/sd1
   48: Do you want to change our idea of what BIOS thinks? [n] [enter]
   49: Which partition do you want to change?: [none] 0
   50: sysid: 1
   51: start: 0
   52: size: 24M
   53: bootmenu [enter]
   54: The bootselect code is not installed, do you want to install it now? [n] [enter]
   55: Which partition do you want to change?: [none] 1
   56: sysid: 169
   57: start: (offset of partition 0's sectors)
   58: size: (last sectors)
   59: bootmenu [enter]
   60: The bootselect code is not installed, do you want to install it now? [n] [enter]
   61: Which partition do you want to change?: [none] [enter]
   62: Update the bootcode from /usr/mdec/mbr? [n] [enter]
   63: Should we write new partition table? [n] y
   64: </code></pre>
   65: * Now create filesystems on the two partitions: 
   66: 
   67:     newfs_msdos sd1e && newfs sd1a (your lettering here may differ)
   68: 
   69: * Mount your filesystems so we can use them: 
   70: 
   71:     mount -o softdep /dev/sd1a /mnt && mount -o -l /dev/sd1e /mnt2
   72: 
   73: * Copy your kernel and HPCBoot.exe to the msdos partition: 
   74: 
   75:     cd /usr/src/obj/releasedir/hpcsh/binary/kernel
   76:     cp netbsd-GENERIC.gz /mnt2/netbsd.gz
   77:     cd ../sets
   78:     mv kern-GENERIC.tgz kern-GENERIC.tar.gz
   79:     mv kern-HPW650PA.tgz kern-HPW650PA.tar.gz
   80:     for tgz in *.tgz; do tar -xpvzf $tgz -C /mnt; done
   81: 
   82: * This got me booting; however I hadn't set a root password anywhere! So make sure the first time to boot hpcboot.exe with the "single-user" checkbox, then mount / read-write and change the root password: 
   83: 
   84:     mount -u /
   85:     mount
   86:     /dev/wd0b on / type ffs (noatime, nodevmtime, local)
   87: 
   88: #References
   89: 
   90: Original content from <http://dayid.org/os/netbsd/doc/NetBSD-on-HPJornada620LX.html>

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb