Modernine TV
ͼ : ͼ駢 admin     ʶҹ admin      ҷ駢 ѹ : 4 ԧҤ 2560 23:10:00      ١Դҹ 30   30 / 0    ŴҴѡ ŴҴѡ 
: [ ]      Raspberry Pi      Raspberry Pi      Raspberry Pi
ͧ : How to Check the Software and Hardware Version of a Raspberry Pi


There are a number of commands which can be used to check the hardware and software versions on a Raspberry Pi.



vcgencmd version
Mar 15 2016 14:47:28
Copyright (c) 2012 Broadcom
version 1bf9a9a77026af9128a339c82d72e331d3532ee4 (clean) (release)

vcgencmd measure_temp
temp=51.5'C

vcgencmd measure_volts
volt=1.2000V

vcgencmd measure_clock arm
frequency(45)=600064000

vcgencmd measure_clock core
frequency(1)=250000000

vcgencmd get_mem arm
arm=448M

vcgencmd get_mem gpu
gpu=64M

vcgencmd get_mem arm && vcgencmd get_mem gpu
arm=448M
gpu=64M

vcgencmd get_config int
audio_pwm_mode=1
audio_sdm_mod_order=2
config_hdmi_boost=5
disable_auto_turbo=1
disable_commandline_tags=2
emmc_pll_core=1
force_eeprom_read=1
force_pwm_open=1
framebuffer_ignore_alpha=1
framebuffer_swap=1
hdmi_force_cec_address=65535
init_uart_clock=0x2dc6c0
lcd_framerate=60
pause_burst_frames=1
program_serial_random=1
temp_limit=85

/opt/vc/bin/tvservice -s
state 0x120006 [DVI DMT (81) RGB full 16:9], 1366x768 @ 60.00Hz, progressive


tvservice -m CEA

Group CEA has 16 modes:
           mode 1: 640x480 @ 60Hz 4:3, clock:25MHz progressive
           mode 2: 720x480 @ 60Hz 4:3, clock:27MHz progressive
           mode 3: 720x480 @ 60Hz 16:9, clock:27MHz progressive
           mode 4: 1280x720 @ 60Hz 16:9, clock:74MHz progressive
           mode 5: 1920x1080 @ 60Hz 16:9, clock:74MHz interlaced
           mode 6: 720x480 @ 60Hz 4:3, clock:27MHz x2 interlaced
           mode 7: 720x480 @ 60Hz 16:9, clock:27MHz x2 interlaced
  (native) mode 16: 1920x1080 @ 60Hz 16:9, clock:148MHz progressive
           mode 17: 720x576 @ 50Hz 4:3, clock:27MHz progressive
           mode 18: 720x576 @ 50Hz 16:9, clock:27MHz progressive
           mode 19: 1280x720 @ 50Hz 16:9, clock:74MHz progressive
           mode 20: 1920x1080 @ 50Hz 16:9, clock:74MHz interlaced
           mode 21: 720x576 @ 50Hz 4:3, clock:27MHz x2 interlaced
           mode 22: 720x576 @ 50Hz 16:9, clock:27MHz x2 interlaced
           mode 31: 1920x1080 @ 50Hz 16:9, clock:148MHz progressive
           mode 32: 1920x1080 @ 24Hz 16:9, clock:74MHz progressive


tvservice -m DMT

Group DMT has 11 modes:
           mode 4: 640x480 @ 60Hz 4:3, clock:25MHz progressive
           mode 6: 640x480 @ 75Hz 4:3, clock:31MHz progressive
           mode 9: 800x600 @ 60Hz 4:3, clock:40MHz progressive
           mode 11: 800x600 @ 75Hz 4:3, clock:49MHz progressive
           mode 16: 1024x768 @ 60Hz 4:3, clock:65MHz progressive
           mode 18: 1024x768 @ 75Hz 4:3, clock:78MHz progressive
           mode 21: 1152x864 @ 75Hz 4:3, clock:108MHz progressive
           mode 35: 1280x1024 @ 60Hz 5:4, clock:108MHz progressive
           mode 36: 1280x1024 @ 75Hz 5:4, clock:135MHz progressive
           mode 51: 1600x1200 @ 60Hz 4:3, clock:162MHz progressive
  (prefer) mode 68: 1920x1200 @ 60Hz 16:10, clock:154MHz progressive





