Tiny Core Linux

Tiny Core Base => CorePlus => Topic started by: ltrk on May 10, 2019, 06:54:21 PM

Title: 4g usb modem -mode switch not happening. shows as disk drive
Post by: ltrk on May 10, 2019, 06:54:21 PM
I am running CorePlus version 9. I tried connecting a 4g usb modem but it shows up as a disk drive. I am guessing the mode seitch to modem is not happening.

I could not find  way to check kernel messages -I just looked for /var/log/messages but thats not there -perhaps its something else?

Do I need to configure anything for the modem to be correctly detected. I thought in the newer kernel this was automatic
Title: Re: 4g usb modem -mode switch not happening. shows as disk drive
Post by: Rich on May 10, 2019, 07:06:06 PM
Hi ltrk
To view kernel messages, you can:
Quote
dmesg > dmesg.txt
and view it with a text editor. Or you can pipe it through the  less  command:
Code: [Select]
dmesg | lessand use  page up/page down  to navigate through the results.

Quote
I just looked for /var/log/messages but thats not there -perhaps its something else?
Add the  syslog  boot code and it will be there.
Title: Re: 4g usb modem -mode switch not happening. shows as disk drive
Post by: curaga on May 10, 2019, 11:58:29 PM
Did you install the modules (usb-serial-KERNEL)? For some sticks those are enough, for others you need usb-modeswitch in addition.
Title: Re: 4g usb modem -mode switch not happening. shows as disk drive
Post by: ltrk on May 13, 2019, 06:54:14 PM
Hi Rich
Tanks for the info will check that
Title: Re: 4g usb modem -mode switch not happening. shows as disk drive
Post by: ltrk on May 13, 2019, 06:57:20 PM
hi curaga
No I have not installed those modules -thought they would be built-in.

I need to offline install these modules -I dont have a network yet. How do I ensure I pick up right version? I saw some discussion in the forums about getting the right version. I'm running on a x86 box.
Title: Re: 4g usb modem -mode switch not happening. shows as disk drive
Post by: Rich on May 13, 2019, 07:28:24 PM
Hi ltrk
... I need to offline install these modules -I dont have a network yet. How do I ensure I pick up right version? ...
You want:
http://tinycorelinux.net/9.x/x86/tcz/usb-serial-4.14.10-tinycore.tcz
http://tinycorelinux.net/9.x/x86/tcz/usb-serial-4.14.10-tinycore.tcz.md5.txt
http://tinycorelinux.net/9.x/x86/tcz/usb-modeswitch.tcz
http://tinycorelinux.net/9.x/x86/tcz/usb-modeswitch.tcz.dep
http://tinycorelinux.net/9.x/x86/tcz/usb-modeswitch.tcz.md5.txt

You will need to make sure these dependencies are also in your  tce  directory:
Code: [Select]
  expat2.tcz
  fontconfig.tcz
  freetype.tcz
  glib2.tcz
  libffi.tcz
  libpng.tcz
  libusb.tcz
  libX11.tcz
  libXau.tcz
  libxcb.tcz
  libXdmcp.tcz
  libXext.tcz
  libXft.tcz
  libXrender.tcz
  libXss.tcz
  tcl.tcz
  tk.tcz
  udev-lib.tcz
  usbutils.tcz
Some of them will already be present. Download the the missing ones including the  .md5.txt  files and the  .dep  files if they
have one.

Then add the following line to your  onboot.lst  file:
Code: [Select]
usb-modeswitch.tczRun a backup if necessary and reboot.
Title: Re: 4g usb modem -mode switch not happening. shows as disk drive
Post by: ltrk on May 31, 2019, 09:57:16 PM
hi rich
thank you for the info.
There is this script that downloads extensions and dependencies. I had to tweak it for 9x since it is set to
3x but its very useful for offline install
http://forum.tinycorelinux.net/index.php/topic,7243.msg38349.html#msg38349 (http://forum.tinycorelinux.net/index.php/topic,7243.msg38349.html#msg38349)

I now have the modem correctly being detected.