Subject: Re: how to install NetBSD/landisk
To: None <uwe@ptc.spbu.ru>
From: Izumi Tsutsui <tsutsui@ceres.dti.ne.jp>
List: port-sh3
Date: 02/25/2007 06:31:18
uwe@ptc.spbu.ru wrote:

> I have USL-5P (with the system on the CF card and no built-in
> storage).  I've prepared the CF on i386 machine and put it in place of
> the stock CF with Linux.

Today I've tried to install NetBSD/landisk to
the I-O DATA "Lan Tank" (SOTO-HDLWU) NAS box:
http://supertank.iodata.jp/products/sotohdlwu/ (in Japanese)
and it works fine.

> Prepared means:
> 
> . fdisk
> . disklabel
> . newfs
> . untar sets
> . installboot
> . tweak few files in /etc (fstab, rc.conf)

There are some more tweaks:
- my Seagate ST380021A ATA disk is not recognized by the firmware ;-(
- maybe we have to install mbr bootloader by
  dd if=/landisk-DESTDIR/usr/mdec/mbr of=/dev/rwdXd bs=512 count=1
  or so
- as usual we have to preserve first 63 sectors for fdisk
- fdisk partition should be marked active by "fdisk -a wdX"
- we have to copy /usr/mdec/boot into root filesystem before installboot
- we also have to create device nodes by
  "mount /dev/wdXa /mnt; cd /mnt/dev; sh MAKEDEV all" etc.

---

SH IPL+g version 0.9, Copyright (C) 2000 Free Software Foundation, Inc.

This software comes with ABSOLUTELY NO WARRANTY; for details type `w'.
This is free software, and you are welcome to redistribute it under
certain conditions; type `l' for details.

2002/09/09 Making.  2003/10/16 I-O DATA NSD NWG Update.
266:133:33 on base clock 22.22MHz and SDRAM 4 burst. ATA boot.

A-Card ATP865 ATA controller found.
PCIC initialization done.
MASTER:48bit LBA mode non support
Disk drive detected: IBM-DTLA-305020 TW2OA60A          YE0YE0E2803 
LBA: 02653C20
DiskSize: 20GByte
PIO MODE1
Set Transfer Mode result: 50 
A-Card ATP865 ATA controller found.
> b
Set Transfer Mode result: 50 
Initialize Device Parameters result: 50 
IDLE result: 50 

NetBSD MBR boot

NetBSD/landisk ffsv1 Primary Bootstrap

>> NetBSD/landisk Boot, Revision 1.0
>> (tsutsui@mirage, Sun Feb 25 01:08:20 JST 2007)
Press return to boot now, any other key for boot menu
booting hd0a:netbsd - starting in 0 
3622924+201004 [213744+205766]=0x40c3bc
Start @ 0x8c001000 [1=0x8c3a6938-0x8c40d3bc]...
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007
    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 4.99.12 (LANTANK) #0: Sun Feb 25 05:37:00 JST 2007
	tsutsui@mirage:/usr/src/sys/arch/landisk/compile/LANTANK
Model: I-O DATA LANDISK
total memory = 65536 KB
avail memory = 58312 KB
mainbus0 (root)
cpu0 at mainbus0: HITACHI SH4 266.666 MHz PCLOCK 33.333 MHz
cpu0: 8KB/32B direct-mapped Instruction cache.
cpu0: 16KB/32B direct-mapped Data cache.
cpu0: P0, U0, P3 write-through; P1 write-through
cpu0: full-associative 4 ITLB, 64 UTLB entries
cpu0: multiple virtual storage mode, SQ access: kernel, wired 61
shpcic0 at mainbus0: HITACHI SH7751R
pci0 at shpcic0
pci0: i/o space, memory space enabled
rtk0 at pci0 dev 0 function 0: Realtek 8139 10/100BaseTX (rev. 0x20)
rtk0: interrupting at irq 5
rtk0: Ethernet address 00:a0:b0:70:c0:76
rlphy0 at rtk0 phy 7: Realtek internal PHY
rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
acardide0 at pci0 dev 1 function 0
acardide0: Acard ATP865-A Ultra133 IDE Controller (rev. 0x07)
acardide0: using irq 6 for native-PCI interrupt
atabus0 at acardide0 channel 0
atabus1 at acardide0 channel 1
ohci0 at pci0 dev 2 function 0: NEC USB Host Controller (rev. 0x43)
ohci0: interrupting at irq 7
ohci0: OHCI version 1.0
usb0 at ohci0: USB revision 1.0
uhub0 at usb0
uhub0: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 3 ports with 3 removable, self powered
ohci1 at pci0 dev 2 function 1: NEC USB Host Controller (rev. 0x43)
ohci1: interrupting at irq 8
ohci1: OHCI version 1.0
usb1 at ohci1: USB revision 1.0
uhub1 at usb1
uhub1: NEC OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
ehci0 at pci0 dev 2 function 2: NEC USB Host Controller (rev. 0x04)
ehci0: interrupting at irq 5
ehci0: companion controllers, 3 ports each: ohci0 ohci1
usb2 at ehci0: USB revision 2.0
uhub2 at usb2
uhub2: NEC EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
uhub2: 5 ports with 5 removable, self powered
shb0 at mainbus0
scif0 at shb0
scif0: console
rs5c313rtc0 at shb0: RS5C313 real time clock
obio0 at mainbus0
btn0 at obio0 irq 12: USL-5P Button
pwrsw0 at obio0 irq 11: Power Switch
Kernelized RAIDframe activated
wd0 at atabus0 drive 0: <IBM-DTLA-305020>
wd0: 19623 MB, 39870 cyl, 16 head, 63 sec, 512 bytes/sect x 40188960 sectors
boot device: wd0
root on wd0a dumps on wd0b
/etc/rc.conf is not configured.  Multiuser boot aborted.
Enter pathname of shell or RETURN for /bin/sh: 
We recommend creating a non-root account and using su(1) for root access.
No entry for terminal type "dumb";
using dumb terminal settings.
# 

---
Izumi Tsutsui