Debian on Nokia 8110?!

976 views
Skip to first unread message

ProgrammAbel

unread,
Jul 24, 2020, 9:08:09 AM7/24/20
to comp.mobile.nokia.8110

Original reddit post

Ask me how, I have no idea, but apparently u/Root256 did this…
Debian on Nokia 8110

ProgrammAbel

unread,
Jul 24, 2020, 9:10:05 AM7/24/20
to comp.mobile.nokia.8110
I mean, to be fair, I guess it shouldn't be that hard to cross-compile Linux for a Nokia, since it's all ARM based...

Manas pareek

unread,
Jul 24, 2020, 11:57:40 PM7/24/20
to comp.mobile.nokia.8110
Nice!

Farooq Karimi Zadeh

unread,
Jul 25, 2020, 12:07:17 AM7/25/20
to banana...@googlegroups.com

Yeah nice and interesting but impractical...

--
You received this message because you are subscribed to the Google Groups "comp.mobile.nokia.8110" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bananahacker...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bananahackers/767b60e3-1785-43ce-8887-0c5098692393n%40googlegroups.com.

affenu...@gmail.com

unread,
Jul 25, 2020, 8:47:41 AM7/25/20
to comp.mobile.nokia.8110
This is the stock kernel, in the image you can see that the kernel was built in 2019.

affenu...@gmail.com

unread,
Jul 25, 2020, 8:49:08 AM7/25/20
to comp.mobile.nokia.8110
I am right now trying to make a newly-compiled linux kernel work on my 8110.

Sachin Borkar

unread,
Jul 28, 2020, 9:13:09 AM7/28/20
to comp.mobile.nokia.8110
Here is the first person who achieved that: https://4pda.ru/forum/index.php?showtopic=302736
Aside I also installed it three years ago on my Vivo device and it works.
But you have to install image in SD Card instead of system.
and make some changes into boot.img.
BTW I want kernel for these devices anyone is interested so please contact me.

G Power

unread,
Jul 29, 2020, 11:42:01 PM7/29/20
to comp.mobile.nokia.8110
Wow

thomash...@gmail.com

unread,
Jul 30, 2020, 7:18:43 AM7/30/20
to comp.mobile.nokia.8110
https://wiki.postmarketos.org/wiki/Nokia_2720_Flip_(nokia-beatles)
On Thursday, 30 July 2020 at 05:42:01 UTC+2 G Power wrote:
Wow

Affe null

unread,
Aug 4, 2020, 12:20:32 PM8/4/20
to comp.mobile.nokia.8110
Here is an experimental project I have been working on: https://gitlab.com/affenull2345/bananian
It is Debian with a custom kernel and some scripts to make it work on Nokia 8110 4G.
It has a buggy UI but you can use SSH to get a root shell.
If anybody wants to test it, feel free to install it (I recommend you install it into recovery so that you can still use KaiOS).
I would be happy if anybody wants to contribute, for example improve the UI.
You can't make calls with it because the modem does not work. The only currently available app is a file browser, and
it can't even show file contents, but anybody who knows how to write C code and use sockets on Linux can make an app.
WiFi and SSH connection works, see README.md in the repository for information on how to set it up.
If it doesn't work, please tell me, I will look for possible issues.

Huy Minh Bui

unread,
Aug 4, 2020, 9:50:17 PM8/4/20
to comp.mobile.nokia.8110
Can we compile kernel with keypad support ?

Vào lúc 23:20:32 UTC+7 ngày Thứ Ba, 4 tháng 8, 2020, affenu...@gmail.com đã viết:

Sachin Borkar

unread,
Aug 5, 2020, 12:26:40 AM8/5/20
to comp.mobile.nokia.8110
The codes was awesome but I am working for Jio and I have already compiled kernel but I want the kernel which you compiled for Debian and your given link in repository have link but I don't know how to download it from code aurora.
Aside my keypad works good in my custom kernel.
So the question, How to download sources from Code-Aurora ?

Huy Minh Bui

unread,
Aug 5, 2020, 1:38:35 AM8/5/20
to comp.mobile.nokia.8110
Well you know just

Vào lúc 11:26:40 UTC+7 ngày Thứ Tư, 5 tháng 8, 2020, borkars...@gmail.com đã viết:

Sachin Borkar

unread,
Aug 5, 2020, 3:29:16 AM8/5/20
to comp.mobile.nokia.8110
I know that. This is not my first time to use git but I get warning and then it stuck.
That's why I am asking.
See Image Following.
Screenshot from 2020-08-05 12-56-02.png

Sachin Borkar

