Compilation fails with dtsi file not found.

472 views
Skip to first unread message

DeKay

unread,
Jul 26, 2015, 10:31:34 PM7/26/15
to BeagleBoard
Hi

I am trying to compile the 4.1 kernel as per this eewiki link. I started on a fresh The kernel compiles but the compilation script bombs when it gets to the dtbs stuff because it can't find a file.  Help appreciated.

-----------------------------
make -j2 ARCH=arm LOCALVERSION=-bone14.1 CROSS_COMPILE=ccache /home/dk/Hacking/BBB/bb-kernel/dl/gcc-l
inaro-4.9-2015.02-3-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf- dtbs
-----------------------------
 CHK     include/config/kernel.release
 CHK     include/generated/uapi/linux/version.h
 CHK     include/generated/utsrelease.h
make[1]: 'include/generated/mach-types.h' is up to date.
 CHK     include/generated/bounds.h
 CHK     include/generated/asm-offsets.h
 CALL    scripts/checksyscalls.sh
 DTC     arch/arm/boot/dts/am335x-base0033.dtb
 DTC     arch/arm/boot/dts/am335x-bone.dtb
 DTC     arch/arm/boot/dts/am335x-boneblack.dtb
 DTC     arch/arm/boot/dts/am335x-boneblack-nhdmi-overlay.dtb
 DTC     arch/arm/boot/dts/am335x-boneblack-hdmi-overlay.dtb
 DTC     arch/arm/boot/dts/am335x-boneblack-emmc-overlay.dtb
 DTC     arch/arm/boot/dts/am335x-boneblack-overlay.dtb
 DTC     arch/arm/boot/dts/am335x-boneblack-wl1835mod.dtb
 DTC     arch/arm/boot/dts/am335x-boneblack-replicape.dtb
 DTC     arch/arm/boot/dts/am335x-boneblack-cape-bone-argus.dtb
 DTC     arch/arm/boot/dts/am335x-boneblack-can0.dtb
 DTC     arch/arm/boot/dts/am335x-boneblack-bbb-exp-r.dtb
 DTC     arch/arm/boot/dts/am335x-boneblack-bbb-exp-c.dtb
 DTC     arch/arm/boot/dts/am335x-bone-cape-bone-argus.dtb
 DTC     arch/arm/boot/dts/am335x-bone-can0.dtb
 DTC     arch/arm/boot/dts/am335x-arduino-tre.dtb
 DTC     arch/arm/boot/dts/am335x-bonegreen.dtb
arch/arm/boot/dts/am335x-bonegreen.dts:19:38: fatal error: am335x-boneblack-1ghz.dtsi: No such file o
r directory
#include "am335x-boneblack-1ghz.dtsi"
                                     ^
compilation terminated.
scripts/Makefile.lib:293: recipe for target 'arch/arm/boot/dts/am335x-bonegreen.dtb' failed
make[1]: *** [arch/arm/boot/dts/am335x-bonegreen.dtb] Error 1
make[1]: *** Waiting for unfinished jobs....
arch/arm/Makefile:319: recipe for target 'dtbs' failed
make: *** [dtbs] Error 2

Robert Nelson

unread,
Jul 26, 2015, 11:46:39 PM7/26/15
to Beagle Board
Thanks, now fixed in git..

Regards,

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

DeKay

unread,
Aug 1, 2015, 3:29:15 PM8/1/15
to BeagleBoard
Thanks for looking at this so quickly.  Unfortunately I've been away and am only getting back to this now.

I seem to have the same problem.  This is on a BBB for which I am trying to compile a 4.1 kernel via "git checkout origin/am33x-v4.1 -b tmp".  I kicked things off with a ./build_kernel.sh expecting that that would have pulled in your fix. The file "am335x-boneblack-1ghz.dtsi" itself appears to be missing still.  Is there anything else I need to do to get this file pulled in?

[dk@laptop bb-kernel]$ find . -name am335x-boneblack-1ghz.dtsi
[dk@laptop bb-kernel]$

By the way, I did notice the warning below early on (see bold text). Perhaps related?

Resolve operation not in progress, we are not resuming.
git tree is clean...
[v4.1.3-bone14.1 1afaa31] empty cleanup commit
 1 file changed, 2808 insertions(+)
 create mode 100644 arch/arm/crypto/sha256-core.S
HEAD is now at 1afaa31 empty cleanup commit
Checking out files: 100% (10724/10724), done.
Switched to branch 'master'
Your branch is ahead of 'origin/master' by 1 commit.
  (use "git push" to publish your local commits)
Already up-to-date.
<standard input>:366: warning [p 5, 4.7i]: can't break line
Deleted branch v4.1.3-bone14.1 (was 1afaa31).
Checking out files: 100% (10650/10650), done.
Switched to a new branch 'v4.1.3-bone14.1'

