View previous topic :: View next topic |
Author |
Message |
Thiemo Tux's lil' helper
Joined: 20 Nov 2002 Posts: 138
|
Posted: Sat Aug 23, 2003 11:56 pm Post subject: startmol -X does not find mach kernel |
|
|
Hi,
I try to start MacOS X (10.1.5) in mol 0.9.69_pre3. However, the execution of the programme terminates before a MacOS X windows gets opened stating that no mach kernel could be found. I don't know where I configured wrongly. However, at least MacOS 9.1 starts fine in mol. Below I listed the output of the MacOS X try and snippeds of the config files. BTW: I run molvconfig and startmol --keyconfig.
Anybody an idea?
Cheers,
Thiemo
Code: | thiemo@walhalla thiemo $ startmol -X
Mac-on-Linux 0.9.69 Copyright (C) 1997-2003 Samuel Rydh
Starting MOL session 1
Running in PowerPC G3 mode, 192 MB RAM
Timebase: 16.64 MHz, Bus: 66.57 MHz, Clock: 299 MHz
Using USB mouse on /dev/input/mice
nvram, read_image: open: No such file or directory
Creating nvram-image '/var/lib/mol/nvram.x'
OHCI USB controller registered
Fullscreen video on VT 8.
Video driver(s): [xvideo] [console_video]
640* 480, depth 8,15 { 0.0 } Hz
800* 600, depth 8,15,32 { 0.0, 60.3, 70.0, 74.9 } Hz
800* 600, depth 8 { 89.9 } Hz
1024* 768, depth 8,15 { 0.0 } Hz
1152* 864, depth 8,15 { 0.0 } Hz
1280*1024, depth 8,15 { 0.0 } Hz
1600*1200, depth 8,15 { 0.0 } Hz
No video mode match the default one.
DHCP nameserver exported: 192.168.0.253
Internet Software Consortium DHCP Server V3.0pl2
Copyright 1995-2003 Internet Software Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Can't open lease database /var/lib/dhcp/dhcpd.leases: No such file or directory --
check for failed database rewrite attempt!
Please read the dhcpd.leases manual page if you
don't know what to do about this.
If you did not get this software from ftp.isc.org, please
get the latest from ftp.isc.org and install that before
requesting help.
If you did get this software from ftp.isc.org and have not
yet read the README, please read it before requesting help.
If you intend to request help from the dhcp-server@isc.org
mailing list, please read the section on the README about
submitting bug reports and requests for help.
Please do not under any circumstances send requests for
help directly to the authors of this software - please
send them to the appropriate mailing list as described in
the README file.
exiting.
Ethernet Interface 'tun-<tun1>' @ 00:00:0D:EA:DB:EE
CD /dev/cdrom CD-ROM <read-only> ------
----> /dev/hda9 might be a boot-strap partition.
----> /dev/hda12 might be a boot-strap partition.
HFS+ /dev/hda14 walhalla <rw> 5180 MB BOOT
HFS+ /dev/hda15 Classic <rw> 1029 MB BOOT
------> /dev/hda16 is linux-mounted with write privileges.
Could not open '/dev/hda16' with read-write permissions
------> /dev/hda17 is linux-mounted with write privileges.
Could not open '/dev/hda17' with read-write permissions
>> ==================================================
>> MacOS X Boot Loader 1.1.18
>> Candidate boot volume: /mol-blk@0/disk@1:0
>> --> Boot loader failure: failed to load the mach kernel
cleaning up...
Terminating threads...
DONE
|
Config snipped with non-standard configuration (/etc/mol/molrc.osx): Code: | # ram_size: 96
# disable_altivec: no
ram_size: 192
disable_altivec: yes
blkdev: /dev/hda -rw -boot
# blkdev: /dev/hda -rw
# blkdev: /dev/hdb -rw
# blkdev: /dev/sda -rw
# blkdev: /dev/sdb -rw
|
_________________ root ist die wurzel allen uebels |
|
Back to top |
|
|
cselkirk Apprentice
Joined: 09 Jun 2003 Posts: 199 Location: NL
|
Posted: Thu Aug 28, 2003 8:37 am Post subject: Re: startmol -X does not find mach kernel |
|
|
Thiemo wrote: |
blkdev: /dev/hda -rw -boot
# blkdev: /dev/hda -rw
# blkdev: /dev/hdb -rw
# blkdev: /dev/sda -rw
# blkdev: /dev/sdb -rw
|
blkdev should point to the actual partition where OS X resides:
Code: | blkdev: /dev/hda9 -rw |
_________________ cn=cselkirk,dc=xs4all,dc=nl |
|
Back to top |
|
|
Thiemo Tux's lil' helper
Joined: 20 Nov 2002 Posts: 138
|
Posted: Thu Aug 28, 2003 8:29 pm Post subject: Re: startmol -X does not find mach kernel |
|
|
cselkirk wrote: |
blkdev should point to the actual partition where OS X resides:
Code: | blkdev: /dev/hda9 -rw |
|
Err, right. Stupid me. Having done so, it didn't change a lot.
Code: | blkdev: /dev/hda14 -rw |
or
Code: | blkdev: /dev/hda14 -rw -boot |
resulted in
Code: | ------> /dev/hda14 is linux-mounted with write privileges.
HFS+ /dev/hda14 walhalla <read-only> 5180 MB BOOT
>> ==================================================
>> MacOS X Boot Loader 1.1.18
>> Candidate boot volume: /mol-blk@0/disk@0:0
>> --> Boot loader failure: failed to load the mach kernel
cleaning up...
Terminating threads...
DONE
|
Any other ideas?
Cheers
Thiemo _________________ root ist die wurzel allen uebels |
|
Back to top |
|
|
cselkirk Apprentice
Joined: 09 Jun 2003 Posts: 199 Location: NL
|
Posted: Thu Aug 28, 2003 11:34 pm Post subject: Re: startmol -X does not find mach kernel |
|
|
Thiemo wrote: | Code: |
>> Candidate boot volume: /mol-blk@0/disk@0:0
>> --> Boot loader failure: failed to load the mach kernel |
Any other ideas? |
humm .. what does your partition map look like? Your OS X is on hda14, which suggests you installed linux on the first free partition(s) and then MacOS X on the latter (or you have a number of partitions for OS9/Data, or whatever). I have some recollection of this possibly causing issues.
'@0:0' looks to me as though it's looking at the partition_map to try to acertain which partition is infact a posible candidate for booting (this is the default behavior when no blkdev is given).
Is your OS X partition UFS by any chance? _________________ cn=cselkirk,dc=xs4all,dc=nl |
|
Back to top |
|
|
cselkirk Apprentice
Joined: 09 Jun 2003 Posts: 199 Location: NL
|
Posted: Fri Aug 29, 2003 12:46 am Post subject: |
|
|
Additionally:
You should attempt to boot from a OS X install CD .. add the following to your /etc/mol/molrc.osx ..
Code: | blkdev: /dev/cdrom -cd ${cdboot} |
.. insert a bootable OS X and run:
Code: | startmol -X --cdboot |
If it boots then the problem most probably is with the partioning scheme, or the filesytem type. _________________ cn=cselkirk,dc=xs4all,dc=nl
Last edited by cselkirk on Fri Aug 29, 2003 10:07 pm; edited 1 time in total |
|
Back to top |
|
|
Thiemo Tux's lil' helper
Joined: 20 Nov 2002 Posts: 138
|
Posted: Fri Aug 29, 2003 7:00 pm Post subject: Re: startmol -X does not find mach kernel |
|
|
cselkirk wrote: | humm .. what does your partition map look like? Your OS X is on hda14, which suggests you installed linux on the first free partition(s) and then MacOS X on the latter (or you have a number of partitions for OS9/Data, or whatever). I have some recollection of this possibly causing issues.
'@0:0' looks to me as though it's looking at the partition_map to try to acertain which partition is infact a posible candidate for booting (this is the default behavior when no blkdev is given).
Is your OS X partition UFS by any chance? |
Thanx for your assistance. Well, OS X partition is HFS+ as is the MacOS 9 partition. I first have two swap partitions: hda10 for linux and hda11 for OS X (UFS). However, I could not get to use hda11 under OS X. hda14 for OS X, hda15 MacOS 9 and at last three linux partitions. Find below the config file and the partition table.
Code: | walhalla mol # cat molrc.osx
# -*- perl -*- (for emacs syntax coloring)
#
# /etc/mol/molrc.osx
#
# Mac-on-Linux master configuration file for MacOS X booting
#
#------------------------------------------------------------------------------
# Parse other config files (these files are in /etc/mol/)
#------------------------------------------------------------------------------
include ${etc}/molrc.video # video configuration
include ${etc}/molrc.input # mouse and keyboard
include ${etc}/molrc.net # networking
#------------------------------------------------------------------------------
# Misc Settings
#------------------------------------------------------------------------------
# ram_size: 96
# disable_altivec: no
ram_size: 192
disable_altivec: yes
# OSX has severe real-time requirements for sound. If this appears to be
# a problem, it might help to limit the sound rate to 22050 Hz.
#max_sound_rate: 22050
#------------------------------------------------------------------------------
# OS X Volumes
#------------------------------------------------------------------------------
#
# Volumes to be mounted in MacOS X are specified through the
# blkdev keyword:
#
# blkdev: <device> [flags]
#
# where <device> can be a complete disk (/dev/hda), a single
# partition (/dev/hda7) or a disk image.
#
# The following flags are supported
#
# -rw/-ro read-write / read-only [default]
# -force force usage of device (be careful!)
# -boot boot from this disk
# -boot1 boot from this disk (ignore other -boot flags)
# -whole export the entire device (including
# any non-HFS partitions). BE CAREFUL!
# -cd CDROM/DVD
#
# MOL will boot from CD if it invoked through 'startmol -X --cdboot'.
blkdev: /dev/cdrom -cd ${cdboot}
ifempty ${altconfig} {
# default configuration
# blkdev: /dev/hda14 -rw
blkdev: /dev/hda14 -rw -boot
# blkdev: /dev/hda -rw
# blkdev: /dev/hdb -rw
# blkdev: /dev/sda -rw
# blkdev: /dev/sdb -rw
} else {
# alternate configuration
blkdev: /tmp/osx.image -rw
#blkdev: /dev/loop0 -rw
} |
Code: | walhalla root # mac-fdisk -l /dev/hda
/dev/hda
# type name length base ( size ) system
dump: name /dev/hda len 8
/dev/hda1 Apple_partition_map Apple 63 @ 1 ( 31.5k) Partition map
/dev/hda2 Apple_Driver43 Macintosh 56 @ 64 ( 28.0k) Driver 4.3
/dev/hda3 Apple_Driver43 Macintosh 56 @ 120 ( 28.0k) Driver 4.3
/dev/hda4 Apple_Driver_ATA Macintosh 56 @ 176 ( 28.0k) Unknown
/dev/hda5 Apple_Driver_ATA Macintosh 56 @ 232 ( 28.0k) Unknown
/dev/hda6 Apple_FWDriver Macintosh 512 @ 288 (256.0k) Unknown
/dev/hda7 Apple_Driver_IOKit Macintosh 512 @ 800 (256.0k) Unknown
/dev/hda8 Apple_Patches Patch Partition 512 @ 1312 (256.0k) Unknown
/dev/hda9 Apple_Bootstrap bootstrap 1600 @ 1824 (800.0k) NewWorld bootblock
/dev/hda10 Apple_UNIX_SVR2 swap 1055344 @ 3424 (515.3M) Linux swap
/dev/hda11 Apple_UFS swap 1056944 @ 1058768 (516.1M) Unknown
/dev/hda12 Apple_Boot MOSX_OF3_Booter 16384 @ 2115712 ( 8.0M) Unknown
/dev/hda13 Apple_Loader SecondaryLoader 1024 @ 2132096 (512.0k) Unknown
/dev/hda14 Apple_HFS Mac_OS_X 10609664 @ 2133120 ( 5.1G) HFS
/dev/hda15 Apple_HFS Classic 2107520 @ 12742784 ( 1.0G) HFS
/dev/hda16 Apple_UNIX_SVR2 tmp 1048576 @ 14850304 (512.0M) Linux native
/dev/hda17 Apple_UNIX_SVR2 var 6291456 @ 15898880 ( 3.0G) Linux native
/dev/hda18 Apple_UNIX_SVR2 Linux ReiserFS 16879744 @ 22190336 ( 8.0G) Linux native
Block size=512, Number of Blocks=39070079
DeviceType=0x0, DeviceId=0x0
Drivers-
1: @ 64 for 23, type=0x1
2: @ 120 for 36, type=0xffff
3: @ 176 for 21, type=0x701
4: @ 232 for 34, type=0xf8ff |
_________________ root ist die wurzel allen uebels |
|
Back to top |
|
|
cselkirk Apprentice
Joined: 09 Jun 2003 Posts: 199 Location: NL
|
Posted: Fri Aug 29, 2003 10:54 pm Post subject: Re: startmol -X does not find mach kernel |
|
|
Thiemo wrote: | Code: | walhalla mol # cat molrc.osx |
|
tip:
Code: | cat /etc/mol/molrc.osx | egrep -v "^#" |
it will save quite a few lines of unecessary comments
Code: | zsh% cat /etc/mol/molrc.osx |wc -l
66
zsh% cat /etc/mol/molrc.osx |egrep -v "^#" |wc -l
26 |
Thiemo wrote: | Code: | walhalla root # mac-fdisk -l /dev/hda
<snip>
/dev/hda11 Apple_UFS swap 1056944 @ 1058768 (516.1M) Unknown
/dev/hda12 Apple_Boot MOSX_OF3_Booter 16384 @ 2115712 ( 8.0M) Unknown
/dev/hda13 Apple_Loader SecondaryLoader 1024 @ 2132096 (512.0k) Unknown
/dev/hda14 Apple_HFS Mac_OS_X 10609664 @ 2133120 ( 5.1G) HFS
<snip> |
|
I boot OS9 from an image, so the partition scheme is quite different (I don't have MacOS X's booter). I really don't think this is the issue though, I'm more suspicious of the Apple_UFS swap, at least, I can see no reason why mol is reading @0:0 looking for a possible boot partition when hda14 is explicitly stated in the molrc.osx. I suspect it's reading the partition_map which will almost certainly point it to hda12 (the first bootable volume .. but no mach kernel). Question is why is mol not reading the blkdev defined. Did you attempt to boot from a CD as I previously suggested?
Looking at my own molrc.osx my blkdev is not within the 'ifempty ${altconfig}' condition .. try moving it out (just to rule that out as a possibility). Also, you might want to consider converting the Apple_UFS to ext2/hfs
My only recollection of this particular error is when either the blkdev is pointing to a partition that doesn't contain a valid OS X install or when the partition is formated as UFS .. so this is new to me. _________________ cn=cselkirk,dc=xs4all,dc=nl |
|
Back to top |
|
|
Thiemo Tux's lil' helper
Joined: 20 Nov 2002 Posts: 138
|
Posted: Sat Aug 30, 2003 12:03 am Post subject: Re: startmol -X does not find mach kernel |
|
|
cselkirk wrote: |
tip:
Code: | cat /etc/mol/molrc.osx | egrep -v "^#" |
it will save quite a few lines of unecessary comments |
ok
cselkirk wrote: |
I can see no reason why mol is reading @0:0 looking for a possible boot partition when hda14 is explicitly stated in the molrc.osx. | Neither can I.
cselkirk wrote: |
I suspect it's reading the partition_map which will almost certainly point it to hda12 (the first bootable volume .. but no mach kernel). Question is why is mol not reading the blkdev defined. Did you attempt to boot from a CD as I previously suggested? |
I just tried... I got so far to have a kernel? panic (on OS X side). The probably relevant messages is:
Code: | panic(cpu 0): Unable to find driver for this platform: "AAPL,MOL". |
I am not sure whether a compilation process survived, so I rebooted. BTW, my boot cd is a 10.0 since I have only an update cd for 10.1
cselkirk wrote: | Looking at my own molrc.osx my blkdev is not within the 'ifempty ${altconfig}' condition .. try moving it out (just to rule that out as a possibility). Also, you might want to consider converting the Apple_UFS to ext2/hfs |
So, I converted the UFS partition to HFS (standard) using mac-fdisk and the mac disk utility. Now, MacOS 9 does not recognize/mount the "new" partition, OS X on the other hand does. However, it didn't change anything with respect to mach kernel load failure. Neither moving "blkdev " out of the ifempy construct changed anything.
cselkirk wrote: | My only recollection of this particular error is when either the blkdev is pointing to a partition that doesn't contain a valid OS X install or when the partition is formated as UFS .. so this is new to me. |
I believe we can rule out UFS. Apart from that I am not much the wiser.
Cheers,
Thiemo _________________ root ist die wurzel allen uebels |
|
Back to top |
|
|
Thiemo Tux's lil' helper
Joined: 20 Nov 2002 Posts: 138
|
Posted: Sat Aug 30, 2003 12:09 am Post subject: |
|
|
I just tested the update cd (10.1) under mol and it does work.
Cheers
Thiemo _________________ root ist die wurzel allen uebels |
|
Back to top |
|
|
cselkirk Apprentice
Joined: 09 Jun 2003 Posts: 199 Location: NL
|
Posted: Sat Aug 30, 2003 1:20 am Post subject: |
|
|
Thiemo wrote: | I just tested the update cd (10.1) under mol and it does work. |
ok .. in that case seems it has to be the partioning scheme. Not sure what can be done to remedy. _________________ cn=cselkirk,dc=xs4all,dc=nl |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|