Jump to content

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


Rolf Bakker

Recommended Posts

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?

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