Once again, the error is below.  Help appreciated!

arch/arm/boot/dts/am335x-bonegreen.dts:19:38: fatal error: am335x-boneblack-1ghz.dtsi: No such file or directory
#include "am335x-boneblack-1ghz.dtsi"
                                     ^
compilation terminated.
scripts/Makefile.lib:293: recipe for target 'arch/arm/boot/dts/am335x-bonegreen.dtb' failed
make[1]: *** [arch/arm/boot/dts/am335x-bonegreen.dtb] Error 1
make[1]: *** Waiting for unfinished jobs....
 DTC     arch/arm/boot/dts/am335x-evm.dtb
arch/arm/Makefile:319: recipe for target 'dtbs' failed
make: *** [dtbs] Error 2

Robert Nelson

unread,
Aug 1, 2015, 3:49:13 PM8/1/15
to Beagle Board
On Sat, Aug 1, 2015 at 2:29 PM, DeKay <darryl...@gmail.com> wrote:
> Thanks for looking at this so quickly. Unfortunately I've been away and am
> only getting back to this now.
>
> I seem to have the same problem. This is on a BBB for which I am trying to
> compile a 4.1 kernel via "git checkout origin/am33x-v4.1 -b tmp". I kicked
> things off with a ./build_kernel.sh expecting that that would have pulled in
> your fix. The file "am335x-boneblack-1ghz.dtsi" itself appears to be missing
> still. Is there anything else I need to do to get this file pulled in?

You need to update the repo...

git checkout master -f
git branch -D tmp
git pull
git checkout origin/am33x-v4.1 b tmp
./build_kernel.sh

DeKay

unread,
Aug 1, 2015, 10:14:19 PM8/1/15
to BeagleBoard
I needed to, indeed!  Everything seems to have compiled this time around.  Thank you very much.

Moon Walker

unread,
Dec 10, 2015, 2:29:49 PM12/10/15
to BeagleBoard
Hi Guys,

unfortunately i am also not able to find this file am335x-boneblack-1ghz.dtsi

could you provide me with the exact location.

Thank you
Attila

Robert Nelson

unread,
Dec 10, 2015, 2:35:47 PM12/10/15
to Beagle Board
On Thu, Dec 10, 2015 at 1:29 PM, Moon Walker <moonsu...@gmail.com> wrote:
> Hi Guys,
>
> unfortunately i am also not able to find this file
> am335x-boneblack-1ghz.dtsi
>
> could you provide me with the exact location.

If you need that file to override your clock frequency, then your git
checkout is too old..

as it's now taken care of by the driver...

Moon Walker

unread,
Dec 10, 2015, 3:06:05 PM12/10/15
to BeagleBoard
Hi Robert,

thank you for your prompt reply.
I am in your dtb-rebuilder repo and trying to use the 1wire driver since monday unsuccessfully.
I am so disappointed now since with arduino it succed in an hour...

Thx

Attila

On Monday, July 27, 2015 at 4:31:34 AM UTC+2, DeKay wrote:

William Hermans

unread,
Dec 10, 2015, 4:03:04 PM12/10/15
to beagl...@googlegroups.com
I am so disappointed now since with arduino it succed in an hour...

So use your Arduino . . . unless you have something actually constructive to say.

--
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.

moonwalker

unread,
Dec 10, 2015, 4:14:30 PM12/10/15
to beagl...@googlegroups.com

I asked a question and pointed my frustration wit linux! You are the one not constructive!!
But do not worry man! I went to the previous debian image and made it in half an hour.
Thank you for your nothing.

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/tqBvv9hc-bc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to beagleboard...@googlegroups.com.

William Hermans

unread,
Dec 10, 2015, 4:44:50 PM12/10/15
to beagl...@googlegroups.com
Wah ?

William Hermans

unread,
Dec 10, 2015, 4:59:26 PM12/10/15
to beagl...@googlegroups.com

I asked a question and pointed my frustration wit linux! You are the one not constructive!!
But do not worry man! I went to the previous debian image and made it in half an hour.
Thank you for your nothing.

So, you asked a question, you got an answer, after which you felt compelled to compare a very capable embedded linux system, with a bare metal embedded system for 5 year olds. Did you expect a pat on the back ?

You're right. What I said was not constructive. I return comments in kind. Maybe next time you'll actually come back with "Thank you Robert !" Instead of being a jerk.

Me ? I don't have to worry about being a Jerk, I can actually figure things out on my own - Given enough time.

moonwalker

unread,
Dec 11, 2015, 3:26:31 AM12/11/15
to beagl...@googlegroups.com
You frustrated faggot!

This was my first sentence in my answer:


"Hi Robert,
thank you for your prompt reply."

