Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Android USB

Build Steps for RNDIS Feature


Code Block
repo init -u https://code.rdkcentral.com/r/manifests -b kirkstone -m rdkb-bpi-extsrc.xml

repo sync -j`nproc` --no-clone-bundle

Enable the distro for RNDIS in below path

/meta-cmf-bananapi/conf/distro/include/rdk-bpi.inc
#Enable the below DISTRO to enable Hybrid Hal(rndis/modem) for cellular devices
DISTRO_FEATURES_append_broadband = " cellular_hybrid_support"

MACHINE=bananapi4-rdk-broadband source meta-cmf-bananapi/setup-environment-refboard-rdkb
/---copy 6.6 bl2 and fip files to downloads folder-------/

bitbake rdk-generic-broadband-image

Test Steps 

  • Connect ethwan cable - erouter0 is coming up with v4/v6
  • Remove ethwan and connect Android phone to USB port of BPi device using USB to C-type cable and enabled USB Tethering on Android phone.
  • Once USB Tethering in enabled below lines are observed on serial console.
    root@Filogic-GW:~# [  370.758874] usb 1-1.4: new high-speed USB device number 4 using xhci-mtk
    [  370.946456] cdc_acm 1-1.4:1.1: ttyACM0: USB ACM device
    [  382.185096] usb 1-1.4: USB disconnect, device number 4
    [  382.748876] usb 1-1.4: new high-speed USB device number 5 using xhci-mtk
    [  382.949809] rndis_host 1-1.4:1.0 usb0: register 'rndis_host' at usb-11200000.usb-1.4, RNDIS device, 02:26:0a:15:62:0c
    [  385.990274] cellularmanager[10486]: Cannot find device "wwan0"
  • usb0 interface comes UP. 
    root@Filogic-GW:~# ifconfig usb0
    usb0      Link encap:Ethernet  HWaddr 02:26:0A:15:62:0C  
              inet6 addr: fe80::26:aff:fe15:620c/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:7 errors:0 dropped:0 overruns:0 frame:0
              TX packets:12 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:668 (668.0 B)  TX bytes:1464 (1.4 KiB)
  • Reboot device to start dhcp on new selected interface
    root@Filogic-GW:~# ifconfig usb0
    usb0      Link encap:Ethernet  HWaddr 02:26:0A:15:62:0C  
              inet addr:192.168.113.181  Bcast:192.168.113.255  Mask:255.255.255.0
              inet6 addr: fe80::26:aff:fe15:620c/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:44 errors:0 dropped:0 overruns:0 frame:0
              TX packets:70 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:14906 (14.5 KiB)  TX bytes:19903 (19.4 KiB)

...