|
View:
New views
19 Messages
—
Rating Filter:
Alert me
|
|
|
how to install NetBSD/landiskHello,
I'm looking at buying a simple NAS thing and am interested in replacing the emebeded Linux but NetBSD. I probably would go for the Plextor because it's available in France. What is the procedure to boot NetBSD on such devices ? TIA, Jo |
|
|
Re: how to install NetBSD/landiskOn Thu, Feb 22, 2007 at 23:39:41 +0100, Joel CARNAT wrote:
> I'm looking at buying a simple NAS thing and am interested in replacing > the emebeded Linux but NetBSD. I probably would go for the Plextor because > it's available in France. > > What is the procedure to boot NetBSD on such devices ? 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. Prepared means: . fdisk . disklabel . newfs . untar sets . installboot . tweak few files in /etc (fstab, rc.conf) You will also need to make a serail console cable: http://www.mizore.jp/wiki/index.php?LANDISK%2Fserial-console SY, Uwe -- uwe@... | Zu Grunde kommen http://snark.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen |
|
|
Re: how to install NetBSD/landiskuwe@... 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 |
|
|
Re: how to install NetBSD/landiskI wrote:
> 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. FYI, on-board 8139C+ works fine with re(4) and hardware cksums: --- : pci0 at shpcic0 pci0: i/o space, memory space enabled re0 at pci0 dev 0 function 0: RealTek 8139C+ 10/100BaseTX re0: interrupting at irq 5 re0: Ethernet address 00:a0:b0:70:c0:76 re0: using 64 tx descriptors rlphy0 at re0 phy 0: Realtek internal PHY rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto : # ifconfig re0 re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500 capabilities=3f80<TSO4,IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx> enabled=3f00<IP4CSUM_Rx,IP4CSUM_Tx,TCP4CSUM_Rx,TCP4CSUM_Tx,UDP4CSUM_Rx,UDP4CSUM_Tx> address: 00:a0:b0:70:c0:76 media: Ethernet autoselect status: active inet 192.168.20.34 netmask 0xffffff00 broadcast 192.168.20.255 inet6 fe80::2a0:b0ff:fe70:c076%re0 prefixlen 64 scopeid 0x1 # netstat -ni -I re0 Name Mtu Network Address Ipkts Ierrs Opkts Oerrs Colls re0 1500 <Link> 00:a0:b0:70:c0:76 36702 0 34743 0 0 re0 1500 192.168.20/24 192.168.20.34 36702 0 34743 0 0 re0 1500 fe80::/64 fe80::2a0:b0ff:fe 36702 0 34743 0 0 # --- Izumi Tsutsui |
|
|
Re: how to install NetBSD/landiskHi,
thanks for the first replies. now... where do I find the binary tarball ? I didn't anything in the places I usually find /i386 and /sparc64 stuff. I looked for sh3* stuff. Maybe this is a wrong regexp ? TIA, Jo On Thu, Feb 22 2007 - 23:39, Joel CARNAT wrote: > Hello, > > I'm looking at buying a simple NAS thing and am interested in replacing > the emebeded Linux but NetBSD. I probably would go for the Plextor because > it's available in France. > > What is the procedure to boot NetBSD on such devices ? > > TIA, > Jo > |
|
|
Re: how to install NetBSD/landiskGreetings,
Anyone got a name and modelnumber for a Landisk-clone thats available in europe (sweden)? Best wishes Kristoffer >From: Joel CARNAT <joel@...> >Reply-To: joel@... >To: port-sh3@... >Subject: Re: how to install NetBSD/landisk >Date: Sun, 11 Mar 2007 14:55:49 +0100 > >Hi, > >thanks for the first replies. >now... where do I find the binary tarball ? > >I didn't anything in the places I usually find /i386 and /sparc64 stuff. >I looked for sh3* stuff. Maybe this is a wrong regexp ? > >TIA, > Jo > >On Thu, Feb 22 2007 - 23:39, Joel CARNAT wrote: > > Hello, > > > > I'm looking at buying a simple NAS thing and am interested in replacing > > the emebeded Linux but NetBSD. I probably would go for the Plextor >because > > it's available in France. > > > > What is the procedure to boot NetBSD on such devices ? > > > > TIA, > > Jo > > ><< attach3 >> _________________________________________________________________ Don't just search. Find. Check out the new MSN Search! http://search.msn.com/ |
|
|
Re: how to install NetBSD/landiskOn Mon, Mar 12, 2007 at 12:53:45 +0000, Kristoffer Ericson wrote:
> Anyone got a name and modelnumber for a Landisk-clone thats available in > europe (sweden)? Plextor PX-EH16L, PX-EH25L and PX-EH40L. SY, Uwe -- uwe@... | Zu Grunde kommen http://snark.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen |
|
|
Re: how to install NetBSD/landiskOn Sun, Mar 11, 2007 at 14:55:49 +0100, Joel CARNAT wrote:
> now... where do I find the binary tarball ? ftp://ftp.netbsd.org/pub/NetBSD-daily/ e.g. ftp://ftp.netbsd.org/pub/NetBSD-daily/HEAD/200703100002Z/landisk/ Hmm, i think landisk builds were not enabled for NeBSD-4 branch. I'll ask releng. Current is i a bit of turmoil currently, so I wouldn't recommend it, atm. Alternatively, just build a landisk distribution yourself. NetBSD has very nice cross-compilation support. SY, Uwe -- uwe@... | Zu Grunde kommen http://snark.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen |
|
|
Re: how to install NetBSD/landisk> On Sun, Mar 11, 2007 at 14:55:49 +0100, Joel CARNAT wrote:
> >> now... where do I find the binary tarball ? > > ftp://ftp.netbsd.org/pub/NetBSD-daily/ e.g. > ftp://ftp.netbsd.org/pub/NetBSD-daily/HEAD/200703100002Z/landisk/ > > Hmm, i think landisk builds were not enabled for NeBSD-4 branch. I'll > ask releng. Current is i a bit of turmoil currently, so I wouldn't > recommend it, atm. > > Alternatively, just build a landisk distribution yourself. NetBSD has > very nice cross-compilation support. > OK, I'll do it with build.sh. I was just not sure were/what to look for. thanks. |
|
|
Re: how to install NetBSD/landiskMine is Plextor PX-EH40L.
I couldn't find any of the IO/DATA references outside Japan or America. PX-EH40L is a model with the OS on the first partition on the disk. For the moment, I just have opened it and check my backup/restore procedure. I'm waiting for a serial cable (purchased on ebay) to try a NetBSD/OpenBSD install on it. I took a few picture while dismounting it. http://www.tumfatig.net/grafx/hardware/Plextor/index.html I'll write a small HTML doc when I will have finished the migration to NetBSD. > Greetings, > > Anyone got a name and modelnumber for a Landisk-clone thats available in > europe (sweden)? > > Best wishes > Kristoffer > > >>From: Joel CARNAT <joel@...> >>Reply-To: joel@... >>To: port-sh3@... >>Subject: Re: how to install NetBSD/landisk >>Date: Sun, 11 Mar 2007 14:55:49 +0100 >> >>Hi, >> >>thanks for the first replies. >>now... where do I find the binary tarball ? >> >>I didn't anything in the places I usually find /i386 and /sparc64 stuff. >>I looked for sh3* stuff. Maybe this is a wrong regexp ? >> >>TIA, >> Jo >> >>On Thu, Feb 22 2007 - 23:39, Joel CARNAT wrote: >> > Hello, >> > >> > I'm looking at buying a simple NAS thing and am interested in >> replacing >> > the emebeded Linux but NetBSD. I probably would go for the Plextor >>because >> > it's available in France. >> > >> > What is the procedure to boot NetBSD on such devices ? >> > >> > TIA, >> > Jo >> > > > >><< attach3 >> > > _________________________________________________________________ > Don't just search. Find. Check out the new MSN Search! > http://search.msn.com/ > > |
|
|
Re: Re: how to install NetBSD/landiskbuild.sh doesn't seem to recognize "landisk" as a '-a' argument.
does it work on -netbsd-4 or should I use some other ARCH ? TIA, Jo On Mon, Mar 12 2007 - 17:50, Joel CARNAT wrote: > > On Sun, Mar 11, 2007 at 14:55:49 +0100, Joel CARNAT wrote: > > > >> now... where do I find the binary tarball ? > > > > ftp://ftp.netbsd.org/pub/NetBSD-daily/ e.g. > > ftp://ftp.netbsd.org/pub/NetBSD-daily/HEAD/200703100002Z/landisk/ > > > > Hmm, i think landisk builds were not enabled for NeBSD-4 branch. I'll > > ask releng. Current is i a bit of turmoil currently, so I wouldn't > > recommend it, atm. > > > > Alternatively, just build a landisk distribution yourself. NetBSD has > > very nice cross-compilation support. > > > > OK, I'll do it with build.sh. > I was just not sure were/what to look for. > > thanks. > |
|
|
Re: Re: how to install NetBSD/landiskOn Mon, Mar 12, 2007 at 18:59:08 +0100, Joel CARNAT wrote:
> build.sh doesn't seem to recognize "landisk" as a '-a' argument. > does it work on -netbsd-4 or should I use some other ARCH ? landisk is MACHINE (-m), not MACHINE_ARCH (-a). Use build.sh -m landisk ... SY, Uwe -- uwe@... | Zu Grunde kommen http://snark.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen |
|
|
Re: Re: Re: how to install NetBSD/landiskOn Mon, Mar 12 2007 - 21:02, Valeriy E. Ushakov wrote:
> On Mon, Mar 12, 2007 at 18:59:08 +0100, Joel CARNAT wrote: > > > build.sh doesn't seem to recognize "landisk" as a '-a' argument. > > does it work on -netbsd-4 or should I use some other ARCH ? > > landisk is MACHINE (-m), not MACHINE_ARCH (-a). Use > > build.sh -m landisk ... > it's building. thanks! I got the serial cable this evening so I plugued it on the mainboard. The thing is I get junk on the output (same as if I had run `cat /bin/ls` for example) ; that is unreadable caracters. I tried hitting ENTER but it doesn't seem to act as if the console got CR/LF. Anyone knows what this mean ? Is the serial cable not build correctly ? Do I use the wrong settings (I use 9600 8-N-1) ? TIA, Jo |
|
|
Re: how to install NetBSD/landiskIn article <20070312213411.GB1557@...>,
Joel CARNAT <joel@...> wrote: >-=-=-=-=-=- > >On Mon, Mar 12 2007 - 21:02, Valeriy E. Ushakov wrote: >> On Mon, Mar 12, 2007 at 18:59:08 +0100, Joel CARNAT wrote: >> >> > build.sh doesn't seem to recognize "landisk" as a '-a' argument. >> > does it work on -netbsd-4 or should I use some other ARCH ? >> >> landisk is MACHINE (-m), not MACHINE_ARCH (-a). Use >> >> build.sh -m landisk ... >> > >it's building. thanks! > >I got the serial cable this evening so I plugued it on the mainboard. >The thing is I get junk on the output (same as if I had run `cat >/bin/ls` for example) ; that is unreadable caracters. I tried hitting >ENTER but it doesn't seem to act as if the console got CR/LF. > >Anyone knows what this mean ? >Is the serial cable not build correctly ? >Do I use the wrong settings (I use 9600 8-N-1) ? > Try different baud rates? 19.2 or 38.4 perhaps? christos |
|
|
Re: Re: Re: how to install NetBSD/landiskOn Mon, Mar 12, 2007 at 22:34:11 +0100, Joel CARNAT wrote:
> I got the serial cable this evening so I plugued it on the mainboard. > The thing is I get junk on the output (same as if I had run `cat > /bin/ls` for example) ; that is unreadable caracters. I tried hitting > ENTER but it doesn't seem to act as if the console got CR/LF. > > Anyone knows what this mean ? > Is the serial cable not build correctly ? > Do I use the wrong settings (I use 9600 8-N-1) ? Strange. The following is from powering up my USL-5P. Serial cable was made by a friend based on mizore wiki instructions. $ cu -l /dev/dty10 -s 9600 Connected 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. 2004/09/08 I-O DATA NSU Update. 266:133:33 on base clock 22.22MHz and SDRAM 4 burst. CF boot. PCIC initialization done. MASTER:48bit LBA mode non support Disk drive detected: Hitachi ATA 6.0 Rev 1.0 LBA: 0003D200 DiskSize: 128188416Byte PIO MODE1 Set Transfer Mode result: 51 > b Set Transfer Mode result: 51 Initialize Device Parameters result: 50 IDLE result: 50 NetBSD MBR boot NetBSD/landisk ffsv1 Primary Bootstrap >> NetBSD/landisk Boot, Revision 1.0 >> (uwe@shravaka, Sat Aug 19 06:13:25 MSD 2006) Press return to boot now, any other key for boot menu booting hd0a:netbsd - starting in 0 type "?" or "help" for help. > SY, Uwe -- uwe@... | Zu Grunde kommen http://snark.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen |
|
|
Re: how to install NetBSD/landisk>>
>>I got the serial cable this evening so I plugued it on the mainboard. >>The thing is I get junk on the output (same as if I had run `cat >>/bin/ls` for example) ; that is unreadable caracters. I tried hitting >>ENTER but it doesn't seem to act as if the console got CR/LF. >> >>Anyone knows what this mean ? >>Is the serial cable not build correctly ? >>Do I use the wrong settings (I use 9600 8-N-1) ? >> > > Try different baud rates? 19.2 or 38.4 perhaps? > I have tried every parameters in minicom. Sometime I get output, sometimes not ; but each time, it is junk output. I also tried inverting the cable pin 2 and 3 (which are supposed to be TX/RX) ; all I got was junk AND bip :) |
|
|
Re: Re: Re: Re: how to install NetBSD/landiskHello,
Serial cable is OK. I tried an OpenBSD installation, which ran OK. I have build a netbsd-4 release (from my i386 laptop). So I'm ready to try NetBSD on it. Now... the stupid question... how do I install it ? Because neither my build nor the releng/HEAD seem to provide INSTALL kernel... :-) Is it to be done "by hand" - making partitions and untaring things ? And then... how do I install the boot loader ? TIA, Jo On Mon, Mar 12 2007 - 22:34, Joel CARNAT wrote: > On Mon, Mar 12 2007 - 21:02, Valeriy E. Ushakov wrote: > > On Mon, Mar 12, 2007 at 18:59:08 +0100, Joel CARNAT wrote: > > > > > build.sh doesn't seem to recognize "landisk" as a '-a' argument. > > > does it work on -netbsd-4 or should I use some other ARCH ? > > > > landisk is MACHINE (-m), not MACHINE_ARCH (-a). Use > > > > build.sh -m landisk ... > > > > it's building. thanks! > |
|
|
Re: Re: Re: Re: how to install NetBSD/landiskOn Thu, Mar 22, 2007 at 23:02:57 +0100, Joel CARNAT wrote:
> I have build a netbsd-4 release (from my i386 laptop). BTW, releng now builds landisk netbsd-4. > Now... the stupid question... how do I install it ? > Because neither my build nor the releng/HEAD seem to provide INSTALL > kernel... :-) Can you tell sh-ipl+g to boot off something else except the internal hdd? I can't seem to get to the sh-ipl+g prompt on my usl-5p, it "autotypes" 'b' and loads netbsd mbr boot off the disk (CF). > Is it to be done "by hand" - making partitions and untaring things ? That's what I did for my USL-5P. > And then... how do I install the boot loader ? fdisk(8) and installboot(8). I have to check the man page every time I need to use installboot, b/c I do it may be once in a few years only. IIRC, assuming TOOLDIR in path and disk connected as, say, sd7, something like $ shle--netbsdelf-fdisk -c /path/to/.../usr/mdec/mbr sd7 to write mbr boot code. Don't forget to mark the netbsd partition active. And to install bootloader: $ nbinstallboot -m landisk /dev/rsd7c \ /path/to/.../usr/mdec/bootxx_ffsv1 I honestly don't remember. :) This link might help: http://www.tokuda.net/diary.gns/200609b.html#1602 SY, Uwe -- uwe@... | Zu Grunde kommen http://snark.ptc.spbu.ru/~uwe/ | Ist zu Grunde gehen |
|
|
Re: Re: Re: Re: Re: how to install NetBSD/landiskOn Fri, Mar 23 2007 - 01:45, Valeriy E. Ushakov wrote:
> On Thu, Mar 22, 2007 at 23:02:57 +0100, Joel CARNAT wrote: > > > I have build a netbsd-4 release (from my i386 laptop). > > BTW, releng now builds landisk netbsd-4. > great! > > > Now... the stupid question... how do I install it ? > > Because neither my build nor the releng/HEAD seem to provide INSTALL > > kernel... :-) > > Can you tell sh-ipl+g to boot off something else except the internal > hdd? I can't seem to get to the sh-ipl+g prompt on my usl-5p, it > "autotypes" 'b' and loads netbsd mbr boot off the disk (CF). > I couldn't make it do anything else than boot... Even the advertised 'l' and 'w' don't work. > > This link might help: http://www.tokuda.net/diary.gns/200609b.html#1602 > This was nearly perfect ! Unless I missed it, there is no "make your partition active" part. Fortunately you told me, and NetBSD is running on that beast now :) I put my notes here http://www.tumfatig.net/docs/00_tut/hardware/BSD%20-%20landisk.php The NetBSD part is not yet finished but will, probably this week-end. Thanks a lot for the help. Regards, Jo |
| Free embeddable forum powered by Nabble | Forum Help |