Bug 374693

Summary: PPC Alpha-3 wont boot / Installer doesn't install boot-loader
Product: [openSUSE] openSUSE 11.0 Reporter: Forgotten User xI2C5NvggO <forgotten_xI2C5NvggO>
Component: KernelAssignee: Olaf Hering <ohering>
Status: RESOLVED FIXED QA Contact: Jiri Srain <jsrain>
Severity: Blocker    
Priority: P5 - None CC: jplack
Version: Alpha 3   
Target Milestone: ---   
Hardware: Macintosh   
OS: openSUSE 11.0   
Whiteboard:
Found By: Third Party Developer/Partner Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---
Attachments: yast log file from installation (see text #2)
yast log file #2 from installation (see text #2)
Complete YaST logs to remote machine during installation
YaST Bootloader crash
output of lsprop -R /proc/device-tree (see #20)
dmesg as requested in #28
getsysinfo output as requested by #28
YaST logs for installation stage 1

Description Forgotten User xI2C5NvggO 2008-03-28 08:04:22 UTC
Installation on PPC based iMAC (PPC740, 350MHz, 512M RAM) goes smoothly but won't boot.

Tried a number of times, with slightly different behaviour on occasions:

Sometimes, at the proposal stage of installation, under 'booting', YaST incorrectly states that the boot partition is NFS and refuses to install the boot-loader. This is easily missed as the proposal is accepted anyway and installation starts, even though the system will not be able to be booted (except by chain from install CD). 

Other times, 'booting' states that the boot loader will be installed but when YaST completes stage 1 and goes for re-boot, no boot manager is present. Again, system can be booted by chain from install CD.

Once booted, YaST boot manager can be started but immediately segfaults (either in X or curses mode).

Tried using an ex-iMac HD (with MAC partition table) and an ex-PC unit with a 'normal' partition table. Also tried using Apple's HD preparation tool (e.g. on an OS-9 install CD) to prep the disc, none of these made any difference.
Comment 1 Cyril Hrubis 2008-03-28 12:43:02 UTC
Please attach y2logs. If you are in doubt follow:

http://en.opensuse.org/Bugs/YaST

Thanks!
Comment 2 Forgotten User xI2C5NvggO 2008-03-28 14:43:38 UTC
Created attachment 204664 [details]
yast log file from installation (see text #2)
Comment 3 Forgotten User xI2C5NvggO 2008-03-28 14:44:07 UTC
Created attachment 204665 [details]
yast log file #2 from installation (see text #2)
Comment 4 Forgotten User xI2C5NvggO 2008-03-28 14:46:22 UTC
Sorry, meant to attach the logs anyway...

If these don't provide enough info, please advise and I will repeat installation while logging to remote file
Comment 5 Jozef Uhliarik 2008-03-31 08:00:57 UTC
Could you attach completed yast logs from installation please? 

There is just part of logs. :( I don't know to write what is wrong. I need for analyse completed yast logs.

I would like help you but I need relevant data. 

Please look at: http://en.opensuse.org/Installation_on_MacMini_(ppc) It could help you too. 
Comment 6 Forgotten User xI2C5NvggO 2008-03-31 11:37:11 UTC
I did wonder if those logs were enough. I've re-installed, with logging to another machine on teh network - please see attached.

Once more, machine restarts directly to OS-X without a boot loader. Holding down 'Alt' gets to Apple boot loader, Linux partition is visible and startable but crashes straight away.

Booting install CD and selecting 'install' tehn 'boot installed partioin' works fine.
Comment 7 Forgotten User xI2C5NvggO 2008-03-31 11:38:53 UTC
Created attachment 204955 [details]
Complete YaST logs to remote machine during installation
Comment 8 Forgotten User xI2C5NvggO 2008-03-31 13:11:48 UTC
Created attachment 204967 [details]
YaST Bootloader crash

As in #c1 above, YaST crashes when boot-loader selected:
Comment 9 Jozef Uhliarik 2008-03-31 15:07:16 UTC
Crashing of yast2-bootloader in Alpha3 is known problem. (bnc# 360646)
Comment 11 Forgotten User xI2C5NvggO 2008-04-01 09:06:48 UTC
Yes, that seems to be exactly the same - I thought it might be relevant to this (PPC boot) problem, but it seems it isn't.
Comment 12 Jozef Uhliarik 2008-04-02 14:55:52 UTC
Could you attach config file for Apple boot loader please?
Comment 13 Forgotten User xI2C5NvggO 2008-04-03 07:18:14 UTC
Sorry - I don't understand - please could you elaborate? Is this in /boot or in the unmounted partition (in which case, how to retrieve it? dd?) or /var/log/?? or ...?

Cheers
R.

Comment 14 Jozef Uhliarik 2008-04-04 15:12:29 UTC
Sorry for comment #12 
My opinion is that it is more coplicated problem. See bug #376310 (run mkzimage on PPC as part of installation, and after kernel upgrades)

if you agree that you have same problem you can close this bug like duplicate of 376310.

Bug #376310 includes also workaround. Please try it. thanks
Comment 15 Forgotten User xI2C5NvggO 2008-04-07 12:43:31 UTC
Tried the work-around mentioned, in a running system (i.e. not during installation). Maybe this is why the boot fails:

iMac:~ # mkzimage --initrd /boot/initrd --vmlinux /boot/vmlinux --output /boot/zImage
board_type NewWorld kernel_type 32bit zimage_sh make_zimage_pmac_newworld.sh
output file /boot//zImage is 2773200 bytes too large
booting from openfirmware prompt will not work
iMac:~ # 
Comment 16 Forgotten User xI2C5NvggO 2008-04-14 12:35:09 UTC
Have any of the developers got any comments to make about this problem?

It's a bit of a blocker on this platform!

Cheers, R.
Comment 17 Joachim Plack 2008-04-17 08:14:58 UTC
Various questions came up :
- Which partitioning did you select, on a mac you need a Mac partition
  table to be able to boot.
- can you send /etc/lilo.conf from your newly installed system
- could you send the output from a call to the 'lilo' in the shell

btw it looks like /dev/hda4 should be the boot device. Does it help if 
you change it manually in /etc/lilo.conf and call lilo after that?
Comment 18 Forgotten User xI2C5NvggO 2008-04-17 12:38:27 UTC
1. Yes, Partition table was created by Apple's HD preparation tool from an OS-9 install CD

2. 
iMac:~ # cat /etc/lilo.conf
# Modified by YaST2. Last modification on Mon Mar 31 05:30:09 UTC 2008
activate
timeout = 80
default = Linux
boot = /dev/hda6

image = /boot/vmlinux-2.6.25-rc5-git3-7-default
###Don't change this comment - YaST2 identifier: Original name: linux###
    label = Linux
    append = " quiet sysrq=1"
    initrd = /boot/initrd-2.6.25-rc5-git3-7-default
    root = /dev/disk/by-id/ata-WDC_WD100BB-75AUA1_WD-WMA6Y2104253-part5

image = /boot/vmlinux
###Don't change this comment - YaST2 identifier: Original name: linux###
    label = linux
    append = " quiet sysrq=1"
    initrd = /boot/initrd-2.6.25-rc5-git3-7-default
    root = /dev/disk/by-id/ata-WDC_WD100BB-75AUA1_WD-WMA6Y2104253-part5
iMac:~ # 

3.
iMac:~ # lilo
running on pmac_new
WARNING: No devspec file found for /sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.0001f000:ata-4/ide0/0.0
/bin/show_of_path.sh: line 634: vendor: No such file or directory
/bin/show_of_path.sh: line 636: device: No such file or directory
/bin/show_of_path.sh: line 638: subsystem_vendor: No such file or directory
/bin/show_of_path.sh: line 640: subsystem_device: No such file or directory
/bin/show_of_path.sh: line 686: /device_type: No such file or directory
grep: /*/device_type: No such file or directory
WARNING: No devspec file found for /sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.0001f000:ata-4/ide0/0.0
/bin/show_of_path.sh: line 634: vendor: No such file or directory
/bin/show_of_path.sh: line 636: device: No such file or directory
/bin/show_of_path.sh: line 638: subsystem_vendor: No such file or directory
/bin/show_of_path.sh: line 640: subsystem_device: No such file or directory
/bin/show_of_path.sh: line 686: /device_type: No such file or directory
grep: /*/device_type: No such file or directory
WARNING: No devspec file found for /sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.0001f000:ata-4/ide0/0.0
/bin/show_of_path.sh: line 634: vendor: No such file or directory
/bin/show_of_path.sh: line 636: device: No such file or directory
/bin/show_of_path.sh: line 638: subsystem_vendor: No such file or directory
/bin/show_of_path.sh: line 640: subsystem_device: No such file or directory
/bin/show_of_path.sh: line 686: /device_type: No such file or directory
grep: /*/device_type: No such file or directory
WARNING: No devspec file found for /sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.0001f000:ata-4/ide0/0.0
/bin/show_of_path.sh: line 634: vendor: No such file or directory
/bin/show_of_path.sh: line 636: device: No such file or directory
/bin/show_of_path.sh: line 638: subsystem_vendor: No such file or directory
/bin/show_of_path.sh: line 640: subsystem_device: No such file or directory
/bin/show_of_path.sh: line 686: /device_type: No such file or directory
grep: /*/device_type: No such file or directory
BOOT_DEVICEPATH  = &device;:&partition;
OTHER_DEVICEPATH =
Volume name is "Untitled"
Volume was created on Mon Mar 31 05:36:01 2008
Volume was last modified on Thu Apr  3 15:56:25 2008
Volume has 131461120 bytes free
Untitled:suseboot:
f  FNDR/MACS       286         0 Sep 14  1999 Finder
f  zsys/MACS    243673         0 May 25  2001 System
f  tbxi/chrp         0      2429 Apr 17 13:29 os-chooser
f  BINA/UNIX         0    385997 Apr 17 13:29 yaboot
f  TEXT/R*ch         0       451 Apr 17 13:29 yaboot.conf
WARNING: No devspec file found for /sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.0001f000:ata-4/ide0/0.0
/bin/show_of_path.sh: line 634: vendor: No such file or directory
/bin/show_of_path.sh: line 636: device: No such file or directory
/bin/show_of_path.sh: line 638: subsystem_vendor: No such file or directory
/bin/show_of_path.sh: line 640: subsystem_device: No such file or directory
/bin/show_of_path.sh: line 686: /device_type: No such file or directory
grep: /*/device_type: No such file or directory
set OF boot-device @0:6,\\:tbxi

4.
iMac:~ # vi /etc/lilo.conf
iMac:~ # lilo
running on pmac_new
WARNING: No devspec file found for /sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.0001f000:ata-4/ide0/0.0
/bin/show_of_path.sh: line 634: vendor: No such file or directory
/bin/show_of_path.sh: line 636: device: No such file or directory
/bin/show_of_path.sh: line 638: subsystem_vendor: No such file or directory
/bin/show_of_path.sh: line 640: subsystem_device: No such file or directory
/bin/show_of_path.sh: line 686: /device_type: No such file or directory
grep: /*/device_type: No such file or directory
WARNING: No devspec file found for /sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.0001f000:ata-4/ide0/0.0
/bin/show_of_path.sh: line 634: vendor: No such file or directory
/bin/show_of_path.sh: line 636: device: No such file or directory
/bin/show_of_path.sh: line 638: subsystem_vendor: No such file or directory
/bin/show_of_path.sh: line 640: subsystem_device: No such file or directory
/bin/show_of_path.sh: line 686: /device_type: No such file or directory
grep: /*/device_type: No such file or directory
WARNING: No devspec file found for /sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.0001f000:ata-4/ide0/0.0
/bin/show_of_path.sh: line 634: vendor: No such file or directory
/bin/show_of_path.sh: line 636: device: No such file or directory
/bin/show_of_path.sh: line 638: subsystem_vendor: No such file or directory
/bin/show_of_path.sh: line 640: subsystem_device: No such file or directory
/bin/show_of_path.sh: line 686: /device_type: No such file or directory
grep: /*/device_type: No such file or directory
WARNING: No devspec file found for /sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.0001f000:ata-4/ide0/0.0
/bin/show_of_path.sh: line 634: vendor: No such file or directory
/bin/show_of_path.sh: line 636: device: No such file or directory
/bin/show_of_path.sh: line 638: subsystem_vendor: No such file or directory
/bin/show_of_path.sh: line 640: subsystem_device: No such file or directory
/bin/show_of_path.sh: line 686: /device_type: No such file or directory
grep: /*/device_type: No such file or directory
BOOT_DEVICEPATH  = &device;:&partition;
OTHER_DEVICEPATH =
hmount: /dev/hda4: not a Macintosh HFS volume (Invalid argument)
Mounting of /dev/hda4 failed, trying again after formatting
Volume name is "SuSE Linux boot partition"
Volume was created on Thu Apr 17 13:30:56 2008
Volume was last modified on Thu Apr 17 13:30:56 2008
Volume has 8769536 bytes free
Volume name is "SuSE Linux boot partition"
Volume was created on Thu Apr 17 13:30:56 2008
Volume was last modified on Thu Apr 17 13:30:56 2008
Volume has 8769536 bytes free
SuSE Linux boot partition:suseboot:
f  FNDR/MACS       286         0 Sep 14  1999 Finder
f  zsys/MACS    243673         0 May 25  2001 System
f  tbxi/chrp         0      2429 Apr 17 13:30 os-chooser
f  BINA/UNIX         0    385997 Apr 17 13:30 yaboot
f  TEXT/R*ch         0       451 Apr 17 13:30 yaboot.conf
WARNING: No devspec file found for /sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.0001f000:ata-4/ide0/0.0
/bin/show_of_path.sh: line 634: vendor: No such file or directory
/bin/show_of_path.sh: line 636: device: No such file or directory
/bin/show_of_path.sh: line 638: subsystem_vendor: No such file or directory
/bin/show_of_path.sh: line 640: subsystem_device: No such file or directory
/bin/show_of_path.sh: line 686: /device_type: No such file or directory
grep: /*/device_type: No such file or directory
set OF boot-device @0:4,\\:tbxi
iMac:~ #   

also maybe useful:   
iMac:~ # vi /etc/lilo.conf  (edited "boot = /dev/hda6" to "boot = /dev/hda4"
iMac:~ # lilo
running on pmac_new
WARNING: No devspec file found for /sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.0001f000:ata-4/ide0/0.0
/bin/show_of_path.sh: line 634: vendor: No such file or directory
/bin/show_of_path.sh: line 636: device: No such file or directory
/bin/show_of_path.sh: line 638: subsystem_vendor: No such file or directory
/bin/show_of_path.sh: line 640: subsystem_device: No such file or directory
/bin/show_of_path.sh: line 686: /device_type: No such file or directory
grep: /*/device_type: No such file or directory
WARNING: No devspec file found for /sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.0001f000:ata-4/ide0/0.0
/bin/show_of_path.sh: line 634: vendor: No such file or directory
/bin/show_of_path.sh: line 636: device: No such file or directory
/bin/show_of_path.sh: line 638: subsystem_vendor: No such file or directory
/bin/show_of_path.sh: line 640: subsystem_device: No such file or directory
/bin/show_of_path.sh: line 686: /device_type: No such file or directory
grep: /*/device_type: No such file or directory
WARNING: No devspec file found for /sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.0001f000:ata-4/ide0/0.0
/bin/show_of_path.sh: line 634: vendor: No such file or directory
/bin/show_of_path.sh: line 636: device: No such file or directory
/bin/show_of_path.sh: line 638: subsystem_vendor: No such file or directory
/bin/show_of_path.sh: line 640: subsystem_device: No such file or directory
/bin/show_of_path.sh: line 686: /device_type: No such file or directory
grep: /*/device_type: No such file or directory
WARNING: No devspec file found for /sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.0001f000:ata-4/ide0/0.0
/bin/show_of_path.sh: line 634: vendor: No such file or directory
/bin/show_of_path.sh: line 636: device: No such file or directory
/bin/show_of_path.sh: line 638: subsystem_vendor: No such file or directory
/bin/show_of_path.sh: line 640: subsystem_device: No such file or directory
/bin/show_of_path.sh: line 686: /device_type: No such file or directory
grep: /*/device_type: No such file or directory
BOOT_DEVICEPATH  = &device;:&partition;
OTHER_DEVICEPATH =
hmount: /dev/hda4: not a Macintosh HFS volume (Invalid argument)
Mounting of /dev/hda4 failed, trying again after formatting
Volume name is "SuSE Linux boot partition"
Volume was created on Thu Apr 17 13:30:56 2008
Volume was last modified on Thu Apr 17 13:30:56 2008
Volume has 8769536 bytes free
Volume name is "SuSE Linux boot partition"
Volume was created on Thu Apr 17 13:30:56 2008
Volume was last modified on Thu Apr 17 13:30:56 2008
Volume has 8769536 bytes free
SuSE Linux boot partition:suseboot:
f  FNDR/MACS       286         0 Sep 14  1999 Finder
f  zsys/MACS    243673         0 May 25  2001 System
f  tbxi/chrp         0      2429 Apr 17 13:30 os-chooser
f  BINA/UNIX         0    385997 Apr 17 13:30 yaboot
f  TEXT/R*ch         0       451 Apr 17 13:30 yaboot.conf
WARNING: No devspec file found for /sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.0001f000:ata-4/ide0/0.0
/bin/show_of_path.sh: line 634: vendor: No such file or directory
/bin/show_of_path.sh: line 636: device: No such file or directory
/bin/show_of_path.sh: line 638: subsystem_vendor: No such file or directory
/bin/show_of_path.sh: line 640: subsystem_device: No such file or directory
/bin/show_of_path.sh: line 686: /device_type: No such file or directory
grep: /*/device_type: No such file or directory
set OF boot-device @0:4,\\:tbxi
iMac:~ #   
iMac:~ #
iMac:~ # pdisk -l

Partition map (with 512 byte blocks) on '/dev/hda'
 #:                type name                     length   base     ( size )
 1: Apple_partition_map 'Apple               '       63 @ 1
 2:     Apple_UNIX_SVR2 'swap                '  1071925 @ 9788016  (523.4M)
 3:           Apple_HFS 'Apple_HFS_Untitled_2'  9508400 @ 262208   (  4.5G)
 4:          Apple_Boot 'eXternal booter     '    17408 @ 9770608  (  8.5M)
 5:     Apple_UNIX_SVR2 'primary             '  8681147 @ 10859941 (  4.1G)
 6:           Apple_HFS 'Untitled            '   262144 @ 64       (128.0M)

Device block size=512, Number of Blocks=19541088 (9.3G)
DeviceType=0x0, DeviceId=0x0


Partition map (with 512 byte blocks) on '/dev/hdb'
 #:                type name                          length   base   ( size )
 1: Apple_partition_map 'Apple                      '      2 @ 1
 2:           Apple_HFS 'openSUSE-FACTORY-11.0#facto' 204668 @ 16     ( 99.9M)

Device block size=512, Number of Blocks=204684 (99.9M)
DeviceType=0x1, DeviceId=0x1

iMac:~ #    
Comment 19 Forgotten User xI2C5NvggO 2008-04-22 09:27:36 UTC
I just updated to Beta-1, bravely I allowed auto-configuration too! Now things are rather better:

System still boots to OS-X without offering a boot menu, unless ALT is held down to force one.

Then two indistinguishable Linux (i.e. penguin marked) icons are offered, along with a third for OS-X (the default)

Selecting teh left Linux one leads to a yaboot prompt, with 2 images offered for boot "linux" and "Linux". Both fail to load, the former reporting 'unable to parse @0...' and teh latter 'invalid device'

Selecting the rightmost boot-menu icon however successfully boots Linux!

Not sure what info I can give to help fix this final (?) problem?
Comment 20 Olaf Hering 2008-04-22 10:02:10 UTC
please attach the output of lsprop -R /proc/device-tree
Comment 21 Forgotten User xI2C5NvggO 2008-04-22 10:54:14 UTC
Created attachment 209533 [details]
output of lsprop -R /proc/device-tree (see #20)
Comment 22 Olaf Hering 2008-04-22 12:07:20 UTC
ok, its not clear whats in sysfs.
Please try the following, and paste the output:

cd /sys/block/hda/device
cd `pwd -P`
ls
cd ../..
ls
strings devspec
Comment 23 Forgotten User xI2C5NvggO 2008-04-22 12:30:45 UTC
Does this help?


iMac:~ # cd /sys/block/hda/device
iMac:/sys/block/hda/device # cd `pwd -P`
iMac:/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.0001f000:ata-4/ide0/0.0 # ls
block  drivename  driver  firmware  media  modalias  model  power  serial  subsystem  uevent
iMac:/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.0001f000:ata-4/ide0/0.0 # cd ../..
iMac:/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.0001f000:ata-4 # ls
compatible  driver  ide0  modalias  name  power  subsystem  type  uevent
iMac:/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.0001f000:ata-4 # strings devspec
strings: 'devspec': No such file
iMac:/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.0001f000:ata-4 #
iMac:/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.0001f000:ata-4 #      
Comment 24 Olaf Hering 2008-04-22 12:46:29 UTC
hmm, what devspec files are present?

find /sys -name devspec
Comment 25 Olaf Hering 2008-04-22 12:48:45 UTC
Also, did it ever work with older versions? Maybe the kernel does not create devspec files for some reasons. I dont have such an iMac model, only the 400mhz version.
Comment 26 Forgotten User xI2C5NvggO 2008-04-22 13:37:30 UTC
iMac:~ # find /sys -name devspec
/sys/devices/pci0000:00/0000:00:0b.0/devspec
/sys/devices/pci0000:00/0000:00:10.0/devspec
/sys/devices/pci0001:10/0001:10:0b.0/devspec
/sys/devices/pci0001:10/0001:10:13.0/devspec
/sys/devices/pci0001:10/0001:10:17.0/devspec
/sys/devices/pci0001:10/0001:10:18.0/devspec
/sys/devices/pci0001:10/0001:10:19.0/devspec
/sys/devices/pci0002:20/0002:20:0b.0/devspec

To answer #25 - I'm not sure, as I never managed a usable install. Maybe worth asking on opensuse-factory list, somebody like CzP maybe had more luck (or tenacity, anyway). Also, if I'm honest here, I have no idea what a devspec file is, anyway :-(
Comment 27 Forgotten User xI2C5NvggO 2008-04-22 13:39:07 UTC
Forgot to clear NEEDINFO flag, sorry for the noise.
Comment 28 Olaf Hering 2008-04-22 13:49:17 UTC
ok , thanks. looks like a kernel problem. devspec files are just pointers for the linux point of view to the openfirmware point of view.
Can you attach the full dmesg output and the getsysinfo output?

As a workaround, add the 'copy' option to lilo.conf. This will still not set boot-device correctly.
After the lilo call, run 'nvsetenv boot-device "hd:6,\\yaboot"'.
This is a workaround to get a bootable system.
Comment 29 Forgotten User xI2C5NvggO 2008-04-22 14:04:57 UTC
This might help too:

iMac:~ # find /sys -name devspec > temp; while read line; do echo -n "$line - "; strings "$line"; done < temp; rm temp
/sys/devices/pci0000:00/0000:00:0b.0/devspec - /pci@f0000000/uni-north-agp@b
/sys/devices/pci0000:00/0000:00:10.0/devspec - /pci@f0000000/ATY,Rage128k@10
/sys/devices/pci0001:10/0001:10:0b.0/devspec - /sys/devices/pci0001:10/0001:10:13.0/devspec - /pci@f2000000/ethernet@13
/sys/devices/pci0001:10/0001:10:17.0/devspec - /pci@f2000000/mac-io@17
/sys/devices/pci0001:10/0001:10:18.0/devspec - /pci@f2000000/usb@18
/sys/devices/pci0001:10/0001:10:19.0/devspec - /pci@f2000000/usb@19
/sys/devices/pci0002:20/0002:20:0b.0/devspec - iMac:~ #
iMac:~ #    

Attaching dmesg and getsysinfo too

Lilo output not encouraging:

iMac:~ # vi /etc/lilo.conf
iMac:~ # lilo
running on pmac_new
WARNING: No devspec file found for /sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.0001f000:ata-4/ide0/0.0
/bin/show_of_path.sh: line 634: vendor: No such file or directory
/bin/show_of_path.sh: line 636: device: No such file or directory
/bin/show_of_path.sh: line 638: subsystem_vendor: No such file or directory
/bin/show_of_path.sh: line 640: subsystem_device: No such file or directory
/bin/show_of_path.sh: line 686: /device_type: No such file or directory
grep: /*/device_type: No such file or directory
WARNING: No devspec file found for /sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.0001f000:ata-4/ide0/0.0
/bin/show_of_path.sh: line 634: vendor: No such file or directory
/bin/show_of_path.sh: line 636: device: No such file or directory
/bin/show_of_path.sh: line 638: subsystem_vendor: No such file or directory
/bin/show_of_path.sh: line 640: subsystem_device: No such file or directory
/bin/show_of_path.sh: line 686: /device_type: No such file or directory
grep: /*/device_type: No such file or directory
WARNING: No devspec file found for /sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.0001f000:ata-4/ide0/0.0
/bin/show_of_path.sh: line 634: vendor: No such file or directory
/bin/show_of_path.sh: line 636: device: No such file or directory
/bin/show_of_path.sh: line 638: subsystem_vendor: No such file or directory
/bin/show_of_path.sh: line 640: subsystem_device: No such file or directory
/bin/show_of_path.sh: line 686: /device_type: No such file or directory
grep: /*/device_type: No such file or directory
WARNING: No devspec file found for /sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.0001f000:ata-4/ide0/0.0
/bin/show_of_path.sh: line 634: vendor: No such file or directory
/bin/show_of_path.sh: line 636: device: No such file or directory
/bin/show_of_path.sh: line 638: subsystem_vendor: No such file or directory
/bin/show_of_path.sh: line 640: subsystem_device: No such file or directory
/bin/show_of_path.sh: line 686: /device_type: No such file or directory
grep: /*/device_type: No such file or directory
BOOT_DEVICEPATH  = &device;:&partition;
OTHER_DEVICEPATH =
Volume name is "Untitled"
Volume was created on Mon Mar 31 05:36:01 2008
Volume was last modified on Mon Apr 21 15:00:48 2008
Volume has 131411968 bytes free
Untitled:suseboot:
f  FNDR/MACS       286         0 Sep 14  1999 Finder
f  zsys/MACS    243673         0 May 25  2001 System
f  BINA/UNIX         0    435265 Apr 22 15:03 yaboot
f  TEXT/R*ch         0       384 Apr 22 15:03 yaboot.conf
f  tbxi/chrp         0      2429 Apr 22 15:03 os-chooser
f  ????/UNIX         0   6516008 Apr 22 15:03 vmlinux.001
f  ????/UNIX         0   4526384 Apr 22 15:03 initrd.001
WARNING: No devspec file found for /sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.0001f000:ata-4/ide0/0.0
/bin/show_of_path.sh: line 634: vendor: No such file or directory
/bin/show_of_path.sh: line 636: device: No such file or directory
/bin/show_of_path.sh: line 638: subsystem_vendor: No such file or directory
/bin/show_of_path.sh: line 640: subsystem_device: No such file or directory
/bin/show_of_path.sh: line 686: /device_type: No such file or directory
grep: /*/device_type: No such file or directory
set OF boot-device @0:6,\\:tbxi
iMac:~ # nvsetenv boot-device "hd:6,\\yaboot"
iMac:~ #  

Comment 30 Forgotten User xI2C5NvggO 2008-04-22 14:06:43 UTC
Created attachment 209611 [details]
dmesg as requested in #28
Comment 31 Forgotten User xI2C5NvggO 2008-04-22 14:08:08 UTC
Created attachment 209612 [details]
getsysinfo output as requested by #28
Comment 32 Forgotten User xI2C5NvggO 2008-04-22 14:11:12 UTC
Still boots OS-X if no user intervention, but now the bootable Linux image is the default if ALT is held down.
Comment 33 Olaf Hering 2008-04-22 14:17:08 UTC
ok, thanks for the info. I have asked Benh for advice.
Comment 34 Olaf Hering 2008-04-23 08:25:22 UTC
It would be nice to know if the 10.3 kernel has the same issue.
Can you try to boot http://download.opensuse.org/distribution/10.3/iso/cd/openSUSE-10.3-GM-ppc-mini.iso
There should be an option 'rescue'
login as root and run find /sys -name devspec
Comment 35 Forgotten User xI2C5NvggO 2008-04-23 11:04:45 UTC
/sys/devices/pci0002:20/0002:20:0b.0/devspec
/sys/devices/pci0001:10/0001:10:19.0/devspec
/sys/devices/pci0001:10/0001:10:18.0/devspec
/sys/devices/pci0001:10/0001:10:17.0/devspec
/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.00021000:ata-3/devspec
/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.00020000:ata-3/devspec
/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.0001f000:ata-4/devspec
/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.00018000:i2c/devspec
/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.00016000:via-pmu/devspec
/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.00015000:timer/devspec
/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.00014000:davbus/devspec
/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.00013000:escc/0.00013000:ch-b/devspec
/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.00013000:escc/0.00013020:ch-a/devspec
/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.00013000:escc/devspec
/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.00000050:gpio/devspec
/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.00040000:interrup/devspec
/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/devspec
/sys/devices/pci0001:10/0001:10:13.0/devspec
/sys/devices/pci0001:10/0001:10:0b.0/devspec
/sys/devices/pci0000:00/0000:00:10.0/devspec
/sys/devices/pci0000:00/0000:00:0b.0/devspec

By the way - Yeugh, that was painful. I downloaded, burned and booted the cd, got message 'cant find installation system'. So I dug out the 10.3-PPC dvd and mounted it for FTP share, then told the boot CD to use that image - finally got a rescue login. Next the network DHCP client had been dropped (why?) so had to be manually re-configured - finally I was able to link to a writable NFS share to transfer the data. I hope it's useful...
Comment 36 Olaf Hering 2008-04-23 13:55:31 UTC
thanks for testing.
The 10.3 kernel works ok, while the 11.0 kernel has a regression in this area.
I suggest to install a plain 10.3 (without online updates, please!) on the system, that will make kernel testing a bit easier.
Once the 10.3 is installed, can you try to install kernel-vanilla.rpm from 
ftp.suse.com/pub/people/olh/kernel/bug374693/
and see if the devspec files are created?
Comment 37 Forgotten User xI2C5NvggO 2008-04-24 08:46:35 UTC
I never managed a 10.3 installation on this platform - the problem is in the boot loader, YaST won't accept anything I try & so it won't proceed.

Machine is sitting here now, in the installation proposal screen, with error in booting section. If you have any suggestions of what to change, please advise.

Output of pdisk -l /dev/hda follows FWIW; I set YaST logs to be remote so they're readily available too (but not attached unless you want them).

Should this be a separate bug# ?


Partition map (with 512 byte blocks) on '/dev/hda'
 #:                type name                length   base     ( size )
 1: Apple_partition_map 'Apple          '       63 @ 1
 2:      Apple_Driver43*'Macintosh      '       56 @ 64
 3:      Apple_Driver43*'Macintosh      '       56 @ 120
 4:    Apple_Driver_ATA*'Macintosh      '       56 @ 176
 5:    Apple_Driver_ATA*'Macintosh      '       56 @ 232
 6:      Apple_FWDriver 'Macintosh      '      512 @ 288
 7:  Apple_Driver_IOKit 'Macintosh      '      512 @ 800
 8:       Apple_Patches 'Patch Partition'      512 @ 1312
 9:                 HFS 'Booter         '    65536 @ 1824     ( 32.0M)
10:                swap 'swapper        '  1048576 @ 67360    (512.0M)
11:               Linux 'Linux          ' 11479024 @ 1115936  (  5.5G)

Device block size=512, Number of Blocks=12594960 (6.0G)
DeviceType=0x0, DeviceId=0x0
Drivers-
1:  23 @ 64, type=0x1
2:  36 @ 120, type=0xffff
3:  21 @ 176, type=0x701
4:  34 @ 232, type=0xf8ff

Comment 38 Olaf Hering 2008-04-24 09:00:14 UTC
how did you create partition 9? The type should be Apple_HFS instead of HFS.
To fix the type, type this:
pdisk /dev/hda
d 9
C
9p
9p
boot
Apple_HFS
p

now 'w' to update the partition map.
Comment 39 Olaf Hering 2008-04-24 10:00:22 UTC
I can reproduce the missing devspec files on an ibook1.
Comment 40 Forgotten User xI2C5NvggO 2008-04-24 10:16:57 UTC
Thanks Olaf, installation is now under way.
Comment 41 Forgotten User xI2C5NvggO 2008-04-24 11:03:51 UTC
- and now complete. No on-line updates.

The devspec files are somewhat different...

iMac:~ # find /sys -name devspec > temp; while read line; do echo -n "$line -
"; strings "$line"; done < temp; rm temp
/sys/devices/pci0002:20/0002:20:0b.0/devspec -
/sys/devices/pci0001:10/0001:10:19.0/devspec -
/pci@f2000000/usb@19
/sys/devices/pci0001:10/0001:10:18.0/devspec -
/pci@f2000000/usb@18
/sys/devices/pci0001:10/0001:10:17.0/devspec -
/pci@f2000000/mac-io@17
/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.00021000:ata-3/devspec -
/pci@f2000000/mac-io@17/ata-3@21000
/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.00020000:ata-3/devspec -
/pci@f2000000/mac-io@17/ata-3@20000
/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.0001f000:ata-4/devspec -
/pci@f2000000/mac-io@17/ata-4@1f000
/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.00018000:i2c/devspec -
/pci@f2000000/mac-io@17/i2c@18000
/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.00016000:via-pmu/devspec -
/pci@f2000000/mac-io@17/via-pmu@16000
/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.00015000:timer/devspec -
/pci@f2000000/mac-io@17/timer@15000
/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.00014000:davbus/devspec -
/pci@f2000000/mac-io@17/davbus@14000
/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.00013000:escc/0.00013000:ch-b/devspec -
/pci@f2000000/mac-io@17/escc@13000/ch-b@13000
/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.00013000:escc/0.00013020:ch-a/devspec -
/pci@f2000000/mac-io@17/escc@13000/ch-a@13020
/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.00013000:escc/devspec -
/pci@f2000000/mac-io@17/escc@13000
/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.00000050:gpio/devspec -
/pci@f2000000/mac-io@17/gpio@50
/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/0.00040000:interrup/devspec -
/pci@f2000000/mac-io@17/interrupt-controller@40000
/sys/devices/pci0001:10/0001:10:17.0/0.80000000:mac-io/devspec -
/pci@f2000000/mac-io@17
/sys/devices/pci0001:10/0001:10:13.0/devspec -
/pci@f2000000/ethernet@13
/sys/devices/pci0001:10/0001:10:0b.0/devspec -
/sys/devices/pci0000:00/0000:00:10.0/devspec -
/pci@f0000000/ATY,Rage128k@10
/sys/devices/pci0000:00/0000:00:0b.0/devspec -
/pci@f0000000/uni-north-agp@b
iMac:~ #      

BTW: I never managed to complete 10.3 install before, hung up e.g. on issues like #c37 - so many thanks for that too. It boots OK and runs nicely from what I can see so far.

Comment 42 Olaf Hering 2008-04-24 11:23:50 UTC
kernel-vanilla has the devspec files, so its on of our patches.
Comment 43 Forgotten User xI2C5NvggO 2008-04-24 12:18:15 UTC
oops, forgot to install the vanilla kernel:

iMac:~ # rpm -Uhv kernel-vanilla-2.6.25-20080423_vanilla_test.ppc.rpm
Preparing...                ########################################### [100%]
   1:kernel-vanilla         ########################################### [100%]
Setting up /lib/modules/2.6.25-20080423_vanilla_test-vanilla

Kernel image:   /boot/vmlinux-2.6.25-20080423_vanilla_test-vanilla
Initrd image:   /boot/initrd-2.6.25-20080423_vanilla_test-vanilla
Root device:    /dev/disk/by-id/ata-QUANTUM_FIREBALL_EX6.4A_276831719077-part11 (/dev/hda11) (mounted on / as ext3)
WARNING Cannot determine dependencies of kernel module 'of:Nata-4TataCkeylargo-ata'.
        Does it exist? If it does, try depmod -a. Continuing without of:Nata-4TataCkeylargo-ata.
WARNING Cannot determine dependencies of kernel module 'ide-disk'.
        Does it exist? If it does, try depmod -a. Continuing without ide-disk.
Kernel Modules: uhci-hcd ehci-hcd
Features:       block usb resume.kernel
/usr/bin/ldd: line 161: /lib64/ld64.so.1: cannot execute binary file
ldd: exited with unknown exit code (126)
/usr/bin/ldd: line 161: /lib64/ld64.so.1: cannot execute binary file
ldd: exited with unknown exit code (126)
/usr/bin/ldd: line 161: /lib64/ld64.so.1: cannot execute binary file
ldd: exited with unknown exit code (126)
/usr/bin/ldd: line 161: /lib64/ld64.so.1: cannot execute binary file
ldd: exited with unknown exit code (126)
/usr/bin/ldd: line 161: /lib64/ld64.so.1: cannot execute binary file
ldd: exited with unknown exit code (126)
/usr/bin/ldd: line 161: /lib64/ld64.so.1: cannot execute binary file
ldd: exited with unknown exit code (126)
/usr/bin/ldd: line 161: /lib64/ld64.so.1: cannot execute binary file
ldd: exited with unknown exit code (126)
/usr/bin/ldd: line 161: /lib64/ld64.so.1: cannot execute binary file
ldd: exited with unknown exit code (126)
/usr/bin/ldd: line 161: /lib64/ld64.so.1: cannot execute binary file
ldd: exited with unknown exit code (126)
/usr/bin/ldd: line 161: /lib64/ld64.so.1: cannot execute binary file
ldd: exited with unknown exit code (126)
/usr/bin/ldd: line 161: /lib64/ld64.so.1: cannot execute binary file
ldd: exited with unknown exit code (126)
/usr/bin/ldd: line 161: /lib64/ld64.so.1: cannot execute binary file
ldd: exited with unknown exit code (126)
10827 blocks
iMac:~ #  

I'd welcome a suggestion of what to do from here! Maybe reverting to default kernel?
Comment 44 Olaf Hering 2008-04-24 12:26:44 UTC
I updated a patch for efika.
+- update patches.arch/ppc-efika-modalias.patch
+  add devspec file for mac-io, it was created as a side effect
+  in of/platform.c (bnc#374693)
Comment 45 Olaf Hering 2008-04-24 12:27:27 UTC
that looks all ok, lilo.conf has now a second section for vanilla.rpm
Comment 46 Forgotten User xI2C5NvggO 2008-04-24 12:41:26 UTC
Indeed it does, but it won't boot it. Boots previous kernel OK though.

iMac:~ # lilo
running on pmac_new
BOOT_DEVICEPATH  = &device;:&partition;
OTHER_DEVICEPATH =
Volume name is "Linux boot partition"
Volume was created on Thu Apr 24 10:43:26 2008
Volume was last modified on Thu Apr 24 13:16:27 2008
Volume has 32353280 bytes free
Linux boot partition:suseboot:
f  FNDR/MACS       286         0 Sep 14  1999 Finder
f  zsys/MACS    243673         0 May 25  2001 System
f  tbxi/chrp         0      2429 Apr 24 13:36 os-chooser
f  BINA/UNIX         0    419122 Apr 24 13:36 yaboot
f  TEXT/R*ch         0       597 Apr 24 13:36 yaboot.conf
set OF boot-device /pci@f2000000/mac-io@17/ata-4@1f000/disk@0:9,\\:tbxi
iMac:~ # ls /boot -al
total 19696
drwxr-xr-x  2 root root    4096 Apr 24 13:16 .
drwxr-xr-x 21 root root    4096 Apr 24  2008 ..
-rw-r--r--  1 root root  887521 Sep 24  2007 System.map-2.6.22.5-31-default
-rw-r--r--  1 root root  977534 Apr 23 13:13 System.map-2.6.25-20080423_vanilla_test-vanilla
-rw-r--r--  1 root root   62488 Sep 24  2007 config-2.6.22.5-31-default
-rw-r--r--  1 root root   68734 Apr 23 13:14 config-2.6.25-20080423_vanilla_test-vanilla
lrwxrwxrwx  1 root root      43 Apr 24 13:16 initrd -> initrd-2.6.25-20080423_vanilla_test-vanilla
-rw-r--r--  1 root root 2342322 Apr 24 11:43 initrd-2.6.22.5-31-default
-rw-r--r--  1 root root 2344394 Apr 24 13:16 initrd-2.6.25-20080423_vanilla_test-vanilla
-rw-r--r--  1 root root   80748 Sep 24  2007 symsets-2.6.22.5-31-default.tar.gz
-rw-r--r--  1 root root   89203 Apr 23 13:14 symsets-2.6.25-20080423_vanilla_test-vanilla.tar.gz
-rw-r--r--  1 root root  320261 Sep 24  2007 symtypes-2.6.22.5-31-default.gz
-rw-r--r--  1 root root  361526 Apr 23 13:15 symtypes-2.6.25-20080423_vanilla_test-vanilla.gz
-rw-r--r--  1 root root   93355 Sep 24  2007 symvers-2.6.22.5-31-default.gz
-rw-r--r--  1 root root  104518 Apr 23 13:14 symvers-2.6.25-20080423_vanilla_test-vanilla.gz
lrwxrwxrwx  1 root root      44 Apr 24 13:15 vmlinux -> vmlinux-2.6.25-20080423_vanilla_test-vanilla
-rw-r--r--  1 root root 5948132 Sep 24  2007 vmlinux-2.6.22.5-31-default
-rw-r--r--  1 root root 6379799 Apr 23 13:14 vmlinux-2.6.25-20080423_vanilla_test-vanilla
iMac:~ #    
Comment 47 Olaf Hering 2008-05-06 14:07:06 UTC
11.0 beta2 is supposed to work.
Comment 48 Forgotten User xI2C5NvggO 2008-05-06 19:27:06 UTC
Looking forward to trying it when I finally get the image ready - torrent is taking for ever (as usual), and though I finally have the deltas the only machine I have with new enough deltarpm etc. is woefully slow to create beta 2 from them. Will report back soon I hope!
Comment 49 Forgotten User xI2C5NvggO 2008-05-08 11:07:29 UTC
Finally got the 11.0 Beta 2 PPC iso by torrent, md5sum double-checked. Loop mounted as FTP share as previously using host running OSL 10.3 (x86 32 bit)

Booted target using a factory boot.ppc.iso from last month, 3 'installation system' elements are loaded OK the (looking at logs on TTY3):

mount: /download/file_0002: we need a loop device
mount: using /dev/loop3
loading ftp://192..11.0-PPC/boot/ppc/cracklib-dict-full.rpm -> /download/file_0003
sha1: xxxxx....
sha1: OK
mount /download/file_0003 -> mount/mp_0002
/download/file_0003: unkown fs type
instsys mount failed: mount/mp_0002
disk: mount ok but test failed
url mount ftp://192..11.0-PPC?device:eth0 failed

Shall I start a new bug?
Comment 50 Forgotten User xI2C5NvggO 2008-05-08 12:47:04 UTC
OK - answered my own question here - I took a new factory boot.ppc.iso and it starts fine. Please ignore the above. 
Comment 51 Forgotten User xI2C5NvggO 2008-05-09 12:40:31 UTC
Great work - it certainly now boots, though I fear it has killed the OS-X login in the process, the OS-chooser is missing. I attach YaST logs in the hope that this might shed some light on why? Is it worth a new bug?

OpenSuSE 11.0 beta 2 runs very nicely though, considering I have only a 350 MHz PPC (and 512M RAM)

Comment 52 Forgotten User xI2C5NvggO 2008-05-09 12:45:39 UTC
Created attachment 213910 [details]
YaST logs for installation stage 1
Comment 53 Olaf Hering 2008-05-09 12:48:31 UTC
lilo.conf has no other= section for macos.
append something like

other=/dev/hda123
  label=macos

and run lilo again
Comment 54 Forgotten User xI2C5NvggO 2008-05-09 14:27:44 UTC
Yes, that fixed it. Now the first thing I get on boot is a bald "press space bar to boot macosx" which if I ignore it is followed by yaboot, with the default initrd being OSL-11.0b2. A bit clunky, but it works.

Many thanks once more for your efforts!