unread,
Aug 5, 2020, 3:31:45 AM8/5/20
to comp.mobile.nokia.8110

After that, I don't think so kernel sources as big that 200+MB acquire only 2%
Screenshot from 2020-08-05 13-00-27.png

Sachin Borkar

unread,
Aug 5, 2020, 3:52:56 AM8/5/20
to comp.mobile.nokia.8110
Your doing an awesome work.
Here is something which I read some time ago and I think it will help you to get call functionality work.
Screenshot from 2020-08-05 13-18-51.png
Screenshot from 2020-08-05 13-19-00.png
Screenshot from 2020-08-05 13-19-18.png
On Tuesday, 4 August, 2020 at 9:50:32 pm UTC+5:30 affenu...@gmail.com wrote:

Affe null

unread,
Aug 5, 2020, 4:10:02 AM8/5/20
to comp.mobile.nokia.8110
I recommend compiling as described here: https://gitlab.com/affenull2345/bananian/-/blob/master/KERNEL.md

Affe null

unread,
Aug 5, 2020, 4:17:21 AM8/5/20
to comp.mobile.nokia.8110
Thank you! However, rild needs to connect to the modem (/dev/smd8) and communicating with /dev/smd8 fails, and I can't even get the modem to load its firmware because it crashes the whole system.

Huy Minh Bui

unread,
Aug 5, 2020, 4:52:31 AM8/5/20
to comp.mobile.nokia.8110
Thanks. I'll try to compile for Gerda OS first.
By the way can we find another branch instead of LF.BR.1.2.8  ? Since you know that version is old.

Vào lúc 15:10:02 UTC+7 ngày Thứ Tư, 5 tháng 8, 2020, affenu...@gmail.com đã viết:

Huy Minh Bui

unread,
Aug 5, 2020, 5:00:17 AM8/5/20
to comp.mobile.nokia.8110
Oh wait I just read the warning......... so I can't compile this kernel for KaiOS ?

Vào lúc 15:52:31 UTC+7 ngày Thứ Tư, 5 tháng 8, 2020, Huy Minh Bui đã viết:

Sachin Borkar

unread,
Aug 5, 2020, 8:11:55 AM8/5/20
to comp.mobile.nokia.8110
This is the same kernel which we are running as a stock after some patches.
So what warning ?

Sachin Borkar

unread,
Aug 5, 2020, 8:19:04 AM8/5/20
to comp.mobile.nokia.8110
Thanks you very much for sharing your problem.
Seems like modem is encrypted and not decrypted properly.
Please read this, it may help you to dump original modem with base point.

Huy Minh Bui

unread,
Aug 5, 2020, 9:54:34 AM8/5/20
to comp.mobile.nokia.8110
> WARNING: This kernel does not work with KaiOS. It crashes on boot.
Look at his gitlab page

By the way I used to compile kernel for 8110 and it do boot, even pack it in AnyKernel3 zip and flash with Philz Touch. But I can't press anything after boot and wifi isn't working (because I forgot to add prima driver)
So I'm just asking if we can compile with keypad support now.

Vào lúc 19:11:55 UTC+7 ngày Thứ Tư, 5 tháng 8, 2020, borkars...@gmail.com đã viết:

Sachin Borkar

unread,
Aug 5, 2020, 10:11:50 AM8/5/20
to comp.mobile.nokia.8110
Everything works except I cannot to turn off LCD back-light. I did not tested WiFi.
Keypad works like charm. On Jio phone.
I used default dtb file and config.gz config.
Can you suggest me, something which may helpful to me ?

Huy Minh Bui

