12-22-2017, 08:59 AM
(12-22-2017, 05:23 AM)xalius Wrote: Hi, POWER_SUPPLY_TECHNOLOGY and POWER_SUPPLY_VOLTAGE_MIN_DESIGN and some other parameters are hardcoded in the linux driver source, but they are not really used anywhere, so the issue is mostly cosmetic. The relevant parameters are all read from the devicetree...
As for which devicetree blob (dtb) is used (or rather passed to the kernel on boot), this is configured in the u-boot bootloader setup, check boot.cmd/boot.scr files for the load command. Basically u-boot has a function to identify the board from some distinct features (type and size of memory, SID register of the A64, ...) and then sets an environment variable for the u-boot process and for the load command that moves the dtb, initrd and kernel image into RAM...
Of corse these things are in the source code but somehow I have to be able to select the technology shouldn't I ? According to this.
LiFe which is currently is set on my device is LIFE = 4 and I would like to set LIPO = 3 but I have not found any value I could definitly define as this variable
Also the POWER_SUPPLY_VOLTAGE_MIN_DESIGN should be in uV like described here and is currently at 3300 which would be 0,003mV with which the battery would definitly break also I dont think that the AXP can us that low Voltage to still run problerly and supply 5V to the board.
thanks for you answer so far