Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LVDS 15inch (only backlight) #22

Open
gondorf opened this issue Dec 21, 2015 · 62 comments
Open

LVDS 15inch (only backlight) #22

gondorf opened this issue Dec 21, 2015 · 62 comments

Comments

@gondorf
Copy link

gondorf commented Dec 21, 2015

I was working on getting my 15 inch LVDS panel compatible with the latest version of Arch Linux ARM a few months ago, and finally got a chance to work on it again recently.

I followed your directions to make, build, and install the kernel with the configuration file udoo_quad_defconfig. I am booting from imx6q-udoo-15lvds.dtb with the updated Image.

Everything appears to be working fine (connected through serial). However, I am only getting the backlight on my 15 inch panel--no penguin or prompt to login.

Is there anything that jumps out to you that I am missing? Do I need to configure any command arguments before the kernel boots? Am I missing something in my config file?

Thanks so much for doing this repo and for the help!

@patrykk
Copy link
Owner

patrykk commented Dec 22, 2015

did you load backlight-gpio module?

@patrykk
Copy link
Owner

patrykk commented Dec 22, 2015

Please supply me a your config file, dmesg and env print from uboot.

@gondorf
Copy link
Author

gondorf commented Dec 22, 2015

config.txt

dmesg.txt

(I renamed imx6q-udoo-15lvds.dtb to imx6q-udoo.dtb. Also, instead of uImage in your instructions, I named it zImage.)
envPrint.txt

@patrykk
Copy link
Owner

patrykk commented Dec 22, 2015

did you test Xorg server with /dev/fb2 for vivante? and please paste lsmod.

@patrykk
Copy link
Owner

patrykk commented Dec 22, 2015

I have seen that you use imx6q-udoo.dtb in uboot. Did you copy imx6q-udoo-15lvds.dtb to imx6q-udoo.dtb ?

@gondorf
Copy link
Author

gondorf commented Dec 22, 2015

I copied imx6q-udoo-15lvds.dtb to imx6q-udoo.dtb.

lsmod.txt

Also, if I try compiling and installing the other UDOO kernel repository:
https://github.com/UDOOboard/linux_kernel
I get some output on the LVDS display (the penguin and a glitched prompt) but USB, and a lot of other drivers don't work.

@patrykk
Copy link
Owner

patrykk commented Dec 22, 2015

could you test it with Xorg server and dev/fb2 ? Probably you have default graphic output on /dev/fb0 so you have to remove from command line support for hdmi and from kernel or change output to /dev/fb2. Usually I don't use output from console on dev/fb2, only from Xorg server.

@gondorf
Copy link
Author

gondorf commented Dec 23, 2015

I currently don't have Xorg installed, so do you know how could I output just the console to the LVDS screen?

@patrykk
Copy link
Owner

patrykk commented Dec 24, 2015

try remove from kernel hdmi support and configure only LVDS in kernel command line.

@patrykk
Copy link
Owner

patrykk commented Dec 24, 2015

could you test it ftp://ftp.embeddedarm.com/ts-arm-sbc/ts-7350-linux/samples/bmptoraw.c with /dev/fb2 ?

@gondorf
Copy link
Author

gondorf commented Dec 24, 2015

When I test bmptoraw.c with /dev/fb2, I get "cat: write error: No such device" when I do the command "cat image.raw > /dev/fb2" as root.

@gondorf
Copy link
Author

gondorf commented Dec 30, 2015

I just recompiled the kernel with:

CONFIG_FB_MXC_HDMI=n
CONFIG_SND_SOC_IMX_HDMI=n

but I'm still getting the same problem.

Does this look okay?

[    0.255833] backlight supply power not found, using dummy regulator
[    0.255894] /backlight: arguments longer than property
[    0.255904] of_pwm_get(): can't parse "pwms" property
[    0.255918] pwm-backlight backlight: unable to request PWM, trying legacy API
[    0.257399] MIPI DSI driver module loaded
[    0.257820] mxc_sdc_fb fb@0: NO mxc display driver found!
[    0.257913] mxc_sdc_fb fb@1: registered mxc display driver ldb

@gondorf gondorf closed this as completed Dec 30, 2015
@gondorf gondorf reopened this Dec 30, 2015
@patrykk
Copy link
Owner

patrykk commented Jan 1, 2016

Hi, I have to investigate it. Please supply again :
"uname -a"
"lsmod"
cat /proc/iomem
dmesg.
cat //sys/class/graphics/fb0/modes
cat //sys/class/graphics/fb1/modes
cat //sys/class/graphics/fb2/modes
cat //sys/class/graphics/fb0/name
cat //sys/class/graphics/fb1/name
cat //sys/class/graphics/fb2/name
cat //sys/class/backlight/backlight_lcd/bl_power
cat //sys/class/backlight/backlight_lcd/brightness
cat //sys/class/backlight/backlight_lcd/actual_brightness

