Raspberry pi 3 B with Ubuntu 18.04 server arm64: what pi version The Next CEO of Stack OverflowHow to use onboard wifi on Raspberry Pi 3 with Ubuntu Server 16.04?What is the most authoritative file/process for managing IP addresses on an 18.04 server?Ubuntu 18.04 gnome high CPU usageHow to properly downgrade openssl version under Ubuntu 18.04Ubuntu 18.04 LTS GUI is unusably slow with Matrox G200eR2 (Dell r720xd server)Python version in Ubuntu 18.04Convert from armhf to arm64 on Raspberry Pi 3 B running 64-bit Ubuntu Server 18.04 LTS (Bionic)Graphical IP Blocker program for Ubuntu 18.04Ubuntu 18.04, PHP 5.3 installingEnable i2c on raspberry pi Ubuntu

Why can't we say "I have been having a dog"?

Is the offspring between a demon and a celestial possible? If so what is it called and is it in a book somewhere?

Is it possible to create a QR code using text?

The sum of any ten consecutive numbers from a fibonacci sequence is divisible by 11

Prodigo = pro + ago?

How to pronounce fünf in 45

Traveling with my 5 year old daughter (as the father) without the mother from Germany to Mexico

What day is it again?

How can I separate the number from the unit in argument?

Another proof that dividing by 0 does not exist -- is it right?

How should I connect my cat5 cable to connectors having an orange-green line?

What are the unusually-enlarged wing sections on this P-38 Lightning?

Simplify trigonometric expression using trigonometric identities

My boss doesn't want me to have a side project

Strange use of "whether ... than ..." in official text

Is there a rule of thumb for determining the amount one should accept for of a settlement offer?

Which acid/base does a strong base/acid react when added to a buffer solution?

Compensation for working overtime on Saturdays

Small nick on power cord from an electric alarm clock, and copper wiring exposed but intact

