mirror of
https://github.com/iamromulan/quectel-rgmii-toolkit.git
synced 2026-04-24 22:25:50 +03:00
[GH-ISSUE #212] RM520n VID/PID switch. #68
Labels
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/quectel-rgmii-toolkit#68
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @reconnectrus on GitHub (Feb 12, 2026).
Original GitHub issue: https://github.com/iamromulan/quectel-rgmii-toolkit/issues/212
Hello, i was reading through your issues @iamromulan @1alessandro1 and I saw discussion of changing the PCIe VID/PID on the RM520n
https://github.com/fwupd/fwupd/issues/8382#issuecomment-3239201651
Is this possible? I tried reading the rawdata partition and found only USB VID/PID configuration and also decompiled all the binaries of the sysfs and didn't find any strings relating to setting the PCIe VID/PID. But when flashing different firmware(HP to Generic or back), the vid/pid changes. Any help?
I can access both the PCIe EDL from Windows and Linux and the PBL EDL (usb) by shorting two pins.
@iamromulan commented on GitHub (Feb 12, 2026):
The PCIe endpoint initialization ( when mhi BHI appears) happens in SBL so it's probably in the sbl image.
How'd you read rawdata?
Also you might be interested in my qdl fork qfenix. Static binaries available under releases. Its still a work in progress but a lot of things are already working. Hadn't had a chance to fully test on PCIe modems yet though.
https://github.com/iamromulan/qfenix/releases
@reconnectrus commented on GitHub (Feb 12, 2026):
I made a little tool to dump rawdata with correct sizes and rawdata IDs.
Or you can just dd /dev/mtd3
@1alessandro1 commented on GitHub (Feb 13, 2026):
#include <stdio.h>was missingI would also check a python equivalent for those who don't want to deal with cross compiling and have the rawdata.bin file dumped from 9008.
Just in case
arm-linux-gnueabihf-gcc -static rawdata_tool.c -o rawdata_tool@reconnectrus commented on GitHub (Feb 13, 2026):
@1alessandro1 This needs to be ran on the device itself with adb.
You could also just dd /dev/mtd3
But I haven't figured out how to dump it in EDL 9008 mode because I'm not sure the RM520N firehose programmer(prog-firehose-lite) supports reading from the flash.
@iamromulan commented on GitHub (Feb 13, 2026):
Can either use dd save to usrdata as rawdata.bin then ADB pull your rawdata.bin
Or
Use my new tool qfenix. Yep the 520 programer works for reading :)
Usage for my tool would be:
cd to dir with programer
(sudo)
qfenix read -s nand rawdata -o ./Or if you want it all:
(sudo)
qfenix readall -s nand -o ./As an added bonus if you want to generate a read and erase+program XML for the entirety of the modules flash:
(sudo)
qfenix printgpt -s nand --make-xml=read --make-xml=program