/sys/device/bone_capemgr* doesn't exist on fresh image

2,484 views
Skip to first unread message

n8a...@gmail.com

unread,
Dec 29, 2014, 2:28:58 AM12/29/14
to beagl...@googlegroups.com
Sorry for the super newbie question.  What do I need to install in order to have the /sys/devices/bone_capemgr* directory show up on a fresh Ubuntu image?  My software uses this to configure the device tree for PWM slots.

Background: I was operating fine using the default Debian image that came on the BBB Rev C, but for various reasons I decided to switch to Ubuntu (Trusty).  I used the image located here and all seemed to go well.  I can list the GPIOs at /sys/class/gpio, but there is no bone* under /sys/devices like there used to be with the Debian (Wheezy) image.

Any pointers would be appreciated.

-Nate

Robert Nelson

unread,
Dec 29, 2014, 9:22:03 AM12/29/14
to Beagle Board
Down grade to v3.8.x:

sudo apt-get update
sudo apt-get install linux-image-3.8.13-bone68
sudo reboot

Regards,

--
Robert Nelson
http://www.rcn-ee.com/

n8a...@gmail.com

unread,
Dec 29, 2014, 11:16:51 AM12/29/14
to beagl...@googlegroups.com
That did it, thanks Robert!

Karteek YV

unread,
Dec 30, 2014, 4:11:34 AM12/30/14
to beagl...@googlegroups.com, n8a...@gmail.com

Install device tree compiler using sudo apt-get install device-tree-compiler


When I installed Ubuntu 14.04, it didn’t have dtbo files for pwm, had to compile them manually. Faced errors with -@ option in while compiling device tree overlay, overcame with commands as given below

wget -c https://raw.github.com/RobertCNelson/tools/master/pkgs/dtc.sh
chmod +x dtc.sh
./dtc.sh

source: http://hipstercircuits.com/problems-with-beaglebone-black-and-their-solution/

http://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-Upgradedistro%22device-tree-compiler%22package


got the missing dts files from

https://github.com/beagleboard/devicetree-source

now at https://github.com/venkaty89/devicetree-source/tree/master/arch/arm/boot/dts

or

https://github.com/beagleboard/devicetree-source/tree/master/arch/arm/boot/dts

compiled required files using build file


#!/bin/bash


echo "Compiling the overlay from .dts to .dtbo"


dtc -O dtb -o am33xx_pwm-00A0.dtbo -b 0 -@ am33xx_pwm-00A0.dts

dtc -O dtb -o bone_eqep0-00A0.dtbo -b 0 -@ bone_eqep0-00A0.dts

dtc -O dtb -o bone_eqep1-00A0.dtbo -b 0 -@ bone_eqep1-00A0.dts

dtc -O dtb -o bone_eqep2-00A0.dtbo -b 0 -@ bone_eqep2-00A0.dts

dtc -O dtb -o bone_pwm_P8_13-00A0.dtbo -b 0 -@ bone_pwm_P8_13-00A0.dts

dtc -O dtb -o bone_pwm_P8_19-00A0.dtbo -b 0 -@ bone_pwm_P8_19-00A0.dts

dtc -O dtb -o bone_pwm_P8_34-00A0.dtbo -b 0 -@ bone_pwm_P8_34-00A0.dts

dtc -O dtb -o bone_pwm_P8_36-00A0.dtbo -b 0 -@ bone_pwm_P8_36-00A0.dts

dtc -O dtb -o bone_pwm_P8_45-00A0.dtbo -b 0 -@ bone_pwm_P8_45-00A0.dts

dtc -O dtb -o bone_pwm_P8_46-00A0.dtbo -b 0 -@ bone_pwm_P8_46-00A0.dts

dtc -O dtb -o bone_pwm_P9_14-00A0.dtbo -b 0 -@ bone_pwm_P9_14-00A0.dts

dtc -O dtb -o bone_pwm_P9_16-00A0.dtbo -b 0 -@ bone_pwm_P9_16-00A0.dts

dtc -O dtb -o bone_pwm_P9_21-00A0.dtbo -b 0 -@ bone_pwm_P9_21-00A0.dts

dtc -O dtb -o bone_pwm_P9_22-00A0.dtbo -b 0 -@ bone_pwm_P9_22-00A0.dts

dtc -O dtb -o bone_pwm_P9_28-00A0.dtbo -b 0 -@ bone_pwm_P9_28-00A0.dts

dtc -O dtb -o bone_pwm_P9_29-00A0.dtbo -b 0 -@ bone_pwm_P9_29-00A0.dts

dtc -O dtb -o bone_pwm_P9_31-00A0.dtbo -b 0 -@ bone_pwm_P9_31-00A0.dts

dtc -O dtb -o bone_pwm_P9_42-00A0.dtbo -b 0 -@ bone_pwm_P9_42-00A0.dts


copied compiled dtbo files to /lib/firmware using

cp -f *.dtbo /lib/firmware

roger.l...@gmail.com

