Subject: AW: Cube fileserver
To: 'Laurens Vets' <port-cobalt@NetBSD.org>
From: Andreas Fuchs <fox@tcnet.ch>
List: port-cobalt
Date: 05/05/2004 20:04:38
This is a multi-part message in MIME format.

------=_NextPart_000_0028_01C432DC.323B2F70
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable



I do not know if firewire is working, but i got a adaptec usb 2.0 pci =
card
succesfully working with usb harddisks.

Some hints how to do it is in the attached file.

Regards,

andreas


-----Urspr=FCngliche Nachricht-----
Von: port-cobalt-owner@NetBSD.org [mailto:port-cobalt-owner@NetBSD.org] =
Im
Auftrag von Laurens Vets
Gesendet: Dienstag, 4. Mai 2004 18:38
An: port-cobalt@NetBSD.org
Betreff: Cube fileserver


Hi everybody,

I've just acquired my first Cube and I would like to 'upgrade' the=20
harddisks as described by Shon and his gigaCube project.=20
(http://www.shon.org/qube/).  Seen the fact that 240GB storage will=20
probably be not enough someday ;-), I was wondering whether it would be=20
possible to use a firewire controller in the free pci slot (thus using=20
only one harddrive instead of the 2 on Shon's project) and use that for=20
extra external storage.
Is this possible?

Best regards,
Laurens V.

------=_NextPart_000_0028_01C432DC.323B2F70
Content-Type: text/plain;
	name="Qube2 NetBSD-current install.txt"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="Qube2 NetBSD-current install.txt"

HOWTO install NetBSD-current on a Cobalt Qube2


I'm not native english speaker so sorry for the "writing style"

Version 0.1	02.02.2004 Andreas Fuchs, fox@tcnet.ch

		speciall thank to Dennis Chernoivanov for the great
		recovery cd image


This guide describes in short steps how i did an upgrade from a running =
NetBSD 1.6.1 to NetBSD-current
(actually it's all in here: =
http://www.netbsd.org/Documentation/current/)

- move the 1.6.1 source if you have any
	mv /usr/src /usr/src.1.6.1

- Download everything from:
	ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/tar_files/src/
  to:
	/usr

- unzip/untar all the tar.gz files

- build the toolchain (~4h on a Qube2)
	cd /usr/src && ./build.sh tools

- edit your kernel config
	cd /usr/src/sys/arch/cobalt/conf
	cp GENERIC MYKERNEL
	edit MYKERNEL

  if you have no idea what to edit here, then you are maybe following =
the wrong guide

- compile the new kernel
	cd /usr/src && ./build.sh kernel=3DMYKERNEL

- install the new kernel
	mv /netbsd /netbsd.old && cp =
/sys/arch/cobalt/compile/obj/MYKERNEL/netbsd /

- reboot

If the system boot's you have succesfully compiled a -current kernel, go =
ahead now to install the other updated programs and do the finetuning on =
your kernel

- to install the -current userland
	cd /usr/src
	./build.sh distrbution
	./build.sh install=3D/

- for the panel to run
	/dev/MAKEDEV panel
	rm /dev/lcd
	ln -s /dev/panel0 /dev/lcd

	test with:
	echo "i am a qube" > /dev/lcd

	you can use paneld now if you wish, on my qube paneld is using alot of =
resources so i do not start it



There is allot to patch and do to get USB support via a PCI card

- for USB support change
	- /sys/arch/cobalt/conf/files.cobalt
	add
	 include "dev/usb/files.usb"
	 include "dev/ieee1394/files.ieee1394"
	at the end

	then add the following to MYKERNEL
=09
options         USBVERBOSE      # verbose USB device autoconfig messages

# USB Controller and Devices

# PCI USB controllers
# The EHCI is not ready for prime time.
#ehci*  at pci? dev ? function ?        # Enhanced Host Controller
ohci*   at pci? dev ? function ?        # Open Host Controller
uhci*   at pci? dev ? function ?        # Universal Host Controller =
(Intel)

# CardBus USB controllers
#ehci*  at cardbus? dev ? function ?    # Enhanced Host Controller
#ohci*  at cardbus? dev ? function ?    # Open Host Controller

# USB bus support
#usb*   at ehci?
usb*    at ohci?
usb*    at uhci?

# USB Hubs
uhub*   at usb?
uhub*   at uhub? port ? configuration ? interface ?

# USB Generic driver
ugen*   at uhub? port ?

# USB Mass Storage
umass*  at uhub? port ? configuration ? interface ?
scsibus* at umass?


- patch the following files


- run also
	sh /dev/MAKEDEV minimal
	sh /dev/MAKEDEV scsibus


- to get a usb disk to work which has already a windows partition (i'm =
using a Maxtor OneTouch 120GB disk)
	connect the disk, you should see a message that the disk is recognised =
and=20
	that there is a scsi device (sd0) created.

and=09

- to get a memory key to work (which has already a windows partition)
	insert the key, you should see some meassages that the key is =
recognised by umass as scsdisk and finally as sd0
	if there is a dos partion on the stick i had to:

	disklabel -e -I sd0

	and edit on the second line (device e) the fstype from unused to MSDOS

	then mount the partition with:

	mount /dev/sd0e /mnt







------=_NextPart_000_0028_01C432DC.323B2F70--