user/u-boot-rm: console to ttyGS0

This commit is contained in:
Antoine Martin 2023-05-20 23:16:51 -04:00 committed by Antoine Martin
parent d2468de3c5
commit 2e160a8cfe
2 changed files with 17 additions and 1 deletions

View file

@ -5,7 +5,7 @@ pkgname=u-boot-rm
pkgver=2020.09
_rm1tag=97b35fdddf0077abd2e0f0409b94ef20adbe8565
_rm2tag=47c91918aa7724c16b6eaf87cf5dfbf4548eafc1
pkgrel=3
pkgrel=4
pkgdesc="u-boot bootloader common files"
url="https://www.denx.de/wiki/U-Boot/"
@ -32,6 +32,7 @@ source="
u-boot-rm2-$_rm2tag.tar.gz::https://github.com/reMarkable/uboot/archive/$_rm2tag.tar.gz
update-u-boot
README.txt
rm1-ttygs0-serial.diff
rm1-uboot-config-patch.diff
rm2-uboot-config-patch.diff
"
@ -54,6 +55,7 @@ prepare() {
cd "$builddir"/uboot-$_rm1tag
patch -p1 -i "$srcdir"/rm1-uboot-config-patch.diff
patch -p1 -i "$srcdir"/rm1-ttygs0-serial.diff
cd "$builddir"/uboot-$_rm2tag
patch -p1 -i "$srcdir"/rm2-uboot-config-patch.diff
}
@ -120,6 +122,7 @@ sha512sums="
d0d18b123c4281285a8b3c1afd9ef623b48a33506399c8e0dbc393f22d967ee3e5df7030aab26c4fe8cad614f3f22f1ea5d6b5bb4ef5cc46fffe56b7ac7c3c28 u-boot-rm2-47c91918aa7724c16b6eaf87cf5dfbf4548eafc1.tar.gz
a905e4dcdb2704e0b1d4f0ab4a6333d3f1ffcec5c3a8359f5789800eb2114dad673cf0b5f24cae3a590f27333dff2e96b6f1efae5a466f9281a3d65efe403a1e update-u-boot
f8c9bb6e84d6f0620c976ac7ad5dd7ec7ff9dfdd4b1d03d2bf6653e7beccf80bdf2debfc92fb1f696dba92fb40287d3c45897e0078951451d0835cb61a5f16d1 README.txt
c136cdebb5e75ac3d30cd57297b55fa38f461909355f138e19a3c8dd56af4a17d2df777289e89e3b1f63321092dffba3bc090a96720b0c56fdc8156f2e3a6ff1 rm1-ttygs0-serial.diff
673cb917cc565ae245d4a7d659227bc240473112bc9c73ae184a64ce74be7994273d6dc4db17194d348941f83a42b3b67d3140f6f23c37c13d6dc93f7d76cc39 rm1-uboot-config-patch.diff
0e98404ca6d20eb01bd9c129b05e2eb10c60a692a56adc221ea283b4bfe7b0bcc2851121d4c3fe51e07a9784c339f7ccb221e0cc3f3603144fec46be66d0cbcc rm2-uboot-config-patch.diff
"

View file

@ -0,0 +1,13 @@
diff --git a/include/configs/zero-gravitas.h.orig b/include/configs/zero-gravitas.h
index 818ed56..6eb7447 100644
--- a/include/configs/zero-gravitas.h.orig
+++ b/include/configs/zero-gravitas.h
@@ -73,7 +73,7 @@
"active_partition=2\0" \
"bootlimit=1\0" \
"por=undefined\0" \
- "mmcargs=setenv bootargs console=${console},${baudrate} " \
+ "mmcargs=setenv bootargs console=${console},${baudrate} console=ttyGS0,115200 " \
"root=/dev/mmcblk1p2 rootwait rootfstype=ext4 rw por=${por};\0" \
"loadimage=ext4load mmc ${mmcdev}:${mmcpart} ${loadaddr} ${image}\0" \
"loadfdt=ext4load mmc ${mmcdev}:${mmcpart} ${fdt_addr} ${fdt_file}\0" \