On Tue, 29 Oct 2013 21:09:30 +0800 Nancy <nancydream...@gmail.com> wrote:
Some years ago I have made a set of scripts for building MIPS linux kernel and rootfs from scratch and running it under qemu. See https://github.com/frantony/clab for details, especialy see start-qemu.sh script and files in the qemu-configs/malta-linux-gnu subdirectory. Also see a versatile 'buildroot' software for easy rootfs creation (www.buildroot.org). > 1. When QEMU for MIPS support watchpoint debug facility? Any hint or guide > to implement that function? Run qemu with -S and -s options. Next start your cross gdb (e.g. mips-linux-gdb), next in the gdb cmdline use command "target remote :1234" to connect to qemu. > 2. qemu-system-mipsel -M malta -kernel vmlinux-2.6.26-1-4kc-malta -hda > debian_lenny_mipsel_small.qcow2 -append "root=/dev/hda1 console=ttyS0 > kgdboc=ttyS0,115200 kgdbwait" -nographic -serial tcp::1234,server -net > nic,model=pcnet -net user > > Did I miss something? I cannot see the bootup message in the current client > unless I remove "-serial tcp::1234,server" away. But I need that for kgdb > debug. What is the right way to configure it? Do you really need this "in-kernel" gdb support? As I have already write, qemu itself has gdb server functionality support. > -- > Best Regards, > Yu Rong Tan -- -- Best regards, Antony Pavlov