From: Pavel Machek <pavel@ucw.cz>
To: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Tony Lindgren <tony@atomide.com>,
Sebastian Reichel <sre@kernel.org>,
Pali Roh?r <pali.rohar@gmail.com>,
kernel list <linux-kernel@vger.kernel.org>,
linux-arm-kernel <linux-arm-kernel@lists.infradead.org>,
linux-omap@vger.kernel.org, khilman@kernel.org,
freemangordon@abv.bg
Subject: Re: N900 modem support in 3.18-rc1
Date: Sun, 16 Nov 2014 11:12:48 +0100 [thread overview]
Message-ID: <20141116101248.GA32483@amd> (raw)
In-Reply-To: <20141113181803.GB984@fuloong-minipc.musicnaut.iki.fi>
On Thu 2014-11-13 20:18:04, Aaro Koskinen wrote:
> Hi,
>
> On Thu, Nov 13, 2014 at 09:45:36AM -0800, Tony Lindgren wrote:
> > * Pavel Machek <pavel@ucw.cz> [141113 08:23]:
> > > OTOH ofono seems pretty reasonable. So I played a bit, and result
> > > is python/pygtk gui which can receive an sms, initiate a call, and
> > > report missed call. If someone wants to play, source is at
> > >
> > > https://gitorious.org/tui/tui/source/b6141107e9341a1412720aed4b0d09143dfa2f4e:ofone
> >
> > Pavel, care to fill in the the following type patch with some
> > instructions in the description now that you got it working?
>
> Could we even have some "permanent" instructions under Documentation/?
Something like this?
commit 375d8d9f17433ade6afae91d4f34e170f0af04c4
Author: Pavel <pavel@ucw.cz>
Date: Sun Nov 16 11:10:59 2014 +0100
Add basic documentation for n900 testing.
Signed-off-by: Pavel Machek <pavel@ucw.cz>
diff --git a/Documentation/cellphones.txt b/Documentation/cellphones.txt
new file mode 100644
index 0000000..d7e8e7a
--- /dev/null
+++ b/Documentation/cellphones.txt
@@ -0,0 +1,90 @@
+Running Linux on Cellphones
+===========================
+
+At this moment (2014), there are no cellphones completely supported by
+mainline kernel. Another problem is lack of hackable userspace to run
+on cellphone, even when kernel support is available.
+
+Openmoko was first phone running Linux with X. GSM support there was
+based on freesmartphone.org daemons.
+
+Sony has project to merge kernel support for Xperia Z1.
+
+Nokia N900
+----------
+
+Nokia N900 orignally shipped with Maemo-based userland, which is close
+enough to GNU/X/apt based Linux; key components communicate using dbus
+and application can be written in pygtk. Kernel patches were
+relatively clean, and the core stuff is merged, unfortunately there's
+quite a lot of non-core stuff and pieces of userland are closed
+source; including some critical support such as bridge between CPU and
+modem for voice calls.
+
+Unfortunately, that means that kernel development is hard, because it
+is non-trivial to test all the various devices in the phone due to
+lack of suitable userspace and userspace development is hard, because
+there's no suitable kernel to work with.
+
+Here are instructions for getting usable userspace for kernel testing,
+and suggestions for some tests. Setting up nfsroot (needs non-mainline
+patch) is strongly recommended for development.
+
+I'm using Debian 7 for testing/development. It works well including
+touchscreen and X support, as of 3.18-rc1. Instructions are here:
+
+https://wiki.debian.org/n900-wheezy-armhf
+https://wiki.debian.org/MaemoAndSqueeze
+
+Following packages are useful on N900:
+
+libts-bin evtest ntpdate module-init-tools udev netbase ifupdown openssh-server
+locales whiptail less mpg123 mplayer ofono gcc strace mdbus2
+
+This calibrates display to usable state on recent kernel and Debian 7:
+
+DISPLAY=:0.0 xinput --set-prop --type=float 8 115 1.10 0.00 -0.05 0.00 1.18 -0.10 0.00 0.00 1.00
+DISPLAY=:0.0 xinput --set-prop --type=int 8 249 0 1
+
+# Test vibrations
+echo 5 | fftest /dev/input/event2
+
+# Test LEDs
+VAL=30
+echo $VAL > lp5523\:kb1/brightness
+echo $VAL > lp5523\:kb1/brightness
+echo $VAL > lp5523\:kb2/brightness
+echo $VAL > lp5523\:kb3/brightness
+echo $VAL > lp5523\:kb4/brightness
+echo $VAL > lp5523\:kb5/brightness
+echo $VAL > lp5523\:kb6/brightness
+echo $VAL > lp5523\:r/brightness
+echo $VAL > lp5523\:g/brightness
+echo $VAL > lp5523\:b/brightness
+echo 100 > /sys/class/backlight/acx565akm/brightness
+echo mem > /sys/power/state
+
+# Display battery/charging state
+cd /sys/bus/i2c/drivers/bq27x00-battery/2-0055/power_supply/bq27200-0
+grep -r . .
+
+# Start up ofono in debug mode
+rmdir /dev/cmt
+ln -s /sys/bus/hsi/devices/n900-modem/ /dev/cmt
+killall ofonod
+sleep .1
+ofonod --nodetach --debug &
+
+# Test modem works
+# enable the modem
+mdbus2 -s org.ofono /n900_0 org.ofono.Modem.SetProperty Powered true
+# enable modem's RF parts
+mdbus2 -s org.ofono /n900_0 org.ofono.Modem.SetProperty Online true
+# scan for available networks (takes some time)
+mdbus2 -s org.ofono /n900_0 org.ofono.NetworkRegistration.Scan
+
+
+ Good luck!
+
+ Pavel
+
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
WARNING: multiple messages have this Message-ID (diff)
From: pavel@ucw.cz (Pavel Machek)
To: linux-arm-kernel@lists.infradead.org
Subject: N900 modem support in 3.18-rc1
Date: Sun, 16 Nov 2014 11:12:48 +0100 [thread overview]
Message-ID: <20141116101248.GA32483@amd> (raw)
In-Reply-To: <20141113181803.GB984@fuloong-minipc.musicnaut.iki.fi>
On Thu 2014-11-13 20:18:04, Aaro Koskinen wrote:
> Hi,
>
> On Thu, Nov 13, 2014 at 09:45:36AM -0800, Tony Lindgren wrote:
> > * Pavel Machek <pavel@ucw.cz> [141113 08:23]:
> > > OTOH ofono seems pretty reasonable. So I played a bit, and result
> > > is python/pygtk gui which can receive an sms, initiate a call, and
> > > report missed call. If someone wants to play, source is at
> > >
> > > https://gitorious.org/tui/tui/source/b6141107e9341a1412720aed4b0d09143dfa2f4e:ofone
> >
> > Pavel, care to fill in the the following type patch with some
> > instructions in the description now that you got it working?
>
> Could we even have some "permanent" instructions under Documentation/?
Something like this?
commit 375d8d9f17433ade6afae91d4f34e170f0af04c4
Author: Pavel <pavel@ucw.cz>
Date: Sun Nov 16 11:10:59 2014 +0100
Add basic documentation for n900 testing.
Signed-off-by: Pavel Machek <pavel@ucw.cz>
diff --git a/Documentation/cellphones.txt b/Documentation/cellphones.txt
new file mode 100644
index 0000000..d7e8e7a
--- /dev/null
+++ b/Documentation/cellphones.txt
@@ -0,0 +1,90 @@
+Running Linux on Cellphones
+===========================
+
+At this moment (2014), there are no cellphones completely supported by
+mainline kernel. Another problem is lack of hackable userspace to run
+on cellphone, even when kernel support is available.
+
+Openmoko was first phone running Linux with X. GSM support there was
+based on freesmartphone.org daemons.
+
+Sony has project to merge kernel support for Xperia Z1.
+
+Nokia N900
+----------
+
+Nokia N900 orignally shipped with Maemo-based userland, which is close
+enough to GNU/X/apt based Linux; key components communicate using dbus
+and application can be written in pygtk. Kernel patches were
+relatively clean, and the core stuff is merged, unfortunately there's
+quite a lot of non-core stuff and pieces of userland are closed
+source; including some critical support such as bridge between CPU and
+modem for voice calls.
+
+Unfortunately, that means that kernel development is hard, because it
+is non-trivial to test all the various devices in the phone due to
+lack of suitable userspace and userspace development is hard, because
+there's no suitable kernel to work with.
+
+Here are instructions for getting usable userspace for kernel testing,
+and suggestions for some tests. Setting up nfsroot (needs non-mainline
+patch) is strongly recommended for development.
+
+I'm using Debian 7 for testing/development. It works well including
+touchscreen and X support, as of 3.18-rc1. Instructions are here:
+
+https://wiki.debian.org/n900-wheezy-armhf
+https://wiki.debian.org/MaemoAndSqueeze
+
+Following packages are useful on N900:
+
+libts-bin evtest ntpdate module-init-tools udev netbase ifupdown openssh-server
+locales whiptail less mpg123 mplayer ofono gcc strace mdbus2
+
+This calibrates display to usable state on recent kernel and Debian 7:
+
+DISPLAY=:0.0 xinput --set-prop --type=float 8 115 1.10 0.00 -0.05 0.00 1.18 -0.10 0.00 0.00 1.00
+DISPLAY=:0.0 xinput --set-prop --type=int 8 249 0 1
+
+# Test vibrations
+echo 5 | fftest /dev/input/event2
+
+# Test LEDs
+VAL=30
+echo $VAL > lp5523\:kb1/brightness
+echo $VAL > lp5523\:kb1/brightness
+echo $VAL > lp5523\:kb2/brightness
+echo $VAL > lp5523\:kb3/brightness
+echo $VAL > lp5523\:kb4/brightness
+echo $VAL > lp5523\:kb5/brightness
+echo $VAL > lp5523\:kb6/brightness
+echo $VAL > lp5523\:r/brightness
+echo $VAL > lp5523\:g/brightness
+echo $VAL > lp5523\:b/brightness
+echo 100 > /sys/class/backlight/acx565akm/brightness
+echo mem > /sys/power/state
+
+# Display battery/charging state
+cd /sys/bus/i2c/drivers/bq27x00-battery/2-0055/power_supply/bq27200-0
+grep -r . .
+
+# Start up ofono in debug mode
+rmdir /dev/cmt
+ln -s /sys/bus/hsi/devices/n900-modem/ /dev/cmt
+killall ofonod
+sleep .1
+ofonod --nodetach --debug &
+
+# Test modem works
+# enable the modem
+mdbus2 -s org.ofono /n900_0 org.ofono.Modem.SetProperty Powered true
+# enable modem's RF parts
+mdbus2 -s org.ofono /n900_0 org.ofono.Modem.SetProperty Online true
+# scan for available networks (takes some time)
+mdbus2 -s org.ofono /n900_0 org.ofono.NetworkRegistration.Scan
+
+
+ Good luck!
+
+ Pavel
+
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next prev parent reply other threads:[~2014-11-16 10:12 UTC|newest]
Thread overview: 71+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-11-04 20:51 N900 modem support in 3.18-rc1 Pavel Machek
2014-11-04 20:51 ` Pavel Machek
2014-11-05 1:11 ` Sebastian Reichel
2014-11-05 1:11 ` Sebastian Reichel
2014-11-05 20:31 ` Pavel Machek
2014-11-05 20:31 ` Pavel Machek
2014-11-05 20:37 ` Pali Rohár
2014-11-05 20:37 ` Pali Rohár
2014-11-05 20:39 ` Pavel Machek
2014-11-05 20:39 ` Pavel Machek
2014-11-05 21:06 ` Pali Rohár
2014-11-05 21:06 ` Pali Rohár
2014-11-05 21:06 ` Pali Rohár
2014-11-05 22:03 ` Pavel Machek
2014-11-05 22:03 ` Pavel Machek
2014-11-05 23:45 ` Sebastian Reichel
2014-11-05 23:45 ` Sebastian Reichel
2014-11-06 12:47 ` Pavel Machek
2014-11-06 12:47 ` Pavel Machek
2014-11-06 18:03 ` Sebastian Reichel
2014-11-06 18:03 ` Sebastian Reichel
2014-11-06 22:50 ` Pavel Machek
2014-11-06 22:50 ` Pavel Machek
2014-11-06 23:01 ` Pali Rohár
2014-11-06 23:01 ` Pali Rohár
2014-11-07 7:04 ` Ivaylo Dimitrov
2014-11-07 7:04 ` Ivaylo Dimitrov
2014-11-13 16:24 ` Pavel Machek
2014-11-13 16:24 ` Pavel Machek
2014-11-14 7:04 ` Ivaylo Dimitrov
2014-11-14 7:04 ` Ivaylo Dimitrov
2014-11-14 17:20 ` Sebastian Reichel
2014-11-14 17:20 ` Sebastian Reichel
2014-11-14 17:34 ` Pali Rohár
2014-11-14 17:34 ` Pali Rohár
2014-11-14 22:05 ` Sebastian Reichel
2014-11-14 22:05 ` Sebastian Reichel
2014-11-14 19:54 ` Ivaylo Dimitrov
2014-11-14 19:54 ` Ivaylo Dimitrov
2014-11-14 21:14 ` Pavel Machek
2014-11-14 21:14 ` Pavel Machek
2014-11-14 21:57 ` Sebastian Reichel
2014-11-14 21:57 ` Sebastian Reichel
2014-11-20 10:13 ` voice calls on N900 working (off-line) was " Pavel Machek
2014-11-20 10:13 ` Pavel Machek
2014-11-20 10:17 ` Pavel Machek
2014-11-20 10:17 ` Pavel Machek
2014-11-25 23:21 ` GPRS data on N900 working " Pavel Machek
2014-11-25 23:21 ` Pavel Machek
2015-02-11 18:32 ` Voice calls working on N900 (*) (was Re: N900 modem support in 3.18-rc1) Pavel Machek
2015-02-11 18:32 ` Pavel Machek
2015-02-11 20:56 ` Pavel Machek
2015-02-11 20:56 ` Pavel Machek
2014-11-13 16:21 ` N900 modem support in 3.18-rc1 Pavel Machek
2014-11-13 16:21 ` Pavel Machek
2014-11-13 17:45 ` Tony Lindgren
2014-11-13 17:45 ` Tony Lindgren
2014-11-13 18:18 ` Aaro Koskinen
2014-11-13 18:18 ` Aaro Koskinen
2014-11-16 10:12 ` Pavel Machek [this message]
2014-11-16 10:12 ` Pavel Machek
2014-11-16 12:29 ` Robert Jarzmik
2014-11-16 12:29 ` Robert Jarzmik
2014-11-18 7:42 ` Pavel Machek
2014-11-18 7:42 ` Pavel Machek
2014-11-19 19:01 ` Robert Jarzmik
2014-11-19 19:01 ` Robert Jarzmik
2014-11-14 7:37 ` Pavel Machek
2014-11-14 7:37 ` Pavel Machek
2014-11-14 16:53 ` Sebastian Reichel
2014-11-14 16:53 ` Sebastian Reichel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141116101248.GA32483@amd \
--to=pavel@ucw.cz \
--cc=aaro.koskinen@iki.fi \
--cc=freemangordon@abv.bg \
--cc=khilman@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-omap@vger.kernel.org \
--cc=pali.rohar@gmail.com \
--cc=sre@kernel.org \
--cc=tony@atomide.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.