Issue #2177
openCleanup midas reboot patch
0%
Updated by Denis 'GNUtoo' Carikli almost 4 years ago
Sensiblemn found this patch:
<@sensiblemn> i was visually comparing the patches on tizen's website with the mainline kernel and noticed one trats2 patch from last year that hasn't been upstreamed. https://git.tizen.org/cgit/platform/kernel/linux-exynos/commit/arch/arm/boot/dts/exynos4412-trats2.dts?h=tizen_6.0&id=84ae2edc1762a22785da4f32785b2b40602ad85bIn my implementation of it I didn't create something like exynos,boot-mode.h because I assumed it wasn't exynos specific:
- On midas it's implemented in s-boot 4.0, so I've no idea if other exynos boards also have that. We know it's not in the BL1 because u-boot for midas implemented some of theses as well.
- U-boot also implement these, I also need to update the commit message to mention that, but I didn't have the time to do it yet.
Since they use it, it might be a good idea to pickup their patches about it.
I also wonder how they made download mode work as in my case It switches to download mode but the device is not visible on lsusb while if I do it through the button or reboot from the smdk4412 kernel, it's visible on USB as well.
It might need the shutdown driver as well for instance where it does a cable detection to enable charging at the next boot.
Updated by Kurtis Hanna almost 4 years ago
For completeness, I'm also providing a link to forkbomb's patch related to this: https://github.com/fourkbomb/linux/commit/315a476d9bfef220fe3ca5c2f00898d92ceed8bb#diff-d9a889696b367a484322e3667ee72b5ebd92bae3d9aa9d2595fba7a99c8b3e2a
Updated by Kurtis Hanna almost 4 years ago
I also found this tizen trats2 reboot-mode patch: https://git.tizen.org/cgit/platform/kernel/u-boot/commit/?h=accepted/tizen_6.0_unified&id=0846fd39dd79ea31c50b0055faf54dd1e0f05032
Updated by Kurtis Hanna almost 4 years ago
This trats2 patch talks about restarting a phone instead of rebooting the phone. https://git.tizen.org/cgit/platform/kernel/u-boot/commit/?h=accepted/tizen_6.0_unified&id=bfeaa9ded2338b7b17a067bee71edab2f5638df7
It looks less relevant but I figured I'd provide it anyways.