[#6389] u-boot will automatically boot image after run tftpboot command to download image

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

[#6389] u-boot will automatically boot image after run tftpboot command to download image

Submitted By: Vivi Li

Open Date

2010-11-30 23:12:49     Close Date

2011-05-11 13:37:18

Priority:

Medium     Assignee:

Vivi Li

Category:

N/A     Fixed In Release:

N/A

Found In Release:

2011R1     Status:

Closed

Board:

N/A     Processor:

BF537

Silicon Revision:

    Resolution:

Fixed

Is the bug repeatable?:

N/A     

Summary: u-boot will automatically boot image after run tftpboot command to download image

Details:

 

In latest u-boot trunk, when run tftpboot command to download image, it will automatically boot image after download.

It happens on all platforms.

Last passed version is 2010.09-svn2492. First failed version is 2010.09-svn2513.

 

Bellow is the log:

--

U-Boot 2010.09-svn2513 (ADI-2011R1-pre) (Dec 01 2010 - 07:46:50)

 

CPU:   ADSP bf561-0.3 (Detected Rev: 0.5) (bypass boot)

Board: ADI BF561 EZ-Kit Lite board

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

Clock: VCO: 390 MHz, Core: 195 MHz, System: 97.500 MHz

RAM:   64 MiB

Flash: 8 MiB

In:    serial

Out:   serial

Err:   serial

KGDB:  [on serial] ready

Net:   SMC91111-0

Hit any key to stop autoboot:  0

bfin> printenv

bootargs=root=/dev/mtdblock0 rw clkin_hz=30000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600

baudrate=57600

loads_echo=1

autoload=no

rootpath=/romfs

netmask=255.255.255.0

hostname=bf561-ezkit

loadaddr=0x1000000

ubootfile=u-boot.bin

update=tftp $(loadaddr) $(ubootfile);protect off 0x20000000 +$(filesize);erase 0x20000000 +$(filesize);cp.b $(loadaddr) 0x200000)

addip=set bootargs $(bootargs) ip=$(ipaddr):$(serverip):$(gatewayip):$(netmask):$(hostname):eth0:off

ramfile=uImage

ramargs=set bootargs root=/dev/mtdblock0 rw clkin_hz=30000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600

ramboot=tftp $(loadaddr) $(ramfile);run ramargs;run addip;bootm

nfsfile=vmImage

nfsargs=set bootargs root=/dev/nfs rw nfsroot=$(serverip):$(rootpath),tcp,nfsvers=3

nfsboot=tftp $(loadaddr) $(nfsfile);run nfsargs;run addip;bootm

flashboot=bootm 0x20100000

ethact=SMC91111-0

ipaddr=10.100.4.50

serverip=10.100.4.174

gatewayip=10.100.4.174

ethaddr=00:E0:22:FE:BA:29

bootcmd=bootm

tftp_boot=tftp 0x1000000 linux.dxe;boote 0x1000000

bootdelay=9

date_tested=Wed Dec 1 10:17:55 GMT 2010

stdin=serial

stdout=serial

stderr=serial

 

Environment size: 1135/8188 bytes

bfin> tftpboot 0x1000000 u-boot.bin

SMC91111: MAC 00:e0:22:fe:ba:29

Using SMC91111-0 device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'u-boot.bin'.

Load address: 0x1000000

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

done

Bytes transferred = 158636 (26bac hex)

Automatic boot of image at addr 0x01000000 ...

Wrong Image Format for tftpboot command

ERROR: can't get kernel image!

bfin>

bfin> tftpboot 0x1000000 uImage-beta

SMC91111: MAC 00:e0:22:fe:ba:29

Using SMC91111-0 device

TFTP from server 10.100.4.174; our IP address is 10.100.4.50

Filename 'uImage-beta'.

Load address: 0x1000000

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

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

done

Bytes transferred = 1862065 (1c69b1 hex)

Automatic boot of image at addr 0x01000000 ...

## Booting kernel from Legacy Image at 01000000 ...

   Image Name:   bf561-2.6.34.7-ADI-2010R1-svn929

   Image Type:   Blackfin Linux Kernel Image (gzip compressed)

   Data Size:    1862001 Bytes = 1.8 MiB

   Load Address: 00001000

   Entry Point:  001744fc

   Verifying Checksum ... OK

   Uncompressing Kernel Image ... OK

Starting Kernel at = 001744fc

Linux version 2.6.34.7-ADI-2010R1-svn9290 (test@uclinux66-561ezkit) (gcc version 4.3.5 (ADI-2010R1-RC4) ) #116 Thu Oct 28 02:27:0

register early platform devices

bootconsole [early_shadow0] enabled

bootconsole [early_BFuart0] enabled

early printk enabled on early_BFuart0

Board Memory: 64MB

Kernel Managed Memory: 64MB

Memory map:

  fixedcode = 0x00000400-0x00000490

  text      = 0x00001000-0x000f76a0

  rodata    = 0x000f76a0-0x00148554

  bss       = 0x00149000-0x00159520

  data      = 0x00159520-0x0016a000

    stack   = 0x00168000-0x0016a000

  init      = 0x0016a000-0x00377000

  available = 0x00377000-0x03f00000

  DMA Zone  = 0x03f00000-0x04000000

Hardware Trace Active and Enabled

Boot Mode: 0

Reset caused by Software reset

Blackfin support (C) 2004-2010 Analog Devices, Inc.

Compiled for ADSP-BF561 Rev 0.5

Blackfin Linux support by http://blackfin.uclinux.org/

Processor Speed: 195 MHz core clock and 97 MHz System Clock

NOMPU: setting up cplb tables

Instruction Cache Enabled for CPU0

  External memory: cacheable in instruction cache

  L2 SRAM        : uncacheable in instruction cache

Data Cache Enabled for CPU0

  External memory: cacheable (write-back) in data cache

  L2 SRAM        : cacheable (write-through) in data cache

Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 16002

Kernel command line: root=/dev/mtdblock0 rw clkin_hz=30000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600

PID hash table entries: 256 (order: -2, 1024 bytes)

Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)

Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)

