[PATCH blivet/master] Add initial 64-bit ARM (aarch64) support.

David A. Marlin dmarlin at redhat.com
Tue Oct 15 02:49:29 UTC 2013


On 10/14/2013 07:48 PM, Dennis Gilmore wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> El Mon, 14 Oct 2013 11:15:42 -0500
> "d.marlin" <dmarlin at redhat.com> escribió:
>> From: "d.marlin" <dmarlin at redhat.com>
>>
>> Signed-off-by: David A. Marlin <dmarlin at redhat.com>
>> ---
>>   blivet/arch.py     | 10 ++++++++++
>>   blivet/platform.py | 28 ++++++++++++++++++++++++++++
>>   2 files changed, 38 insertions(+)
>>
>> diff --git a/blivet/arch.py b/blivet/arch.py
>> index cbbf5e6..82e2992 100644
>> --- a/blivet/arch.py
>> +++ b/blivet/arch.py
>> @@ -303,6 +303,14 @@ def isAlpha():
>>       """
>>       return os.uname()[4].startswith('alpha')
>>   
>> +def isAARCH64():
>> +    """
>> +    :return: True if the hardware supports Aarch64, False otherwise.
>> +    :rtype: boolean
>> +
>> +    """
>> +    return os.uname()[4] == 'aarch64'
>> +
>>   def isARM():
>>       """
>>       :return: True if the hardware supports ARM, False otherwise.
>> @@ -327,6 +335,8 @@ def getArch():
>>           return 'ppc64'
>>       elif isAlpha():
>>           return 'alpha'
>> +    elif isAARCH64():
>> +        return 'aarch64'
>>       elif isARM():
>>           return 'arm'
>>       else:
>> diff --git a/blivet/platform.py b/blivet/platform.py
>> index 185d82e..6a9748c 100644
>> --- a/blivet/platform.py
>> +++ b/blivet/platform.py
>> @@ -304,6 +304,32 @@ class S390(Platform):
>>   
>>           return super(S390, self).requiredDiskLabelType(device_type)
>>   
>> +class AARCH64(Platform):
>> +    _boot_stage1_device_types = ["disk"]
>> +    _boot_mbr_description = N_("Master Boot Record")
>> +    _boot_descriptions = {"disk": _boot_mbr_description,
>> +                          "partition":
>> Platform._boot_partition_description} +
>> +    _disklabel_types = ["msdos", "gpt"]
> Since we only plan to support UEFI for booting i dont think we need
> msdos in here. for all intents and purposes It should look and act just
> like a EFI x86_64 system

Right, and if you install on a system booted EFI it does in fact behave 
like a regular EFI install, however we still have non-EFI simulator 
models running and I wanted a "fall-back" to use until UEFI is fully 
implemented.  I think we are getting close.

d.marlin
========

>
> Dennis
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.21 (GNU/Linux)
>
> iQIcBAEBAgAGBQJSXJDiAAoJEH7ltONmPFDRZzEQAMUjf5mwZZT8c9oTIQavpBun
> N7uCBhFQBUvINHzSZIxmG4/u22JsrhpLaBok+lCXzYwJe08w2WnZpfZKtGvqAt1H
> TAOnf4VxYE3RlbL/V4tQCBVk1SiUXI0aKirupZi/LLLxMopwEWsdb3BCXFEDj/4j
> LRZaqaSA2d7flXbOVapYunYm1iEif+2MLUaBAgOA/uHzfExCWyg8VNtFDL+UsX8y
> jJnxVimMTVFs8NTzxIB5/Di1wbDqyZFguc4/WDZ9dSnM1uWXEhtTn2wizQQUNGd9
> MKtTuQqAn8/p3Kyek7y9jsUxUFlQw0pavRNyH8aYmfOP5ldOR2pv8R/HYmxw2BYn
> xnfPEZZGdw9b588f+t80TvzQRDpauxAdL+lh6A0mmvC6NiFuLmUQj6p4H4T/LVrm
> JVmIRRqDcF/C43yZXnZoN1JsWB8HV4zATn+waSGNynvQDrVaWFvxeDsrmJqPXVNM
> r425+kwJfIoGOxZ0SnbyKAdCmMzWdBA3fZ335zx/IA0PQbr5koIY52gvBBmAaQ2l
> rT2wXVAjIlN6tQErZkxEmuSH5YxUmsotWGRsdliIOaSJ26x1tM3NCnFPDg96pUfF
> q8FsTR9SuRJq2YFe9UDcXk2b3T9+j2ZuzSfUBJLRO6sY1q8TgTgKv0YUrIjJImba
> PfX3S6nnosvN04XtPUUn
> =vq1Z
> -----END PGP SIGNATURE-----
> _______________________________________________
> anaconda-patches mailing list
> anaconda-patches at lists.fedorahosted.org
> https://lists.fedorahosted.org/mailman/listinfo/anaconda-patches



More information about the anaconda-patches mailing list