Skip to content
This repository has been archived by the owner on Oct 28, 2019. It is now read-only.

Tested AndroidFastbootTransportTcpDxe #67

Open
wants to merge 2 commits into
base: hikey
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,16 @@ TcpFastbootTransportStart (
NULL // Default advanced TCP options
};

Status = gBS->LocateProtocol(
&gEfiSimpleTextOutProtocolGuid,
NULL,
(VOID **) &mTextOut
);
if (EFI_ERROR (Status)) {
DEBUG ((EFI_D_ERROR, "Fastboot: Open Text Output Protocol: %r\n", Status));
return Status;
}

mReceiveEvent = ReceiveEvent;
InitializeListHead (&mPacketListHead);

Expand Down Expand Up @@ -663,17 +673,6 @@ TcpFastbootTransportEntryPoint (
{
EFI_STATUS Status;


Status = gBS->LocateProtocol(
&gEfiSimpleTextOutProtocolGuid,
NULL,
(VOID **) &mTextOut
);
if (EFI_ERROR (Status)) {
DEBUG ((EFI_D_ERROR, "Fastboot: Open Text Output Protocol: %r\n", Status));
return Status;
}

Status = gBS->InstallProtocolInterface (
&ImageHandle,
&gAndroidFastbootTransportProtocolGuid,
Expand Down
4 changes: 3 additions & 1 deletion EmbeddedPkg/EmbeddedPkg.dec
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@

## FDT Configuration Table
# Include/Guid/Fdt.h
gFdtTableGuid = { 0xb1b621d5, 0xf19c, 0x41a5, { 0x83, 0x0b, 0xd9, 0x15, 0x2c, 0x69, 0xaa, 0xe0 } }
gFdtTableGuid = { 0xb1b621d5, 0xf19c, 0x41a5, { 0x83, 0x0b, 0xd9, 0x15, 0x2c, 0x69, 0xaa, 0xe0 } }

gEfiHostnameVariableGuid = { 0xf1851fe8, 0x7d79, 0x43fb, { 0xae, 0x4c, 0x65, 0x7d, 0xd8, 0xd3, 0xc8, 0x80 } }

[Protocols.common]
gHardwareInterruptProtocolGuid = { 0x2890B3EA, 0x053D, 0x1643, { 0xAD, 0x0C, 0xD6, 0x48, 0x08, 0xDA, 0x3F, 0xF1 } }
Expand Down
20 changes: 20 additions & 0 deletions EmbeddedPkg/Include/Guid/Hostname.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
/** @file
*
* Copyright (c) 2015, Linaro Limited. All rights reserved.
*
* This program and the accompanying materials
* are licensed and made available under the terms and conditions of the BSD License
* which accompanies this distribution. The full text of the license may be found at
* http://opensource.org/licenses/bsd-license.php
*
* THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
* WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
*
**/

#ifndef __HOSTNAME_H__
#define __HOSTNAME_H__

extern EFI_GUID gEfiHostnameVariableGuid;

#endif /* __HOSTNAME_H__ */
7 changes: 5 additions & 2 deletions HisiPkg/HiKeyPkg/HiKey.dsc
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@

[LibraryClasses.AARCH64]
ArmLib|ArmPkg/Library/ArmLib/AArch64/AArch64Lib.inf
NULL|ArmPkg/Library/CompilerIntrinsicsLib/CompilerIntrinsicsLib.inf

[LibraryClasses.common.SEC]
PrePiLib|EmbeddedPkg/Library/PrePiLib/PrePiLib.inf
Expand Down Expand Up @@ -415,13 +416,15 @@
# USB
#
EmbeddedPkg/Drivers/DwUsbDxe/DwUsbDxe.inf
EmbeddedPkg/Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsbDxe.inf

#
# Fastboot
# Fastboot Support
#
EmbeddedPkg/Application/AndroidFastboot/AndroidFastbootApp.inf
HisiPkg/HiKeyPkg/Drivers/HiKeyFastbootDxe/HiKeyFastbootDxe.inf
#EmbeddedPkg/Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsbDxe.inf
EmbeddedPkg/Drivers/AndroidFastbootTransportTcpDxe/FastbootTransportTcpDxe.inf


#
# FAT filesystem + GPT/MBR partitioning
Expand Down
7 changes: 6 additions & 1 deletion HisiPkg/HiKeyPkg/HiKey.fdf
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,12 @@ READ_LOCK_STATUS = TRUE
# USB
#
INF EmbeddedPkg/Drivers/DwUsbDxe/DwUsbDxe.inf
INF EmbeddedPkg/Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsbDxe.inf

#
# Fastboot Support
#
#INF EmbeddedPkg/Drivers/AndroidFastbootTransportUsbDxe/FastbootTransportUsbDxe.inf
INF EmbeddedPkg/Drivers/AndroidFastbootTransportTcpDxe/FastbootTransportTcpDxe.inf

#
# FASTBOOT_PLATFORM_PROTOCOL
Expand Down