Skip to content

Commit da06e67

Browse files
committed
gem5 fs: pass earlycon to show printks console much earlier in boot!
1 parent 1280325 commit da06e67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

run

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,7 +611,7 @@ Extra options to append at the end of the emulator command line.
611611
if self.env['kvm']:
612612
cmd.extend(['--cpu-type', 'X86KvmCPU', LF])
613613
if not self.env['baremetal']:
614-
cmd.extend(['--command-line', 'earlyprintk={} lpj=7999923 root=/dev/sda {}'.format(console, kernel_cli), LF])
614+
cmd.extend(['--command-line', 'earlycon={} earlyprintk={} lpj=7999923 root=/dev/sda {}'.format(console, console, kernel_cli), LF])
615615
elif self.env['is_arm']:
616616
if self.env['kvm']:
617617
cmd.extend(['--cpu-type', 'ArmV8KvmCPU', LF])
@@ -627,7 +627,7 @@ Extra options to append at the end of the emulator command line.
627627
'--command-line',
628628
# TODO why is it mandatory to pass mem= here? Not true for QEMU.
629629
# Anything smaller than physical blows up as expected, but why can't it auto-detect the right value?
630-
'earlyprintk=pl011,0x1c090000 lpj=19988480 rw loglevel=8 mem={} root=/dev/sda {}'.format(memory, kernel_cli), LF
630+
'earlycon=pl011,0x1c090000 earlyprintk=pl011,0x1c090000 lpj=19988480 rw loglevel=8 mem={} root=/dev/sda {}'.format(memory, kernel_cli), LF
631631
])
632632
cmd.extend(['--param', 'system.workload.panic_on_panic = True', LF])
633633
dtb = None

0 commit comments

Comments
 (0)