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

usb_modeswitch_dispatcher SIGABRT - usb_modeswitch 2.2.0

Post by marcin » 02 May 2019, 13:43

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 537 times

LOM
Posts: 1404
Joined: 11 Jul 2012, 15:14
Location: Koh Samui, TH

Re: usb_modeswitch_dispatcher SIGABRT - usb_modeswitch 2.2.0

Post by LOM » 02 May 2019, 16:27

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: 02 May 2019, 13:22

Re: usb_modeswitch_dispatcher SIGABRT - usb_modeswitch 2.2.0

Post by marcin » 08 May 2019, 14:04

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 521 times

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: usb_modeswitch_dispatcher SIGABRT - usb_modeswitch 2.2.0

Post by Josh » 19 May 2019, 23:09

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: 07 Aug 2018, 16:32

Re: usb_modeswitch_dispatcher SIGABRT - usb_modeswitch 2.2.0

Post by ladis » 02 Nov 2019, 23:19

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

Josh
Site Admin
Posts: 6570
Joined: 03 Nov 2007, 00:30

Re: usb_modeswitch_dispatcher SIGABRT - usb_modeswitch 2.2.0

Post by Josh » 10 Nov 2019, 13:09

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