Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Using the Airport Extreme in Linux (via MOL)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4, 5, 6  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
Cenrim
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 142
Location: Germany

PostPosted: Sat Oct 08, 2005 3:16 pm    Post subject: Reply with quote

I screwed my OS X installation a few days ago, gotta reinstall it either, so I thought about trying a pure Darwin... with portage of course! :D
(I moved my distfiles to my /data partition [HFS+] and could do the same with the portage tree, so both OS could use the same, right?)
I think could try the OS X closed source drivers with the darwin 'kernel' and boot Darwin in MOL.
no eye-candyish KisMAC, just kismet (if I can get it emerged ^^) but this will be interesting
and the OS in MOL would be less cpu-hungry I bet!

and I'm pretty sure the portage-on-macos guys are glad about every single one testing it ^^
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Oct 08, 2005 4:32 pm    Post subject: Reply with quote

koem:

Gentoo's MOL is a heavily patched MOL rsync snapshot. Fetch the MOL ebuild and all of the patches mentioned in the ebuild and use the ebuild for build directions.

Cenrim:

That'll be cool if it works, good luck! :)
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Cenrim
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 142
Location: Germany

PostPosted: Sat Oct 08, 2005 9:55 pm    Post subject: Reply with quote

w00t!
OK, nothing special, but after this whole **** with wrong md5sums and gzip-pretended .cdr, which gunzip won't gzip and my CDRW/DVD making strange noises after burning in raw mode and some errors during installation and crap it's pretty cool to get Darwin bootet in MOL at 1st try :D

to the 'business':
there is an device en1 but I'm not sure it's the AE-device...
of course, it's the only real device, darwin can access through MOL, so no en0 (ethernet) and fw0 (or whatever the firewire-dev is named)

I will set it 'up' and watch the current entry in /proc/pmu/battery_0, from pocking around with OS X in MOL I know the value goes ~200 up with active airport...

...

hmm... it's ~100
Darwin's en1 down:
Code:
$ cat /proc/pmu/battery_0                                       

flags      : 00000011
charge     : 4164
max_charge : 4281
current    : -1221   <--
voltage    : 12194
time rem.  : 12277

Darwin's en1 up:
Code:

 $ cat /proc/pmu/battery_0                                       

flags      : 00000011
charge     : 4135
max_charge : 4281
current    : -1123   <--
voltage    : 12175
time rem.  : 13255


but you gotta remember, the device does nothing, it's just turned on!

and a pure, fresh darwin 8.01 idling inside of MOL needs less cpu than init ^^

about Darwin:
inside of MOL it boots pretty fast² (of course, no services startet!) and uses ~1.5GB of diskspace
I booted the CD and made a 'real' installation to the harddisk, not just inside of MOL to a image and it didn't anything evil to my yaboot, gentoo booted cleanly and I added an "darwin=/dev/hdaX" line to my yaboot.conf, so I can try to boot it

btw: WTF? it's midnight already?! 8O
I gotta go home and sleep and stand up early and learn and... argh.. *sigh*

good night guys!

²) iBook G4 1.2GHz, running at 600MHz with 96MB for MOL
Back to top
View user's profile Send private message
koem
n00b
n00b


Joined: 08 Oct 2005
Posts: 5

PostPosted: Sun Oct 09, 2005 12:50 am    Post subject: Reply with quote

JoseJX wrote:
koem:

Gentoo's MOL is a heavily patched MOL rsync snapshot. Fetch the MOL ebuild and all of the patches mentioned in the ebuild and use the ebuild for build directions


If I knew how to fetch all this via debian I would have done it yet.

koem
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Oct 09, 2005 1:05 am    Post subject: Reply with quote

I updated the MOL release with fixes compiling with GCC 4 and better Tiger support

I've just rolled a 0.9.71_pre3 release of MOL to make it easier for users from other distros. This contains all of the Gentoo patches and should work for you in place of the actual release.

You can get the release here:
http://dev.gentoo.org/~josejx/mol-0.9.71_pre3.tar.bz2

