UF896 - Qualcomm MSM8916 LTE router ~384MiB RAM/2.4GiB flash, Android: OpenWrt?

IT seems that an image for this LTE Dongle also can be compiled with KaLi Linux tools exactly the "P4wnP1 A.L.O.A." which originally was made for the Raspberry pi zero, this time supporting OpenStick.

Also, there is some directions and a bit of how this came up

and here

Hello,
Is it possible to send and receive sms with OpenStick firmware or another one?

If i remeber correctly at least receiving a SMS works, but i only played with it manually using mmcli once. My guess is that sending should work too if the modem is correctly configured. I dont know a non hacky way to manage SMS tho.

Openwrt image

Thats btw not correct.
The IMEI gets stored in the modemst1 and modemst2 partition for this device. So changing the IMEI in the stock firmware does actually overwrite the IMEI, but resetting it to the old value is not a problem so the advice is still correct :slight_smile:

The problem is, that these partitions are not altered by the modem on OpenWRT when using the AT+WRIMEI={{ IMEI }} Command used by the stock firmware. Therefore the IMEI change does only work on the stock firmware.

But I dont know whats causing this issue. Has anybody an idea and does it work on Debian?

Thanks @JoffeL.
After searching a bit I found this app made by @IceG.

I created a script here that can build a minimal alpine or debian rootfs. It uses the latest kernel provided by postmarketOS.

It needs the stock firmware to work. Make sure that the modem works with the stock firmware.

I've tested it on a FY UZ801 v3.2 and jz01-45 v33 boards.

I've investigated on running OpenWrt on it and I think the problem would be porting rmtfs, this code requires udev support which unfortunately is not available on OpenWrt.

4 Likes

I've found the EDL pins:

5 Likes

Hi, My device is UFI0001B, having esim plus sim and no sdcard. After spending so many days to make my sim slot work, I have found a solution that works. Hope it will benefit the community.
I will post the details soon...

Finally, I have the lte modem working on openwrt , alpine linux and debian. It was really difficult for a noob like me but pulled it up somehow.
If anybody is interested I will share the details....

1 Like

Details are always welcome! :slight_smile:

Which image did you use?

Hi, great achievment indeed. I gave up personnaly with my UF896... Is
this the stick you do have?
Could you share what you did and an your image pls.
At least outcome of mmcli -m 0, so that I see which modem pilote you've
set up. Thx

 ----------------------------------
  General  |                   path: /org/freedesktop/ModemManager1/Modem/0
           |              device id: 132d2ec1d2ad409c21c1d03bdd1c2f8f56865064
  ----------------------------------
  Hardware |           manufacturer: 1
           |                  model: 0
           |      firmware revision: MPSS.DPM.2.0.2.c1-00178-M8936FAAAANUZM-1D  1  [Nov 04 2016 02:00:00]
           |           h/w revision: 10000
           |              supported: gsm-umts, lte
           |                current: gsm-umts, lte
           |           equipment id: 864293052018344
  ----------------------------------
  System   |                 device: qcom-soc
           |                physdev: /sys/devices/platform/soc@0/4080000.remoteproc
           |                drivers: qcom-q6v5-mss, bam-dmux
           |                 plugin: qcom-soc
           |           primary port: wwan0qmi0
           |                  ports: wwan0 (net), wwan0at0 (at), wwan0at1 (at), wwan0qmi0 (qmi), 
           |                         wwan1 (net), wwan2 (net), wwan3 (net), wwan4 (net), wwan5 (net), 
           |                         wwan6 (net), wwan7 (net)
  ----------------------------------
  Numbers  |                    own: (Lets keep it secret)
  ----------------------------------
  Status   |                   lock: sim-pin2
           |         unlock retries: sim-pin (10), sim-puk (10), sim-pin2 (3), sim-puk2 (10)
           |                  state: connected
           |            power state: on
           |            access tech: lte
           |         signal quality: 100% (recent)
  ----------------------------------
  Modes    |              supported: allowed: 3g; preferred: none
           |                         allowed: 4g; preferred: none
           |                         allowed: 3g, 4g; preferred: 4g
           |                         allowed: 3g, 4g; preferred: 3g
           |                current: allowed: 3g, 4g; preferred: 4g
  ----------------------------------
  Bands    |              supported: utran-1, utran-5, utran-8, eutran-1, eutran-3, eutran-5, 
           |                         eutran-8, eutran-38, eutran-39, eutran-40, eutran-41
           |                current: utran-1, utran-5, utran-8, eutran-1, eutran-3, eutran-5, 
           |                         eutran-8, eutran-38, eutran-39, eutran-40, eutran-41
  ----------------------------------
  IP       |              supported: ipv4, ipv6, ipv4v6
  ----------------------------------
  3GPP     |                   imei: (Lets keep it secret)
           |          enabled locks: fixed-dialing
           |            operator id: 42901
           |          operator name: Namaste
           |           registration: home
           |   packet service state: attached
  ----------------------------------
  3GPP EPS |   ue mode of operation: csps-1
           |    initial bearer path: /org/freedesktop/ModemManager1/Bearer/2
           |     initial bearer apn: web
           | initial bearer ip type: ipv4
  ----------------------------------
  SIM      |       primary sim path: /org/freedesktop/ModemManager1/SIM/0
  ----------------------------------
  Bearer   |                  paths: /org/freedesktop/ModemManager1/Bearer/3

