Ryogo-X / nook_gentoo_twrp

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

Is this TWRP work for Tolino Shine 4, Vision 6 and EPOS 3? #1

Open f-coco opened 8 months ago

f-coco commented 8 months ago

Seems the Shine 4, Vision 6, EPOS 3 and also Mobiscribe Origin are all using Allwinner B300. Is this TWRP can work for these devices. And another question is Is it possible to port Mobiscribe Origin's firmware to other devices like you did for old Nook and Tolino.

iscilyas commented 4 months ago

hi @f-coco. i forked this repo and built twrp for Tolino Vision 6. I've had user feedback that my build works on Shine 4 (although the screen is upside down). Not on Epos 3, though. I'm waiting for someone to send me the block list on the Epos 3 so I can try to port it to that too (if you have an Epos 3 maybe you can help).

TWRP for Vision 6/Shine 4:

https://github.com/iscilyas/tolino_b300_twrp/releases

Ryogo-X commented 4 months ago

@iscilyas if you want to try Shine 4 to have correct orientation you'll need to play with TW_IMX_EINK_ROTATE := 3; // 1-4 and RECOVERY_TOUCHSCREEN_FLIP_X := true // true/false RECOVERY_TOUCHSCREEN_SWAP_XY := true // true/false That would also require a separate build ofc.

iscilyas commented 4 months ago

@Ryogo-X thanks! i wasn't sure what exact setting to play with (and i've only had one reported user so far and i'm still waiting to hear back from him)... so thanks for pointing me in the right direction!

BTW i had a question for you about the usb vendorid/productid... I see you're using Allwinner's vendorid... i haven't done that much searching on the topic but i've noticed that sometimes there are different productids for recovery mode, mtp, etc... is using the regular device's vendorid/productid for recovery (like i did) the right thing? or is there something more complicated involved?

Ryogo-X commented 4 months ago

@iscilyas regarding vendorid/productid - tbh I don't know :) But anyways, which vid/pid you report will affect which driver windows will need to use. User pc need to have driver insatalled that supports requested functionality (mtp, adb, etc) for specific vid/pid combination.

iscilyas commented 3 months ago

Hey @Ryogo-X

@iscilyas if you want to try Shine 4 to have correct orientation you'll need to play with TW_IMX_EINK_ROTATE := 3; // 1-4 and RECOVERY_TOUCHSCREEN_FLIP_X := true // true/false RECOVERY_TOUCHSCREEN_SWAP_XY := true // true/false That would also require a separate build ofc.

So actually you had the rotation hard-coded to 90 and swapping x/y resolutions in your epd patch. I changed that and am using TW_ROTATE := 90 in BoardConfig.mk instead (yes there was a lot of hair-pulling involved until I figured that out ;))

@iscilyas regarding vendorid/productid - tbh I don't know :) But anyways, which vid/pid you report will affect which driver windows will need to use. User pc need to have driver insatalled that supports requested functionality (mtp, adb, etc) for specific vid/pid combination.

So I looked at boot.img for gentoo-4.45 and it looks like the nook (suprise surprise) is also using configfs for its usb configuration in stock. I can see you've taken a hammer to it to get it to work :) But I had mtp enabled and I was getting kernel panics. After much hair-pulling I found a configfs-based .rc file for twrp and changed it to suit my needs. It works well.

I'm going to prepare a PR in case you want my changes.

Thanks again for all the work you put into this! I don't think I'd know where to start if I didn't have your code :)