Author Topic: SOLVED- Help wanted - using a smartphone for Cubietruck display, or external LCD  (Read 2437 times)

Offline kingneutron

  • Jr. Member
  • **
  • Posts: 80
  • Karma: +10/-0
    • View Profile
--Just got a new Cubietruck from Amazon, BTW they have a nice kit with case:
https://www.amazon.com/gp/product/B00MNAYGPU/ref=oh_aui_detailpage_o04_s00?ie=UTF8&psc=1

--I found a few links about using a smartphone as a display for an RPi but can't get it to work with the CT:

https://www.raspberrypi.org/forums/viewtopic.php?f=36&t=18916

https://wiki.debian.org/Android_Tethering

--Long story short, I am using the debian-server-ct-nand-v1.0.img.7z from 20141201 installed to NAND and have the 'wicd' networking package installed. I modified /etc/network/interfaces as described and restarted networking, but am getting an error where the usb0 device does not get configured:

# ifconfig usb0 192.168.44.44 netmask 255.0.0.0 up
SIOCSIFADDR: No such device
usb0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
usb0: ERROR while getting interface flags: No such device

Code: [Select]
# lsmod
Module                  Size  Used by
usbnet                 23579  0
mii                     4936  1 usbnet
g_mass_storage         43150  0
rfcomm                 58057  10
bnep                   14041  2
hci_uart               23960  1
cpufreq_userspace       3342  0
bluetooth             264035  24 bnep,hci_uart,rfcomm
sunxi_ss               15774  0
bcmdhd                589816  0
mali                  110827  0
ump                    51639  1 mali
lcd                     3770  0
sunxi_gmac             29827  0
pwm_sunxi               9251  0

Code: [Select]
# cat /etc/network/interfaces
allow-hotplug usb0

auto lo
auto eth0 eth0:1 eth0:2

auto usb0

iface lo inet loopback

iface eth0 inet dhcp

iface eth0:1 inet static
 address 10.0.1.4
 netmask 255.0.0.0

iface eth0:2 inet static
 address 192.168.2.251
 netmask 255.255.255.0

#"your-ssid-here" and "your-passwd-here" should been replase with yours and remove the annotation

#auto wlan0
#iface wlan0 inet dhcp
#pre-up ip link set wlan0 up
#pre-up iwconfig wlan0 essid your-ssid-here
#wpa-ssid your-ssid-here
#wpa-psk your-passwd-here

iface usb0 inet static
 address 192.168.42.42
 netmask 255.255.255.0
 network 192.168.42.0
 broadcast 192.168.42.255

--To sum up, the CT will be used as a Squid caching proxy server demo. I would like to power it on and without having to attach it to an HDMI TV, have it display the current DHCP IP address(es) and whether Squid is running OK, over a USB-attached Android tablet.

--Alternatively I would be willing to use a small USB-attached LCD display for this... Any help is appreciated!
« Last Edit: June 04, 2015, 06:17:13 pm by kingneutron »

Offline kingneutron

  • Jr. Member
  • **
  • Posts: 80
  • Karma: +10/-0
    • View Profile
--Figured out what I was doing wrong, I missed a crucial step. In order for the usb0 network device to appear in Linux, the Android phone/tablet MUST be Tethered while connected to the USB port. 

--I'm ssh'ing to the phone over the USB cable with a dedicated userid that auto-displays a Status page every 30 sec - i.e. if squid is running OK, can we ping google 3x OK, etc.

Thanks!