unread,
Aug 5, 2020, 10:43:58 AM8/5/20
to comp.mobile.nokia.8110
> Can you suggest me, something which may helpful to me ?
Implent some custom things like some CPU frequencies or adding overclock/undervolt and some more feature like common XDA custom kernel.
And also compile using UBERTC - this legendary toolchain can help optimizing your kernel (although I haven't seen any changes yet lol)
https://bitbucket.org/UBERTC/arm-eabi-4.9/src/master/

Vào lúc 21:11:50 UTC+7 ngày Thứ Tư, 5 tháng 8, 2020, borkars...@gmail.com đã viết:

Huy Minh Bui

unread,
Aug 5, 2020, 10:45:25 AM8/5/20
to comp.mobile.nokia.8110
Don't think about upstream the kernel version to 3.10.108 yet since there are lots of conflict when I try to merge.

Vào lúc 21:43:58 UTC+7 ngày Thứ Tư, 5 tháng 8, 2020, Huy Minh Bui đã viết:

Sachin Borkar

unread,
Aug 5, 2020, 10:54:35 AM8/5/20
to comp.mobile.nokia.8110
What about linaro toolchain ?
I think it's updated and not old like UBERTC have last updated on 4.9 on 4/1/2016
But linaro is 2019.
Aside do you have any Idea why I cannot able to turn off backlight ?
I tried $ echo ............ sys/........../brighness (also proc/)
but still it was 100% lit.
Display turn off and backlight remain on (white as nature).

Affe null

unread,
Aug 5, 2020, 11:05:50 AM8/5/20
to comp.mobile.nokia.8110
@Sachin Borkar I actually didn't try using the dtb file compiled from source on my Nokia. When I boot GerdaOS with this kernel, it starts, but then before it shows the homescreen I get a white screen, then my phone blacks out and I need to take out the battery. I compiled my kernel with official GCC 4.9.4.

I have made some updates to the repository, now it works on my phone:

IMG_1230.JPG

Huy Minh Bui

unread,
Aug 5, 2020, 11:06:32 AM8/5/20
to comp.mobile.nokia.8110
Check the version to see which 4.9.x is newer. I don't care about it much

Also, I need to compile by myself to check the brightness problem. But the thing is I am using Nokia 8110 4G

Vào lúc 21:54:35 UTC+7 ngày Thứ Tư, 5 tháng 8, 2020, borkars...@gmail.com đã viết:

Huy Minh Bui

unread,
Aug 5, 2020, 11:31:44 AM8/5/20
to comp.mobile.nokia.8110
Affel can you fix this typo on your KERNEL.md ?
Instead of > echo 'source "drivers/net/wireless/prima"' >> Kconfig

It have to be
> echo 'source "drivers/net/wireless/prima/Kconfig"' >> Kconfig

This cause error : input in flex scanner failed when you try to make the config
Vào lúc 22:05:50 UTC+7 ngày Thứ Tư, 5 tháng 8, 2020, affenu...@gmail.com đã viết:

Sachin Borkar

unread,
Aug 5, 2020, 11:41:36 AM8/5/20
to comp.mobile.nokia.8110
I really loved your work and want to contribute to your project but only thing which I want is internet connection of this device.
Jio provide us so cheap internet packs so I am confused to install Debian and wants fully finctional internet.
It will also help us to find solution live online.
But my second question to you, (As this discussion is going interesting and knowledgeable)
Did you tried to compile lk.bin aka bootloader from this repository ?: https://github.com/kaiostech/kernel_lk/tree/master/kernel
Most of proprietary codes can get from dtb file od stock via tool fdtdump -s ./dtb

Sachin Borkar

unread,
Aug 6, 2020, 3:10:15 AM8/6/20
to comp.mobile.nokia.8110
Hey Guys, I have created repository here: https://github.com/borkarsachin97/kernel_msm-3.10
Kernel for both Jio F90M and Nokia 8110 4G (argon).
Defconfigs:
1) Jio F90M : f90m_defconfig
2) Nokia 8110 4G : argon_defconfig

Toolchain: GCC 4.8 Android 6.0.1 (r1)

Bugs:
1) Jio F90M
a) Display Backlight cannot able to turn-off

2) Nokia 8110 4G
I did not tested yet.

Huy Minh Bui

unread,
Aug 6, 2020, 9:57:05 AM8/6/20
to comp.mobile.nokia.8110
Here is the bugs so far when I tried to compile with GCC4.9 (UBERTC) for my Nokia 8110 4G :

- Changing brightness seems lagging.
- Flashlight broke
- Slider not working.
- The power button is broke and it mapped into Screenshot button.

08-06 20:56:04.102   418   418 E GeckoConsole: [JavaScript Error: "TypeError: this.hardwareButtons is undefined" {file: "app://system.gaiamobile.org/js/hardware_buttons.js" line: 231}]
08-06 20:56:04.102   418   418 E GeckoConsole: hb_handleEvent@app://system.gaiamobile.org/js/hardware_buttons.js:231:19

But anyway so far so good.


Vào lúc 14:10:15 UTC+7 ngày Thứ Năm, 6 tháng 8, 2020, borkars...@gmail.com đã viết:

Sachin Borkar

unread,
Aug 6, 2020, 11:24:37 AM8/6/20
to comp.mobile.nokia.8110
Actually Most of the bugs is due to missing drivers or unidentified hardware mapping.

"- The power button is broke and it mapped into Screenshot button."

The power button mapped into screenshot due to it's comfortable with Jio phones.
If you fill your interest then you can apply your own patches.
I will try to fix bugs soon when get time.
But also I want to create guidance for people to compile kernel in deep and noob friendly.

