[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: qube1 doesn't boot anymore



* Martin B?hr <mbaehr@email.archlab.tuwien.ac.at> [2006-03-22 20:09]:
> > netconsole.  CoLo has support for netconsole, and Linux too.  It's not
> > compiled into the Debian kernel though, but I can compile an image for
> > you.
> i think that would be useful for all qube/raq 1 users in general.
> (useful enough as a default even for etch?)

Okay, I have an image for you now.  I hope your friend knows how to
set up a NFS and DHCP server.

1.) download a few files, namely:
 - the netconsole client
 - a kernel with netconsole built-in
 - a version of CoLo with netconsole support (just in case the CoLo
   on your Qube is very old - shouldn't be the case though)

wget http://www.cyrius.com/debian/cobalt/colo/ncon.c
wget http://www.cyrius.com/debian/cobalt/colo/vmlinux-2.6.16-1-r5k-cobalt
wget http://www.cyrius.com/debian/cobalt/colo/vmlinux.gz


2.) Compile and start the client:

$ gcc -o ncon ncon.c
$ ./ncon 192.168.1.69
| Connect: 6666 --> 192.168.1.69:6665

| [[[  press CTRL-D to exit   ]]]

3.) Boot

Boot the Qube, and choose the last point in the menu ("Network
shell").  If there's no such point, setup a proper NFS server for
Cobalt according to http://www.cyrius.com/debian/cobalt/) and boot via
the network (left and right cursor key pressed at the same time).

You should then see output on the netconsole client, like this:

| netcon: 6665 --> 192.168.1.1:6666
| script exited <1>
| >

Okay, there's the prompt - now load the kernel via NFS:

> nfs {dhcp-next-server} {dhcp-root-path} vmlinux-2.6.16-1-r5k-cobalt
nfs: mounted "/nfsroot"
nfs: lookup "vmlinux-2.6.16-1-r5k-cobalt"
nfs: mode <0100644>
2553KB loaded (143KB/sec)
0027e524 2614564t
nfs: unmounted "/nfsroot"
>

And start it, telling it to use netconsole:

> execute root=/dev/hda2 netconsole=@192.168.1.69/eth0,6666@192.168.1.1/
[wait a bit, don't worry.  after about 20 seconds you should get output]
Linux version 2.6.16-1-r5k-cobalt (Debian 2.6.16-2) (tbm@cyrius.com) (gcc version 4.0.3 20060212 (prerelease)
(Debian 4.0.2-9)) #2 Thu Mar 23 23:32:22 UTC 2006
CPU revision is: 000028a0
FPU revision is: 000028a0
Cobalt board ID: 5
Determined physical RAM map:
 memory: 08000000 @ 00000000 (usable)
...

4.) Success/failure?

Tell us.


If your friend has any problems, he can ping me on IRC (tbm on OFTC
and Freenode).

Good luck!
-- 
Martin Michlmayr
http://www.cyrius.com/



Reply to: