On Tue, Dec 17, 2019 at 3:50 PM Nikolay Teofilov <
n.teo...@gmail.com> wrote:
>
> Hi Robert,
>
> Thank you for your prompt reply. If I understood correctly this fragment I have to adapt in my cape overlay to set the LEDs state as early as kernel is being loading? The problem is exactly the transition time between U-Boot phase and the kernel loading, there is noting shown on the display and somehow the user have to be able to get feedback that at least the pressing on the power button is doing something. With custom compiled kernel and one single overlay file I have now about 5 to 7 seconds darkness between the U-Boot and the LCD response. This includes about 3 to 4 s of u-boot of initialising and loading the overlays right before loading kernel. So this will allow the LEDs being on in the early kernel loading transition phase after this 3 initial seconds?
Upgrade your version of u-boot, i nuked the 2 second wait about a month ago.
Using the fdtoverlay utility, you can have u-boot load one *.dtb, thus
bypassing the overlay loading loop..
For example: am335x-boneblack-uboot-univ.dtb +
BB-BONE-eMMC1-01-00A0.dtbo + AM335X-PRU-UIO-00A0.dtbo +
BB-UART2-00A0.dtbo = am335x-boneblack.dtb
fdtoverlay -i am335x-boneblack-uboot-univ.dtb -o am335x-boneblack.dtb
BB-BONE-eMMC1-01-00A0.dtbo AM335X-PRU-UIO-00A0.dtbo BB-UART2-00A0.dtbo
so that would cut down on a few seconds..