Subject: RE: Problems building/booting custom kernel
To: None <port-cobalt@NetBSD.org>
From: Andreas Fuchs <fox@tcnet.ch>
List: port-cobalt
Date: 02/09/2004 21:30:05
This is a multi-part message in MIME format.

------=_NextPart_000_0040_01C3EF53.E2436EE0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

where do you copy you're kernel to?

if u used the restore cd from:
ftp://ftp.netbsd.org/pub/NetBSD/arch/cobalt/restore-cd/1.6.1
you have a new bootloader where you have to copy the kernel to /

if you wanna compile 1.6.1 stable get:
ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-1.6.1/source/sets/syssrc.tgz
if you wanna comile -current get all in:
ftp://ftp.netbsd.org/pub/NetBSD/NetBSD-current/tar_files/src/

attached is a cookbook for getting current to work.

regards,

Andreas


------=_NextPart_000_0040_01C3EF53.E2436EE0
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

- 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? channel ?


	- then compile new kernel
=09

- for PCI support (here a PCI USB card)


------=_NextPart_000_0040_01C3EF53.E2436EE0--