-
Notifications
You must be signed in to change notification settings - Fork 1
Building kernel and replacing existing kernel
Arjun edited this page Apr 13, 2019
·
27 revisions
- Create a clone of Robert Nelson's (Official BBB Kernel Maintenance) ti-linux repos and checkout the appropriate kernel branch.
- Compile kernel using either build_kernel (builds kernel files) or build_deb (builds kernel files as debian packages) scripts.
- Live boot the BBB with a functioning debian image.
- Copy the kernel files or debian packages (generated in step 2) on the live booted BBB.
- Install the kernel files on to the SD card image (used for livebooting).
- Flash the BBB with the modified image on the SD card.
These steps should be done on the host PC and not the BBB as there are large file downloads and resource intense compilations.
- Git clone the Robert Nelson's ti-linux-kernel-dev repo:
git clone https://github.com/RobertCNelson/ti-linux-kernel-dev.git - Git checkout the appropriate kernel branch. For these instructions, the 4.14 RT kernel will be used.
git checkout ti-linux-rt-4.14.y - The working folder should contain a
build_kernel.shand `build_deb.sh' script file. Either can be used to build a kernel. The latter is creates packages that are easier to deploy in a debian environment. - Run either of the scripts. It may throw an error stating that some dependencies need to be installed. Install them as prompted. Once you have the dependencies, the kernel compilation will start.
- A kernel configuration prompt will pop up. It can be left as default. Or you can load the kernel configuration from a properly function BBB. More research needs to be done into this.
- The compilation will resume. On a laptop (i5-8250U CPU, 8GB RAM) running a VM (2 cores, 2 GB RAM), it takes approximately an hour.
- Once the compilation is complete, there will be sub folder called "deploy".
- if