On Wed, Apr 11, 2018 at 8:39 PM,  <smith.winston....@gmail.com> wrote:
> On Sunday, April 8, 2018 at 1:03:57 PM UTC-4, RobertCNelson wrote:
>>
>> Ah, you found a fun bug in the old path..  I'll fix it up for the next
>> person, but you can go down the new path with your setup...
>>
>> [snip...]
>>
>> in /boot/uEnv.txt
>>
>> remove your: dtb=am335x-boneblack-emmc-overlay.dtb
>>
>> Then set:
>>
>> enable_uboot_overlays=1
>> disable_uboot_overlay_video=1
>
>
> Making this change solved it.  I updated my bb_ble_image.sh script to add
> --enable-uboot-cape-overlays and move from --dtb beaglebone-nohdmi to --dtb
> beagblebone.  However, I couldn't see a way when invoking setup_sdcard.sh to
> set disable_uboot_overlay_video=1 in uEnv.txt via the command line.  So I
> made the following change to add a custom --disable-uboot-overlay-video
> option to setup_sdcard.sh (which temporarily helps me out in this case!):
>
> diff --git a/tools/setup_sdcard.sh b/tools/setup_sdcard.sh
> index 9d86f92..b9de76e 100755
> --- a/tools/setup_sdcard.sh
> +++ b/tools/setup_sdcard.sh
> @@ -1266,7 +1266,11 @@ populate_rootfs () {
>                         echo "###" >> ${wfile}
>                         echo "###Disable auto loading of virtual capes
> (emmc/video/wireless/adc)" >> ${wfile}
>                         echo "#disable_uboot_overlay_emmc=1" >> ${wfile}
> -                       echo "#disable_uboot_overlay_video=1" >> ${wfile}
> +                       if [ "x${uboot_overlay_video}" = "xdisable" ] ; then
> +                               echo "disable_uboot_overlay_video=1" >>
> ${wfile}
> +                       else
> +                               echo "#disable_uboot_overlay_video=1" >>
> ${wfile}
> +                       fi
>                         echo "#disable_uboot_overlay_audio=1" >> ${wfile}
>                         echo "#disable_uboot_overlay_wireless=1" >> ${wfile}
>                         echo "disable_uboot_overlay_adc=1" >> ${wfile}
> @@ -2041,6 +2045,9 @@ while [ ! -z "$1" ] ; do
>         --enable-uboot-pru-rproc-414ti)
>                 uboot_pru_rproc_414ti="enable"
>                 ;;
> +       --disable-uboot-overlay-video)
> +               uboot_overlay_video="disable"
> +               ;;
>         --efi)
>                 uboot_efi_mode="enable"
>                 ;;
>
> With this I now have an eMMC flasher image that creates the correct
> /boot/uEnv.txt after flashing.
>
> Please let me know if there is a better way to disable video (I just need a
> cmd line option vs whitelisting), there are other options that you might
> want to control (e.g. audio, adc etc) so maybe a more generalized version of
> this would be a nice enhancement.

Yeah, let's do that, can you share your tree/patch, i'll merge that
and add the adc disable option too..

Regards,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to beagleboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYi%2BqkVc72JGNTRUPtMOqNYQ8sig%3D-WwQdCT5m0BN2%3DH2A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to