TI BSP failed to build kernel

109 views
Skip to first unread message

not you

unread,
Jan 1, 2018, 4:21:46 AM1/1/18
to BeagleBoard
I am following this guide to create an bootable SD card:
https://eewiki.net/display/linuxonarm/BeagleBone+Black#BeagleBoneBlack-LinuxKernel

I check out this branch:  git checkout origin/ti-linux-rt-4.9.y -b tmp and proceed to ./build_kernel.sh
My terminal throws this error:
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Error: arch/arm/boot/dts/am335x-pocketbeagle-common.dtsi:8.1-9 Error: arch/arm/boot/dts/am335x-pocketbeagle-common.dtsi:8.1-9 syntax errorsyntax error

FATAL ERROR: FATAL ERROR: Unable to parse input tree
Unable to parse input tree
scripts/Makefile.lib:313: recipe for target 'arch/arm/boot/dts/am335x-pocketbeagle-simplegaming.dtb' failed
make[1]: *** [arch/arm/boot/dts/am335x-pocketbeagle-simplegaming.dtb] Error 1
make[1]: *** Waiting for unfinished jobs....
scripts/Makefile.lib:313: recipe for target 'arch/arm/boot/dts/am335x-pocketbeagle.dtb' failed
make[1]: *** [arch/arm/boot/dts/am335x-pocketbeagle.dtb] Error 1
arch/arm/Makefile:346: recipe for target 'dtbs' failed
make: *** [dtbs] Error 2
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
I have no clue why this is happening.  Please help.

Robert Nelson

unread,
Jan 1, 2018, 12:42:00 PM1/1/18
to Beagle Board
Yeah I broke it, last minute port from 4.4 before I snuck out for the holiday.

--
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/1421da37-9e0a-4e82-89e0-26777dbe3a9c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

not you

unread,
Jan 1, 2018, 6:30:48 PM1/1/18
to BeagleBoard
So is there a way to fix it?

Robert Nelson

unread,
Jan 1, 2018, 6:41:59 PM1/1/18
to Beagle Board
On Mon, Jan 1, 2018 at 5:30 PM, not you <nguyen....@gmail.com> wrote:
> So is there a way to fix it?

Hang onto your shorts, I'm working on it, just got home after a 4 hour drive...

Regards,

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

Robert Nelson

unread,
Jan 1, 2018, 6:45:07 PM1/1/18
to Beagle Board
On Mon, Jan 1, 2018 at 5:41 PM, Robert Nelson <robert...@gmail.com> wrote:
> On Mon, Jan 1, 2018 at 5:30 PM, not you <nguyen....@gmail.com> wrote:
>> So is there a way to fix it?
>
> Hang onto your shorts, I'm working on it, just got home after a 4 hour drive...

tested fix is pushed out:

https://github.com/RobertCNelson/ti-linux-kernel-dev/commit/c43db194203192c833551757460882b9915c3c52

starting the tagging procedure..

not you

unread,
Jan 1, 2018, 9:07:11 PM1/1/18
to BeagleBoard
So do I still use this git checkout origin/ti-linux-rt-4.9.y -b tmp or do  I need to do something else?  What do I need to do about the tagging procedure?  Pardon my ignorance.  I am new to Linux and know little about git.  Your help has been really speedy by the way.

Robert Nelson

unread,
Jan 1, 2018, 9:16:10 PM1/1/18
to Beagle Board
git pull

should do it..

not you

unread,
Jan 2, 2018, 2:48:40 AM1/2/18
to BeagleBoard
Thank you.   It now builds.

Jeff Andich

unread,
Jan 2, 2018, 9:41:37 AM1/2/18
to BeagleBoard

FYI, I THINK I ran into something similar over the holidays when I tried to fetch and build the 4.4.y and 4.9.y kernels using eewiki.  I tried both BBB and BB-X15.  I ran into an issue with a build error in an assembly file which apparently had to do with some kind of networking package.  The kernel built again, when this package was de-selected in makemenuconfig.  I was getting ready to post something on this, but then some time after Christmas, I re-fetched everything using the instructions on eewiki and everything built again....


Regards and happy new year!

Jeff
 

On Tuesday, January 2, 2018 at 1:48:40 AM UTC-6, not you wrote:
Thank you.   It now builds.

Robert Nelson

unread,
Jan 2, 2018, 9:48:10 AM1/2/18
to Beagle Board
On Tue, Jan 2, 2018 at 8:41 AM, Jeff Andich <jeff....@gmail.com> wrote:
>
> FYI, I THINK I ran into something similar over the holidays when I tried to
> fetch and build the 4.4.y and 4.9.y kernels using eewiki. I tried both BBB
> and BB-X15. I ran into an issue with a build error in an assembly file
> which apparently had to do with some kind of networking package. The kernel
> built again, when this package was de-selected in makemenuconfig. I was
> getting ready to post something on this, but then some time after Christmas,
> I re-fetched everything using the instructions on eewiki and everything
> built again....
>
>
> Regards and happy new year!

