Skip to content

Instantly share code, notes, and snippets.

@RobertCNelson
Last active February 18, 2020 16:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RobertCNelson/39faf80ddc9fcefae74dce2c6ca2eb45 to your computer and use it in GitHub Desktop.
Save RobertCNelson/39faf80ddc9fcefae74dce2c6ca2eb45 to your computer and use it in GitHub Desktop.
eMMC5.1 patch old kernel
#yakbuild:
git clone https://github.com/RobertCNelson/yakbuild
cd ./yakbuild/
cp recipe.sh.v3.14.x.sample recipe.sh
#Open recipe.sh and change: 3.14.79-ti-r92 -> (or whatever kernel you are running)
#Copy the patches into ./patches/local_patches/
cp -v patches/eMMC/3.14.x/* patches/local_patches/
#Either run ./build_deb.sh or ./build_kernel.sh
#if you run ./build_deb.sh, just copy the ./deploy/linux-image*.deb to your target and install via dpkg..
sudo dpkg -i linux-image*.deb
#if you run ./build_kernel.sh
./build_kernel.sh
#Then copy the files under ./deploy/ to there correct location based on what your old version of u-boot did. (use a serial debugger and figure it out..)
#yakbuild:
git clone https://github.com/RobertCNelson/yakbuild
cd ./yakbuild/
cp recipe.sh.v3.8.x.sample recipe.sh
#Open recipe.sh and change: 3.8.13-bone86 -> 3.8.13-bone79 (or whatever kernel you are running)
#For example, if you need 3.8.13-boneWXYZ, change it like so, change WXYZ to what you really want...
sed -i -e 's:3.8.13-bone86:3.8.13-boneWXYZ:g' recipe.sh
#Copy the patches into ./patches/local_patches/ (for any image less then "-bone80":)
cp -v patches/eMMC/3.8.x/* patches/local_patches/
#run ./build_kernel.sh
./build_kernel.sh
#Then copy the files under ./deploy/ to there correct location based on what your old version of u-boot did. (use a serial debugger and figure it out..)
Congrats on still using an ancient kernel and not having your system hacked! This issue was first fixed with:
https://github.com/RobertCNelson/bb-kernel/commit/bd5a1f38c99bbe712d21c1e145b0c660dca9dee7
on: Jun 15, 2016
and released as 3.8.13-bone80, thus, to modify your old un-supported, insecure, old kernel follow this Procedure
https://gist.github.com/RobertCNelson/39faf80ddc9fcefae74dce2c6ca2eb45#file-procedure
Regards,
@RobertCNelson
Copy link
Author

All Comments will be deleted, leave your conversation in the original bug report...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment