Hi Neil,

On Tue, Nov 22, 2016 at 12:59 PM, Neil Jubinville
<[email protected]> wrote:
> In this repo https://github.com/RobertCNelson/dtb-rebuilder
>
> The make script allows us to rebuild then make install the files.
>
> This is all fine.
>
> I am curious if the make script can take a parameter such as a kernel
> version.
>
> In my automation I run  "/opt/tools/update_kernel.sh  <target kernel> "
> which works great.
>
> After that step I want to rebuilt the DTBs and install them.  The problem
> however is that the beaglebone has not yet rebooted at that point so the OS
> runtime at that moment is on the previous kernel.
>
> The make script uses 'uname -r' to fill in the spots where things are built
> / installed.
> https://github.com/RobertCNelson/dtb-rebuilder/blob/4.4-ti/Makefile
>
> What is the method to pass in a kernel version into this script?   I am not
> a pro at Make files so knowing all about what is going on in that particular
> script is a work in progress.  I can see where uname -r is used .
>
> My goal is to rebuild and place the dtbs before the reboot so it can boot
> with the proper base dtb.

Yeah, we will need to patch the makefile for that...

How about this:

https://github.com/RobertCNelson/dtb-rebuilder/commit/5e25af5781a31672a919ed63c34c5eca9df66e6b

sudo make KERNEL_VERSION=4.5 install

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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYj7Ub7YTvVX8gOOnJoqdF8hOCgg1PbLx_vVUH-KJC3NBw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to