[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-discuss] [Qemu-devel] Debugging bootloader with gdb in qemu
From: |
Antony Pavlov |
Subject: |
Re: [Qemu-discuss] [Qemu-devel] Debugging bootloader with gdb in qemu |
Date: |
Wed, 1 Jan 2014 13:27:50 +0400 |
On Wed, 1 Jan 2014 12:55:38 +0500
Maryyam Muhammad Din <address@hidden> wrote:
> I am trying to debug bootloader with gdb in QEMU. I run QEMU command like
> this
>
> ./qemu-system-mips64 -s -S -m 1024 -M octeon -bios
> u-boot-octeon_ebh5610.bin -kernel vmlinux.64 -append 'coremask=001 mem=0
> root=/dev/sda2'
>
> and then connect gdb using
>
> mips64-octeon-linux-gnu-gdb u-boot-octeon_ebh5610
> target remote localhost:1234
>
> when i try to step into bootloader code, it continues execution without
> breaking. This totally skip the bootloader code which i want to examine
> step by step as it execute.
> Can anyone suggest, what do i need to do to resolve this issue.
See this screencast:
http://dir.tftpd.net:7080/~antony/mips-barebox-qemu-gdb-howto-20131219.avi
This screencast will show you how to trace bootloader (barebox,
http://www.barebox.org)
for MIPS malta using qemu and gdb.
> Thank You
> --
> Maryyam Muhammad Din
> Al-Khawarizmi Institute of Computer Science
> UET Lahore
--
--
Best regards,
Antony Pavlov