View Single Post
Old 12-29-2023, 02:18 PM   #54
mitseas
Member
mitseas began at the beginning.
 
Posts: 13
Karma: 10
Join Date: Feb 2022
Device: bq Cervantes 4
  1. Open your device and go to Settings > Device Information and write down your Device ID.
  2. Shut down the device, remove the microSD card and use a prying tool or your fingernail to separate the plastic top cover (it has glue around the screen so be careful and patient).
  3. The 4 holes on the top left are for debugging and provide a serial connection to the device. From left to right they are Ground, Tx, Rx, Volt. You can use a USB to TTL(Serial) device like I have but I believe that you can use an arduino too. Connect your device as follows: Ground to Ground, Tx to Rx, Rx to Tx and 5V to Volt. The led should light up on the device.
  4. Connect the USB to TTL device on your computer and open a terminal and write
    Code:
    sudo screen /dev/ttyUSB0 115200
    changing the device name with the appropriate one.
  5. Power on the ereader and you should see a flood of messages as the device boots, you have to press Esc repeatedly to pause the normal boot process and drop yourself to a uboot prompt denoted by "eBR-1A #".
  6. Type printenv to check the variables and use setenv to change one of them to include init=/bin/bash, I usedsetenv bootargs_base = setenv bootargs console=ttymxc0,115200 rootwait rw no_console_suspend init=/bin/bash then use the run bootcmd_mmc command to start the normal boot process which should throw you to a root prompt.
  7. Run vim /etc/passwd and delete the characters between the first and second : on the first line that read root:blah blah:0:0:.... you should remove the blah blah so that it reads something along the lines of root::0:0:... thus removing the need for a password for the root account
  8. You should use the power button to shut down the eReader and start it again. You should get a login prompt. Insert root and it will log you in without a password. You should touch /mnt/private/hackers_e60q22_ok /mnt/private/hackers_ok that will write two empty files in the /mnt/private folder. The e60q22 worked for me but for good measure you can write them both.
  9. Insert the microSD card to a computer, access it and extract the hackers_update_Cervantes4_702.zip in the root folder of the card along with a text file with the name of I_WANT_TO_BE_A_HACKER with no extension that should contain only the line SN-DEVICEID which we wrote down in step 1.
  10. After you insert the card in the eReader you should get a popup saying "The device is now authorized for the installation of firmware for developers".
  11. Power off the device and press and hold the button below the screen. While holding it power on the device and release the power button as soon as the green led lights up while still holding the "HOME" button.
  12. It will check the signatures of the upgrade and start the process
  13. You will see a progress bar filling up as the upgrade takes place both on the device itself and in the terminal if you are still connected with the serial connection.
  14. When the upgrade completes it will power off the device automatically.
  15. Now you are running the developer's firmware which you can verify by going to Settings > Development options and enabling both USB debugging and telnet access.
  16. Now we have two options depending on if you still have the serial connection or you don't. If you have closed the device and not have access to the serial interface you should change the IP of your computer to one in the range of 192.168.4.2-254, some other than the 192.168.4.1 that the ereader uses. Then connect using telnet 192.168.4.1 while having connected the ereader to your computer using a usb cable.
  17. Get the files of the second post on this thread and the latest koreader release from the github page write it on the microSD card again and insert it in the ereader.
  18. Using either serial or telnet

    Code:
    mv /mnt/sd/ko* /mnt/private
    cd /mnt/private
    tar -xvf ko-deps.tar.gz
    tar -xvf ko-deps-safemode-latest.tar.gz  
    dpkg -i *.deb
    and if you get an error on iproute use another package to install it correctly. Unzip the koreader latest release unzip koreader-cervantes*.zip
  19. To run koreader you simply run /mnt/private/koreader/koreader.sh and that should start koreader on your device.
  20. To automatically start koreader every time you power on the device you should also
    Code:
    cp /etc/rc.local /etc/rc.local.backup
    cp /mnt/private/koreader/koreader-standalone.sh /etc/rc.local
I have written this in Markdown with images on almost every step, but here I tried to format it as best I could without images for brevity and readability. I have also another iproute.deb file that worked for me if it is needed (or change the one in the zip files from the og post #2). If you need further info just throw a reply.

Credits go to pazos and QuixoteDon.
mitseas is offline   Reply With Quote