articleolz.blogg.se

Qemu mips tutorial
Qemu mips tutorial






License GPLv3+: GNU GPL version 3 or later gdb myelfĬopyright (C) 2009 Free Software Foundation, Inc. I first tried to install gdb itself on the the qemu emulator.When i run gdb my elf i can see that gdb was automatically configured as mips-linux-gnu. And to be honest i have no idea about what i should do now. I've read that gdb can debug on a remote target (here the MIPS-emulator) from an host machine which is my x86_64. There are only the very basics commands/tools on the emulator. So far, i have the emulator running in one shell and the command uname -a gives me: Linux debian-mips 2.6.32-5-4kc-malta #1 Tue Sep 24 00:02: mips GNU/Linux qemu-system-mips -M malta -kernel vmlinux-2.6.32-5-4kc-malta -hda debian_squeeze_mips_standard.qcow2 -append "root=/dev/sda1 console=tty0"

qemu mips tutorial qemu mips tutorial

Then i've run the specified command for a 32 bit (because the elf informations) MIPS system. According to this site, i downloaded the following kernel image and initrds: debian_squeeze_mips_standard.qcow2 So i don't need a cross compiler right ? As i don't have MIPS hardware (i have an INTEL microprocessor), i need an emulator.

qemu mips tutorial

I just want to run and debug the program. You can see bellow the output of file myelf: myelf: ELF 32-bit LSB executable, MIPS, MIPS-I version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, BuildID=0xc89c3571514c7ec1afc74a189a9c2d24e276ec4c, with unknown capability 0xf41 = 0x756e6700, with unknown capability 0x70100 = 0x1040000 stripped As i'm new about cross-debugging and cross-compilation i need some help because i feel so confused.








Qemu mips tutorial