Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
MOL won't boot OSX, tun.o does not exist[SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
electroarts
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2004
Posts: 86

PostPosted: Fri Jan 13, 2006 9:43 pm    Post subject: MOL won't boot OSX, tun.o does not exist[SOLVED] Reply with quote

[edit] Problem was solved by pointing /etc/mol/molrc.osx to the Apple Bootstrap partition (/dev/hda2 in my case), rather than to the partition with the OSX installation (/dev/hda4), compiling TUN network support into the kernel and making sure that the OSX partition (/dev/hda4) was not mounted by Linux before starting MOL. As a note, I am using the latest Tiger OSX 10.4.4 update and Mac-on-Linux 0.9.71-pre7 with a 2.6.14-gentoo-r2 kernel on a 2005-model 15" G4 Powerbook. It seems to run quite well, although I'm hesitant to try the Airport Extreme for fear of forgetting to turn it off before quitting MOL and borking my OSX installation! Think I'll wait for more stable native Linux AE drivers instead. [/edit]

I've configured MOL to boot from my OSX partition, /dev/hda4. It goes to the framebuffer with the MOL graphic, I see the "booting" icon spinning, but then it just dies. Here's the output:
Code:

macumbista derek # startmol --osx     
Mac-on-Linux 0.9.71-pre7 [Jan 13 2006 22:21]
Copyright (C) 1997-2004 Samuel Rydh
Starting MOL session 1
The kernel module '/usr/lib/mol/0.9.71/modules/2.6.14-gentoo-r2/tun.o' appears t
o be missing.
Running in PowerPC 7400 mode, 512 MB RAM
Timebase: 18.43 MHz, Bus: 73.72 MHz, Clock: 1666 MHz
Using USB mouse on /dev/input/mice
OHCI USB controller registered
Xlib: connection to ":0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
Could not connect to X server :0.0
Fullscreen video on VT 8.
Could not open '/var/lib/mol/console.kbd'
Video driver(s): [console_video]

     320* 200, depth 8,15,32   { 85.1 } Hz
     320* 240, depth 8,15,32   { 85.0 } Hz
     400* 300, depth 8,15,32   { 99.2 } Hz
     640* 400, depth 8,15,32   { 92.4 } Hz
     640* 480, depth 8,15,32   { 59.9, 72.1, 74.9, 89.9, 99.7 } Hz
     720* 576, depth 8,15,32   { 49.9 } Hz
     768* 576, depth 8,15,32   { 75.0 } Hz
     800* 600, depth 8,15,32   { 56.2, 60.3, 70.0, 72.1, 74.9, 89.9, 99.9 } Hz
    1024* 768, depth 8,15,32   { 60.0, 70.0, 72.2, 75.0 } Hz
    1152* 768, depth 8,15,32   { 54.7 } Hz
    1280* 854, depth 8,15,32   { 60.0 } Hz

Autoswitching to console
Failed to open /dev/net/tun: No such device
Failed to initialize the tun-<tun1> device
ALSA sound driver (device 'default')
ALSA: failed to setup mixer

    CD    /dev/cdrom       CD/DVD         <read-only>   ------
    Unembedded HFS+ /dev/hda4                       <read-only>  16256 MB BOOT
----> /dev/hda2 might be a boot-strap partition.
------> /dev/hda4 is linux-mounted with write privileges.
Could not open '/dev/hda4' with read-write permissions
----> /dev/hda5 might be a boot-strap partition.
----> /dev/hda8 might be a boot-strap partition.
------> /dev/hda9 is linux-mounted with write privileges.
Could not open '/dev/hda9' with read-write permissions
No volumes found in '/dev/hda'
No volumes found in '/dev/hdb'
No volumes found in '/dev/sda'
No volumes found in '/dev/sdb'

SCSI devices:

    SCSI  /dev/cdrom       [CDROM/DVD driver]


>> ==================================================
>> MacOS X Boot Loader 0.9.70 [96MB memory map patch]
>> Candidate boot volume: /mol-blk@0/disk@0:0
>> /mol-blk@0/disk@0:0,\mach_kernel (4330344 bytes)
>> Old mkext timestamp (or safe-boot)
>> Loading from /mol-blk@0/disk@0:0,\System\Library\
>> ==================================================

