Arm linux как узнать

Что такое 64-разрядная версия Linux ARM?

Когда ARM представила поддержку 64-битной архитектуры в своей архитектуре, она стремилась обеспечить совместимость с предыдущим 32-битным программным обеспечением. И, для записи, под «ARMv8-A» я подразумеваю AArch64 с набором инструкций A64, также известным как arm64 или ARM64. …

Что означает ARM для Linux?

Процессор ARM является одним из семейства процессоров, основанных на архитектуре RISC (компьютер с сокращенным набором команд), разработанной Advanced RISC Machines (ARM).

Как мне узнать, у меня ли Linux 64 или ARM?

Как узнать, работает ли Linux в 32-битной или 64-битной среде

  1. Откройте терминальное приложение Linux.
  2. Введите uname -a для вывода системной информации.
  3. Запустите getconf LONG_BIT, чтобы узнать, является ли ядро ​​Linux 32 или 64 битным.
  4. Выполните команду grep -o -w ‘lm’ / proc / cpuinfo, чтобы определить, используете ли вы 32-битный или 64-битный ЦП.

Является ли Raspberry Pi 4 64-битной?

Однако Raspberry Pi 3 и 4 являются 64-битными платами. Согласно основанию Raspberry Pi, есть ограниченные преимущества использования 64-битной версии для Pi 3 из-за того, что она поддерживает только 1 ГБ памяти; однако с Pi 4 64-битная версия должна быть быстрее.

Является ли Raspberry Pi 4 AArch64?

Сегодня утром Raspberry Pi Foundation анонсировала новую 8 ГБ версию Raspberry Pi 4.… Но становится доступно все больше и больше образов arm64, и они работают на всех 64-разрядных версиях. битовые процессоры ARM, такие как те, которые используются в экземплярах AWS ARM или если вы используете 64-разрядную версию Ubuntu на своем Raspberry Pi.

ARM лучше, чем Intel?

Intel когда-то входила в состав нескольких мобильных устройств Android, но процессоры ARM все еще господствуют на этом рынке.… Вопрос о том, является ли это серьезной проблемой, остается предметом споров: наши обзоры показывают, что Intel, как правило, отстает от ARM по времени автономной работы, но разрыв невелик, а общая производительность в целом очень хорошая.

Может ли Linux работать на вооружении?

Кроме того, ARM работает с сообществом разработчиков ПО с открытым исходным кодом и дистрибутивами Linux, а также с коммерческими партнерами Linux, включая: Arch Linux.

Arch работает на ARM?

Arch Linux ARM — это порт Arch Linux для процессоров ARM. Его философия дизайна — «простота и полный контроль для конечного пользователя», и, как и его родительская операционная система Arch Linux, стремится быть очень похожей на Unix. … Arch Linux ARM.

Разработчик Кевин Михелич и команда
Платформы ARM
Лицензия Бесплатное программное обеспечение (GPLv2)
Официальный веб-сайт archlinuxarm.org

Ubuntu x64 или ARM?

Ubuntu 20.04. 3 LTS включает поддержку самых последних серверных систем на базе ARM, работающих на сертифицированных 64-битных процессорах. … Ubuntu обеспечивает производительность серверного уровня на ARM, полностью сохраняя при этом надежный и знакомый опыт Ubuntu.

Читайте также:  Как посмотреть пароль от линукс

ARM 32 или 64-разрядная?

Дизайнер Софи Уилсон Стив Фербер Acorn Computers / Arm Ltd.
Биты 32-битные, 64-битные
Представлены 1985
Дизайн RISC
Тип Регистр-регистр

Intel ARM или AMD?

AMD — крупнейший конкурент Intel, предлагающий процессоры, похожие на Intel, но по большей части по более низкой цене. … Процессоры AMD Athlon — бюджетные модели, а Phenom и FX — массовые и высококлассные соответственно. РУКА. Процессоры ARM обычно используются в смартфонах, мобильных устройствах и планшетах.

ARM лучше, чем x64?