for 4.9.x it was me last week, i fubared up the pocketbeagle
simplegaming device tree binary.

also the wireguard patchset merge the last few weeks had some issues with thumb2

But Wireguard + https://github.com/StreisandEffect/streisand + linode
(or any of the other supported ones) has been working awesome for me.
;)
Message has been deleted

Jeff Andich

unread,
Jan 4, 2018, 10:25:13 AM1/4/18
to BeagleBoard
Ok, so if I understand correctly, if I git the kernel and checkout the 4.4.y or 4.9.y branches and then build the kernel using build_kernel.sh with FULL_REBUILD defined, any updates to the mainline or the patchset could affect my build or functionality, right?

What is the best way to get updated when either the kernel and/or patch set(s) change?  What mailing lists do we need to join?

Thanks!!

jeff  

Jeff Andich

unread,
Jan 5, 2018, 9:52:32 AM1/5/18
to BeagleBoard
Is the best place to look for updates to the kernel and/or patches to the kernel here?  In other words, all inclusive..



Thanks!

jeff

Robert Nelson

unread,
Jan 5, 2018, 9:58:40 AM1/5/18
to Beagle Board
On Thu, Jan 4, 2018 at 9:25 AM, Jeff Andich <jeff....@gmail.com> wrote:
> Ok, so if I understand correctly, if I git the kernel and checkout the 4.4.y
> or 4.9.y branches and then build the kernel using build_kernel.sh with
> FULL_REBUILD defined, any updates to the mainline or the patchset could
> affect my build or functionality, right?

Nope, once you do a checkout, the kernel version and kernel sha are
locked into the script..

So if you lock everything 'down' including your OS (aka no updates),
the script will work and pull all the same stuff 10 years from now..
(well as long as github.com and kernel.org git servers don't change
anything)..

Robert Nelson

unread,
Jan 5, 2018, 9:58:57 AM1/5/18
to Beagle Board
On Fri, Jan 5, 2018 at 8:52 AM, Jeff Andich <jeff....@gmail.com> wrote:
> Is the best place to look for updates to the kernel and/or patches to the
> kernel here? In other words, all inclusive..
>
> https://github.com/RobertCNelson/ti-linux-kernel-dev.git

Correct, and:

https://github.com/beagleboard/linux

Jeff Andich

unread,
Jan 5, 2018, 11:13:57 AM1/5/18
to BeagleBoard
Ok thanks!

Then when you do a full re-build, does it delete the entire local tree and re-git evertyhing from the same 4.4.y branch that you checkedout locally on the server?

I generated a custom device tree, am57xx-custom,dts which essentially uses am57xx-evm-reva3.dts as a starting point and relies on all of the other dts and dtsi files that it pulls in.  I build am57xx-custom.dtb by copying am57xx-custom.dts into the 4.4.y tree's arch/arm/boot/dts directory and adding it to Makefile.  Whenever FULL_REBUILD is defined, am57xx-custom.dts/dtb get deleted from arch/arm/boot/dts and the corresponding Makefile..

Maybe I should try your device tree builder...

Robert Nelson

unread,
Jan 5, 2018, 11:20:01 AM1/5/18
to Beagle Board
On Fri, Jan 5, 2018 at 10:13 AM, Jeff Andich <jeff....@gmail.com> wrote:
> Ok thanks!
>
> Then when you do a full re-build, does it delete the entire local tree and
> re-git evertyhing from the same 4.4.y branch that you checkedout locally on
> the server?
>
> I generated a custom device tree, am57xx-custom,dts which essentially uses
> am57xx-evm-reva3.dts as a starting point and relies on all of the other dts
> and dtsi files that it pulls in. I build am57xx-custom.dtb by copying
> am57xx-custom.dts into the 4.4.y tree's arch/arm/boot/dts directory and
> adding it to Makefile. Whenever FULL_REBUILD is defined,
> am57xx-custom.dts/dtb get deleted from arch/arm/boot/dts and the
> corresponding Makefile..
>
> Maybe I should try your device tree builder...

Yeah, stick it in the device-tree builder, then submit a merge to me
thru that and i'll route it thru the tree. ;)

Just use something other then:

<board>-custom.dtb ;)

Jeff Andich

unread,
Jan 5, 2018, 1:58:43 PM1/5/18
to BeagleBoard
Ok thanks Robert!!

When the next-spin of our custom board comes in and we get more of the peripherals working, I'll TRY to submit something generic and compatible with BB-X15 like am57xx-4UARTs-wifi with embedded comments like what all we had to do to the kernel and u-boot to get working..
Reply all
Reply to author
Forward
0 new messages