<*> IRQ vectorCanBeShared 3
<*> SCSI driver v1.03
<*> IRQ vectorCanBeShared 6
<*> IRQ vectorCanBeShared 4
<*> IRQ vectorCanBeShared 2
<*> Block Driver v1.1
<*> IRQ vectorCanBeShared 24
cleaning up...
Waiting upon SCSI completion
Terminating threads...
DONE



Is the problem that it can't find tun.o? This file does not exist anywhere on my system. I emerge MOL as follows:

Code:
ACCEPT_KEYWORDS="~ppc" USE="usb oss pci sheep vnc fbcon" emerge  mol


and during the configuration process, I see something that confuses me. First, TUN is said to be built, then later it is said not to be built:

Code:
* Network drivers
*
Tun driver (TUN) [Y/n/?] y
Ethertap driver (TAP) [N/y/?] n
Sheep net driver (SHEEP) [Y/n/?] y
 * The configuration has been altered according to your USE-flags.
config.status: creating unconfig
config.status: creating Makefile.defs
config.status: creating config.h
config.status: config.h is unchanged
+ Entering lxdialog
+ Entering kconfig
#
# using defaults found in .config-ppc
#
*
* Linux Kernel Configuration
*
Oldworld Support (for Mac OS 8.5 and earlier) (OLDWORLD) [N/y/?] n
FBDEV Video Support (FBDEV) [Y/n/?] y
X11 Support (X11) [Y/n/?] y
VNC Server Support (VNC) [Y/n/?] y
X11 DGA support (obsolete) (XDGA) [N/y/?] n
ALSA sound support (ALSA) [Y/n/?] y
OSS sound support (OSS) [Y/n/?] y
Generic USB support (USBDEV) (USBDEV) [Y/n/?] y
pci proxying support (PCIPROXY) [Y/n/?] y
*
* Debugging
*
Debugger support (DEBUGGER) [N/y/?] n
Experimental TTY driver (TTYDRIVER) [N/y/?] n
Log SCSI commands (SCSIDEBUG) [N/y/?] n
Dump network packets (DUMP_PACKETS) [N/y/?] n
Dump DHCP negotiation information (DHCP_DEBUG) [N/y/?] n
Build a hosted MOL version (WARNING: don't enable this!) (HOSTED) [N/y/?] n
*
* Network drivers
*
Tun driver (TUN) [N/y/?] n
Ethertap driver (TAP) [N/y/?] n
Sheep net driver (SHEEP) [Y/n/?] y
config.status: creating unconfig
config.status: creating Makefile.defs
config.status: creating config.h
config.status: config.h is unchanged
= Building mol-0.9.71-pre7 [Jan 13 2006 22:21]


Any way I can get the Ebuild to work, or should I install MOL manually?


Last edited by electroarts on Mon Jan 16, 2006 12:13 am; edited 4 times in total
Back to top
View user's profile Send private message
electroarts
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2004
Posts: 86

PostPosted: Fri Jan 13, 2006 11:16 pm    Post subject: Reply with quote

After a reboot, and after watching the boot icon spin around for approx 5 minutes, I get a Darwin login shell and tons of com.apple.mDNSResponder errors.

I'm quite sure this is all because of this missing tun.o module.

Any suggestions on how to get it working via Portage or manually? Has anybody else installed the latest MOL and had this problem? Or is my machine haunted?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Jan 14, 2006 5:00 am    Post subject: Reply with quote

From the ebuild:
Code:

   ewarn "If errors with networking occur, make sure you have the following"
    ewarn "kernel functions enabled:"
    einfo "For connecting to Linux:"
    einfo "    Universal TUN/TAP device driver support (CONFIG_TUN)"
    einfo "For the dhcp server:"
    einfo "    Socket Filtering (CONFIG_FILTER)"
    einfo "    Packet Socket (CONFIG_PACKET)"
    einfo "For NAT:"
    einfo "    Network packet filtering (CONFIG_NETFILTER)"
    einfo "    Connection tracking (CONFIG_IP_NF_CONNTRACK)"
    einfo "    IP tables support (CONFIG_IP_NF_IPTABLES)"
    einfo "    Packet filtering (CONFIG_IP_NF_FILTER)"
    einfo "    Full NAT (CONFIG_IP_NF_NAT)"
    einfo "    MASQUERADE target support (CONFIG_IP_NF_TARGET_MASQUERADE)"


You probably don't have all of those kernel options enabled.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml


Last edited by JoseJX on Sat Jan 14, 2006 4:02 pm; edited 1 time in total
Back to top
View user's profile Send private message
Fugee47
Apprentice
Apprentice


Joined: 25 Nov 2004
Posts: 196
Location: Germany

PostPosted: Sat Jan 14, 2006 8:26 am    Post subject: Reply with quote

tun-support has to be in the kernel.
Back to top
View user's profile Send private message
electroarts
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2004
Posts: 86

PostPosted: Sun Jan 15, 2006 7:22 pm    Post subject: Reply with quote

OK, I compiled a new kernel with all the required stuff, except:

Code:
"    Socket Filtering (CONFIG_FILTER)"


which doesn't exist in my config file (2.6.14-gentoo-r2). I found other Packet and IP table filter settings and turned them on, so I assume they do the same. Kernel config available on request.

Is there a recommended kernel for MOL?

Now, I still have trouble. I get the MOL boot screen, which lasts for several minutes, then the OSX startup srcreen (with progress bar), the a nice blue screen that starts with a moveable mouse cursor. The mouse cursor goes away next, and I get the spinning startup icon again. If I wait long enough, I get a Darwin shell and more of the same com.apple.mDNSResponder errors.

Output follows, further help deeply appreciated. Please note that CTL+c was used to kill the running process at the end, and it is not a crash:

Code:
# startmol -X
Mac-on-Linux 0.9.71-pre7 [Jan 15 2006 16:48]
Copyright (C) 1997-2004 Samuel Rydh
Starting MOL session 1
Running in PowerPC 7400 mode, 512 MB RAM
Timebase: 18.43 MHz, Bus: 73.72 MHz, Clock: 1666 MHz
Using USB mouse on /dev/input/mice
OHCI USB controller registered
Xlib: connection to ":0.0" refused by server
Xlib: Invalid MIT-MAGIC-COOKIE-1 key
Could not connect to X server :0.0
Fullscreen video on VT 8.
Could not open '/var/lib/mol/console.kbd'
Video driver(s): [console_video]

     320* 200, depth 8,15,32   { 85.1 } Hz
     320* 240, depth 8,15,32   { 85.0 } Hz
     400* 300, depth 8,15,32   { 99.2 } Hz
     640* 400, depth 8,15,32   { 92.4 } Hz
     640* 480, depth 8,15,32   { 59.9, 72.1, 74.9, 89.9, 99.7 } Hz
     720* 576, depth 8,15,32   { 49.9 } Hz
     768* 576, depth 8,15,32   { 75.0 } Hz
     800* 600, depth 8,15,32   { 56.2, 60.3, 70.0, 72.1, 74.9, 89.9, 99.9 } Hz
    1024* 768, depth 8,15,32   { 60.0, 70.0, 72.2, 75.0 } Hz
    1152* 768, depth 8,15,32   { 54.7 } Hz
    1280* 854, depth 8,15,32   { 60.0 } Hz

Autoswitching to console
DHCP nameserver exported: 217.237.151.33
Ethernet Interface 'tun-<tun1>' @ 00:00:0D:EA:DB:EE

    ip/mask: 192.168.41.2/255.255.255.0  gw: 192.168.41.1
    broadcast: 192.168.41.255  nameserver: 192.168.41.1

ALSA sound driver (device 'default')
ALSA: failed to setup mixer

    CD    /dev/cdrom       CD/DVD         <read-only>   ------
    Unembedded HFS+ /dev/hda4                       <read-only>  16256 MB BOOT
----> /dev/hda2 might be a boot-strap partition.
------> /dev/hda4 is linux-mounted with write privileges.
Could not open '/dev/hda4' with read-write permissions
----> /dev/hda5 might be a boot-strap partition.
----> /dev/hda8 might be a boot-strap partition.
------> /dev/hda9 is linux-mounted with write privileges.
Could not open '/dev/hda9' with read-write permissions
No volumes found in '/dev/hda'
No volumes found in '/dev/hdb'
No volumes found in '/dev/sda'
No volumes found in '/dev/sdb'

SCSI devices:

    SCSI  /dev/cdrom       [CDROM/DVD driver]


>> ==================================================
>> MacOS X Boot Loader 0.9.70 [96MB memory map patch]
>> Candidate boot volume: /mol-blk@0/disk@0:0
>> /mol-blk@0/disk@0:0,\mach_kernel (4330344 bytes)
>> /mol-blk@0/disk@0:0,\System\Library\Extensions.mkext
>> ==================================================

<*> IRQ vectorCanBeShared 3
<*> IRQ vectorCanBeShared 2
<*> Block Driver v1.1
<*> SCSI driver v1.03
<*> IRQ vectorCanBeShared 6
<*> IRQ vectorCanBeShared 4
<*> IRQ vectorCanBeShared 24
Mounting MOL driver disk
+ Video Driver v1.12
Signal INT
One more to kill emulator
cleaning up...
Terminating threads...
DONE


Also, ifconfig shows that tun0 is up while MOL is running:

Code:
# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:11:24:41:99:1E 
          inet addr:192.168.0.2  Bcast:192.168.0.255  Mask:255.255.255.0
          inet6 addr: fe80::211:24ff:fe41:991e/64 Scope:Link
          UP BROADCAST NOTRAILERS RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:640 errors:0 dropped:0 overruns:0 frame:0
          TX packets:600 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:510791 (498.8 Kb)  TX bytes:99955 (97.6 Kb)
          Interrupt:41 Base address:0xb000

lo        Link encap:Local Loopback 
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)

