Page 3 of 3

Re: Sheep_net.ko on Debian 8 PPC

Posted: Thu Aug 18, 2016 10:38 am
by galgot
Ok ;)

reloaded sheep_net. btw if I use sh build.sh galgot, it install fine , but if I launch ./BasiliskII just after, it say "no ethernet, can't use sheep_net, permission denied" or something...
So I do sudo chown galgot /dev/sheep_net as usual, then it works.


Anyway, I did a ping to 8.8.8.8 from guest, then dmesg | grep sheep_net
it gives me a lot of lines with this :

Code: Select all

[69360.361052] sheep_net: packet received
[69363.306837] sheep_net: packet received
[69363.307282] sheep_net: poll
[69363.308049] sheep_net: read
[69363.308733] sheep_net: packet received
[69363.310497] sheep_net: read
[69363.311373] sheep_net: read
[69363.311529] sheep_net: poll
[69365.336988] sheep_net: packet received
[69365.337518] sheep_net: packet received
[69365.337618] sheep_net: poll
[69365.338029] sheep_net: read
[69365.338116] sheep_net: read
[69365.338828] sheep_net: poll
Then shutdown guest, restart, and tried a ping to http://www.google.com, failed.
dmesg | grep sheep_net gives me lot of lines, this is the end when I closed guest :

Code: Select all

[69933.516782] sheep_net: packet received
[69933.516875] sheep_net: poll
[69933.519069] sheep_net: packet received
[69933.529081] sheep_net: read
[69933.529785] sheep_net: read
[69933.530162] sheep_net: read
[69933.530308] sheep_net: poll
[69934.007360] sheep_net: packet received
[69934.007437] sheep_net: poll
[69934.011168] sheep_net: packet received
[69934.011949] sheep_net: packet received
[69934.013979] sheep_net: read
[69934.021255] sheep_net: read
[69934.021989] sheep_net: read
[69934.023256] sheep_net: read
[69934.023454] sheep_net: poll
[69935.814795] sheep_net: ioctl 8932
[69935.847261] sheep_net: ioctl 8932
[69936.158033] sheep_net: poll
[69936.159197] sheep_net: close

Re: Sheep_net.ko on Debian 8 PPC

Posted: Thu Aug 18, 2016 11:00 am
by rickyzhang
I'm 100% sure you don't load my sheep_net. Because the dmesg

Code: Select all

sheep_net: packet received

is coming from
D(bug("sheep_net: packet received\n"));

I have explicitly disable DEBUG in my patch. Because it is too chatty.

So I highly recommend you do the following:
1. delete your repo.
2. git clone https://github.com/rickyzhang82/macemu.git -b sheep-net-bug-fix-debug
3. rebuild my module again. sh build.sh [account]

If you don't see drop/got IP packet, you still load the old one.

Re: Sheep_net.ko on Debian 8 PPC

Posted: Thu Aug 18, 2016 11:45 am
by galgot
ALLELUIA !!!! :D

Image

Works !! many thanks Rickyzhang !
Is just a modification of the sheep_net ? or to BII too ?

Edit : dmesg | grep sheep_net give this kind of thing now :

Code: Select all

[74263.359003] sheep_net: got incoming unicast IP packet 216.58.211.67
[74263.359733] sheep_net: got incoming unicast IP packet 216.58.211.67
[74263.360493] sheep_net: got incoming unicast IP packet 216.58.211.67
[74263.378845] sheep_net: got incoming unicast IP packet 216.58.211.67
[74263.379700] sheep_net: got incoming unicast IP packet 216.58.211.67
[74263.397743] sheep_net: got incoming unicast IP packet 216.58.211.67
[74263.739928] sheep_net: got incoming unicast IP packet 216.58.211.67
[74263.779093] sheep_net: got incoming unicast IP packet 216.58.211.67
[74266.732058] sheep_net: got incoming unicast IP packet 25.221.192.168
[74267.523427] sheep_net: got incoming unicast IP packet 8.8.8.8
[74267.594947] sheep_net: got incoming unicast IP packet 216.58.211.67
[74267.975572] sheep_net: got incoming unicast IP packet 216.58.211.67
[74268.056845] sheep_net: got incoming unicast IP packet 216.58.211.67
[74268.057352] sheep_net: got incoming unicast IP packet 216.58.211.67
[74268.057602] sheep_net: got incoming unicast IP packet 216.58.211.67
[74268.164547] sheep_net: got incoming unicast IP packet 216.58.211.67
[74268.164848] sheep_net: got incoming unicast IP packet 216.58.211.67
[74268.165026] sheep_net: got incoming unicast IP packet 216.58.211.67

