From cfa8085c054471b2d9870cd2ae3bc759ffdab03b Mon Sep 17 00:00:00 2001 From: Aleksandar Bilanovic Date: Tue, 7 May 2019 13:47:13 +0200 Subject: [PATCH 1/2] properly enable eth1 across reboots --- recipes/additional-devices.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/recipes/additional-devices.md b/recipes/additional-devices.md index 09e0b41..23b3fae 100644 --- a/recipes/additional-devices.md +++ b/recipes/additional-devices.md @@ -18,7 +18,13 @@ To enable it execute this command as `root`: enable_dtoverlay eth1 ethernet@ff550000 okay ``` -This will enable `eth1` till next reboot. If you want to make it permamently consider adding this line to `/etc/rc.local` or other file that is executed on boot. +This will enable `eth1` till next reboot. If you want to make it permamently execute this commands as `root`: + +``` +fdtoverlay -i `ls /boot/dtb-*` -o /root/dtb-eth1 /sys/kernel/config/device-tree/overlays/eth1/dtbo +mv /root/dtb `ls /boot/dtb-*` +dtc -I dtb -O dts `ls /boot/dtb-*` > `ls /boot/dts-*` +``` ## Help wanted From 200fb8c27ad751cb4e2419f9a137b4a7b2b9abb3 Mon Sep 17 00:00:00 2001 From: Aleksandar Bilanovic Date: Wed, 15 May 2019 14:38:24 +0200 Subject: [PATCH 2/2] sd card / emmc overlay configuration --- recipes/additional-devices.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/recipes/additional-devices.md b/recipes/additional-devices.md index 23b3fae..b41035a 100644 --- a/recipes/additional-devices.md +++ b/recipes/additional-devices.md @@ -20,12 +20,19 @@ enable_dtoverlay eth1 ethernet@ff550000 okay This will enable `eth1` till next reboot. If you want to make it permamently execute this commands as `root`: +### on SD card ``` fdtoverlay -i `ls /boot/dtb-*` -o /root/dtb-eth1 /sys/kernel/config/device-tree/overlays/eth1/dtbo mv /root/dtb `ls /boot/dtb-*` dtc -I dtb -O dts `ls /boot/dtb-*` > `ls /boot/dts-*` ``` +### on eMMC +``` +fdtoverlay -i /boot/dtbs/4.4.132-1075-rockchip-ayufan-ga83beded8524/rockchip/rk3328-rock64.dtb -o /root/dtb-eth1 /sys/kernel/config/device-tree/overlays/eth1/dtbo +mv /root/dtb-eth1 /boot/dtbs/4.4.132-1075-rockchip-ayufan-ga83beded8524/rockchip/rk3328-rock64.dtb +``` + ## Help wanted Contribute here to add information about different devices that might be interesting for the users: SPI, I2C, UART, GPIOs.