Процессоры ARM предлагают только эти базовые инструкции. Таким образом, сокращенный набор инструкций. Процессоры x86 / x64 — это CISC или «вычисления со сложным набором команд». … Эта разница в оборудовании является причиной того, что процессоры ARM потребляют меньше энергии, чем процессоры x86 / x64, при той же тактовой частоте.

Является ли Raspberry Pi ARM64?

BCM2837 — это чип, используемый в Raspberry Pi 3 и более поздних моделях Raspberry Pi 2 (версия платы V1. 2). Он включает в себя 64-битный четырехъядерный процессор ARM Cortex A53 (ARMv8) с графическим процессором VideoCore IV.

Что такое 64-битное устройство ARM v8a?

В современных телефонах Android используются три основных архитектуры ЦП. ARM, пожалуй, самый распространенный, так как он оптимизирован для расхода заряда батареи. ARM64 — это эволюция исходной архитектуры ARM, которая поддерживает 64-битную обработку для более мощных вычислений, и быстро становится стандартом для новых устройств.

Источник

Easy command line method to determine specific ARM architecture string?

I’m trying to write a script which will determine actions based on the architecture of the machine. I already use uname -m to gather the architecture line, however I do not know how many ARM architectures there are, nor do I know whether one is armhf , armel , or arm64 . As this is required for this script to determine whether portions of the script can be run or not, I am trying to find a simple way to determine if the architecture is armhf , armel or arm64 . Is there any one-liner or simple command that can be used to output either armhf , armel , or arm64 ? The script is specifically written for Debian and Ubuntu systems, and I am tagging as such with this in mind (it quits automatically if you aren’t on one of those distros, but this could be applied in a much wider way as well if the command(s) exist) EDIT: Recently learned that armel is dead, and arm64 software builders (PPA or virtual based) aren’t the most stable. So I have a wildcard search finding arm* and assuming armhf, but it’s still necessary to figure out a one liner that returns one of the three — whether it’s a Ubuntu/Debian command or a kernel call or something.

1 Answer 1

On Debian and derivatives,

will output the primary architecture of the machine it’s run on. This will be armhf on a machine running 32-bit ARM Debian or Ubuntu (or a derivative), arm64 on a machine running 64-bit ARM.

Читайте также:  Linux звук на несколько устройств

will output the current architecture name (which may be influenced by other parameters, e.g. —target ).

Note that the running architecture may be different from the hardware architecture or even the kernel architecture. It’s possible to run i386 Debian on a 64-bit Intel or AMD CPU, and I believe it’s possible to run armhf on a 64-bit ARM CPU. It’s also possible to have mostly i386 binaries (so the primary architecture is i386 ) on an amd64 kernel, or even binaries from an entirely different architecture if it’s supported by QEMU (a common use for this is debootstrap chroots used for cross-compiling).

Источник

How to detect 386, amd64, arm, or arm64 OS architecture via shell/bash

I’m looking for a POSIX shell/bash command to determine if the OS architecture is 386 , amd64 , arm , or arm64 ?

6 Answers 6

@YoloPerdiem they’re the same in the specific case that I was mentioning (Raspberry), but according to your link dpkg —print-architecture would be more accurate as the question is about OS architecture.

prints values such as x86_64 , i686 , arm , or aarch64 .

@Justin 64-bit was introduced in ARM v8, so armv7l means 32-bit little-endian ARM. That being said, if you’re on an RPi3: the processor is actually 64-bit, but if your OS is in 32-bit mode it reports an older model.

This works great on macOS until you have the terminal app running through Rosetta. it will return x86_64.

I went with the following:

architecture="" case $(uname -m) in i386) architecture="386" ;; i686) architecture="386" ;; x86_64) architecture="amd64" ;; arm) dpkg --print-architecture | grep -q "arm64" && architecture="arm64" || architecture="arm" ;; esac 

While you’re at it, you might as well collapse the first two branches in your case logic to i386 | i686) architecture=»386″ ;; It’s always good to include a catch-all branch at the end, too, to the effect of *) echo «Unable to determine system architecture.»; exit 1 ;;