You are the one that makes BBB community worst! It is no wonder that this platform is so weak...

I do not think it is a good promotion to BBB. I will swithch to other plattform asap. And i will not recommentd
this community to nobody!



moonwalker

unread,
Dec 11, 2015, 3:29:32 AM12/11/15
to beagl...@googlegroups.com

You frustrated faggot!

This was my first sentence in my answer:

"Hi Robert,
thank you for your prompt reply."

You are the one that makes BBB community worst! It is no wonder that this platform is so weak...

I do not think it is a good promotion to BBB. I will swithch to other plattform asap. And i will not recommentd

this to nobody


cory cauvier

unread,
Sep 20, 2016, 2:16:36 PM9/20/16
to BeagleBoard
Hello Nelson,

I am currently trying to get the one wire working with a beaglebone.  I have done various paths but can't seem to get any to work.  Would you be able to direct me to a webpage that works for the beaglebone using the lastest kernel and a ds18B20?

Thanks,

Cory

Robert Nelson

unread,
Sep 20, 2016, 2:23:29 PM9/20/16
to Beagle Board, coryc...@gmail.com
On Tue, Sep 20, 2016 at 1:16 PM, cory cauvier <coryc...@gmail.com> wrote:
> Hello Nelson,
>
> I am currently trying to get the one wire working with a beaglebone. I have
> done various paths but can't seem to get any to work. Would you be able to
> direct me to a webpage that works for the beaglebone using the lastest
> kernel and a ds18B20?

Download the latest iot image:

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

disable cape_unversal=enable (open /boot/uEnv.txt)

reboot

then follow:

https://github.com/beagleboard/bb.org-overlays/blob/master/examples/BB-W1-P9.12/example.sh

(hint, p9.12 is the gpio used in that example)

cory cauvier

unread,
Sep 20, 2016, 3:00:29 PM9/20/16
to BeagleBoard, coryc...@gmail.com
just got the newest version now I'm looking to do your next step.  I don't follow your disable cape_unversal=enable (open /boot/uEnv.txt) Are you asking me to remove the # from this?  I also don't have disable cape_unversal=enable

tHanks,

Cory

William Hermans

unread,
Sep 20, 2016, 3:06:01 PM9/20/16
to beagl...@googlegroups.com
cmdline=coherent_pool=1M quiet cape_universal=enable

Remove, the bolded text. Or better yet, copy that line. Remove that text, then comment out the original line.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/ce57b794-a773-4f66-a2cd-c7474e3177f7%40googlegroups.com.

William Hermans

unread,
Sep 20, 2016, 3:08:59 PM9/20/16
to beagl...@googlegroups.com
One more thing. make sure all other cmdline= lines are also commented out. As the last line will likely override previous lines.

cory cauvier

unread,
Sep 20, 2016, 3:34:48 PM9/20/16
to BeagleBoard
thanks found it onto the next step
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.

cory cauvier

unread,
Sep 20, 2016, 3:45:42 PM9/20/16
to BeagleBoard
hello William,

Robert said to follow the steps on the like he sent me for github.  It sends me to his code do I don't quite follow?  Do I go back to the main page on overlays and do all the steps?  

Thanks,

Cory

On Tuesday, September 20, 2016 at 4:08:59 PM UTC-3, William Hermans wrote:
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.

Robert Nelson

unread,
Sep 20, 2016, 3:48:45 PM9/20/16
to Beagle Board
On Tue, Sep 20, 2016 at 2:45 PM, cory cauvier <coryc...@gmail.com> wrote:
> hello William,
>
> Robert said to follow the steps on the like he sent me for github. It sends
> me to his code do I don't quite follow? Do I go back to the main page on
> overlays and do all the steps?

Did you disable cape_universal=enable in /boot/uEnv.txt and reboot?

Then just:

wget https://raw.githubusercontent.com/beagleboard/bb.org-overlays/master/examples/BB-W1-P9.12/example.sh

sudo /bin/bash ./example.sh

* assuming you plug your device in P9.12

cory cauvier

unread,
Sep 20, 2016, 4:05:05 PM9/20/16
to BeagleBoard
thanks robert.  I did what william said.  I removed the bold text in his reply.  I did the wget as well as the bin bash.  What is suppose to happen after I run bin/bash?  

thanks,

Cory

William Hermans

unread,
Sep 20, 2016, 4:10:23 PM9/20/16
to beagl...@googlegroups.com
It'll load the w1( one wire ) driver module if not already loaded, then it'll get the temperature from the device every 5 seconds. It'll also load the BB-W1-P9.12 device tree file. I'd assume you'd need to edit this file, or change the overlay file to be loaded if you need to use a different pin.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/b3cdf03d-6e0a-489c-9471-aaeef1c6933a%40googlegroups.com.