@gondorf
Copy link
Author

gondorf commented Jan 6, 2016

"uname -a"

Linux alarm 4.2.0-g6c65afd #1 SMP PREEMPT Wed Dec 30 01:16:31 UTC 2015 armv7l GNU/Linux 

"lsmod"

Module                  Size  Used by
rt2800usb              14884  0
rt2x00usb              11374  1 rt2800usb
rt2800lib              77995  1 rt2800usb
rt2x00lib              44073  3 rt2x00usb,rt2800lib,rt2800usb
crc_ccitt               1752  1 rt2800lib
btusb                  27783  0
btrtl                   4494  1 btusb
btbcm                   6742  1 btusb
btintel                 1911  1 btusb
bluetooth             318425  5 btbcm,btrtl,btusb,btintel
ahci_imx                6925  0
libahci_platform        8591  1 ahci_imx
ci_hdrc_imx             5406  0
ci_hdrc                27276  1 ci_hdrc_imx
libahci                28679  2 ahci_imx,libahci_platform
mxc_v4l2_capture       25055  0
ipu_bg_overlay_sdc      5406  1 mxc_v4l2_capture
udc_core               10024  1 ci_hdrc
ipu_still               2480  1 mxc_v4l2_capture
libata                187432  3 ahci_imx,libahci,libahci_platform
ipu_prp_enc             6052  1 mxc_v4l2_capture
ipu_csi_enc             3725  1 mxc_v4l2_capture
ipu_fg_overlay_sdc      6299  1 mxc_v4l2_capture
ehci_hcd               43909  1 ci_hdrc
scsi_mod              174683  1 libata
ov5640_camera_mipi     23803  0
evbug                   2078  0
v4l2_int_device         3121  2 ov5640_camera_mipi,mxc_v4l2_capture
usbmisc_imx             6509  1 ci_hdrc_imx
usbcore               183274  5 btusb,rt2x00usb,rt2800usb,ehci_hcd,ci_hdrc
usb_common              3514  3 udc_core,usbcore,ci_hdrc
ipv6                  316217  22

cat /proc/iomem

00110000-00111fff : /soc/dma-apbh@00110000
00130000-00133fff : galcore register region
00134000-00137fff : galcore register region
00905000-0093ffff : 905000.sram
02028000-0202bfff : /soc/aips-bus@02000000/spba-bus@02000000/ssi@02028000
0209c000-0209ffff : /soc/aips-bus@02000000/gpio@0209c000
020a0000-020a3fff : /soc/aips-bus@02000000/gpio@020a0000
020a4000-020a7fff : /soc/aips-bus@02000000/gpio@020a4000
020a8000-020abfff : /soc/aips-bus@02000000/gpio@020a8000
020ac000-020affff : /soc/aips-bus@02000000/gpio@020ac000
020b0000-020b3fff : /soc/aips-bus@02000000/gpio@020b0000
020b4000-020b7fff : /soc/aips-bus@02000000/gpio@020b4000
020bc000-020bffff : /soc/aips-bus@02000000/wdog@020bc000
020c9000-020c9fff : /soc/aips-bus@02000000/usbphy@020c9000
020ca000-020cafff : /soc/aips-bus@02000000/usbphy@020ca000
020cc034-020cc08b : /soc/aips-bus@02000000/snvs@020cc000/snvs-rtc-lp@34
020e0000-020e3fff : /soc/aips-bus@02000000/iomuxc@020e0000
020ec000-020effff : /soc/aips-bus@02000000/sdma@020ec000
02184000-021841ff : /soc/aips-bus@02100000/usb@02184000
   02184000-021841ff : /soc/aips-bus@02100000/usb@02184000
02184200-021843ff : /soc/aips-bus@02100000/usb@02184200
   02184200-021843ff : /soc/aips-bus@02100000/usb@02184200
02184800-021849ff : /soc/aips-bus@02100000/usbmisc@02184800
02188000-0218bfff : /soc/aips-bus@02100000/ethernet@02188000
02198000-0219bfff : mmc0
021a4000-021a7fff : /soc/aips-bus@02100000/i2c@021a4000
021a8000-021abfff : /soc/aips-bus@02100000/i2c@021a8000
021b8000-021bbfff : /soc/aips-bus@02100000/weim@021b8000
021d8000-021dbfff : /soc/aips-bus@02100000/audmux@021d8000
021e4000-021e7fff : /soc/aips-bus@02100000/vdoa@021e4000
021e8000-021ebfff : /soc/aips-bus@02100000/serial@021e8000
021f0000-021f3fff : /soc/aips-bus@02100000/serial@021f0000
02200000-02203fff : /soc/sata@02200000
02204000-02207fff : galcore register region
02400000-027fffff : 2400000.ipu
02800000-02bfffff : 2800000.ipu
10000000-4fffffff : System RAM
   10008000-10722bff : Kernel code
   1075c000-107f1293 : Kernel data

