LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   udev doesn't modeswitch Huawei modem on power on, after change to 4.4.38 and initrd (https://www.linuxquestions.org/questions/slackware-14/udev-doesnt-modeswitch-huawei-modem-on-power-on-after-change-to-4-4-38-and-initrd-4175607175/)

jareklakman 06-02-2017 08:26 AM

udev doesn't modeswitch Huawei modem on power on, after change to 4.4.38 and initrd
 
Hi!
I've got 2 Huawei modems. One of them in Hi_link mode work well on older Slackwares and second did not, so I install 14.2 and 4.4.38 kernel and make initrd.
After that when I power up server, both modems stay in "mass storage" mode. When I 'modeswitch' them manually or use something like
Code:

udevadm -trigger -add
they appears as modems. After reboot (with power turn on) they remain in previous state.
Server is IBM X3650 and rebooting took long time.

I was trying to enable serial console, but for some reason serial port doesn't want to work. I turn off internal/bios management console but I still can't send/receive any data. Serial port hardware seems to work, because in "internal console" mode sends some rubbish via null modem to other terminal.
I can see port in /proc/tty/driver# cat serial

So, the question is, what should I do with udev and how, so it 'modeswitch' my modem after power on? And before rc.inet1 try to bring up interfaces?
I still have got disk with installed Slackware 14.1 without initrd and udev work there just fine.

it's 5.06.2017 and I forced my com port to work find new logs.
From /var/messages
Code:

Jun  2 18:35:00 ibmserwer kernel: <31>[  10.475603] udevd[1722]: RUN 'usb_modeswitch '%b/%k'' /lib/udev/rules.d/40-usb_modeswitch.rules:24

[...]

Jun  2 18:35:00 ibmserwer kernel: <31>[  10.740285] udevd[1716]: 'usb_modeswitch '/1-7:1.0''(err) '/lib/udev/usb_modeswitch: line 77: cannot create temp file for here-document: Read-only file system'


jareklakman 06-13-2017 03:01 AM

So I fix it my self.
1) I comment initrd in lilo.conf but it wasn't help. But I keep it commented if it is not necessary.
2) Manually (from source) upgrade my usb_modeswitch (from 2.2.x to 2.5.0) . It changes usb_modeswitch in /lib/udev, among other things, and that helps.

I also add launch rc.inet1 script to /etc/udev/rules.d/70-persistent-net.rules after system install eth2 (one of Huawei modem in my case).


All times are GMT -5. The time now is 10:41 AM.