Jump to content

Software development guide


ramstadt

Recommended Posts

First, I'd like to say thank you for creating this.  I have a Pine64 board and have built and loaded an Ubuntu Armbian build on the board.  I'm now looking to develop custom software which will include a custom audio driver and custom audio software.  I anticipate this means one or more custom kernel modules and custom user space software.   I've read through all the documentation and will begin experimenting, but thought I'd check to see if somebody has created a cookbook style recipe for the following:

 

1. Kernel development: incrementally modifying the kernel, building and deploying on the test board.  I can see deployment through the created .deb files, but how do I make changes to the sources and save those changes in a way that I can eventually create a standard patch that can be applied?  Normally, I would want to have the kernel sources in a git repo and commit my changes as I make them.  Does your directory structure allow such a process?

2. Kernel module development: I formerly have done module development outside of the kernel tree and built just my modules.  I assume I can still do it this way and I don't need to modify my development process.

3. User space development: can I compile and use GDB on the target board or do I need to run cross compilations and gdbserver?

 

Thanks,

Bob

 

Link to comment
Share on other sites

12 hours ago, ramstadt said:

but how do I make changes to the sources and save those changes in a way that I can eventually create a standard patch that can be applied?


CREATE_PATCHES="yes"
https://docs.armbian.com/Developer-Guide_Build-Options/
 

12 hours ago, ramstadt said:

Kernel module development: I formerly have done module development outside of the kernel tree and built just my modules.  I assume I can still do it this way and I don't need to modify my development process.


You need headers package for that. It should be available by default (in some cases - when adding fixes to kernel, we forgot to update headers as well)

 

12 hours ago, ramstadt said:

User space development: can I compile and use GDB on the target board or do I need to run cross compilations and gdbserver?


You can, but recommended is cross-compilation. Without tools it will be much harder.

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