a technical notebook
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

65 lines
2.2 KiB

  1. <h1>Tuesday, January 27</h1>
  2. what version of what linux distribution is this?
  3. ------------------------------------------------
  4. Some luck _may_ be had with one or more of:
  5. root@beaglebone:~# uname -a
  6. Linux beaglebone 3.8.13-bone47 #1 SMP Fri Apr 11 01:36:09 UTC 2014 armv7l GNU/Linux
  7. root@beaglebone:~# lsb_release -a
  8. No LSB modules are available.
  9. Distributor ID: Debian
  10. Description: Debian GNU/Linux 7.8 (wheezy)
  11. Release: 7.8
  12. Codename: wheezy
  13. root@beaglebone:~# cat /etc/debian_version
  14. 7.8
  15. root@beaglebone:~# cat /etc/dogtag
  16. BeagleBoard.org BeagleBone Debian Image 2014-04-23
  17. root@beaglebone:~# cat /etc/os-release
  18. PRETTY_NAME="Debian GNU/Linux 7 (wheezy)"
  19. NAME="Debian GNU/Linux"
  20. VERSION_ID="7"
  21. VERSION="7 (wheezy)"
  22. ID=debian
  23. ANSI_COLOR="1;31"
  24. HOME_URL="http://www.debian.org/"
  25. SUPPORT_URL="http://www.debian.org/support/"
  26. BUG_REPORT_URL="http://bugs.debian.org/"
  27. armhf
  28. -----
  29. [Is it armhf or armel?](https://blogs.oracle.com/jtc/entry/is_it_armhf_or_armel):
  30. > During diagnosis, the question becomes, how can I determine whether my Linux
  31. > distribution is based on armel or armhf? Turns out this is not as
  32. > straightforward as one might think. Aside from experience and anecdotal
  33. > evidence, one possible way to ascertain whether you're running on armel or
  34. > armhf is to run the following obscure command:
  35. >
  36. > $ readelf -A /proc/self/exe | grep Tag_ABI_VFP_args
  37. >
  38. > If the Tag_ABI_VFP_args tag is found, then you're running on an armhf system.
  39. > If nothing is returned, then it's armel. To show you an example, here's what
  40. > happens on a Raspberry Pi running the Raspbian distribution:
  41. >
  42. > pi@raspberrypi:~$ readelf -A /proc/self/exe | grep Tag_ABI_VFP_args
  43. > Tag_ABI_VFP_args: VFP registers
  44. >
  45. > This indicates an armhf distro, which in fact is what Raspbian is. On the
  46. > original, soft-float Debian Wheezy distribution, here's what happens:
  47. >
  48. > pi@raspberrypi:~$ readelf -A /proc/self/exe | grep Tag_ABI_VFP_args
  49. >
  50. > Nothing returned indicates that this is indeed armel.
  51. On a recent-ish Beaglebone Black:
  52. root@beaglebone:~# readelf -A /proc/self/exe | grep Tag_ABI_VFP_args
  53. Tag_ABI_VFP_args: VFP registers