Re: Sheep_net.ko on Debian 8 PPC

Posted: Thu Aug 18, 2016 11:58 am
by rickyzhang
Yeah! I'm glad that it works for you. That pays for my work last night.

I will make the patch more official later. What you use is very chatty. It may slowdown your kernel for no good reason.

I have a bigger plan to renovate BII. But the upstream repo is not quite active. Anyway, have fun!

--EDIT
only sheep_net. There are two bugs.

Re: Sheep_net.ko on Debian 8 PPC

Posted: Thu Aug 18, 2016 12:19 pm
by galgot
Yes, super work :)

Just tried with my older BII build, it works too.
Will try on another Powerbook this afternoon.
If you need any help (as far as my poor competencies can do...) for your BII renovation, ask me.

Re: Sheep_net.ko on Debian 8 PPC

Posted: Thu Aug 18, 2016 12:25 pm
by rickyzhang
One more thing.

I was working extremely hard last night. It pissed off my wife...

To show your appreciation for my hard work last night or show off to my wife how smart I am, I'd love to have a post card with a foreign country post stamp. I hope you are not in US! Otherwise, it sucks.

You can ignore my request. But if you do, I will leave my address in email reply.

Re: Sheep_net.ko on Debian 8 PPC

Posted: Thu Aug 18, 2016 12:39 pm
by galgot
No prob :D You'll get mail from France then.
send me your postal address by PM.

Re: Sheep_net.ko on Debian 8 PPC

Posted: Thu Aug 18, 2016 1:00 pm
by rickyzhang
Thank you!

We just had a direct flight from Raleigh, NC to Paris two months ago. We are excited and plan to visit Nice. However due to recent horrible event, we decided to stay home.

Anyway, I haven't got a chance to test Apple Talk, although I got a Mac SE/30 with ethernet card. If you get a chance, please let me know if my fix breaks Apple Talk or not.

Re: Sheep_net.ko on Debian 8 PPC

Posted: Thu Aug 18, 2016 4:52 pm
by galgot
I can confirm Appletalk still works perfectly.
Here a screenshot showing BII PowerBook G4 screen sharing with another BII on a R-pi with Timbuktu via Appletalk, and at the same time screen sharing with my Mac Classic via IP :

Image

couldn't get Appletalk to the Mac Classic, but it's a miss setting on the Mac side I think...

Here you can see screen sharing to the BII R-Pi , with chooser showing the BII PowerBook G4 (Benjamin-Willard) :
Image

And here is the MacLynx connected to gopher server on my R-pi, on BII PowerBook G4 :) :
Image

I posted the post card this afternoon, they didn't had much choice of card and stamps, I hope it will be fine. Tell your wife I'm sorry, it's my fault for making you work that late :D

Cheers

Edit: one last, fullscreen, new sheep_net installed and working on another PowerBook G4 17" :
Image

Re: Sheep_net.ko on Debian 8 PPC

Posted: Thu Aug 18, 2016 5:09 pm
by rickyzhang
Sweet! Nice screen shot. I will send the pull request later. But https://github.com/cebix/macemu repo is not quite active.

I have several ARM boards at home. But I don't know if ARM can handle playing game since it doesn't have JIT. I have a bigger plan to ditch current JIG implementation so that it can run in any compilers and architecture.

Thanks for your post card. It is nice to meet friend from other countries. I will let my wife know about this. Honestly, I know little networking and kernel programming. But I love BII. So I'm determined to make BII survive as long as possible.