This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Do psim devices still work?
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: <gdb at sourceware dot org>
- Date: Thu, 14 Feb 2008 11:23:04 -0600
- Subject: Do psim devices still work?
Hi,
I am trying to add a couple of new devices to
psim and am having trouble. At this point,
I can't get an existing device (hw_eeprom)
to show up either. hw_eeprom had its configuration
settings in the source code so I decided
to try it.
gdb: 6.7.1
Configure command:
../gdb-6.7.1/configure --target=powerpc-rtems4.9 \
--enable-sim-hardware --enable-sim \
--enable-timebase --enable-sim-trace
my psim device tree file
=======================
/#address-cells 2
/openprom/init/register/pvr 0xfffe0000
/openprom/options/oea-memory-size 8388608
/eeprom@0xfff00000/reg 0xfff00000 0x80000
/eeprom@0xfff00000/nr-sectors 8
/eeprom@0xfff00000/sector-size 0x10000
/eeprom@0xfff00000/byte-write-delay 1000
/eeprom@0xfff00000/sector-start-delay 100
/eeprom@0xfff00000/erase-delay 1000
/eeprom@0xfff00000/manufacture-code 0x01
/eeprom@0xfff00000/device-code 0xa4
=======================
gdb session:
============
./gdb/gdb powerpc-psim-ticker.exe
GNU gdb 6.7.1
Copyright (C) 2007 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 "--host=i686-pc-linux-gnu
--target=powerpc-rtems4.9"...
(gdb) tar sim -f ../psim_tree
Connected to the simulator.
(gdb) load
(gdb) x/x 0xfff00000
0xfff00000: Cannot access memory at address 0xfff00000
(gdb) q
===============
Did I configure correctly? Does this much work for
anyone else?
Thanks.
--
Joel Sherrill, Ph.D. Director of Research & Development
joel.sherrill@OARcorp.com On-Line Applications Research
Ask me about RTEMS: a free RTOS Huntsville AL 35805
Support Available (256) 722-9985