Hi,
Am 06.06.2018 um 10:39 schrieb Grazvydas Ignotas notasas@gmail.com:
Hi,
On Tue, Jun 5, 2018 at 1:24 PM, H. Nikolaus Schaller hns@goldelico.com wrote:
Hi,
Am 05.06.2018 um 12:12 schrieb Michael Mrozek EvilDragon@openpandora.org:
Am Freitag, den 01.06.2018, 11:33 +0300 schrieb Grazvydas Ignotas:
Hi,
My unit doesn't boot without a battery (too weak supply?),
It's probably the following issue: PALMAS sets up the USB port to not allow more than 500mA in U-Boot.
it is the bq24297 which initially limits the current.
That's not enough for loading the kernel, so it crashes and resets.
The kernel increases the allowed current on USB ports, so once the kernel has booted once, it should boot without a battery as well.
So: Boot up with battery in, remove the battery. Then it should work without a battery just fine, even if you power it down and restart it (as long as you don't remove the power).
Setting up this and other parameters for the PALMAS with U-Boot is something we still need to do.
AFAIR we have code in U-Boot to do that - but not in MLO - so it may still come too late.
It's annoying you can't boot without a battery, currently.
Indeed. Although this is mainly a problem for boards without plastics case.
Well for me it happens quite late during the boot, in the middle of systemd starting services, so the kernel has had a chance to run for several seconds. It could be it's loading the charger driver at that time, although I haven't confirmed this.
Yes, that could be. If I remember correctly, the bq24297 driver is loaded around that time. It might it turns down/limit power for a short moment (maybe we must write registers in a different sequence).
Or it could be that the full system has a power consumption peak at that time and the bq24297 isn't the problem.
Also it only gets that far if the 2A charger is connected to USB3 port, if it's on the debug port, the system dies before the kernel is loaded (this one is probably because of missing charger configuration in MLO?).
GraÅžvydas
BR, Nikolaus