Thanks for replying Dennis

I tried changing the uBoot.env as suggested by you. Results weren't as
expected. However I was able to find a work around method which I would
like to share with the community.

I was able to access gpio on P1 headers (almost all of them) using the
bonescript library. Since my application is cpp based , I had to find a way
to use these gpios on P1 header.
Here's what I did:
1)Created a service which runs a javascript bonescript application with P1
pins configured in bonescript.
2)allowed this service to run in background and then ran my main.cpp
application using these additional pins on P1 as gpios.

Results:

Got access to 30 pins total, as gpio

Assessment:

Bonescript is doing the configuration of pins for me. Although I haven't
deep dived into bonescript, someone who already has knowledge of it can
better explain how is bonescript able to configure gpio.

Regards

Piyush

On Fri, 26 Mar, 2021, 04:00 Dennis Lee Bieber, <[email protected]>
wrote:

> On Thu, 25 Mar 2021 10:07:13 -0700 (PDT), in
> gmane.comp.hardware.beagleboard.user
> "[email protected]"
> <[email protected]> wrote:
>
>
> >
> >The following post shows a line in uEnv.txt for enabling, and I assuming
> >disabling cape universal:
> >
> >https://github.com/beagleboard/bb.org-overlays/issues/79
> >
> >enable_uboot_cape_universal=1
> >
> >So, not sure if this means that if you change to 0 in uEnv.txt, that it
> >would free up pins so that pin-config no longer gives an error.
> >
>
>         I seem to recall that disabling cape_universal ALSO disables any
> use of
> config-pin. More likely is that one needs to disable /other/ overlays that
> are claiming the desired pins. From my BBB:
>
> ###Disable auto loading of virtual capes (emmc/video/wireless/adc)
> #disable_uboot_overlay_emmc=1
> #disable_uboot_overlay_video=1
> #disable_uboot_overlay_audio=1
> #disable_uboot_overlay_wireless=1
> #disable_uboot_overlay_adc=1
> ###
> ###PRUSS OPTIONS
> ###pru_rproc (4.14.x-ti kernel)
> #uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-14-TI-00A0.dtbo
> ###pru_rproc (4.19.x-ti kernel)
> uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-19-TI-00A0.dtbo
> ###pru_uio (4.14.x-ti, 4.19.x-ti & mainline/bone kernel)
> #uboot_overlay_pru=/lib/firmware/AM335X-PRU-UIO-00A0.dtbo
> ###
> ###Cape Universal Enable
> enable_uboot_cape_universal=1
>
>         Though what overlay claims P1_36 (PWM0 A) is not apparent. May
> have to
> search the device tree sources to find it.
>
>
> --
> Dennis L Bieber
>
> --
> For more options, visit http://beagleboard.org/discuss
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "BeagleBoard" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/beagleboard/IocB0viAW2A/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/beagleboard/gv2q5gpoi1o10hfvio4ishmebffvhlrusc%404ax.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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAD20Z3y-UmK7XDn39927cTNjiMC0FTAwcmSpW-94iur_NMHRFg%40mail.gmail.com.

Reply via email to