@DUzun: That’s correct, x86_64 and amd64 are basically synonyms. AMD developed the ISA initially, then Intel implemented it, so some software still uses «amd64» as the architecture name. This is unrelated to whether your AMD64 CPU was sold by Intel, AMD, Via, Zhaoxin, or is emulated by QEMU or Bochs or whatever on totally different hardware. See The most correct way to refer to 32-bit and 64-bit versions of programs for x86-related CPUs?

Источник

is my linux ARM 32 or 64 bit?

under an intel I know I can look at the outcome of uname -m to know if my OS is 32 or 64 bit, but under ARM this gives:

arm 7 is 32 bit. ARMv8-A architecture, announced in October 2011,[6] adds support for a 64-bit address space and 64-bit arithmetic. — wikipedia

I don’t have access to an ARM machine but what is the output of uname -a and gcc -v ? Those might be helpful.

Announced October 2011, ARMv8-A (often called ARMv8 although not all variants are 64-bit such as ARMv8-R) represents a fundamental change to the ARM architecture. It adds a 64-bit architecture, named «AArch64», and a new «A64» instruction set. AArch64 provides user-space compatibility with ARMv7-A ISA, the 32-bit architecture, therein referred to as «AArch32» and the old 32-bit instruction set, now named «A32» ARM announced their Cortex-A53 and Cortex-A57 cores on 30 October 2012. — en.wikipedia.org/wiki/ARM_architecture#64.2F32-bit_architecture

Читайте также:  Arch linux второй системой

Arm was the last of the 32bit cpu to go 64bit (excluding those that died). Most went 64bit and then died, because of poor marketing — assuming that being better is enough. The Intel x86 was the second to last, though it was AMD that added 64 bit.

6 Answers 6

There are several gradations, since you can run a 32-bit or mixed operating system on a 64-bit-capable CPU. See 64-bit kernel, but all 32-bit ELF executable running processes, how is this? for a detailed discussion (written for x86, but most of it applies to arm as well).

You can find the processor model in /proc/cpuinfo . For example:

$ cat /proc/cpuinfo Processor : ARMv7 Processor rev 10 (v7l) 

ARMv7 (and below) is 32-bit. ARMv8 introduces the 64-bit instruction set.

If you want to see whether your system supports 64-bit binaries, check the kernel architecture:

On a 64-bit processor, you’d see a string starting with armv8 (or above) if the uname process itself is a 32-bit process, or aarch64 if it’s a 64-bit process. (See also https://stackoverflow.com/questions/45125516/possible-values-for-uname-m)

I don’t contest your answer, but unfortunately android IS A LINUX, so, there suppose to be some command, SOMEWHERE that show it locally and not to read a documentation on some page

@THESorcerer Android uses a Linux kernel but it is not a Linux system. It does not have Linux user land tools (only a very small subset). On Android, I think 64-bit support is consistent in the base OS, so cat /proc/$$/maps will let you know whether the system is 64-bit or 32-bit from an adb command line.

I believe Raspberry Pi 3, which is ARMv8 (CRC, no optional Crypto) will report armv7l even though its ARMv8. So I’m pretty sure the wrong CPU will be reported.

@jww If it reports armv7l , it means you’re running a 32-bit kernel. You can run a 32-bit kernel on a 64-bit CPU. If you want information about the CPU, read /proc/cpuinfo .

As richard points out, armv7 variants are all 32-bit, so there is no redundant label armv7-32 , etc.

On a linux system, you can easily, although not truly definitively, check by examining a common executable:

> which bash /bin/bash > file /bin/bash /bin/bash: ELF 32-bit LSB executable, ARM, version 1 (SYSV) . 

I say «not definitively» because it is possible to run 32-bit executables on a 64-bit system.

There does not appear to be anything foolproof in /proc or /sys ; the output from /proc/cpuinfo may provide some significant clues. If for some reason you need an automated check, creating a table mapped to the «model name» field seems like one potentially sound method (other fields, including «model», «cpu family», etc. look optional — they don’t appear at all for me on a Broadcom 2708 ARMv6 processor).

Источник

Оцените статью
Adblock
detector