new powermac pb : no hard disk found

12 messages, 4 authors, 2002-10-21 · open the first message on its own page

new powermac pb : no hard disk found

From: Xavier Grave <hidden>
Date: 2002-10-18 09:38:34

Hi,

I've received the new bi processor (2*1GHz) and I try to boot with a debian
CDrom. I boot in the install24 yaboot mode but the only ide device found is
the DVD writer.

What do I need to do ?

Thanks in advance for any answer...
xavier

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: new powermac pb : no hard disk found

From: "Benjamin Herrenschmidt" <benh@kernel.crashing.org>
Date: 2002-10-18 12:07:10

I've received the new bi processor (2*1GHz) and I try to boot with a debian
CDrom. I boot in the install24 yaboot mode but the only ide device found is
the DVD writer.

What do I need to do ?

Thanks in advance for any answer...
xavier
Put your hard disk on the ATA/66 bus, the ATA/100 one isn't supported
yet. You should also make sure you are using my latest kernel tree.

In order to get the ATA/100 working properly, I need to figure out
the way the various timings are configured on this new controller,
I've started disassembling the MacOS X driver but didn't finish yet.

Unfortunately, unlike the Apple's ATA/66 and earlier IDE controllers,
the source code for this new ones's driver haven't been open sourced
by Apple as part of Darwin. (At least not yet).

Ben.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

install with Debian CD ok, but can't boot any kernel

From: Xavier Grave <hidden>
Date: 2002-10-18 16:08:05

Hi,

Now that I can see the hard disk I can do all the steps to install the debian
except the last one. I'm using the woody CD. the yaboot step seems to create
a good yaboot.conf file in /target/etc but the only thing I have is a blank
screen.

Any idea ?

xavier

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: install with Debian CD ok, but can't boot any kernel

From: "Benjamin Herrenschmidt" <benh@kernel.crashing.org>
Date: 2002-10-18 18:35:05

Now that I can see the hard disk I can do all the steps to install the
debian
except the last one. I'm using the woody CD. the yaboot step seems to create
a good yaboot.conf file in /target/etc but the only thing I have is a blank
screen.