tun1      Link encap:Ethernet  HWaddr 1E:98:90:70:51:57 
          inet addr:192.168.41.1  Bcast:192.168.41.255  Mask:255.255.255.0
          inet6 addr: fe80::1c98:90ff:fe70:5157/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:500
          RX bytes:0 (0.0 b)  TX bytes:5 (5.0 b)
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Jan 15, 2006 11:00 pm    Post subject: Reply with quote

Well, first of all, I'd check /etc/mol/molrc.osx. It looks like you haven't specified exactly which device to boot from, so it's seaching for bootable devices. Configure it correctly so that only your OSX partition is checked to be booted from.

Next, it looks like you currently have /dev/hda4 mounted in Linux, which is why MOL is telling you that it can't open the partition in R/W mode. Make sure you do not have the partition mounted in Linux so that MOL can read and write and your problem should go away.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
electroarts
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2004
Posts: 86

PostPosted: Sun Jan 15, 2006 11:39 pm    Post subject: Reply with quote

Unmounted /dev/hda4 and tried again. This time MOL can mount it RW, but I get the same result--Darwin console with DNSResponder errors.

My /etc/mol/molrc.osx points only to /dev/cdrom and /dev/hda4, with /dev/hda4 being the partition with the OSX installation. Should I be pointing it to a different (bootstrap?) partition?

