Revert "Revert "battery charge fix and use a dynamically booting ramdisk""

This reverts commit bc802db92ef3bac9bd3228ec01f4711ae7976822.

Leave the main branch as is for now