Can someone please help me set up my tata-photon (huawei) modem
?
Manish Jain
invalid.pointer at gmail.com
Wed Jun 29 05:50:24 UTC 2011
Hello Matthias,
I got it to work ! I symlinked /usr/local/bin/tclsh8.2 as tclsh, but
that was probably not the only factor involved. In a streak of
unintended brilliance, I had set the device in ppp.conf as /dev/cuaU0,
whereas there is no such device - as /var/log/ppp.log complained.
(Thanks for your suggestion for looking up the log). I changed
/dev/cuaU0 to /dev/cuaU0.0, as a matter of courtesy. Now my FreeBSD
box is connected to the internet and I don't have to boot into XP
again (as long as I can hope).
Thanks again
Manish Jain
On 29-Jun-11 00:55, Manish Jain wrote:
Hello Matthias,
Yes, I do have /dev/cuaU0.0 along with corresponding lock and init
files, although I cannot give you the output you want right now since
I am booted into XP with the FreeBSD 8.2 dvd image being downloaded.
(This will hopefully finish in about 15 hours, as cygwin::ncftpget
suggests).
I also tried a few other things, most notably installing
usb_modeswitch, and putting this into /etc/devd.conf :
attach 100 {
device-name "ugen[0-9]+";
match "vendor" "0x12d1";
match "product" "0x1446";
action "/usr/local/bin/usb_modeswitch";
};
Running kldload for u3g and ucom indicates they are both already
loaded. Running usb_modeswitch seems to have also generated some
/dev/ttyU<n>.<n> files, along with corresponding lock and init files -
just like the cua entries.
The only thing that seems out of place with the current setup is that
usb_modeswitch's wrapper (usb_modeswitch_dispatcher) needs
/usr/local/bin/tclsh, and for some reason the FreeBSD installer
installed it as /usr/local/bin/tclsh8.2
I'll try fixing the above tomorrow and will try out anything
you/someone else might have to suggest. BTW, I made a slight error in
my original message. My system's release version is 8.1, not 8.0.
Thank you &
Regards
Manish Jain
[1]invalid.pointer at gmail.com
On 29-Jun-11 00:16, Matthias Apitz wrote:
El día Tuesday, June 28, 2011 a las 01:47:31PM +0530, Manish Jain escribió:
Hi all,
My tata-photon (huawei) modem works painlessly on Win XP. Every
setting is auto (including getting the nameserver). The auth protocol
is CHAP. But when I boot into FreeBSD 8.0 (stable), and run 'ppp -auto
pmdemand' followed by 'ping [1]www.google.com' (or yahoo or any other
site, for that matter), I always get "Hostname lookup failure". BTW, I
don't have an /etc/resolv.conf. I only configured ppp.conf (please see
below for details). Can someone please help me set up the modem so
that I can dial out and connect to the internet from my FreeBSD box ?
Thanks in advance.
Manish Jain
This is my ppp.conf :
...
Hello Manish,
Before digging into the ppp details (there is a log about in
/var/log/ppp.log), do you have after attaching the Huawei modem a
device /dev/cuaU0 at all? What does the following command gives:
ls -l /dev/cua*
chat -vs < /dev/cuaU0.0 > /dev/cuaU0.0 '' AT OK 'ATI2' O
printf "\n"
HIH
matthias
References
1. mailto:invalid.pointer at gmail.com
More information about the freebsd-questions
mailing list