unread,
Apr 24, 2015, 12:29:39 PM4/24/15
to beagl...@googlegroups.com
Dear Robert 
                    my kernel is v4.0, i have the same problem. can not find the bone_capemgr* file.  i used your way,  but when i reboot bbb, it stoped at  "Stopping System V runlevel compatibility   [ok]" .
what can i do ?

Robert Nelson

unread,
Apr 24, 2015, 1:08:13 PM4/24/15
to Beagle Board
On Fri, Apr 24, 2015 at 5:05 AM, <roger.l...@gmail.com> wrote:
>> Dear Robert
>
> my kernel is v4.0, i have the same problem. can not find
> the bone_capemgr* file.

Really!!! it's not in v4.0????? Oh my what are we going to do!

Down grade to v3.8.x:

sudo apt-get update
sudo apt-get install linux-image-3.8.13-bone71
sudo reboot


> i used your way, but when i reboot bbb, it stoped
> at "Stopping System V runlevel compatibility [ok]" .
> what can i do ?

sudo apt-get install bb-customizations

will fix that..

Regards,

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

Rick Mann

unread,
Apr 24, 2015, 1:35:21 PM4/24/15
to beagl...@googlegroups.com

> On Apr 24, 2015, at 10:08 , Robert Nelson <robert...@gmail.com> wrote:
>
> Really!!! it's not in v4.0????? Oh my what are we going to do!

Talk about your FAQ...

Sadly, I think this will persist so long as 99% of all guides online for how to interface the BBB to anything talk about capemgr. Is there active work on a replacement?

--
Rick Mann
rm...@latencyzero.com


Robert Nelson

unread,
Apr 24, 2015, 2:21:04 PM4/24/15
to Beagle Board
On Fri, Apr 24, 2015 at 12:35 PM, Rick Mann <rm...@latencyzero.com> wrote:
>
>> On Apr 24, 2015, at 10:08 , Robert Nelson <robert...@gmail.com> wrote:
>>
>> Really!!! it's not in v4.0????? Oh my what are we going to do!
>
> Talk about your FAQ...
>
> Sadly, I think this will persist so long as 99% of all guides online for how to interface the BBB to anything talk about capemgr. Is there active work on a replacement?

Yeap...

The main infrastructure is now in mainline... But the 'knobs n dials'
for control are still being discussed..

When something gets usable, things will be announced here. ;)

Sam Daleo

unread,
Dec 14, 2015, 8:26:56 PM12/14/15
to BeagleBoard
When I downgrade to this image all four of my LEDs are illuminated upon reboot and stay this way for a long time. Is this normal?

Robert Nelson

unread,
Dec 14, 2015, 8:40:12 PM12/14/15
to Beagle Board
On Mon, Dec 14, 2015 at 7:26 PM, Sam Daleo <ssd...@gmail.com> wrote:
> When I downgrade to this image all four of my LEDs are illuminated upon
> reboot and stay this way for a long time. Is this normal?

Nope...

Considering this specific thread went back a year ago...

What image did you start with? Before you down-graded?

Sam Daleo

unread,
Dec 14, 2015, 9:20:56 PM12/14/15
to BeagleBoard
I just used Debian 8.2 from the website.

Robert Nelson

unread,
Dec 14, 2015, 9:27:10 PM12/14/15
to Beagle Board
On Mon, Dec 14, 2015 at 8:20 PM, Sam Daleo <ssd...@gmail.com> wrote:
> I just used Debian 8.2 from the website.

Well, bone68 was over a year ago.. so yeah, probally broken..

Today, 3.8.13-bone79 is the latest:

http://repos.rcn-ee.com/latest/jessie-armhf/LATEST-omap-psp

So you should have done:

sudo apt-get update ; sudo apt-get install linux-image-3.8.13-bone79 ;
sudo reboot

Or you could have used the script listed here:

http://elinux.org/Beagleboard:BeagleBoneBlack_Debian#Kernel_Options

or here:

http://elinux.org/BeagleBoardDebian#Install_Latest_Kernel_Image

Lesson, don't follow directions more then a year old..

Sam Daleo

unread,
Dec 14, 2015, 9:32:22 PM12/14/15
to BeagleBoard
Ah, thank you for the help! I'll give that a try.

Yeah, doing a quick google search I found this thread and was running into an issue with trying to use the PRU so I figured I'd give this a try.

Robert Nelson

unread,
Dec 14, 2015, 9:45:05 PM12/14/15
to Beagle Board
On Mon, Dec 14, 2015 at 8:32 PM, Sam Daleo <ssd...@gmail.com> wrote:
> Ah, thank you for the help! I'll give that a try.
>
> Yeah, doing a quick google search I found this thread and was running into
> an issue with trying to use the PRU so I figured I'd give this a try.

For the pru, compatible with 3.8 you can use:

4.1.x-bone

linux-image-4.1.14-bone17

or the real time version:

linux-image-4.1.14-bone-rt-r17

With the magic script:

cd /opt/scripts/tools/
git pull

sudo ./update_kernel.sh --bone-kernel --lts

or

sudo ./update_kernel.sh --bone-rt-kernel --lts

