Hi all
Reading the various remarks on temperature problems with Allwinner A20 systems, I immediately suspected overheating when my boards started misbehaving . The symptoms were spontaneous reboots, with sometimes disk corruption, while there was no indication of the cause of the problem anywhere.
Somehow, increasing the cooling did not help, so I installed a kernel patch I found here: https://groups.google.com/forum/#!topic ... zoxTcepPVo
which gives access to the A20 temperature sensor which is internally wired to the resistive touch panel interface. You need to be a bit creative, applying the patch, because it does not really "fit". The first time I did it by hand, and then made a better patch.
Imagine my surprise when I noticed the chip never reached 40 degrees centigrade, with a minimal heatsink in use (22 K/W). Temperature clearly was not the problem.
I realized that the problems started at the same on both my Allwinner boards (a Cubietruck and a Phoenix A20), when I started using fast SD cards (Samsung EVO 16 GB). So I started to suspect the power supply,
Reading the current amps and voltages in $this->bbcode_second_pass_code('', '/sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/power_supply/ac/current_now
and
/sys/devices/platform/sunxi-i2c.0/i2c-0/0-0034/axp20-supplyer.28/power_supply/ac/voltage_now ') (no need to whip out your multimeter) gives something like 500 mA at 5.1 volts. which is also no reason for alarm, but this doesn't account for surges.
Changing the 2 Amp "wallwart" for a 5 Amp "brick" made all the problems go away. It is nicely chugging away compiling a kernel with 2 cores at 1008 Mhz at a balmy 39.7 degrees centigrade, and no more sudden reboots.
(compiling a kernel this way takes just under 2 hours)
I assume the above is also true for Cubieboard-2 which gets a bad rep for overheating, Off course when you put it in a box, you can expect higher temperatures and you need to provide sufficient airflow. But in case of problems I would look at the power supply first. and the patch is a big help in locating the problem.
LP