If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.
Hello,
I'm trying to compile TWRP from source for my MXQ (S805) Box.
I've based my device tree on this: https://github.com/TeamWin/android_device_amlogic_k200 modified with the files extracted from a dump of my recovery.img
I'm able to complete the build process, but the box is not able to boot from the resulting recovery.img (It just reboot).
How can I debug? Is there a way to log the problem?
Thank you!
PS: of course I'll upload my recovery.img when it is stable!
Hello abdul_pt ,
Sorry, I was on vacation and I just saw your reply!
Anyway eventually I was able to produce a valid TWRP for this device, but the graphics is somewhat broken:
Some updates: I think that I've found the brightness file (to fix the brightness warning). I'm compiling right now. EDIT: Brightness file fixed, device tree updated!
abdul_pt I'm trying to fix the USB right now, I can't find the lun file, but looking at the original recovery ramdisk, I've found a script with: "busybox echo /dev/block/cache > /sys/devices/lm0/gadget/gadget-lun0/file". Strangely enough, the path /sys/devices/lm0/gadget/gadget-lun0/ doesn't exist. Is it ok to run this script when TWRP is booting? maybe in early-init? Thank you
EDIT: FIXED lun file! OTG is OK now! abdul_pt we have last problem here: my device tree fail to produce a working recovery.img, I've to manually copy the TWRP ramdisk and paste it on the stock recovery (replacing the stock ramdisk), I'm pretty sure that this is due to the second stage bootloader, or maybe due to wrong address. Do you have any clue?
Anyway TWRP is now working, I'll test it tonight and upload the img on a thread here PS: I'll add your name in the credit on the device tree repo soon.
Some updates: I think that I've found the brightness file (to fix the brightness warning). I'm compiling right now. EDIT: Brightness file fixed, device tree updated!
abdul_pt I'm trying to fix the USB right now, I can't find the lun file, but looking at the original recovery ramdisk, I've found a script with: "busybox echo /dev/block/cache > /sys/devices/lm0/gadget/gadget-lun0/file". Strangely enough, the path /sys/devices/lm0/gadget/gadget-lun0/ doesn't exist. Is it ok to run this script when TWRP is booting? maybe in early-init? Thank you
EDIT: FIXED lun file! OTG is OK now! abdul_pt we have last problem here: my device tree fail to produce a working recovery.img, I've to manually copy the TWRP ramdisk and paste it on the stock recovery (replacing the stock ramdisk), I'm pretty sure that this is due to the second stage bootloader, or maybe due to wrong address. Do you have any clue?
Anyway TWRP is now working, I'll test it tonight and upload the img on a thread here PS: I'll add your name in the credit on the device tree repo soon.
can you post the working TWRP?
I have the same box, same problem (the box is not able to boot from the resulting recovery.img It just reboot).
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We may share certain information about our users with our advertising and analytics partners. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment