Hello,
I have successfully built and run BPI-Mainline-bsp on my board. Now, I’m looking for LCD support. I have an RGB screen which is attached to the dedicated LCD0 pins. What should I do to enable the LCD output?
Thank you!
Hello,
I have successfully built and run BPI-Mainline-bsp on my board. Now, I’m looking for LCD support. I have an RGB screen which is attached to the dedicated LCD0 pins. What should I do to enable the LCD output?
Thank you!
Isn’t the support quality great here? Did @sinovoip contacted you directly to answer your question?
I don’t know what you refer to with ‘BPI-Mainline-bsp’ (it can be either BSP – old Android crap from Allwinner – or mainline – community kernel from linux-sunxi community). Anyway: With mainline kernel you need to translate LCD settings from fex file to u-boot config as outlined here: http://linux-sunxi.org/LCD
Thank you for your help. I’m using the repository here.
Is that all I have to do? Isn’t any device-tree or frame buffer stuff needed? At least some GPIO setting?
I’ll give it a try anyway.
Why? This is outdated @sinovoip stuff no one should use. Simply use mainline kernel (4.6 at the moment) instead, there’s really no need if you want to use mainline to rely on anything provided by ‘Team BPi’.
Regarding further configs I can not help. I bought a Banana Pi M2 12 months ago, did some tests and then donated it to Hans de Goede (a linux-sunxi dev who wrote the device-tree stuff for M2 from scratch since the .dts @sinovoip provided was ‘crap’ – his words).
We support M2 since a long time in Armbian and do not have to apply any more patches so simply using mainline kernel is fine.
I got your point. Thank you for clarifying.
Now, I have tried the u-boot defconfig below:
CONFIG_ARM=y CONFIG_ARCH_SUNXI=y CONFIG_MACH_SUN7I=y CONFIG_DRAM_CLK=432 CONFIG_GMAC_TX_DELAY=3 CONFIG_DEFAULT_DEVICE_TREE=“sun7i-a20-bananapi”
# CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
CONFIG_SPL=y CONFIG_SYS_EXTRA_OPTIONS=“AXP209_POWER,SUNXI_GMAC,RGMII,MACPWR=SUNXI_GPH(23),AHCI,USB_EHCI”# CONFIG_CMD_IMLS is not set
# CONFIG_CMD_FLASH is not set
# CONFIG_CMD_FPGA is not set
CONFIG_DM_ETH=y CONFIG_ETH_DESIGNWARE=y CONFIG_DM_SERIAL=y CONFIG_USB=y CONFIG_DM_USB=y CONFIG_VIDEO_LCD_MODE=“x:800,y:480,depth:24,pclk_khz:30000,le:40,ri:40,up:29,lo:13,hs:48,vs:3,sync:3,vmode:0” CONFIG_VIDEO_LCD_POWER=“PH12” CONFIG_VIDEO_LCD_BL_EN=“PH8” CONFIG_VIDEO_LCD_BL_PWM=“PB2”
It worked for u-boot part. But I have to compile the kernel before trying. I think it will also work.
Thank you.
With mainline kernel the whole framebuffer initialization happens there and the kernel simply uses what he gets from u-boot. But currently you use wrong settings (sun7i-a20-bananapi – the absolutely incompatible M2 is unfortunately also called Banana Pi which leads to all sorts of trouble). You need to add the LCD options to the correct defconfig (sun6i… – use the official u-boot stuff)
Hi…i am a new user here.Actually i don’t know what you refer to with ‘BPI-Mainline-bsp’ . With mainline kernel you need to translate LCD settings from fex file to u-boot config.
Hi, i have problem with linux and my LCD RGB panell(http://forum.banana-pi.org/t/lcd-module-dsi-rgb-with-touch-and-s070swv20hg-dc16-lcd-panel-mainline-kernel/11172 - did you manage to solve your problem?
Hi there.
I dont remember cleaely but please check here http://www.atakansarioglu.com/getting-started-bananapi-linux/