EDIT 2013/02/19: Fixed bugs and cleaned up code.
EDIT 2012/12/24: Fixed bugs and split components apart (For use in other homebrew projects).
EDIT 2012/12/08: Added network manager and isolated the SMAP driver into it's own module.
EDIT 2012/12/04: I've fixed some problems in the EE RPC client in the source code.
EDIT 2012/11/30: Adjusted thread priorities to give transmission priority.
EDIT 2012/11/29: Made another attempt to fix the stability issue.
EDIT 2012/11/25: I've fixed the problem with frame transmissions causing a deadlock when the TX FIFO runs out of space. Please test and report problems.
I've also adjusted the settings for the LWIP EE-side stack, so performance is a bit better.
Unfortunately, the changes I made to improve the stability of the SMAP driver itself has caused performance to dip a little (~0.2MB/s).
Again, many thanks to Silverbull for suggesting that disabling the device interrupts is a valid method of ensuring mutual exclusion.
I think that there is little one can do to improve the performance of the EE-side stacks. :/
The IOP is really just too slow, and the DMA channels are too simple in design to work around the limitations of the LWIP protocol stack (Those alignment problems).
I've also included my most recently updated pseudo code file of the Sony SMAP v2.25 module for educational purposes.
----
As mentioned before (For quite a long time actually), I was working on a new SMAP driver that was based on the last version of the Sony SMAP driver (v2.25).
I've completed it, more or less... and so here it is.
The driver is coupled with some form of a HDLoader game server for testing purposes (LWIP stacks use the OPL HDLoader server, while PKTDRV stacks will use their own servers).
There are three builds in the package, but only one is useful for installing games.
The included README file contains more information about this project and the specifics of it, so please spend some time reading it.
The testing platform that uses LWIP v1.4.1 requires the EE library instead of the usual IOP port, so please compile and install the port of LWIP v1.4.1 for the EE.
If it's stable enough too, I'll make a binary release in the future.
As mentioned in the README file, the focus of this new driver would be (Compared to the current SMAP PS2SDK SMAP driver):
Please provide stability, compatibility and performance reports with your network equipment and Playstation 2 consoles.
Please mention the model of your Playstation 2 network model, the model of your Playstation 2, how you are connecting your Playstation 2 to your computer, and the model numbers of all network peripherals (e.g. switches, routers and hubs) that your console will go through to communicate with your PC.
As with a lot of my projects: USE THE SOFTWARE AT YOUR OWN RISK. Since the software writes data to your hard drives, there is always a risk of data loss in the event of data corruption.
Downloads/Links
Project home page: http://ichiba.geocities.jp/ysai187/PS2/smap.htm
***
For those interested to know, here are the NICs/network equipment that gave auto-negotiation issues with the current homebrew SMAP driver, when used with my SCPH-10190 PCMCIA network adaptor:
EDIT 2012/12/24: Fixed bugs and split components apart (For use in other homebrew projects).
EDIT 2012/12/08: Added network manager and isolated the SMAP driver into it's own module.
EDIT 2012/12/04: I've fixed some problems in the EE RPC client in the source code.
EDIT 2012/11/30: Adjusted thread priorities to give transmission priority.
EDIT 2012/11/29: Made another attempt to fix the stability issue.
EDIT 2012/11/25: I've fixed the problem with frame transmissions causing a deadlock when the TX FIFO runs out of space. Please test and report problems.
I've also adjusted the settings for the LWIP EE-side stack, so performance is a bit better.
Unfortunately, the changes I made to improve the stability of the SMAP driver itself has caused performance to dip a little (~0.2MB/s).
Again, many thanks to Silverbull for suggesting that disabling the device interrupts is a valid method of ensuring mutual exclusion.
I think that there is little one can do to improve the performance of the EE-side stacks. :/
The IOP is really just too slow, and the DMA channels are too simple in design to work around the limitations of the LWIP protocol stack (Those alignment problems).
I've also included my most recently updated pseudo code file of the Sony SMAP v2.25 module for educational purposes.
----
As mentioned before (For quite a long time actually), I was working on a new SMAP driver that was based on the last version of the Sony SMAP driver (v2.25).
I've completed it, more or less... and so here it is.
The driver is coupled with some form of a HDLoader game server for testing purposes (LWIP stacks use the OPL HDLoader server, while PKTDRV stacks will use their own servers).
There are three builds in the package, but only one is useful for installing games.
The included README file contains more information about this project and the specifics of it, so please spend some time reading it.
The testing platform that uses LWIP v1.4.1 requires the EE library instead of the usual IOP port, so please compile and install the port of LWIP v1.4.1 for the EE.
If it's stable enough too, I'll make a binary release in the future.
As mentioned in the README file, the focus of this new driver would be (Compared to the current SMAP PS2SDK SMAP driver):
- Fully working and functional auto-negotiation.
- Superior network peripheral compatibility.
- Superior performance, with the introduction of full DMA support.
- Superior reliability.
Please provide stability, compatibility and performance reports with your network equipment and Playstation 2 consoles.
Please mention the model of your Playstation 2 network model, the model of your Playstation 2, how you are connecting your Playstation 2 to your computer, and the model numbers of all network peripherals (e.g. switches, routers and hubs) that your console will go through to communicate with your PC.
As with a lot of my projects: USE THE SOFTWARE AT YOUR OWN RISK. Since the software writes data to your hard drives, there is always a risk of data loss in the event of data corruption.
Downloads/Links
Project home page: http://ichiba.geocities.jp/ysai187/PS2/smap.htm
***
For those interested to know, here are the NICs/network equipment that gave auto-negotiation issues with the current homebrew SMAP driver, when used with my SCPH-10190 PCMCIA network adaptor:
- Realtek 8101E Fast Ethernet Controller (Lenovo Ideapad Z460 laptop)
- D-Link DIR-655 (4-port Gigabit network router)
- Linksys EZXS55W (10/100 5-port switch)
