Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Onyx Boox

Notices

Reply
 
Thread Tools Search this Thread
Old 05-15-2024, 04:39 PM   #1
Anghirrim
Seeking for Graal
Anghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipse
 
Posts: 161
Karma: 8088
Join Date: Jul 2013
Location: France
Device: Kobo Forma / Onyx Boox Page
Boox Page adb / fastboot / recovery / edl walkthrough and trials

Hi,

I recently purchased a Boox Page (QC Snapdragon 662) and decided to play a bit with it and find out the different boot options.

Goal is of course to be able to backup and restore the firmware images in case some experimentation go wrong.

So far, different boot modes I managed to get into (Page running the 3.5.1 firmware). Unless otherwise specified, everything has been tested and proven to work fine:

First, enable adb:
- Open Apps tab
- Top right menu ⇒ Manage apps
- Then enable Android Debug Bridge (adb)

Boot into bootloader (Fastboot):
- From adb ⇒ adb reboot bootloader
- From recovery => Reboot to bootloader

Boot into Recovery:
- Command line:
- From adb ⇒ adb reboot recovery
- From bootloader ⇒ fastboot reboot recovery
- Buttons:
- Poweroff the page (unplugged)
- Press power until blue led turns on and keep pressed for 7 seconds then release
- Right after, press and release power 5 times
- Your device should enter recovery

Boot into Fastbootd:
- From recovery ⇒ Enter fastboot
- From adb ⇒ adb reboot fastboot

