User Tools

Site Tools


hardware:wbd-111

Differences

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

Link to this comparison view

Next revision
Previous revision
hardware:wbd-111 [2011/02/05 18:47] – created Michele Porellihardware:wbd-111 [2012/10/08 21:21] (current) – [Build OpenWRT] Michele Porelli
Line 1: Line 1:
-====== Wilibox wbd-111 - Teltonika RUT-1xx ======+====== Wilibox wbd-111 - (Teltonika RUT-1xx base board) ======
  
 +===== OpenWRT =====
  
 +==== Flash firmware ====
 +Unfortunately sysupgrade is not yet implemented, you should go back to wikigear stock firmware then flash the new image
 +
 +==== Build OpenWRT ====
 +      * download the latest trunk revision (you must use trunk because there are not a stable branch with gemini support):
 +<code>svn co svn://svn.openwrt.org/openwrt/trunk/</code>
 +
 +  * add all available packages (download then "install"):
 +<code>./scripts/feeds update -a
 +./scripts/feeds install -a</code>
 +
 +  * <del>manually patch linux sources ([[https://dev.openwrt.org/attachment/ticket/6998/006-wbd111-enable-usb.patch]])
 +Open arch/arm/mach-gemini/board-wbd111.c and add the green line in the right position
 +Open drivers/usb/host/ehci-hcd.c and replace the zero with one in the correct line</del> - Fixed in r25820!
 +
 +  * prepare your image (remember to select everything you need):
 +<code>make menuconfig</code>
 +Select as Target system: Cortina CS351x (StormSemi SL351x)
 +
 +  * prepare your kernel (this step is uncommon, but it's indispensable for wbd-111):
 +<code>make kernel_menuconfig</code>
 +
 +In this step you should include the right usb drivers:
 +<code>
 +**Device Drivers --->**
 +**USB support --->**
 +Mark as "built in" (*) **Support for Host-side USB**
 +Mark as "built in" (*) **EHCI HCD (USB 2.0) support**
 +esc-esc esc-esc... save!
 +</code>
 +
 +To check if you have selected the correct driver after flashing image
 +
 +<code>dmesg | grep -i ehci-fotg2xx</code>
 +
 +should return
 +
 +<code>ehci-fotg2xx ehci-fotg2xx.0: Found Faraday OTG 2XX controller (base = 0x68000000)
 +ehci-fotg2xx ehci-fotg2xx.0: FOTG2XX EHCI Host Controller
 +ehci-fotg2xx ehci-fotg2xx.0: new USB bus registered, assigned bus number 1
 +ehci-fotg2xx ehci-fotg2xx.0: irq 10, io mem 0x68000000
 +ehci-fotg2xx ehci-fotg2xx.0: USB 0.0 started, EHCI 1.00, overcurrent ignored
 +ehci-fotg2xx ehci-fotg2xx.0: role detected: Host, 
 +ehci-fotg2xx ehci-fotg2xx.0: A-Device
 +ehci-fotg2xx ehci-fotg2xx.0: role detected: Host, 
 +ehci-fotg2xx ehci-fotg2xx.0: A-Device
 +usb 1-1: new high speed USB device using ehci-fotg2xx and address 2</code>
 +
 +  * make the image (where 2 is the number of your processor's core):
 +<code>make -j 2</code>
 +
 +==== Teltonika RUT-104 ====
 +=== Enable hso (3g modem) support ===
 +  * Select hso module in make menuconfig:
 +<code>
 +**Kernel modules  --->**
 +**USB Support  --->**
 +Mark as "built in" (*) **kmod-usb-net**
 +Mark as "built in" (*) **kmod-usb-net-hso**
 +Mark as "built in" (*) **kmod-usb-serial**
 +Mark as "built in" (*) **kmod-usb-serial-option**
 +esc-esc esc-esc... save!
 +</code>
 +  * Select PCCARD Bus support in make kernel_menuconfig:
 +<code>
 +**Bus support  --->**
 +Mark as "built in" (*) **PCI support**
 +Mark as "built in" (*) **PCCard (PCMCIA/CardBus) support  --->**
 +**PCCard (PCMCIA/CardBus) support  --->**
 +Mark as "built in" (*) **32-bit CardBus support**
 +esc-esc esc-esc... save!
 +</code>
 +
 +=== Add built-in hso comgt support ===
 +  * Download and apply the patch to openwrt sources attached in [[https://dev.openwrt.org/ticket/6995|this ticket]].
hardware/wbd-111.1296931636.txt · Last modified: (external edit)