I used sources from https://github.com/lkiuyu/immortalwrt
Compiled it , did some modifications , And its works. Currently posting using the internet through same usb stick.

I will post the details later....

If needed, will post the compiled image for UFI001B Stick.

Got to go now.

I feel every stick should work provided you have the stock rom intact.

What kernel does it have after compiling?

You can download kernel and system image for latest snapshots of openwrt from

I have uz801 v3.0 actually, any list of steps to compile it correctly?
I used immortalwrt/immortalwrt latest image before couple of days but when I flashed my stick , it became dead, I hardly restored it by edl.

Installation is same as usual...

Prerequisites

**** Very Important ****
If you are on stock rom and if its Esim + External Sim modem, then make sure you set it to external 
modem and make it default. Please check it is there in the router configuration page. 
If you forget , high chances are your sim wont be detected.
 Credit goes to Mr Kinsamanka and Mr lkiuyu
https://forum.openwrt.org/u/kinsamanka/summary
  https://github.com/lkiuyu
   
                **** Very Important ****
We need  following files  from the original firmware:

    fsc.bin
    fsg.bin
    modem.bin
    modemst1.bin
    modemst2.bin
    persist.bin
    sec.bin
* Use command to get it from stock rom in edl mode

for n in fsc fsg modem modemst1 modemst2 persist sec; do
    edl r ${n} ${n}.bin
done
   
* Install aboot using edl command 

edl w aboot aboot.mbn

* Reboot to fastboot

edl e boot
edl reset

* Flash firmware

fastboot flash partition gpt_both0.bin
fastboot flash aboot aboot.mbn
fastboot flash hyp hyp.mbn
fastboot flash rpm rpm.mbn
fastboot flash sbl1 sbl1.mbn
fastboot flash tz tz.mbn
fastboot flash boot boot.bin
fastboot flash rootfs rootfs.bin

* Restore original partitions

for n in fsc fsg modem modemst1 modemst2 persist sec; do
    fastboot flash ${n} ${n}.bin
done

fastboot reboot

Done...
1 Like

Is it dual sim ( Esim + External Sim Modem) ...?

Please follow the procedure mentioned above....

Also you need to compile rootfs and boot file separately.
Once compiled and installed , chances are you wont get connected even if you are registered to that network.

For that we need to add an startup script in the openwrt .

Yes it has esim also but unable to have access to it to activate it even with stock android image.
I am not sure if the compiled image of your stick will work on mine as they are different.
I have actually immortalwrt snapshot with 6.1.38 kernel however most of packages give errors during installation.