Networking problem in PearPC, Windows 8.1 64-bit

[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
spapakons
Space Cadet
Posts: 2
Joined: Sat Apr 04, 2015 9:54 pm

Networking problem in PearPC, Windows 8.1 64-bit

Post by spapakons »

Hello!

I have recently downloaded PearPC in order to install Mac OS X 10.4 Tiger and experiment with. I have already used 10.6 Snow Leopard in a hackintosh, but I wanted to examine features and compatibility in 10.4 Tiger since a friend of mine has an old PowerPC Mac with Tiger. After too many trials and errors I managed to make networking work (with Realtek 8139) only a couple of times. I took the chance and upgraded up to 10.4.11, no new upgrades are available. However, every time I restarted, the network wouldn't work and it was too difficult to make it work again. Now doesn't work at all. I start PearPC from a command prompt with administrator rights, just in case, and I see the log in the command prompt window. When I open Safari or Network Preferences, I get a message like "RTL8139 I/O error internal buffer wrapped". I have installed latest OpenVPN for 64-bit Windows, but never made network work again. I use these lines in the configuration file:

pci_rtl8139_installed = 1
pci_rtl8139_mac = "de:ad:ca:fe:12:34"

I have shared my LAN connection with the TAP-WIN32 in which the IP is manually set to 192.168.8.1 and the subnet mask to 255.255.255.0 In Mac OS, Network Preferences, I set manually the IP to 192.168.8.2, the subnet mask to 255.255.255.0, the gateway to 192.168.8.1 and the DNS to 195.170.1.1 (OTENET Greece). I get the error message that I am not connected to the internet. Please give me a step-by-step guide of what I have to do to make it work because a computer without internet isn't very useful!

Another question: I have used a 6GB disk image for the OS, but now it has too little free space and I can virtually add no other app such as office. Can I make the disk image bigger? Should I create a bigger one and clone the drive there using Super Duper or similar? How can I make the new disk image bootable afterwards?

Thank you.
User avatar
Cat_7
Expert User
Posts: 6145
Joined: Fri Feb 13, 2004 8:59 am
Location: Sittard, The Netherlands

Re: Networking problem in PearPC, Windows 8.1 64-bit

Post by Cat_7 »

Hi,

PearPC is very unstable when using networking the way you are trying to get it going.
What you can do is use the Redscorp version of Pearpc.
It allows you to use winpcap as a networking solution.
Install winpcap from https://www.winpcap.org/install/

Download the redscorp pearpc program and pcap-list.exe from here:
http://www.open.ou.nl/hsp/downloads2/Re ... p-list.zip

Edit your config file for pearpc.
I paste an example of a working config file below. Please note you have to add the "pci_ide1..." entries and change things at the network section. Use the pcap-list.exe program to find the parameter needed at the entry for pci_rtl8139_interface.

This allows DHCP in Mac OS X.

To create a bigger disk image, run a command prompt as administrator and run:
fsutil file createnew Tiger20GB.img 20643840000

Add the Tiger20GB.img file as slave in the config file. When you start PearPC, OSX will notice the new disk. Format the disk with DiskUtility. And use restore option to copy the whole 6GB disk (source) to the new 20GB disk (destination). This should make the new disk bootable. Wait for the restore process to finish....(this takes forever). Then shut down OSX and change the config file so the new 20G disk is used as startup disk.

## PearPC Configuration File

##
## Start Resolution
##
## (clients that use video.x can change the resolution at runtime,
## so this would be used only for starting up)
##
## format: "(width)x(height)x(depth)"
## or "(width)x(height)x(depth)@(frequency)"
##
## depth can only be 15 or 32
##
## default: "800x600x15"
##

ppc_start_resolution = "1024x768x15"

##
## Set this to non-zero for turning on fullscreen mode on startup.
##

ppc_start_full_screen = 0

##
## Redraw interval (in ms)
## must be between 10 and 500
##
## If you set this higher, PearPC will spend less time doing redraws
## (and so run faster) but feel less responsive. You should adjust
## this to your computer speed and personal preference.
##

redraw_interval_msec = 15

##
## Key codes
##

key_compose_dialog = "F11"
##key_change_cd_0 = "none"
#key_toggle_mouse_grab = "F12"
key_toggle_full_screen = "Alt+Return"

##
## Loader
##

##
## Boot method
## this can be
## 1. "auto", prom will boot the first bootable partition found (default)
## 2. "select", prom will show you a list of bootable partitions
## 3. "force", prom will load and boot the local file prom_loadfile
##

prom_bootmethod = "select"

## Example of how to use "force":

##prom_bootmethod = "force"
##prom_loadfile = "test/yaboot"
##prom_env_bootpath = "disk"

##
## bootargs: don't change unless you know what you are doing
## machargs: set to "-v" to get a verbose startup
##

##prom_env_bootargs = ""
prom_env_machargs = "-v"
prom_driver_graphic = "video.x"

## This will adjust the position of the initial page table (don't change)

##page_table_pa = 104857600

##
## CPU Config
##
## Processor Version Register
## Defaults to 0x00088302 (G3)
## Set to 0x000c0201 to enable G4 emulation
## Only change if you know want you are doing
##

cpu_pvr = 0x00088302 #G3
##cpu_pvr = 0x000c0201 #G4


##
## Main memory (default 128 MiB)
## must be >= 64 MiB
##
memory_size = 0x20000000 ## 512MB RAM
##memory_size=0x8000000

##
## IO Devices
##

##
## PCI IDE Config
##
## Drive type will be set according to file extension:
## .img: Harddisk (filesize must be multiple of 516096)
## .iso: CD-Rom
## Or you can override this by specifying the type via
## pci_ide0_master_type / pci_ide0_slave_type
##
## Valid drive types are:
## hd: A hdd image should be specified
## e.g. "test/imgs/linux.img"
## cdrom: A cdrom image should be specified
## For Linux or BeOS a cdrom device can be specified as well
## e.g. "/dev/cdrom"
## nativecdrom: Platform dependant
## Win (SPTI): drive letter, e.g. "d:\"
## Win (ASPI): SCSI host adapter,target,lun e.g. "2,0,1"
## BeOS (ATAPI): device path, e.g. "/dev/disk/ide/atapi/0/master/0/raw"

pci_ide0_master_installed = 1
pci_ide0_master_image = "pearpc-6gb_tiger.img"
pci_ide0_master_type = "hd"

pci_ide0_slave_installed = 0
pci_ide0_slave_image = ""
pci_ide0_slave_type = "cdrom"

#Redscorp second ide channel additions that have to be available:
pci_ide1_master_installed = 0
pci_ide1_master_image = ""
pci_ide1_master_type = "hd"

pci_ide1_slave_installed = 0
pci_ide1_slave_image = ""
pci_ide1_slave_type = "cdrom"



##
## Network
##
## Choose one of the cards

#Redscorp PCAP additions: pci_rtl8139_type (should be "pcap"), pci_rtl8139_interface (should be found by using pcap-list.exe and copying the entry at the network device currently in use)

pci_3c90x_installed = 0
pci_3c90x_mac = "de:ad:ca:fe:12:34"
pci_3c90x_type = "tap"
pci_3c90x_interface = ""

pci_rtl8139_installed = 1
pci_rtl8139_mac = "de:ad:ca:fe:12:34"
pci_rtl8139_type = "pcap"
pci_rtl8139_interface = "\Device\NPF_{AAA4A94C-952A-4C94-9836-D04D4C474051}"

##
## USB
##
pci_usb_installed = 1

##
## NVRAM
##
nvram_file = "nvram"
spapakons
Space Cadet
Posts: 2
Joined: Sat Apr 04, 2015 9:54 pm

Re: Networking problem in PearPC, Windows 8.1 64-bit

Post by spapakons »

Just tried your suggestions for LAN. It worked at once in DHCP without any issues! Thanks a lot! I will clone the disk some other time since it's rather late now (0:40 local time) and I should be sleeping. One weird thing is that it asked for 3Com to be defined, even if it set to 0 (not connected). Whatever...
Locked