2014-01-07 Raspbian image with LCD-PI drivers

Topics that concern all LCD-PI shields. New drivers and images for Raspberry Pi will be released through this forum.

2014-01-07 Raspbian image with LCD-PI drivers

Postby strancara » Fri Apr 11, 2014 10:38 am

This image supports al HwLevel LCD modules. The major improvement over previous versions is SPI compression support. For LCD-PI33 (newer models), LCD-PI43 and LCD-PI50 it is possible to use on the fly compression of all data that is transferred over SPI. In compression mode 15-bit colors are used but the speedup in GUIs can be very large. It is also possible to use 16 bit colors and no compression. Here is the installation procedure.

1. Download the image from http://www.hwlevel.com/hwlevel/Files/2014-01-07-wheezy-raspbian_lcd-pi.img.zip, unzip it and flash it using Win32DiskImager (or dd command if you are working in Linux). Like in this video, just use our image: https://www.youtube.com/watch?v=c6g4kZy2TTc

2. A new disk labeled 'boot' should appear. Edit config.txt file on this disk. Select a suitable kernel for your LCD-PI and uncomment (delete leading #) in the kernel= line. There is Notepad2 editor on the 'boot' disk which can be used for editing. For example, to use a driver with SPI compression with LCD-PI43 or LCD-PI50 the following line should be uncommented:
Code: Select all
# uncomment to use kernel with LCD-PI43/LCD-PI50 driver compiled into kernel and SPI compression enabled
kernel=kernel_lcd-pi4+c.img


3. Configure XWindows: edit xorg.conf file in lcd-pi_xorg folder. Copy the content from a preconfigured xorg.conf_lcd-pi?? in the same folder. For LCD-PI43 and LCD-PI50 the content of xorg.conf should be like this:
Code: Select all
# configuration for LCD-PI43 and LCD-PI50
Section "InputClass"
   Identifier   "calibration"
   MatchProduct   "ADS7846 Touchscreen"
   # Option   "SwapAxes"   "True"
   Option  "InvertY"      "True"
   Option  "InvertX"      "True"
EndSection


4. (optional) If you want LCD-PI to show console edit the cmdline.txt file on 'boot' disk and add fbcon=map:10 to the end of the line (there is only one line in this file, no matter how it is displayed in your editor/browser):
Code: Select all
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait fbcon=map:10


5. Save all opened files and eject the SD card. Boot the RPi (with SD card inserted). LCD-PI should initialize about two seconds after applying power. If you have configured the LCD-PI to show console the boot console should appear otherwise the display should remain dark with backlight on.
strancara
Site Admin
 
Posts: 32
Joined: Fri Mar 14, 2014 1:45 pm

Re: 2014-01-07 Raspbian image with LCD-PI drivers

Postby strancara » Fri Apr 11, 2014 11:13 am

Now you can login to RPI (connect USB keyboard or use ssh). Expand the file system first. Do not set the RPi to boot directly into GUI. Reboot.

After reboot GUI can be started with
Code: Select all
FRAMEBUFFER=/dev/fb1 startx


or if you want the RPI to boot directly into GUI, edit the /etc/rc.local file:
Code: Select all
sudo nano /etc/rc.local


and add the following line just before the final exit 0:
Code: Select all
sudo -u pi FRAMEBUFFER=/dev/fb1 startx &
strancara
Site Admin
 
Posts: 32
Joined: Fri Mar 14, 2014 1:45 pm

Re: 2014-01-07 Raspbian image with LCD-PI drivers

Postby b_w_johan » Sat Apr 19, 2014 12:55 pm

I've bought the pi32 (fast delivery awesome!) but while installing the screen i happened to come across this problem:

When the screen is connected while booting the USB is disabled.

so i couldn't do the step wich explained to expand the SD card since my keyboard (and whole USB wasn't found it showed that in the lines on booting Linux)

I removed the screen (and the line in the cmdline.txt file) and it booted via tv with working USB(it showed it recognized 3? usb hubs and my brand of keyboard connected to one of them), so i've entered the steps to boot directly to startx (using the nano file edit) so that works, it now boots directly to the interface and the touchscreen works nicely ... but ... the USB is not working while the screen is connected.

What would be the problem and (most importantly) what could be a solution to get the USB to work again.
b_w_johan
 

Re: 2014-01-07 Raspbian image with LCD-PI drivers

Postby strancara » Sat Apr 19, 2014 3:48 pm

Hi, just tested it and USB works the same as in stock kernel for me. Driver also has nothing to do with USB in any way. Could the problem be with power supply? With LCD-PI32 connected RPi draws around 100 mA more current (mostly for backlight).
strancara
Site Admin
 
Posts: 32
Joined: Fri Mar 14, 2014 1:45 pm

Re: 2014-01-07 Raspbian image with LCD-PI drivers

Postby b_w_johan » Sat Apr 19, 2014 7:51 pm

Thank you very much for that suggestion, it solved the problem, I've switched the 1A for a 2A powersupply and the USB works again.
b_w_johan
 

Re: 2014-01-07 Raspbian image with LCD-PI drivers

Postby Five » Wed Aug 13, 2014 7:48 am

Wrote:"so i've entered the steps to boot directly to startx (using the nano file edit) so that works, it now boots directly to the interface and the touchscreen works nicely ... but ... the USB is not working while the screen is connected."


Talking about the mobile phones, i would like to recommend the TV Mobile Phones ,you can get more details at chinazrh.com
Five
 
Posts: 1
Joined: Wed Aug 13, 2014 7:45 am

Re: 2014-01-07 Raspbian image with LCD-PI drivers

Postby TumblePig » Sun Aug 24, 2014 6:09 pm

I'm also having trouble getting the usb ports working. You've already mentioned that this could be a power issue so I was wondering what the output of the power adapters you use are? I've tried two, one with a 5 volt, 1 amp output and the other has 5 V and 2 amps. I might just go out and buy a new adapter from somewhere and see if that solves it, as the ones I've got now are a bit old, if that works I'll let you know :D .
TumblePig
 
Posts: 2
Joined: Fri Aug 22, 2014 11:56 am


Return to LCD-PI Common Topics

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest

cron