Ryogo-X / nook_gentoo_twrp

TWRP for Nook Glowlight 4
Apache License 2.0
4 stars 2 forks source link

Backport Changes #2

Open iscilyas opened 6 months ago

iscilyas commented 6 months ago
iscilyas commented 6 months ago

@Ryogo-X

Hey!

So here are the changes I made. You should try them out.

The USB stuff (adb/mtp/none) using configfs works beautifully. And now you no longer need to bang at init.rc to get it to do what you want ;) But you'll need to change the productid/vendorid to match the nook.

BTW, I changed zImage-dtb to zImage because I believe zImage-dtb is incorrect, since (at least on the tolino) the dtb is not appended to the kernel (it works either way on the tolino, though).

I think not-hardcoding the rotation (in the EPD patch) is a generally good idea. TW_ROTATION := 90 (along with the various "flip" settings) worked well for me.

I threw in that debugfs stuff since the source I was copying init.recovery.usb.rc from had it as well... not really important either way I guess.

BTW, check out the cool "materialized" TWRP theme at my releases page. It's super sweet.

Ryogo-X commented 6 months ago

@iscilyas thank you. I don't have a test device on my hands right now, but I hope to merge back your changes and test them one day :)