1 |
Hi, |
2 |
|
3 |
The livecd works like this: |
4 |
|
5 |
1. bootloader loads kernel and passes initrd location as an argument |
6 |
2. kernel loads initrd and launches the /linuxrc script inside the |
7 |
initrd |
8 |
3. the linuxrc script loads some modules, searches for the cdrom and |
9 |
looks for the live environment on the disc (that thing is called |
10 |
livecd.gcloop). If found it continues loading it, if not, it fails |
11 |
horribly. |
12 |
|
13 |
In cases where the livcd fails horribly one can pass the debug |
14 |
argument. The debug argument halts the process I described above right |
15 |
before the /linuxrc start loading modules. |
16 |
The idea is to give the user a shell in which he/she can examine what |
17 |
goes wrong, load extra modules, ... |
18 |
|
19 |
Now, on to your email: |
20 |
|
21 |
On 09 Apr 2004, at 15:23, Patrick Tisdale wrote: |
22 |
|
23 |
> ok...when i booted using the debug argument, it went to the debug |
24 |
> shell, |
25 |
> which i don't really know what to do with. |
26 |
|
27 |
you can use it to debug the livecd. Could you try and mount the cdrom |
28 |
drive in this shell and send me the steps your computer needs to |
29 |
successfully mount the cd. |
30 |
|
31 |
modprobe the necessary modules |
32 |
|
33 |
cd /lib/modules/2.6.5_rc2-benh1-G4/kernel/ |
34 |
|
35 |
insmod ./drivers/scsi/sr_mod.ko |
36 |
insmod ./drivers/scsi/ide-scsi.ko |
37 |
insmod ./drivers/fs/binfmt_misc.ko |
38 |
insmod ./drivers/fs/isofs/isofs.ko |
39 |
insmod ./drivers/fs/nls/nls_iso8859-1.ko |
40 |
|
41 |
These driver should be enough for most cdroms to show up in |
42 |
/dev/cdroms/ and be mountable. (check if you can mount it and see if |
43 |
there's a livecd.gcloop on the cdrom) |
44 |
If you know that your cdrom does not show up under /dev/cdroms/ (maybe |
45 |
it's a very old cdrom drive?) |
46 |
Get me the correct location, and any drivers beside those listed above |
47 |
needed to continue. If this is the only issue, to get the cd bootable |
48 |
you'll have to pass an extra argument to the kernel |
49 |
(bootfrom=/dev/yourcdromdevice) and boot using the debug parameter. In |
50 |
the shell just insmod the needed drivers again, and type exit. The boot |
51 |
process will continue booting from the correct device. If you didn't |
52 |
need extra drivers loaded, you do not need to pass the debug argument. |
53 |
|
54 |
> so i typed exit, and it did |
55 |
> it's thing, except instead of booting from the cd, it tried to boot |
56 |
> yellowdog, which is what i currently have on the hd. |
57 |
|
58 |
The livecd only touches /dev/cdroms. The only way this could have |
59 |
booted yellowdog is that if you have two cddrives and have a ydl disc |
60 |
in the second drive. My guess is that the livecd crashed horribly |
61 |
because it didn't find the cdrom, and rebooted, booting your YDL. |
62 |
|
63 |
> when i boot w/out the debug argument, it promptly shuts down after the |
64 |
> "arch: exit" line. |
65 |
|
66 |
Could you send me the lines before it. This points in the direction of |
67 |
a cdrom that could not be mounted (because it needs a special |
68 |
driver,...) |
69 |
|
70 |
> and now when i try to boot w/the debug argument, it also shutsdown |
71 |
> after |
72 |
> the "arch: exit" line. seems to me like it's not realizing that i want |
73 |
> to boot from cd...or it can't initilize the cd-rom, so it moves on the |
74 |
> the hard disk...i dunno. i haven't had any problems w/the cdrom drive |
75 |
> in yellowdog or os9, and i checked it in a g4, and it booted from it no |
76 |
> prob. |
77 |
|
78 |
> any ideas? |
79 |
|
80 |
Probably a missing driver. Could you get me the output of 'lsmod' on |
81 |
your YDL, when you've mounted a cdrom? |
82 |
|
83 |
Best regards, |
84 |
|
85 |
Pieter |
86 |
|
87 |
> patrick |
88 |
> |
89 |
> On Thu, 2004-04-08 at 17:42, Pieter Van den Abeele wrote: |
90 |
>> The following extra boot arguments are relevant for oldworld systems: |
91 |
>> |
92 |
>> debug (enables debugging mode (spawns an initrd shell in which you're |
93 |
>> able to modprobe extra modules etc)) |
94 |
>> sleep=X (allows the cdrom to spin up for X seconds before trying to |
95 |
>> mount it). |
96 |
>> |
97 |
>> Best regards, |
98 |
>> |
99 |
>> Pieter Van den Abeele |
100 |
>> |
101 |
>> On 08 Apr 2004, at 21:15, Eric Olinger wrote: |
102 |
>> |
103 |
>>> On Thu, 08 Apr 2004 13:59:26 -0500 |
104 |
>>> Patrick Tisdale <ptisdale@×××××××××.com> wrote: |
105 |
>>> |
106 |
>>>> can someone explain to me or point me to a howto that deals |
107 |
>>>> w/booting |
108 |
>>>> to the 2004.0 universal cd using bootx. i have a pb3400c |
109 |
>>>> w/yellowdog |
110 |
>>>> on it, and i want to install gentoo instead. all the info i've seen |
111 |
>>>> says to copy vmlinux and livecd.img from the cd into the system |
112 |
>>>> folder...i don't have a vmlinux on the cd. i also don't have an |
113 |
>>>> livecd.img on the cd. i do have a livecd.gcloop. i assume the info |
114 |
>>>> i've read is for older versions of gentoo, and something has changed |
115 |
>>>> w/2004.0. btw, this is my first gentoo install. |
116 |
>>> You need to copy the kernel to use (for the 2004.0 cd use the G4 |
117 |
>>> kernel) |
118 |
>>> and the initrd.img.gz to the /System Folder/Linux Kernels/ then |
119 |
>>> install |
120 |
>>> BootX and run the BootX App or reboot. You need to Select the initrd |
121 |
>>> under the ramdisk image in the options section and make sure the |
122 |
>>> ramdisk |
123 |
>>> size is over 32000. IIRC, for the arguments set (but this is off the |
124 |
>>> top of my head): |
125 |
>>> rw init=/linuxrc looptype=gcloop cdroot |
126 |
>>> |
127 |
>>> Thats the general steps for booting the livecd with BootX. I'm |
128 |
>>> testing |
129 |
>>> some instructions for booting the livecd on OldWorld Macs with BootX |
130 |
>>> to |
131 |
>>> be add to the handbook sometime. I should be posting them to Bug |
132 |
>>> #46534 |
133 |
>>> on bugs.g.o sometime today, hopefully. |
134 |
>>> |
135 |
>>> -- |
136 |
>>> Eric Olinger |
137 |
>>> |
138 |
>>> Public Key: |
139 |
>>> http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xF90FBBC1 |
140 |
>>> Key fingerprint: B678 9E22 1161 51CF 6664 7591 6767 5BDB F90F BBC1 |
141 |
>>> |
142 |
>>> Give a man a password, he'll log in for a day. Teach him to code, and |
143 |
>>> he |
144 |
>>> will hack his way in... |
145 |
>> |
146 |
>> |
147 |
>> -- |
148 |
>> gentoo-ppc-user@g.o mailing list |
149 |
>> |
150 |
> |
151 |
> -- |
152 |
> gentoo-ppc-user@g.o mailing list |
153 |
> |
154 |
|
155 |
|
156 |
-- |
157 |
gentoo-ppc-user@g.o mailing list |