-
Notifications
You must be signed in to change notification settings - Fork 302
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
Segmentation fault in fastboot mode with imx6 board. #420
Comments
Does below patch fix your problem.
|
But this patch you have sent is already applied and I can see these modifications are exist in the latest commits and I have this issue with latest version. anyway it doesnt fix. |
Strange, info->serial_idx should be 0 for imx6. |
I think I have the same problem with i.MX8MP. lsusb -v for this device shows:
Interesting:
This looks more like a serial number, than a configuration name. Brand new git clone of mfgtools!
|
Additional notice: When I call uuu with Yocto Phytec Kirkstone Bootloader and Image -> uuu works It could also happen that instead of "Seg Fault" the download just hangs. Depends on version/kind of bootloader, if it offers something or not, or wrong? @hamzehnasajpour Where are your files, you want to flash and get Seg Fault, coming from? |
|
@hamzehnasajpour Could it be that above patch is not what you tested with?
The error case seems to be that sid = 0. Then info will be used. But in case of Seg Fault info is also 0. info->serial_idx; I have now used something very similar:
Is this sid (which is later used for libusb_get_string_descriptor_ascii) used for any important purpose? All in all with change
it seems to download till end without a segfault. |
Thanks, I missed if(info) sid = info->serial_idx; Add serial number help option -ms to filter out the devices, which have super speed support. When multi board devices connect to PC, uuu -m usb2.0_port -m usb3.0_port uuu.script. User need find out two physical ports for one devices. If support serial number uuu -ms <serial_no> will only monitor devices, regardless connected to which physcial ports Can you send pull request to me? |
Bugfix against SegFault of nxp-imx#420: If info is 0, no access on content is possible.
Update usbhotplug.cpp - bugfix against SegFault of nxp-imx#420
Thanks for the explanation and the tool itself! |
Bugfix against SegFault of #420: If info is 0, no access on content is possible.
@hamzehnasajpour Can you please retest, if the above change also fixed the problem on your side? |
@nxpfrankli This change was my solution which I had mentioned in the description :), you can see it. anyway, it will fix the problem. |
Thanks for your reply! Pay attention that your suggested fix and the now commited fix is different. if (sid) ... -> if (info) ... |
@capiman Sorry, was my mistake, I dont know why I had submitted wrong patch. I also was using
as solution. Anyway the patch works fine. Thanks. |
I have a MX6 custom board, after sending the bootloader via UUU, I run the
fastboot 0
in my bootloader. Theuuu
can't detect the device and faced withsegmentation fault
.commit:
88ce01edebbcd651f9288d664d17ef45beffb441
version:
uuu (Universal Update Utility) for nxp imx chips -- libuuu_1.5.177-0-g88ce01e
backtrace with
gdb
:If I use the previous versions it works and I can list my device.
This is the patch that works but I am not sure this is the best solution or not:
The text was updated successfully, but these errors were encountered: