Nokia 8110 Bootstrap (custom init-script for command execution on boot) / telnet / swap / ...

499 views
Skip to first unread message

speeduploop

unread,
Dec 1, 2018, 11:56:47ā€ÆPM12/1/18
to comp.mobile.nokia.8110
Hi!

I now created a zip-update for creating a custom-init.

bootstrapon.zip does the following:
-- create '/data/opt' as a persistent folder with easy access. (rights are set in a way that you can adb push/pull files/folders to /data/opt)
-- create '/data/opt/init' --> a shell-script which will be executed at boot. Here you can insert commands which should run at every boot.
-- link '/data/opt/init' in existing boot-script.

The init script which is created by this is:
#!/system/bin/sh

#################################################################
# uncomment the following 2 lines to enable existing swapfile...
#################################################################
#swapon /data/opt/swapfile
#swapoff /dev/block/zram0
#################################################################

busybox telnetd -l /system/bin/sh -b 127.0.0.1


It doesn't do much but starting telnetd (you should uninstall my telnet-hack if you use this bootstrap).
Commands for using a swapfile instead of zram exists but aren't enabled.

Why swapfile? zram is swap as a compressed ramdisk - fast but it's reserving about half of the physical RAM.
If you use a swapfile instead of zram you have more physical RAM for caches and usable RAM is also bigger.
(apps aren't killed for low-memory as often as without swap)

BUT: if you want to use a swapfile you have to create one first! This is how...
adb shell
busybox telnet localhost
busybox dd if=/dev/zero of=/data/opt/swapfile bs=1024 count=524288
busybox mkswap /data/opt/swapfile
exit
exit

After this you have created a 512MB swapfile.

Now to enable it:
adb pull /data/opt/init

and uncomment (delete the '#') the two swap-related lines with a editor of your choosing. (on Windows Notepad++ has options to respect Linux-LineEndings...)
Then:
adb push init /data/opt/init
adb chmod +x /data/opt/init
adb reboot
will push it back and adjusts the execution-rights. (whenever you push a modified init-file --> adjust the execution-flag or it won't start at boot)
After the reboot you have 1GB in total (512 RAM + 512 swap) and more space for caching (IO, File, ...)

bootstrapoff.zip will clean things up --> /data/opt and it's contents will be removed!

Other thing you could do with this: modify the RAM-Disk ('/') at every boot - for example to switch the 'adbd-binary'...
(my very first root-hack for the 8110 worked this way - it had a patched adbd in /data/opt/bin and linked it as /sbin/adbd on boot)

This bootstrap is btw my normal config since nearly the beginnig - the 'simple' telnet-hack was only because it should be easier to use for the community :D

Happy Hacking!


bootstrapoff.zip
bootstrapon.zip

AdvancedHACKERniV1

unread,
Dec 2, 2018, 12:02:34ā€ÆAM12/2/18
to comp.mobile.nokia.8110
Great Work !!

Zhang Bird

unread,
Dec 2, 2018, 1:27:52ā€ÆAM12/2/18
to comp.mobile.nokia.8110
Good job !!! šŸ‘

Ivan

unread,
Dec 2, 2018, 4:53:51ā€ÆAM12/2/18
to comp.mobile.nokia.8110
It don't works for me:

Recovery mode/update from SD/bootstrapon.zip......installation aborted!

Tryed with and without telneton.zip from the shell:
afther busybox dd if=/dev/zero of=/data/opt/swapfile bs=1024 count=524288Ā Ā error, no file or directory

never pulled out files from /data, never have permissions. I don't know if the problem come from OmniJB installed in /system, but I don't think.

syl...@rentoo.immo

unread,
Dec 2, 2018, 4:55:11ā€ÆAM12/2/18
to comp.mobile.nokia.8110
is /data mounted ?
does the directory /data/opt exists ? if not (busybox mkdir /data/opt)

speeduploop

unread,
Dec 2, 2018, 6:56:05ā€ÆAM12/2/18
to comp.mobile.nokia.8110
-- you don't need telneton.zip
-- I forgot to mention --> please mount /system before!

speeduploop

unread,
Dec 2, 2018, 6:57:03ā€ÆAM12/2/18
to comp.mobile.nokia.8110
bootstrapon.zip creates /data/opt and /data/opt/init...

Ivan

unread,
Dec 2, 2018, 6:57:47ā€ÆAM12/2/18
to comp.mobile.nokia.8110
hi,after made every update from sd installations are aborted. error in sideload. is not positive this thing.

speeduploop

unread,
Dec 2, 2018, 7:00:22ā€ÆAM12/2/18
to comp.mobile.nokia.8110
So you are on v13? Then it's obvious.... update to v13 changes keys --> no way back!

Ivan

unread,
Dec 2, 2018, 7:24:18ā€ÆAM12/2/18
to comp.mobile.nokia.8110
No,i'm still on v12. i've successful installed bootstrapon.zip mounting /system. now i'm not at home. when i come back i'll made that commands from adb shell on PC and let you know. thanks

Ivan

unread,
Dec 2, 2018, 7:56:28ā€ÆAM12/2/18
to comp.mobile.nokia.8110

Istantanea_2018-12-02_13-52-30.png.jpg

all seems to be working correctlly, no problems at the moment

speeduploop

unread,
Dec 2, 2018, 8:06:58ā€ÆAM12/2/18
to comp.mobile.nokia.8110
no... something is wrong. left is you - right is me...

swap.jpg


It seems like on your device is still zram active...

Could you show me:

cat/proc/swaps
cat
/data/opt/init
ls
-la /data/opt

This should tell whats wrong...


Ivan

unread,
Dec 2, 2018, 8:17:09ā€ÆAM12/2/18
to comp.mobile.nokia.8110

Istantanea_2018-12-02_14-15-56.png.jpg

speeduploop

unread,
Dec 2, 2018, 8:22:37ā€ÆAM12/2/18
to comp.mobile.nokia.8110
Your init-script isn't executable... ;)

adb shell
chmod
+x /data/opt/init
then reboot - and everything should work.

BUT: don't forget - don't use telneton.zip and bootstrapon.zip together --> telnetd is started by /data/opt/init :D

On Sunday, 2 December 2018 14:17:09 UTC+1, Ivan wrote:

Istantanea_2018-12-02_14-15-56.png.jpg

Ivan

unread,
Dec 2, 2018, 8:31:46ā€ÆAM12/2/18
to comp.mobile.nokia.8110
PERFECT!

ggfd.png

THANK YOU!

speeduploop

unread,
Dec 2, 2018, 8:43:55ā€ÆAM12/2/18
to comp.mobile.nokia.8110
yeah... this is how it should be ;)
BTW: 512MB seems to work even better than 1G (which I tested before)

You'll see that apps you started before (and so are cached) startup faster now - and big apps won't kill everything else (only if they are really, really big).
-- switching apps is more fun now :D

Fun thing --> even slither.io know works (somehow) :D

On Sunday, 2 December 2018 14:31:46 UTC+1, Ivan wrote:
PERFECT!

ggfd.png

THANK YOU!

Ivan

unread,
Dec 2, 2018, 9:31:56ā€ÆAM12/2/18
to comp.mobile.nokia.8110
Is really fast! It is more like a smartphone now! GREAT JOB!!! :D

Backwood

unread,
Dec 2, 2018, 10:56:33ā€ÆAM12/2/18
to comp.mobile.nokia.8110
Sounds cool! Is there a chance this will break future updates?

speeduploop

unread,
Dec 2, 2018, 11:02:50ā€ÆAM12/2/18
to comp.mobile.nokia.8110
It will definitely break ota-updates... it changes the system-partition.
(it's ok for me because the new v13 changes keys also - so it's unrootable at the moment)

--> if you dump a system-image before this you could go back if needed...

Backwood

unread,
Dec 2, 2018, 12:25:53ā€ÆPM12/2/18
to comp.mobile.nokia.8110
Oh sorry, didn't catch that earlier. I'm already doomed with vr 13.x
Well played Nokia.

Ivan

unread,
Dec 2, 2018, 12:46:28ā€ÆPM12/2/18
to comp.mobile.nokia.8110
Then made a factory reset, or flash your phone with my /system copyĀ with version 12.00.17.10 already jailbroken ;)

