The C Source, Patches and (shudder!) Bugs
Post Reply
marcin
Posts: 2
Joined: Thu May 02, 2019 1:22 pm

usb_modeswitch_dispatcher SIGABRT - usb_modeswitch 2.2.0

Post by marcin » Thu May 02, 2019 1:43 pm

Hi,

I have embedded arm custom board with yocto linux, when system is booting with inserted usb modem huawei 3531 HiLink, modem
is not switched because usb_modeswitch_dispatcher got SIGABRT. After removed and insert modem again it is switching.
I modified file 12d1:1f01 and switch it with message 55534243123456780000000000000011063000000100010000000000000000.

Strace log attached.
Attachments
trace_um_abort.log
(11.42 KiB) Downloaded 27 times

LOM
Posts: 1286
Joined: Wed Jul 11, 2012 3:14 pm
Location: Koh Samui, TH

Re: usb_modeswitch_dispatcher SIGABRT - usb_modeswitch 2.2.0

Post by LOM » Thu May 02, 2019 4:27 pm

usb_modeswitch 2.2.0 is 5 years old, there has been 11 update releases since then.
Get back if you have any problems with the current version which is 2.5.2 and which you can find here http://www.draisberghof.de/usb_modeswitch/

Oh, and please tell the maintainers of yacto linux that they are way behind and should update the version of usb_modeswitch they are using.

marcin
Posts: 2
Joined: Thu May 02, 2019 1:22 pm

Re: usb_modeswitch_dispatcher SIGABRT - usb_modeswitch 2.2.0

Post by marcin » Wed May 08, 2019 2:04 pm

I updated to newest version 2.5.2 and I have the same problem. Logs only show:

Code: Select all

USB_ModeSwitch log from Wed May  08 10:33:54 UTC 2019
Attachments
trace_um_2.5.2.log
(7.41 KiB) Downloaded 23 times

Josh
Site Admin
Posts: 6534
Joined: Sat Nov 03, 2007 12:30 am

Re: usb_modeswitch_dispatcher SIGABRT - usb_modeswitch 2.2.0

Post by Josh » Sun May 19, 2019 11:09 pm

The usb_modeswitch_dispatcher can be one of these:

- pure TCL script, started with tclsh, a TCL interpreter
- TCL script wrapped with a small-footprint interpreter, so runs stand-alone
- Ubuntu fork of the script version, implemented in C

You would have to find out which variant is used in Yocto. Can you point to a source package or something in that respect? Maybe you can ask the Yocto community for help about finding it.

ladis
Posts: 5
Joined: Tue Aug 07, 2018 4:32 pm

Re: usb_modeswitch_dispatcher SIGABRT - usb_modeswitch 2.2.0

Post by ladis » Sat Nov 02, 2019 11:19 pm

yocto is using builtin jimtcl, so it seems to be the same problem.

Josh
Site Admin
Posts: 6534
Joined: Sat Nov 03, 2007 12:30 am

Re: usb_modeswitch_dispatcher SIGABRT - usb_modeswitch 2.2.0

Post by Josh » Sun Nov 10, 2019 1:09 pm

I'm about to drop the inclusion of jimtcl altogether.
There should be a libjim on the respective distribution which can be maintained and kept current independently of usb_modeswitch.

Post Reply