Affe null

unread,
Aug 6, 2020, 12:59:03 PM8/6/20
to comp.mobile.nokia.8110
The slide does work, but some events are not being sent. It sends an event from /dev/input/event1 or /dev/input/event2 when you move the slide (try cat /dev/input/event1 and move the slide). The slide should work with the UI I made for Debian.

I would suggest moving the posts about the Linux kernel into a different thread, because compiling the Linux kernel is a different topic.

Huy Minh Bui

unread,
Aug 6, 2020, 1:42:10 PM8/6/20
to comp.mobile.nokia.8110
> The slide does work, but some events are not being sent. It sends an event from /dev/input/event1 or /dev/input/event2 when you move the slide (try cat /dev/input/event1 and move the slide). The slide should work with the UI I made for Debian.

Wait so did you apply the dts patch from pmOS 2720 repo ? I cloned 2 repo and compiled the one which got the patch. Maybe that is the problem.


Also yea let me create a new topic tomorrow. We have lots of thinga to talk about.

Sachin Borkar

unread,
Aug 6, 2020, 11:54:22 PM8/6/20
to comp.mobile.nokia.8110
Hey we really require to move this topic in some like discussion thread/post.
But please always mention that which kernel you are talking about, because I am sometime get confused.

Sachin Borkar

unread,
Aug 7, 2020, 10:57:26 AM8/7/20
to comp.mobile.nokia.8110
Can you please add support for custom path for gcc via
export CROSS_TOOLCHAIN=$path_of_toolchain
I did it yesterday by replacing Makefiles's line 15
CC = $(CROSS_COMPILE)

and

export CROSS_COMPILE='/home/borkarsachin97/Downloads/toolchain/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-gcc'

Output files size was 485.4 (Debroot.tar)

With all dependency installed already.

Screenshot from 2020-08-07 20-25-51.png

Affe null

unread,
Aug 8, 2020, 4:44:21 AM8/8/20
to comp.mobile.nokia.8110
Now you can do this:
make CROSS_COMPILE='/home/borkarsachin97/Downloads/toolchain/gcc-linaro-7.5.0-2019.12-x86_64_arm-linux-gnueabihf/bin/arm-linux-gnueabihf-'

or whatever your path is (without 'gcc' at the end, but with the dash '-').
Just run
git pull
from your command line to fetch all updates if you have downloaded the repository using git clone.

Sachin Borkar

unread,
Aug 10, 2020, 4:58:11 AM8/10/20
to comp.mobile.nokia.8110
Can you explain, why modem is not working ?
I brief, if possible.

Affe null

unread,
Sep 8, 2020, 12:55:38 PM9/8/20
to comp.mobile.nokia.8110
Bananian updated to v0.0.2: Now the graphics are faster and no longer glitchy.

itan...@gmail.com

unread,
Sep 10, 2020, 9:24:27 PM9/10/20
to comp.mobile.nokia.8110
Message has been deleted

Science Fiction

unread,
Sep 30, 2020, 5:30:47 PM9/30/20
to comp.mobile.nokia.8110
Hi, thank you for this project, awesome work!
I have followed your instructions and got my device connected to wifi. I can confirm the connection from my router's admin panel and also by pinging the device. However, I'm not able to SSH to my device. It says "Connection refused" (most likely ssh server is not started). How can I troubleshoot this issue?

8 Eylül 2020 Salı 19:55:38 UTC+3 tarihinde Affe null yazdı:

Affe null

unread,
Oct 1, 2020, 9:03:05 AM10/1/20
to Science Fiction, comp.mobile.nokia.8110
The new version 0.1.1 (https://gitlab.com/affenull2345/bananian/-/releases/v0.1.1) has been released. SSH should work now (I have tested it), but there may be some other problems since it now uses systemd. To build this version, you need a Debian-based distribution running somewhere (on your computer, phone, in a chroot environment, or even in an emulator) because of the package-building tools used. To update an existing installation, erase everything from partition 2 of you SD card and then perform the steps from the README file.


--
You received this message because you are subscribed to the Google Groups "comp.mobile.nokia.8110" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bananahacker...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bananahackers/41f4d9f1-b805-4f7b-8c3c-81f0f664d74ao%40googlegroups.com.

Affe null

unread,
Feb 12, 2021, 1:49:04 PM2/12/21
to banana...@googlegroups.com
Bananian has been updated again, it's at version 0.2 (or 0.2.0) now. It
now supports icons and has a development library.

Download build system here: https://gitlab.com/affenull2345/bananian

Reply all
Reply to author
Forward
0 new messages