Memory available: 60396k/65536k RAM, (2100k init code, 985k kernel code, 459k data, 1024k dma, 572k reserved)

Hierarchical RCU implementation.

NR_IRQS:153

Configuring Blackfin Priority Driven Interrupts

console [ttyBF0] enabled, bootconsole disabled

console [ttyBF0] enabled, bootconsole disabled

Calibrating delay loop... 386.04 BogoMIPS (lpj=772096)

Mount-cache hash table entries: 512

Blackfin Scratchpad data SRAM: 4 KB

Blackfin L1 Data A SRAM: 16 KB (16 KB free)

Blackfin L1 Data B SRAM: 16 KB (16 KB free)

Blackfin L1 Instruction SRAM: 16 KB (4 KB free)

Blackfin L2 SRAM: 128 KB (128 KB free)

NET: Registered protocol family 16

Blackfin DMA Controller

ezkit_init(): registering device resources

bio: create slab <bio-0> at 0

Switching to clocksource bfin_cs_cycles

NET: Registered protocol family 2

IP route cache hash table entries: 1024 (order: 0, 4096 bytes)

TCP established hash table entries: 2048 (order: 2, 16384 bytes)

TCP bind hash table entries: 2048 (order: 1, 8192 bytes)

TCP: Hash tables configured (established 2048 bind 2048)

TCP reno registered

UDP hash table entries: 256 (order: 0, 4096 bytes)

UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)

NET: Registered protocol family 1

msgmni has been set to 117

io scheduler noop registered (default)

bfin-uart: Blackfin serial driver

bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 35) is a BFIN-UART

brd: module loaded

smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre <nico@fluxnic.net>

eth0: SMC91C11xFD (rev 2) at 2c010300 IRQ 82 [nowait]

eth0: Ethernet addr: 00:e0:22:fe:ba:29

TCP cubic registered

NET: Registered protocol family 17

dma_alloc_init: dma_page @ 0x02397000 - 256 pages at 0x03f00000

Freeing unused kernel memory: 2100k freed

                           _____________________________________

        a8888b.           / Welcome to the uClinux distribution \

       d888888b.         /       _     _                         \

       8P"YP"Y88        /       | |   |_|            __  __ (TM)  |

       8|o||o|88  _____/        | |    _ ____  _   _ \ \/ /       |

       8'    .88       \        | |   | |  _ \| | | | \  /        |

       8`._.' Y8.       \       | |__ | | | | | |_| | /  \        |

      d/      `8b.       \      \____||_|_| |_|\____|/_/\_\       |

     dP   .    Y8b.       \   For embedded processors including   |

    d8:'  "  `::88b        \    the Analog Devices Blackfin      /

   d8"         'Y88b        \___________________________________/

  :8P    '      :888

   8a.   :     _a88P         For further information, check out:

._/"Yaa_:   .| 88P|            - http://blackfin.uclinux.org/

\    YP"    `| 8P  `.          - http://docs.blackfin.uclinux.org/

/     \.___.d|    .'           - http://www.uclinux.org/

`--..__)8888P`._.'  jgs/a:f    - http://www.analog.com/blackfin

 

Have a lot of fun...

 

 

BusyBox v1.16.2 (2010-10-28 02:26:09 GMT) hush - the humble shell

 

root:/>

--

 

Follow-ups

 

--- Mike Frysinger                                           2010-12-01 07:06:27

due to rev2505 (boot cmds: convert to getenv_yesno() with autostart)

 

--- Vivi Li                                                  2010-12-01 21:34:15

Eh, I see. So after I added an environment variable autostart as "no",

it finally ceased auto booting.

 

--- Vivi Li                                                  2010-12-15 01:24:33

Add autostart in include/configs/bfin_adi_common.h.

 

--- Mike Frysinger                                           2010-12-15 19:22:04

yeah, no, that's not how we want to go.  we talked upstream about it and decided

to simply drop the patch for now.  i'll do the same in our tree and revert this

env change too.

 

 

 

    Files

    Changes

    Commits

    Dependencies

    Duplicates

    Associations

    Tags

 

File Name     File Type     File Size     Posted By

No Files Were Found

Attachments

    Outcomes