Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
openwrt:zsun [2016/04/24 15:06]
theexpertnoob
— (current)
Line 1: Line 1:
-Like many of us have read the [[https://​hardware.slashdot.org/​story/​16/​01/​26/​1430201/​openwrt-turns-a-14-card-reader-into-the-smallest-wireless-ap|article]] on slashdot about the Openwrt capabilities of the Zsun Wifi card Reader. ​ 
-The idea of having PirateBox running on the smallest device yet made me order one from China. ​ 
-After many hours of installing, troubleshooting,​ resetting e.d. I now have a complete working Piratebox installation. ​ 
-I would like to share my installation scripts in order to let you install your own.  
  
-DISCLAIMER: NOBODY will take responsibility or be liable for anything you do to your zsun. If you brick it trying these procedures, YOU are solely responsible for your actions. YOU HAVE BEEN WARNED. 
- 
-==== **0. Prerequisite (manual)** ==== 
-  * Having a Zsun running OpenWrt. I've used the [[https://​wiki.hackerspace.pl/​projects:​zsun-wifi-card-reader|hackerspace.pl]] method ​ 
-  * 1 SD card with 2 primary partitions. For the first partition I've used vfat (size:​remaining),​ the second is ext4 (size:1GiB) Setup based on [[https://​forum.piratebox.cc/​read.php?​8,​16780,​17503#​msg-17503|link]]. This can be done on any linux machine with Gparted. 
-  * [[http://​bit.ly/​zsunprtbx|Download]] and extract my custum zsun install package with modified ext config ​ 
-  * Root password [[https://​wiki.openwrt.org/​doc/​howto/​firstlogin|set]] ​ 
-  * Changed the default uhhtpd (LuCI) ports to **9080** and **9443** 
- 
-<​code>​ 
-vi /​etc/​config/​uhttpd 
-/​etc/​init.d/​uhttpd reload 
-</​code>​ 
- 
-  * Get internet working on the zsun. 
-Adjust the wan config zone in **///​etc/​config/​firewall//​** like so:  
-<​code>​ 
-config zone 
- option name wan 
- option network '​wan wan6 wwan' 
- option input REJECT 
- option output ACCEPT 
- option forward REJECT 
- option masq 1 
- option mtu_fix 1 
-</​code>​ 
- 
-**///​etc/​config/​wireless//​** should look like so (adjust essids and encryption as you need it): 
-<​code>​ 
-config wifi-device '​radio0'​ 
- option type '​mac80211'​ 
- option channel '​auto'​ 
- option hwmode '​11g'​ 
- option path '​platform/​ar933x_wmac'​ 
- option htmode '​HT20'​ 
- option disabled '​0'​ 
- option txpower '​30'​ 
- option country '​US'​ 
- 
-config wifi-iface 
- option ssid '​OpenWrt'​ 
- option device '​radio0'​ 
- option mode '​ap'​ 
- option network '​lan'​ 
- option encryption '​none'​ 
- #option encryption '​psk2'​ 
- #option key '​yourSuperSecurePass'​ 
- 
-config wifi-iface 
- option ssid '​Test'​ 
- option device '​radio0'​ 
- option mode '​sta'​ 
- option network '​wwan'​ 
- #option encryption '​none'​ 
- option encryption '​psk2'​ 
- option key '​yourSuperSecurePass'​ 
-</​code>​ 
- 
-Allow the wwan to get it's IP via DHCP by adding the following to **///​etc/​config/​network//​**:​ 
-<​code>​ 
-config interface '​wwan'​ 
- option proto '​dhcp'​ 
-</​code>​ 
- 
-<WRAP center round important 100%> 
-An additional wireless connection with your own WiFi is made in '​sta'​ mode. Because OpenWrt (and PirateBox) are using the IP 192.168.1.1 (sub-netmask /24) the network (WiFi) you are connecting to can't use the same sub-net mask. 
-</​WRAP>​