Image shell command not supported

Bug #1313620 reported by Ryan Harkin
14
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro UEFI
Invalid
Medium
Unassigned

Bug Description

When UEFI runs, it attempts to autorun the "startup.nsh" script. This script contains the command "Image <params>".

However, "Image" is not a valid UEFI shell command, so it an error is reported, thus:

"Error reported: Unsupported"

Revision history for this message
Leif Lindholm (leif-lindholm) wrote :

Is this script actually contained within the UEFI image?

If not, this bug should be raised against whatever generated filesystem is being used.

Revision history for this message
Ryan Harkin (ryanharkin) wrote :

The script comes from the filesystem, yes.

It is reading the file in the boot partition, EFI/BOOT/startup.nsh. This file gets copied into boot when linaro-media-create is run. It either comes from the rootfs or more likely from the "uefi-image-startup-nsh" package, I'm not sure of the mechanism.

Revision history for this message
Ryan Harkin (ryanharkin) wrote :

Fathi tells me that he got the script from Roy. I'll subscribe him to this bug.

Revision history for this message
Fathi Boudra (fboudra) wrote :

the startup script is also documented on the wiki in several places. It's used for automation to avoid going through the interactive shell.

I'm fine to update the script to whatever is appropriate. Getting rid of it will be painful because it will force LAVA users to write the interactive shell sequence needed.

Revision history for this message
Fathi Boudra (fboudra) wrote :
Revision history for this message
Roy Franz (roy-franz) wrote :

"Image" isn't a shell command, but rather the name of the EFI application that is being run - in this case it should be a kernel built with the EFI stub.

I have seen this error message in 3 different situations:
1) The file trying to be run is not an EFI application
2) The EFI application is of a different architecture (arm32 vs arm64)
3) Something wrong with the EFI header. We shouldn't be hitting this now, but during development I saw this when I didn't have the header right.

In this case that this is failing, have we confirmed what kind of file "Image" is? I think we'd get a different error message if the file was completely missing, so I think something was there with the right name.

Revision history for this message
Ryan Harkin (ryanharkin) wrote : Re: [Bug 1313620] Re: Image shell command not supported

Well that explains it!

Of course Image isn't an EFI application! It's a regular kernel. And if
someone gets around to adding efistub to linux linaro, surely Image would
still not be an EFI application and there would be another file in there
that had the stub? (ie. we'd have both a regular kernel Image file AND an
EFI stubbed kernel)

On 7 May 2014 04:20, "Roy Franz" <email address hidden> wrote:
>
> "Image" isn't a shell command, but rather the name of the EFI
> application that is being run - in this case it should be a kernel built
> with the EFI stub.
>
> I have seen this error message in 3 different situations:
> 1) The file trying to be run is not an EFI application
> 2) The EFI application is of a different architecture (arm32 vs arm64)
> 3) Something wrong with the EFI header. We shouldn't be hitting this
now, but during development I saw this when I didn't have the header right.
>
> In this case that this is failing, have we confirmed what kind of file
> "Image" is? I think we'd get a different error message if the file was
> completely missing, so I think something was there with the right name.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1313620
>
> Title:
> Image shell command not supported
>
> Status in UEFI Support in Linaro:
> New
>
> Bug description:
> When UEFI runs, it attempts to autorun the "startup.nsh" script. This
> script contains the command "Image <params>".
>
> However, "Image" is not a valid UEFI shell command, so it an error is
> reported, thus:
>
> "Error reported: Unsupported"
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/linaro-uefi/+bug/1313620/+subscriptions

Revision history for this message
Leif Lindholm (leif-lindholm) wrote :

There is no need for a separate non-stub image, even if I wasn't
throwing the built-in Linux loader out the window.
The stub image is still a valid image for loading in that other way.

On 7 May 2014 06:54, Ryan Harkin <email address hidden> wrote:
> Well that explains it!
>
> Of course Image isn't an EFI application! It's a regular kernel. And if
> someone gets around to adding efistub to linux linaro, surely Image would
> still not be an EFI application and there would be another file in there
> that had the stub? (ie. we'd have both a regular kernel Image file AND an
> EFI stubbed kernel)
>
> On 7 May 2014 04:20, "Roy Franz" <email address hidden> wrote:
>>
>> "Image" isn't a shell command, but rather the name of the EFI
>> application that is being run - in this case it should be a kernel built
>> with the EFI stub.
>>
>> I have seen this error message in 3 different situations:
>> 1) The file trying to be run is not an EFI application
>> 2) The EFI application is of a different architecture (arm32 vs arm64)
>> 3) Something wrong with the EFI header. We shouldn't be hitting this
> now, but during development I saw this when I didn't have the header right.
>>
>> In this case that this is failing, have we confirmed what kind of file
>> "Image" is? I think we'd get a different error message if the file was
>> completely missing, so I think something was there with the right name.
>>
>> --
>> You received this bug notification because you are subscribed to the bug
>> report.
>> https://bugs.launchpad.net/bugs/1313620
>>
>> Title:
>> Image shell command not supported
>>
>> Status in UEFI Support in Linaro:
>> New
>>
>> Bug description:
>> When UEFI runs, it attempts to autorun the "startup.nsh" script. This
>> script contains the command "Image <params>".
>>
>> However, "Image" is not a valid UEFI shell command, so it an error is
>> reported, thus:
>>
>> "Error reported: Unsupported"
>>
>> To manage notifications about this bug go to:
>> https://bugs.launchpad.net/linaro-uefi/+bug/1313620/+subscriptions
>
> --
> You received this bug notification because you are subscribed to Linaro
> UEFI.
> https://bugs.launchpad.net/bugs/1313620
>
> Title:
> Image shell command not supported
>
> Status in UEFI Support in Linaro:
> New
>
> Bug description:
> When UEFI runs, it attempts to autorun the "startup.nsh" script. This
> script contains the command "Image <params>".
>
> However, "Image" is not a valid UEFI shell command, so it an error is
> reported, thus:
>
> "Error reported: Unsupported"
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/linaro-uefi/+bug/1313620/+subscriptions

Ilias Biris (ibiris)
Changed in linaro-uefi:
status: New → Invalid
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.