Introduction ============
This document describes in depth how to prepare your QNAP Turbo Station for installing NetBSD/sandpoint. The following models are supported:
To install NetBSD/sandpoint you will have to open the case, to get access to the serial console, and connect a serial converter from TTL to RS232 signal levels. |
|
=> loadb 1000000 ## Ready for binary (kermit) download to 0x01000000 at 115200 bps...Now quit your terminal program and launch **kermit cmdfile**. When you are already running `kermit` enter the command mode by typing **CTRL-\\** followed by **C**. Then send `altboot.bin`. Reconnect when the transfer is finished.
C-Kermit 8.0.211, 10 Apr 2004, for NetBSD 1.6 Copyright (C) 1985, 2004, Trustees of Columbia University in the City of New York. Type ? or HELP for help. (/tmp/) C-Kermit>send path_to/altboot.binBoot the INSTALL kernel with altboot ------------------------------------ Now you can use `altboot` to launch the `netbsd-INSTALL` kernel for installing NetBSD. You may choose to load it via TFTP or from NFS. For TFTP you have to enable `tftpd(8)` in `/etc/inetd.conf`, and for NFS there is a documentation at [The Network File System](http://www.NetBSD.org/docs/guide/en/chap-net-services.html#chap-net-services-nfs). But in both cases you have to set up a DHCP server, which is explained in the [DHCP Howto](http://www.NetBSD.org/docs/network/dhcp.html). An appropriate `dhcpd.conf` entry could look like this: host turbostation { hardware ethernet 00:e0:4c:xx:xx:xx; fixed-address 192.168.0.104; next-server 192.168.0.1; option root-path "/export/turbostation/root"; } The `root-path` option is only needed when using NFS and should match your exported NFS directory. Uncompress `netbsd-INSTALL.gz` from the NetBSD/sandpoint distribution and copy it into the NFS or TFTP directory. Run altboot and press a key to enter interactive mode:
=> go 1000000## Starting application at 0x01000000 ... >> NetBSD/sandpoint altboot, revision 1.7 (Sat May 28 12:36:26 CEST 2011) >> QNAP TS, cpu 265 MHz, bus 132 MHz, 64MB SDRAM wd0:
=> tftp:netbsd-INSTALLor from NFS:
=> nfs:netbsd-INSTALLAt the time of writing the network transfer will fail for the first time after cold start. After an automatic reset, caused by five xmit failures, it should succeed. This will hopefully improve in future. Our bootloader configures the hardware, determines the IP address, loads the kernel via network and launches it: loading "netbsd-INSTALL" 5143540+110580=0x503068 entry=0x90000, ssym=0x592be8, esym=0x593068 Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011 The NetBSD Foundation, Inc. All rights reserved. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. NetBSD 5.99.52 (INSTALL) #6: Sat May 28 12:44:03 CEST 2011 frank@compaq.owl.de:/home/frank/netbsd/current/src/sys/arch/sandpoint/compile/obj/INSTALL total memory = 65536 KB avail memory = 57980 KB OpenPIC Version 1.2: Supports 1 CPUs and 26 interrupt sources. mainbus0 (root) cpu0 at mainbus0: 8245 (Revision 0.4), ID 0 (primary) cpu0: HID0 0x90c000
=> protect off ffe20000 ffe3ffff Un-Protected 1 sectors => erase ffe20000 ffe3ffff . done Erased 1 sectors => cp.b 1000000 ffe20000 18000 Copy to Flash... done => protect on ffe20000 ffe3ffff Protected 1 sectorsFinally adapt the `bootcmd` environment string to autoboot `altboot` and start the `netbsd` kernel (which is the default name) from `wd0` on each reboot:
=> setenv bootcmd cp.b ffe20000 1000000 18000\; go 1000000 wd0: => saveenv Saving Environment to Flash... Un-Protected 1 sectors Erasing Flash... . done Erased 1 sectors Writing to Flash... done Protected 1 sectorsThe `\` is important for **setenv** not to misinterpret the `;` as the end of the command. Have fun with your mini NetBSD server!