-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UZ801 V3.0 Support #46
Comments
Firmware files and the fixed kernel can be found here. First, install the *.deb packages using dpkg, then flash the provided boot.img to /dev/mmcblk0p12. Simple "dd" command should work. Reboot after flashing. If everything went fine, you should see the red LED blinking, indicating that the system is running. Blue LED is set to trigger on WiFi TX, Green LED has no default trigger. After rebooting, old kernel packages can be uninstalled to free up space. |
I'm just buy the stick and flash debian without any backup Every info i have now is this:
|
Your board is UFI003. Firmware files in debian.zip are for UFI001 and (as you've witnessed) aren't fully compatible. You should have taken a full flash dump before flashing. Or grabbed a 2-pack, like I did. These sticks are dirt cheap. |
Hi, I followed all the steps, I copied the firmwares but when I check the modem information with mmcli -m 0, I get: Status | lock: sim-pin2 if i try to start modem : user@openstick:~$ mmcli -m 0 --enable Do you have idea ? i try to make low cost lte proxy but with the stock firmware i have all the times crash etc (i have 200 dongles for this) my projet it's to pass my dongles to debian for more stability but lte don't work :/ |
Does the SIM card have a PIN code ? It looks like it's locked. |
With the firmware uz801 https://github.com/OpenStick/OpenStick/releases i have this : user@openstick:~$ mmcli -m 0 --simple-connect="apn=internet.voo.be,user=,password=" error: couldn't connect the modem: 'GDBus.Error:org.freedesktop.ModemManager1.Error.Core.InProgress: Connection request forbidden: operation already in progress' Do you have an idea ? i have FY_UZ801_V2.1 on the dongle |
With the v1 version the 3g work but i cannot active the connection with nmtui. I need to find the firmware for V2 version :/ |
Status shows "Status: lock: sim-pin2" Again, have you tried unlocking ? |
@ddscentral May I ask you how did you generate the boot.img file? I compiled the last msm8916-mainline kernel release (v6.3: the change log says it should support the UF896 stick), but couldn't generate the boot.img. Thanks! |
@lfgomez You can find kernel build instructions on OpenStick's Chinese wiki (use Google translate). They are somewhat incomplete, but it's not hard to figure out the missing parts. I have tested mainline kernel 6.3-rc4 (mainline, not the msm8916 fork) on my UZ801 v3.0 and it appears to crash on boot, even though a dev who submitted a PR to mainline kernel with the DTS file for UZ801 v3.0 claims that the stick should fully work with the mainline kernel. |
I'm the one who maintains the mainstream dts, do you mind PM me about the details? I have only tested a mainlined pmOS, which works as intended. It's recommended to read the relevant pmOS wiki page. |
@185264646 Not sure which details do you mean. |
Basically we use the same config, that is |
The SBL1 binary in my modded stick is from base.zip. Not sure where it was taken from. I assume it's from the UFI001C. Also, is it safe to swap just the SBL1 partition or would I need to reflash other sensitive partitions as well (hyp, rpm, tz, cdt) ? Sorry if this sounds noob-ish, just don't want to end up with a brick. |
Well, flashing any sbl1 is quite safe AFAIK. You only need to be careful when flashing tz and hyp since they must be paired, i.e., stock tz + stock hyp / db410c tz + db410c hyp(qhypstub). It'll brick before aboot (which provides fastboot interface) if you use other combination like stock tz+db410c hyp or db410c tz + stock hyp. CDT seems like an unused partition. The base.zip should be okay. If you already flashed base.zip, sbl1 shouldn't be an issue. |
Have you ever tried msm8916-mainline/linux.git? Does it work? Would you please bisect it if this fork is working while mainline is not? There are not too many downstream commits there and most of them are just dts changes so it shouldn't consume too much time. |
Ok, I will give it a try and report back. |
Yes, I was able to generate the boot deb file for the kernel and the boot image using the info of the address that @ddscentral replied. But I was unable to boot the stick with this image. After flash it, I always get a red led on and nothing more. I was able to revive the stick using EDL mode to flash a functional boot image. I have no idea what is the error during the boot as I don't have the Serial terminal output yet. If anyone has any other ideas, I can try on my stick. |
Sorry, I did not have time to test the mainline kernel myself due to lack of free time. @lfgomez What did you see on boot after flashing the kernel ? With the correct DTS file, you should have at the very least get a blinking red LED after power on (this indicates that the kernel is running). It would also be useful to change the green (or blue) LED trigger in the DTS file to mmc0. This would allow you to see if there's any disk activity during boot. BTW, I have a fixed aboot.img with GPIO pins correctly assigned to match the UZ801's configuration. With this, you can boot to fastboot by holding the reset key during power on. Useful for testing kernels. |
@ddscentral Thanks for all your work. I flashed succesfully my UZ801 V3.2 stick. After flashing with your very good manual https://zebra.ddscentral.org/pub/downloads/openstick/firmware/uz801_v30/README it works but there are three problems:
What can i do to resolve these issues? WIFI config: wpa=2 ieee80211n=1 |
@jongerenchaos What's the overall stability of the device other than the issues you've mentioned ? Any spontaneous reboots/crashes ? My hostapd.conf looks like this
I've replaced the sensitive bits with asterisks. |
Yeps it is not stable. The LTE connection lost his connection after some minutes
I used yours and i didn't make a backup. I ordered a new one to save this files and use them on this stick. So maybe that's the reason that this not work properly....
Flashboot works after some extra tests (only for me on linux), so i can reflash it...
I will try your wifi config and i let you know the results |
@jongerenchaos WiFi issues may also be caused by mismatched firmware and/or NVRAM. You can try out my hostapd config. If it doesn't fix your WiFi issues, you will need to wait for the second stick to arrive to get the correct firmware and NVRAM from it. |
I have a UZ801 V3.0 stick that is still running the original firmware and I would like to get a dump of it. |
I've got two V3.2 sticks and was lucky enough to want a full test of the first one before flashing the second one, so it's still untouched beyond enabling adb via http://192.168.100.1/usbdebug.html . I have a root shell and adb access, and I'm willing to dump files from it. I'd be glad to get instructions, and will browse the rootfs otherwise when I find some time. |
Full backup more info: https://forum.xda-developers.com/t/guide-full-phone-backup-without-unlock-or-root.1420351/ For only the files for using debian
|
Thanks @jongerenchaos. I've pulled persist, and EDIT: ATTENTION! The below is not from a V3.2 but from a V3.0 stick! Quite a few files are changed in |
Using the 3.0 firmware files, ModemManager is looping through this every minute for a while before giving up:
The SIM didn't need any special config with the original Android firmware on that dongle, so there must be something missing in the drivers or firmware or config. |
@ge0rg Did you copy region-specific mcfg_sw.mbn from image/modem_pr ? I'm asking because this step is somewhat unuintuitive and easy to skip accidentally. I'm not entirely sure whether it's absolutely necessary though. As for other issues, WiFi is indeed somewhat slow'ish, about 14-16mbits/s but I only tested using a WiFi to Ethernet bridge (repurposed cheap router) with a plasterboard wall between the stick and the bridge. Will try testing directly to see if performance remains the same. |
@ddscentral I tried For reference, I was able to do LTE at 90Mbit/s down, 50Mbit/s up via USB rndis on the Android firmware. I'll post comparison numbers with Debian as soon as I get this SIM card to work, but I have zero experience with debugging mobile modems, all my Hayes knowledge is from the 1990s ;) P.S: could you add |
I created this repository already half a year ago, the only thing is that the image is a little broken (read the release description) but overall it works |
I have both versions uz801_v3.0 and uz801_v3.2, I flashed them with Openwrt, they are actually both working good except for the WiFi speed which I noticed is slower than stock ROM, both sticks are identical and can run the same firmware just make sure to dump the modem.bin and restore later to /lib/firmware. |
Maybe it's because openwrt is using open source drivers instead of the proprietary ones in Android. The driver issues also exists in many android phones and routers when community try to port Linux/AOSP to them.. |
Hi, I entered in adb mode by clicking /usbdebug.html just for curiosity but never planed to hack my UZ801 v3.0 device, and I didn't tried it. How can revert to functional state with stock rom as before ? Thanks in advance |
As far as I know usbdebug.html is a temporary thing, and to get everything back you just need to reboot the modem by turning off the power from it, I can also say for sure that when usbdebug is turned on, the modem functionality continues to work and what you described clearly should not happen, unless you removed the system from emmc via fastboot or edl |
I still have a stock unmodified UZ801 V3.0 stick. I will try to find some time to grab a full dump if anyone needs it. |
what version did you flash @cashin79 ? |
Immortalwrt |
Sorry for being off-topic, but my modem’s wifi died, and I want to find something more reliable, can you please tell me where I can find lists of devices on which I can install aka mobian (the main thing is not openwrt, I’m tired of it, maybe something like debian) and use them As a portable 4G router, having a battery and working without a week of setup will be a plus. Thank you. |
@ddscentral you stated earlier in this thread: For modem to work, you will need to dump modem firmware files from stock ROMs modem partition and copy them to /lib/firmware How do I open up the modem.bin file that edl tool got for me? I dumped all partitions before flashing. |
You can extract it with binwalk |
You can mount the image file in Linux. |
Ah got it. Renamed the file modem.iso and then Thanks! |
Next question: I was using wvthoog.nl's debian build (bookworm) but his file server is down currently. I have two Z801 V3.0 dongles, one with his debian version installed correctly, and one stock. I have dumped all partitions from the stock stick using edl and I'd like to flash with debian. Is there a way to copy from the finished debian stick to the stock stick? I dd'd the /dev/mmcblk0 from the debian stick, which pulled everything bit for bit, right? How would I flash that data to the stock stick? |
I believe edl has functions to read and write firmwares edl rf flash.bin -> to dump whole flash for device with emmc edl wf dump.bin -> to write the rawimage dump.bin to flash |
Can confirm that |
Hi @ddscentral, I'm trying to build a new "known clean" debian image with the latest kernel to flash, as it seems that the current one that has had kernels appended to it has some weirdness, packages missing etc. I'd be down to set up some form of Gitlab CI pipeline to pump these out on the regular, but don't know how where a known working kernel is, or how to get the first bit of image created and kernel installed. Do you have any pointers? Thank you! |
is there somewhere a more up-to-date documentation on how to create an updated rootfs.img and boot.img for the current debian version? |
I'm continuing to run into the problem of the modem not working. The board has UZ801_V30 printed on it, but if I pull info from the modem using
Does this match what other folks have? Should note that with stock firmware the modem works fine. I've even copied the recommended files over from the modem.bin that I pulled off my stick. Feels like it must be a modem driver issue. Are there no other files to copy over from the stock firmware other than the Also note: I'm in West Africa, so maybe the SIM cards here are somehow different than Europe or US...but the fact that it all works with stock firmware makes me lean towards the firmware files being the problem. |
@parzival-space https://wvthoog.nl/openstick/ has done the work to update the image to bookworm. |
I know, but sadly they didn't document the process in doing so... I am currently able to build the Kernel and roots but fail to load the devicetree correctly. |
Followup: I flashed a openWRT image I found online, and that returns I can turn on and enable the modem, which is more than I could do before.
Update: I needed to strictly follow directions from others, and actually copy the files from the modem partition to /lib/firmware. After I did that, the firmware version was more recent, and the modem was enabled. Now the problem is that the IMEI got lost. Seems like i can get it back by re-flashing stock firmware, but I need to get it re-written with the debian image. Then all my problems will be solved. |
Tried a different stick, starting from stock and IMEI was preserved. After moving modem.bin files into place, it works! Now I need to figure out routing for clients who join the hotspot to have net access. |
Congrats ! |
I've created a shell script that builds the latest debian image using the kernel provided by postmarketOS. See here. Note that the firmware blobs for the modem and wifi are not included. They must be extracted from the original firmware. |
@kinsamanka Wow, great work. Well, mine still runs on 5.15 kernel and works fine, don't want to mess with it right now. It would be a good idea to add short instructions on how to run the build locally instead of the cloud. Not a problem for me (I can read scripts), but would still be useful as not everybody uses github or has an account. Also, some folks may just prefer building locally. |
Hi i want to flash OpenWRT on my fy UZ801 v3.2 can you help |
I have created this issue to serve as an instruction on how to get Debian working properly on UZ801 V3.0 boards.
I have recently acquired a couple of these from Aliexpress. One is left in stock condition, other is flashed with Debian.
This model appears to be pretty recent, the firmware build in it is dated February 2023. A quick google search shows someone has already made DTS files to support this model.
The rootfs from debian.zip file mostly works fine but requires some tweaks:
For modem to work, you will need to dump modem firmware files from stock ROMs modem partition and copy them to /lib/firmware
You need the following files: modem.* mba.mbn and likely also mcfg_sw.mbn (located in image/modem_pr, region specific).
I would also suggest dumping and copying the WiFi firmware files (wcnss.*) as well.
I'm not absolutely sure if these are also board specific but they do work fine in AP mode. I didn't test AP mode with the original files.
With firmware files installed, LTE modem works fine.
For WiFi to work in AP mode, you need to dump the NVRAM file /persist/WCNSS_qcom_wlan_nv.bin from the stock ROM and copy it to /lib/firmware/wlan/prima/. NVRAM file provided in the image only works in client mode without crashing.
LEDs in the platform driver are not mapped correctly and do not work. You can manually toggle LEDs by exporting GPIO pins 6, 7 and 8 (offset is 390) as output and toggling their values. Proper integration requires a kernel rebuild.
Restart button is GPIO pin 23 active low.
Other than the LEDs, everything works fine. The OS appears to be stable so far.
I will recompile the kernel with fixed LEDs (and probably also the reset button) and upload it here later.
If anyone needs files from the stock ROM for Modem and WiFi, I can also upload them here.
Information source:
https://lore.kernel.org/lkml/e924121c-4d3c-a200-cd7e-9d07deff80de@linaro.org/T/
The text was updated successfully, but these errors were encountered: