mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-29 04:54:27 +01:00
monitor
This commit is contained in:
8
run
8
run
@@ -182,14 +182,17 @@ else
|
|||||||
qemu_common="\
|
qemu_common="\
|
||||||
${debug_vm} \
|
${debug_vm} \
|
||||||
'${buildroot_out_dir}/host/usr/bin/qemu-system-${arch}' \\
|
'${buildroot_out_dir}/host/usr/bin/qemu-system-${arch}' \\
|
||||||
|
-chardev stdio,id=s1,signal=off,mux=on \\
|
||||||
-gdb tcp::1234 \\
|
-gdb tcp::1234 \\
|
||||||
-m '${memory}' \\
|
-m '${memory}' \\
|
||||||
|
-mon chardev=s1,mode=readline \\
|
||||||
-monitor telnet::45454,server,nowait \\
|
-monitor telnet::45454,server,nowait \\
|
||||||
-netdev user,hostfwd=tcp::45455-:45455,hostfwd=tcp::45456-:22,id=net0 \\
|
-netdev user,hostfwd=tcp::45455-:45455,hostfwd=tcp::45456-:22,id=net0 \\
|
||||||
|
-serial none \\
|
||||||
-smp '${cpus}' \\
|
-smp '${cpus}' \\
|
||||||
-trace 'enable=${trace_enable},file=${qemu_out_dir}/trace.bin' \\
|
-trace 'enable=${trace_enable},file=${qemu_out_dir}/trace.bin' \\
|
||||||
-virtfs 'local,path=${p9_dir},mount_tag=host_scratch,security_model=mapped,id=host_scratch' \\
|
|
||||||
-virtfs 'local,path=${buildroot_out_dir}/build,mount_tag=host_out,security_model=mapped,id=host_out' \\
|
-virtfs 'local,path=${buildroot_out_dir}/build,mount_tag=host_out,security_model=mapped,id=host_out' \\
|
||||||
|
-virtfs 'local,path=${p9_dir},mount_tag=host_scratch,security_model=mapped,id=host_scratch' \\
|
||||||
${vnc}"
|
${vnc}"
|
||||||
if "$initrd"; then
|
if "$initrd"; then
|
||||||
extra_flags="${extra_flags} -initrd '${images_dir}/rootfs.cpio' \\
|
extra_flags="${extra_flags} -initrd '${images_dir}/rootfs.cpio' \\
|
||||||
@@ -215,6 +218,7 @@ ${qemu_common} \
|
|||||||
-M pc \\
|
-M pc \\
|
||||||
-append '${root} nopat ${extra_append}' \\
|
-append '${root} nopat ${extra_append}' \\
|
||||||
-device edu \\
|
-device edu \\
|
||||||
|
-device isa-serial,chardev=s1 \\
|
||||||
-device lkmc_pci_min \\
|
-device lkmc_pci_min \\
|
||||||
-device virtio-net-pci,netdev=net0 \\
|
-device virtio-net-pci,netdev=net0 \\
|
||||||
-kernel '${images_dir}/bzImage' \\
|
-kernel '${images_dir}/bzImage' \\
|
||||||
@@ -237,7 +241,6 @@ ${qemu_common} \
|
|||||||
-device rtl8139,netdev=net0 \\
|
-device rtl8139,netdev=net0 \\
|
||||||
-dtb '${images_dir}/versatile-pb.dtb' \\
|
-dtb '${images_dir}/versatile-pb.dtb' \\
|
||||||
-kernel '${images_dir}/zImage' \\
|
-kernel '${images_dir}/zImage' \\
|
||||||
-serial stdio \\
|
|
||||||
${extra_flags} \
|
${extra_flags} \
|
||||||
"
|
"
|
||||||
;;
|
;;
|
||||||
@@ -258,7 +261,6 @@ ${qemu_common} \
|
|||||||
-device virtio-net-device,netdev=net0 \\
|
-device virtio-net-device,netdev=net0 \\
|
||||||
-kernel '${images_dir}/Image' \\
|
-kernel '${images_dir}/Image' \\
|
||||||
-nographic \\
|
-nographic \\
|
||||||
-serial stdio \\
|
|
||||||
${extra_flags} \
|
${extra_flags} \
|
||||||
"
|
"
|
||||||
;;
|
;;
|
||||||
|
|||||||
Reference in New Issue
Block a user