Re: Sarge on OldWorld Mac - No root device

2004-09-28 Thread Christoph Hellwig
On Mon, Sep 27, 2004 at 04:40:16PM -0400, Joey Hess wrote:
 Rick Thomas wrote:
  I've submitted several bug reports on this topic.  The developers 
  know about it, and may fix it sometime.  It's not as easy to fix as 
  it sounds, because the mesh controller is not on the regular PCI 
  bus, so the normal hardware discovery programs never get a chance 
  to see it.
 
 As far as I can tell, it's fixed in an as-yet unreleased version of
 hw-detect:
 
 - mac-io bus detection improvements:
   + Detect mesh SCSI controller (closes: #269655, #271419).
   + Detect mace Ethernet controller.
   + Detect mac53c94 SCSI controller.
   + Detect therm_adt746x and therm_windtunnel fan controllers, although
 only post-reboot for now since those modules aren't in
 linux-kernel-di-powerpc-*.
   + Cope with /proc/device-tree/aliases/mac-io pointing to a symlink.

Note that there's a patch on lkml that adds device tables ala
pci,usb,etc.. for macio.  But that's probably useless for you as you'd
want to support 2.4 aswell?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Sarge on OldWorld Mac - No root device

2004-09-28 Thread Rick Thomas
I'd be perfectly happy (personally) if it only worked in 2.6.  
However, I believe that Sarge d-i has, as one of it's goals, to 
support both 2.4 and 2.6.  Does anybody else on the list know for 
sure?

Rick
On Tuesday, September 28, 2004, at 06:21 AM, Christoph Hellwig wrote:
On Mon, Sep 27, 2004 at 04:40:16PM -0400, Joey Hess wrote:
Rick Thomas wrote:
I've submitted several bug reports on this topic.  The developers
know about it, and may fix it sometime.  It's not as easy to fix as
it sounds, because the mesh controller is not on the regular PCI
bus, so the normal hardware discovery programs never get a chance
to see it.
As far as I can tell, it's fixed in an as-yet unreleased version of
hw-detect:
- mac-io bus detection improvements:
  + Detect mesh SCSI controller (closes: #269655, #271419).
  + Detect mace Ethernet controller.
  + Detect mac53c94 SCSI controller.
  + Detect therm_adt746x and therm_windtunnel fan 
controllers, although
only post-reboot for now since those modules aren't in
linux-kernel-di-powerpc-*.
  + Cope with /proc/device-tree/aliases/mac-io pointing to a 
symlink.
Note that there's a patch on lkml that adds device tables ala
pci,usb,etc.. for macio.  But that's probably useless for you as you'd
want to support 2.4 aswell?

I'd be perfectly happy (personally) if it only worked in 2.6.  
However, I believe that Sarge d-i has, as one of it's goals, to 
support both 2.4 and 2.6 on PowerPC architecture.  Does anybody 
else on the list know for sure?

Rick

--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: Sarge on OldWorld Mac - No root device

2004-09-28 Thread Colin Watson
On Tue, Sep 28, 2004 at 01:27:57PM -0400, Rick Thomas wrote:
 On Tuesday, September 28, 2004, at 06:21 AM, Christoph Hellwig wrote:
 On Mon, Sep 27, 2004 at 04:40:16PM -0400, Joey Hess wrote:
 As far as I can tell, it's fixed in an as-yet unreleased version of
 hw-detect:
 
 - mac-io bus detection improvements:
   + Detect mesh SCSI controller (closes: #269655, #271419).
   + Detect mace Ethernet controller.
   + Detect mac53c94 SCSI controller.
   + Detect therm_adt746x and therm_windtunnel fan 
 controllers, although
 only post-reboot for now since those modules aren't in
 linux-kernel-di-powerpc-*.
   + Cope with /proc/device-tree/aliases/mac-io pointing to a 
 symlink.
 
 Note that there's a patch on lkml that adds device tables ala
 pci,usb,etc.. for macio.  But that's probably useless for you as you'd
 want to support 2.4 aswell?
 
 I'd be perfectly happy (personally) if it only worked in 2.6.  
 However, I believe that Sarge d-i has, as one of it's goals, to 
 support both 2.4 and 2.6 on PowerPC architecture.  Does anybody 
 else on the list know for sure?

Yes. In any case, the hw-detect patch has already been uploaded so the
discussion is moot, although mac-io device tables would certainly be
very nice to have post-sarge so that we don't have to kludge
/etc/modules and can rely on hotplug instead.

-- 
Colin Watson   [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Sarge on OldWorld Mac - No root device

2004-09-27 Thread Joey Hess
Rick Thomas wrote:
 I've submitted several bug reports on this topic.  The developers 
 know about it, and may fix it sometime.  It's not as easy to fix as 
 it sounds, because the mesh controller is not on the regular PCI 
 bus, so the normal hardware discovery programs never get a chance 
 to see it.

As far as I can tell, it's fixed in an as-yet unreleased version of
hw-detect:

- mac-io bus detection improvements:
  + Detect mesh SCSI controller (closes: #269655, #271419).
  + Detect mace Ethernet controller.
  + Detect mac53c94 SCSI controller.
  + Detect therm_adt746x and therm_windtunnel fan controllers, although
only post-reboot for now since those modules aren't in
linux-kernel-di-powerpc-*.
  + Cope with /proc/device-tree/aliases/mac-io pointing to a symlink.

-- 
see shy jo


signature.asc
Description: Digital signature


Re: Sarge on OldWorld Mac - No root device

2004-09-27 Thread Rick Thomas
On Monday, September 27, 2004, at 04:40 PM, Joey Hess wrote:
Rick Thomas wrote:
I've submitted several bug reports on this topic.  The developers
know about it, and may fix it sometime.  It's not as easy to fix as
it sounds, because the mesh controller is not on the regular PCI
bus, so the normal hardware discovery programs never get a chance
to see it.
As far as I can tell, it's fixed in an as-yet unreleased version of
hw-detect:
- mac-io bus detection improvements:
  + Detect mesh SCSI controller (closes: #269655, #271419).
  + Detect mace Ethernet controller.
  + Detect mac53c94 SCSI controller.
  + Detect therm_adt746x and therm_windtunnel fan controllers, 
although
only post-reboot for now since those modules aren't in
linux-kernel-di-powerpc-*.
  + Cope with /proc/device-tree/aliases/mac-io pointing to a 
symlink.

Thanks Joey!
When can we expect to see it in our friendly neighborhood daily 
CD or boot-floppy?

Enjoy!
Rick
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: Sarge on OldWorld Mac - No root device

2004-09-26 Thread Rick Thomas
Hi Duane,
Did you install a 2.6 or 2.4 kernel?  The 2.6 kernel requires an 
initial ramdisk.  The 2.4 kernel (usually) does not.

The kernel installer leaves a kernel and a tailored initrd in the 
/boot partition.  You need to copy them into the appropriate places 
inside the MacOS System folder on your HFS partition.

The way I do this is to go to the alt-F2 console after the new 
kernel has been installed and just before it reboots. Then I do the 
following:

	modprobe hfs # (see note 1)
	mkdir /MacOS
	mount -t hfs /dev/discs/disc0/part6 /MacOS # (see note 2)
	ls -l /MacOS # (to make sure you've got the right partition mounted!)
	cp /target/boot/vmlinux /MacOS/System\ Folder/Linux\ Kernels/ # 
(see note 3)
	cp /target/boot/initrd.img /MacOS/System\ Folder/Linux\ 
Ramdisks/  # (see note 3)
	sync
	umount /MacOS

Then switch back to the alt-F1 console and allow the reboot to  
proceed.  This will land you in MacOS with BootX running.  You will 
need to modify the various options to make it pick your new kernel 
and initrd.

Don't worry about the fact that choosing an initrd will take away 
the option to tell it where your root partition is:  The initrd 
that was prepared for you by the kernel install stuff has the right 
code to switch to your real root partition once it has loaded the 
necessary modules, etc.  You just have to point BootX at it and it 
does the rest.


	note 1: You can use hfsplus in place of hfs, if your MacOS 
partition is HFSplus.  I use HFS, personally, because I feel like 
the Linux HFSplus module is still fairly new and untested.  But I'm 
old and paranoid.  You may be braver.

	note 2: The installer uses devfs (I think that's the right 
word) device names.  You need to figure out which partition has 
your MacOS system on it, and use that in place of 
/dev//part6. Shell auto-completion is your friend here!

	note 3: BootX gives you a variety of places to put your kernels 
and initial ramdisk images.  I've used the folder-names that I 
chose when I was getting started.  You should use your own choice, 
of course.

Enjoy!
Rick
On Sunday, September 26, 2004, at 12:28 AM, Duane Cottle wrote:
I successfully installed Sarge using this week's iso CD. I used 
BootX to
access it, as the box won't boot from the CD. After the installation, I
deselected the ramdisk according to README and set root to /dev/hda7
likewise. I get kernel panic and no root error. When I use the
ramdisk, the installer begins again.

Has anyone seen this? I prefer BootX over miboot, and yaboot is not an
option on OldWorlds AFAICT.
Thanks for any advice.
Cheers,
Duane
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact 
[EMAIL PROTECTED]


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]


Re: Sarge on OldWorld Mac - No root device

2004-09-26 Thread Rick Thomas
On Sunday, September 26, 2004, at 08:34 AM, Duane Cottle wrote:
I'm going to start another thread concerning the fact that my scsi
hard drive wasn't detected during the entire installation.
You probably have a mesh SCSI controller. Almost all OldWorld 
Apple machines had them.

Early on in the installation process -- before the disk/hardware 
discovery phase, switch to the F2 console and type

modprobe mesh
Then, just before the reboot, switch to the F2 console again, and 
add the line
	mesh
to the /target/etc/modules file.

I've submitted several bug reports on this topic.  The developers 
know about it, and may fix it sometime.  It's not as easy to fix as 
it sounds, because the mesh controller is not on the regular PCI 
bus, so the normal hardware discovery programs never get a chance 
to see it.

Enjoy!
Rick
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]