bootp via autoload fails to boot uImage by giving Bad image type

Bug #820121 reported by mahmoh
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
u-boot-linaro (Ubuntu)
Fix Released
Low
John Rigby

Bug Description

Note: this may be an artifact of bug # 820113 where uInitrd fails to load after uImage, please confirm

Build Version/Date: u-boot-linaro-omap4-panda_2011.07.2-0ubuntu1_armel.deb
Environment used for testing: pandaboard A2

Summary: bootp via autoload fails to load uInitrd and continues on to fail with Bad image type

Steps to Reproduce: boot with no boot.scr, no uEnv.txt, and no uImage

Expected result: u-boot loads uImage and uInitrd via bootp and boots

Actual result: u-boot loads uImage and fails to boot with "Bad image type" message

<START: no boot.scr, no uEnv.txt, and no uImage on SD>
...
Hit any key to stop autoboot: 0
reading boot.scr

** Unable to read "boot.scr" from mmc 0:1 **
reading uEnv.txt

** Unable to read "uEnv.txt" from mmc 0:1 **
reading uImage

** Unable to read "uImage" from mmc 0:1 **
(Re)start USB...
USB: Register 1313 NbrPorts 3
USB EHCI 1.00
scanning bus for devices... The request port(2) is not configured
The request port(2) is not configured
4 USB Device(s) found
       scanning bus for storage devices... 1 Storage Device(s) found
       scanning bus for ethernet devices... 1 Ethernet Device(s) found
Waiting for Ethernet connection... done.
BOOTP broadcast 1
BOOTP broadcast 2
DHCP client bound to address 10.193.37.18
Using sms0 device
TFTP from server 10.193.37.1; our IP address is 10.193.37.18
Filename 'uImage'.
Load address: 0x82000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #########################
done
Bytes transferred = 4174740 (3fb394 hex)
## Executing script at 82000000
Bad image type
Panda #
<END>

Related branches

Changed in u-boot-linaro (Ubuntu):
assignee: nobody → John Rigby (jcrigby)
Revision history for this message
Ricardo Salveti (rsalveti) wrote :

Not to load uInitrd is expected as it's the default boot script at u-boot.

The only weird thing here is the "Bad image type", probably because u-boot is calling ""source ${loadaddr};" instead of bootm or similar.

Changed in u-boot-linaro (Ubuntu):
status: New → Confirmed
importance: Undecided → Low
summary: - bootp via autoload fails to load uInitrd and continues on to fail with
- Bad image type
+ bootp via autoload fails to boot uImage by giving Bad image type
Revision history for this message
John Rigby (jcrigby) wrote :

Changed the default boot command to fallback to pxe:

if usb start; then
    set autoload no;
    bootp;
    pxe get;
    pxe boot;
fi

To get this behavior none of these files can be on the fat partition: boot.scr, uEnv.txt, uImage.

Revision history for this message
Loïc Minier (lool) wrote : Re: [Bug 820121] Re: bootp via autoload fails to boot uImage by giving Bad image type

On Mon, Aug 15, 2011, John Rigby wrote:
> pxe get;
> pxe boot;

 Isn't it "pxecfg get" and "pxecfg boot"?

--
Loïc Minier

John Rigby (jcrigby)
Changed in u-boot-linaro (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.