William Hermans

unread,
Sep 20, 2016, 4:14:12 PM9/20/16
to beagl...@googlegroups.com
if [ ! -f /sys/bus/w1/devices/28-*/w1_slave ] ; then
	modprobe w1-gpio
	echo 'BB-W1-P9.12' > /sys/devices/platform/bone_capemgr/slots
	sleep 1
fi

That pretty much mean if file /sys/bus/w1/devices/28-*/w1_slave exists -> modprobe w1-gpio -> load the BB-W1-P9.12 file into capemanager 
then of course -> sleep for 1 second.

If you need a different pin for one wire, then you'll have use another device tree file in place of BB-W1-P9.12

Robert Nelson

unread,
Sep 20, 2016, 4:14:45 PM9/20/16
to Beagle Board
On Tue, Sep 20, 2016 at 3:05 PM, cory cauvier <coryc...@gmail.com> wrote:
> thanks robert. I did what william said. I removed the bold text in his
> reply. I did the wget as well as the bin bash. What is suppose to happen
> after I run bin/bash?

You have the hardware..

dmesg

and look under:

/sys/bus/w1/devices/

You'll figure it out..

William Hermans

unread,
Sep 20, 2016, 4:17:29 PM9/20/16
to beagl...@googlegroups.com
That pretty much mean if file /sys/bus/w1/devices/28-*/w1_slave exists -> modprobe w1-gpio -> load the BB-W1-P9.12 file into capemanager
then of course -> sleep for 1 second.

If file DOESNT exist. Sorry I missed the exclamation mark there initially. which is boolean NOT.

--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/beagleboard/CAOCHtYjy0XptLerQdSSGNqDbMhXxOyH9m3CriGf-grZPi5KUBQ%40mail.gmail.com.

cory cauvier

unread,
Sep 20, 2016, 5:46:19 PM9/20/16
to BeagleBoard
thanks guys,

I got messages when i hit demsg just need to play around a bit and learn what's going on.  You guys saved me so much time.  

Thank,s

Cory


On Tuesday, September 20, 2016 at 5:17:29 PM UTC-3, William Hermans wrote:
That pretty much mean if file /sys/bus/w1/devices/28-*/w1_slave exists -> modprobe w1-gpio -> load the BB-W1-P9.12 file into capemanager
then of course -> sleep for 1 second.

If file DOESNT exist. Sorry I missed the exclamation mark there initially. which is boolean NOT.
On Tue, Sep 20, 2016 at 1:14 PM, Robert Nelson <robert...@gmail.com> wrote:
On Tue, Sep 20, 2016 at 3:05 PM, cory cauvier <coryc...@gmail.com> wrote:
> thanks robert.  I did what william said.  I removed the bold text in his
> reply.  I did the wget as well as the bin bash.  What is suppose to happen
> after I run bin/bash?

You have the hardware..

dmesg

and look under:

/sys/bus/w1/devices/

You'll figure it out..

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...@googlegroups.com.

cory cauvier

unread,
Sep 21, 2016, 10:05:32 AM9/21/16
to BeagleBoard
In the picture is the error im getting.  Any advice on what is happening?

THanks,

Cory
dmesg error.jpg

Robert Nelson

unread,
Sep 21, 2016, 10:14:31 AM9/21/16
to Beagle Board
On Wed, Sep 21, 2016 at 9:05 AM, cory cauvier <coryc...@gmail.com> wrote:
> In the picture is the error im getting. Any advice on what is happening?
>

dmesg | grep bone

cory cauvier

unread,
Sep 21, 2016, 10:21:18 AM9/21/16
to BeagleBoard
Is it loaded three times and only the first one worked?  slot 4
slots.jpg

Robert Nelson

unread,
Sep 21, 2016, 10:24:53 AM9/21/16
to Beagle Board
On Wed, Sep 21, 2016 at 9:21 AM, cory cauvier <coryc...@gmail.com> wrote:
> Is it loaded three times and only the first one worked? slot 4

Why did you load it more then once?

cory cauvier

unread,
Sep 21, 2016, 10:34:32 AM9/21/16
to BeagleBoard
I couldn't find your example file this morning.  Said it didn't exsist.  I was troubleshooting and decided I should start from scratch.  Didn't realize it was loading it into the cape overlay each time

cory cauvier

unread,
Sep 21, 2016, 11:04:27 AM9/21/16
to BeagleBoard
When it says not registered does that mean the program is running but can find any onewire devices?

thanks,

Cory
dmesg.png

cory cauvier

unread,
Sep 21, 2016, 11:14:35 AM9/21/16
to BeagleBoard
got it working!!! ow man I jumped out of my chair and gave a shout!  thanks for the help!
Reply all
Reply to author
Forward
0 new messages