Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Applying kernel patches per board

Featured Replies

I am working on support for the ClockworkPi Gameshell main board.  I have patches for the kernel, but it seems that the  build system applies kernel patches on a "per family" basis.  Indeed, looking at the 'kernel-patch.sh' script it seems the BOARD and TARGET variables that would let board specific patches work are commented out.  I've read through the example PR's in the docs, but don't see an example of how applying board specific patches should work.  I fear that if I put the patches into the normal flow, it will get applied to other boards within the sunxi family and things may break for other boards.  

Should kernel patches be crafted in a way that they SHOULD be applied at the family level?  Or should I expect to be able to apply a kernel package on the per board level?  The patches I have come from the board maker and involve changing more than just creating dts files.

6 hours ago, uberlinuxguy said:

Should kernel patches be crafted in a way that they SHOULD be applied at the family level

Ideally yes. Boards with same or similar SoCs sharing the same sources "per family" since maintaining sources for those is hard enough, doing per individual board would be insane and simply impossible ;)

 

Anyway to work around this you may try to utilize https://docs.armbian.com/Developer-Guide_User-Configurations/#user-provided-patches or add the board as its own family.

  • Author
11 hours ago, Werner said:

Ideally yes. Boards with same or similar SoCs sharing the same sources "per family" since maintaining sources for those is hard enough, doing per individual board would be insane and simply impossible ;)

That is the same thought I had but I think I wanted to get validation that I was right in my assumption before I went forward modifying the patches from the board vendor.  It *should* be easy enough to turn the necessary parts into kernel config options that can be enabled in the post_family_config.  

I suppose I could also apply the board specific patches via the same post_family_config hook, but after looking through the other board configs, I didn't see anyone else doing anything like that, so I didn't want to do something out of line with every other board.  I am not one that would go against the grain with a work around if there is a proper way to do things.  I think I just needed a bit of validation before I went in the direction of messing with kernel code. 🙂

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.