adafruit / Adafruit-PiTFT-Helper

Script to configure an installed PiTFT
MIT License
82 stars 26 forks source link

CPU Disabled on rPI 2B #22

Closed bunchc closed 6 years ago

bunchc commented 6 years ago

Hello!

After running the adafruit-pitft-helper2.sh script on an rPI 2B, raspbian stretch, every CPU but CPU was disabled.

lscpu:

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

lshw -c cpu

$ sudo lshw -c processor
  *-cpu:0
       description: CPU
       product: cpu
       physical id: 0
       bus info: cpu@0
       size: 900MHz
       capacity: 900MHz
       capabilities: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm cpufreq
  *-cpu:1 DISABLED
       description: CPU
       product: cpu
       physical id: 1
       bus info: cpu@1
       size: 900MHz
       capacity: 900MHz
       capabilities: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm cpufreq
  *-cpu:2 DISABLED
       description: CPU
       product: cpu
       physical id: 2
       bus info: cpu@2
       size: 900MHz
       capacity: 900MHz
       capabilities: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm cpufreq
  *-cpu:3 DISABLED
       description: CPU
       product: cpu
       physical id: 3
       bus info: cpu@3
       size: 900MHz
       capacity: 900MHz
       capabilities: half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm cpufreq

cpuinfo:

$ cat /proc/cpuinfo
processor   : 0
model name  : ARMv7 Processor rev 5 (v7l)
BogoMIPS    : 38.40
Features    : half thumb fastmult vfp edsp neon vfpv3 tls vfpv4 idiva idivt vfpd32 lpae evtstrm
CPU implementer : 0x41
CPU architecture: 7
CPU variant : 0x0
CPU part    : 0xc07
CPU revision    : 5

I was able to work around this by commenting out the following lines in /boot/config.txt and rebooting: https://github.com/adafruit/Adafruit-PiTFT-Helper/blob/master/adafruit-pitft-helper2.sh#L177-L185

ladyada commented 6 years ago

oops i have a typo can you try re-editing and changing

https://github.com/adafruit/Adafruit-PiTFT-Helper/blob/master/adafruit-pitft-helper2.sh#L184

to [pi 3] rather than [pi 2]?

bunchc commented 6 years ago

@ladyada took me a few days to come back to it, but that change and a reboot indeed addresses the problem. Thanks!

ladyada commented 6 years ago

fixed, closing