Re: [debian] unexpected troubles

2009-10-13 Thread Neil Jerram
2009/10/13 Joshua Judson Rosen roz...@geekspace.com:
 Neil Jerram neiljer...@googlemail.com writes:

 I've just installed Debian again, and am surprised to be experiencing
 some low-level problems.  Hopefully they are easily fixable.

 I'll try addressing the issues that I can:

Many thanks for your reply.

 - Load average unreasonably high.  Right now, for example, my top says
 load average: 8.11, 8.13, 8.09.  Yet CPU usage is only reaching
 around 6%.

 Do you perhaps have a bunch of processes waiting on disk I/O? Maybe
 waiting to be paged-in from swap? How many processes are in
 uninterruptible sleep (`D') state? These also contribute to the
 load-counts, in Linux.

Thanks, I didn't know that.  I followed up on the D state, and found
that it usually indicates a kernel or device driver problem.  Based on
that, and the facts that I had to shutdown several times by pulling
the battery out, and that the way I installed Debian wasn't completely
vanilla (I tried to install into an existing partition), I decided
that it would probably be a good idea to reinstall from scratch, and
I've now done that.

 What does vmstat say (I usually run vmstat 2)?

 What are your top memory-consuming processes (in terms of both real
 and virtual memory footprint)?

I'm afraid I didn't check these before reinstalling.

 Do you have a swap partition (or file)? Are you running from the
 internal NAND flash, or a micro-SD card?

I was running from the first partition of a micro-SD card.  No swap
partition, but post-installation I had prepared a 200Mb swap file on
/dev/mmcblk0p2.  I hadn't added a mount and swapon for this to
/etc/rc.local, so it wasn't being used during the boot.  I did the
mount and swapon later - I think after I'd already tried starting
Emacs, and that had hung - and it didn't appear to make any difference
(apart from top reporting the available swap).

 - Battery not apparently charging.  I'm using the USB lead from
 another Linux computer, which successfully charges OM2009/Paroli and
 SHR.  But with Debian there is no + on the battery icon, and no orange
 (or blue) light behind the power button.

 There's mention of issues with APM on the DebianOnFreeRunner Debian
 Wiki page:

     http://wiki.debian.org/DebianOnFreeRunner#KnownProblems

That looks like a red herring / misunderstanding to me.  IIUC, it was
resolved some months ago by an apm-emulation script that calls the
dbus API.

Post-reinstall, openmoko-panel-plugin is showing a believable battery
status, and responds to plugging in the USB cable, and I'm pretty sure
that it did that for a while after my first install too. So I guess I
must have broken it by one of my first install experiments.

 - ssh (via USB) not working.  The desktop end looks fine:

Similar situation here.  Post-reinstall, working fine.

So, right now I've reinstalled from scratch, with
QI=true
SD_SWAP_SIZE=512
TASKS=
./install.sh all

My problem now is no GSM - which was also the case after my previous
install - with the symptoms being that
- Zhone briefly says Usage: Requested resource GSM with error (or a
permutation of those words)
- Zhone's phone, messages and contacts buttons stay greyed out.

I've rebooted twice since reinstallation, so it isn't a first-boot problem.

GSM works fine on OM2009/Paroli (in NAND), so it isn't a SIM-seating problem.

I don't have a PIN, so it isn't a PIN entry problem.

Any ideas?

I wonder if I've got all the packages installed that I should have:

debian-gta02:~# dpkg -l *fso*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name   VersionDescription
+++-==-==-
un  fso-abyss  none (no description available)
un  fso-config none (no description available)
ii  fso-config-gta 20090224-1 configuration files for Openmoko GTA02 Neo F
ii  fso-frameworkd 0.9.5.9+git200 freesmartphone.org Framework Daemon
un  fso-frameworkd none (no description available)
ii  fso-gpsd   0.8-3  gpsd compatibility daemon for the freesmarpt
ii  fso-gsm0710mux 0.9.3.1-3  GSM 07.10 Multiplexer
un  fso-sounds none (no description available)
ii  fso-sounds-yue 20081031-2 Yue base ringtones for the freesmartphone.or
un  fso-sounds-yue none (no description available)
un  fso-usaged none (no description available)
ii  fso-utils  0.git20090919. Useful tools for the freesmartphone.org syst
ii  pkg-fso-keyrin 2009.09.12 GnuPG archive key of the pkg-fso Debian repo

debian-gta02:~# dpkg -l *one*
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Cfg-files/Unpacked/Failed-cfg/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name   VersionDescription

[debian] unexpected troubles

2009-10-12 Thread Neil Jerram
Hi there...

Is this generally the best place for Debian questions?  Or is
smartphones-userland better?

I've just installed Debian again, and am surprised to be experiencing
some low-level problems.  Hopefully they are easily fixable.

As context, what I'm aiming at is:
- Debian - for the best available package management
- E17 + Illume - for Raster's keyboard, decent launcher and easy
switching between windows
- John Sullivan's fso-el - for performing phone functions from within Emacs.

I've installed e17, and the UI comes up as expected.  I set an overall
scaling factor of 2, to make everything easier to read and press.

The problems I'm seeing now are:

- Load average unreasonably high.  Right now, for example, my top says
load average: 8.11, 8.13, 8.09.  Yet CPU usage is only reaching
around 6%.

- Emacs never appears, yet can't be killed.  E.g. I clicked on the
launcher icon for Emacs about an hour ago, and nothing has appeared
yet.  ps waux shows that there is an emacs process:

root  1579  0.0   3.2   25700  3952 ?   DNs  17:44   0:00 /usr/bin/emacs23

But kill 1579 and kill -9 1579 seem to have no effect on this.

- Battery not apparently charging.  I'm using the USB lead from
another Linux computer, which successfully charges OM2009/Paroli and
SHR.  But with Debian there is no + on the battery icon, and no orange
(or blue) light behind the power button.

- ssh (via USB) not working.  The desktop end looks fine:

n...@arudy:~$ netstat -rn
Kernel IP routing table
Destination Gateway Genmask Flags   MSS Window  irtt Iface
192.168.0.0 0.0.0.0 255.255.255.0   U 0 0  0 eth1
192.168.11.00.0.0.0 255.255.255.0   U 0 0  0 eth0
0.0.0.0 192.168.11.10.0.0.0 UG0 0  0 eth0

but

n...@arudy:~$ ssh 192.168.0.202 -l root
ssh: connect to host 192.168.0.202 port 22: No route to host

- shutdown -h now doesn't work, and so I have no way of shutting
down cleanly.  I get a message saying that the system is going down,
but then nothing else happens.

Can anyone see the cause(s) of these problems and suggest how to fix them?

Thanks,
  Neil

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: [debian] unexpected troubles

2009-10-12 Thread Joshua Judson Rosen
Neil Jerram neiljer...@googlemail.com writes:

 Hi there...
 
 Is this generally the best place for Debian questions?  Or is
 smartphones-userland better?
 
 I've just installed Debian again, and am surprised to be experiencing
 some low-level problems.  Hopefully they are easily fixable.

I'll try addressing the issues that I can:

 As context, what I'm aiming at is:
 - Debian - for the best available package management
 - E17 + Illume - for Raster's keyboard, decent launcher and easy
 switching between windows
 - John Sullivan's fso-el - for performing phone functions from within Emacs.
 
 I've installed e17, and the UI comes up as expected.  I set an overall
 scaling factor of 2, to make everything easier to read and press.
 
 The problems I'm seeing now are:
 
 - Load average unreasonably high.  Right now, for example, my top says
 load average: 8.11, 8.13, 8.09.  Yet CPU usage is only reaching
 around 6%.

Do you perhaps have a bunch of processes waiting on disk I/O? Maybe
waiting to be paged-in from swap? How many processes are in
uninterruptible sleep (`D') state? These also contribute to the
load-counts, in Linux.

What does vmstat say (I usually run vmstat 2)?

What are your top memory-consuming processes (in terms of both real
and virtual memory footprint)?

Do you have a swap partition (or file)? Are you running from the
internal NAND flash, or a micro-SD card?

 - Emacs never appears, yet can't be killed.  E.g. I clicked on the
 launcher icon for Emacs about an hour ago, and nothing has appeared
 yet.  ps waux shows that there is an emacs process:
 
 root  1579  0.0   3.2   25700  3952 ?   DNs  17:44   0:00 /usr/bin/emacs23

Aha--well, there's at least /one/ process in uninterruptible-sleep state :)

 But kill 1579 and kill -9 1579 seem to have no effect on this.

The signal cannot be processed until the system call that is
blocking the process finishes.

 - Battery not apparently charging.  I'm using the USB lead from
 another Linux computer, which successfully charges OM2009/Paroli and
 SHR.  But with Debian there is no + on the battery icon, and no orange
 (or blue) light behind the power button.

There's mention of issues with APM on the DebianOnFreeRunner Debian
Wiki page:

 http://wiki.debian.org/DebianOnFreeRunner#KnownProblems

 - ssh (via USB) not working.  The desktop end looks fine:

While I'm very familiar with Debian on more traditional systems, I'm
not all that familiar with it as people run it on the FreeRunner.
However, as far as USB networking with Linux on the FreeRunner goes:

Is the `g_ether' module loaded on the FreeRunner?

Is the usb-ethernet interface configured on the FreeRunner?

 n...@arudy:~$ netstat -rn
 Kernel IP routing table
 Destination Gateway Genmask Flags   MSS Window  irtt Iface
 192.168.0.0 0.0.0.0 255.255.255.0   U 0 0  0 eth1
 192.168.11.00.0.0.0 255.255.255.0   U 0 0  0 eth0
 0.0.0.0 192.168.11.10.0.0.0 UG0 0  0 eth0
 
 but
 
 n...@arudy:~$ ssh 192.168.0.202 -l root
 ssh: connect to host 192.168.0.202 port 22: No route to host

What do ifconfig and route say on the FreeRunner?

-- 
Don't be afraid to ask (Lf.((Lx.xx) (Lr.f(rr.


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community