Sudo make modules_install INSTALL_MOD_PATH=./img disk.rawĢ.mount disk image file.(cd in linux source folder first) mkdir imgģ.install kernel modules.(maybe no module.) cd linux-4.19/ linux-4.19 folder first) "C:\Program Files\qemu\qemu-img.exe" create -f raw disk.raw 512M "C:\Program Files\qemu\qemu-system-i386.exe" -m 512M -smp 4 -kernel bzImageĬould be launch the kernel, without rootfs. If using diable modules, don't need do this, such as use "make allnoconfig" before.Ħ.Windows command line input: cd linux-4.19\arch\x86\boot Scripts/extract-cert.c:21:10: fatal error: openssl/bio.h: No such file or directoryĥ. Kaslr的全称是kernel address space layout randomization,主要是通过每次开机将kernel image 加载到不同的 This has been needed since v4.12, when KASLR was turned on by default NOTE: The nokasrl Linux command line parameter disables KASRL. "C:\Program Files\qemu\qemu-system-i386.exe" -m 512M -smp 4 -kernel arch\x86\boot\bzImage -drive format=raw,file=./disk.raw -append "init=/linuxrc root=/dev/sda" -s -S -append nokaslr Other method(not good, VFS can't launch.) (Must have "not set" keyword.) # CONFIG_RANDOMIZE_BASE is not setĪfter input "make bzImage", ".config" file would be change, so need check again.Bellow is change process If want to debug by gdb, should be add some iterms to the ".config" fileĭiscompile KASLR module. Solution: sudo apt-get install libssl-devġ." make help" to see varity of command rerate operation.Ģ." make mrproper" to remove last configure.ģ." make i386_defconfig", may be need to install some lib. scripts/Makefile.host:90: recipe for target 'scripts/extract-cert' failed Make: *** Error 127ī. scripts/Makefile.lib:188: recipe for target 'scripts/kconfig/' failedĬ. tar -xvf linux-4.19.tar.xzĪ. scripts/Makefile.lib:196: recipe for target 'scripts/kconfig/' failed Source: linux-4.19 download form official site. So need to install both.ģ.Debug-method: TDMGCC(Using its GDB in command line debug). Qemu can using gdb, but can't debug in assembly. 1.VM-Envriment:windown 7, vmware-8(ubuntu-18.04.1-live-server-amd64.iso, if using at home, suggest use lubuntu with UI), ssh tool(see Appendix 3 ssh tool), data sharing(see Appendix 1 data sharing sulotion),gcc-32bit(see Appendix 2 gcc-32bit install, but maybe not need nessesary).Ģ.Destnation-machine: BOCHS(lastest version form official site), QEMU(lastest version form official site).īochs can debug assembly, but can't debug using gdb before recompile.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |