NetBSD loader for KURO-BOX/LinkStation/TeraStation (version 3.1 : 2006-10-14)

The program is based on loader.o, written by jochang@gmail.com. Thanks!
License is GPL. Please read COPYING.txt for detail.

Usage:
  On Linux, execute the command below. (It may need root privilege.)

  insmod nbloader_v3.o [kernel=the-kernel-to-load] [startaddr=load-and-start-address] [cmdline=the-kernel-arguments]

   *OR* (backward compatibility)

  insmod nbloader_v3.o [kernel=the-kernel-to-load] [startaddr=load-and-start-address] [bootdev=boot-device-value] [boothowto=boot-howto-flags]



    kernel=    Specify a kernel to load. Defalut is "netbsd.bin".
    startaddr= Specify an address to load-and-go. Default is "0x00090000".
               *DO NOT CHANGE*.
    cmdline=   Specify the kernel arguments. Defalt is none specified.
               It is depend on your kernel.
               Example for my patched kernel:
                 cmdline=bootdev=sd0a
                   (Specify sd0a as root partition.)
                 cmdline=bootdev=wd0a,boothowto=-s
                   (Specify wd0a as root partition, and single user mode.)
               Other arguments are silently ignored.

    (** backward compatibility mode **)
    bootdev=   Specify an boot device's value. The value is same as MAKEBOOTDEV
               macro on sys/sys/reboot.h.
               Example:
                 wd0a: 0xa0000000
                 wd1a: 0xa0010000
                 sd0a: 0xa0000004
                 sd1a: 0xa0010004
                 wd0f: 0xa0000500
                 sd2p: 0xa0020f04
               Defalut is 0, and query the device.

    (** backward compatibility mode **)
    boothowto= Specify Boot-Howto flags.
               The flags is specified by RB_* or AB_* macros on sys/reboot.h.
               Note that you must calc the value "0xa0000000 | (the flags)"
               "a00" is a magic number, and if it is not "a00", then the value
               treat as 0.
               Example:
                 Single-User mode: 0xa0000002
               Default is 0, None special.

mailto: E.Kawauchi@gmail.com
