[Gta04-owner] QtMoko v44
Dr. H. Nikolaus Schaller
hns at goldelico.com
Sat Apr 14 16:18:38 CEST 2012
Hi,
Am 14.04.2012 um 15:32 schrieb Andreas Kemnade:
> Hi,
>
> On Thu, 2012-04-12 at 15:40 +0200, Radek Polak wrote:
>> Hi,
>> QtMoko v44 is now available for download [1]. This should be best QtMoko
>> release for GTA04 and i think i can recommend it for daily use. The GTA04 HW
>> adaption is now nearly finished.
>>
> The gpio186 thing works not so well yet.
> I get either
> a dialog with a number block and "please wait" above it (after
> showing "no modem" for some time
> (probably killing qpe here will help here)
> a simple message "no network"
> That depends on the previous state (was it off or on at reboot?).
> The modem also needs some time to boot before
> it appears as an usb device.
Yes, ca. 1-2 seconds.
> I propose this check here:
>
> if [ -f /sys/class/gpio/gpio186/value ];
> then
> for dummy in 1 2 3 4 5 6; do
> if [ ! -e /dev/ttyHS_Application ]; then
> echo 0 >/sys/class/gpio/gpio186/value
> sleep 0.5
> echo 1 >/sys/class/gpio/gpio186/value
> sleep 8
> fi
> done
> fi
Hm. That doesn't seem correct as well.
Please refer to 6.4.1 in the manual.
The module should be controlled by 010 impulses
of >200 ms each.
The first one will switch it on. The second one turns it off.
If you keep the GPIO186 on "1" level, the modem may go to a
mode similar to airplane mode (fully powered but transmitter
disabled).
The hw-test script [1] does it as follows and never had a problem:
testing "GTM601-USB" "check internal USB port"
for repeat in 1 2 3 4 5
do
if lsusb | fgrep '0af0:8800 Option' >/dev/null
then # found
ok
break
fi
if [ -w /sys/devices/virtual/gpio/gpio186/value ]
then # wake up modem in GTA04A4
echo 1 >/sys/devices/virtual/gpio/gpio186/value
sleep 1
echo 0 >/sys/devices/virtual/gpio/gpio186/value
sleep 5
fi
done
nok
I am sometimes wondering why this hw-test script [1] isn't used
more as a reference how to do the right thing...
>
> With that code it seems to start reliably.
> You should be able to go without the loop but not without checking
> for file existence. If the modem is on and you change value from 0 to 1,
> the modem will go into a half-turned-off mode so probably there will be
> the "no network" message.
If you keep the GPIO186 on "1" level, the modem may go to a
mode similar to airplane mode (fully powered but transmitter
disabled). Therefore it is important to write "0" before breaking
the loop.
BR,
Nikolaus
[1]: http://git.goldelico.com/?p=gta04-rootfs.git;a=blob;f=debian/config/root/hw-test;h=984f8b732556c1a1c6ffb4e449b014571f8056f4;hb=HEAD
More information about the Gta04-owner
mailing list