Boot into EDL (9008):
- From adb ⇒ adb reboot edl
- Buttons ==> No option. To be confirmed
- edl cable (https://romprovider.com/make-qualcom...ype-c-devices/ ): Works fine (tested)
- Device off ==> Plug the cable to the device, shortcut green (Data+) and black (Ground) cables, plug onto the computer, once booted into EDL, release shortcut.
- Device on ==> Plug the cable to the device and the computer, shortcut green (Data+) and black (Ground) cables, press the Page power button until it forces reboot, once booted into EDL, release shortcut.

Exit from EDL (9008):
- Buttons ==> Press an maintain power button for 10 to 15 seconds.
- edl utility ==> Depends on the utility you're using

Boot into EDL (900e):
- From Recovery ⇒ Reboot bootloader
- Plug your device to your computer
- Once booted under bootloader ==> Press vol Up (or Down, both work) + Power

Exit EDL (900e):
- PRess power for at least 15 seconds

Setting up and EDL working environment:
I've had hard time getting https://github.com/bkerler/edl to work (some python issues on both Archlinux and Debian).
So decided to use @Renate edl utility (http://temblast.com/edl.htm) under Windows with the following loader

- Step 1 ==> Boot under Windows and install the 15 second adb/fastboot installer
- Step 2 ==> Download @Renate edl utility (link above) + [url}https://zadig.akeo.ie/] Zadig USB installer [/url] and extract them where you want (at least in a drive that has enough space for your future edl backups).
- Step 3 ==> With your Page booted and connected to your PC, open a PowerShell or a cmd tool from the C:/adb folder and do:
Code:
adb reboot edl
- Step 4 ==> Launch Zadig, once your device is detected, install the WinUSB driver. Once done, your Device Managers + Zadig should look like in the screenshot in the attachments.
- Step 5 ==> Force reboot your device under Android (using the power button pressed for 10-15 seconds until the blue led turns on).
- Step 6 ==> Plug your Boox Page to your computer, and re-do the "adb reboot edl" thing. Keep it plugged on your PC. You should now be under edl mode with the proper driver installed on Windows.
- Step 7 ==> Use the edl utility with the loader provided by @Renate in the second post of this thread. As proposed, it is good practice to make a full backup of your NAND in case of you start messing around with your device partitions and need to restore it at some point.

From now on, every time you'll want to use the edl utility, only steps 6 and 7 will be needed.

I left the list of the Boox Page partitions in the attachments for those who need it.

Root:
Just follow @Renate's thread instructions ( https://www.mobileread.com/forums/sh...d.php?t=357269 ) and use the boot.img backup you did via EDL.

For now, having access to the Recovery is enough to play a bit with "adb shell pm uninstall" to debloat the Boox Page and recover a working state in case of debloating went too far...

Edit: Added a list of the Page partitions. It's a AB device with a super partition.
Edit 2: Updated OP following recent success
Attached Thumbnails
Click image for larger version

Name:	working_setup.jpg
Views:	15
Size:	1.25 MB
ID:	208343  
Attached Files
File Type: txt Boox_Page_partitions_adb.txt (6.5 KB, 9 views)
File Type: txt Boox_partitions_edl.txt (5.3 KB, 9 views)

Last edited by Anghirrim; 05-26-2024 at 01:12 PM.
Anghirrim is offline   Reply With Quote
Old 05-15-2024, 05:40 PM   #2
Renate
Wizard
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 2,507
Karma: 10479009
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
Quote:
Originally Posted by Anghirrim View Post
It keeps saying "Can't open device".
You probably still have the (silly) Qualcomm virtual port driver installed which hogs the USB bulk endpoints.
Try reinstalling the WinUsb drivers with Zadig.

The Page is an SDM662 so use:
https://github.com/bkerler/Loaders/b...4665_FHPRG.bin
You're allowed to rename it something more menmonic.

To exit EDL mode after loading a Firehose loader using my EDL client:
Code:
edl /z
Renate is offline   Reply With Quote
Old 05-16-2024, 02:04 AM   #3
Anghirrim
Seeking for Graal
Anghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipse
 
Posts: 161
Karma: 8088
Join Date: Jul 2013
Location: France
Device: Kobo Forma / Onyx Boox Page
Quote:
Originally Posted by Renate View Post
You probably still have the (silly) Qualcomm virtual port driver installed which hogs the USB bulk endpoints.
Try reinstalling the WinUsb drivers with Zadig.

The Page is an SDM662 so use:
https://github.com/bkerler/Loaders/b...4665_FHPRG.bin
You're allowed to rename it something more menmonic.

To exit EDL mode after loading a Firehose loader using my EDL client:
Code:
edl /z
Thanks for looking at my thread.

So, I made another attempt this morning and was at least able to handshake my device.

I don't know what went wrong yesterday with the WinUSB driver. I am pretty sure I did install it correctly, but apparently not... I must have missed something.

That being said... Seems like I need to find the correct loader.

I indeed took this loader from your website yesterday (assuming that the page was a SN662 device, and of the same generation than the Tab Ultra/Tab Ultra C).

I also tried another one then. See attachment.

So now, I just need to find the correct loader, correct?

Note: Just to avoid drivers conflicts, etc... I just took my old W7 laptop for my attempts. I also have access to a W10 machine, and my daily driver (on which I usually do all my Android building stuff) running Archlinux.
Attached Thumbnails
Click image for larger version

Name:	PXL_20240516_054532558.jpg
Views:	24
Size:	1.51 MB
ID:	208307  
Anghirrim is offline   Reply With Quote
Old 05-16-2024, 02:06 AM   #4
Anghirrim
Seeking for Graal
Anghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipse
 
Posts: 161
Karma: 8088
Join Date: Jul 2013
Location: France
Device: Kobo Forma / Onyx Boox Page
While for entering edl mode, is there any other know method but adb (for Onyx devices)?

I tried the two fastboot commands, but they are not working.
Anghirrim is offline   Reply With Quote
Old 05-16-2024, 06:28 AM   #5
Renate
Wizard
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 2,507
Karma: 10479009
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
Quote:
Originally Posted by Anghirrim View Post
So, I made another attempt this morning and was at least able to handshake my device.
No, you didn't. The conversation was all one-sided.

The Sahara protocol is very fragile. That means between entering EDL mode and using edl.exe you can't do anything. The Windows driver has to already be installed. You can't disconnect the USB cable at any time.

Reset the device and try again.

Quote:
Originally Posted by Anghirrim View Post
Seems like I need to find the correct loader.
You're not even getting to any point where the Firehose loader matters.
Renate is offline   Reply With Quote
Old 05-16-2024, 07:40 AM   #6
Anghirrim
Seeking for Graal
Anghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipse
 
Posts: 161
Karma: 8088
Join Date: Jul 2013
Location: France
Device: Kobo Forma / Onyx Boox Page
Quote:
Originally Posted by Renate View Post
No, you didn't. The conversation was all one-sided.

The Sahara protocol is very fragile. That means between entering EDL mode and using edl.exe you can't do anything. The Windows driver has to already be installed. You can't disconnect the USB cable at any time.

Reset the device and try again.


You're not even getting to any point where the Firehose loader matters.
Ok, so. Assuming the USB driver is the correct one and now installed, I connect my device to my laptop and adb reboot into edl mode.

Keep it connected to my laptop, make sure it's the right driver and then launch edl.

Correct?

Is the USB driver installed the good one?

Last edited by Anghirrim; 05-16-2024 at 07:49 AM.
Anghirrim is offline   Reply With Quote
Old 05-16-2024, 07:52 AM   #7
Renate
Wizard
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 2,507
Karma: 10479009
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
Yes, the Windows driver is fine.

Also, if you have any sort of USB flakiness you will have problems.
Virtual machines are not a good bet either.

After a reset to EDL the processor gives out one squawk.
That squawk can not be lost.
Renate is offline   Reply With Quote
Old 05-16-2024, 08:23 AM   #8
Anghirrim
Seeking for Graal
Anghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipse
 
Posts: 161
Karma: 8088
Join Date: Jul 2013
Location: France
Device: Kobo Forma / Onyx Boox Page
Quote:
Originally Posted by Renate View Post
Yes, the Windows driver is fine.

Also, if you have any sort of USB flakiness you will have problems.
Virtual machines are not a good bet either.

After a reset to EDL the processor gives out one squawk.
That squawk can not be lost.
That squawk is sent and should be caught by the host machine right? Even before launching any edl tool command?

While for the USB cable, it should be ok. I have a reliable one that I use for all my android flashing activities. At least adb and fastboot work perfectly with it.

And I never use any virtual machines no. So good for that part.

Last edited by Anghirrim; 05-16-2024 at 08:29 AM.
Anghirrim is offline   Reply With Quote
Old 05-16-2024, 08:29 AM   #9
Renate
Wizard
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 2,507
Karma: 10479009
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
Just try.
Renate is offline   Reply With Quote
Old 05-16-2024, 08:44 AM   #10
Anghirrim
Seeking for Graal
Anghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipse
 
Posts: 161
Karma: 8088
Join Date: Jul 2013
Location: France
Device: Kobo Forma / Onyx Boox Page
Quote:
Originally Posted by Renate View Post
Just try.
Yep, I will when I am back home.

Thanks for the support!
Anghirrim is offline   Reply With Quote
Old 05-16-2024, 02:49 PM   #11
Anghirrim
Seeking for Graal
Anghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipse
 
Posts: 161
Karma: 8088
Join Date: Jul 2013
Location: France
Device: Kobo Forma / Onyx Boox Page
Ok, I guess it somehow worked.

After this, I was able to "edl /z" at least once.

I also tried to "edl /u /g" to list the partition table, without success.

And now, whenever I reboot under edl, I cannot even load the loader.

That's kinda weird...

I will reboot the computer and try again
Attached Thumbnails
Click image for larger version

Name:	edl.PNG
Views:	20
Size:	55.2 KB
ID:	208318   Click image for larger version

Name:	could-not-read.PNG
Views:	17
Size:	12.5 KB
ID:	208319  

Last edited by Anghirrim; 05-16-2024 at 02:54 PM.
Anghirrim is offline   Reply With Quote
Old 05-16-2024, 03:05 PM   #12
Renate
Wizard
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 2,507
Karma: 10479009
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
Why is it always saying "daemon not running"?
It should only say that once after you power up your desktop.

I thought that the Page is eMMC?

Don't say /u
Renate is offline   Reply With Quote
Old 05-16-2024, 03:19 PM   #13
Anghirrim
Seeking for Graal
Anghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipse
 
Posts: 161
Karma: 8088
Join Date: Jul 2013
Location: France
Device: Kobo Forma / Onyx Boox Page
Quote:
Originally Posted by Renate View Post
Why is it always saying "daemon not running"?
It should only say that once after you power up your desktop.

I thought that the Page is eMMC?

Don't say /u
Oh it's just because I rebooted my computer to see if it would help it working.

You're right for the emmc, I have misread the Onyx Wikipedia table.


I have just tried again after cleanly rebooting the device and with another USB cable and it works again.

I'll play a bit with it then.

Last edited by Anghirrim; 05-16-2024 at 03:26 PM.
Anghirrim is offline   Reply With Quote
Old 05-16-2024, 03:42 PM   #14
Anghirrim
Seeking for Graal
Anghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipseAnghirrim can illuminate an eclipse
 
Posts: 161
Karma: 8088
Join Date: Jul 2013
Location: France
Device: Kobo Forma / Onyx Boox Page
Side question, is there a way to backup the system partition instead of the entire super partition?

Edit: I think I backed up the core partitions.
- vbmeta
- boot
- recovery
- super

The output .img files sizes all match 512*block count (taken from "edl /g").

Thanks for your tool @Renate !

Last edited by Anghirrim; 05-16-2024 at 04:07 PM.
Anghirrim is offline   Reply With Quote
Old 05-16-2024, 04:25 PM   #15
Renate
Wizard
Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.Renate ought to be getting tired of karma fortunes by now.
 
Posts: 2,507
Karma: 10479009
Join Date: Feb 2012
Device: Nook NST, Glow2, 3, 4, '21, Kobo Aura2, Poke3, Poke5
If you have the space on your desktop, just do:
Code:
edl /r thirtytwogeefile
Then you have one-stop restore no matter what you do.
Renate is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Fastboot on Page jw5423 Onyx Boox 8 05-20-2024 06:48 AM
Boox Note Air Recovery/System.img djhardrich Onyx Boox 1 06-06-2021 01:04 AM
Onyx Boox Max not found in ADB DEVICES onthetopo Onyx Boox 26 12-01-2019 06:25 AM
Onyx boox M92 - recovery update Andrewski Onyx Boox 0 11-11-2018 02:20 PM
Onyx Boox Kepler Pro Recovery? warlo Onyx Boox 19 10-19-2018 06:31 AM


All times are GMT -4. The time now is 05:57 AM.


MobileRead.com is a privately owned, operated and funded community.