July 04, 2020, 08:41:36 am


Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/

SOLVED- Help wanted - using a smartphone for Cubietruck display, or external LCD

Started by kingneutron, June 04, 2015, 02:29:54 am

Previous topic - Next topic


--Just got a new Cubietruck from Amazon, BTW they have a nice kit with case:

--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:



--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 netmask 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

# 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

# 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

iface eth0:2 inet static

#"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

--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!


--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.