notro / fbtft

Linux Framebuffer drivers for small TFT LCD display modules. Development has moved to https://git.kernel.org/cgit/linux/kernel/git/gregkh/staging.git/tree/drivers/staging/fbtft?h=staging-testing
1.86k stars 494 forks source link

FBDEV(0) error with raspbian image #35

Closed Freighter closed 11 years ago

Freighter commented 11 years ago

Hi there, i installed 2013-05-25-wheezy-raspbian-2013-07-07-fbtft.zip to an Raspberry with ITDB02-28 and follow the instructions to start the device. But after startin X the image isn't displayed and in the log files is the following

----------------extracts--------- [ 659.303] compiled for 1.12.4, module version = 1.2.0 [ 659.304] ABI class: X.Org Server Extension, version 6.0 659.304 Loading extension DRI2 659.304 Matched fbdev as autoconfigured driver 0 659.304 Assigned the driver to the xf86ConfigLayout 659.304 LoadModule: "fbdev" 659.308 Loading /usr/lib/xorg/modules/drivers/fbdev_drv.so 659.311 Module fbdev: vendor="X.Org Foundation" [ 659.312] compiled for 1.12.1, module version = 0.4.2 [ 659.312] ABI class: X.Org Video Driver, version 12.0 659.312 FBDEV: driver for framebuffer: fbdev 659.313 using VT number 7

659.335 Falling back to old probe method for fbdev 659.335 Loading sub module "fbdevhw" 659.335 LoadModule: "fbdevhw" 659.336 Loading /usr/lib/xorg/modules/libfbdevhw.so 659.340 Module fbdevhw: vendor="X.Org Foundation" [ 659.340] compiled for 1.12.4, module version = 0.0.2 [ 659.340] ABI class: X.Org Video Driver, version 12.1 659.341 FBDEV(0): using default device 659.341 VGA arbiter: cannot open kernel arbiter, no multi-card support 659.342 FBDEV(0): Creating default Display subsection in Screen section "Default Screen Section" for depth/fbbpp 16/16 659.342 FBDEV(0): Depth 16, (==) framebuffer bpp 16 659.342 FBDEV(0): RGB weight 565 659.342 FBDEV(0): Default visual is TrueColor 659.343 FBDEV(0): Using gamma correction (1.0, 1.0, 1.0) 659.343 FBDEV(0): hardware: itdb28fb (video memory: 150kB) 659.343 FBDEV(0): checking modes against framebuffer device... 659.343 FBDEV(0): checking modes against monitor... 659.345 FBDEV(0): Virtual size is 320x240 (pitch 320) 659.345 FBDEV(0): Built-in mode "current" 659.345 FBDEV(0): DPI set to (96, 96) 659.346 Loading sub module "fb" 659.346 LoadModule: "fb" 659.346 Loading /usr/lib/xorg/modules/libfb.so 659.356 Module fb: vendor="X.Org Foundation" [ 659.356] compiled for 1.12.4, module version = 1.0.0 [ 659.357] ABI class: X.Org ANSI C Emulation, version 0.4 659.357 FBDEV(0): using shadow framebuffer 659.357 Loading sub module "shadow" 659.357 LoadModule: "shadow" 659.358 Loading /usr/lib/xorg/modules/libshadow.so 659.363 Module shadow: vendor="X.Org Foundation" [ 659.363] compiled for 1.12.4, module version = 1.1.0 [ 659.363] ABI class: X.Org ANSI C Emulation, version 0.4 659.364 FBDEV(0): FBIOBLANK: Invalid argument 659.383 FBDEV(0): Backing store disabled 659.384 FBDEV(0): DPMS enabled 659.385 RandR enabled

...................

660.196 This device may have been added with another device file. 660.242 FBDEV(0): FBIOBLANK: Invalid argument


the last two lines are the end of the log File

Please help btw. I also got that when i compile the fbtft by myselfe greetings

notro commented 11 years ago

Is it just X that's not working? Does it work with the console?

Freighter commented 11 years ago

Hi notro, I have done following commands to load the driver and start a test:

modprobe fbtft_device name=itdb28fb rotate=3

modprobe itdb28fb

con2fbmap 1 1

fbi -d /dev/fb1 -a Mystery-100x100.jpg

fbi -d /dev/fb1 -T 1 -a Mystery-100x100.jpg

There is no reaction on the Display. I had tried the Code from http://blog.iteadstudio.com/raspberry-pi-with-tft-lcd-demo/ and it works fine

I use a RPI with 256mb , ITDB02-28 with this http://blog.iteadstudio.com/raspberry-pi-to-itdb02-series-lcd-adapter-kit/ adapter

Additionally i see the following Log Entires when i tap on the Touchscreen

raspberrypi kernel: [162038.184493] SysRq : HELP : loglevel(0-9) reBoot Crash terminate-all-tasks(E) memory-full-oom-kill(F) debug(G) kill-all-tasks(I) thaw-filesystems(J) saK show-memory-usage(M) nice-all-RT-tasks(N) powerOff show-registers(P) show-all-timers(Q) unRaw Sync show-task-states(T) Unmount show-blocked-tasks(W)

Thnx for ur help

notro commented 11 years ago

modprobe fbtft_device name=itdb28fb rotate=3

The default pin assignments doesn't work with that adapter. See this post: http://www.raspberrypi.org/phpBB3/viewtopic.php?p=350980#p350980

Because of how the adapter is wired, you can't use the touchpanel as a Linux touchpanel. The touch IC wires doesn't go to the SPI bus pins.

Freighter commented 11 years ago

btw. afterwards i found a article about xorg.conf with the 1.8" this is a example /etc/X11/xorg.conf

Section "Device"
 Identifier "uga"
 driver "fbdev"
 Option "fbdev" "/dev/fb1"
 Option "ShadowFB" "off"
EndSection
Section "Monitor"
 Identifier "monitor"
EndSection
Section "Screen"
 Identifier "screen"
 Device "uga"
 Monitor "monitor"
EndSection
Section "ServerLayout"
 Identifier "default"
 Screen 0 "screen" 0 0
EndSection

with this xorg seems to run

startx

thnx for your help so far ;) very good work !