AARCH64 FVP build crashes when shell script executed

Bug #1270219 reported by Roy Franz
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linaro UEFI
Fix Released
High
Ryan Harkin

Bug Description

When attempting to run a shell script using semihosting, I get the following error:

UEFI Interactive Shell v2.0. UEFI v2.31 (ARM Fixed Virtual Platform EFI Nov 22 2013 17:33:24, 0x00000000). Revision 1.02
Mapping table
      FS0: Alias(s):F5:
          VenHw(C5B9C74A-6D72-4719-99AB-C59F199091EB)
     BLK3: Alias(s):
          VenHw(E7223039-5836-41E1-B542-D7EC736C5E59)
     BLK0: Alias(s):
          VenHw(02118005-9DA7-443A-92D5-781F022AEDBB)
     BLK1: Alias(s):
          VenHw(1F15DA3C-37FF-4070-B471-BB4AF12A724A)
     BLK2: Alias(s):
          VenHw(CC2CBF29-1498-4CDD-8171-F8B6B41D0909)

Press ESC in 4 seconds to skip startup.nsh or any other key to continue.
Shell> fs0:
FS0:\> e.nsh

ASSERT_EFI_ERROR (Status = Aborted)
ASSERT /home/olimar01/tianocore/ShellPkg/Library/UefiShellLib/UefiShellLib.c(4010): !EFI_ERROR (Status)

Synchronous Exception:

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

Roy - can you reproduce this on recent builds?

Changed in linaro-uefi:
assignee: nobody → Roy Franz (roy-franz)
assignee: Roy Franz (roy-franz) → Ryan Harkin (ryanharkin)
Revision history for this message
Leif Lindholm (leif-lindholm) wrote :

Ryan just reproduced it, so he can have it :)

Changed in linaro-uefi:
status: New → Confirmed
importance: Undecided → High
Revision history for this message
Roy Franz (roy-franz) wrote :

Yup, I can reproduce it on the 2014.04.

Olivier had fixed a couple of semi-hosting bugs that I thought could be related to this:
FYI, we fixed the AArch64 semihosting issue. You will need these two patches:
- ArmPkg/SemihostLib: Made arguments 'native' size (SVN rev15389)
- ArmPkg/SemihostFs: Various fixes for the file system (SVN rev15390)

But those appear to be in 2014.04, so it seems to be something else.

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

Ignore the above, I was running a different binary image than I thought....

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

This seems to be fixed in the 2014.04 release - I am unable to reproduce it there.

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

With the 14.04 OpenEmbedded release (which is using an old UEFI binary) I am able to reproduce the problem where shell crashes when attempting to run startup.nsh.

Next, I'll try with the Linaro EDK2 UEFI binary, wrapped into the latest Trusted Firmware.

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

OK, so the latest Linaro EDK2 binary / fvp-pre-boot no longer crashes.

However, when running startup.nsh, all is not smooth:

Press ESC in 1 seconds to skip startup.nsh or any other key to continue.
Shell> Image dtb=fvp-base-gicv2-psci.dtb console=ttyAMA0,38400n8 earlyprintk=pl011,0x1c090000 debug uefi_debug ignore_l
Shell> rootwait root=/dev/vda2 rootfstype=ext4 rw
Error reported: Unsupported

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

Ryan - I think the error you are seeing should probably be a new bug, and this one closed, as it seems that what you are seeing is the EFI stub not executing.

Does the command in the startup.nsh execute properly if typed at the command line?

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

Very true, this is a completely different bug now.

The "Image" command isn't present in this shell, that's the problem. If I run "Image" with or without parameters, it reports the same problem: "Error reported: Unsupported".

Changed in linaro-uefi:
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.