Need help installing network driver

[ARCHIVED] About PearPC, a mostly obsolete PPC Mac emulator for Windows and Linux to run MacOS X 10.1 up to 10.4. Using QEMU is now recommended.

Moderators: Cat_7, Ronald P. Regensburg

Locked
nutznboltz
Student Driver
Posts: 18
Joined: Thu May 20, 2004 12:45 pm

Need help installing network driver

Post by nutznboltz »

Hi,

I though about it for a minute and decided if I ran mkisofs on the driver I could make a CD-ROM image and transport it into the emulator that way. It worked but now I don't know what to do with the file. I did uncompress it into the .kext file but I don't know how to install a .kext file and double click just complained there was no application associated with that type of file.

What do I do to install Apple3Com90x.kext ?

Thanks
nutznboltz
Student Driver
Posts: 18
Joined: Thu May 20, 2004 12:45 pm

Post by nutznboltz »

Well I rebuilt the locate database ala periodic/weekly and used the locate command to find where the kexts were and put the Apple3Com90x.kext in there and it looked OK when I rebooted into single user mode.

Now on to setting up Linux

http://pearpc.sourceforge.net/netsetup.html

Hmm. I don't think there's really a reason to run from the source tree. One quick find/cpio and the stuff is in my runtime directory.

$ find scripts -depth -print | cpio -pvdum /more/MacOS
/more/MacOS/scripts/ifppc_up.setuid
/more/MacOS/scripts/Makefile
/more/MacOS/scripts/ifppc_up.setuid.o
/more/MacOS/scripts/ifppc_down.setuid
/more/MacOS/scripts/ifppc_down.setuid.cc
/more/MacOS/scripts/ifppc_down
/more/MacOS/scripts/Makefile.am
/more/MacOS/scripts/Makefile.in
/more/MacOS/scripts/ifppc_up
/more/MacOS/scripts/ifppc_down.setuid.o
/more/MacOS/scripts/ifppc_up.setuid.cc
/more/MacOS/scripts
230 blocks

tun: Failed to open /dev/net/tun: 13 (Permission denied)

Hmm. seems to need root to run complete. Wonder why setuid-root binaries are used at all then? Should I change the perms on /dev/net/tun?

once ppc is run as root:

executing 'scripts/ifppc_up.setuid' ...
********************************************************************************
UID=0
creating 3com 3c90x NIC emulation with eth_addr = de:ca:fb:ad:12:34
[CPU/MMU] new pagetable: sdr1 = 0x00300003
[CPU/MMU] new pagetable: sdr1 accepted
[CPU/MMU] number of pages: 2^15 pagetable_start: 0x00300000 size: 2^18

Boot up into single-user-mode and MAC address shows up in emulator OK.
However, ifconfig does not show the interface.
nutznboltz
Student Driver
Posts: 18
Joined: Thu May 20, 2004 12:45 pm

Post by nutznboltz »

tun: Failed to open /dev/net/tun: 13 (Permission denied)

decided to make a "tun" group

$grep tun /etc/group
tun:x:666:nutznboltz

# chown root:tun /dev/net/tun
# chmod 660 /dev/net/tun

sux that you have to logout and login again to activate a new group
nutznboltz
Student Driver
Posts: 18
Joined: Thu May 20, 2004 12:45 pm

Post by nutznboltz »

still ifconfig says "en0: no such interface"

I think the problem is the network topology must be

{emualtor 10.1.1.1} <-> {10.2.2.2 host 172.20.20.20} <-> {172.20.20.1 Internet router real-IP}

so the tun interface is point-to-point between the emulator and the host on an RFC 1918 network.

The IP numbers in the example are all RFC 1918 but they could be any on

10.0.0.0 - 10.255.255.255
172.16.0.0 - 172.31.255.255
192.168.0.0 - 192.168.255.255

If you DHCP to the Internet router (most home broadband does this) the 172.20.20.20 will be in reality whatever the DHCP address your Internet "modem" (really router or bridge) gives you.

The 10.1.1.1 <-> 10.2.2.2 must be a different network from the DHCP one (and from any other existing network your host is attached to, otherwise it can be any of the RFC 1918 ones.
nutznboltz
Student Driver
Posts: 18
Joined: Thu May 20, 2004 12:45 pm

Post by nutznboltz »

Hint: when you turn on "Remote Login" aka OpenSSH connect to your emulator using "ssh -1" since version 1 SSH uses way less CPU.

Or just go into /etc/xinetd.d and turn on telnetd.
Locked