[SHR] GPRS / FATAL: Error inserting ppp_mppe

Joel Newkirk freerunner at newkirk.us
Tue Dec 16 04:57:33 CET 2008


On Tue, 16 Dec 2008 01:12:46 +0100, "KaZeR" <kazer at altern.org> wrote:
> Thanks for your fast answer.
> 
> 
>> This is your problem. Somehow you have already four channels
>> open in your modem. TI Calypso does not manage more than
>> four, but will happily assign you an infinite number of
>> channels (still checking whether this is an inherent
>> limitation of 07.10 or not).
>>
>> So, ppp assigns a channel where no one listens to him.
>> Do you have a mickeyterm instance or anything else still open
>> by any chance?
>> ogsmd will only occupy three channels, so that ppp can get
>> the last one.
> 
> Mmm, no. I run SHR, and nothing special beyond that.
> Is there a way to find which processes are using theses channels?

I've been running into the same problem, it seems.  I just ran an opkg
upgrade on my NAND install (SHR from FSO M4 release, opkg upgraded since
though I realize some things are broken or missed that way) and it pulled
in a new frameworkd, new since 8 hours ago when I did the same, and after a
reboot I'm connected via GPRS again, first time in weeks.

But I'm not saying it was the upgrade per se, though I believe this is the
first time in a couple weeks I've gotten GSM registration right after boot.
(Thanks Mickeyl!:)

I did a little debugging and discovered part of what's happening.  With
ppp_generic not inserted I attempted to bring up GPRS three times then
checked the log (tail -n 100 /var/log/messages | grep gsm):

Dec 16 04:02:30 (none) local0.info /usr/sbin/gsm0710muxd[1192]:
gsm0710muxd.c:693:c_alloc_channel(): Connecting /dev/pts/0 to virtual
channel 1 for ogsmd.misc on /dev/ttySAC0
Dec 16 04:02:30 (none) local0.info /usr/sbin/gsm0710muxd[1192]:
gsm0710muxd.c:1410:extract_frames(): Logical channel 1 opened
Dec 16 04:02:30 (none) local0.info /usr/sbin/gsm0710muxd[1192]:
gsm0710muxd.c:693:c_alloc_channel(): Connecting /dev/pts/1 to virtual
channel 2 for ogsmd.unsolicited on /dev/ttySAC0
Dec 16 04:02:30 (none) local0.info /usr/sbin/gsm0710muxd[1192]:
gsm0710muxd.c:1410:extract_frames(): Logical channel 2 opened
Dec 16 04:02:30 (none) local0.info /usr/sbin/gsm0710muxd[1192]:
gsm0710muxd.c:693:c_alloc_channel(): Connecting /dev/pts/2 to virtual
channel 3 for ogsmd.call on /dev/ttySAC0
Dec 16 04:02:30 (none) local0.info /usr/sbin/gsm0710muxd[1192]:
gsm0710muxd.c:1410:extract_frames(): Logical channel 3 opened
Dec 16 04:03:08 (none) local0.info /usr/sbin/gsm0710muxd[1192]:
gsm0710muxd.c:693:c_alloc_channel(): Connecting /dev/pts/4 to virtual
channel 4 for ogsmd.gprs on /dev/ttySAC0
Dec 16 04:03:08 (none) local0.info /usr/sbin/gsm0710muxd[1192]:
gsm0710muxd.c:1410:extract_frames(): Logical channel 4 opened
Dec 16 04:03:44 (none) local0.info /usr/sbin/gsm0710muxd[1192]:
gsm0710muxd.c:693:c_alloc_channel(): Connecting /dev/pts/5 to virtual
channel 5 for ogsmd.gprs on /dev/ttySAC0
Dec 16 04:03:44 (none) local0.info /usr/sbin/gsm0710muxd[1192]:
gsm0710muxd.c:1410:extract_frames(): Logical channel 5 opened
Dec 16 04:03:56 (none) local0.info /usr/sbin/gsm0710muxd[1192]:
gsm0710muxd.c:693:c_alloc_channel(): Connecting /dev/pts/6 to virtual
channel 6 for ogsmd.gprs on /dev/ttySAC0
Dec 16 04:03:56 (none) local0.info /usr/sbin/gsm0710muxd[1192]:
gsm0710muxd.c:1410:extract_frames(): Logical channel 6 opened

So frameworkd is setting up three channels for itself and the fourth should
be for GPRS, but if ppp_generic isn't inserted then it fails to bring up
ppp0 and doesn't release the GPRS resource.  Since the first attempt
(absent ppp_generic) uses the fourth of four available channels and doesn't
release it, then you're done at that point - game over.  After a fresh
reboot, though, if ppp_generic is inserted before GPRS is attempted, you
should be good to go.

j





-- 
Joel Newkirk
http://jthinks.com      (blog)
http://newkirk.us/om (FR stuff)





More information about the community mailing list