2009-05-05 08:00:28     Boot Via The UART

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

2009-05-05 08:00:28     Boot Via The UART

suresh kumar (INDIA)

Message: 73655   

 

HI

 

My board id bf537-EZLITE  0.3 silicon version

 

I am using uClinux-dist-2008R1.5-RC3 and toolchain also new 20008r1.5 version

 

I kept my boot (sw16) into 7 position

 

I pressed enough reset before going to start the u-boot through UART.

 

 

 

I done the following commands

 

[root@localhost ~]# bfin-uclinux-ldr -l /tftpboot/u-boot.ldr /dev/ttyS0 && minicom -l /dev/ttyS0 -b 57600 -C connect

Loading LDR /tftpboot/u-boot.ldr ... OK!

Opening /dev/ttyS0 ... OK!

Configuring terminal I/O ... OK!

Trying to send autobaud ... OK!

Trying to read autobaud ... bfin-uclinux-ldr: received signal 14: timeout while sending; aborting

[root@localhost ~]# bfin-uclinux-ldr -l /tftpboot/u-boot.ldr /dev/ttyS0 && minicom -l /dev/ttyS0 -b 57600 -C connect

Loading LDR /tftpboot/u-boot.ldr ... OK!

Removing stale lock '//var/lock/LCK..ttyS0'

Opening /dev/ttyS0 ... OK!

Configuring terminal I/O ... OK!

Trying to send autobaud ... OK!

Trying to read autobaud ... OK!

Checking autobaud ... OK!

Autobaud result: 115200bps 49.766mhz (header:0xBF DLL:0x1B DLH:0x00 fin:0x00)

Sending blocks of DXE 1 ... OK!       

You may want to run minicom or kermit now

Quick tip: run 'ldr <ldr> <tty> && minicom'

Type "minicom --help" for help.

 

 

 

When try to do this,i am getting error.

 

[root@localhost ~]# minicom -l /dev/ttyS0 -C connect

minicom: WARNING: configuration file not found, using defaults

Device /dev/modem access failed: No such file or directory.

 

What might be the problem

 

How to load the u-boot through UART...

 

 

 

 

 

Suresh

QuoteReplyEditDelete

 

 

2009-05-05 08:15:41     Re: Boot Via The UART

Mike Frysinger (UNITED STATES)

Message: 73656   

 

only loading at 115200 baud works with 2008R1.5 and older releases

QuoteReplyEditDelete

 

 

2009-05-06 04:56:00     Re: Boot Via The UART

suresh kumar (INDIA)

Message: 73741   

 

Hi Mike,

 

We stopped using Minicom and are now trying using Kermit as the terminal program. When we run the following command to download the u-boot LDR file and bring up the bfin prompt, here is what we get:

 

[root@localhost u-boot-1.1.6-2008R1.5]# bfin-uclinux-ldr -l u-boot.ldr /dev/ttyS0 && kermit -l /dev/ttyS0 -b 115200 -C connect

Loading LDR u-boot.ldr ... OK!

Removing stale lock '//var/lock/LCK..ttyS0'

Opening /dev/ttyS0 ... OK!

Configuring terminal I/O ... OK!

Trying to send autobaud ... OK!

Trying to read autobaud ... OK!

Checking autobaud ... OK!

Autobaud result: 115200bps 49.766mhz (header:0xBF DLL:0x1B DLH:0x00 fin:0x00)

Sending blocks of DXE 1 ... OK!       

You may want to run minicom or kermit now

Quick tip: run 'ldr <ldr> <tty> && minicom'

Connecting to /dev/ttyS0, speed 115200

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

Type the escape character followed by C to get back,

or followed by ? to see other options.

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

 

 

 

--

 

The output stops with the dotted line. Even when we quit kermit and restart kermit and give connect command, we do not see any prompt.

 

The u-boot source code version is u-boot-1.1.6-2008R1.5. The jumper settings for SW16 and SW4 are as per the BF537-STAMP board settings. We are using the BF537 EZ-KIT-Lite version 2.2, Silicon version 0.3.

 

The kermit config is as follows:

 

[root@localhost ~]# cat .kermrc

set line /dev/ttyS0

define sz !sz \%0 > /dev/ttyS0 < /dev/ttyS0

set speed 115200

set carrier-watch off

set prefixing all

set parity none

