This shows you the differences between two versions of the page.
— |
pi_kernel_operations [2018/09/14 00:28] (current) vk3smb created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Note ====== | ||
+ | This information is WAY out of date and is kept for historical purposes only. | ||
+ | |||
+ | ===== Getting ready ===== | ||
+ | |||
+ | Go to [[https:// | ||
+ | |||
+ | Run the following after it has downloaded: | ||
+ | < | ||
+ | |||
+ | Now update the sytem as follows: | ||
+ | < | ||
+ | apt-get update | ||
+ | apt-get -y dist-upgrade | ||
+ | apt-get -y install gcc make bc screen ncurses-dev watchdog</ | ||
+ | |||
+ | Clean the build folder by running: | ||
+ | < | ||
+ | |||
+ | To get the correct config for the PI2/3: | ||
+ | < | ||
+ | make bcm2709_defconfig | ||
+ | </ | ||
+ | |||
+ | ===== Compile the Kernel===== | ||
+ | |||
+ | In the build folder, run the following to set the configs and then generate a menu: | ||
+ | < | ||
+ | This where we have to check that the OSS modules are installed. | ||
+ | |||
+ | We also need to disable the frequency scaling and power saving. | ||
+ | |||
+ | After this is complete, make the modules and headers required to compile other software: | ||
+ | < | ||
+ | make scripts | ||
+ | </ | ||
+ | |||
+ | =====Install the Kernel===== | ||
+ | So both the Kernel and the source is the same, we have to install the new kernel. | ||
+ | |||
+ | Install the Kernel modules and overwrite the lib folder as required: | ||
+ | < | ||
+ | make headers_install | ||
+ | sudo cp arch/ | ||
+ | sudo cp arch/ | ||
+ | sudo cp arch/ | ||
+ | sudo scripts/ | ||
+ | </ | ||
+ | |||
+ | =====Watchdog setup===== | ||
+ | Edit the / | ||
+ | < | ||
+ | Enter the following in the last line of the file: | ||
+ | < | ||
+ | Save that file. Now we need to edit the / | ||
+ | < | ||
+ | # | ||
+ | Finally we need to make sure it starts on boot: | ||
+ | < | ||
+ | |||
+ | Save this file and Reboot the pi. | ||