maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Jolla1 & TOH (https://talk.maemo.org/forumdisplay.php?f=56)
-   -   [HOWTO] Comprehensive Firmware Flashing Guide for Jolla (https://talk.maemo.org/showthread.php?t=91885)

djselbeck 2013-12-22 14:57

Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
 
I think it is some kind of Qualcomm Prima WCNSS module

nieldk 2013-12-22 15:03

Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
 
Quote:

Originally Posted by djselbeck (Post 1399682)
I think it is some kind of Qualcomm Prima WCNSS module

kinda thought so, but

Code:

sudo dmesg | grep wcnss
doesnt reveal any outcome

and lsmod
Code:

[nemo@localhost ~]$ sudo lsmod
Module                  Size  Used by
mysatroker            57477  2
wlan                2592759  0
cfg80211              144263  1 wlan


nieldk 2013-12-22 15:09

Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
 
I upgraded, I guess thus two modules directories

/lib/modules/3.4.0.20131115.2/kernel/net/wireless
is empty

/lib/modules/3.4.0.20131118.1/kernel/net/wireless
contains cfg80211.ko and wlan.ko

javispedro 2013-12-22 15:52

Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
 
Quote:

Originally Posted by djselbeck (Post 1399623)
Did you actually had success including a ramdisk with mkbootimg?

Yes, the default offset is OK. Actually I should try which one of the "offsets" is actually mandatory, because them being mandatory makes no sense (but nothing on Android does, tbh).

Also, enabling NFS client is easy enough: just copy nfs.ko from rootfs (or enable as builtin if building your own kernel). Busybox's default mount is enough to connect to NFS as long as you pass -o nolock to disable dependency on localhost lockd/portmapper.


Quote:

Originally Posted by nieldk (Post 1399687)
/lib/modules/3.4.0.20131118.1/kernel/net/wireless
contains cfg80211.ko and wlan.ko

Seems like tis may be similar to this other, freely licensed module. Maybe you should open a new thread and try to figure out how to make that module work.

BTW. Another disappointment is that the stock kernel is tainted propietary by this module.

djselbeck 2013-12-22 16:06

Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
 
Quote:

Originally Posted by javispedro (Post 1399692)
Yes, the default offset is OK. Actually I should try which one of the "offsets" is actually mandatory, because them being mandatory makes no sense (but nothing on Android does, tbh).

Also, enabling NFS client is easy enough: just copy nfs.ko from rootfs (or enable as builtin if building your own kernel). Busybox's default mount is enough to connect to NFS as long as you pass -o nolock to disable dependency on localhost lockd/portmapper.




Seems like tis may be similar to this other, freely licensed module. Maybe you should open a new thread and try to figure out how to make that module work.

BTW. Another disappointment is that the stock kernel is tainted propietary by this module.

Yes thats right. Im trying to build prima module.

EDIT: I've build a version of prima wlan driver which seems to work which is good news I think. Needs to clean it all a bit up though.

nieldk 2013-12-23 08:10

Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
 
Quote:

Originally Posted by djselbeck (Post 1399694)
Yes thats right. Im trying to build prima module.

EDIT: I've build a version of prima wlan driver which seems to work which is good news I think. Needs to clean it all a bit up though.

Good news indeed.
Did you check if monitor mode is working with your port?

djselbeck 2013-12-23 09:51

Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
 
Quote:

Originally Posted by nieldk (Post 1399844)
Good news indeed.
Did you check if monitor mode is working with your port?

Does not seems so:

Code:

iw list
Wiphy phy0
        Band 1:
                Capabilities: 0x9030
                        HT20
                        Static SM Power Save
                        RX Greenfield
                        RX HT20 SGI
                        No RX STBC
                        Max AMSDU length: 3839 bytes
                        DSSS/CCK HT40
                        L-SIG TXOP protection
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 16 usec (0x07)
                HT TX/RX MCS rate indexes supported: 0-7
                Frequencies:
                        * 2412 MHz [1] (20.0 dBm)
                        * 2417 MHz [2] (20.0 dBm)
                        * 2422 MHz [3] (20.0 dBm)
                        * 2427 MHz [4] (20.0 dBm)
                        * 2432 MHz [5] (20.0 dBm)
                        * 2437 MHz [6] (20.0 dBm)
                        * 2442 MHz [7] (20.0 dBm)
                        * 2447 MHz [8] (20.0 dBm)
                        * 2452 MHz [9] (20.0 dBm)
                        * 2457 MHz [10] (20.0 dBm)
                        * 2462 MHz [11] (20.0 dBm)
                        * 2467 MHz [12] (20.0 dBm)
                        * 2472 MHz [13] (20.0 dBm)
                        * 2484 MHz [14] (disabled)
                Bitrates (non-HT):
                        * 1.0 Mbps
                        * 2.0 Mbps
                        * 5.5 Mbps
                        * 11.0 Mbps
                        * 6.0 Mbps
                        * 9.0 Mbps
                        * 12.0 Mbps
                        * 18.0 Mbps
                        * 24.0 Mbps
                        * 36.0 Mbps
                        * 48.0 Mbps
                        * 54.0 Mbps
        Band 2:
                Capabilities: 0x9072
                        HT20/HT40
                        Static SM Power Save
                        RX Greenfield
                        RX HT20 SGI
                        RX HT40 SGI
                        No RX STBC
                        Max AMSDU length: 3839 bytes
                        DSSS/CCK HT40
                        L-SIG TXOP protection
                Maximum RX AMPDU length 65535 bytes (exponent: 0x003)
                Minimum RX AMPDU time spacing: 16 usec (0x07)
                HT TX/RX MCS rate indexes supported: 0-7
                Frequencies:
                        * 4920 MHz [-16] (disabled)
                        * 4940 MHz [-12] (disabled)
                        * 4960 MHz [-8] (disabled)
                        * 4980 MHz [-4] (disabled)
                        * 5040 MHz [8] (disabled)
                        * 5060 MHz [12] (disabled)
                        * 5080 MHz [16] (disabled)
                        * 5180 MHz [36] (disabled)
                        * 5200 MHz [40] (disabled)
                        * 5220 MHz [44] (disabled)
                        * 5240 MHz [48] (disabled)
                        * 5260 MHz [52] (disabled)
                        * 5280 MHz [56] (disabled)
                        * 5300 MHz [60] (disabled)
                        * 5320 MHz [64] (disabled)
                        * 5500 MHz [100] (disabled)
                        * 5520 MHz [104] (disabled)
                        * 5540 MHz [108] (disabled)
                        * 5560 MHz [112] (disabled)
                        * 5580 MHz [116] (disabled)
                        * 5600 MHz [120] (disabled)
                        * 5620 MHz [124] (disabled)
                        * 5640 MHz [128] (disabled)
                        * 5660 MHz [132] (disabled)
                        * 5680 MHz [136] (disabled)
                        * 5700 MHz [140] (disabled)
                        * 5745 MHz [149] (disabled)
                        * 5765 MHz [153] (disabled)
                        * 5785 MHz [157] (disabled)
                        * 5805 MHz [161] (disabled)
                        * 5825 MHz [165] (disabled)
                Bitrates (non-HT):
                        * 6.0 Mbps
                        * 9.0 Mbps
                        * 12.0 Mbps
                        * 18.0 Mbps
                        * 24.0 Mbps
                        * 36.0 Mbps
                        * 48.0 Mbps
                        * 54.0 Mbps
        max # scan SSIDs: 9
        max scan IEs length: 255 bytes
        Coverage class: 0 (up to 0m)
        Supported Ciphers:
                * WEP40 (00-0f-ac:1)
                * WEP104 (00-0f-ac:5)
                * TKIP (00-0f-ac:2)
                * CCMP (00-0f-ac:4)
                * WPI-SMS4 (00-14-72:1)
        Available Antennas: TX 0 RX 0
        Supported interface modes:
                * IBSS
                * managed
                * AP
                * P2P-client
                * P2P-GO
        software interface modes (can always be added):
        valid interface combinations:
                * #{ managed } <= 3, #{ AP } <= 1, #{ P2P-client, P2P-GO } <= 1,
                  total <= 3, #channels <= 2
        Supported commands:
                * new_interface
                * set_interface
                * new_key
                * new_beacon
                * new_station
                * set_bss
                * join_ibss
                * set_pmksa
                * del_pmksa
                * flush_pmksa
                * remain_on_channel
                * action
                * frame_wait_cancel
                * set_channel
                * Unknown command (82)
                * Unknown command (81)
                * Unknown command (75)
                * connect
                * disconnect
        Supported TX frame types:
                * managed: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                * AP: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                * P2P-client: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
                * P2P-GO: 0x00 0x10 0x20 0x30 0x40 0x50 0x60 0x70 0x80 0x90 0xa0 0xb0 0xc0 0xd0 0xe0 0xf0
        Supported RX frame types:
                * managed: 0x40 0xd0
                * AP: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
                * P2P-client: 0x40 0xd0
                * P2P-GO: 0x00 0x20 0x40 0xa0 0xb0 0xc0 0xd0
        Device supports roaming

Another problem is that alien dalvik VM seems to need some kernel support. With opensource version it goes nuts with "alien_init" because it cannot open /dev/mysatrokerServer. And crashes and reloads all the time :(.

Looks like the mysatroker module is missing:

Code:

filename:      /lib/modules/3.4.0.20131118.1/kernel/mysatroker.ko
license:        Proprietary.Copyright 2012-2013 Myriad Group AG. All Rights Reserved.
author:        Myriad Group AG
description:    MYriad Share Anything TROugh KERnel
depends:       
vermagic:      3.4.0.20131118.1 SMP preempt mod_unload modversions ARMv7

The description alone gives me goose bumps as an engineer :/

nieldk 2013-12-23 10:24

Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
 
@djselbeck

Well, the mysatroker module seems to be some myriad implementation of /dev/binder. Yet another propriatrairy implementation :(

(http://talk.maemo.org/showpost.php?p...&postcount=718)

As for the wireless driver.
Wow, there are at least some points interresting there:

Code:

                HT TX/RX MCS rate indexes supported: 0-7
                Frequencies:
                        * 4920 MHz [-16] (disabled)
                        * 4940 MHz [-12] (disabled)
                        * 4960 MHz [-8] (disabled)
                        * 4980 MHz [-4] (disabled)
                        * 5040 MHz [8] (disabled)
                        * 5060 MHz [12] (disabled)
                        * 5080 MHz [16] (disabled)
                        * 5180 MHz [36] (disabled)
                        * 5200 MHz [40] (disabled)
                        * 5220 MHz [44] (disabled)
                        * 5240 MHz [48] (disabled)
                        * 5260 MHz [52] (disabled)
                        * 5280 MHz [56] (disabled)
                        * 5300 MHz [60] (disabled)
                        * 5320 MHz [64] (disabled)
                        * 5500 MHz [100] (disabled)
                        * 5520 MHz [104] (disabled)
                        * 5540 MHz [108] (disabled)
                        * 5560 MHz [112] (disabled)
                        * 5580 MHz [116] (disabled)
                        * 5600 MHz [120] (disabled)
                        * 5620 MHz [124] (disabled)
                        * 5640 MHz [128] (disabled)
                        * 5660 MHz [132] (disabled)
                        * 5680 MHz [136] (disabled)
                        * 5700 MHz [140] (disabled)
                        * 5745 MHz [149] (disabled)
                        * 5765 MHz [153] (disabled)
                        * 5785 MHz [157] (disabled)
                        * 5805 MHz [161] (disabled)
                        * 5825 MHz [165] (disabled)

As well as a couple of unidentified function calls:

Code:

                * Unknown command (82)
                * Unknown command (81)
                * Unknown command (75)

I call this improvement - despite that Myriad c.....

djselbeck 2013-12-23 10:50

Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
 
I doubt that the 5GHz channels can be activated.

But nevertheless it is good to have an own kernel running.

Hope an open whatsapp will be ported soon, so I can remove the alien piece of junk.

djselbeck 2013-12-24 11:05

Re: [HOWTO] Comprehensive Firmware Flashing Guide for Jolla
 
Hello again,

I've uploaded the updated kernel sources with integrated prima wlan driver. If someone wants to try it you should know that it currently doesn't read the correct MAC adress and generates an automatic one.

https://github.com/djselbeck/sailfis..._jolla_msm8930

Also you can prevent alien_init from going crazy if you replace

/opt/alien/system/genv/bin/{mysatroker_ressource_manager_server,mysatroker_au dio_server} with following bash script

Code:

#!/bin/bash
echo "DUMMY"
while :
do
        sleep 3600
done

You loose audio support with that but at least you can use whatsapp with own kernel. PLEASE BACKUP YOUR OLD BINARIES


All times are GMT. The time now is 15:02.

vBulletin® Version 3.8.8