On Mon, Jul 21, 2014 at 2:11 PM, Mark A. Yoder <[email protected]> wrote:
> I'm pulling together some notes for my students[1] on installing and
> compiling different kernels for BeagleBone Black.
>
> The installing side is now easy with the latest (2014-7-16) Debian image.
> Run:
>
> apt-cache pkgnames | grep linux-image
>
> to see what images are out there and then:
>
> apt-get install linux-image-3.8.13-bone60
>
> to install the image of your choice.  But what if you want to compile your
> own?
>
> Are these the best way to do it from scratch?
>
> host$ git clone git://github.com/RobertCNelson/linux-dev.git
> host$ cd linux-dev

Use "bb-kernel" instead of "linux-dev" (less 'other' noise for users
going on in that repo)

> host$ git checkout origin/am33x-v3.8 -b am33x-v3.8
> host$ cp system.sh.sample system.sh
> host$ ./build_kernel.sh
>
> How do I see what versions are available for checkout? How do I compile a
> specific version, such as 3.8.13-bone60?

There is also:
https://github.com/RobertCNelson/linux-stable-rcn-ee/branches/all

Just prototyping it right now, planning to move it to:

https://github.com/beagleboard/linux


>
> Once I've gotten something to compile and work should I:
>
> host$ git checkout -b myBranch
>
> so I can easily track the changes I make?  Do I just run ./build_kernel.sh
> again to recompile?

So "./build_kernel.sh" will always "nuke" ./KERNEL/ but it'll build it
based on patches/defconfig & patch.sh

"./tools/rebuild.sh" will allow you to 'rebuild" ./KERNEL/ as is, say
your working on a kernel patch but haven't commited it to the
patch.sh/patches_dir...


> Thanks, your answers will help me guide my students...
>
> --Mark
>
> [1]
> http://elinux.org/EBC_Exercise_08_Installing_Development_Tools#Getting_the_3.8_Kernel

Regards,

-- 
Robert Nelson
http://www.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].
For more options, visit https://groups.google.com/d/optout.

Reply via email to