mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
gem5 fs: pass earlycon to show printks console much earlier in boot!
This commit is contained in:
4
run
4
run
@@ -611,7 +611,7 @@ Extra options to append at the end of the emulator command line.
|
||||
if self.env['kvm']:
|
||||
cmd.extend(['--cpu-type', 'X86KvmCPU', LF])
|
||||
if not self.env['baremetal']:
|
||||
cmd.extend(['--command-line', 'earlyprintk={} lpj=7999923 root=/dev/sda {}'.format(console, kernel_cli), LF])
|
||||
cmd.extend(['--command-line', 'earlycon={} earlyprintk={} lpj=7999923 root=/dev/sda {}'.format(console, console, kernel_cli), LF])
|
||||
elif self.env['is_arm']:
|
||||
if self.env['kvm']:
|
||||
cmd.extend(['--cpu-type', 'ArmV8KvmCPU', LF])
|
||||
@@ -627,7 +627,7 @@ Extra options to append at the end of the emulator command line.
|
||||
'--command-line',
|
||||
# TODO why is it mandatory to pass mem= here? Not true for QEMU.
|
||||
# Anything smaller than physical blows up as expected, but why can't it auto-detect the right value?
|
||||
'earlyprintk=pl011,0x1c090000 lpj=19988480 rw loglevel=8 mem={} root=/dev/sda {}'.format(memory, kernel_cli), LF
|
||||
'earlycon=pl011,0x1c090000 earlyprintk=pl011,0x1c090000 lpj=19988480 rw loglevel=8 mem={} root=/dev/sda {}'.format(memory, kernel_cli), LF
|
||||
])
|
||||
cmd.extend(['--param', 'system.workload.panic_on_panic = True', LF])
|
||||
dtb = None
|
||||
|
||||
Reference in New Issue
Block a user