MOL Networking Follow-Up
Henry A. Leinhos
henry at leinhos.com
Fri Mar 25 19:03:13 MST 2005
Tommy Trussell wrote:
>On Fri, 25 Mar 2005 19:05:29 -0500, Henry A. Leinhos <henry at leinhos.com> wrote:
>
>
>>I'm running YellowDog Linux 4.0.1:
>>mol-0.9.71-0.ydl.1
>>mol-kmods-0.9.71-0.ydl.4
>>kernel-2.6.9-1.ydl.8
>>kernel-2.6.10-1.ydl.1
>>
>>Plus I've tried the 2.6.10 Yellowdog kernel tree from ppckernel.org, as
>>well as the rsync tree of mol. 2 patches have been posted on the
>>Yellowdog lists: one dealing with an alloc.h problem, and the other with
>>the sheep_net driver.
>>
>>As I don't have Mac OS X, I can only report problems with MacOS 9 (and
>>the sheep_net driver). Others on the Yellowdog lists report that Mac OS
>>X works fine under mol.
>>
>>
>
>Obviously the various distros have some differences in packaging...
>and there is no 0.9.71 in Debian (the latest available is 0.9.70-17).
>Of course there are two kernel modules -- mol and sheep_net -- which
>have to be compiled against the same version kernel you are running,
>or you could have trouble.
>
>
>
The latest bk/rsync mol tree is versioned at 0.9.71, as I recall. The
Yellowdog package mol has the mol application itself, while the
mol-kmods package has the mol.o kernel module (the comments in the .spec
file for the rpm package states that the sheep.o kernel module was taken
out because it is generated dynamically, which I don't understand).
I've been compiling mol (application + kernel modules) directly from
source to try to get around the distro-specific issues, such that it
compiles against the installed (and configured) kernel source (mostly
2.6.10 in my case) on my system (a G4/466 digital audio powermac). My
.config-ppc file is
> #
> # Automatically generated make config: don't edit
> #
> CONFIG_PPC=y
> # CONFIG_OLDWORLD is not set
> CONFIG_FBDEV=y
> CONFIG_X11=y
> CONFIG_VNC=y
> CONFIG_XDGA=y
> CONFIG_ALSA=y
> CONFIG_OSS=y
> CONFIG_USBDEV=y
>
> #
> # Debugging
> #
> # CONFIG_DEBUGGER is not set
> # CONFIG_TTYDRIVER is not set
> # CONFIG_SCSIDEBUG is not set
> # CONFIG_DUMP_PACKETS is not set
> # CONFIG_DHCP_DEBUG is not set
> # CONFIG_HOSTED is not set
>
> #
> # Network drivers
> #
> # CONFIG_TUN is not set
> # CONFIG_TAP is not set
> CONFIG_SHEEP=y
The tun driver doesn't build anymore (I've seen on this list that mol
uses the kernel tun driver?)
I patch the source with the alloc.h patch and the sheep patch, and
everything builds ok.
When I run startmol at the console, I get:
> Mac-on-Linux 0.9.71-pre1 [Mar 5 2005 19:35]
> Copyright (C) 1997-2004 Samuel Rydh
> Starting MOL session 0
> Loading Mac-on-Linux kernel module:
> /usr/lib/mol/0.9.71/modules/2.6.10-1.ydl.1custom/mol.ko
> Loading SheepNet kernel module:
> /usr/lib/mol/0.9.71/modules/2.6.10-1.ydl.1custom/sheep.ko
> Running in PowerPC 7400 mode, 48 MB RAM
> Timebase: 33.29 MHz, Bus: 133.16 MHz, Clock: 466 MHz
> Using USB mouse on /dev/input/mice
> OHCI USB controller registered
> Could not open '/var/lib/mol/x11.kbd'
> Video driver(s): [xvideo]
>
> 640* 480, depth 8,32 { 0.0 } Hz
> 800* 600, depth 8,32 { 0.0 } Hz
> 1024* 768, depth 8,32 { 0.0 } Hz
> 1152* 864, depth 8,32 { 0.0 } Hz
> 1280*1024, depth 8,32 { 0.0 } Hz
> 1600*1200, depth 8,32 { 0.0 } Hz
>
> Ethernet Interface (port 1) 'sheep-<eth0>' @ FE:FD:DE:AD:BE:EF [nodhcp]
>
> DHCP nameserver exported: 206.15.168.70
> Ethernet Interface (port 2) 'tun-<tun0>' @ 00:00:0D:EA:DB:EE
>
> ip/mask: 192.168.40.2/255.255.255.0 gw: 192.168.40.1
> broadcast: 192.168.40.255 nameserver: 192.168.40.1
>
> ALSA sound driver (device 'default')
>
> CD /dev/cdrom CD/DVD <read-only> ------
> HFS+ /dev/hde5 Macintosh HD <rw> 6149 MB
> ----> /dev/hda2 might be a boot-strap partition.
> No volumes found in '/dev/hda'
> ----> /dev/hdb6 might be a boot-strap partition.
> ------> /dev/hdb8 is linux-mounted with write privileges.
> Could not open '/dev/hdb8' with read-write permissions
> 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]
>
>
> >> =============================================================
> >> OpenBIOS 1.0.RC1 [Mar 25 2004 17:44]
> >> Boot Disk: /pci/pci-bridge/mol-blk/disk at 0:0 [HFS+]
> >> Loading 'Mac OS ROM' from 'Macintosh HD'
> >> Timer calibration fix: 33.29 MHz [24673]
> >> boot_path: /pci at 80000000/pci-bridge at d/mol-blk at 3/disk:0/x@:
> >> Starting ELF boot loader
> >> =============================================================
>
> + Mouse Driver v1.0
> + Asynchronous Block Driver v1.4
> + Video Driver v1.12
> + SCSI SIM v1.03
> Signal INT
> One more to kill emulator
> cleaning up...
>
> Message from syslogd at localhost at Fri Mar 25 20:58:23 2005 ...
> localhost kernel: unregister_netdevice: waiting for tun0 to become
> free. Usage count = 7
Before I ^C out of it, my whole system drags to a crawl, and I get as
far as the happy mac (this is the same for an X11 window or console). I
get several of the syslogd messages, so now I suspect my problem is with
my kernel tun driver(?).
More information about the mol-general
mailing list