Hope that helps, feel free to ask if you have questions. (Unless it's about building on other distros, I can't really help you there.)
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml


Last edited by JoseJX on Mon Oct 10, 2005 8:40 pm; edited 2 times in total
Back to top
View user's profile Send private message
bz31
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2005
Posts: 108

PostPosted: Sun Oct 09, 2005 7:48 pm    Post subject: Reply with quote

Have you a patch for using gcc-4 ?
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Mon Oct 10, 2005 1:20 am    Post subject: Reply with quote

I've never tried building it with gcc-4, but if you have some error messages I'll take a look. Email me at my dev email address with the errors.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
bz31
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2005
Posts: 108

PostPosted: Mon Oct 10, 2005 6:17 am    Post subject: Reply with quote

JoseJX wrote:
I've never tried building it with gcc-4, but if you have some error messages I'll take a look. Email me at my dev email address with the errors.
I am using debian unstable.
Your mol-0.9.71_pre1-r3.ebuild works on my ibook g4 1.2 Ghz (I'll try your mol-0.9.71_pre2.tar.bz, thanks), but I must using gcc-3.4 and build it under root.

I'll try gcc-4 (the default debian unstable gcc) and email you the errors message, thanks again.
Back to top
View user's profile Send private message
kohzak
n00b
n00b


Joined: 10 Oct 2005
Posts: 7

PostPosted: Mon Oct 10, 2005 5:59 pm    Post subject: Reply with quote

Hi.

I have followed instruction and mol work fine, patch ok, but osx don't find my airport card.
No airport hardware found.

There is no other solution than reinstall Osx ?
Back to top
View user's profile Send private message
Cenrim
Tux's lil' helper
Tux's lil' helper


Joined: 04 Dec 2004
Posts: 142
Location: Germany

PostPosted: Mon Oct 10, 2005 7:48 pm    Post subject: Reply with quote

did you configure MOL for pci-proxying, kohzak?
Back to top
View user's profile Send private message
kohzak
n00b
n00b


Joined: 10 Oct 2005
Posts: 7

PostPosted: Tue Oct 11, 2005 9:03 am    Post subject: Reply with quote

yes,

i have

enable_pciproxy: yes
pci_proxy_device: 0001:10:12.0


in /etc/mol/molrc.osx

koh
Back to top
View user's profile Send private message
kohzak
n00b
n00b


Joined: 10 Oct 2005
Posts: 7

PostPosted: Tue Oct 11, 2005 9:36 am    Post subject: Reply with quote

there is anything else to do ?
Back to top
View user's profile Send private message
koem
n00b
n00b


Joined: 08 Oct 2005
Posts: 5

PostPosted: Tue Oct 11, 2005 9:40 am    Post subject: Reply with quote

- Giving mol 256MB of memory helped in my configuration
- is the pci-address 0001:10:12.0 the right one (lspci)?
- in make menuconfig: did you enable pci proxying?

koem
Back to top
View user's profile Send private message
kohzak
n00b
n00b


Joined: 10 Oct 2005
Posts: 7

PostPosted: Tue Oct 11, 2005 10:02 am    Post subject: Reply with quote

1 - how to you setup ram for mol ?

2 - yes
lspci

0001:10:12.0 Network controller: Broadcom Corporation BCM4306 802.11b/g Wireless LAN Controller (rev 03)


3 -
cat /boot/config-2.6.12 | grep PCI
# CONFIG_CPCI690 is not set
CONFIG_PCI=y
CONFIG_PCI_DOMAINS=y
CONFIG_PCI_LEGACY_PROC=y
CONFIG_PCI_NAMES=y
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_SHARE_IRQ=y
CONFIG_BLK_DEV_IDEDMA_PCI=y
CONFIG_IDEDMA_PCI_AUTO=y
# CONFIG_IEEE1394_PCILYNX is not set
# CONFIG_NET_PCI is not set
# Wireless 802.11b ISA/PCI cards support
# Prism GT/Duette 802.11(a/b/g) PCI/Cardbus support
# CONFIG_RADIO_GEMTEK_PCI is not set
# PCI devices
# CONFIG_SND_YMFPCI is not set
# CONFIG_SND_CMIPCI is not set


It seems that i don't have pci proxy option in my kernel..
Do i have to get a new kernel ?

koh
Back to top
View user's profile Send private message
koem
n00b
n00b


Joined: 08 Oct 2005
Posts: 5

PostPosted: Tue Oct 11, 2005 10:08 am    Post subject: Reply with quote

kohzak wrote:
1 - how to you setup ram for mol ?


I think it is in /etc/mol/molrc.osx. Do a fgrep 96 /etc/mol/* to find it.

kohzak wrote:
3 -
cat /boot/config-2.6.12 | grep PCI


no, I mean "make menuconfig" in the mol directory. It has an own menuconfig dialog. Or didn't you compile it yourself?

btw. I had to compile a Kernel with gcc-3.4 and mol with gcc-3.4 also.

koem
Back to top
View user's profile Send private message
kohzak
n00b
n00b


Joined: 10 Oct 2005
Posts: 7

PostPosted: Tue Oct 11, 2005 10:23 am    Post subject: Reply with quote

i have installed mol with

apt-get install mol

So i'have tried

cd /etc/mol/
make menuconfig

"No rulez to create target menuconfig" (translate from french, so i'm not sure about the translation :)

koh
Back to top
View user's profile Send private message
bz31
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2005
Posts: 108

PostPosted: Tue Oct 11, 2005 10:40 am    Post subject: Reply with quote

kohzak wrote:
apt-get install mol


apt-get is for debian. :)

For debian, I wrote what I did (in french) here.


Last edited by bz31 on Fri Oct 21, 2005 4:36 pm; edited 1 time in total
Back to top
View user's profile Send private message
kohzak
n00b
n00b


Joined: 10 Oct 2005
Posts: 7

PostPosted: Tue Oct 11, 2005 10:42 am    Post subject: Reply with quote

yes, i'm under debian :p

So i'm going to follow your instruction and try (nice it's in french ! :)

koh
Back to top
View user's profile Send private message
kohzak
n00b
n00b


Joined: 10 Oct 2005
Posts: 7

PostPosted: Tue Oct 11, 2005 11:24 am    Post subject: Reply with quote

ok.

every things work fine until i try to launch mol

startmol -X
Mac-on-Linux 0.9.71-pre1 [oct 11 2005 13:05]
Copyright (C) 1997-2004 Samuel Rydh
Starting MOL session 1
Removing stale lockfile /var/lock/mol-1
Fatal error: The MOL kernel module is not loaded

I have mol module source in /usr/src/modules/mol/
so make && make install

And try again startmol -X but have the same error..
Back to top
View user's profile Send private message
koem
n00b
n00b


Joined: 08 Oct 2005
Posts: 5

PostPosted: Tue Oct 11, 2005 11:34 am    Post subject: Reply with quote

bz31 wrote:
For debian, I wrote what I did (in french) here.


I think you forgot "make install-modules" after compiling mol.

koem
Back to top
View user's profile Send private message
bz31
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2005
Posts: 108

PostPosted: Tue Oct 11, 2005 11:45 am    Post subject: Reply with quote

kohzak,
I am not sure if we should discuss debian problem here in a gentoo forum.
For your problem, check if your kernel and mol are built using the same gcc version.
PS: email me or go to http://forum.macbidouille.com/index.php?showtopic=141571

koem
Il seems we don't need "make install-modules".
Back to top
View user's profile Send private message
JoseJX
Developer
Developer


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Wed Oct 12, 2005 5:53 pm    Post subject: Reply with quote

I've uploaded another tarball here: http://dev.gentoo.org/~josejx/mol-0.9.71_pre4.tar.bz2

It contains a few more fixes from bz31 and other minor things for other distro users. I'll keep updating this tarball as I fix things untill there's a Gentoo release with the same version.

If you have other patches you'd like to see included, please let me know via my gentoo email address. Thanks.

Changelog for all of the MOL versions up to now:
mol-0.9.71_pre4:
* Big filesystem fix is applied in build system instead of the ebuild
* Tiger nvram fix is applied in the build system instead of the ebuild
* Fix for improper binutils handling of some ASM (thanks Bin Zhang)
* Fixed versions and a few minor typos
mol-0.9.71_pre3:
* Tiger Acceleration fix by adding NW compatible NVRAM image
* GCC4 compile fixes
mol-0.9.71_pre2:
* Based on MOL BK development pull
* Build fix for 2.6.9
* Build fix for 2.6.10
* Build fix for 2.6.12
* Scheduler Fixes (fixes lag in newer kernels)
* .tmp_offset patch fixes sandbox issues on Gentoo
* Tiger support (Mattias Nissler's patch)
* PCI Proxy support
* MOL module loading name fix
* Tiger 8GB Disk install patch
* 96MB BootX fix
* XSHM fix
* Sheep building typo fixed
* Probably other minor things

Known Issues:
* Jaguar support is broken (Doesn't boot, probably a driver issue, use pre1-r3 if you need it)
* Installing Panther/Jaguar is broken with the included nvram file (need to make it generic).
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
Fugee47
Apprentice
Apprentice


Joined: 25 Nov 2004
Posts: 196
Location: Germany

PostPosted: Thu Oct 13, 2005 7:06 pm    Post subject: Reply with quote

when i start mac osx via mol it doesnt find the airport-card !!
i have extracted the driver from the install-cd and patched it (the patch said it was successfull).
The newest mol is installed with the pci-use-flag and pci-proxying is enabled in the mol-config.
I dont know whats wrong ...
Ethernet is working via the tun-device ....


maybee someone has a solution ??
Back to top
View user's profile Send private message
bz31
Tux's lil' helper
Tux's lil' helper


Joined: 20 Apr 2005
Posts: 108

PostPosted: Thu Oct 20, 2005 8:35 pm    Post subject: Linux applications --> AirportExtreme --> Internet Reply with quote

Some OSX config information for linux_applications --> AirportExtreme --> Internet:

In OSX/MOL, go to SystemPreferences:Sharing. Under Internet : “Share your connection from: AirPort”, choose “Ethernet Adaptor (en3)” (It's en3 for me, but maybe en2 for you).

* If you don't use the built-in firewall. OK. It works.
Code:
$ sudo ipfw list
00010 divert 8668 ip from any to any via en1
65535 allow ip from any to any
(no firewall, only natd listens to the port 8668)

* If you start the built-in firewall.
Code:
$ sudo ipfw list
00010 divert 8668 ip from any to any via en1
02000 allow ip from any to any via lo*
02010 deny ip from 127.0.0.0/8 to any in
02020 deny ip from any to 127.0.0.0/8 in
02030 deny ip from 224.0.0.0/3 to any in
02040 deny tcp from any to 224.0.0.0/3 in
02050 allow tcp from any to any out
02060 allow tcp from any to any established
12190 deny tcp from any to any
65535 allow ip from any to any
(line 2 to last line is the built-in firewall's default setting).
You should reconfigure the OSX firewall. For example
Code:
$ sudo ipfw add 00020 allow ip from any to any via en3
Note : This disable the built-in firewall's GUI config, if you want use it again, you must first do a "sudo ipfw -f flush", or reboot OS X.
Back to top
View user's profile Send private message
raimundex
n00b
n00b


Joined: 24 Oct 2005
Posts: 18

PostPosted: Mon Oct 24, 2005 2:40 am    Post subject: mol Reply with quote

add this lines on /etc/mol/molrc.osx
enable_pciproxy: yes
pci_proxy_device: 0001:10:12.0
and startmol.
i have this error
PCIPROXY: warning: PCI bus mastering not working with MOL
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
Goto page Previous  1, 2, 3, 4, 5, 6  Next
Page 3 of 6

 
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