dmesg.
dmesg.txt

cat //sys/class/graphics/fb0/modes

U:1366x768p-55

cat //sys/class/graphics/fb1/modes

U:240x320p-60

cat //sys/class/graphics/fb2/modes

no such file or directory

cat //sys/class/graphics/fb0/name

DISP3 BG

cat //sys/class/graphics/fb1/name

DISP3 FG

cat //sys/class/graphics/fb2/name

no such file or directory

cat //sys/class/backlight/backlight_lcd/bl_power

0

cat //sys/class/backlight/backlight_lcd/brightness

1

cat //sys/class/backlight/backlight_lcd/actual_brightness

1

@patrykk patrykk self-assigned this Jan 13, 2016
@patrykk
Copy link
Owner

patrykk commented Jan 15, 2016

backlight looks ok, I'll try change dtsi files with next release.

@patrykk
Copy link
Owner

patrykk commented Jan 23, 2016

I tested it with my udoo. Howto show console on 7inch screen:

dmesg | grep -i command
[ 0.000000] Kernel command line: console=ttymxc1,115200 root=/dev/sda1 rw fec.disable_giga=1 mem=1024M video=mxcfb0:dev=ldb,LDB-WVGA,if=RGB666,bpp=32 panic=10

[ 0.315069] mxc_sdc_fb fb@0: registered mxc display driver ldb
[ 0.380781] Console: switching to colour frame buffer device 100x30
[ 0.405085] ldb 2000000.aips-bus:ldb@020e0008: LVDS channel1 is not online
[ 0.405096] mxc_sdc_fb fb@1: NO mxc display driver found!
[ 0.405792] imx-sdma 20ec000.sdma: no iram assigned, using external mem
[ 0.406138] imx-sdma 20ec000.sdma: loaded firmware 1.1

Xorg works too.

@patrykk
Copy link
Owner

patrykk commented Jan 23, 2016

In your command line I found:
video=mxcfb1:dev=ldb,DB-WXGA,if=RGB24,bpp=32

"DB-WXGA" - probably typo, or try LDB-WVGA
"RGB24" - try RGB666
"mxcfb1" - try mxcfb0

regards,

@gondorf
Copy link
Author

gondorf commented Jan 26, 2016

I still have nothing on my screen (below is output of dmesg | grep -i command):

[alarm@alarm ~]$ dmesg | grep -i command
[    0.000000] Kernel command line: console=ttymxc1,115200,115200 root=/dev/mmcblk0p1 rw rootwait fbmem=24M video=mxcfb0:dev=ldb,LDB-WVGA,if=RGB666,bpp=32

I got the other parameters from this page: http://elinux.org/UDOO_setup_lvds_panels

@patrykk
Copy link
Owner

patrykk commented Jan 26, 2016

I don't have any possibility to reproduce problem because I don't have a 15 inch panel.

@gondorf
Copy link
Author

gondorf commented Jan 26, 2016

Okay.

Have you confirmed that the seven inch panel works with the latest Arch Linux ARM distribution and your kernel?
http://archlinuxarm.org/platforms/armv7/freescale/udoo

That way I can hopefully narrow down this issue and verify if this is an issue with the kernel or something with the Arch Linux ARM distribution/uboot.

@patrykk
Copy link
Owner

patrykk commented Jan 27, 2016

Yes, I use arch linux on my udoo quad and 7inch panel, and it works.

@patrykk
Copy link
Owner

patrykk commented Jan 27, 2016

btw. you use kernel with 5.0.11.33433(p7.1/3), please remember that you have to update you userland packages. With arch linux you could try branch use 5.0.11 p4.4.

my packages:
imx-gpu-viv-g2d 5.0.11.p7.1-1
imx-gpu-viv-g2d-samples 5.0.11.p7.1-1
imx-gpu-viv-samples 5.0.11.p7.1-1
imx-gpu-viv-x11 5.0.11.p7.1-1
xf86-video-imx-viv 3.10.53_1.1.0-1

btw. I don't support legacy vivante 4.x.xx driver.

@gondorf
Copy link
Author

gondorf commented Jan 28, 2016

Okay, thanks for the help! I'll probably keep messing with it.

By the way, I just got the linux_kernel working lvds working with Arch from the other repo:
https://github.com/UDOOboard/linux_kernel

