Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Support Raspberry Pi 2 with MoOde 9
#13
(09-16-2024, 06:59 AM)Prince Wrote: I just tested a different old Raspberry Pi (Model A Rev 2).

Code:
cat /proc/cpuinfo | awk -F': ' '/Revision/ {print $2}'
0008


Code:
# Without 0x17 mask it works
/var/www/util/pirev.py 

0x8    A    2.0    256MB    Sony UK    ?


Code:
# With 0x17 mask the script even crashes, as 0x08 'and'-combined with 0x17 becomes to non existing revison code 0X00.

/var/www/util/pirev.py
Traceback (most recent call last):
 File "/var/www/util/pirev.py", line 185, in <module>
   main()
 File "/var/www/util/pirev.py", line 165, in main
   rev_info = decode_new_style_code(code)
 File "/var/www/util/pirev.py", line 133, in decode_new_style_code
   old_rev = OLD_REVISION_CODES[code&0x17]
KeyError: 0
Thanks for fixing.

It's fixed for upcoming 9.1.0
Enjoy the Music!
moodeaudio.org | Mastodon Feed | GitHub
Reply


Messages In This Thread
Support Raspberry Pi 2 with MoOde 9 - by Sander - 06-15-2024, 09:14 PM
RE: Support Raspberry Pi 2 with MoOde 9 - by Tim Curtis - 09-16-2024, 10:01 AM

Forum Jump: