Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
MOL networking
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
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Tue Nov 29, 2005 7:12 pm    Post subject: MOL networking Reply with quote

An aid to those having trouble.
The package does not place the tun.ko driver in the correct place.
Instead the driver is placed in
/usr/lib/mol/v#/modules/tun.ko

It needs to go in
/usr/lib/mol/v#/modules/`uname -r`/tun.ko

In addition the following needs to be enabled in your kernel

ipt_MASQUERADE 3236 1
iptable_nat 7844 1
ip_nat 18008 2 ipt_MASQUERADE,iptable_nat
ip_conntrack 50804 3 ipt_MASQUERADE,iptable_nat,ip_nat
ip_tables 24128 2 ipt_MASQUERADE,iptable_nat
appletalk 39728 2
psnap 3720 1 appletalk
llc 7104 1 psnap

I have them as modules.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Tue Nov 29, 2005 7:28 pm    Post subject: Reply with quote

The tun.ko module is not required by MOL (on 2.6 kernels anyway), in the latest MOL it should not build tun.ko. You do need to have tun/tap support in your kernel for MOL networking to work.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Tue Nov 29, 2005 9:41 pm    Post subject: Reply with quote

The tun.ko module works perfectly well with 2.6.13 and 2.6.14. For networking you need to have it where mol can find it. It will automatically load when you start mol. The alternative, sheep, does not work.

EDIT:
My system is a powermac G4. Perhaps the sheep driver is needed for other systems.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Nov 30, 2005 3:17 am    Post subject: Reply with quote

Sheep is for OS9 and does not work with OSX. I'm certain the that the tun.ko module built by MOL will work, the build process builds the tun module from the current kernel sources (it links it in, the included sources are for 2.4 kernels), so it's useless. Just build it in your kernel or as a module with your current kernel like the ebuild suggests now.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Wed Nov 30, 2005 5:00 am    Post subject: Reply with quote

Is the faq out of date or is there a further link there? I see an option in .config for a tun/tap but not in the faq.
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Nov 30, 2005 5:42 am    Post subject: Reply with quote

The FAQ is out of date. I just recently changed MOL's behaviour a few days ago, I'll fix the FAQ when I get a chance. The ebuild does report the correct information after emerging though.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Sat Dec 03, 2005 2:37 am    Post subject: Reply with quote

I was just glancing through the ebuilds and was wondering at the purpose of this line

MAKEOPTS="${MAKEOPTS} -j1"
Back to top
View user's profile Send private message
zeekec
n00b
n00b


Joined: 24 Feb 2004
Posts: 56
Location: Athens, GA, USA

PostPosted: Mon Dec 05, 2005 2:50 pm    Post subject: Reply with quote

davidgurvich wrote:
I was just glancing through the ebuilds and was wondering at the purpose of this line

MAKEOPTS="${MAKEOPTS} -j1"


Off topic, but this line prevents parallel builds. The argument of -j is the number of simultaneaous jobs to start. MAKEOPTS is set in make.conf.

Erik
_________________
Against stupidity the very gods
Themselves contend in vain.
-Johann Christoph Friedrich von Schiller (1801)
Back to top
View user's profile Send private message
davidgurvich
Veteran
Veteran


Joined: 23 Apr 2004
Posts: 1063

PostPosted: Mon Dec 05, 2005 4:25 pm    Post subject: Reply with quote

From the line, it appears that MAKEOPTS can use multiple settings. Both the original value of MAKEOPTS in /etc/make.conf and the value assigned -j1.

Since it tells the compiler how many builds to run in parallel that doesn't make sense to me.

Let's say I have MAKEOPTS of -j5. How would the compiler do 5 parallel builds and 1 build? Or is it that the final value overrides the initial value?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Dec 05, 2005 4:39 pm    Post subject: Reply with quote

Indeed, the final value overrides the previous. It's done this way so additional parameters are preserved.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
nokilli
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 195

PostPosted: Wed Dec 07, 2005 5:18 am    Post subject: Reply with quote

These latest versions of MOL have broken my ability to run MacOS. Panther runs beautifully however, and I can always run classic from with that.

At first it looked like the problem was with networking... it would complain about not being able to find the sheep driver. I fixed that by doing
Code:
USE="sheep" emerge mol
but then it failed later in the process in something called OpenBIOS.

