Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 06f10ac in mainline for tools/ew.py


Ignore:
Timestamp:
2021-08-22T19:08:44Z (2 months ago)
Author:
Martin Decky <martin@…>
Branches:
master
Children:
c21cc26
Parents:
95b7d4df
Message:

Implement support for HiKey? 960

Initial support for the 96Boards HiKey? 960 board.

  • The kernel identity mapping has been extended to 4 GiB. The initial bootstrap mapping maps 3 GiB as nornal memory and the next 1 GiB as device memory to support early UART debugging output.
  • The istate_t has been padded in order to preserve the stack pointer alignment invariant.

The current implementation is limited to UP and UART input/output.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/ew.py

    r95b7d4df r06f10ac  
    144144                        return 'system-arm', '-M raspi1ap'
    145145        elif platform == 'arm64':
    146                 # Search for the EDK2 firmware image
    147                 default_paths = (
    148                         '/usr/local/qemu-efi-aarch64/QEMU_EFI.fd', # Custom
    149                         '/usr/share/edk2/aarch64/QEMU_EFI.fd',     # Fedora
    150                         '/usr/share/qemu-efi-aarch64/QEMU_EFI.fd', # Ubuntu
    151                 )
    152                 extra_info = ("Pre-compiled binary can be obtained from "
    153                     "http://snapshots.linaro.org/components/kernel/leg-virt-tianocore-edk2-upstream/latest/QEMU-AARCH64/RELEASE_GCC5/QEMU_EFI.fd.\n")
    154                 efi_path = find_firmware(
    155                     "EDK2", 'EW_QEMU_EFI_AARCH64', default_paths, extra_info)
    156                 if efi_path is None:
    157                         raise Exception
    158 
    159                 return 'system-aarch64', \
    160                     '-M virt -cpu cortex-a57 -m 1024 -bios %s' % efi_path
     146                if machine == 'virt':
     147                        # Search for the EDK2 firmware image
     148                        default_paths = (
     149                                '/usr/local/qemu-efi-aarch64/QEMU_EFI.fd', # Custom
     150                                '/usr/share/edk2/aarch64/QEMU_EFI.fd',     # Fedora
     151                                '/usr/share/qemu-efi-aarch64/QEMU_EFI.fd', # Ubuntu
     152                        )
     153                        extra_info = ("Pre-compiled binary can be obtained from "
     154                            "http://snapshots.linaro.org/components/kernel/leg-virt-tianocore-edk2-upstream/latest/QEMU-AARCH64/RELEASE_GCC5/QEMU_EFI.fd.\n")
     155                        efi_path = find_firmware(
     156                            "EDK2", 'EW_QEMU_EFI_AARCH64', default_paths, extra_info)
     157                        if efi_path is None:
     158                                raise Exception
     159
     160                        return 'system-aarch64', \
     161                            '-M virt -cpu cortex-a57 -m 1024 -bios %s' % efi_path
    161162        elif platform == 'ia32':
    162163                return 'system-i386', pc_options(32)
Note: See TracChangeset for help on using the changeset viewer.