On 04/12/2012 04:51 PM, Pantelis Antoniou wrote:
> The data file is not readable by me version of perf.
Oops. This should be investigated. We definitely wants the perf
data to be portable (or, at least, portable with some limitations
between different hardware of the same major architecture).
Could you give me an example of your perf.data?
> Can you point to the pandaboard kernel that you use?
The kernel is 3.4.0-rc2+ (git 258f742635360175564e9470eb060ff4d4b984e7) cloned
from Linus' tree.
Dmitry
Hi, All
LAVA is an automated validation architecture, and it now has a test
framework for running android test tools and parsing the test output.
Please NOTE that lava-android-test is just used for running the test tools,
parsing the test output, and formatting the test result.
Here I will describe how to write and add a test wrapper script for
lava-android-test, and how to integrate the test into LAVA.
1. checkout the lava-android-test to your local machine
bzr branch lp:lava-android-test
2. if the test tools are just command that can be run on android system,
and the output is well formatted,
then congratulations, you can go directly to step 6.
You don't need to wrapper script again.
3. If the test tools has already been build into the android image or in
the host image(normal Ubuntu image),
then you won't need to define some scripts for organizing the test
tools, you can skip this step,
Otherwise, put the actual test tools in some place, normally they are
in a sub directory of test_definitions, like the busybox test:
the actual test tool is busybox_test.sh, and it is put in the *
lava_android_test/test_definitions/busybox *directory
4. add a test wrapper script for your test into the test_definitions
directory. like busybox.py:
The content of the wrapper script should be something like below:
Normally, you just need to redefine the red and bold part in the
above.
###############################################################################################
import os
import lava_android_test.testdef
test_name = '*test_sample'*
#linux commands that will be run on the host before INSTALL_STEPS_ADB_PRE"
*INSTALL_STEPS_HOST_PRE = []*
#adb commands that will be run before install apk file into android
*INSTALL_STEPS_ADB_PRE = []*
#APK file path list that will be intalled into android
*APKS= []*
#adb commands that will be run before install apk file into android
*INSTALL_STEPS_ADB_POST = []*
#linux commands that will be run on the host after INSTALL_STEPS_ADB_POST
*INSTALL_STEPS_HOST_POST = []*
#linux commands that will be run on the host before RUN_STEPS_ADB_PRE
*RUN_STEPS_HOST_PRE = []*
#adb commands that will be run before install apk file into android
*RUN_STEPS_ADB_PRE = []*
#commands that will be run on android
*ADB_SHELL_STEPS = []*
#adb commands that will be run before install apk file into android
*RUN_STEPS_ADB_POST = []*
#linux commands that will be run on the host after RUN_STEPS_ADB_POST
*RUN_STEPS_HOST_POST = []*
#pattern to parse the command output to generate the test result.
PATTERN =* **"^\s*(?P<test_case_id>\w+)=(?P<result>\w+)\s*$"*
inst = lava_android_test.testdef.AndroidTestInstaller(steps_host_pre=
INSTALL_STEPS_HOST_PRE,
steps_adb_pre=INSTALL_STEPS_ADB_PRE,
apks=APKS,
steps_adb_post=INSTALL_STEPS_ADB_POST,
steps_host_post=INSTALL_STEPS_HOST_POST)
run = lava_android_test.testdef.AndroidTestRunner(steps_host_pre=
RUN_STEPS_HOST_PRE,
steps_adb_pre=RUN_STEPS_ADB_PRE,
adbshell_steps=ADB_SHELL_STEPS,
steps_adb_post=RUN_STEPS_ADB_POST,
steps_host_post=RUN_STEPS_HOST_POST)
parser = lava_android_test.testdef.AndroidTestParser(PATTERN)
testobj = lava_android_test.testdef.AndroidTest(testname=test_name,
installer=inst,
runner=run,
parser=parser)
###############################################################################################
And in the command part, you can use
"$(SERIAL)" to represent the device serial number, like:
RUN_STEPS_HOST_POST = [ 'python
%s/android-0xbenchmark/android_0xbenchmark_wait.py $(SERIAL)' % curdir]
and
"$(OPTIONS)" to represent the option string passed from command line. Like
INSTALL_STEPS_HOST_PRE = [ 'echo $(OPTION)'],
RUN_STEPS_HOST_PRE = [ 'echo $(OPTION)'],
then you can run *lava-android-test install -o "install options string" *or*
**lava-android-test run -O "run options string"*
*Note:*
* B**ecause lava-android-test will be run on lava-lab, and there
will be multiple devices connected simultaneously,*
* So we should consider to pass the device serial number for each
test tools.*
* If the test tools is defined
for steps_adb_pre/adbshell_steps/steps_adb_post,*
* then there is no need to pass the device serial number,**
lava-android-test
will do this for you.*
5. you can
use "lava-android-test list-tests" to check if the test wrapper created
can be recognized,
use "lava-android-test install ${test_name}" to install the test,
use "lava-android-test run ${test_name}" to execute the test,
use "lava-android-test show ${result_id}" to show the output the test
executed,
use "lava-android-test parse ${result_id}" to to generate the result
bundle for the test executed.
And here is a blog about install/test lava-android-test that you can
reference:
http://www.linaro.org/linaro-blog/2011/12/01/local-lava-testing-of-android-…
6. When you have done the above steps and verified your test that works
well, then you can integrate it in LAVA with the android-build.
Here is a description about that.
https://wiki.linaro.org/Platform/Android/AndroidBuild-LavaIntegration
If you have any questions, please contact me.
Also I have copied it to google docs,
https://docs.google.com/a/linaro.org/document/d/1kVyuFZtnMsganZaszQZhgX3QPO…
you can comment directly there.
Thanks,
Yongqin Liu
*---------------------------------
Mail: yongqin.liu(a)linaro.org.
IRC Nickname: liuyq*
Hello,
I am working on behalf of an SoC vendor and I am trying to work out
which (if any) of the many git trees at http://git.linaro.org/gitweb we
should base our work on. I would like to use the Linaro code base
because the arch/arm support is ahead of mainline. But I also need a
degree of stability.
Ideally I would like a "long term support" Linaro kernel. Since that
doesn't exist, one approach is use the linux-linaro-tracking tree but
only use the linux-linaro-3.0* tagged versions so that we can easily
merge in changes from v3.0 from kernel.org linux-stable.
So my questions are
1. Is this a rational approach?
2. Is this how you imagine other projects interfacing with Linaro? Or
should we really be waiting for Linaro code to be mainlined and pulling
from kernel.org?
Bye for now,
Chris Simmonds
Hello,
I am interested to know if anyone from Linaro has attempted using
Flyswatter2 on origen board. I am trying to use openocd for origen
board, and found issues as early as in reading tapid. Any pointers/help
on this is appreciated.
Note: I saw some discussion on this in irc-logs, but I couldn't get any
response on irc yesterday.
Regards,
Subash
During ELC a few people asked me if Linaro had something bigger than
nano and smaller than Ubuntu that they could use to build stuff. Of
course I said Android, but a lot of people actually want a regular
Linux platform where they can easily recompile what they need to hack
on, add their own libs and scripts and generally work in an "embedded,
cross build way." I know there's OpenEmbedded and I've heard of
something called "livebuild." Does anyone have anymore info? This
class of users is arguably the largest class of people using these
boards so creating something targeted at them would allow them to get
all the benefits of Linaro in a easy to use fashion.
--
Zach Pfeffer
Android Platform Team Lead, Linaro Platform Teams
Linaro.org | Open source software for ARM SoCs
Follow Linaro: http://www.facebook.com/pages/Linarohttp://twitter.com/#!/linaroorg - http://www.linaro.org/linaro-blog
On Mon, Apr 09, 2012 at 08:24:51PM -0500, Omar Ramirez Luna wrote:
> == Omar Ramirez <omarrmz> ==
>
> === Highlights ===
>
> * Working on device tree for mailbox:
>
> Find a kernel that works with DT for pandaboard (OMAP4):
> - k3.4-rc1 doesn't recognize DT blob, k3.3 DT panics at boot.
> - DT has to be appended to zImage.
>
> Find a DT uboot:
> - secretlab.ca uboot doesn't have usb support for panda, having
> problems with fatload and mmc.
> - linaro uboot has problems recognizing dt blob in memory (bootm
> ${kern} - ${dtb}; doesn't work properly).
This is a bit unexpected -- is there really nobody currently booting
Panda using a DT?
--
Christian Robottom Reis, Engineering VP
Brazil (GMT-3) | [+55] 16 9112 6430 | [+1] 612 216 4935
Linaro.org: Open Source Software for ARM SoCs
Hey Andrey,
I rebased the config-fragment tree to 3.4-rc2, and you can find it
here:
git://git.linaro.org/people/jstultz/android.git linaro-configs-3.4
Let me know if you run into any issues.
thanks
-john
Announcing the release of live-build_3.0~a45-1-1linaro3 to
ppa:linaro-maintainers/tools
Included in this release are two minor but important fixes
1) for cross builds make sure to qualify the use of the
linaro-overlay ppa correctly so armel isn't hardcoded
2) for precise, defend against the movement of insserv out of the
system path, which if not present will cause packages such as
module-init-tools to fail.
--
Regards,
Tom
"Where's the kaboom!? There was supposed to be an earth-shattering
kaboom!" Marvin Martian
Multimedia Tech Lead | Linaro.org │ Open source software for ARM SoCs
w) tom.gall att linaro.org
w) tom_gall att vnet.ibm.com
h) tom_gall att mac.com