From 7a5614f59bbd2f66c4294bebc089d7896cd2a16d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pedro=20Gon=C3=A7alves?= Date: Tue, 25 Aug 2020 16:56:06 +0100 Subject: [PATCH] rules/rpi5cfs: add rule for config files of uarts for rpi4. --- rules/rpi4cfs/5uart.bash | 10 ++++++++++ rules/rpi4cfs/cfs/5uart/cmdline.txt | 1 + rules/rpi4cfs/cfs/5uart/config.txt | 6 ++++++ rules/rpi4cfs/cfs/5uart/ssh | 0 rules/rpi4cfs/cfs/default/cmdline.txt | 1 + rules/rpi4cfs/cfs/default/config.txt | 2 ++ rules/rpi4cfs/cfs/default/ssh | 0 rules/rpi4cfs/default.bash | 10 ++++++++++ 8 files changed, 30 insertions(+) create mode 100644 rules/rpi4cfs/5uart.bash create mode 100644 rules/rpi4cfs/cfs/5uart/cmdline.txt create mode 100644 rules/rpi4cfs/cfs/5uart/config.txt create mode 100644 rules/rpi4cfs/cfs/5uart/ssh create mode 100644 rules/rpi4cfs/cfs/default/cmdline.txt create mode 100644 rules/rpi4cfs/cfs/default/config.txt create mode 100644 rules/rpi4cfs/cfs/default/ssh create mode 100644 rules/rpi4cfs/default.bash diff --git a/rules/rpi4cfs/5uart.bash b/rules/rpi4cfs/5uart.bash new file mode 100644 index 0000000..20943f7 --- /dev/null +++ b/rules/rpi4cfs/5uart.bash @@ -0,0 +1,10 @@ +maintainer=\ +( + 'Pedro Gonçalves ' +) + + +target_install() +{ + $cmd_cp $pkg_dir/cfs/5uart/* ${cfg_dir_rootfs}/boot/ +} diff --git a/rules/rpi4cfs/cfs/5uart/cmdline.txt b/rules/rpi4cfs/cfs/5uart/cmdline.txt new file mode 100644 index 0000000..ce7baf9 --- /dev/null +++ b/rules/rpi4cfs/cfs/5uart/cmdline.txt @@ -0,0 +1 @@ +dwc_otg.lpm_enable=0 console=tty1 root=/dev/mmcblk0p2 elevator=deadline rootwait quiet diff --git a/rules/rpi4cfs/cfs/5uart/config.txt b/rules/rpi4cfs/cfs/5uart/config.txt new file mode 100644 index 0000000..65044e9 --- /dev/null +++ b/rules/rpi4cfs/cfs/5uart/config.txt @@ -0,0 +1,6 @@ +dtoverlay=disable-bt +enable_uart=1 +dtoverlay=uart2 +dtoverlay=uart3 +dtoverlay=uart4 +dtoverlay=uart5 diff --git a/rules/rpi4cfs/cfs/5uart/ssh b/rules/rpi4cfs/cfs/5uart/ssh new file mode 100644 index 0000000..e69de29 diff --git a/rules/rpi4cfs/cfs/default/cmdline.txt b/rules/rpi4cfs/cfs/default/cmdline.txt new file mode 100644 index 0000000..edabbdd --- /dev/null +++ b/rules/rpi4cfs/cfs/default/cmdline.txt @@ -0,0 +1 @@ +dwc_otg.lpm_enable=0 console=ttyAMA0 root=/dev/mmcblk0p2 elevator=deadline rootwait quiet diff --git a/rules/rpi4cfs/cfs/default/config.txt b/rules/rpi4cfs/cfs/default/config.txt new file mode 100644 index 0000000..cf14427 --- /dev/null +++ b/rules/rpi4cfs/cfs/default/config.txt @@ -0,0 +1,2 @@ +dtoverlay=disable-bt +enable_uart=1 diff --git a/rules/rpi4cfs/cfs/default/ssh b/rules/rpi4cfs/cfs/default/ssh new file mode 100644 index 0000000..e69de29 diff --git a/rules/rpi4cfs/default.bash b/rules/rpi4cfs/default.bash new file mode 100644 index 0000000..974067a --- /dev/null +++ b/rules/rpi4cfs/default.bash @@ -0,0 +1,10 @@ +maintainer=\ +( + 'Pedro Gonçalves ' +) + + +target_install() +{ + $cmd_cp $pkg_dir/cfs/default/* ${cfg_dir_rootfs}/boot/ +}