-
-
Notifications
You must be signed in to change notification settings - Fork 12
How to root the device and how to connect to WiFi using USBNET or ITERM CLI
This guide describes how to connect to wifi using usbnet or iterm app. For this you need a rooted kernel. How to root the device, rooting process, is also described here
Usbnet disables USB storage, to use USB storage again turn off ENABLE_USBNET flag. You may have to manually enter usb file manager mode in the inkbox settings.
Usbnet
-
Turn Ereader off
-
Take SD card out of ereader, connect to PC
-
Mount the boot partition. Using either disk part on windows or on Linux by fdisk - l then sudo mount partition /mnt
-
Change boot flag, DIAGS_BOOT to true using nano on Linux by opening in the flags folder in a terminal and the command 'nano filename' .
-
Put sd card back into ereader, keep it charged and reboot. Select reset options, click reset and root device.
-
Wait for restoration to finish. Wait 5 minutes after restoration finishes and black screen appears. Then turn it on.
-
Set up device. Your device is now rooted and now able do things. Now change usbnet enable flag to true again by taking out sd card and connect it to pc, leave diag boot false. Put sd card back in.
-
On a Linux computer, run ip a in a terminal. Then plug sd card back in ereader, plug USB into ereader and turn on. Run ip a in a terminal again. Note down the whatever is new in the connections. That is the kobo ereader.
Now sudo ip addr add 192.168.2.1 broadcast + dev 'new connection name without the quote marks' sudo ip route add 192.168.2.0/24 dev 'new connection name without the quote marks'
Now ssh into root@192.168.2.2 Password is root
Connect to WiFi using ITERM CLI
https://github.com/Kobo-InkBox/user-applications/raw/main/download/ITerm.zip
Download and unzip this file.
Connect ereader to usb storage session. Move contents of unzipped file to the apps folder
File structure should be apps-Iterm-contents. (It might be apps-iterm-item-contents can't remember)
Go to apps. Launch Iterm. ssh root@127.0.0.1 Password root
/usr/local/bin/wifi/toggle.sh on /usr/local/bin/wifi/connect_to_network.sh "ssid" "pass"
Not sure if ssid needs "" or not
Via shell iterm, look to /boot/flags and you can change the boot flags using nano without taking sd card out. You can edit via ssh as well