speeduploop

unread,
Dec 2, 2018, 4:26:27ā€ÆPM12/2/18
to comp.mobile.nokia.8110
-- I never got v12.00.17.10 only v12.00.17.06... seems region-specific.
-- And if he is already on v13 keys are changed and he can't flash zips anymore...
-- factory-reset doesn't reset firmware-version
----> if one installed v13 there is no going back at the moment :(

AdvancedHACKERniV1

unread,
Dec 2, 2018, 8:44:38ā€ÆPM12/2/18
to comp.mobile.nokia.8110
A stock rom is the only solution. But there is currently no stock rom available for the 8110.

speeduploop

unread,
Dec 2, 2018, 8:53:51ā€ÆPM12/2/18
to comp.mobile.nokia.8110
The problem is not the stock rom -- because you can create it yourself (if you can get hands on a clean/unmodified device with v12/test-keys)
--> the problem is that v13 can't even use such a stock rom....

AdvancedHACKERniV1

unread,
Dec 3, 2018, 5:08:09ā€ÆAM12/3/18
to comp.mobile.nokia.8110
What I meant was flashing the stock ROM with QFIL via EDL.

AdvancedHACKERniV1

unread,
Dec 3, 2018, 5:16:03ā€ÆAM12/3/18
to comp.mobile.nokia.8110

AdvancedHACKERniV1

unread,
Dec 3, 2018, 7:04:55ā€ÆAM12/3/18
to comp.mobile.nokia.8110

lujos...@gmail.com

unread,
Dec 3, 2018, 12:27:58ā€ÆPM12/3/18
to comp.mobile.nokia.8110
There is no leak for the stock firmware for 81104g! You can connect to edl with
Ā adb reboot edl
but we dont have the right programmer file !!! to flash with qil tool!!!



speeduploop

unread,
Dec 3, 2018, 12:38:53ā€ÆPM12/3/18
to comp.mobile.nokia.8110
You can boot to QDL-Mode by holding all direction-keys at power-on also. --> screen will just flash shortly then goes dark.
(just press the DPAD until 'second click' -- first click is select, a little more and the edge of your thumb will press the DPAD-frame...)

--> Linux then shows (lusb)
Bus 001 Device 049: ID 05c6:9008 Qualcomm, Inc. Gobi Wireless Modem (QDL mode)

But yes: we would need a firehose-downloader for our device...

On Monday, 3 December 2018 18:27:58 UTC+1, lujos...@gmail.com wrote:
There is no leak for the stock firmware for 81104g! You can connect to edl with
Ā adb reboot e

AdvancedHACKERniV1

unread,
Dec 4, 2018, 5:51:12ā€ÆAM12/4/18
to comp.mobile.nokia.8110
This might work.
It is the firehorse programmer for the MSM8909.
But this is the programmer used for a Jio Phone which has an MSM8905.
I also read on Qualcomm's page that Snapdragon 205 (MSM8905) and Snapdragon 210 (MSM8909) are pin to pin compatible.

This file came with Jio Phone F50Y's stock ROM which is flashed through EDL.

On Monday, December 3, 2018 at 11:08:53 PM UTC+5:30, speeduploop wrote:
You can boot to QDL-Mode by holding all direction-keys at power-on also. --> screen will just flash shortly then goes dark.
(just press the DPAD until 'second click' -- first click is select, a little more and the edge of your thumb will press the DPAD-frame...)
Ā 
But yes: we would need a firehose-downloader for our device...
prog_emmc_firehose_8909_ddr.mbn

speeduploop

unread,
Dec 4, 2018, 6:11:13ā€ÆAM12/4/18
to comp.mobile.nokia.8110
Thanks.... this could work.
I'll check - when I have time ;)

AdvancedHACKERniV1

unread,
Dec 4, 2018, 6:25:53ā€ÆAM12/4/18
to comp.mobile.nokia.8110
Your Welcome.
But be careful....
Firmware stuff....

speeduploop

unread,
Dec 4, 2018, 6:44:23ā€ÆAM12/4/18
to comp.mobile.nokia.8110
exactly... I sometimes think it would make sense to get a second 8110... one for messing around ;)

AdvancedHACKERniV1

unread,
Dec 4, 2018, 6:57:04ā€ÆAM12/4/18
to comp.mobile.nokia.8110
Yeah.
You are right.
These might also be helpful.
There are also from Jio Phone F50Y's stock ROM.
I think they can be used with the 8110 4G but they must be modified according to the respective partition's needs.
rawprogram_unsparse.xml
patch0.xml
Reply all
Reply to author
Forward
0 new messages