Skip to first unread message

Neil Jubinville

unread,
Nov 22, 2016, 1:59:36 PM11/22/16
to BeagleBoard

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.    

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.

Thx,

Neil

Robert Nelson

unread,
Nov 22, 2016, 3:49:37 PM11/22/16
to Beagle Board, Neil Jubinville
Hi Neil,
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/

Neil Jubinville

unread,
Nov 22, 2016, 4:34:16 PM11/22/16
to BeagleBoard, ne...@orbitalsoftware.ca
Thx!  nice commit :) 

so I could then do make KERNEL_VERSION=4.4.27-ti-r62 install    

Neil
Reply all
Reply to author
Forward
0 new messages