From 51423b0326a0097a823fe9b13da0c1374c3925db Mon Sep 17 00:00:00 2001 From: Gauthier Provost Date: Wed, 13 Jan 2021 12:10:24 +0800 Subject: [PATCH] Fix old path in H4 gpio page --- docs/helios4/files/dt-overlay/{dtc => dtc.bin} | Bin docs/helios4/gpio.md | 12 ++++++------ 2 files changed, 6 insertions(+), 6 deletions(-) rename docs/helios4/files/dt-overlay/{dtc => dtc.bin} (100%) diff --git a/docs/helios4/files/dt-overlay/dtc b/docs/helios4/files/dt-overlay/dtc.bin similarity index 100% rename from docs/helios4/files/dt-overlay/dtc rename to docs/helios4/files/dt-overlay/dtc.bin diff --git a/docs/helios4/gpio.md b/docs/helios4/gpio.md index 4c7a05a..b927d4b 100644 --- a/docs/helios4/gpio.md +++ b/docs/helios4/gpio.md @@ -136,7 +136,7 @@ echo 1 | sudo tee -a /sys/class/gpio/gpio511/value ## Use GPIO with Device Tree Overlay !!! info - Device Tree Compiler (dtc) from OS package manager usually is too old, use the one from kernel source or download binary version for Arm [here](/helios4/files/dt-overlay/dtc). + Device Tree Compiler (dtc) from OS package manager usually is too old, use the one from kernel source or download binary version for Arm [here](/helios4/files/dt-overlay/dtc.bin). Another way to use the GPIO is by using device tree. In device tree the user accessible GPIO is labelled as [expander0](https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/tree/arch/arm/boot/dts/armada-388-helios4.dts#n155). @@ -169,9 +169,9 @@ and save it as power-button.dts Download dtc and compile device tree with this command ``` -wget https://wiki.kobol.io/helios4/files/dt-overlay/dtc -chmod 755 dtc -./dtc -I dts -O dtb -o power-button.dtbo power-button.dts +wget https://wiki.kobol.io/helios4/files/dt-overlay/dtc.bin +chmod 755 dtc.bin +./dtc.bin -I dts -O dtb -o power-button.dtbo power-button.dts ``` ***Button Wiring*** @@ -245,13 +245,13 @@ For more info please refer to Armbian Default (Stretch, Linux Kernel 4.14): - `wget https://wiki.kobol.io/files/dt-overlay/lk4.14_armada-388-helios4.dtb` + `wget https://wiki.kobol.io/helios4/files/dt-overlay/lk4.14_armada-388-helios4.dtb` `sudo cp lk4.14_armada-388-helios4.dtb /boot/dtb/armada-388-helios4.dtb` Armbian Next (Buster, Linux Kernel 4.19): - `wget https://wiki.kobol.io/files/dt-overlay/lk4.19_armada-388-helios4.dtb` + `wget https://wiki.kobol.io/helios/files/dt-overlay/lk4.19_armada-388-helios4.dtb` `sudo cp lk4.19_armada-388-helios4.dtb /boot/dtb/armada-388-helios4.dtb`