2008-09-30 04:40:28     UART downloding

Document created by Aaronwu Employee on Aug 8, 2013
Version 1Show Document
  • View in full screen mode

2008-09-30 04:40:28     UART downloding

vijai ragavan (INDIA)

Message: 62914   

 

hai,

 

in my board there is no ethernet connection.so please suggest how to download the uimage via UART.

QuoteReplyEditDelete

 

 

2008-09-30 04:45:28     Re: UART downloding

Michael Hennerich (GERMANY)

Message: 62915   

 

Read the documentation:

 

http://docs.blackfin.uclinux.org/doku.php?id=bootloaders:u-boot:serial_port_loading_files

 

-Michael

QuoteReplyEditDelete

 

 

2008-10-04 03:36:10     Re: UART downloding

vijai ragavan (INDIA)

Message: 63100   

 

Hi,

 

i proceed the following steps, but nothing get downloded in the location.

 

1.open the kermit software in the window(pc).

 

2.Reset the board

 

3.the following get displayed on the kermit window

 

U-Boot 1.1.6-svn (ADI-2007R1) (Sep  1 2008 - 16:01:03)

 

CPU:   ADSP BF561

Board: PMP04

Clock: VCO: 486 MHz, Core: 486 MHz, System: 121 MHz

SDRAM: 64 MB

FLASH:   0 kB

*** Warning - bad CRC, using default environment

 

In:    serial

Out:   serial

Err:   serial

Hit any key to stop autoboot:  0

pmp04>

 

4.i edit the loadb 0x20100000 in the prompt like this

 

pmp04>loadb 0x20100000

 

5.after i see the following in the kermit

 

## Ready for binary (kermit) download to 0x20100000 at 9600 bps...

 

6.now i opened the putty , and edit kermit like this

 

mdtv:/ # kermit

 

7. i see the following in linux

 

 

C-Kermit 8.0.211, 10 Apr 2004, for Linux

Copyright (C) 1985, 2004,

  Trustees of Columbia University in the City of New York.

Type ? or HELP for help.

(/) C-Kermit>

 

8.i edit the "send home/raghavan/PMP04_2006/uClinux-dist/images/uImage" in the prompt like this

 

(/) C-Kermit>send home/raghavan/PMP04_2006/uClinux-dist/images/uImage

 

 

9.i see the following in linux

 

Return to your local Kermit and give a RECEIVE command.

 

KERMIT READY TO SEND...

SENT: (0 files)

 

*************************

SEND-class command failed.

Packets sent: 2

Retransmissions: 11

Timeouts: 12

Damaged packets: 0

Fatal Kermit Protocol Error: Too many retries

 

HINTS... If the preceding error message does not explain the failure:

. Adjust the timeout method (see HELP SET SEND).

. Increase the retry limit (see HELP SET RETRY).

. Try it again with SET STREAMING OFF.

. Try it again with SET PARITY SPACE.

. As a last resort, give a ROBUST command and try again.

Also:

. Be sure the source file has read permission.

. Be sure the target directory has write permission.

(Use SET HINTS OFF to suppress hints.)

 

 

10.next i edit the SET CARRIER-WATCH OFF like this

 

 

(/) C-Kermit>SET CARRIER-WATCH OFF

 

 

11.finally i edit the connect command in the prompt

 

(/) C-Kermit>connect

 

12.i see the following in the linux window

 

 

Connecting to /dev/ttyS0, speed 9600

Escape character: Ctrl-\ (ASCII 28, FS): enabled

Type the escape character followed by C to get back,

or followed by ? to see other options.

----------------------------------------------------

 

so please give your feedback on this

 

 

QuoteReplyEditDelete

 

 

2008-10-04 03:46:57     Re: UART downloding

Mike Frysinger (UNITED STATES)

Message: 63101   

 

you cant load directly to flash.  you need to load to a memory location and then copy to flash.

 

you also cant run simultaneous kermit's.

 

you probably need to review your kermit settings in the first place:

http://docs.blackfin.uclinux.org/doku.php?id=terminal_programs

QuoteReplyEditDelete

 

 

2008-10-10 09:03:57     Re: UART downloding

vijai ragavan (INDIA)

Message: 63411   

 

1.first i type the kermit command like this

 

   mdtv:/ # kermit

   C-Kermit 8.0.211, 10 Apr 2004, for Linux

   Copyright (C) 1985, 2004,

   Trustees of Columbia University in the City of New York.

   Type ? or HELP for help.

 

 

2.next i set the path for file like this

 

   (/) C-Kermit>send /home/raghavan/PMP04_2006/uClinux-dist/images/uImage

 

3.In the teraterm window i give lodeb command like this

 

  PMP04>loadb 0x1200000

 

4.now i get the following display

 

  C-Kermit 8.0.211, 10 Apr 2004, mdtv.site [172.16.6.71]

 

   Current Directory: /root

   Communication Device: /dev/ttyS0

   Communication Speed: 9600

              Parity: none

         RTT/Timeout: 08 / 08

 

           File Type:

           File Size:

        Bytes So Far:

                          ...10...20...30...40...50...60...70...80...90..100

    Estimated Time Left: (unknown)

  Transfer Rate, CPS: 0

        Window Slots: 1 of 1

         Packet Type: %

        Packet Count: 1

       Packet Length: 28

         Error Count: 12

          Last Error: (resend)

        Last Message:

 

   X to cancel file, Z to cancel group, <CR> to resend last packet,

    E to send Error packet, ^C to quit immediately, ^L to refresh screen.

 

 

why it shows the error?

 

 

 

 

QuoteReplyEditDelete

 

 

2008-10-10 10:40:49     Re: UART downloding

Robin Getz (UNITED STATES)

Message: 63423   

 

Did you set your .kermrc properly? as documented in

 

https://docs.blackfin.uclinux.org/doku.php?id=terminal_programs#kermit

 

-Robin

QuoteReplyEditDelete

 

 

2008-10-10 11:45:02     Re: UART downloding

Mike Frysinger (UNITED STATES)

Message: 63428   

 

why are you talking about teraterm and kermit at the same time ?  sounds like you're just running random programs without actually setting up your systems.

QuoteReplyEditDelete

 

 

2008-10-13 02:09:15     Re: UART downloding

vijai ragavan (INDIA)

Message: 63512   

 

In the document they mentioned , we have to give the loadb command.where can we give the command ?

QuoteReplyEditDelete

 

 

2008-10-13 02:21:15     Re: UART downloding

Mike Frysinger (UNITED STATES)

Message: 63513   

 

there is only one UART on the board.  there can only be 1 serial terminal hooked up to it.

QuoteReplyEditDelete

 

 

2008-10-15 04:47:00     Re: UART downloding

vijai ragavan (INDIA)

Message: 63711   

 

i found the following details from the document "bootloadersu-bootserial_port_loading_files [Blackfin Linux Docs].htm"

 

# Loading with the kermit protocol

bfin> loadb [load address] [baud rate]

 

i canot find the bfin prompt in uClinux environment.

QuoteReplyEditDelete

 

 

2008-10-15 21:23:39     Re: UART downloding

Mike Frysinger (UNITED STATES)

Message: 63734   

 

there is no "bfin>" prompt in Linux.  you're reading a document about u-boot which means it is about u-boot, not Linux.

QuoteReplyEditDelete

 

 

2008-10-16 02:31:54     Re: UART downloding

vijai ragavan (INDIA)

Message: 63751   

 

ok, then where we have to give the receive command

QuoteReplyEditDelete

Attachments

    Outcomes