set stop-bits 1

set modem none

set file type bin

set file name lit

set flow-control none

set prompt "Linux Kermit> "

 

 

 

 

When we use the u-boot LDR from releases site, http://blackfin.uclinux.org/gf/download/frsrelease/395/4898/u-boot-bf537-stamp-uart-2008R1.5.ldr, we get the following output:

 

[root@localhost u-boot-1.1.6-2008R1.5]# bfin-uclinux-ldr -l /tftpboot/u-boot-bf537-stamp-uart-2008R1.5.ldr /dev/ttyS0 && kermit -l /dev/ttyS0 -b 115200 -C connect

Loading LDR /tftpboot/u-boot-bf537-stamp-uart-2008R1.5.ldr ... OK!

Opening /dev/ttyS0 ... OK!

Configuring terminal I/O ... OK!

Trying to send autobaud ... OK!

Trying to read autobaud ... OK!

Checking autobaud ... OK!

Autobaud result: 115200bps 49.766mhz (header:0xBF DLL:0x1B DLH:0x00 fin:0x00)

Sending blocks of DXE 1 ... [8/8] (100%)[board said: 怘�怘�]

[board said: ff� �����`]

[board said:  ]

[board said: �� �  �x�����~

[board said:  x~]

[board said: �x]

[board said: ����     �f �f��  ���f �]

[board said: ��怘�  ff]

[board said: �~]

[board said: f ]

[board said: ��xf�x~�]

[board said: �  �   �`fx`fx]

[board said:   ~f x]

[board said: �fxx�~]

[board said: � ��� �� ]

[board said: �� �� x� ]

[board said: �]

[board said: ��f~]

[board said: �  �` ~]

[board said: �~����  ]

[board said: � �����x������f

[board said: � �����f ]

[board said: ���� �x�]

[board said: �怘�  �]

[board said: �� ���~]

[board said: 昘 ��   ]

[board said: �  �� �]

[board said: ���� fx� ]

[board said: ��   �  ]

[board said: �� �]

[board said: �� ~ff�� ]

[board said: ��   �  ]

[board said: ��f��� f]

[board said: ��   8 `]

[board said:  � ��f���x]

[board said:  � �� �� ]

[board said:

[board said: � ��f���]

[board said: �����    ��fx f�  �怘���f ~]

[board said: �   ��fx f]

[board said: �  �怘�f]

[board said: ���

[board said: ��fx f�  ]

[board said: �怘�]

[board said: ��f ~�   ]

[board said: �  � ��

[board said: ��x��

[board said: 怘��� 怆~]

[board said: �x����

[board said:

OK!

You may want to run minicom or kermit now

Quick tip: run 'ldr <ldr> <tty> && minicom'

Connecting to /dev/ttyS0, speed 115200

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

Type the escape character followed by C to get back,

or followed by ? to see other options.

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

 

 

 

Please tell us if we are missing something here.

 

Thanks,

 

Suresh

QuoteReplyEditDelete

 

 

2009-05-06 05:59:32     Re: Boot Via The UART

Mike Frysinger (UNITED STATES)

Message: 73745   

 

you cant load any old LDR over the UART.  the u-boot must be configured for UART booting.

QuoteReplyEditDelete

 

 

2009-05-28 08:01:47     Re: Boot Via The UART

suresh kumar (INDIA)

Message: 74706   

 

Thanks mike,

 

Actually i try with minicom.In minicom UART booting not able to boot.in kermit it will do.

 

 

 

 

 

I changed the settings as you told

 

 

 

*** Flash related changes ***

 

 

 

include/configs/bf537-stamp.h

 

 

 

Bootmode changed from By-pass mode to UART mode

 

> //#define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_BYPASS

 

> #define CONFIG_BFIN_BOOT_MODE BFIN_BOOT_UART

 

 

 

Set the SW16 to position 7

 

 

 

Copy the binary 'wermit' as 'kermit' to '/usr/local/bin' or any other system path ($PATH variable)

 

 

 

Create a kermit configuration file, .kermitrc

 

 

 

 

 

 

 

 

 

$ bfin-uclinux-ldr -l u-boot.ldr /dev/ttyS0 && kermit -l /dev/ttyS0 -b 57600 -C connect

 

 

 

 

 

 

 

Now its working fine.....................

Attachments

    Outcomes