MartinKeppler
-
Posts
48 -
Joined
-
Last visited
Reputation Activity
-
MartinKeppler got a reaction from MitchD in Enabling LCD in u-boot Kernel 4.7.2
So, now I can tell you how to enable LCD in u-boot and DT.
First getting the source of armbian from https://github.com/igorpecovnik/lib
Open the file sources/u-boot/v2016.09/configs/Bananapi_defconfig and add:
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" Now LCD is enabled in u-boot. But it will not switch on backlight, because backlight uses pwm and pwm is disabled per default in DT. So you also have to add:
&pwm { pinctrl-names = "default"; pinctrl-0 = <&pwm0_pins_a>, <&pwm1_pins_a>; status = "okay"; }; Ready!
But be aware, LCD only turns on if there is no HDMI Monitor plugged in!!
Ok, hopping some one else of you can use this stuff.
-
MartinKeppler got a reaction from MitchD in Enabling LCD in u-boot Kernel 4.7.2
Okay Guys,
I've got a little success. My display is on now. I think the worst thing I could do, was to let HDMI plugged in and HDMI monitor switched on. Only by luck, I saw, that my display is working when HDMI monitor is switched of.
Now, I will search for the correct solution and post it here soon.
Yours Martin
-
MartinKeppler got a reaction from Green Daddy in Enabling LCD in u-boot Kernel 4.7.2
Ok, I got the same problem. This happens because compile.sh by default forces the checkout of all sources and also by default cleans the builds you did bevor. So every time you compile, your changes will be overwritten.
I suggest to set CREATE_PATCHES=yes in compile.sh.
Now you will be asked in the build process to change some files. Build process is hold, till you press enter. While it's waiting, copy your changed *.dts to the two folders in source. I rember, there must be two folder: /sources/linux-vanilla/master/arch/arm/boot/dts/ and /sources/u-boot/v2016.11/arch/arm/dts/. After pressing enter, the build process automatically detects your changes and creates a patch. So you only have to do this once.
You can read about build options and process here: https://docs.armbian.com/Developer-Guide_Build-Options/
Yours,
Martin
-
MartinKeppler got a reaction from Green Daddy in Enabling LCD in u-boot Kernel 4.7.2
So, now I can tell you how to enable LCD in u-boot and DT.
First getting the source of armbian from https://github.com/igorpecovnik/lib
Open the file sources/u-boot/v2016.09/configs/Bananapi_defconfig and add:
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" Now LCD is enabled in u-boot. But it will not switch on backlight, because backlight uses pwm and pwm is disabled per default in DT. So you also have to add:
&pwm { pinctrl-names = "default"; pinctrl-0 = <&pwm0_pins_a>, <&pwm1_pins_a>; status = "okay"; }; Ready!
But be aware, LCD only turns on if there is no HDMI Monitor plugged in!!
Ok, hopping some one else of you can use this stuff.
-
MartinKeppler reacted to zador.blood.stained in Power Management Banana Pi
You can find some info and datasheet here: https://linux-sunxi.org/AXP209
Section "Control and operation" in the datasheet should answer most of your questions.
AXP209 comes from standby and enables all necessary regulators to boot the board
AXP209 processes long press and shuts down most of regulators
AXP209 IRQ output is connected to A20 NMI input, this way it can send power related events to the CPU.
In case of short power button press, AXP209 sends an IRQ to the CPU, and the kernel driver exposes this as a press of power button of a virtual input device.
In case of long power button press, A20 doesn't have a choice - AXP209 will simply cut off the power.
-
-
MartinKeppler reacted to Pascal in [Lime/next/jessie/console] Armbian compilation stops
Hello
I try to uninstall apt-cacher-ng and install it again ... and remove NO_APT_CACHER=yes
No change
I try to find "userpatches/lib.config" somewhere .....but i didn't find it
But after looking error message a long time , i tell me that apt-cacher-ng wasn't the problem ( perhaps )
Too much error when compiling extra application ( hostapd , lirc etc ).
I set in compile.sh the parameter EXTERNAL="no" instead of "yes" , save it, and run compile.sh
A miracle append !!! All compilation process finished ... I try after rebooting my computer , with and without lot of running applications( chromium , thunderbird , geany, xfe, etc ...)
It work well all the time ....I can obtain my image.raw exepting external applications .... It's a solution , not the most beautiful but it's one
Perhaps there is something to adjust in the compiling "external application" script ....or not ....i don't know but for me it's good
I must tell to the Armbian community something .
Igor, you ( Zador ) and all the team inside this forum are wonderful peoples , your work is amazing .
And if you haven't the solution your can give some way to investigate ....
Thanks you for all and to be patient with newbies like me ...and with my bad english too
-
MartinKeppler reacted to Igor in Can't find axp209 in sysfs
Patch is present only in our NEXT branch and it was not tested on 4.8.0 ... perhaps some adjustment is needed?
-
MartinKeppler reacted to Igor in Touch Driver Banana Pi
It's possible but I can only give you a hint since I never try this to make it work. You need to do two things, enable LCD in u-boot and add this to Banana device tree.
At least you know what you need to look for.
-
MartinKeppler reacted to Igor in Touch Driver Banana Pi
Yes, those are different areas. Forget about .fex when you are using Vanilla kernel. FEX settings are used in old 3.4 kernel and enabling in .fex and loading touch driver is usually enough.
-
MartinKeppler reacted to Igor in Touch Driver Banana Pi
Change a config and rebuilt uboot is required.
Wrote on mobile phone
-
MartinKeppler reacted to vlad59 in Touch Driver Banana Pi
is that pin already used for something else ?
-
MartinKeppler got a reaction from vlad59 in Enabling LCD in u-boot Kernel 4.7.2
So, now I can tell you how to enable LCD in u-boot and DT.
First getting the source of armbian from https://github.com/igorpecovnik/lib
Open the file sources/u-boot/v2016.09/configs/Bananapi_defconfig and add:
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" Now LCD is enabled in u-boot. But it will not switch on backlight, because backlight uses pwm and pwm is disabled per default in DT. So you also have to add:
&pwm { pinctrl-names = "default"; pinctrl-0 = <&pwm0_pins_a>, <&pwm1_pins_a>; status = "okay"; }; Ready!
But be aware, LCD only turns on if there is no HDMI Monitor plugged in!!
Ok, hopping some one else of you can use this stuff.
-
MartinKeppler got a reaction from zgoda_j in Enabling LCD in u-boot Kernel 4.7.2
Okay Guys,
I've got a little success. My display is on now. I think the worst thing I could do, was to let HDMI plugged in and HDMI monitor switched on. Only by luck, I saw, that my display is working when HDMI monitor is switched of.
Now, I will search for the correct solution and post it here soon.
Yours Martin
-
MartinKeppler got a reaction from vlad59 in Enabling LCD in u-boot Kernel 4.7.2
Okay Guys,
I've got a little success. My display is on now. I think the worst thing I could do, was to let HDMI plugged in and HDMI monitor switched on. Only by luck, I saw, that my display is working when HDMI monitor is switched of.
Now, I will search for the correct solution and post it here soon.
Yours Martin
-
MartinKeppler got a reaction from Igor in Enabling LCD in u-boot Kernel 4.7.2
Okay Guys,
I've got a little success. My display is on now. I think the worst thing I could do, was to let HDMI plugged in and HDMI monitor switched on. Only by luck, I saw, that my display is working when HDMI monitor is switched of.
Now, I will search for the correct solution and post it here soon.
Yours Martin
-
MartinKeppler reacted to zador.blood.stained in Using pwm without rebuilding kernel
Keep in mind that if you upgrade the kernel you will loose these changes. You can use something like
apt-mark hold linux-image-next-sunxi apt-mark hold linux-dtb-next-sunxi to prevent kernel upgrade or just redo this procedure after each Armbian kernel update
-
MartinKeppler reacted to zador.blood.stained in Using pwm without rebuilding kernel
You need to clone https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git
Then checkout tag v4.6.3 (or v4.6.7, doesn't matter)
To minimize download time you can do it like this:
mkdir kernel cd kernel git init . git remote add origin "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux-stable.git" git fetch --depth 1 origin tags/v4.6.7 git checkout -f FETCH_HEAD Then edit arch/arm/boot/dts/sun7i-a20-bananapi.dts to include changes from my previous post
After that, if you are doing this on the board, run in the top directory of kernel source tree
cp /boot/config-`uname -r` .config make ARCH=arm dtbs after the process is finished, you should get compiled DT file arch/arm/boot/dts/sun7i-a20-bananapi.dtb
-
MartinKeppler reacted to zador.blood.stained in Using pwm without rebuilding kernel
@MartinKeppler
It's easier to recompile DT file for your board and kernel version from sources, adding this section
&pwm { pinctrl-names = "default"; pinctrl-0 = <&pwm0_pins_a>, <&pwm1_pins_a>; status = "okay"; }; for example, after &pio section. Check sun7i-a20-cubietruck.dts for example - loading sun4i-pwm on cubietruck with mainline kernel adds new entries to /sys/class/pwm.
Numbers like 0xb, 0x35 and 0x36 are phandles and they are specific to decompiled sources, you can't copy-paste them from one decompiled DT to another.