Tiny Core Linux
Tiny Core Base => TCB Q&A Forum => Topic started by: anli on December 15, 2008, 11:45:50 AM
-
Is it possible to connect to internet with usb-modem (huawei e220)?
-
Yes. The usb 3G modems are just regular modems, that only do not need a password to login.
You'll need PPP to do the connection though, I don't think there was a PPP extension yet?
-
Can i use isomaster to add ppp?
-
Uh, no. It's not a good idea to go edit iso filesystems at all, when you have the best tools for creating them available.
If you have a binary that runs on TC, you can remaster it in (see the Wiki); but the best way would be to create an extension and then load that, either from the net, or any other storage media.
-
Just created a pppd extension; but appears the e220 is an usb-to-serial device, which aren't currently supported in TC. Sorry.
-
the best way would be to create an extension and then load that, either from the net, or any other storage media.
i agree, and that's how i would do it, but i would probably use isomaster to add the extension to the iso. i'm not used to any ability to remaster from a toram boot, but i am accustomed to using isomaster from it. this is not to say it's a good idea. i don't know if it is or not, i assume you would advise against it, but i don't know why. i feel like leaving the compressed bits of tc alone if possible. if i want to remove an extension, at least in theory, i can remove it with isomaster too.
-
@ curaga ; What is needed to implement a usbserial in tc ? Im really interested in getting the e220 3G dongle to work.
-
It would just require compiling the usb-serial module and the "option" module (the one for huawei e220) from the kernel sources. After loading necessary extensions (compiletc, perl_xml, bash) and making a small change (replacing /bin/sh symlink with a symlink to bash), the configure and build should go smooth. Usb-serial support is also scheduled for our next kernel update.
-
Ok, nice, when is next realease scheduled ?
Huawei is vendor=0x12d1, e220 is product=0x1003.
I just started understanding the modular build of tcl and tcl packages, it is so brilliant, excellent work, smart, trying to learn now how to compile, this is interesting.
-
It's not soon I'm afraid, as there is a list of things that need to be done (in the corresponding projects) before an update is worthy. Not before 2.6.30 certainly.
I might have time to create an extension for those soon. But no promises.
-
@ curaga. Thank you for uploading the usbserial driver allready, that was quick.
Think I did wrong somewhere, I copied the usbserial .tcem to my tce directory, booted computer both with and without usb dongle attached during boots, but can still not see ttyUSBx at /dev or /dev/usb. Tried command "sudo modprobe usbserial vendor=0x12d1 product=0x1003" which in most linux dists found my modem, but no luck. Command "sudo modprobe usbserial" replies module usbserial not found, "sudo insmod usbserial" gives cant read. When file-browsing I can not find usbserial anywhere at usr/local, but I do see my other tce-components installed.
Usually my computer does exactly what Im telling it to do, and that is always a problem, I wish my computer was smarter.
TCL rc8.
-
Sorry, I forgot to reply here. That extension has every other usb-serial driver but the generic and 3G ones - my intention is to get those two to the base, they should appear in rc9. Then we'd have support for most 3G dongles right away, and users would only need to worry about ppp.
Until then you may get those two modules from here:
http://www.ziddu.com/download/3045494/3g-modems.tar.gz.html
Rename to .tcem to use it like an extension.
PS: try the option module first, it has direct support for the e220. Should be better than the generic module.
-
Is there anyone who got modem(ppp) working with tcl ? During the weekend I have played around alot with the pppd package but no success, I tried copying ppp from both pups and dsl but nothing is working and I suspect pppd package not working properly in tcl. I belive I have the usbserial correct as it seems to respond. Is it possible activating logs and how is it done ? Please post example of configurations for working ppp connections in tcl.
-
If you don't use the "detach" option at all, pppd will stay in the terminal and print all error messages. Alternatively add "syslog" to your bootcodes to start the log daemon.
For PPP configuration help, see http://www.gentoo-wiki.info/Huawei_E220
-
Played around some but still not successfull, can not find how to detach, is it a tcl command ?
I belive it maybe is permission problem, when just calling my ppp scripts from prompt I get permission denied at ttyUSB0, changed user and group to 777 for ttyUSB0 but still permission denied, confused. Original persmission for ttyUSB0 is sudo/staff.
-
Does somebody have huawei modem working?
I trying with tcl 2.x, I installed the usb-to-serial module, and ppp.
But the model is not recognized, and the ttyUSB0 is not created.
Could somebody help me?
Cheers.
-
it depends on our huawei, but for me it works very well:
1. download the pppd extension with appbrowser and install it
2. plug in your modem (mine is huawei usb e220)
3. edit resolv.conf with the appropriate dns and move resolv.conf into /etc;
4. edit the file pppscript in /etc/ppp in order to reflect the informations of your provider (search in the how to section of the extensions in this forum if you don't know how to do it)
4. open aterm, type:
echo 'at+cpin"YOURPIN"'>/dev/ttyUSB0
echo 'at+cpin"YOURPIN"'>/dev/ttyUSB1 <--- maybe not necessary
sudo pppd -detach connect "chat -v -s -f /etc/ppp/pppscript <-- maybe you'll need to enter it several times since the modem not always hooks at the first time
and you should be ready to browse