File:  [NetBSD Developer Wiki] / wikisrc / ports / hpcmips / howto-use.mdwn
Revision 1.1: download - view: text, annotated - select for diffs
Sat Mar 30 17:40:26 2013 UTC (12 months, 2 weeks ago) by mspo
Branches: MAIN
CVS tags: HEAD
add the hpcmips sub pages

NetBSD/hpcmips User How-To page
===============================

### 

-   [About this page](#about)

### Getting started with NetBSD/hpcmips

-   [Overview of how to start NetBSD/hpcmips](#overview-start)
-   [filesystem overview](#overview-filesystem)
-   [Do I need to purchase a CF or ATA card? If so - got any
    recommendations?](#cf-recomen)
-   [Finding out if your system is supported by
    NetBSD/hpcmips](#prep-hwsupport)
-   [Supported CF and PCMCIA cards](#prep-cardsupport)
-   [Getting the NetBSD/hpcmips distribution](#prep-get)
-   [Getting the NetBSD/hpcmips boot loader
    (pbsdboot.exe)](#prep-getbooter)
-   [Getting the NetBSD/hpcmips kernel](#prep-kernel)
-   [Accessing Microsoft partitions](#ms_partition)
-   [Preparing a Compact Flash card with a NetBSD
    partition](#prep-cfpart)
-   [Preparing a Compact Flash card without a NetBSD
    partition](#prep-cfnopart)
-   [Getting support from mailing lists](#prep-support)
-   [keyboard mapping control](#key-map)

### pbsdboot.exe: the NetBSD/hpcmips boot loader

-   [What is the NetBSD/hpcmips boot loader
    (pbsdboot.exe)?](#booter-background)
-   [NetBSD/hpcmips boot loader options](#booter-options)
-   [Booting the kernel with a serial console](#booter-console)
-   [Automatically booting into NetBSD](#booter-quickboot)
-   [One-button boot on the Everex Freestyle](#booter-everex-quickboot)

* * * * *

### 

#### About this page ([top](#about1))

This page contains information that current and potential users of
NetBSD/hpcmips can use to help them set up and maintain their systems.

* * * * *

### Getting started with NetBSD/hpcmips

#### Overview of how to start NetBSD/hpcmips ([top](#))

You need at least 2 files to start NetBSD/hpcmips:

`pbsdboot.exe`{.filename}
:   bootloader runs on WindowsCE environment.
a netbsd kernel
:   

On pbsdboot pull-down menu, select hardware type and path to kernel.
pbsdboot passes hardware information (framebuffer information, etc.) to
kernel. The kernel will use all the Windows CE memory as RAM, so you
MUST backup all of your data stored in CE memory before booting. Click
Boot to load the kernel.

#### filesystem overview ([top](#))

You have a choice of filesystems:

filesystem on Compact Flash Cards or ATA Cards
:   need a DOS partition for pbsdboot.exe and a NetBSD partition
filesystem on SCSI/IDE disk
:   NetBSD/hpcmips supports PCMCIA SCSI Card such as SlimSCSI, so you
    can make your file system on SCSI disks. Recommended for developers.
filesystem on NFS Server
:   During boot:

    NetBSD/hpcmips finds pcmcia Ethernet Card

    gets an IP address via dhcp server

    finds NFS server

    mounts / partition from NFS server

#### Do I need to purchase a CF or ATA card? If so - got any recommendations? ([top](#))

for typical users we recommend 128M CF.
:   base+kern+etc+comp works fine
80M-96M CF
:   base+kern+etc - basic NetBSD system available in your pocket.
less than 64M CF
:   base+kern+etc - if you delete large unused files
15M CF
:   north pole for living - for those who like a challenge

#### Finding out if your system is supported by NetBSD/hpcmips ([top](#))

Check [Supported Machines](../hpcmips/#supported) listing.

#### Supported CF and PCMCIA cards ([top](#))

NetBSD [Supported hardware database](http://projects.NetBSD.org/cgi-bin/hw.cgi) is available. Select PCMCIA and query/add database. NetBSD users build this database.
:   
See NetBSD [Machine-independent PCMCIA drivers](../../support/hardware/pcmcia.html).
:   
Compact Flash Storage:
:   over 48M CF SanDisk

    note:on z50 Extreme Memory Compact Flash EM-CF/128/P (PQI FLASH DISK
    1201N)sometimes chokes and hangs the z50, especially under heavy
    "disk" load.

PCMCIA Devices cards:
:   NE2000 compatible corega Ether PCC-T

    3com 3C589\*

    Lucent/Agere WaveLAN/Orinoco wireless NIC

    Socket Communications, Inc. Standard LP-E CF+ (EA2900-117)

    Xircom CF Ethernet card

    [TDK LAC-CF010 CF Ethernet
    Card](http://www.tdk.co.jp/tjbda01/bda11100.htm)

    3com 3C1 : gets MAC address via ep driver, but does not transmit any
    packets. Broken.

    NTT DoCoMo Paldio 611S (Japan:PHS include CF Modem I/F)

    [DN-boy](http://www.linkease.com.tw/thing/dn_boy.htm)

    [eXtreme drive](http://www.planex.co.jp/product/drive/rxindex.htm)

Adaptec SlimSCSI 1460 (APA-1460)
:   
Apricorn EZ-GIG Expansion Card
:   
Callunacard CT260T2
:   

#### Getting the NetBSD/hpcmips distribution ([top](#))

check [ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-5.0/hpcmips/](ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-5.0/hpcmips/)
:   binary/sets:NetBSD/hpcmips binary such as base.tgz, comp.tgz.

    installation:pbsdboot.exe.gz and netbsd.gz

    source:source files

    place pbsdboot.exe and netbsd on your CF card and run pbsdboot.exe
    to start netbsd installation kernel (includes sysinst). You can boot
    netbsd.gz without unzipping it if space is tight.

#### Getting the NetBSD/hpcmips boot loader (pbsdboot.exe) ([top](#))

Download from [pbsdboot download
directory](ftp://ftp.NetBSD.org/pub/NetBSD/arch/hpcmips/pocketbsd/pbsdboot/).
Pbsdboot.exe is compiled for WindowsCE 2.00. Use Pbsdboot1.exe for
Windows CE 1.01. Pbsdboot.exe is updated to use color maps for 8 bit
frame buffer machines. Now we can use 256 colors, though we don't know
about details of video controller chip. (We actually do not know about
the video chips at all.)

Because Windows CE 1.0 does not support color map at all, the pbsdboot
can not support both CE 1.0 and 2.0 with single binary. Thus
pbsdboot.exe is compiled for CE 2.0 or later. You should use
pbsdboot1.exe for CE 1.0.

#### Getting the NetBSD/hpcmips kernel ([top](#))

pbsdboot hook up NetBSD/hpcmips kernel file.
:   [netbsd-GENERIC.gz](ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-5.0/hpcmips/binary/kernel/):
    this kernel runs on Vr41xx and TX3922 CPUs only.

    [netbsd-TX3912.gz](ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-5.0/hpcmips/binary/kernel/):
    a kernel for TX3912 machines.

#### Accessing Microsoft partitions ([top](#))

To access your MS-DOS WinCE partition, read [Accessing Microsoft
partitions](../i386/faq.html#ms_partition).

#### Preparing a Compact Flash card with a NetBSD partition ([top](#))

[Creating a file system on Compact Flash](install.txt).

#### Preparing a Compact Flash card without a NetBSD partition ([top](#))

TODO

#### Getting support from mailing lists ([top](#))

-   [NetBSD/hpcmips mailing list (English
    language)](../../mailinglists/#port-hpcmips)
-   [NetBSD/hpcmips mailing list (Japanese
    language)](http://www.jp.NetBSD.org/ja/JP/ml.html#port-hpcmips-ja)

#### keyboard mapping control ([top](#))

Swap CTRLCAPS 
:   wsconsctl -w encoding=jp.swapctrlcaps
Muhenkan key to Function 10 (for MGL2 switch window)
:   wsconsctl -w map+="keysym Muhenkan = F10"
Henkan key to Function 9 (for MGL2 change window)
:   wsconsctl -w map+="keysym Henkan = F9"

* * * * *
### pbsdboot.exe: the NetBSD/hpcmips boot loader

#### What is the NetBSD/hpcmips boot loader (pbsdboot.exe)? ([top](#))

TODO

#### NetBSD/hpcmips boot loader options ([top](#))

Boot loader from Windows CE 
:   Boot loader from Windows CE environment called "pbsdboot.exe" is
    available from
    [ftp.NetBSD.org](ftp://ftp.NetBSD.org/pub/NetBSD/arch/hpcmips/pocketbsd/pbsdboot/).
Boot loader Options
:   **-d** break into the kernel debugger

    **-m** use miniroot in memory

    **-s** single user mode

    **-h** use serial console

    **-a** ask for name:kernel ask root device (such as wd0a), dump
    device (such as wd0b), filesystem (such as ffs). To change root
    device on Slim SCSI card/IDE PCMCIA card, use this option and set
    root device to sd0/wd.

    **-b=DEV** change boot device to DEV(wd0, sd0, nfs etc.)

#### Booting the kernel with a serial console ([top](#))

:   On pbsdboot, check & set these parameter:
:   Options: h
:   Serialport on
:   Connect your terminal with 9600bps, 8bit, non-parity, VT100 mode
pbsdboot frame buffer type setting
:   D8\_FF : white type on black screen

    D8\_00 : black type on white screen

#### Automatically booting into NetBSD ([top](#))

To skip touch panel calibration, power on with shift+power key. Some
systems will automatically run
`\Storage Card\AutoRun\XXXXXX`{.filename}\\Autorun.exe where *`XXXXXX`*
is the CPU family. However, that isn't true for all systems. Also the
exact path is from memory and may be slightly incorrect.

CASIO Cassiopeia:
:   `\CE\R4100\AutoRun.exe`{.filename}

#### One-button boot on the Everex Freestyle ([top](#))

Everex Freestyle systems can be configured to start the boot loader at
the press of a button! To set up one-button boot loader invocation,
place a copy of `pbsdboot.exe`{.code} in the root directory of an FAT
file system on a compact flash, with the name `voiceapp.exe`{.code}.

To boot, just push the Freestyle "Record" button. PHILIPS Nino312 can
use this method.


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