Sam Daleo

unread,
Dec 14, 2015, 10:15:40 PM12/14/15
to BeagleBoard
Oh, cool. Should I install the 8.2 image from the website, install linux-image-4.1.14-bone-rt-r17  using apt-get and then update the kernel?

Hey, quick question. Trying to 

Robert Nelson

unread,
Dec 14, 2015, 10:18:10 PM12/14/15
to Beagle Board
On Mon, Dec 14, 2015 at 9:15 PM, Sam Daleo <ssd...@gmail.com> wrote:
> Oh, cool. Should I install the 8.2 image from the website, install
> linux-image-4.1.14-bone-rt-r17 using apt-get and then update the kernel?

Either or.. they both do the same thing.. the "update_kernel.sh"
always get's the latest.. So in a month's time, when this email
exchange is old, "bone17" will be long replaced. ;)

Sam Daleo

unread,
Dec 14, 2015, 10:19:20 PM12/14/15
to BeagleBoard
^^ don't mind that second line, didn't realize I started typing in the box.. was meant for a different window :)

Sam Daleo

unread,
Dec 14, 2015, 10:38:44 PM12/14/15
to BeagleBoard
Awesome, thanks for the help!

Sam Daleo

unread,
Dec 14, 2015, 10:47:11 PM12/14/15
to BeagleBoard
Hey, since I've got you here. Do you have anything good to read on using the PRU with the GPIOs on the board?

William Hermans

unread,
Dec 15, 2015, 5:22:24 AM12/15/15
to beagl...@googlegroups.com
This one is different from the "stock" repo as he's added 3 examples all related to blinking LEDs. LEDs which are tied to GPIO pins . . .After that, google has lots to read.

--
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...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Sam Daleo

unread,
Dec 22, 2015, 5:42:45 PM12/22/15
to BeagleBoard
I just realized I never responded to your post.
Thanks for your link! I didn't really get a chance to break down what he was doing in that code, so I'll do so. I think part of the problem with approaching Google is that I'm not familiar enough with the nomenclature and I feel you have to be specific enough with Google to get what you're looking for.

Harry H. Arends

unread,
Jan 19, 2016, 2:33:57 PM1/19/16
to BeagleBoard
I tryed to update using this: sudo ./update_kernel.sh --bone-rt-kernel --lts
but got this as reaction:
root@beaglebone:/opt/scripts/tools# sudo ./update_kernel.sh --bone-rt-kernel --lts
--2016-01-19 19:27:20--  http://rcn-ee.net/deb/wheezy-armhf/LATEST-omap-psp
Resolving rcn-ee.net (rcn-ee.net)... 45.33.2.10, 2600:3c00::f03c:91ff:fe37:6ad5
Connecting to rcn-ee.net (rcn-ee.net)|45.33.2.10|:80... connected.
HTTP request sent
, awaiting response... 404 Not Found
2016-01-19 19:27:21 ERROR 404: Not Found


Anny suggestions?

Harry

Robert Nelson

unread,
Jan 19, 2016, 2:37:53 PM1/19/16
to Beagle Board
update the repo:

cd /opt/scripts/tools/

git pull

btw, no reason for "sudo" if your are logged in as root..

Harry Arends Fotografie

unread,
Jan 19, 2016, 3:20:28 PM1/19/16
to beagl...@googlegroups.com
Now i got a new error:

root@beaglebone:/opt/scripts/tools# git pull
Updating a4d0fe2..2be47e9
error: Your local changes to the following files would be overwritten by merge:
tools/beaglebone-black-eMMC-flasher.sh
Please, commit your changes or stash them before you can merge.
Aborting

I am new to this so........

-----Oorspronkelijk bericht-----
Van: beagl...@googlegroups.com [mailto:beagl...@googlegroups.com] Namens Robert Nelson
Verzonden: dinsdag 19 januari 2016 20:37
Aan: Beagle Board
Onderwerp: Re: [beagleboard] Re: /sys/device/bone_capemgr* doesn't exist on fresh image
--
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/IpZuVHS3aEs/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.

Robert Nelson

unread,
Jan 19, 2016, 3:23:53 PM1/19/16
to Beagle Board
On Tue, Jan 19, 2016 at 2:19 PM, Harry Arends Fotografie
<h.ar...@harry-arends.nl> wrote:
> Now i got a new error:
>
> root@beaglebone:/opt/scripts/tools# git pull
> Updating a4d0fe2..2be47e9
> error: Your local changes to the following files would be overwritten by merge:
> tools/beaglebone-black-eMMC-flasher.sh
> Please, commit your changes or stash them before you can merge.
> Aborting
>
> I am new to this so........

git reset HEAD --hard
git pull

fannyl...@gmail.com

unread,
Apr 3, 2016, 8:00:11 PM4/3/16
to BeagleBoard
hello, i have follow your instructions but now i don't have lxde anymore?
i tried to remove it and reinstal it but same thing...
i can still connect to the terminal but cannot go to graphical session.
How to do?
thank you
Reply all
Reply to author
Forward
0 new messages