mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-28 04:24:26 +01:00
Inird hardcoded, TODO add run option
This commit is contained in:
@@ -6,6 +6,8 @@ BR2_PACKAGE_STRACE=y
|
|||||||
BR2_ROOTFS_OVERLAY="../rootfs_overlay"
|
BR2_ROOTFS_OVERLAY="../rootfs_overlay"
|
||||||
BR2_ROOTFS_POST_BUILD_SCRIPT="../rootfs_post_build_script"
|
BR2_ROOTFS_POST_BUILD_SCRIPT="../rootfs_post_build_script"
|
||||||
BR2_ROOTFS_USERS_TABLES="../user_table"
|
BR2_ROOTFS_USERS_TABLES="../user_table"
|
||||||
|
# Generate output/images/rootfs.cpio
|
||||||
|
BR2_TARGET_ROOTFS_CPIO=y
|
||||||
|
|
||||||
# Host GDB
|
# Host GDB
|
||||||
BR2_GDB_VERSION="7.11.1"
|
BR2_GDB_VERSION="7.11.1"
|
||||||
|
|||||||
@@ -8,6 +8,8 @@ CONFIG_DEBUG_FS=y
|
|||||||
CONFIG_DEBUG_INFO=y
|
CONFIG_DEBUG_INFO=y
|
||||||
CONFIG_DEBUG_KERNEL=y
|
CONFIG_DEBUG_KERNEL=y
|
||||||
CONFIG_GDB_SCRIPTS=y
|
CONFIG_GDB_SCRIPTS=y
|
||||||
|
# Allow kernel to understand -initrd
|
||||||
|
CONFIG_BLK_DEV_INITRD=y
|
||||||
|
|
||||||
# Non-static variables show up on /proc/kallsyms
|
# Non-static variables show up on /proc/kallsyms
|
||||||
# https://stackoverflow.com/questions/20196636/does-kallsyms-have-all-the-symbol-of-kernel-functions/44614878#44614878
|
# https://stackoverflow.com/questions/20196636/does-kallsyms-have-all-the-symbol-of-kernel-functions/44614878#44614878
|
||||||
|
|||||||
5
run
5
run
@@ -62,14 +62,15 @@ case "$arch" in
|
|||||||
fi
|
fi
|
||||||
cmd="$qemu_common \
|
cmd="$qemu_common \
|
||||||
-M pc \
|
-M pc \
|
||||||
-append 'root=/dev/vda nopat $extra_append' \
|
-append 'nopat $extra_append' \
|
||||||
-device edu \
|
-device edu \
|
||||||
-device lkmc_pci_min \
|
-device lkmc_pci_min \
|
||||||
-device virtio-net-pci,netdev=net0 \
|
-device virtio-net-pci,netdev=net0 \
|
||||||
-drive file=${images_dir}/rootfs.ext2,if=virtio,format=raw \
|
-initrd ${images_dir}/rootfs.cpio \
|
||||||
-kernel ${images_dir}/bzImage \
|
-kernel ${images_dir}/bzImage \
|
||||||
$extra_flags \
|
$extra_flags \
|
||||||
"
|
"
|
||||||
|
#-drive file=${images_dir}/rootfs.ext2,if=virtio,format=raw \
|
||||||
;;
|
;;
|
||||||
arm)
|
arm)
|
||||||
if $kgdb; then
|
if $kgdb; then
|
||||||
|
|||||||
Reference in New Issue
Block a user