Any idea ?
I'm not too sure right now, I suspect the yaboot installer isn't
properly setting up the OF path for the kernel or yaboot itself
(it's probably doing hd: which is wrong as OF thinks this is
the ATA/100, at least that's my understanding of the situation).

What I would do as a workaround (until something better is found)
is to put yourself yaboot, the kernel and a yaboot.conf file
on an HFS (or HFS plus) partition, edit that yaboot.conf so
that it just loads the kernel next to it with "image=vmlinux",
then, from OF console (enter it manually), boot that yaboot.

You may have to type the whole path to the ATA/66 disk in
OF instead of "hd", which is something like
"/pci@f2000000/mac-io/ata-4" or maybe with an additional
pci-bridge in between. To see the actual nodes in OF, type
"dev /" then "ls". To see the "shortcuts" (aliases), do
"dev /aliases" then ".properties"

Ben.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: install with Debian CD ok, but can't boot any kernel

From: Ethan Benson <hidden>
Date: 2002-10-18 18:47:53

On Fri, Oct 18, 2002 at 06:08:05PM +0200, Xavier Grave wrote:
Now that I can see the hard disk I can do all the steps to install the debian
except the last one. I'm using the woody CD. the yaboot step seems to create
a good yaboot.conf file in /target/etc but the only thing I have is a blank
screen.
at the boot: prompt press tab

you will see the label name for the installed kernel, type it and:

video=ofonly

then hit enter.

--
Ethan Benson
http://www.alaska.net/~erbenson/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: install with Debian CD ok, but can't boot any kernel

From: Ethan Benson <hidden>
Date: 2002-10-18 18:50:53

On Fri, Oct 18, 2002 at 08:35:05PM +0200, Benjamin Herrenschmidt wrote:
quoted
Now that I can see the hard disk I can do all the steps to install the
debian
quoted
except the last one. I'm using the woody CD. the yaboot step seems to create
a good yaboot.conf file in /target/etc but the only thing I have is a blank
screen.
I'm not too sure right now, I suspect the yaboot installer isn't
properly setting up the OF path for the kernel or yaboot itself
(it's probably doing hd: which is wrong as OF thinks this is
the ATA/100, at least that's my understanding of the situation).

What I would do as a workaround (until something better is found)
is to put yourself yaboot, the kernel and a yaboot.conf file
on an HFS (or HFS plus) partition, edit that yaboot.conf so
that it just loads the kernel next to it with "image=vmlinux",
then, from OF console (enter it manually), boot that yaboot.
why do that, just boot yaboot manually if thats what happened.

its already there.

or boot the cd, mount root on /target edit /target/etc/yaboot.conf
(adding ofboot=<ofdevicename> if necessary) and
run chroot /target ybin
You may have to type the whole path to the ATA/66 disk in
OF instead of "hd", which is something like
"/pci@f2000000/mac-io/ata-4" or maybe with an additional
pci-bridge in between. To see the actual nodes in OF, type
"dev /" then "ls". To see the "shortcuts" (aliases), do
"dev /aliases" then ".properties"
if someone would send me device-trees for this model i could fix
ofpath.

--
Ethan Benson
http://www.alaska.net/~erbenson/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: install with Debian CD ok, but can't boot any kernel

From: "Benjamin Herrenschmidt" <benh@kernel.crashing.org>
Date: 2002-10-18 22:55:28

why do that, just boot yaboot manually if thats what happened.

its already there.
Ok, I'm not sure what happened to him exactly, it may well
be a video problem in which case your suggestion of using
ofonly video is correct.
if someone would send me device-trees for this model i could fix
ofpath.
I'll get one rsn. Note that in order to make that better, I've
just added to my tree a proc entry for ide-pmac. It appears
under /proc/ide/pmac, and shows, for each interface driven by
this driver, the full OF path (among others). I still need to
do something for PCI based controllers (like Promise) though.

An example of output on my tipb:

ide0 (KeyLargo ATA-4)
  of_path  : /pci@f2000000/mac-io@17/ata-4@1f000
  bus-id   : 2
  cable    : 80 connector
ide1 (KeyLargo ATA-3)
  of_path  : /pci@f2000000/mac-io@17/ata-3@20000
  bus-id   : 0
  cable    : 40 connector
ide2 (KeyLargo ATA-3)
  of_path  : /pci@f2000000/mac-io@17/ata-3@21000
  bus-id   : 1
  cable    : 40 connector

(the algorithm to go from hdX to ideY is basically
(X - 'a') / 2, then remainder beeing the OF unit number
(0 for master, 1 for slave).

Ben.


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: install with Debian CD ok, but can't boot any kernel

From: Segher Boessenkool <hidden>
Date: 2002-10-19 03:35:02

You may have to type the whole path to the ATA/66 disk in
OF instead of "hd", which is something like
"/pci@f2000000/mac-io/ata-4" or maybe with an additional
pci-bridge in between. To see the actual nodes in OF, type
"dev /" then "ls". To see the "shortcuts" (aliases), do
"dev /aliases" then ".properties"
The alias for the ata-4 disks are ultra2 and ultra3; the aliases
for the ata-6 disks are ultra0 and ultra1 (hd is the same as ultra0).

So you want ultra2.


Cheers,

Segher


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: install with Debian CD ok, but can't boot any kernel

From: Ethan Benson <hidden>
Date: 2002-10-19 07:15:51

On Sat, Oct 19, 2002 at 05:35:02AM +0200, Segher Boessenkool wrote:
quoted
You may have to type the whole path to the ATA/66 disk in
OF instead of "hd", which is something like
"/pci@f2000000/mac-io/ata-4" or maybe with an additional
pci-bridge in between. To see the actual nodes in OF, type
"dev /" then "ls". To see the "shortcuts" (aliases), do
"dev /aliases" then ".properties"
The alias for the ata-4 disks are ultra2 and ultra3; the aliases
for the ata-6 disks are ultra0 and ultra1 (hd is the same as ultra0).

So you want ultra2.
so if yaboot doesn't get booted (it should, apples boot-command goes
looking for bootable partitions if boot-device is bogus, so yaboot
should be found anyway) boot ultra2:2,\yaboot

once in yaboot enter:

ultra2:3,/vmlinux root=/dev/hda3 ro

that assumes the bootstrap partition is 2 and root 3.

--
Ethan Benson
http://www.alaska.net/~erbenson/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: install with Debian CD ok, but can't boot any kernel

From: Xavier Grave <hidden>
Date: 2002-10-21 08:31:16

Hi !

If I do this everithings goes right !
boot ultra2:2,\yaboot
once in yaboot enter:

ultra2:3,/vmlinux root=/dev/hda3 ro
ultra2:4,/vmlinux root=/dev/hda4 ro
that assumes the bootstrap partition is 2 and root 3.
my bootstrap partition is 2 and root is 4 (the third one is swap)

Thanks !

xavier, a happy mac linux addict...


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: install with Debian CD ok, but can't boot any kernel

From: Ethan Benson <hidden>
Date: 2002-10-21 08:42:33

On Mon, Oct 21, 2002 at 10:31:16AM +0200, Xavier Grave wrote:
Hi !

If I do this everithings goes right !
quoted
boot ultra2:2,\yaboot
quoted
once in yaboot enter:

ultra2:3,/vmlinux root=/dev/hda3 ro
ultra2:4,/vmlinux root=/dev/hda4 ro
quoted
that assumes the bootstrap partition is 2 and root 3.
my bootstrap partition is 2 and root is 4 (the third one is swap)

Thanks !
no problem.  see you don't need macos to fix a goobered yaboot.conf.
xavier, a happy mac linux addict...
until i get ofpath fixed you can add:

ofboot=ultra2:
device=ultra2:

to /etc/yaboot.conf, after ofpath is fixed you can remove the ofboot=
line.  rerun ybin and things will work fine without manual fsckery.

--
Ethan Benson
http://www.alaska.net/~erbenson/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

Re: install with Debian CD ok, but can't boot any kernel

From: Ethan Benson <hidden>
Date: 2002-10-21 09:02:04

On Mon, Oct 21, 2002 at 12:42:33AM -0800, Ethan Benson wrote:
until i get ofpath fixed you can add:

ofboot=ultra2:
er that should be:

ofboot=ultra2:2

--
Ethan Benson
http://www.alaska.net/~erbenson/

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help