(In broken English)
Start Editing
Start Editing
- When you finished to write your articles, please push left "投稿" button below. "投稿" means "Post".
- When you want to preview your articles, please push right "プレビュー" button below. "プレビュー" means "Preview".
If you have any question about this page, please send me e-mail. (E.Kawauchi _at_ gmail _dot_ com)
Install NetBSD onto your [LinkStation|TeraStation|KuroBox] with USB-Memory.
(Translation is still work in progress. "We apologize for the inconvenience.")
Supported Boxes
- LinkStation 1 (HD-HLANv1)
- LinkStation/HG (HD-HGLAN)
- LinkStation/HomeServer (HS-DGL)
- KUROBOX
- KUROBOX/HG
- TeraStation (HD-HTGL/R5)
Note 1) Difference of CPU-Speed, Type of IDE-Controller, and Memory-Size will be detected automatically. You may run all of above boxes with the same kernel.
Note 2) Boot loader "nbloader" depends on Linux's kernel version. To know the kernel version, use "uname -r" command.
Note 2) Boot loader "nbloader" depends on Linux's kernel version. To know the kernel version, use "uname -r" command.
Necessary hardware
- Your box (see above list).
- USB Memory (aka USB ThumbDisk) 256MB & up.
- PC for telnet.
Suggested hardware (additional)
- Other PC (Linux/NetBSD-bootable).
- Serial console for your box. (It needs some soldering.)
Download
Kernel (based on NetBSD 3.0)
Boot loader
USB-memory image; for 256MB & up
Quick Boot
- Copy "netbsd.GENERIC3.20060417.bin.bz2" onto Linux boot partition, and bunzip.
- Extract "nbloader_v2.o" on "nbloader_v2.20060225.tar.bz2", and copy it on same dir as kernel.
- bunzip "256M_BSD3.img.bz2", and write it to the USB-memory with "dd" command.
- Example for Linux: "dd if=256M_BSD3.img of=/dev/sda bs=1MB"
- Plug the USB-memory on your box.
- On linux, "(sleep 30; sync; sync; umount -a; insmod nbloader_v2.o kernel=netbsd.GENERIC3.20060417.bin bootdev=0xa0000004) &"
- You must be root user.
- Then logout.
- Please wait for a while.
- Login with telnet. The IP address of the box will be taken from the DHCP server.
- Or you may login it with 192.168.200.200/24(LS1,KUROBOX) or 192.168.200.210/24(HG,TeraStation) if you haven't a DHCP server.
- Login user name is "bsduser" (without password).
- You may switch to root with "su" command (without password).
- "shutdown", "halt" and "reboot" is available. DO NOT PLUG OFF YOUR BOX'S POWER BEFORE SHUTDOWN.
- Power button is also available. To initiate shutdown, hold down the power button about 3 secs.
Install NetBSD into Internal HDD
- On Linux, re-partitioning and make room for NetBSD.
- "Gnu Parted" is good choice for that.
- Typically, you need to remove /dev/hda4(if exist), and resize /dev/hda3.
- DO NOT REMOVE /dev/hda1 and leave it for Linux. Boot loader "nbloader" needs Linux.
- Boot with USB-Memory. (See above)
- On NetBSD, fdisk and disklabel as you like. :-)
- (XXX Need more detail here)
- (XXX You may need some experience about NetBSD's slice, partition, etc...)
- newfs and mount it. (e.g. /mnt, /mnt/usr, /mnt/var, /mnt/home, ...)
- Copy from USB-Memory to internal HDD.
- "dump/restore" is recomended.
- For example, "cd /mnt; dump 0af - / | restore rf -"
- Edit /mnt/etc/fstab on the HDD. DON'T FORGET it.
- Other setting is on /mnt/etc/rc.conf. Edit it as you like. :-)
- "dump/restore" is recomended.
- If your boot-partition is wd0a, use "bootdev=0xa0000000" to boot from it.
Install additional NetBSD tarballs
- Fetch files shown in below from NetBSD's site. Please take care of version(3.0) and machine-arch(sandpoint).
- comp.tgz
- (games.tgz)
- man.tgz
- misc.tgz
- text.tgz
- (xbase.tgz)
- (xcomp.tgz)
- (xetc.tgz)
- (xfont.tgz)
- (xserver.tgz)
- Also, fetch the sources shown in below.
- gnusrc.tgz
- sharesrc.tgz
- src.tgz
- syssrc.tgz
- (xsrc.tgz)
- Extract these files on root(/). You must also as "root". :-)
- For example, "tar zxvpf /where-to-put-the-archives/comp.tgz -C /"
- Don't forget to add "p" option to tar's argument.
Setting up the boot selector
Download
- For KUROBOX/LinkStation: http://kurobsd.ki.nu/download/testing/powerpc/selector/bootsel2/kuro-bootsel2.20060125.tar.bz2
- For TeraStation: http://kurobsd.ki.nu/download/testing/powerpc/selector/bootsel2/tera-bootsel2.20051119a.tar.bz2
Install
(TBD)
- Boot as Linux.
- Extract the archive and "make install".
- Some commands are pre-compiled in the directory. If you want to compile the commands, issue "make clean", and "make".
Setup
(TBD)
- Edit /etc/kuro_boot.conf
- Misconfiguration of "AVR=" is *FATAL*. Please take care.
- Copy the bootloader's file to proper directory as write on kuro-boot.conf.
Boot with the boot selector
(TBD)
- Power on with the power button.
- Wait for a while. "DISK FULL" LED will be coming up.
- While the LED is lighting, push the power button certain times.
- once(1) is always Linux. 6 times and up is error, resulting to boot as Linux.
- From twice(2) to 5 times depends your setting on kuro_boot.conf.
- When finish to push the button, or nothing done, then after about 3 seconds (default value), the LED is turned off and answer back with your input counts.
- If it had some error, it try to boot Linux(1).
- If you have serial-console, you can also select it from the console.
Re-compile the kernel
- Fetch the patch from http://kurobsd.ki.nu/download/testing/sandpoint/patch-3/20060417.NetBSD-3.diff.bz2
- Perform these commands. (You must extract (at least) comp.tgz and syssrc.tgz before these commands. See above.)
- cd /usr/src
- bzip2 -dc /where-to-put-the-patch/20060417.NetBSD-3.diff.bz2 | patch -p0
- cd /usr/src/sys/arch/sandpoint/conf
- cp KUROBOX CUSTOM
- (some modification against "CUSTOM")
- config CUSTOM
- cd ../compile/CUSTOM
- make depend
- make
- Copy "netbsd.bin" to Linux boot partition.
- Boot with the new kernel.
...(continuing)
23393
このwikiの更新情報RSS