2008-08-18 13:59:46     Reboot Unreliable

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

2008-08-18 13:59:46     Reboot Unreliable

Ben Burleson (UNITED STATES)

Message: 60581   

 

Hi All,

 

I'm unable to relaibly reboot my device from the command line.  I've attached my linux-2.6.x/.config file.  The device is net booting, uboot tftp's the uClinux image.  It always starts with a hard power cycle and sometimes comes back after issuing the reboot command at the command line.  But most of the time, when reboot is issued, the telnet session is terminated and then I am unable to telnet in again until power is cycled.

 

$ telnet 172.16.4.231

Trying 172.16.4.231...

telnet: connect to address 172.16.4.231: Connection timed out

 

 

I saw something about the blackfin-specific reset, but how can I tell if this is being invoked on my device?

 

Thanks,

 

Ben

 

config

QuoteReplyEditDelete

 

 

2008-08-18 14:30:21     Re: Reboot Unreliable

Ben Burleson (UNITED STATES)

Message: 60587   

 

I can add that it seems to reboot more often when I am NOT changing the uClinux image served to the device.  I.E. It almost never reboots from the command line when I'm deploying a new uClinux image for the device.  Not sure if that helps or makes any sense.

QuoteReplyEditDelete

 

 

2008-08-18 14:39:45     Re: Reboot Unreliable

Robin Getz (UNITED STATES)

Message: 60592   

 

Ben:

 

What version of kernel/U-Boot are you using?

 

-Robin

QuoteReplyEditDelete

 

 

2008-08-18 16:26:01     Re: Reboot Unreliable

Ben Burleson (UNITED STATES)

Message: 60598   

 

The kernel is based on 2008R1

 

root:/> uname -a

Linux 4ag-01 2.6.24.7-ADI-2008R2-pre-svn6568 #40 Mon Aug 18 16:32:35 UTC 2008 blackfin unknown

 

And here is the uboot output:

 

U-Boot 1.1.6-svn6678 (ADI-2008R1) (Aug 14 2008 - 21:48:22)                 

                                                                           

CPU:   ADSP bf537-0.2 (Detected Rev: 0.2)                                  

Board: ADI BF537 LCO board            

       Support: http://blackfin.uclinux.org/

Clock: VCO: 500 MHz, Core: 500 MHz, System: 100 MHz

RAM:   32 MB                          

Flash:  4 MB                          

*** Warning - bad CRC, using default environment

 

Warning: Generating 'random' MAC address

In:    serial

Out:   serial                                                                 

Err:   serial                                                                 

Flash protect error at address 203e0000                                       

Command Sequence Error.                                                       

Block locked.                                                                 

Vpp Low Error.                                                                

Net:   Blackfin EMAC                                                          

MAC:   AE:79:7B:0C:0D:78                                                      

I2C:   ready                                                                  

Hit any key to stop autoboot:  0                                              

Using Blackfin EMAC device                                                    

TFTP from server 172.16.5.21; our IP address is 172.16.4.231; sending through g4

Filename 'uImage-4ag-01'.                                                     

Load address: 0x1000000                                                       

Loading: #################################################################    

         #################################################################    

         #################################################################    

         #################################################################    

         #################################################################    

         #################################################################    

         #################################################################    

         #################################################################    

         #################################################################    

         #################################################################    

         #################################################################    

         #################################################################    

         ##                                                                   

done                                                                          

Bytes transferred = 4000413 (3d0a9d hex)                                      

## Booting image at 01000000 ...                                              

   Image Name:   uClinux Kernel and ext2                                      

   Created:      2008-08-18  18:52:37 UTC                                     

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)                

   Data Size:    4000349 Bytes =  3.8 MB                                      

   Load Address: 00001000                                                     

   Entry Point:  0015e000                                                     

   Verifying Checksum ... OK                                                  

   Uncompressing Kernel Image ... OK                                          

Starting Kernel at = 15e000

QuoteReplyEditDelete

 

 

2008-08-18 19:19:02     Re: Reboot Unreliable

Mike Frysinger (UNITED STATES)

Message: 60601   

 

is that u-boot/kernel output an example of the kernel failing too boot ?  or is that just a snippet to show versions ?

 

debugging it as "i cant telnet in" is too high level to try and find the problem ... stick to the output from the serial console

QuoteReplyEditDelete

 

 

2008-08-19 00:57:35     Re: Reboot Unreliable

Ben Burleson (UNITED STATES)

Message: 60626   

 

Sorry, that was just to show uboot version.  I can enable uClinux over UART and try to reproduce the problem with a full kernel output tomorrow.

QuoteReplyEditDelete

 

 

2008-08-19 17:09:19     Re: Reboot Unreliable

Ben Burleson (UNITED STATES)

Message: 60682   

 

Of course, I'm unable to reproduce the problem after bringing the device to my desk to monitor the full kernel boot output.  It reboots reliably many times.  So I took the device back into our electronics lab and monitored the boot on a computer in there.  I found that sometimes u-boot was unable to download the full uClinux image from our TFTP server.  When u-boot gets to this stage:

 

Using Blackfin EMAC device

TFTP from server 172.16.5.21; our IP address is 172.16.4.231; sending through g4

Filename 'uImage-4ag-01'.

Load address: 0x1000000

Loading:

 

the download sometimes hangs after a few #### then prints a 'T' (which I assume means transfer time out) and a mixture of those characters until it gives up because of too many timeouts.  From there, u-boot retries with the same Loading behavior and never succeeds UNTIL either power is cycled or the board reset button is pressed.  At this point, it usually succeedes in downloading and booting the image.  This behavior is fairly consistent in the lab.  Again, I cannot reproduce at my desk.

 

This makes me think it is some type of network incompatibility issue here.  Possibly something to do with u-boot, but most likely nothing to do with uClinux.

 

However, I'm still curious if I can verify the proper Blackfin reset is being performed when I reboot from the command prompt.

 

Also, has anyone experienced anything like this?  I'm attempting to resolve with IT the difference "behind the wall socket" between my desk and the lab.  Unfortunately, that doesn't move very quickly!

 

Thanks,

 

Ben

QuoteReplyEditDelete

 

 

2008-08-19 17:18:18     Re: Reboot Unreliable

Mike Frysinger (UNITED STATES)

Message: 60684   

 

the MAC driver in u-boot is sensitive to noise ... so if traffic is heavy on your network, you'll probably see problems like this

QuoteReplyEditDelete

 

 

2008-08-19 17:47:37     Re: Reboot Unreliable

Ben Burleson (UNITED STATES)

Message: 60688   

 

Thanks for the info Mike.  Could be a noise issue.  What's odd is that u-boot can definitely get into a bad state that is quickly fixed by a board reset or power cycle.  I think I would be OK if u-boot was able to recover from a bad TFTP download.  I'll move this question to the u-boot forum, but is this a known issue that u-boot continuously fails to comlpete the TFTP download if it fails once?

QuoteReplyEditDelete

 

 

2008-08-19 17:55:23     Re: Reboot Unreliable

Mike Frysinger (UNITED STATES)

Message: 60689   

 

it's a known issue that it's a bit prickly

Attachments

Outcomes