From: Ira Snyder Date: Wed, 27 Aug 2008 16:28:07 -0700 Subject: [U-Boot] BUG: hang with an empty flash (due to recent bootm changes) bisected In-Reply-To: <20080827230417.30FB1248BF@gemini.denx.de> References: <20080827214923.GA10692@ovro.caltech.edu> <665AA317-62B9-46BC-BD09-1C39DAB4C559@kernel.crashing.org> <20080827225557.GB10692@ovro.caltech.edu> <20080827230417.30FB1248BF@gemini.denx.de> Message-ID: <20080827232807.GC10692@ovro.caltech.edu> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thu, Aug 28, 2008 at 01:04:17AM +0200, Wolfgang Denk wrote: > Dear Ira Snyder, > > In message <20080827225557.GB10692@ovro.caltech.edu> you wrote: > > > > => printenv bootcmd > > bootcmd=run flash_self > > => printenv flash_self > > flash_self=run ramargs addip addtty;bootm ${kernel_addr} ${ramdisk_addr} > > => printenv ramargs addip addtty kernel_addr ramdisk_addr > > ramargs=setenv bootargs root=/dev/ram rw > > addip=setenv bootargs ${bootargs} > > ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${netdev}:off panic=1 > > addtty=setenv bootargs ${bootargs} console=ttyS0,${baudrate} > > ## Error: "kernel_addr" not defined > > ## Error: "ramdisk_addr" not defined > > Ummm... with both "kernel_addr" and "ramdisk_addr" not defined, your > boot command looks like this: > > run ramargs addip addtty;bootm > > i.e. U-Boot tries to locate an image at the default addreess (in > RAM), which probably contains random data. Random input => random > behaviour ? That makes sense, of course. However, it seems pretty unfriendly that a board with a blank flash (other than the bootloader) will lock up if you don't press a key in time. The old behavior was much nicer, in my opinion. At least I could reset the board and then walk away, rather than run to my desktop and press a key on the serial port. I'm sure there's plenty of other people who just boot over the network, rather than flashing images all the time. Maybe the default bootcmd should be something like: echo 'No boot command selected' Lets see what Kumar has to say. Ira