Ǩͺ ͹ Over Head

 watch '(vcgencmd measure_temp; vcgencmd measure_clock arm)'





Version of Debian ;


 
pi@raspberrypi ~ $ cat /etc/debian_version
 7.8

2015-05-05-raspbian-wheezy



 
pi@raspberrypi ~ $ cat /etc/debian_version
 8.0

2016-02-03-raspbian-jessie


Kernel Version ;

uname -a can be used to see what kernel version is running


 
pi@raspberrypi ~ $ uname -a
 Linux raspberrypi 4.1.19-v7+ #858 SMP Tue Mar 15 15:56:00 GMT 2016 armv7l GNU/Linux

2016-02-03-raspbian-jessie





The Raspberry Pi 3 Model B starts at 1.2Ghz regardless of what /boot/config.txt says. 
Here are the results of my clock speed files on my Pi 3 with config.txt not edited from a fresh card :


 
pi@raspberrypi ~ $ sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_max_freq
 1200000




 
pi@raspberrypi ~ $ sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
 600000



When playing music with mpg321:


 
pi@raspberrypi ~ $ sudo cat /sys/devices/system/cpu/cpu0/cpufreq/cpuinfo_cur_freq
 1200000



You do not need to change /boot/config.txt if you want your Pi 3 running at 1.2Ghz, if you want to overclock it, that is a whole different question. Hope this helps.

 
pi@raspberrypi ~ $ sudo nano /boot/config.txt





Raspberry Pi 3 Overclock options

arm_freq
Frequency of ARM in MHz. (Raspberry Pi 3 Overclock)

core_freq
Frequency of GPU processor core in MHz. It has an impact on ARM performance since it drives L2 cache.

sdram_freq
Frequency of SDRAM in MHz.

over_voltage
ARM/GPU core voltage adjust. Values above 6 are only allowed when force_turbo or current_limit_override are specified (which set the warranty bit).

force_turbo
Disables dynamic cpufreq driver and minimum settings below. Voids Warranty.

initial_turbo
Enables turbo mode from boot for the given value in seconds (up to 60) or until cpufreq sets a frequency. Default 0

arm_freq_min
Minimum value of arm_freq used for dynamic clocking.

core_freq_min
Minimum value of core_freq used for dynamic clocking.

sdram_freq_min
Minimum value of sdram_freq used for dynamic clocking.

temp_limit
Overheat protection. Sets clocks and voltages to default when the SoC reaches this Celsius value. Setting this higher than default voids warranty. Default 85

disable_splash
If set to 1, avoids the rainbow splash screen on boot.

boot_delay
Wait for x number of seconds in start.elf before loading kernel. Default 1

gpu_mem
GPU memory in megabyte. Sets the memory split between the ARM and GPU. ARM gets the remaining memory.

==========================================

If they are at default settings. On Pi2 arm_freq=900 is actually an explicit overclock enabled by default so it does show. Add core_freq=260 to config.txt and then it will show (after a reboot).

If you want to know the current frequencies then:

vcgencmd measure_clock core
vcgencmd measure_clock arm
vcgencmd measure_clock h264
vcgencmd measure_clock isp
vcgencmd measure_clock v3d

The command prints the values in the "config" structure that are non-zero. The "config" structure is mostly zero on boot, but entries in config.txt may override it.

vcgencmd get_config core_freq
vcgencmd get_config gpu_freq
vcgencmd get_config h264_freq
vcgencmd get_config isp_freq
vcgencmd get_config v3d_freq





vcgencmd measure_volts 

Shows voltage. id can be one of core, sdram_c, sdram_i, sdram_p, and defaults to core if not specified.


 
pi@raspberrypi ~ $ \
 > for id in core sdram_c sdram_i sdram_p ; do \
 >      echo -e "$id:\t$(vcgencmd measure_volts $id)" ; \
 > done







vcgencmd measure_clock

Shows clock frequency, clock can be one of arm, core, h264, isp, v3d, uart, pwm, emmc, pixel, vec, hdmi, dpi.


 
pi@raspberrypi ~ $ \
 > for src in arm core h264 isp v3d uart pwm emmc pixel vec hdmi dpi ; do \
 >      echo -e "$src:\t$(vcgencmd measure_clock $src)" ; \
 > done





Ѵ ˹ҷѷ ӡѴ ( Ҫ ) ͡ͺ෤մԨԵ ȭ