Second question: how do I get MOL to boot in a moveable window instead of full-screen? Right now, when I hit CTL+F7, I lose the MOL window and can't get back to it.
Back to top
View user's profile Send private message
electroarts
Tux's lil' helper
Tux's lil' helper


Joined: 03 Jan 2004
Posts: 86

PostPosted: Sun Jan 15, 2006 11:47 pm    Post subject: Reply with quote

Got it! It was the bootstrap on /dev/hda2 that needed to be booted from.

My fullscreen question still stands--how do I run MOL in a window instead of fullscreen? I think there is something wrong with my keyboard configuration, because outside of MOL, CTL+any F key gives gibberish in the terminal but does not change back to MOL, or to console-mode for that matter.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Jan 16, 2006 1:55 am    Post subject: Reply with quote

Well, first off, you really shouldn't be booting from the bootstrap partition, that's wrong. You *should* be booting from your OSX install partition.

As for the fullscreen/windowed option, you need to build with the X useflag and then disable the console video, see /etc/mol/molrc.video for more details. When running in Fullscreen on a framebuffer, you can switch to and from MOL using the ctrl + alt + FX where FX is the function key for the terminal. For instance, if I start mol from X, I can switch back to X from MOL using ctrl + alt + f7, then back to MOL using ctrl + alt + f8.

Have fun!
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC All times are GMT
Page 1 of 1

 
Jump to:  
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