How do I keep Mac Emacs from trapping M-`?

Masking layers by a vector polygon layer in QGIS

What does this strange code stamp on my passport mean?

How to implement Comparable so it is consistent with identity-equality

Is it OK to decorate a log book cover?



Raspberry pi 3 B with Ubuntu 18.04 server arm64: what pi version



The Next CEO of Stack OverflowHow to use onboard wifi on Raspberry Pi 3 with Ubuntu Server 16.04?What is the most authoritative file/process for managing IP addresses on an 18.04 server?Ubuntu 18.04 gnome high CPU usageHow to properly downgrade openssl version under Ubuntu 18.04Ubuntu 18.04 LTS GUI is unusably slow with Matrox G200eR2 (Dell r720xd server)Python version in Ubuntu 18.04Convert from armhf to arm64 on Raspberry Pi 3 B running 64-bit Ubuntu Server 18.04 LTS (Bionic)Graphical IP Blocker program for Ubuntu 18.04Ubuntu 18.04, PHP 5.3 installingEnable i2c on raspberry pi Ubuntu










8















How can I find what chip I have (what version of raspberry pi) with Ubuntu 18.04 server for arm64? What file can I check or what command can I run? /proc/cpuinfo does not have useful information, just some generic details without mention of the pi.










share|improve this question









New contributor




anvoice is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • The cat /proc/cpuinfo should produce a Revision number that corresponds to the board. See: raspberrypi.org/documentation/hardware/raspberrypi/…

    – Terrance
    19 hours ago












  • It doesnt't, at least for Ubuntu 18.04 server. It only says "revision : 4".

    – anvoice
    19 hours ago











  • You might be at an impasse with this because the RP does not support SMBIOS or DMI that allows for reading board information. It might also be something you might have to file as a bug to get the revision read in the cpuinfo.

    – Terrance
    18 hours ago











  • I think you're right that it qualifies as a bug. However, I just found at least one workaround. It's short but I'll include it as an answer just in case people find it helpful.

    – anvoice
    18 hours ago











  • It looks like your actual question was "which Raspberry Pi am I running on?"; whereas your title seems to be asking "which CPU does my Raspberry Pi have?"; hence the confusion in the answers. I suggest that you edit your question to change the title.

    – Roger Lipscombe
    5 hours ago















8















How can I find what chip I have (what version of raspberry pi) with Ubuntu 18.04 server for arm64? What file can I check or what command can I run? /proc/cpuinfo does not have useful information, just some generic details without mention of the pi.










share|improve this question









New contributor




anvoice is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




















  • The cat /proc/cpuinfo should produce a Revision number that corresponds to the board. See: raspberrypi.org/documentation/hardware/raspberrypi/…

    – Terrance
    19 hours ago












  • It doesnt't, at least for Ubuntu 18.04 server. It only says "revision : 4".

    – anvoice
    19 hours ago











  • You might be at an impasse with this because the RP does not support SMBIOS or DMI that allows for reading board information. It might also be something you might have to file as a bug to get the revision read in the cpuinfo.

    – Terrance
    18 hours ago











  • I think you're right that it qualifies as a bug. However, I just found at least one workaround. It's short but I'll include it as an answer just in case people find it helpful.

    – anvoice
    18 hours ago











  • It looks like your actual question was "which Raspberry Pi am I running on?"; whereas your title seems to be asking "which CPU does my Raspberry Pi have?"; hence the confusion in the answers. I suggest that you edit your question to change the title.

    – Roger Lipscombe
    5 hours ago













8












8








8


1






How can I find what chip I have (what version of raspberry pi) with Ubuntu 18.04 server for arm64? What file can I check or what command can I run? /proc/cpuinfo does not have useful information, just some generic details without mention of the pi.










share|improve this question









New contributor




anvoice is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












How can I find what chip I have (what version of raspberry pi) with Ubuntu 18.04 server for arm64? What file can I check or what command can I run? /proc/cpuinfo does not have useful information, just some generic details without mention of the pi.







18.04 raspberrypi






share|improve this question









New contributor




anvoice is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question









New contributor




anvoice is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question








edited 3 hours ago







anvoice













New contributor




anvoice is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked 20 hours ago









anvoiceanvoice

1417




1417




New contributor




anvoice is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





anvoice is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






anvoice is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • The cat /proc/cpuinfo should produce a Revision number that corresponds to the board. See: raspberrypi.org/documentation/hardware/raspberrypi/…

    – Terrance
    19 hours ago












  • It doesnt't, at least for Ubuntu 18.04 server. It only says "revision : 4".

    – anvoice
    19 hours ago











  • You might be at an impasse with this because the RP does not support SMBIOS or DMI that allows for reading board information. It might also be something you might have to file as a bug to get the revision read in the cpuinfo.

    – Terrance
    18 hours ago











  • I think you're right that it qualifies as a bug. However, I just found at least one workaround. It's short but I'll include it as an answer just in case people find it helpful.

    – anvoice
    18 hours ago











  • It looks like your actual question was "which Raspberry Pi am I running on?"; whereas your title seems to be asking "which CPU does my Raspberry Pi have?"; hence the confusion in the answers. I suggest that you edit your question to change the title.

    – Roger Lipscombe
    5 hours ago

















  • The cat /proc/cpuinfo should produce a Revision number that corresponds to the board. See: raspberrypi.org/documentation/hardware/raspberrypi/…

    – Terrance
    19 hours ago












  • It doesnt't, at least for Ubuntu 18.04 server. It only says "revision : 4".

    – anvoice
    19 hours ago











  • You might be at an impasse with this because the RP does not support SMBIOS or DMI that allows for reading board information. It might also be something you might have to file as a bug to get the revision read in the cpuinfo.

    – Terrance
    18 hours ago











  • I think you're right that it qualifies as a bug. However, I just found at least one workaround. It's short but I'll include it as an answer just in case people find it helpful.

    – anvoice
    18 hours ago











  • It looks like your actual question was "which Raspberry Pi am I running on?"; whereas your title seems to be asking "which CPU does my Raspberry Pi have?"; hence the confusion in the answers. I suggest that you edit your question to change the title.

    – Roger Lipscombe
    5 hours ago
















The cat /proc/cpuinfo should produce a Revision number that corresponds to the board. See: raspberrypi.org/documentation/hardware/raspberrypi/…

– Terrance
19 hours ago






The cat /proc/cpuinfo should produce a Revision number that corresponds to the board. See: raspberrypi.org/documentation/hardware/raspberrypi/…

– Terrance
19 hours ago














It doesnt't, at least for Ubuntu 18.04 server. It only says "revision : 4".

– anvoice
19 hours ago





It doesnt't, at least for Ubuntu 18.04 server. It only says "revision : 4".

– anvoice
19 hours ago













You might be at an impasse with this because the RP does not support SMBIOS or DMI that allows for reading board information. It might also be something you might have to file as a bug to get the revision read in the cpuinfo.

– Terrance
18 hours ago





You might be at an impasse with this because the RP does not support SMBIOS or DMI that allows for reading board information. It might also be something you might have to file as a bug to get the revision read in the cpuinfo.

– Terrance
18 hours ago













I think you're right that it qualifies as a bug. However, I just found at least one workaround. It's short but I'll include it as an answer just in case people find it helpful.

– anvoice
18 hours ago





I think you're right that it qualifies as a bug. However, I just found at least one workaround. It's short but I'll include it as an answer just in case people find it helpful.

– anvoice
18 hours ago













It looks like your actual question was "which Raspberry Pi am I running on?"; whereas your title seems to be asking "which CPU does my Raspberry Pi have?"; hence the confusion in the answers. I suggest that you edit your question to change the title.

– Roger Lipscombe
5 hours ago





It looks like your actual question was "which Raspberry Pi am I running on?"; whereas your title seems to be asking "which CPU does my Raspberry Pi have?"; hence the confusion in the answers. I suggest that you edit your question to change the title.

– Roger Lipscombe
5 hours ago










4 Answers
4






active

oldest

votes


















9














At least on Ubuntu 18.04 server for arm64 and with a Raspberry Pi 3 B, the following command gives the board, including revision:



lshw


A less verbose output that's easier to read is given by:



lshw -short


That gave me my board as a "Raspberry Pi 3 B Rev 1.2", which is exactly what was needed in this case.






share|improve this answer








New contributor




anvoice is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.



























    7














    The command lscpu is what you are looking for. Here's an example output of the command (taken on my Raspberry Pi 3B+):



    lscpu


    which produces the following output:



    Architecture: armv7l
    Byte Order: Little Endian
    CPU(s): 4
    On-line CPU(s) list: 0-3
    Thread(s) per core: 1
    Core(s) per socket: 4
    Socket(s): 1
    Model: 4
    Model name: ARMv7 Processor rev 4 (v7l)
    CPU max MHz: 1200,0000
    CPU min MHz: 600,0000
    BogoMIPS: 38.40
    Flags: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32



    Another option is the inxi command (you might have to install it if not present with sudo apt install inxi). Use the flag -C as follows:



    inxi -C


    which produces the following output:



    CPU: Quad core ARMv7 rev 4 (v7l) (-MCP-) (ARM) 
    clock speeds: max: 1200 MHz 1: 1200 MHz 2: 1200 MHz 3: 1200 MHz 4: 1200 MHz



    As for identifying which chip your board has, you can check the chip on the board as well the manufacturers website for info and as well as the different selling outlets for getting technical details.






    share|improve this answer

























    • Thank you, that definitely gives extra information. However, the model name when I run lscpu is listed as Cortex A-53, which is on both the pi 2 and 3 I believe. Do you happen to know of a more specific command/file which can distinguish between these two boards?

      – anvoice
      20 hours ago











    • Normaly the board type and revision is printed on the board too, so you might be able to check that, otherwise I'm out of clues.

      – Videonauth
      20 hours ago











    • I see. I know what my board is, but a library maintainer needs this info to adjust his library to work with my hardware and software. Tried inxi, it also gives generic output only. Really appreciate the help though.

      – anvoice
      20 hours ago






    • 1





      As for the library you want to use, there's only one question. is there a library which provides the same function you need or not. This is the information you can get from your machine program wise. On desktop computers there might be more information to get on the CPU version, the raspberry lacks in that regard a bit as putting all this information in some chips is adding to the costs.

      – Videonauth
      19 hours ago






    • 1





      Current inxi (3.0.xx) has way better ARM support than legacy inxi (2.xx.yy), which I think is what you find in 18-4. That will do its level best to give quite a bit of information about the actual SBC device itself. On rasberry pi 3 the only thing it's not catching is the mmc wifi device, which is too complicated to grab data on, but otherwise the report for pi 3 is quite complete in new inxi. Legacy inxi had only rudimentary ARM support. Compare inxi -Fxxx or -v7 on legacy and current on any pi device and you'll see what I mean.

      – Lizardx
      18 hours ago



















    1














    I attempted to port pigpio to Debian arm64, in the end my attempt failed because I discovererd that the Debian arm64 kernel doesn't support the userspace mailbox interface that pigpio relies on, but in doing so I did some research on how to detect Pis while running Debian arm64 kernels. I suspect this will also work for ubuntu arm64.



    As you have discovered /proc/cpuinfo only has CPU core information on these kernels. Fortunately the information can be found elsewhere in /proc



    Firstly to check if the device is a Pi or not, I checked /proc/device-tree/model , this has a text string describing the device, so false positives are unlikely.



    To get the revision code I used /proc/device-tree/system/linux,revision , this contains the revision code as a big-endian binary integer. So it needs to be read out of the file as a binary integer, then converted to little-endian (I used ntohl for this).



    You can see my code at https://github.com/joan2937/pigpio/pull/255/commits/2e229d667fde8a2a881d5aa8482b2bb936b09f26






    share|improve this answer























    • Thank you, that is indeed what I was looking for.

      – anvoice
      3 hours ago


















    0














    The architecture is armhf.

    CPU is Broadcom BCM2837






    share|improve this answer








    New contributor




    owl_blink is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.




















      Your Answer








      StackExchange.ready(function()
      var channelOptions =
      tags: "".split(" "),
      id: "89"
      ;
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function()
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled)
      StackExchange.using("snippets", function()
      createEditor();
      );

      else
      createEditor();

      );

      function createEditor()
      StackExchange.prepareEditor(
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader:
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      ,
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      );



      );






      anvoice is a new contributor. Be nice, and check out our Code of Conduct.









      draft saved

      draft discarded


















      StackExchange.ready(
      function ()
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1130244%2fraspberry-pi-3-b-with-ubuntu-18-04-server-arm64-what-pi-version%23new-answer', 'question_page');

      );

      Post as a guest















      Required, but never shown

























      4 Answers
      4






      active

      oldest

      votes








      4 Answers
      4






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      9














      At least on Ubuntu 18.04 server for arm64 and with a Raspberry Pi 3 B, the following command gives the board, including revision:



      lshw


      A less verbose output that's easier to read is given by:



      lshw -short


      That gave me my board as a "Raspberry Pi 3 B Rev 1.2", which is exactly what was needed in this case.






      share|improve this answer








      New contributor




      anvoice is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.
























        9














        At least on Ubuntu 18.04 server for arm64 and with a Raspberry Pi 3 B, the following command gives the board, including revision:



        lshw


        A less verbose output that's easier to read is given by:



        lshw -short


        That gave me my board as a "Raspberry Pi 3 B Rev 1.2", which is exactly what was needed in this case.






        share|improve this answer








        New contributor




        anvoice is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






















          9












          9








          9







          At least on Ubuntu 18.04 server for arm64 and with a Raspberry Pi 3 B, the following command gives the board, including revision:



          lshw


          A less verbose output that's easier to read is given by:



          lshw -short


          That gave me my board as a "Raspberry Pi 3 B Rev 1.2", which is exactly what was needed in this case.






          share|improve this answer








          New contributor




          anvoice is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.










          At least on Ubuntu 18.04 server for arm64 and with a Raspberry Pi 3 B, the following command gives the board, including revision:



          lshw


          A less verbose output that's easier to read is given by:



          lshw -short


          That gave me my board as a "Raspberry Pi 3 B Rev 1.2", which is exactly what was needed in this case.







          share|improve this answer








          New contributor




          anvoice is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          share|improve this answer



          share|improve this answer






          New contributor




          anvoice is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.









          answered 18 hours ago









          anvoiceanvoice

          1417




          1417




          New contributor




          anvoice is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.





          New contributor





          anvoice is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.






          anvoice is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.























              7














              The command lscpu is what you are looking for. Here's an example output of the command (taken on my Raspberry Pi 3B+):



              lscpu


              which produces the following output:



              Architecture: armv7l
              Byte Order: Little Endian
              CPU(s): 4
              On-line CPU(s) list: 0-3
              Thread(s) per core: 1
              Core(s) per socket: 4
              Socket(s): 1
              Model: 4
              Model name: ARMv7 Processor rev 4 (v7l)
              CPU max MHz: 1200,0000
              CPU min MHz: 600,0000
              BogoMIPS: 38.40
              Flags: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32



              Another option is the inxi command (you might have to install it if not present with sudo apt install inxi). Use the flag -C as follows:



              inxi -C


              which produces the following output:



              CPU: Quad core ARMv7 rev 4 (v7l) (-MCP-) (ARM) 
              clock speeds: max: 1200 MHz 1: 1200 MHz 2: 1200 MHz 3: 1200 MHz 4: 1200 MHz



              As for identifying which chip your board has, you can check the chip on the board as well the manufacturers website for info and as well as the different selling outlets for getting technical details.






              share|improve this answer

























              • Thank you, that definitely gives extra information. However, the model name when I run lscpu is listed as Cortex A-53, which is on both the pi 2 and 3 I believe. Do you happen to know of a more specific command/file which can distinguish between these two boards?

                – anvoice
                20 hours ago











              • Normaly the board type and revision is printed on the board too, so you might be able to check that, otherwise I'm out of clues.

                – Videonauth
                20 hours ago











              • I see. I know what my board is, but a library maintainer needs this info to adjust his library to work with my hardware and software. Tried inxi, it also gives generic output only. Really appreciate the help though.

                – anvoice
                20 hours ago






              • 1





                As for the library you want to use, there's only one question. is there a library which provides the same function you need or not. This is the information you can get from your machine program wise. On desktop computers there might be more information to get on the CPU version, the raspberry lacks in that regard a bit as putting all this information in some chips is adding to the costs.

                – Videonauth
                19 hours ago






              • 1





                Current inxi (3.0.xx) has way better ARM support than legacy inxi (2.xx.yy), which I think is what you find in 18-4. That will do its level best to give quite a bit of information about the actual SBC device itself. On rasberry pi 3 the only thing it's not catching is the mmc wifi device, which is too complicated to grab data on, but otherwise the report for pi 3 is quite complete in new inxi. Legacy inxi had only rudimentary ARM support. Compare inxi -Fxxx or -v7 on legacy and current on any pi device and you'll see what I mean.

                – Lizardx
                18 hours ago
















              7














              The command lscpu is what you are looking for. Here's an example output of the command (taken on my Raspberry Pi 3B+):



              lscpu


              which produces the following output:



              Architecture: armv7l
              Byte Order: Little Endian
              CPU(s): 4
              On-line CPU(s) list: 0-3
              Thread(s) per core: 1
              Core(s) per socket: 4
              Socket(s): 1
              Model: 4
              Model name: ARMv7 Processor rev 4 (v7l)
              CPU max MHz: 1200,0000
              CPU min MHz: 600,0000
              BogoMIPS: 38.40
              Flags: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32



              Another option is the inxi command (you might have to install it if not present with sudo apt install inxi). Use the flag -C as follows:



              inxi -C


              which produces the following output:



              CPU: Quad core ARMv7 rev 4 (v7l) (-MCP-) (ARM) 
              clock speeds: max: 1200 MHz 1: 1200 MHz 2: 1200 MHz 3: 1200 MHz 4: 1200 MHz



              As for identifying which chip your board has, you can check the chip on the board as well the manufacturers website for info and as well as the different selling outlets for getting technical details.






              share|improve this answer

























              • Thank you, that definitely gives extra information. However, the model name when I run lscpu is listed as Cortex A-53, which is on both the pi 2 and 3 I believe. Do you happen to know of a more specific command/file which can distinguish between these two boards?

                – anvoice
                20 hours ago











              • Normaly the board type and revision is printed on the board too, so you might be able to check that, otherwise I'm out of clues.

                – Videonauth
                20 hours ago











              • I see. I know what my board is, but a library maintainer needs this info to adjust his library to work with my hardware and software. Tried inxi, it also gives generic output only. Really appreciate the help though.

                – anvoice
                20 hours ago






              • 1





                As for the library you want to use, there's only one question. is there a library which provides the same function you need or not. This is the information you can get from your machine program wise. On desktop computers there might be more information to get on the CPU version, the raspberry lacks in that regard a bit as putting all this information in some chips is adding to the costs.

                – Videonauth
                19 hours ago






              • 1





                Current inxi (3.0.xx) has way better ARM support than legacy inxi (2.xx.yy), which I think is what you find in 18-4. That will do its level best to give quite a bit of information about the actual SBC device itself. On rasberry pi 3 the only thing it's not catching is the mmc wifi device, which is too complicated to grab data on, but otherwise the report for pi 3 is quite complete in new inxi. Legacy inxi had only rudimentary ARM support. Compare inxi -Fxxx or -v7 on legacy and current on any pi device and you'll see what I mean.

                – Lizardx
                18 hours ago














              7












              7








              7







              The command lscpu is what you are looking for. Here's an example output of the command (taken on my Raspberry Pi 3B+):



              lscpu


              which produces the following output:



              Architecture: armv7l
              Byte Order: Little Endian
              CPU(s): 4
              On-line CPU(s) list: 0-3
              Thread(s) per core: 1
              Core(s) per socket: 4
              Socket(s): 1
              Model: 4
              Model name: ARMv7 Processor rev 4 (v7l)
              CPU max MHz: 1200,0000
              CPU min MHz: 600,0000
              BogoMIPS: 38.40
              Flags: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32



              Another option is the inxi command (you might have to install it if not present with sudo apt install inxi). Use the flag -C as follows:



              inxi -C


              which produces the following output:



              CPU: Quad core ARMv7 rev 4 (v7l) (-MCP-) (ARM) 
              clock speeds: max: 1200 MHz 1: 1200 MHz 2: 1200 MHz 3: 1200 MHz 4: 1200 MHz



              As for identifying which chip your board has, you can check the chip on the board as well the manufacturers website for info and as well as the different selling outlets for getting technical details.






              share|improve this answer















              The command lscpu is what you are looking for. Here's an example output of the command (taken on my Raspberry Pi 3B+):



              lscpu


              which produces the following output:



              Architecture: armv7l
              Byte Order: Little Endian
              CPU(s): 4
              On-line CPU(s) list: 0-3
              Thread(s) per core: 1
              Core(s) per socket: 4
              Socket(s): 1
              Model: 4
              Model name: ARMv7 Processor rev 4 (v7l)
              CPU max MHz: 1200,0000
              CPU min MHz: 600,0000
              BogoMIPS: 38.40
              Flags: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm crc32



              Another option is the inxi command (you might have to install it if not present with sudo apt install inxi). Use the flag -C as follows:



              inxi -C


              which produces the following output:



              CPU: Quad core ARMv7 rev 4 (v7l) (-MCP-) (ARM) 
              clock speeds: max: 1200 MHz 1: 1200 MHz 2: 1200 MHz 3: 1200 MHz 4: 1200 MHz



              As for identifying which chip your board has, you can check the chip on the board as well the manufacturers website for info and as well as the different selling outlets for getting technical details.







              share|improve this answer














              share|improve this answer



              share|improve this answer








              edited 10 hours ago









              user7761803

              152




              152










              answered 20 hours ago









              VideonauthVideonauth

              24.8k1273102




              24.8k1273102












              • Thank you, that definitely gives extra information. However, the model name when I run lscpu is listed as Cortex A-53, which is on both the pi 2 and 3 I believe. Do you happen to know of a more specific command/file which can distinguish between these two boards?

                – anvoice
                20 hours ago











              • Normaly the board type and revision is printed on the board too, so you might be able to check that, otherwise I'm out of clues.

                – Videonauth
                20 hours ago











              • I see. I know what my board is, but a library maintainer needs this info to adjust his library to work with my hardware and software. Tried inxi, it also gives generic output only. Really appreciate the help though.

                – anvoice
                20 hours ago






              • 1





                As for the library you want to use, there's only one question. is there a library which provides the same function you need or not. This is the information you can get from your machine program wise. On desktop computers there might be more information to get on the CPU version, the raspberry lacks in that regard a bit as putting all this information in some chips is adding to the costs.

                – Videonauth
                19 hours ago






              • 1





                Current inxi (3.0.xx) has way better ARM support than legacy inxi (2.xx.yy), which I think is what you find in 18-4. That will do its level best to give quite a bit of information about the actual SBC device itself. On rasberry pi 3 the only thing it's not catching is the mmc wifi device, which is too complicated to grab data on, but otherwise the report for pi 3 is quite complete in new inxi. Legacy inxi had only rudimentary ARM support. Compare inxi -Fxxx or -v7 on legacy and current on any pi device and you'll see what I mean.

                – Lizardx
                18 hours ago


















              • Thank you, that definitely gives extra information. However, the model name when I run lscpu is listed as Cortex A-53, which is on both the pi 2 and 3 I believe. Do you happen to know of a more specific command/file which can distinguish between these two boards?

                – anvoice
                20 hours ago











              • Normaly the board type and revision is printed on the board too, so you might be able to check that, otherwise I'm out of clues.

                – Videonauth
                20 hours ago











              • I see. I know what my board is, but a library maintainer needs this info to adjust his library to work with my hardware and software. Tried inxi, it also gives generic output only. Really appreciate the help though.

                – anvoice
                20 hours ago






              • 1





                As for the library you want to use, there's only one question. is there a library which provides the same function you need or not. This is the information you can get from your machine program wise. On desktop computers there might be more information to get on the CPU version, the raspberry lacks in that regard a bit as putting all this information in some chips is adding to the costs.

                – Videonauth
                19 hours ago






              • 1





                Current inxi (3.0.xx) has way better ARM support than legacy inxi (2.xx.yy), which I think is what you find in 18-4. That will do its level best to give quite a bit of information about the actual SBC device itself. On rasberry pi 3 the only thing it's not catching is the mmc wifi device, which is too complicated to grab data on, but otherwise the report for pi 3 is quite complete in new inxi. Legacy inxi had only rudimentary ARM support. Compare inxi -Fxxx or -v7 on legacy and current on any pi device and you'll see what I mean.

                – Lizardx
                18 hours ago

















              Thank you, that definitely gives extra information. However, the model name when I run lscpu is listed as Cortex A-53, which is on both the pi 2 and 3 I believe. Do you happen to know of a more specific command/file which can distinguish between these two boards?

              – anvoice
              20 hours ago





              Thank you, that definitely gives extra information. However, the model name when I run lscpu is listed as Cortex A-53, which is on both the pi 2 and 3 I believe. Do you happen to know of a more specific command/file which can distinguish between these two boards?

              – anvoice
              20 hours ago













              Normaly the board type and revision is printed on the board too, so you might be able to check that, otherwise I'm out of clues.

              – Videonauth
              20 hours ago





              Normaly the board type and revision is printed on the board too, so you might be able to check that, otherwise I'm out of clues.

              – Videonauth
              20 hours ago













              I see. I know what my board is, but a library maintainer needs this info to adjust his library to work with my hardware and software. Tried inxi, it also gives generic output only. Really appreciate the help though.

              – anvoice
              20 hours ago





              I see. I know what my board is, but a library maintainer needs this info to adjust his library to work with my hardware and software. Tried inxi, it also gives generic output only. Really appreciate the help though.

              – anvoice
              20 hours ago




              1




              1





              As for the library you want to use, there's only one question. is there a library which provides the same function you need or not. This is the information you can get from your machine program wise. On desktop computers there might be more information to get on the CPU version, the raspberry lacks in that regard a bit as putting all this information in some chips is adding to the costs.

              – Videonauth
              19 hours ago





              As for the library you want to use, there's only one question. is there a library which provides the same function you need or not. This is the information you can get from your machine program wise. On desktop computers there might be more information to get on the CPU version, the raspberry lacks in that regard a bit as putting all this information in some chips is adding to the costs.

              – Videonauth
              19 hours ago




              1




              1





              Current inxi (3.0.xx) has way better ARM support than legacy inxi (2.xx.yy), which I think is what you find in 18-4. That will do its level best to give quite a bit of information about the actual SBC device itself. On rasberry pi 3 the only thing it's not catching is the mmc wifi device, which is too complicated to grab data on, but otherwise the report for pi 3 is quite complete in new inxi. Legacy inxi had only rudimentary ARM support. Compare inxi -Fxxx or -v7 on legacy and current on any pi device and you'll see what I mean.

              – Lizardx
              18 hours ago






              Current inxi (3.0.xx) has way better ARM support than legacy inxi (2.xx.yy), which I think is what you find in 18-4. That will do its level best to give quite a bit of information about the actual SBC device itself. On rasberry pi 3 the only thing it's not catching is the mmc wifi device, which is too complicated to grab data on, but otherwise the report for pi 3 is quite complete in new inxi. Legacy inxi had only rudimentary ARM support. Compare inxi -Fxxx or -v7 on legacy and current on any pi device and you'll see what I mean.

              – Lizardx
              18 hours ago












              1














              I attempted to port pigpio to Debian arm64, in the end my attempt failed because I discovererd that the Debian arm64 kernel doesn't support the userspace mailbox interface that pigpio relies on, but in doing so I did some research on how to detect Pis while running Debian arm64 kernels. I suspect this will also work for ubuntu arm64.



              As you have discovered /proc/cpuinfo only has CPU core information on these kernels. Fortunately the information can be found elsewhere in /proc



              Firstly to check if the device is a Pi or not, I checked /proc/device-tree/model , this has a text string describing the device, so false positives are unlikely.



              To get the revision code I used /proc/device-tree/system/linux,revision , this contains the revision code as a big-endian binary integer. So it needs to be read out of the file as a binary integer, then converted to little-endian (I used ntohl for this).



              You can see my code at https://github.com/joan2937/pigpio/pull/255/commits/2e229d667fde8a2a881d5aa8482b2bb936b09f26






              share|improve this answer























              • Thank you, that is indeed what I was looking for.

                – anvoice
                3 hours ago















              1














              I attempted to port pigpio to Debian arm64, in the end my attempt failed because I discovererd that the Debian arm64 kernel doesn't support the userspace mailbox interface that pigpio relies on, but in doing so I did some research on how to detect Pis while running Debian arm64 kernels. I suspect this will also work for ubuntu arm64.



              As you have discovered /proc/cpuinfo only has CPU core information on these kernels. Fortunately the information can be found elsewhere in /proc



              Firstly to check if the device is a Pi or not, I checked /proc/device-tree/model , this has a text string describing the device, so false positives are unlikely.



              To get the revision code I used /proc/device-tree/system/linux,revision , this contains the revision code as a big-endian binary integer. So it needs to be read out of the file as a binary integer, then converted to little-endian (I used ntohl for this).



              You can see my code at https://github.com/joan2937/pigpio/pull/255/commits/2e229d667fde8a2a881d5aa8482b2bb936b09f26






              share|improve this answer























              • Thank you, that is indeed what I was looking for.

                – anvoice
                3 hours ago













              1












              1








              1







              I attempted to port pigpio to Debian arm64, in the end my attempt failed because I discovererd that the Debian arm64 kernel doesn't support the userspace mailbox interface that pigpio relies on, but in doing so I did some research on how to detect Pis while running Debian arm64 kernels. I suspect this will also work for ubuntu arm64.



              As you have discovered /proc/cpuinfo only has CPU core information on these kernels. Fortunately the information can be found elsewhere in /proc



              Firstly to check if the device is a Pi or not, I checked /proc/device-tree/model , this has a text string describing the device, so false positives are unlikely.



              To get the revision code I used /proc/device-tree/system/linux,revision , this contains the revision code as a big-endian binary integer. So it needs to be read out of the file as a binary integer, then converted to little-endian (I used ntohl for this).



              You can see my code at https://github.com/joan2937/pigpio/pull/255/commits/2e229d667fde8a2a881d5aa8482b2bb936b09f26






              share|improve this answer













              I attempted to port pigpio to Debian arm64, in the end my attempt failed because I discovererd that the Debian arm64 kernel doesn't support the userspace mailbox interface that pigpio relies on, but in doing so I did some research on how to detect Pis while running Debian arm64 kernels. I suspect this will also work for ubuntu arm64.



              As you have discovered /proc/cpuinfo only has CPU core information on these kernels. Fortunately the information can be found elsewhere in /proc



              Firstly to check if the device is a Pi or not, I checked /proc/device-tree/model , this has a text string describing the device, so false positives are unlikely.



              To get the revision code I used /proc/device-tree/system/linux,revision , this contains the revision code as a big-endian binary integer. So it needs to be read out of the file as a binary integer, then converted to little-endian (I used ntohl for this).



              You can see my code at https://github.com/joan2937/pigpio/pull/255/commits/2e229d667fde8a2a881d5aa8482b2bb936b09f26







              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered 5 hours ago









              Peter GreenPeter Green

              1,3501610




              1,3501610












              • Thank you, that is indeed what I was looking for.

                – anvoice
                3 hours ago

















              • Thank you, that is indeed what I was looking for.

                – anvoice
                3 hours ago
















              Thank you, that is indeed what I was looking for.

              – anvoice
              3 hours ago





              Thank you, that is indeed what I was looking for.

              – anvoice
              3 hours ago











              0














              The architecture is armhf.

              CPU is Broadcom BCM2837






              share|improve this answer








              New contributor




              owl_blink is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.
























                0














                The architecture is armhf.

                CPU is Broadcom BCM2837






                share|improve this answer








                New contributor




                owl_blink is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






















                  0












                  0








                  0







                  The architecture is armhf.

                  CPU is Broadcom BCM2837






                  share|improve this answer








                  New contributor




                  owl_blink is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.










                  The architecture is armhf.

                  CPU is Broadcom BCM2837







                  share|improve this answer








                  New contributor




                  owl_blink is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  share|improve this answer



                  share|improve this answer






                  New contributor




                  owl_blink is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.









                  answered 7 hours ago









                  owl_blinkowl_blink

                  1




                  1




                  New contributor




                  owl_blink is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.





                  New contributor





                  owl_blink is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.






                  owl_blink is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                  Check out our Code of Conduct.




















                      anvoice is a new contributor. Be nice, and check out our Code of Conduct.









                      draft saved

                      draft discarded


















                      anvoice is a new contributor. Be nice, and check out our Code of Conduct.












                      anvoice is a new contributor. Be nice, and check out our Code of Conduct.











                      anvoice is a new contributor. Be nice, and check out our Code of Conduct.














                      Thanks for contributing an answer to Ask Ubuntu!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid


                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.

                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function ()
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1130244%2fraspberry-pi-3-b-with-ubuntu-18-04-server-arm64-what-pi-version%23new-answer', 'question_page');

                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Благоевград Съдържание География | История | Население | Политика | Икономика и инфрастуктура | Здравеопазване | Образование и наука | Култура и забавления | Забележителности | Личности | Литература | Външни препратки | Бележки | Навигация42°01′18.99″ с. ш. 23°05′51″ и. д. / 42.021944° с. ш. 23.0975° и. д.*БлагоевградразширитередактиранеОфициален уебсайт на община БлагоевградНовинарски портал на Благоевград – blagoevgrad.euСайтове за БлагоевградНационален статистически институтdariknews.bgГригоровичъ, Викторъ. „Очеркъ путешествія по Европейской Турціи“. Москва, 1877.Стрезов, Георги. Два санджака от Източна Македония. Периодично списание на Българското книжовно дружество в Средец, кн. XXXVII и XXXVIII, 1891, стр. 18 – 19.Македония. Етнография и статистикаГаджанов, Димитър Г. Мюсюлманското население в Новоосвободените земи, в: Научна експедиция в Македония и Поморавието 1916, Военноиздателски комплекс „Св. Георги Победоносец“, Университетско издателство „Св. Климент Охридски“, София, 1993, стр. 244.паметник на незнайния четник&cd=18&hl=en&ct=clnk&client=firefox-a „История на днешен Благоевград“, взето от www.museumblg.com на 16 март 2010 г.„Справка за населението на град Благоевград, община Благоевград, област Благоевград, НСИ“„The population of all towns and villages in Blagoevgrad Province with 50 inhabitants or more according to census results and latest official estimates“„Ethnic composition, all places: 2011 census“История на Неврокопска епархия.Национален статистически институтМюсюлманско изповедание. Главно мюфтийствоНационален публичен регистър на храмовете в БългарияМюсюлманско изповедание. Главно мюфтийствоwww.dnes.bg Джамията в Благоевград не била паленаwww.sesc-bg.orgСписък на побратимени градовеТехническо побратимяванеГУМ грейва в цветовете на нощен Лас Вегас под името „Largo“, „МОЛ Благоевград“..., в. „Струма“grabo.bgwww.cinemaxbg.comррр4238731-067cad53a-0546-417b-a3d3-51e49b1d2232147736077147736077

                      What is the best defense strategy for Survival in Grand Theft Auto Online?What is JP used for in Grand Theft Auto Online?How do I setup a Crew HQ in Grand Theft Auto Online?How does stealth work in Grand Theft Auto Online?Is it possible to own more than 10 cars in Grand Theft Auto online?Where to find truck/trailers in Grand Theft Auto OnlineWhat are some of the best missions to do on Grand Theft Auto 5 onlineFastest Car in Grand Theft Auto V PCHow to setup a Crew vs Crew online session in Grand Theft Auto Online?Grand theft auto 5 crossplayingRestart Grand Theft Auto V Online?

                      How does Billy Russo acquire his 'Jigsaw' mask? Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara Favourite questions and answers from the 1st quarter of 2019Why does Bane wear the mask?Why does Kylo Ren wear a mask?Why did Captain America remove his mask while fighting Batroc the Leaper?How did the OA acquire her wisdom?Is Billy Breckenridge gay?How does Adrian Toomes hide his earnings from the IRS?What is the state of affairs on Nootka Sound by the end of season 1?How did Tia Dalma acquire Captain Barbossa's body?How is one “Deemed Worthy”, to acquire the Greatsword “Dawn”?How did Karen acquire the handgun?