Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Sprint 4G on Ubuntu 11.04+ with a 250U modem. These instructions correct omissions in the official documentation and patch the driver to work in modern Linux kernels.
- #Because I can't find a documented way to switch between 3G and 4G on this device, these instructions don't currently let you access the 4G network - see the bottom of this file. If anyone at Sprint or Sierra Wireless is reading this, I'd appreciate advice: mm201108 (at) zzxc.net.
- #The contents of this file, to the extent that they are copyrightable, are hereby placed in the public domain.
- #This guide keeps all the installed files in the working directory instead of installing them to the system - so as to prevent conflicts when the system is upgraded later.
- #0) Create a working directory for the big mess you're about to create.
- mkdir ~/sprint
- cd ~/sprint
- #1) Get prerequisites
- sudo apt-get install libnl-dev
- sudo apt-get install linux-kernel-headers
- sudo apt-get install libssl-dev
- #2) Get Sprint4GDeveloperPack-1.6.1.2.2.tar.gz and extract it. Inside, extract Rel_6.1.2.2_USB-Updated.zip. Read the enclosed instructions and ensure that you extract the correct wimaxd.conf, the correct macxvi.cfg file, and the USB_350 folder.
- #3) Copy firmware
- sudo cp macxvi.cfg /lib/firmware
- sudo cp USB_350/Binaries/Firmware/macxvi350.bin /lib/firmware
- #4) Build the API files
- cd USB_350/Source/API
- dos2unix build.sh
- chmod 755 build.sh
- ./build.sh
- cd tgtxvi020
- sudo make install
- #5) Fix the build file, as we're in unix
- cd ../../CSCM
- chmod 755 build.sh
- dos2unix build.sh
- #6) Now let's fix the wpa_supplicant. Nix the DOS drive letters in the file to prevent syntax errors.
- sed -i 's/C:\//\//g' wpa_supplicant/*.d
- #7) Copy libxvi020.so to the right place
- cp ../API/bin_linux/bin/libxvi* bin_pc_linux/bin/
- #8) Build it:
- ./build.sh pc_linux
- #9) Exit this folder
- cd ../../..
- #10) kill the bcm_wimax driver - it doesn't work with any existing software. Also, kill the sierra driver to prevent interference.
- /bin/echo -e "blacklist sierra\nblocklist bcm_wimax" >> /etc/modprobe.d/blacklist.conf
- #11) Build the Beceem driver from your Sprint 4G Developer Pack.
- cd USB_350/Source/Driver/Network/OSAL/Linux/usb
- #12) IMPORTANT: FIX LINE ENDINGS SO THAT THE FOLLOWING PATCH APPLIES CLEANLY!!!
- dos2unix Include/Common/led_control.h
- dos2unix Include/Common/osal_misc.h
- dos2unix Interface/usb/InterfaceInit.c
- #13) Edit the Makefile to point to the right location of your kernel headers. Patch the Beceem driver to take care of http://git390.marist.edu/cgi-bin/gitweb.cgi?p=linux-2.6.git;a=commitdiff_plain;h=9bbdf1e0afe771ca7650f9f476769310bee9d8f3 , http://kerneltrap.org/mailarchive/git-commits-head/2010/4/30/32383 , http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=626790 , and http://www.gossamer-threads.com/lists/linux/kernel/1263098
- #I wrote a patch to do that. Un-base64 the following blob of data, then decompress it with xz. Apply the patch to the 'usb' folder you're in right now. (hint: pipe it to "patch -p1")
- : <<'END'
- /Td6WFoAAATm1rRGAgAhARwAAAAQz1jM4BaoB6VdADIaSQnC/BF9UN4KT0fXHd5NuXXL0v4hZC+B
- rifuihGksiZISn8tIyzOA+Gryvp3JUMcKa6YDlyOzXAmVm2aWF1keWKA3gBNN4rqQISA0TFVELjU
- wL34HVKY5PFlNQ/5uZXFiZ65nOpzKNvb2faW3E1MhC35k8yHHOKN1M/y2k5NWvcqAk1c3j8J3qyx
- HcOAi4GgcP+gx9FYP8HlHfz4KSlLvMahyAzmNlIopThl570Mrc620lm5KsejT79/+mPyVqhlyhwm
- TfK57ZA/U/oAkytPBX9DFzma/oGaay9ZHlI1Syi/odqKyy4kWephvHqFTaL7EOhSR/BVPCuad8rX
- tgKecy0ymU0WcedFFfbzC/mJn5fxk2wYmgkG+rKcww/o2PEeVVHv6TasSGtuBjV9OWZCNVCqYRxS
- uAM4wK2gkzuik+1t1BhVP9ITWyNndzkKpgcn7/hbjAZMaibAAaM3YGECRReAsGpfZXc7bFYqPOae
- aRugkZh26jz33DSNBX4uaptwWc7VBXS7F0k21vnAi4DQqB52cyzN/lAE0R2AI/fyptPI5NtAxWth
- pnQCywxMnW8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Vo=
- END
- #14) Build it.
- make
- #15) Insert your new module
- sudo insmod drxvi314.ko
- #16) Set up serial access so that AT commands can be sent to the sierra portion of the modem (250U only)
- sudo modprobe option
- echo "1199 0301" > /sys/bus/usb-serial/drivers/option1/new_id
- #16) Finally - test it
- cd ../../../../../CSCM/bin_pc_linux/bin/
- sudo env LD_LIBRARY_PATH=. ./wimaxd -c ~/sprint/wimaxd.conf -D
- #Open another shell and start the client:
- env LD_LIBRARY_PATH=. ./wimaxc -i
- search
- #17) Notice that the 3G light stays illuminated on the 250U, even as you attempt to use the WiMAX modem. Zero WiMAX nodes will be found, even if you're in an area with 4G access. You'll need to use some sort of AT command or CnS command (which aren't documented) to turn on the 4G modem.
- #/bin/echo "SOMETHING TO TURN ON 4G MODEM" > /dev/ttyUSBx
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement