USB: using out-chunk-size of 1048576
What does this mean? When I enter
sudo "/home/sifat06/Downloads/LENOVO yt3-850m/qdl/qdl" --debug "/home/sifat06/Downloads/LENOVO yt3-850m/YT3_850M_S000139_220803_ROW/prog_emmc_firehose_8909_ddr.mbn" "/home/sifat06/Downloads/LENOVO yt3-850m/YT3_850M_S000139_220803_ROW/rawprogram_unsparse.xml" "/home/sifat06/Downloads/LENOVO yt3-850m/YT3_850M_S000139_220803_ROW/patch0.xml"
It shows:
USB: using out-chunk-size of 1048576
and the command finishes...
No idea?
In my case in archlinux both by AUR package and compiling the code from this repository, with a Redmi 9T (lime)
I had the same "problem", I don't know if the program is designed to work under some "programmer", it is assumed that under USB the maximum chunk size is 512 bytes or 1024 in some cases, the same with payload (im not 100% sure) . BTW, in the file
https://github.com/linux-msm/qdl/blob/cbd46184d33af597664e08aff2b9181ae2f87aa6/firehose.c#L201
Here the "maximum" is declared, in my case I changed it to 512 and it doesn't show me the error message. BUT it still doesn't work, in my case at first it showed the message usb: using out-chunk-size of 1048576, I tried to perform the actions and it never finished them, after the corrections, it showed me the same output in the console but without usb: using out-chunk-size of 1048576 (and without working).
Eventually I found another tool that did work for me.
It may be a matter of use case or the specific device, IDK
There are two different "max payload sizes":
- One is the "out-chunk-size" which is the max size of the USB operations that we request from the kernel.
- The other is the firehose "max payload size", which I think defines the size of some internal buffer(s) of the flash programmer.
I'd expect neither of these to relate to the command just exiting silently. This would likely be some other problem.
@sifat06 do note that the *.xml files will refer to the actual binaries to be flashed and qdl will look in the current directory (or one given by --include) for those files. So, unless you $PWD is /home/sifat06/Downloads/LENOVO... it would probably not be able to find the files - but qdl would tell you that.