WLAN Access Point with PS3 Jupiter: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
|||
(40 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
[[Category:OtherOS]] | |||
=Introduction= | =Introduction= | ||
Line 8: | Line 9: | ||
* 802.11bg support | * 802.11bg support | ||
* Wireless Extension interface | * Wireless Extension interface | ||
* | * WEP40, WEP104 and WPA1(TKIP+AES) support | ||
=PS3 Jupiter Driver= | =PS3 Jupiter Driver= | ||
Line 22: | Line 23: | ||
git clone git://gitorious.ps3dev.net/ps3linux/ps3jupiter.git | git clone git://gitorious.ps3dev.net/ps3linux/ps3jupiter.git | ||
cd ps3jupiter | cd ps3jupiter | ||
make KSRC_DIR=/home/glevand/kernel/linux-3.5. | make KSRC_DIR=/home/glevand/kernel/linux-3.5.4 ARCH=powerpc CROSS_COMPILE=powerpc64-linux- | ||
</pre> | </pre> | ||
Line 60: | Line 61: | ||
# Set static IP address ony your client, e.g. 192.168.201.201 | # Set static IP address ony your client, e.g. 192.168.201.201 | ||
</pre> | </pre> | ||
==No Security== | |||
<pre> | |||
ifconfig wlan1 down | |||
iwconfig wlan1 channel 6 | |||
iwconfig wlan1 essid wlan_rockz | |||
iwpriv wlan1 set_wpa_mode 0 | |||
ifconfig wlan1 up | |||
</pre> | |||
==WEP40== | |||
<pre> | |||
ifconfig wlan1 down | |||
iwconfig wlan1 channel 6 | |||
iwconfig wlan1 essid wlan_rockz | |||
iwpriv wlan1 set_wpa_mode 0 | |||
iwconfig wlan1 key 0123456789 | |||
ifconfig wlan1 up | |||
</pre> | |||
==WEP104== | |||
<pre> | |||
ifconfig wlan1 down | |||
iwconfig wlan1 channel 6 | |||
iwconfig wlan1 essid wlan_rockz | |||
iwpriv wlan1 set_wpa_mode 0 | |||
iwconfig wlan1 key 01234567890123456789012345 | |||
ifconfig wlan1 up | |||
</pre> | |||
==WPA1-TKIP== | |||
<pre> | |||
ifconfig wlan1 down | |||
iwconfig wlan1 channel 6 | |||
iwconfig wlan1 essid wlan_rockz | |||
iwpriv wlan1 set_wpa_mode 1 | |||
iwpriv wlan1 set_wpa_group 2 | |||
iwpriv wlan1 set_wpa_pairwise 2 | |||
iwpriv wlan1 set_wpa_psk ps3_wlan | |||
ifconfig wlan1 up | |||
</pre> | |||
==WPA1-AES== | |||
<pre> | |||
ifconfig wlan1 down | |||
iwconfig wlan1 channel 6 | |||
iwconfig wlan1 essid wlan_rockz | |||
iwpriv wlan1 set_wpa_mode 1 | |||
iwpriv wlan1 set_wpa_group 3 | |||
iwpriv wlan1 set_wpa_pairwise 3 | |||
iwpriv wlan1 set_wpa_psk ps3_wlan | |||
ifconfig wlan1 up | |||
</pre> | |||
==wpa_supplicant.conf for WPA1-TKIP or WPA1-AES== | |||
* This configuration file i used on my PC WLAN client to test PS3 WLAN AP. | |||
<pre> | |||
ctrl_interface=/var/run/wpa_supplicant | |||
eapol_version=1 | |||
ap_scan=1 | |||
fast_reauth=1 | |||
network={ | |||
ssid="wlan_rockz" | |||
proto=WPA | |||
key_mgmt=WPA-PSK | |||
pairwise=CCMP TKIP | |||
group=CCMP TKIP | |||
psk="ps3_wlan" | |||
priority=2 | |||
} | |||
</pre> | |||
==WPA2== | |||
* It seems that WPA2 is not supported. | |||
* Does AP on GameoS support WPA2 ??? | |||
<!--// none, WEP, WPA-PSK / WPA2-PSK for normal mode, not sure about AP mode : http://manuals.playstation.net/document/en/ps3/current/settings/connectadvance.html //--> | |||
==Test== | ==Test== | ||
* Tested on my PS3 Slim with Linux kernel 3.5. | * Tested on my PS3 Slim with Linux kernel 3.5.4 and Debian | ||
* Tested with no security | * Tested successfully with no security, WEP40, WEP104, WPA1-TKIP and WPA1-AES | ||
=Testing AP Mode with libusb= | |||
* No kernel drivers are involved | |||
* Easier to test than with Linux kernel drivers | |||
* I use it to test new and unknown commands | |||
* Source code: http://gitorious.ps3dev.net/ps3linux/ps3jupiter_libusb | |||
* You need a patched Linux 3.2 kernel too, see here: http://www.ps3devwiki.com/wiki/Linux_3_on_PS3 | |||
=TODO List= | =TODO List= | ||
* | * Find out why AP stops when a client uses incorrect WPA PSK. | ||
* Find out if WPA2 is possible | |||
* Find out how to get connected station MAC address and how to enable MAC access control | * Find out how to get connected station MAC address and how to enable MAC access control | ||
* Find out if it is possible to use STA and AP modes simultaneously. That would be really cool, e.g. we could make a wireless repeater. | |||
=Future Work= | =Future Work= | ||
Line 76: | Line 189: | ||
* Create a petitboot with WLAN AP mode | * Create a petitboot with WLAN AP mode | ||
* Implement PS3 WLAN drivers for PS3 PHAT (not able to do currently because i don't have a PS3 PHAT for testing) | * Implement PS3 WLAN drivers for PS3 PHAT (not able to do currently because i don't have a PS3 PHAT for testing) | ||
=Links= | |||
* Linux kernel 3.2 and libsusb problem: http://marc.info/?l=linux-usb&m=132440828606642&w=2 | |||
{{Linux}}<noinclude>[[Category:Main]]</noinclude> |
Latest revision as of 02:03, 3 February 2014
Introduction[edit | edit source]
- WLAN AP driver for PS3 Jupiter (slim only)
- Please report bugs and problems to me.
Features[edit | edit source]
- 802.11bg support
- Wireless Extension interface
- WEP40, WEP104 and WPA1(TKIP+AES) support
PS3 Jupiter Driver[edit | edit source]
- Source code: http://gitorious.ps3dev.net/ps3linux/ps3jupiter
Compiling[edit | edit source]
- You can compile it on PS3 Linux or cross-compile on a Linux PC
- But first you have to build a Linux kernel from source.
git clone git://gitorious.ps3dev.net/ps3linux/ps3jupiter.git cd ps3jupiter make KSRC_DIR=/home/glevand/kernel/linux-3.5.4 ARCH=powerpc CROSS_COMPILE=powerpc64-linux-
Configuration[edit | edit source]
- For configuration you need wireless-tools: iwconfig and so on.
# Load the drivers insmod ./ps3_jupiter.ko insmod ./ps3_jupiter_ap.ko iwconfig wlan1 wlan1 IEEE 802.11bg ESSID:off/any Nickname:"ps3_jupiter_ap" Mode:Master Channel:0 # Configure channel and SSID iwconfig wlan1 channel 6 iwconfig wlan1 essid wlan_rockz # Configure opmode iwpriv wlan1 set_opmode 1 (0 = 11b, 1 = 11g, 2 = 11bg) iwconfig wlan1 wlan1 IEEE 802.11bg ESSID:"wlan_rockz" Nickname:"ps3_jupiter_ap" Mode:Master Frequency:2.437 GHz ifconfig wlan1 192.168.201.200 ifconfig wlan1 up # WLAN LED should be green now # Connect to the AP with a PC client and try to ping your AP # Set static IP address ony your client, e.g. 192.168.201.201
No Security[edit | edit source]
ifconfig wlan1 down iwconfig wlan1 channel 6 iwconfig wlan1 essid wlan_rockz iwpriv wlan1 set_wpa_mode 0 ifconfig wlan1 up
WEP40[edit | edit source]
ifconfig wlan1 down iwconfig wlan1 channel 6 iwconfig wlan1 essid wlan_rockz iwpriv wlan1 set_wpa_mode 0 iwconfig wlan1 key 0123456789 ifconfig wlan1 up
WEP104[edit | edit source]
ifconfig wlan1 down iwconfig wlan1 channel 6 iwconfig wlan1 essid wlan_rockz iwpriv wlan1 set_wpa_mode 0 iwconfig wlan1 key 01234567890123456789012345 ifconfig wlan1 up
WPA1-TKIP[edit | edit source]
ifconfig wlan1 down iwconfig wlan1 channel 6 iwconfig wlan1 essid wlan_rockz iwpriv wlan1 set_wpa_mode 1 iwpriv wlan1 set_wpa_group 2 iwpriv wlan1 set_wpa_pairwise 2 iwpriv wlan1 set_wpa_psk ps3_wlan ifconfig wlan1 up
WPA1-AES[edit | edit source]
ifconfig wlan1 down iwconfig wlan1 channel 6 iwconfig wlan1 essid wlan_rockz iwpriv wlan1 set_wpa_mode 1 iwpriv wlan1 set_wpa_group 3 iwpriv wlan1 set_wpa_pairwise 3 iwpriv wlan1 set_wpa_psk ps3_wlan ifconfig wlan1 up
wpa_supplicant.conf for WPA1-TKIP or WPA1-AES[edit | edit source]
- This configuration file i used on my PC WLAN client to test PS3 WLAN AP.
ctrl_interface=/var/run/wpa_supplicant eapol_version=1 ap_scan=1 fast_reauth=1 network={ ssid="wlan_rockz" proto=WPA key_mgmt=WPA-PSK pairwise=CCMP TKIP group=CCMP TKIP psk="ps3_wlan" priority=2 }
WPA2[edit | edit source]
- It seems that WPA2 is not supported.
- Does AP on GameoS support WPA2 ???
Test[edit | edit source]
- Tested on my PS3 Slim with Linux kernel 3.5.4 and Debian
- Tested successfully with no security, WEP40, WEP104, WPA1-TKIP and WPA1-AES
Testing AP Mode with libusb[edit | edit source]
- No kernel drivers are involved
- Easier to test than with Linux kernel drivers
- I use it to test new and unknown commands
- Source code: http://gitorious.ps3dev.net/ps3linux/ps3jupiter_libusb
- You need a patched Linux 3.2 kernel too, see here: http://www.ps3devwiki.com/wiki/Linux_3_on_PS3
TODO List[edit | edit source]
- Find out why AP stops when a client uses incorrect WPA PSK.
- Find out if WPA2 is possible
- Find out how to get connected station MAC address and how to enable MAC access control
- Find out if it is possible to use STA and AP modes simultaneously. That would be really cool, e.g. we could make a wireless repeater.
Future Work[edit | edit source]
- Create a LiveCD with WLAN AP mode
- Create a petitboot with WLAN AP mode
- Implement PS3 WLAN drivers for PS3 PHAT (not able to do currently because i don't have a PS3 PHAT for testing)
Links[edit | edit source]
- Linux kernel 3.2 and libsusb problem: http://marc.info/?l=linux-usb&m=132440828606642&w=2