Rolf Bakker Posted December 25, 2017 Posted December 25, 2017 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?
Igor Posted December 25, 2017 Posted December 25, 2017 7 minutes ago, Rolf Bakker said: how do I install the kernel header package? armbian-config -> software -> Headers or manually.
Recommended Posts