How to get rid of cape-universal in kernel 4.14?

145 views
Skip to first unread message

TJF

unread,
Aug 11, 2018, 2:33:45 AM8/11/18
to BeagleBoard
I'm testing kernel

$ uname -a
Linux arm 4.14.54-ti-r63 #1 SMP PREEMPT Thu Jul 12 21:26:13 UTC 2018 armv7l GNU/Linux

and I want to disable the cape-universal stuff. Regardless what I configure in /boot/uEnv.txt, I always get a message in

$ dmesg | grep univ
[    1.124019] gpio-of-helper ocp:cape-universal: ready

and the folder

# ls -l /sys/devices/platform/ocp/ocp:cape-*
insgesamt
0
lrwxrwxrwx
1 root root    0 Aug 11 08:26 driver -> ../../../../bus/platform/drivers/gpio-of-helper
-rw-r--r-- 1 root root 4096 Aug 11 08:26 driver_override
-r--r--r-- 1 root root 4096 Aug 11 08:26 modalias
lrwxrwxrwx
1 root root    0 Aug 11 08:26 of_node -> ../../../../firmware/devicetree/base/ocp/cape-universal
drwxr
-xr-x 2 root root    0 Aug 11 08:26 power
-r--r--r-- 1 root root 4096 Aug 11 08:26 status
lrwxrwxrwx
1 root root    0 Aug 11 08:26 subsystem -> ../../../../bus/platform
-rw-r--r-- 1 root root 4096 Aug 11 08:26 uevent

is full of that cape-universal stuff.

How to get rid of that?

Note: I'm sure that I'm working on the right partition, since there is only one mounted.

Robert Nelson

unread,
Aug 11, 2018, 8:45:32 AM8/11/18
to Beagle Board, jeli.f...@gmail.com
Sure, open /boot/uEnv.txt and comment out:

enable_uboot_overlays=1

->

#enable_uboot_overlays=1

Regards,

--
Robert Nelson
https://rcn-ee.com/
Message has been deleted

TJF

unread,
Aug 11, 2018, 9:15:22 AM8/11/18
to BeagleBoard
Hi Robert!

I need to load a custom cape.

Regards

Robert Nelson

unread,
Aug 11, 2018, 10:29:19 AM8/11/18
to Beagle Board
On Sat, Aug 11, 2018 at 8:15 AM TJF <jeli.f...@gmail.com> wrote:
>
> Hi Robert!
>
> I need to load a custom cape.

Well here is the changes you need to do to your custom cape, to be
fully compatible with "ocp:cape-universal" today...

All the pin's you utilized must be "disabled" in the cape-universal node:

https://github.com/beagleboard/bb.org-overlays/commit/5741f63c1ee922333dca02d9763edae03d477c96


If you don't like that, you can also remove the trigger file:

sudo rm /boot/dtbs/`uname -r`/am335x-boneblack-uboot-univ.dtb

But you'll still have the "ocp:cape-universal" node, as P9_19/P9_20 is
exported by this (i2c by default, but you can enable can on them)

To remove that last one:

TJF

unread,
Aug 11, 2018, 10:46:50 AM8/11/18
to BeagleBoard
Thanks, Robert!


Am Samstag, 11. August 2018 16:29:19 UTC+2 schrieb RobertCNelson:
On Sat, Aug 11, 2018 at 8:15 AM TJF <jeli.f...@gmail.com> wrote:
>
> Hi Robert!
>
> I need to load a custom cape.

Well here is the changes you need to do to your custom cape, to be
fully compatible with "ocp:cape-universal" today...

All the pin's you utilized must be "disabled" in the cape-universal node:

https://github.com/beagleboard/bb.org-overlays/commit/5741f63c1ee922333dca02d9763edae03d477c96

No way!


If you don't like that, you can also remove the trigger file:

sudo rm /boot/dtbs/`uname -r`/am335x-boneblack-uboot-univ.dtb

But you'll still have the "ocp:cape-universal" node, as P9_19/P9_20 is
exported by this (i2c by default, but you can enable can on them)

That worked! It saved about 5 seconds boot time and a lot an memory!


To remove that last one:

enable_uboot_overlays=1

->

#enable_uboot_overlays=1

Regards,


And what is that symbol for?

enable_uboot_cape_universal=1

Does it have any function "today ..."? Why isn't trigger file import controlled by this variable?

Regards
Reply all
Reply to author
Forward
0 new messages