Wednesday, March 19, 2014

Poor man Tablet Wimax Yes 4G... (Probably the first one in Malaysia)

Note: Just because i criticized YES services, doesn't mean that I hate em. . In fact their network performance would make P(2-1) looks like pea one.. But there's always room for improvement. After all real hacker  innovate , mutate, making bidaah hasanah for the greater good and fun.


After the PoC of turning your rasp pi into a fullblown Yes Zoom.  I just browse one day to see what the YTl/Yes Guys are up to.
It's great they are giving free *(with conditional surrender/subscribtion)  tablet for 99 lucky people. However those tablet doesn`t come with a built-in WIMAX features which is a sad thing. We have 3g, 4g but meany capitalistic industrialist make Wimax as a foster child ..

So my favpurite guru poisoned me with the idea , make it work with tablet.

Hardware Requiremnet
1. Samsung Galaxy Tab 10.1 P7500
2. Yes4G Dongle
3. OTG cable with External Power (5V 2A) type explain later.

1. You can us any ROM that you like but my choice would be plain stock cynogen with tun enabled and also access to libusb. This is important as gctwimax driver require user space.

2. According to OTG 1.0 specification the device  plugged in are using current between  8ma to 100mA . It couldn`t drive more power due to design/current limit (*on nexus 7 it's the kernel)  ... And unfortunely Yes4G Dongle use at least 500mA . We can verified this by going to Device Manager and check the power.

3. So yeah we need an OTG cable with extra power. a simple powerbank should be sufficient.

4. I`m using linuxonandroid to ease the development . Compiling gctwimax is straightforward once u chroot into it.. but problem occured  when you try to run the gctwimax dialer.

5. The solution that i used is a very one hell bad hack.

$bbox mount --bind /dev/bus $mount/dev/bus
$bbox mknod  $mnt/dev/net/tun c 10 200

6. You also need to run dhcpd wimax0 outside of the chroot enviroment. If nesscary dns server can be set using setprop command.. If everything goes well!! Congratulation  u r one of the luckiest bast&^d using wimax on a tablet natively.


Everything works perfectly. U can see Wifi is turned off and of course i didn`t have any sim card.


USB Device are detected correctly and Intepret correctly as a Modem instead of Mass Storage.

IP are being deligated properly.

Yeap it's working..


P/S: This is probably the first Tablet with Yes4G powered natively in Malaysia. Can someone submit it to the Malaysia book of Record (Do we still have that crap? ) Lolz.


List To DO:

1. Make this thing cleaner.
2. Using ScriptManager to automate stuff.






Friday, March 7, 2014

Poor man Yes4G Huddle.

Yes4g Huddle is bloody pricey . Anything that is more then RM300  is expensive in my own devices pricing schema ... I do not know what's the justification for that kind of price.



As a poor Malaysian living in a terrible times. What should I do? Relying on Facebook/KingJason/Politician  Photoshop/news is not going to help . Time to start our simple hacks!




Hardware Requirement
1. One Unit Raspberry Pi
2. Yes Go Dongle
3. TP Link MR3040 Portable 3G/4G Router  configurable as our wifi broadcaster + portable powerbank
4. 8GB Sdcard
5. RJ-45 cable .
6.  A Micro-Usb cabled to power up the USB Pi.


Software Requirement

1. Arch Linux as the OS
2. gctwimax  driver
3. dnsmasq
4. iptables rules

Instruction ..

1. Copy  Arch Linux ARM image to our sdcard ... If you are using Windows . you can use Fedora ARM Installer.

2. Compile gctwimax should be easy 

3. configure dnsmasq.. Quite easy in my case 4 lines .only

no-resolv
bind-interfaces
interface=eth0
dhcp-range= 192.168.150.10,192.168.150.100

U might also need to actually set the eth0 static on next boot. this can be accomplished by changing /etc/netctl/eth0 to  static and give it 192.168.150.1


4. sysctl net.ipv4.ip_forward =1 

5. Create two  systemd scripts seperately. First script is to lauch gctwimax code so that it will give us wimax0.. 

gctwimax will read configuration from /usr/share/gctwimax/gctwimax.conf like this

gctwimax -C /usr/share/gctwimax/gctwimax.conf

U need to change the following config to this config below

cert_nv=0
anonymous_identity="RANDOM@yes.my"
username="yourownusername@yes.my"
password="yourownpassword"

6. Second script is to load dnsmasq configuration. We also need to add an iptables rule to forward all our request to wimax0. This can be accomplished by MASQUERADE it.

iptabes -t nat -A POSTROUTING -o wimax0 -j MASQUERADE.


6. Configure TP-LINk Portable router into a WAN Mode.

7.  You are ready.!!!

How much does this  cost compared to Yes Huddle?

Yes Huddle~RM399
Feeling~ Crap

Mine:

  • Raspberry Pi ~ RM110
  • YesGo ~ RM40
  • TP-LINK MR3020 ~ RM99
  • Random SD card class10 ~RM16
  • Awesomeness ~ Priceless
  • Total=  RM265
  • Saved= RM134
  • And we have HDMI output how f**&U* cool is dat?




Screenshots of success .
wimax0 is up and working correctly.

Infinite power cycle (Kididng)

Working perfectly at our secret mapley.

Rooms for improvement.
  • Getting a good nano wifi card to setup as a hotspot.. Cables are messy.
  • Implementing 16x2 LCD for lulz.
  • Understanding conditional systemd. I miss sys-v/init but hey systemd is not dat bad in fact it's easier.
I've already make a plain backup images but unfortunately the size of my backup image is 8GB which is quite big. I`m uploading it at mega. Once finished i update the links to my image here.

Cheers for No4G..


Update:

Here's the link for my image archlinuxyes4g.bin