From 8b5714139bb0d965eb626f87115964d8dcad04af Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Mon, 31 Oct 2022 12:44:09 +0000 Subject: reform: only override console=0 when no plan9.ini is passed The kernel used to always set console=0, which as usefull during bring-up, but makes it impossible to use the uart for other purposes. We now have the ability to pass plan9.ini using the u-boot script, so add the console=0 line there. To make debugging easy, we still apply console=0 if no plan9.ini has been passed. --- sys/lib/dist/mkfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sys/lib') diff --git a/sys/lib/dist/mkfile b/sys/lib/dist/mkfile index 703602846..045f4560c 100644 --- a/sys/lib/dist/mkfile +++ b/sys/lib/dist/mkfile @@ -92,7 +92,9 @@ cd:V: /tmp/9front.386.iso.gz @{ objtype=arm64 kernel=/n/src9/$objtype/9reform.u - echo 'bootargs=local!/dev/sdM0/fs' > /env/plan9.ini + > /env/plan9.ini { + echo 'console=0' + } fatfiles=(/n/src9/sys/src/boot/reform/boot.scr /env/plan9.ini $kernel) mb=1885 # storage vendors idea of 2GB mk $target.$pid.disk -- cgit v1.2.3