FWIW, I followed the recommendations in the other thread to
Code:
emerge -C mol
rm -rf /usr/lib/mol
rm -rf /var/lib/mol
and then reemerged mol without USE="sheep" and didn't encounter the network error. Alas, it still hangs in OpenBIOS.

This is not a priority, I'm perfectly happy with Panther-only... I'm just providing this for info.

Here's what MOL gives me when I try to run MacOS:
Code:
Mac-on-Linux 0.9.71-pre5 [Dec 6 2005 21:50]
Copyright (C) 1997-2004 Samuel Rydh
Starting MOL session 0
Running in PowerPC 750 mode, 128 MB RAM
Timebase: 24.96 MHz, Bus: 99.86 MHz, Clock: 500 MHz
Using USB mouse on /dev/input/mice
OHCI USB controller registered
Fullscreen video on VT 8.
Could not open '/var/lib/mol/console.kbd'
Cache enabled for console-video
Video driver(s): [console_video]

    1024* 768, depth 8,15,32   { 0.0, 60.0 } Hz

Autoswitching to console
Ethernet Interface (port 1) 'sheep-<eth0>' @ FE:FD:DE:AD:BE:EF  [nodhcp]

DHCP nameserver exported: 200.23.242.196
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')
ALSA: failed to setup mixer

----> (disk_open) Opening /dev/cdrom: No such file or directory
    HFS   /dev/hda14       Dogcow         <rw> 11958 MB BOOT

SCSI devices:

    <No SCSI Devices>

>> =============================================================
>> OpenBIOS 1.0.RC1 [Mar 25 2004 17:44]
>> nvram error detected, zapping pram
>> Searching <NULL> for a 'Mac OS ROM' file
>> Boot Disk: /pci/pci-bridge/mol-blk/disk@0:0 [<NULL>]
>> Loading '<NULL>' from '<NULL>'
>> ----> \uffff\uffffp\uffff\uffff \uffff\uffff\uffff\uffff\uffff\uffff\uffff\uffff is not an ELF image
cleaning up...
Terminating threads...
DONE
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Dec 07, 2005 7:14 am    Post subject: Reply with quote

You haven't provided enough information to really debug the problem. Are you booting it from it's own partition? Does it still boot natively? Are you sure you're using the correct OF Device Tree? The newer builds do identify as New World machines instead of OW machines, make sure you're booting with a New World OF Device Tree.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
nokilli
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 195

PostPosted: Wed Dec 07, 2005 8:51 am    Post subject: Reply with quote

Yes, MacOS 9 has it's own partition, and it boots natively, as well as under Panther. Also, MacOS 9 *was* working back before we started getting the Tiger-patched versions of MOL (well into 2.6)

This is a Pismo, so it's New World. Dunno about the OF device tree, thought all I had to do was specify the partitiion via molrc.macos (which I do as /dev/hda14 and, again, which used to work).
Back to top
View user's profile Send private message
nokilli
Apprentice
Apprentice


Joined: 25 Feb 2004
Posts: 195

PostPosted: Sun Dec 25, 2005 11:53 pm    Post subject: Reply with quote

OK, I guess I was lying. Just now tried to boot into Mac OS 9, and it just redisplayed the boot menu. Tried it again and the screen went dark; had to reset.

I could've sworn I had tested it before, but what with Mac OS X Classic Mode and MOL and Virtual PC and VNC and so forth it can sometimes be hard to know exactly what it is you're running.

Anyways, reinstalling Mac OS 9 now lets me access it without event from Linux using MOL. So that's one problem solved.

Now I want to figure out why it got corrupted in the first place. I rarely do anything with Mac OS 9, and while in the distant past the OS was prone to crashing hard and corrupting data that sort of thing hasn't happened to me now for years (can't remember the last time I even saw Macsbug.)

The one thing I did do which strikes me as being a likely candidate is copy a big file from within Linux to the partition hosting Mac OS 9. The file size was maybe 5GB. I recall also having to rename the file as for some reason the original name was truncated.

Does this seem a likely cause for my problems? On the one hand, it would be nice to know, but on the other hand, one of the ways I justify keeping Mac OS 9 around is as a kind of spare partition where I can copy big files when the need arises. If I can't have confidence in that anymore, well, that would suck.
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