So, here we go.
I've compiled...
- a stock gdb with Ubuntu (11.04) patches (apt-get source gdb) and the
one patch for remote.c you pointed me to.
- flickernoise (using the compile-flickernoise script as explained in
scripts/README)
I've then flashed my MMone with msd-may2011 except that I've replaced
flickernoise.fbi with the one I've compiled.
All the following is run from
~/Development/milkymist/milkymist/flickernoise.git/src/bin
Note, for the first run I've not booted the MMone, I've merely
connected power (eth, usb keyb, usb mouse, vga, line-in was already
connected) and then started gdb and waited a short while.
==========================================
$ cat gdb.script
set debug remote 1
set remote interrupt-on-connect on
set remote interrupt-sequence BREAK
target remote /dev/ttyUSB0
$ ~/Development/root/milkymist/bin/gdb -x gdb.script flickernoise
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show
copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from
/home/x/Development/milkymist/milkymist/flickernoise.git/src/bin/flickernoise...done.
Sending packet: $qSupported:xmlRegisters=i386;qRelocInsn+#25...Sending
packet: $qSupported:xmlRegisters=i386;qRelocInsn+#25...Sending packet:
$qSupported:xmlRegisters=i386;qRelocInsn+#25...Sending packet:
$qSupported:xmlRegisters=i386;qRelocInsn+#25...Timed out.
Timed out.
Timed out.
Ignoring packet error, continuing...
Packet qSupported (supported-packets) is supported
warning: unrecognized item "timeout" in "qSupported" response
Sending packet: $Hg0#df...Sending packet: $Hg0#df...Sending packet:
$Hg0#df...Sending packet: $Hg0#df...Timed out.
Timed out.
Timed out.
Ignoring packet error, continuing...
Sending packet: $?#3f...Sending packet: $?#3f...Sending packet:
$?#3f...Sending packet: $?#3f...Timed out.
Timed out.
Timed out.
Ignoring packet error, continuing...
Sending packet: $Hc-1#09...Sending packet: $Hc-1#09...Sending packet:
$Hc-1#09...Sending packet: $Hc-1#09...Timed out.
Timed out.
Timed out.
Ignoring packet error, continuing...
Sending packet: $qC#b4...Sending packet: $qC#b4...Sending packet:
$qC#b4...Sending packet: $qC#b4...Timed out.
Timed out.
Timed out.
Ignoring packet error, continuing...
Sending packet: $qAttached#8f...Sending packet: $qAttached#8f...Sending
packet: $qAttached#8f...Sending packet: $qAttached#8f...Timed out.
Timed out.
Timed out.
Ignoring packet error, continuing...
Packet qAttached (query-attached) is supported
Sending packet: $qOffsets#4b...Sending packet: $qOffsets#4b...Sending
packet: $qOffsets#4b...Sending packet: $qOffsets#4b...Timed out.
Timed out.
Timed out.
Ignoring packet error, continuing...
gdb.script:4: Error in sourced command file:
Malformed response to offset query, timeout
(gdb)
==========================================
In the following run I've actually booted the MMone right after
connecting with gdb.
When I was closing the 'no patches found' message in flickernoise, gdb
stopped with the "malformed response" error.
==========================================
$ ~/Development/root/milkymist/bin/gdb -x gdb.script flickernoise
GNU gdb (GDB) 7.2
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show
copying"
and "show warranty" for details.
This GDB was configured as "i686-pc-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from
/home/x/Development/milkymist/milkymist/flickernoise.git/src/bin/flickernoise...done.
Sending packet: $qSupported:xmlRegisters=i386;qRelocInsn+#25...putpkt:
Junk:
libHPDMC SDRAM initialization runtime
(c) Copyright 2010 Sebastien Bourdeauducq, released under GNU LGPL
version 3.
Version 1.0RC4
Initialization sequence completed.
Autocalibration OK, testing memory...
All SDRAM initialization completed, boot continuing.
VGA: framebuffers at 0x440215c0 0x441a15c0 0x443215c0
VGA: DDC I2C bus initialized
VGA: mode set to 640x480
MILKYMIST(tm) v1.0RC4 BIOS http://www.milkymist.org
(c) Copyright 2007, 2008, 2009, 2010, 2011 Sebastien Bourdeauducq
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, version 3 of the License.
I: BIOS CRC passed (c4104bb8)
BRD: SoC 1.0RC4 on Milkymist One (PCB revision 1)
BRD: Mem. card : Yes
BRD: AC'97 : Yes
BRD: PFPU : Yes
BRD: TMU : Yes
BRD: Ethernet : Yes
BRD: FML meter : Yes
BRD: Video in : Yes
BRD: MIDI : Yes
BRD: DMX : Yes
BRD: IR : Yes
BRD: USB : Yes
BRD: Memtester : No
TMU: texture mapping unit initialized
USB: loading Navre firmware
USB: starting host controller
USB: HC: softusb
Nak
Sending packet: $qSupported:xmlRegisters=i386;qRelocInsn+#25...putpkt:
Junk: input v1.0RC4
UKB: USB keyboard connected to console
I: Displaying splash screen...USB: HC: Low speed device on port A
USB: HC: Low speed device on port B
OK
I: MAC address: 10:e2:d5:00:00:16
I: Press Q or ESC to abort boot
USB: HC: VID: 046D, PID: C03E
USB: HC: VID: 046A, PID: 0023
USB: HC: Found mouse
USB: HC: Found keyboard
I: Booting from filesystem...
E: Unable to initialize memory card driver
E: Unable to initialize filesystem
I: Booting from flash...
I: Loading 1881276 bytes from flash...
I: Booting...
RTEMS SHELL (Ver.1.0
Nak
Sending packet: $qSupported:xmlRegisters=i386;qRelocInsn+#25...putpkt:
Junk: FRC):/dev/console. Jun 13 2011. 'help' to list commands.
[/] #
Packet instead of Ack, ignoring it
Ack
Timed out.
Timed out.
Timed out.
Ignoring packet error, continuing...
Packet qSupported (supported-packets) is supported
warning: unrecognized item "timeout" in "qSupported" response
Sending packet: $Hg0#df...Nak
Sending packet: $Hg0#df...Ack
Packet received: Hg0
Sending packet: $?#3f...Packet instead of Ack, ignoring it
Ack
Packet received: ?
Sending packet: $Hc-1#09...Ack
Packet received: Hc-1
Sending packet: $qC#b4...Ack
Packet received: qC
Sending packet: $qAttached#8f...Ack
Packet received: qAttached
Packet qAttached (query-attached) is supported
Sending packet: $qOffsets#4b...Ack
Packet received: qOffsets
gdb.script:4: Error in sourced command file:
Malformed response to offset query, qOffsets
(gdb)
==========================================
Any idea why it's doing this?
So far I was not able too get it to a point where I could run a
backtrace.
I'll now let the 'airs' patch run till it hopefully gets stuck and see
if I can do any kind of post-mortem from there (not sure that'll work).
Please let me know if I'm doing something wrong here.
--
Thanks, hadez
_______________________________________________
http://lists.milkymist.org/listinfo.cgi/devel-milkymist.org
IRC: #milkymist@Freenode
Twitter: www.twitter.com/milkymistvj
Ideas? http://milkymist.uservoice.com