LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-02-2017, 08:26 AM   #1
jareklakman
LQ Newbie
 
Registered: Jun 2017
Posts: 14

Rep: Reputation: Disabled
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'

Last edited by jareklakman; 06-05-2017 at 08:40 AM. Reason: new logs
 
Old 06-13-2017, 03:01 AM   #2
jareklakman
LQ Newbie
 
Registered: Jun 2017
Posts: 14

Original Poster
Rep: Reputation: Disabled
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).
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
My Huawei modem doesn't work properly on Madriva 10. Intischar Rahman Mandriva 1 08-22-2011 09:05 AM
ModeSwitch and Detection of Wireless Modem? Novatian Ubuntu 3 03-23-2011 11:12 AM
udev-devel in slackware? problem with huawei e1750 3g modem... WiseDraco Slackware 9 01-08-2010 01:41 PM
The Modem "HUAWEI SmartAX MT810" doesn't work pevets Linux - Hardware 2 01-11-2007 03:27 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 08:46 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration