This is the mail archive of the mailing list for the eCos project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: running test cases

On Sat, Apr 04, 2009 at 09:11:06AM -0700, grahamlab wrote:
> Hi everyone
> I can see the redboot monitor in minicom running in my virtual box but I
> still cannot get gdb working - I get the same results
> What else can I try?
> Graham
To see the prompt is good news, but, that's not enough. You have to
answer on 2 questions: 1st) Can you upload a file with RedBoot using X/Y
modem protocol? and 2nd) Is RedBoot built with GDB support?

First, let's check a upload ability. I assume that your RedBoot supports
X/Y modem protocols.

Create a test image, just ten Kb of random data.

$ dd if=/dev/urandom of=image count=20
20+0 records in
20+0 records out
10240 bytes (10 kB) copied, 0.00334058 s, 3.1 MB/s

$ cksum image
3833649115 10240 image

We have got the test binary file in 10K and we knew its CRC check sum.

Run minicom: `minicom -o', reset the board.

RedBoot> help load
Load a file
   load [-r] [-v] [-d] [-h <host>] [-p <TCP port>][-m <varies>] [-c <channel_number>] [-b <base_address>] <file_name>

Enter a command

RedBoot> load -r -m ymodem -b %{freememlo}

Here press ^A-s, choose `ymodem', specify a path to that image and start
the loading. On a success, you must to see something like the below

CRaw file loaded 0x8100b800-0x8100dfff, assumed entry at 0x8100b800            
xyzModem - CRC mode, 83(SOH)/0(STX)/0(CAN) packets, 3 retries                  

Then using the RedBoot's cksum command check the uploaded image:

RedBoot> cksum
Computing cksum for area 8100b800-8100e000
POSIX cksum = 3833649115 10240 (0xe480d7db 0x00002800)

As you can see the CRCs are equals. Can you reproduce this on your
target? If you can, then we will try to answer on the second question.


> Sergei Gavrikov-4 wrote:
> > 
> > grahamlab wrote:
> >> Hello again
> >> I am running Umbunto on a pc through  VM Virtual box and targetting
> >> the STM3120E dev board.
> >> I have successfuly built and downloaded RedBoot using St's demo flash
> >> loader. I have verified that this is running by connecting
> >> hyperterminal to the dev board and seeing the RedBoot gdb prompt.
> >> 
> >> I have then performed a default build of eCos for the dev board and
> >> then try to run gdb from the command line in the virtual machine.
> >> 
> >> The command used to invoke gdb was 
> >> arm-eabi-gdb -nw DevBoard_install/tests/kernel/v3_0/tests/bin_sem0
> >> 
> >> at the gdb prompt I type 
> >> set remotebaud 38400
> >> target remote /dev/ttyS0
> >> and get the output below
> > 
> > As I could understand you run GDB on VirtualBox, because your host OS !=
> > Linux. What's about the serial port settings? Be sure that there is not
> > set any flow control for the serial port. Use 'mode' command on the host
> > side and 'stty' on the guest side to check it. Can you download the same
> > executable in the RAM using X/Y/Z modem? Any virtual port is a something
> > different from the real one. First, be sure that you can upload a few
> > tens kilobytes on the target via virtual serial port, and then you can
> > dance with GDB. So, try RedBoot's `load' command and the HyperTerm's
> > `send file' ability to check a communication with the real serial port.
> > Then you can use the guest's `minicom' program to check that the virtual
> > serial port works as expected too. If you'll get the result, then try
> > GDB on the guest again.
> > 
> > 
> > Sergei
> > 
> > -- 
> > Before posting, please read the FAQ:
> > and search the list archive:
> > 
> > 
> > 
> -- 
> View this message in context:
> Sent from the Sourceware - ecos-discuss mailing list archive at
> -- 
> Before posting, please read the FAQ:
> and search the list archive:

Before posting, please read the FAQ:
and search the list archive:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]