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.

How to get rt-patched kernel?

Featured Replies

I want to build kernel applied with rt-patch. Latest rt-patch version is for 4.9.13. So, How can I get the result? I think I should edit configuration.sh and then, put the patch file to userpatches/kernel directory? I need a kernel for nanopi-neo.

 

  • Author

Thank you, Igor. I got the clean previous script. and newly git clone the package (armbian lib) 

 

Like you said, put the rt-patch in userpatches/kernel/sun8i-dev

 

and #./compile.sh

Compiling kernel...                                                    │  
  │────────────────────────────────────────────────────────────────────────│  
  │                ^                                                       │  
  │ ./include/linux/compiler.h:168:42: note: in definition of macro ‘unl   │  
  │  # define unlikely(x) __builtin_expect(!!(x), 0)                       │  
  │                                           ^                            │  
  │ ./include/linux/mutex.h:223:35: warning: comparison between pointer an │  
  │   if (unlikely(__mutex_owner(lock) == current))                        │  
  │                                    ^                                   │  
  │ ./include/linux/compiler.h:168:42: note: in definition of macro ‘unl   │  
  │  # define unlikely(x) __builtin_expect(!!(x), 0)                       │  
  │                                           ^                            │  
  │ In file included from ./include/linux/cgroup-defs.h:17:0,              │  
  │                  from ./include/linux/sched.h:62,                      │  
  │                  from arch/arm/kernel/asm-offsets.c:13:                │  
  │ ./include/linux/percpu-rwsem.h: In function ‘percpu_rwsem_release’     │  
  │ ./include/linux/percpu-rwsem.h:119:14: error: ‘struct rw_semaphore     │  
  │    sem->rw_sem.owner = NULL;                                           │  
  │               ^                                                        │  
  │ In file included from ./include/linux/sched.h:62:0,                    │  
  │                  from arch/arm/kernel/asm-offsets.c:13:                │  
  │ ./include/linux/cgroup-defs.h: At top level:                           │  
  │ ./include/linux/cgroup-defs.h:141:21: error: field ‘destroy_swork’     │  
  │   struct swork_event destroy_swork;                                    │  
  │                      ^~~~~~~~~~~~~                                     │  
  │ In file included from arch/arm/kernel/asm-offsets.c:13:0:              │  
  │ ./include/linux/sched.h: In function ‘mmdrop_delayed’:                 │  
  │ ./include/linux/sched.h:2998:15: error: ‘struct mm_struct’ has no      │  
  │    call_rcu(&mm->delayed_drop, __mmdrop_delayed);                      │  
  │                ^~                                                      │  
  │   HOSTCC  scripts/selinux/mdp/mdp                                      │  
  │   HOSTCC  scripts/extract-cert                                         │  
  │ In file included from ./include/linux/fs.h:14:0,                       │  
  │                  from ./include/linux/seq_file.h:10,                   │  
  │                  from ./include/linux/pinctrl/consumer.h:17,           │  
  │                  from ./include/linux/pinctrl/devinfo.h:21,            │  
  │                  from ./include/linux/device.h:24,                     │  
  │                  from ./include/linux/dma-mapping.h:6,                 │  
  │                  from arch/arm/kernel/asm-offsets.c:15:                │  
  │ ./include/linux/radix-tree.h: At top level:                            │  
  │ ./include/linux/radix-tree.h:347:20: error: static declaration of ‘r   │  
  │  static inline void radix_tree_preload_end(void)                       │  
  │                     ^~~~~~~~~~~~~~~~~~~~~~                             │  
  │ ./include/linux/radix-tree.h:326:6: note: previous declaration of ‘r   │  
  │  void radix_tree_preload_end(void);                                    │  
  │       ^~~~~~~~~~~~~~~~~~~~~~                                           │  
  │ cc1: some warnings being treated as errors                             │  
  │ make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1                   │  
  │ make: *** [prepare0] Error 2                                           │  
  │ make: *** Waiting for unfinished jobs....                              │  
  │   HOSTCC  scripts/asn1_compiler                                        │  
  └────────────────────────────────────────────────────────────────────────┘  
    


[ error ] ERROR in function compile_kernel [ common.sh:249 ]
[ error ] Kernel was not built [ @host ]
[ o.k. ] Process terminated

 

  • Author

I understood. Then, How I designate kernel version to 4.9.3? I think it might be build without problems.

Guest
This topic is now closed to further replies.

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.