The text is kind of glitched on the screen making it hard to read, but it appears to be working :)

@gondorf
Copy link
Author

gondorf commented Jan 28, 2016

Okay, fixed the glitched text by changing the kernel command line arguments.

@vpeter4
Copy link

vpeter4 commented Feb 5, 2016

Try with
video=mxcfb0:dev=ldb,1360x768M@60,if=RGB24,bpp=32

@gondorf
Copy link
Author

gondorf commented Feb 6, 2016

Gave that a shot but still had no luck.

@patrykk
Copy link
Owner

patrykk commented Feb 6, 2016

vpeter4: could you test the kernel ?

@vpeter4
Copy link

vpeter4 commented Feb 7, 2016

The problem is that I only have openelec running and using two vivante versions (3.10.17-1.0.2 and 5.0.11.p4.5). For this kernel I would need to adjust whole build environment.

Can someone post bootable sd card image which I could try? And replace only dtb/kernel with mine.

@patrykk
Copy link
Owner

patrykk commented Feb 7, 2016

Hi, Could you test kernel 4.2 with 5.0.11.p4.4 ?

@patrykk
Copy link
Owner

patrykk commented Feb 7, 2016

btw. I'll make branch 4.4 with 4.5 too. :)

@gondorf
Copy link
Author

gondorf commented Feb 7, 2016

vpeter4:

Here's what I've been using...

http://archlinuxarm.org/platforms/armv7/freescale/udoo

@vpeter4
Copy link

vpeter4 commented Feb 8, 2016

Sorry but I'm not familiar with Arch and which packages needs to install.
When I'm done with debugging my systemd boot problem I have I will build my image with this kernel and required libraries. But can't tell any eta. Sorry. Only quick tests are possible for me to do right now.

@gondorf
Copy link
Author

gondorf commented Feb 9, 2016

No problem. By the way, that Arch installation instructions should build a system that drops you into a console where you can just log into with username: alarm and password: alarm. It may already have all the packages included that you need to test the kernel, but it's been a few months so I don't remember.

@patrykk
Copy link
Owner

patrykk commented Feb 14, 2016

Hi, could you check branch 4.4-5.0.11.p7.3. I updated IPU driver.

@gondorf
Copy link
Author

gondorf commented Feb 16, 2016

I compiled/installed and my kernel hanged at usbcore.

@patrykk
Copy link
Owner

patrykk commented Feb 17, 2016

4.4-5.0.11.p7.3 branch ? :> strange.

@patrykk
Copy link
Owner

patrykk commented Feb 17, 2016

YEs, I could confirm that. Its a problem with mmc.

@patrykk
Copy link
Owner

patrykk commented Feb 17, 2016

I resolved problem with mmc, Please update repo and rebuild dtb file.

@gondorf
Copy link
Author

gondorf commented Feb 18, 2016

It boots now, but I still only have the backlight.

Maybe I'm messing something up lol; looking forward to seeing if vpeter sees the same behavior.

@patrykk
Copy link
Owner

patrykk commented Feb 18, 2016

thanks, I dont have 15inch screen so I couldnt debug it :(

@patrykk patrykk added bug and removed question labels Feb 18, 2016
@patrykk
Copy link
Owner

patrykk commented Feb 18, 2016

I'll try with dlb driver from udoo kernel. Please give me some time and we could test new kernel with you. I'll make build. BTW. did you test linux_kernel from udoo ?

@patrykk patrykk changed the title LVDS (only backlight) LVDS 15inch (only backlight) Feb 18, 2016
@gondorf
Copy link
Author

gondorf commented Feb 19, 2016

Yeah, right now I am running linux_kernel from udoo on Arch Linux ARM and the panel works.

@patrykk
Copy link
Owner

patrykk commented Feb 19, 2016

I have another one idea. Give me some time to investigate it. BTW. could you supply last dmesg from 4.4 kernel?

@gondorf
Copy link
Author

gondorf commented Feb 21, 2016

dmesg.txt

@patrykk
Copy link
Owner

patrykk commented Feb 21, 2016

Could you check kernel after last updates from branch 4.4-5.0.11.p7.3 or 4.4-5.0.11.p4.4?

@gondorf
Copy link
Author

gondorf commented Feb 21, 2016

Just updated it but no luck (only backlight).

Here's the dmesg...

dmesg.txt

@patrykk
Copy link
Owner

patrykk commented Feb 21, 2016

did you use a predefined config file from kernel tree for udoo ?

@gondorf
Copy link
Author

gondorf commented Feb 21, 2016

Should be the predefined one I believe.

config.txt

@patrykk
Copy link
Owner

patrykk commented Aug 1, 2016

Udoo kernel have had that same problem. I dont have device so I couldnt test it at home.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants