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.

Using custom DT overlay on Cubieboard2 - cannot install kernel header package

Featured Replies

I've got a Cubieboard2 with a serial interface hardwired to PI10 and PI11 (uart5).

 

The default Cubieboard2 DT overlay connects uart5 to PH6 and PH7, so I made a new dts, called "sun7i-a20-uart5b" with the pins like I need them:

 

 

/dts-v1/;
/plugin/;

/ {
        compatible = "allwinner,sun7i-a20";

        fragment@0 {
                target-path = "/aliases";
                __overlay__ {
                        serial5 = "/soc@01c00000/serial@01c29400";
                };
        };



        fragment@1 {
                target = <&pio>;
                __overlay__ {
                        uart5_pins_a_2: uart5@1 {
                                pins = "PI10", "PI11";
                                function = "uart5";
                        };
                };
        };


        fragment@2 {
                target = <&uart5>;
                 __overlay__ {
                        pinctrl-names = "default";
                        pinctrl-0 = <&uart5_pins_a_2>;
                        status = "okay";
                };
        };
};

 

According to the instructions I need to excute:

armbian-add-overlay sun7i-a20-uart5b

But this results in an error: Kernel headers are not installed properly. Please install the kernel headers package
 

root@cubieboard2:/boot/dtb# armbian-add-overlay sun7i-a20-uart5b.dts 
Kernel headers are not installed properly. Please install the kernel headers package

 

if I execute as root the following:

 

apt-get install linux-headers-$(uname -r)

I get the following errors:

 

root@cubieboard2:/boot/dtb# sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-headers-4.13.16-sunxi
E: Couldn't find any package by glob 'linux-headers-4.13.16-sunxi'
E: Couldn't find any package by regex 'linux-headers-4.13.16-sunxi'

I'm stuck now:

 

My basic question is: how do I enable uart5 on PI10,PI11 ?

If I've proceeded in the correct way, how do I install the kernel header package?

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.