ekianjo
Hardcore Member
I have a fix ready. Will roll it out later today.
Please advise what to useSomething is better than nothing.. but this reallllllly isn't the perfect way to detect this stuff
You can detect the CPU version ID using a few methods for a more failproof detection
will clean up the git directory, it shouldn't be there.This is a useful little tool for people who are unsure about which model they are holding.
Some remarks:
The PND is 842KB, which is huge for a 1057 byte shell script. There is a ".git" directory inside, which is useless. Also the screenshot takes up more space than needed, I would just show the dialog window itself, without the desktop background.
I don't think the 1GHz units have an OMAP SoC (it's a DM3730), and in any case, OMAP is the name of the entire SoC, not just the processor.
You check for an exact match with system clockspeed 332, which will falsely classify over- or underclocked 600MHz units as 1GHz units. Better check if sys-speed is above 390; if it is, it must be a DM3730 because I don't think any OMAP3530 will clock that high. You still get false results on underclocked DM3730's if you do that, but I don't think many people will do that.
Maybe I should integrate this information as an extra panel in System Info...
If worse comes to worse - Apparently devmem2 is useable on the pandora.... so you can easily poke the SOC registers for some version IDs. wiki
Depending on the value read out in the last step, OMAPES is determined for the build.For OMAP35x/AM35x/37xx family of chipsets
./devmem2 0x48004B48 w 0x2
./devmem2 0x48004B10 w 0x1
./devmem2 0x48004B00 w 0x2
./devmem2 0x50000014 > sgxrevision.txt
I strongly recommend not to do it, those devmem2 calls makes SGX not to go into low power mode and breaks suspend. Not to mention poking SoC registers directly is evil.Depending on the value read out in the last step, OMAPES is determined for the build.For OMAP35x/AM35x/37xx family of chipsets
./devmem2 0x48004B48 w 0x2
./devmem2 0x48004B10 w 0x1
./devmem2 0x48004B00 w 0x2
./devmem2 0x50000014 > sgxrevision.txt
Use OMAPES=5.x
- If value == 0x10205
Use OMAPES=3.x
- If value == 0x10201
Use OMAPES=2.x
- If value == 0x10003
How about cat /proc/pvr/version ? is it safe?I strongly recommend not to do it, those devmem2 calls makes SGX not to go into low power mode and breaks suspend. Not to mention poking SoC registers directly is evil.Depending on the value read out in the last step, OMAPES is determined for the build.For OMAP35x/AM35x/37xx family of chipsets
./devmem2 0x48004B48 w 0x2
./devmem2 0x48004B10 w 0x1
./devmem2 0x48004B00 w 0x2
./devmem2 0x50000014 > sgxrevision.txt
Use OMAPES=5.x
- If value == 0x10205
Use OMAPES=3.x
- If value == 0x10201
Use OMAPES=2.x
- If value == 0x10003
I'm not going to say I recommended doing that.. it's just plan C because it "works"I strongly recommend not to do it, those devmem2 calls makes SGX not to go into low power mode and breaks suspend. Not to mention poking SoC registers directly is evil.Depending on the value read out in the last step, OMAPES is determined for the build.For OMAP35x/AM35x/37xx family of chipsets
./devmem2 0x48004B48 w 0x2
./devmem2 0x48004B10 w 0x1
./devmem2 0x48004B00 w 0x2
./devmem2 0x50000014 > sgxrevision.txt
Use OMAPES=5.x
- If value == 0x10205
Use OMAPES=3.x
- If value == 0x10201
Use OMAPES=2.x
- If value == 0x10003
Notaz so what do you recommend yourself, personally? Is the way I am in doing in PandoraModelCheck good enough at this stage? Would it work most of the time?Safe but not all SGX driver versions provide consistent contents of that file, so it won't work for some users.
Not very practical to shut down the unit just for thatMaybe the safest way to do this is to display a dialogbox:
"Look into the batterycompartment!"
if [ $(awk '/MemTotal:/{print $2}'</proc/meminfo) -lt 264000 ];then
echo "Original Unit"
elif [[ $(awk -F: '/CPU variant/{print $2}' < /proc/cpuinfo) == "0x1" ]];then
echo 512Unit
else
echo "1Ghz"
fi