0
ramstadt

Software development guide

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

 

Share this post


Link to post
Share on other sites

brrr, I would fire your designer unless you have chosen this color combination so no one can/will read your site. Android with Firefox

 

// sent from mobile phone //

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
0