ttyACM0 and 7" touchscreen LCD

saiful.tavip
I bought NanoPC-T1
My target is to use LCD touchscreen (S70) and connect to Arduino thru USB
serial ttyACM0 (USB serial).
These are my result :
LinuxQT : LCD Touchscreen OK, ttyACMO No ( can not detect ttyACM0)
Linux 12.04 Linaro : LCD Touchscreen OK, ttyACMO No
Linux 13.08 : LCD Touchscreen NO, ttyACMO OK

Can anybody help me how to setup NanoPC-T1 so I can use both Touchscreen
and ttyACM0

Thanks
Saif

davef
In /dev you don't see any ttyACM0.  I needed to add the following in my
udev rules ....

saiful.tavip
Thanks davef,

Yes. in LinuxQT and Ubuntu 12.04 I don't see any ttyACM0 in /dev, when I
plug the Arduino to USB port of NanoPC.
LCD can not run/show GUI.

But for Linux Ubuntu 13.08, I can see ttyACM0 but. With this Ubuntu, I only
get terminal console only. No GUI. When I run startx, it get error.

Any suggestion, davef ?

Regards
Saif

Dave Festing
Attachment: 49-teensy.zip (1.93 KB)
in /lib/udev/rules.d add the attached file, after changing the file name to
49-teensy.rules  I changed ttyACM0 and ttyACM1
to aliases "house" and "power_system".

Change them back.

I thought I had a simpler change, but this is what I currently use with the
Adafruit ATmega32U4 USB dev boards.

Dave Festing
Sorry, don't know about your GUI problem.  Was the no ttyACM0 on the host? 
I am really responding to problems on the target.  On the host I would
expect ttyACM0 would show up when plugged in.

Do dmesg, then plug it in and do dmesg again.

saiful.tavip
Dear Dave,

Thanks for your suggestion.
I tried using 49-teensy.rules, but no succes
(file from your link is broken, so I find from other site)

When I plug the arduiono to NanoPC,
in NanoPC dmesg show :
usb 1-2.4.3: new full-speed USB device number 8 using s5p-ehci
usb 1-2.4.3: New USB device found, idVendor=2341, idProduct=0042
usb 1-2.4.3: New USB device strings: Mfr=1, Product=2, SerialNumber=220
usb 1-2.4.3: Manufacturer: Arduino (wwww.arduino.cc)
usb 1.2.4.3: SerialNumber: 553323332303514B040

My system is ( afrer uname -a )
linux FriendlyARM 3.5.0-FrienlyARM

Display : 7" touchscreen LCD

Do you have other suggestion ?

Regards
Saif

saiful.tavip
Dear Dave :
"Sorry, don't know about your GUI problem.  Was the no ttyACM0 on the host?

I am really responding to problems on the target.  On the host I would
expect ttyACM0 would show up when plugged in."

If I use Ubuntu 13.10 Kernel 3.8 
ttyACM0 is detected when I plug the arduino.

But this Ubuntu 13.10 is only run good with HDMI output
When I use 7" touchscreen LCD, I only got Terminal Console.
when I try to run X11 by using startx command, I got error

Regards
Saif

davef
Ah, sorry there is another command .... lsusb which lists the USB devices
and some important information about them.

What does that say?

Also, I would suggest going over to the Odroid U3 forum as it uses a very
similar Samsung part and there is a lot of information there.  There are
lots of threads about startx X11 etc.

Do you get an error message or does it just stop working? Have you checked
any logs, ie /var/log/messages and maybe others?

saiful.tavip
Attachment: Xorg.1.log.zip (2.61 KB)
Dear Davef

Thanks for your help for my case
Please find the Xorg.1.log file in attached
My system after uname -a
Linux NanoPC 3.8.13.16
in this version, ttyACM0 can be detected
But X11 can not start

I use LCD touchscreen 7", without HDMI output
No X11 GUI, console only

Can anybody have any suggestion?


Regards
Saif

Herewith the last portion of Xorg.1.log
   213.977] (**) MALI(0): Use cached UMP memory
[   213.977] (**) MALI(0): Don't use umplock across processes
[   214.051] (EE) MALI(0): mali_drm_open_master DRM OPEN (fd: 0x9)
[   214.051] (EE) MALI(0): mali_drm_open_master DRM failed to interface
version
[   214.051] (EE) MALI(0): Failed to be master of DRM!
[   214.051] (II) UnloadModule: "mali"
[   214.051] (EE) Screen(s) found, but none have a usable configuration.
[   214.051] (EE) 
Fatal server error:
[   214.051] (EE) no screens found(EE) 
[   214.051] (EE) 
Please consult the The X.Org Foundation support 
   at http://wiki.x.org
 for help. 
[   214.051] (EE) Please also check the log file at "/var/log/Xorg.1.log"
for additional information.
[   214.051] (EE) 
[   214.059] (EE) Server terminated with error (1). Closing log file.

effeci
Hi,
I've got the same issue with NanoPC (Ubuntu image flashed on SD) and S70. I
tried to make the board boot from mmc, with factory loaded operative
system, but still no desktop environment on the S70.

They have been sold as compatible but they don't seem to be able to work
together, even if used when out of the box.

Does anyone know or solved this issue? It's an unexpected and tricky
situation for me.

Regards,
Francesco