
There is no support for GDB debugging for ARM u-boot. Most jtag debuggers are plenty good for that task anyway. With some work you can use kgdb for the kernel, and gdb for applications.
Regards, Richard W.
-----Original Message----- From: u-boot-users-admin@lists.sourceforge.net [mailto:u-boot-users- admin@lists.sourceforge.net] On Behalf Of ravi.aloor@wipro.com Sent: Saturday, October 16, 2004 9:27 AM To: u-boot-users@lists.sourceforge.net Subject: [U-Boot-Users] TFTP configuration Vs gdb response time !
Hi All, A brief explanation about my working environment:
- ARM11 based target board, having its own IP address
- My PC running on RedHat Linux-8.0, having its own IP address,
as host machine with only CLI and no GUI-XWindows
- BDI2000, having its own IP address
- PC and BDI2000 are connected to the network independently
- U-boot is already available on target board in the flash
memory
- Firmware is already available on BDI2000
- BDI2000 is connected to the target board through
- Using gdb-6.1 configured with --target=arm-linux
- Documents referring: README, DULG, bdiGDB maual
- I am not using ELDK as explained in DLUG
- About our network: I am not sure
I want to debug u-boot and also kernel with good response from gdb.
The
following are my doubts.
- I have TFTP server already configured on our network. But the
response time of gdb is too bad, while debugging. I will not come to know what is happening also.
So I thought I will make my PC only as TFTP server to get faster response from gdb. This idea is right / wrong ? If my idea is wrong, what could be the possible reason for gdb's slow response ... ? My PC has PIII processor and 128MB RAM. Do you suggest
to
increase RAM on my PC ? This anyway I planning to do. Does the
response
time of gdb depend on network speed also ?
- In gdbBDI manual, the explanation is given by directly connecting
the
target board to the host machine with Ethernet cable. Serial cable connection is only for initial configuration of BDI. But in my case, both the target board and my PC are connected separately to the
network.
Is it ok ?
- I started to make my PC itself as TFTP server. I followed DLUG
document for this purpose and I configured BDI accordingly as shown below:
[root@localhost BDISetUp]# ./bdisetup -c -p/dev/ttyS0 -b115 -i192.168.226.-h192.168.226.168 -m255.255.255.128 -g192.168.226.129 -fBDI-new.cfg Connecting to BDI loader Writing network configuration Configuration passed [root@localhost BDISetUp]# ./bdisetup -v -p/dev/ttyS0 -b115 -s BDI Type : BDI2000 Rev.C (SN: 95590442) Loader : V1.05 Firmware : V0.99 bdiGDB for ARM11 Logic : V1.06 ARM MAC : 00-0c-01-95-59-04 IP Addr : 192.168.226.159 Subnet : 255.255.255.128 Gateway : 192.168.226.129 Host IP : 192.168.226.168 Config : BDI-new.cfg
- Now I already have BDI-new.cfg file in my /tftpboot/ directory on
my
PC. I pinged BDI. Response is OK. Then I made 'telnet' to BDI. The following is the brief response.
VERIFY [<offset>] [<file> [<format>]] verify a program file to target memory PROG [<offset>] [<file> [<format>]] program flash memory <format> : SREC, BIN, AOUT, ELF or COFF ERASE [<address> [<mode>]] erase a flash memory sector, chip or
block
<mode> : CHIP, BLOCK or SECTOR (default is sector)
ERASE <addr> <step> <count> erase multiple flash sectors UNLOCK <addr> <step> <count> unlock multiple flash sectors FLASH <type> <size> <bus> change flash configuration FENA <addr> <size> enable autoamtic programming to flash memory FDIS disable autoamtic programming to flash memory DELAY <ms> delay for a number of milliseconds SELECT <core> change the current core len : the number of bits 1..256 bx : a data byte, two hex digits HOST <ip> change IP address of program file host PROMPT <string> defines a new prompt string CONFIG display or update BDI configuration CONFIG <file> [<hostIP> [<bdiIP> [<gateway> [<mask>]]]] HELP display command list QUIT terminate the Telnet session
# CONFIG: cannot open BDI-new.cfg # CONFIG: cannot open BDI-new.cfg Core#0>
Means, it is not getting my BDI-new.cfg file even though the file is
in
/tftpboot/ directory on my PC while my PC is working as TFTP server.
Why
it is BDI is not able to read BDI-new.cfg ?
Thank you, Ravi
This SF.net email is sponsored by: IT Product Guide on
ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give
us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more http://productguide.itmanagersjournal.com/guidepromo.tmpl _______________________________________________ U-Boot-Users mailing list U-Boot-Users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/u-boot-users