. .Ss2 Prepare the NFS or TFTP server . Set up an NFS server and copy the install kernel renamed into
a netbsd to its root partition. Optionally copy the kernel into your TFTP directory and make sure the
a tftpd service is running. . .Ss2 The altboot bootloader The
a altboot.bin binary file loads a .Nx kernel from the root partition of a local disk, from TFTP or from NFS. This bootloader binary should be made available by one of the following methods (depending on the firmware): .(bullet -compact TFTP server t NFS server t Serial line upload t Flash ROM .bullet)
p When your firmware is restricted to
a bootm as the only command to run a program you should use
a altboot.img , which fakes a Linux kernel module. . .Ss2 Booting the installer Depending on whether the serial console is attached to the first or the second UART you will have to boot
a netbsd-INSTALL (1st UART at 0x4500) or
a netbsd-INSTALL_KURO (2nd UART at 0x4600). KuroBox and LinkStation systems are known to have the console on the second UART.
p In most cases your NAS will run .Tn "PPCBoot" or .Tn "U-Boot" as firmware. You can access its command line via the serial adapter cable. When auto-booting is enabled this will usually require to press a key quickly after the system was switched on. Then load the
a altboot.bin file into memory at
a 0x1000000 and boot the installation kernel with
p .Dl > Ic "go 0x1000000 tftp:"
p for TFTP, or with
p .Dl > Ic "go 0x1000000 nfs:"
p when the kernel resides on NFS.
p Note, that when using
a altboot.img with
a bootm instead of
a altboot.bin you have to pass arguments like
a tftp: or
a nfs: in the
a bootargs environment variable.
p The installation kernel will run
a sysinst from an internal memory disk image. . .so ../common/sysinst