thiagoralves Posted March 15, 2017 Share Posted March 15, 2017 Hi all, First of all, I must congratulate the Armbian team for such an amazing job! It is really terrific! I'm using Armbian on a NanoPi Neo where I'm running an application that relies on having low latency UART responses. My application is having a latency of around 10ms and I believe that it might be related to the tick rate defined in the Armbian kernel (http://www.makelinux.net/books/lkd2/ch10lev1sec2). I would like to increase the tick rate, however, I got a little lost when I tried to browse the Armbian repository. I couldn't find the actual Linux Kernel source code. In order to increase the tick rate I need to edit the file /include/asm-"architecture"/param.h and change the #define HZ to whatever I want. Then I just need to recompile the kernel and run. So my questions are: 1) Where can I find this in the Armbian repository 2) Is there an easy way to recompile the kernel after the modification is made? I looked at the docs for Armbian and it seems that the process is pretty much automatized, which makes me wonder if I can go through the same process even after making modifications to the kernel. 3) After having the binary kernel compiled, how do I "deploy" it in my NanoPi Neo SD Card? Thanks!!! Link to comment Share on other sites More sharing options...
Igor Posted March 15, 2017 Share Posted March 15, 2017 Thank you for compliments! The best way to apply changes to kernel is to download our build tools (https://github.com/igorpecovnik/lib) which will download proper compilers, default patches, sources, ... and run recompilation with this parameter enabled: CREATE_PATCHES="yes" This will prompt you to make changes to u-boot / kernel and will resulted in patch creation toward the (patched with our patches) kernel source. You can make a deb packaged kernel or an whole SD card image. Kernel packages are installed with dpkg -i package.deb Beware that apt-get upgrade will overwrite your custom kernel when we issue an update, so either PIN those packages or remove apt.armbian.com from sources list, save your patch to safe space and recompile if we come up with lot's of fixes to kernel that you can apply your patch to new reality. Documentation and resources: https://docs.armbian.com/Developer-Guide_Build-Preparation/ https://forum.armbian.com/index.php?/forum/4-development/ Link to comment Share on other sites More sharing options...
jpnorair Posted August 2, 2018 Share Posted August 2, 2018 @thiagoralves Did this work for you? I am going through the same procedure now, and I am curious if I should continue or just stop now and try to find a different solution. Link to comment Share on other sites More sharing options...
Igor Posted August 3, 2018 Share Posted August 3, 2018 14 hours ago, jpnorair said: @thiagoralves Did this work for you? I am going through the same procedure now, and I am curious if I should continue or just stop now and try to find a different solution. Our build system works. We use it daily ... you need to be more specifics on what do you want to know, where is your problem? Link to comment Share on other sites More sharing options...
Recommended Posts