Pierre Letouzey
2006-02-15 14:54:29 UTC
Hi
First, a great thanks to the PearPC developpers, since you're doing a
great job. I just finished installing and configuring an OpenDarwin on
my Linux/x86 box, and it now works smoothly. There is only one point
where I had some trouble and made some adaptations in the PearPC 0.4
code, concerning the network tun/tap configuration. Instead of using
the proposed scripts ifppc_up and ifppc_down, I managed to make things
works in another way, which seems cleaner. Since your code is
containing comments like
// FIXME: How shall we configure networking??? This thing can only be
// a temporary solution
then I thought you might be interested by the following approach:
1) First I change the group of /dev/net/tun, in order for the user
that will launch ppc to belong to this group (say, user=letouzey,
group=pearpc).
2) Then I register once and for all a tun interface, using the tool
tunctl coming from the UML project (in Debian, see paquet
uml-utilities):
tunctl -u letouzey -t ppc0
Due to point 1) this doesn't even require root permission.
3) I configure the host-side IP of this interface ppc0:
sudo ifconfig ppc0 192.168.1.80
#plus maybe route, iptables, and whatever please you
4) Now establishing the virtual network when pearpc launches is
notably simplier. In src/system/osapi/posix/sysethtun.cc:
- I commented out all calls to execIFConfigScript
- I ensured that "ppc0" is always selected as interface
And that's all, it works directly. The interesting part is that point
2) and 3) can be done (let's say) by some startup script, long before
pearpc is actually used. Moreover "ppc0" could then become an option
of the configuration file, something like tun_interface = "ppc0".
The only issue is portability: I don't know whether such a tool as
tunctl exists or could be ported to other systems like BeOS.
Hope this could help...
Pierre Letouzey
PS: I also made an attempt at running PearPC on debian sarge ppc
install-CD, but this doesn't go far: boot screen, then message
"Welcome to Linux, kernel 2.6.8-powerpc", then a few line later
setup_arch: enter
setup_arch: bootmem
arch: exit
and then nothing more. Any idea what's going on or how to fix?
Thanks in advance.
First, a great thanks to the PearPC developpers, since you're doing a
great job. I just finished installing and configuring an OpenDarwin on
my Linux/x86 box, and it now works smoothly. There is only one point
where I had some trouble and made some adaptations in the PearPC 0.4
code, concerning the network tun/tap configuration. Instead of using
the proposed scripts ifppc_up and ifppc_down, I managed to make things
works in another way, which seems cleaner. Since your code is
containing comments like
// FIXME: How shall we configure networking??? This thing can only be
// a temporary solution
then I thought you might be interested by the following approach:
1) First I change the group of /dev/net/tun, in order for the user
that will launch ppc to belong to this group (say, user=letouzey,
group=pearpc).
2) Then I register once and for all a tun interface, using the tool
tunctl coming from the UML project (in Debian, see paquet
uml-utilities):
tunctl -u letouzey -t ppc0
Due to point 1) this doesn't even require root permission.
3) I configure the host-side IP of this interface ppc0:
sudo ifconfig ppc0 192.168.1.80
#plus maybe route, iptables, and whatever please you
4) Now establishing the virtual network when pearpc launches is
notably simplier. In src/system/osapi/posix/sysethtun.cc:
- I commented out all calls to execIFConfigScript
- I ensured that "ppc0" is always selected as interface
And that's all, it works directly. The interesting part is that point
2) and 3) can be done (let's say) by some startup script, long before
pearpc is actually used. Moreover "ppc0" could then become an option
of the configuration file, something like tun_interface = "ppc0".
The only issue is portability: I don't know whether such a tool as
tunctl exists or could be ported to other systems like BeOS.
Hope this could help...
Pierre Letouzey
PS: I also made an attempt at running PearPC on debian sarge ppc
install-CD, but this doesn't go far: boot screen, then message
"Welcome to Linux, kernel 2.6.8-powerpc", then a few line later
setup_arch: enter
setup_arch: bootmem
arch: exit
and then nothing more. Any idea what's going on or how to fix?
Thanks in advance.