[hcflinux] PPC driver on iBook2 (dual USB+firewire): No dialtone

Marc Boucher marc at mbsi.ca
Tue Sep 3 00:32:47 EDT 2002


On Mon, Sep 02, 2002 at 12:08:00PM +0100, Edd Dumbill wrote:
> First, thanks to Marc for his work on this driver.
> 
> Unfortunately I've stumbled on some difficulties in getting it to work
> with my iBook2.
> 
> Firstly the install program exercises a bug in gawk 3.1.1 (at least the
> version in Debian unstable).  I attach a patch as a workaround.

Thanks for the awk patch (applied). I'll get in touch with you to investigate
the other issues.

> Secondly and more seriously I can't get a dialtone from either minicom
> or pppd.
> 
> On initialisation, I get this message printed to the console:
> 
> 0169482.617: HCF: !!!ERROR: wrong ring params???

This can probably be safely ignored for now.. We plan on fixing it soon.

Regards
Marc

> 
> On attempting a PPP session, I see the following:
> 
> Sep  2 11:24:31 pecan chat[502]: NO DIALTONE
> Sep  2 11:24:31 pecan chat[502]:  -- failed
> Sep  2 11:24:31 pecan chat[502]: Failed (NO DIALTONE)
> Sep  2 11:24:31 pecan pppd[501]: Connect script failed
> Sep  2 11:24:31 pecan kernel: 0170120.552: HCF:
> +DataSessionControl(SESSION_CONTROL_HANGUP): not started!
> 

> I should add that if I try with ATX3 to disable dialtone detection, I
> get NO CARRIER instead.

> Also, stopping the driver doesn't seem to work. hcfusbosspec won't
> unload.  This means a reboot each time to get things working again, as
> reloading the other modules just gives timeouts waiting for h/w reset.
> 
> Digging further, I tried the manual configuration option, using device
> ID Vendor=05ac ProdID=8202 for the modem.  The country was configured as
> UK (where I live) but hcfusbconfig --info shows 'USA'.
> 
> 	Country name: "USA", T.35 code: B500
> 	USB Modem vendor-id: 05ac, device-id: 8202
> 	Driver inf filename: /etc/hcfusb/inf/hcfusbc2_linux.inf
> 
> However, /etc/hcfusb/config shows:
> 
> 	hcfconf_countryName="UK"
> 
> Thanks for any help you can offer.  I am able to spend time helping out
> with debugging.
> 
> cheers
> 
> -- Edd

> --- hcfusbmodem-0.98mbsibeta02090100ppc/scripts/hcfusbconfig	2002-09-02 09:24:33.000000000 +0100
> +++ hcfusbmodem-0.98mbsibeta02090100ppc/scripts/hcfusbconfig.new	2002-09-02 11:42:01.000000000 +0100
> @@ -401,7 +401,7 @@
>  {
>  	if grep -q big_endian /usr/include/asm/byteorder.h 2>/dev/null; then
>  		# does our awk support strtonum() and bit operations ? [only GNU seems to]
> -		if ! ${AWK} 'BEGIN {print strtonum(1234) lshift(1,1)};' </dev/null >/dev/null 2>&1; then
> +		if ! ${AWK} 'BEGIN {print strtonum("1234") lshift(1,1)};' </dev/null >/dev/null 2>&1; then
>  			echo 1>&2 ""
>  			echo 1>&2 "ERROR: GNU Awk version 3.1.0 or newer must be installed"
>  			exit 1
> @@ -1489,7 +1489,7 @@
>  get_current_country_from_inf()
>  {
>  		# does our awk support strtonum() ? [only GNU seems to]
> -		if ${AWK} 'BEGIN {print strtonum(1234)};' </dev/null >/dev/null 2>&1; then
> +		if ${AWK} 'BEGIN {print strtonum("1234")};' </dev/null >/dev/null 2>&1; then
>  			get_inf_section "${hcfinffil}" Country | ${AWK} -F, '
>  				/^HKR,Country,Current,1,/ {printf "%02X,%02X\n", strtonum("0x"$5), strtonum("0x"$6);}
>  			'






More information about the hcflinux mailing list