Skip to content

Instantly share code, notes, and snippets.

@alexanderhiam
Last active June 20, 2016 18:00
Show Gist options
  • Save alexanderhiam/29fcf814f731dd94f8850961f1a61ae3 to your computer and use it in GitHub Desktop.
Save alexanderhiam/29fcf814f731dd94f8850961f1a61ae3 to your computer and use it in GitHub Desktop.
BeagleBone kernel dev
$ git clone https://github.com/beagleboard/linux.git
$ cd linux
$ git checkout 4.4
$ git checkout -b new-stuff
# make changes...
# build:
$ fakeroot make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- bb.org_defconfig
$ fakeroot make -j8 ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- deb-pkg
# install and test on BeagleBone:
$ scp ../*.deb bbb:/root/
$ ssh bbb
$ dpkg -i *.deb
# check and fix your formatting:
$ ./scripts/checkpatch.pl --file --terse path/to/changed_file
# commit changes (making sure to commit separate changes separately):
$ git commit -s -v
# use proper commit message formatting (http://www.openembedded.org/wiki/Commit_Patch_Message_Guidelines)
# Generate and check patch:
$ git format-patch 4.4..new-stuff
$ ./scripts/checkpatch.pl [the-new-patch-file].patch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment