Open YKG opened 2 years ago
make tinyconfig
and make allnoconfig
-k bzImage
option with QEMU compare to a real machine? (Bootloader phrase skipped?)-initrd ramdisk.img
option to get the shell64-Bit kernel
printk
T0
or C0
mean when CONFIG_PRINTK_CALLER
is turned on?-enable-kvm
option?i386
, x86
, and x86_64
in the linux kernel source arch
directoryS
in console=ttyS0
means Serial
?qemu-x86_64
and qemu-system-x86_64
?Answer:
qemu-x86_64
is for user-mode emulation, qemu-system-x86_64
is system emulation.qemu-x86_64 /bin/ls
will run /bin/ls
directylyAnswer:
$ cat >prog.s << EOF
.global _start
.intel_syntax noprefix
_start:
mov rdi, 0x0
mov rax, 0x3c
syscall
EOF
$ gcc -nostdlib prog.s -o prog
$ objdump -d prog # check
Refer: https://stackoverflow.com/questions/64016087/writing-the-simplest-assembly-debugger
How it works
Where it use