Jump to content

Changing Tick Rate for NanoPi Neo


thiagoralves

Recommended Posts

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

Thank you for compliments! B)

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

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

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines