Hi:
I am trying to prepare a cross compilation environment for porting some
packages to aarch64. My final objective is:
(i) To be able to build a given package (such as klibc) on x86_64 Ubuntu
machine and
(ii) To be able to build the same package without any changes natively on
ARMv8 Foundation model
(iii) To be able to run the package on ARMv8 foundation model.
In this context, I am contemplating the following steps:
(a) Cross compile "Linux genericarmv8 3.10.1.0-1-linaro-vexpress64", which
is used on the foundation model, on x86_64 machine.
to avoid any in-compatibilty.
(b) Cross compile the package (e.g. klibc)
At this point, I am trying to do (a), i.e. cross compile "Linux
genericarmv8 3.10.1.0-1-linaro-vexpress64". I followed the steps @
http://releases.linaro.org/13.07/openembedded/aarch64/
under the section: "Building from Source"
I run into the following error:
------------------------------------------
anilss@anilss:~/linaro/openembedded$ bash jenkins-setup/init-and-build.sh
GCC version: 4.8
Target architecture: armv8
object e76efdd7b342577c40aa271fa5ded9d66a783a9b
type commit
tag v1.12.4
tagger Conley Owens <cco3(a)android.com> 1380645867 -0700
repo 1.12.4
gpg: Signature made Tuesday 01 October 2013 10:14:27 PM IST using RSA key
ID 692B382C
gpg: Can't check signature: public key not found
error: could not verify the tag 'v1.12.4'
fatal: repo init failed; run without --quiet to see why
error: command 'sync' requires repo to be installed first.
Use "repo init" to install it here.
real 0m0.034s
user 0m0.032s
sys 0m0.000s
jenkins-setup/init-and-build.sh: line 50: cd: poky: No such file or
directory
jenkins-setup/init-and-build.sh: line 53: oe-init-build-env: No such file
or directory
jenkins-setup/functions.sh: line 70: conf/bblayers.conf: No such file or
directory
/home/anilss/linaro/openembedded/../openembedded-core/meta: No such file or
directory
jenkins-setup/functions.sh: line 84: conf/bblayers.conf: No such file or
directory
jenkins-setup/functions.sh: line 92: conf/site.conf: No such file or
directory
jenkins-setup/functions.sh: line 147: conf/site.conf: No such file or
directory
sed: can't read conf/local.conf: No such file or directory
plenty of space, no cleanup
jenkins-setup/init-and-build.sh: line 62: bitbake: command not found
anilss@anilss:~/linaro/openembedded$
---------------------------------------------------------------------------------------------------------------------------------
Is there anything I am missing that is not mentioned in those steps..?
Greatly appreciate any help.
Thanks and Regards,
Anil
Hi,
Last night I started seeing a strange issue with using Android's repo on my
Ubuntu machine:
$ repo sync
info: A new version of repo is available
object e76efdd7b342577c40aa271fa5ded9d66a783a9b
type commit
tag v1.12.4
tagger Conley Owens <cco3(a)android.com> 1380645867 -0700
repo 1.12.4
gpg: Signature made Tue Oct 1 12:44:27 2013 EDT using RSA key ID
692B382C
gpg: Can't check signature: public key not found
error: could not verify the tag 'v1.12.4'
warning: Skipped upgrade to unverified version
Apparently the repo that once was at
https://dl-ssl.google.com/dl/googlesource/git-repo/repo
is no longer valid and should be obtained from
http://commondatastorage.googleapis.com/git-repo-downloads/repo
instead.
Has anyone else been seeing this?
Best regards,
Trevor
http://www.marshut.com/wrrts/repo-release-1-12-4.html
Hi,
I am trying to port klibc to aarch64. My code is available from:
git clone git://git.linaro.org/people/anil.singhar/klibc-aarch64.git
At this point, I am trying to fix the following issues. Any help / comment
/ advice / suggestion is highly appreciated.
1. Need to find the correct value for *KLIBCSHAREDFLAGS *(What value should
I set *Ttext* to in the aarch64 specific MCONFIG file?). Right now the
MCONFIG looks as follows:
# -*- makefile -*-
#
# arch/aarch64/MCONFIG
#
# Special rules for this architecture. Note that this is actually
# included from the main Makefile, and that pathnames should be
# accordingly.
#
CPU_ARCH ?= armv8-a
CPU_TUNE ?= generic
KLIBCOPTFLAGS += -Os -march=$(CPU_ARCH) -mtune=$(CPU_TUNE)
KLIBCBITSIZE = 64
KLIBCREQFLAGS += -fno-exceptions
#KLIBCSTRIPFLAGS += -R .ARM.exidx
# Extra linkflags when building the shared version of the library
# This address needs to be reachable using normal inter-module
# calls, and work on the memory models for this architecture
*#KLIBCSHAREDFLAGS = -Ttext 0x01800200* *<-- Is this value correct..?*
#KLIBCREQFLAGS +=
#KLIBCOPTFLAGS += -mgeneral-regs-only
2. The *stat* family of syscalls don't work correctly. There is only one
actual syscall: fstat, which is used by lstat and stat. The syscall doesn't
seem to return valid values for target files. e.g. The following fields are
wrong:
toot@genericarmv8:~/anilss/AArch64/klibc-aarch64/usr/klibc/tests# ./stat
test.out
Path = test.out
st_dev = 0x11 (0,17)
st_ino = 5910539
st_mode = 0
st_nlink = 4295000484 <-- This is wrong
st_uid = 0
st_gid = 0
st_rdev = 0x0 (0,0)
st_size = 15
st_blksize = 1380537164
st_blocks = 223008806
st_atim = 1048576.000000008
st.mtim = 1380612975.029926968
st.ctim = 1380537164.223008806
Because the fields are wrong, the parsed values are also wrong.
Applications such as ls, gzip etc. fail to work because they rely on this
syscall.
Since I am doing the development on ARMv8 Foundation model using linaro
openembedded image, is there a debug version of the kernel (the one *
img-foundation.axf*) that I can use to debug the syscall itself in kernel
mode using kgdb? Any other debugging ideas..?
Thanks and Regards,
Anil
Hi,
I tried to build linaro kernel for pandaboard. I have tried everything what
I can think of but the kernel still can't boot correctly. Any help will be
appreciated. Here is what I did:
1. I flash the 13.07 linaro-ubuntu-pandaboard image into the sd card (
http://releases.linaro.org/13.07/ubuntu/panda). This image works fine.
2. I clone the kernel source code from git://
git.linaro.org/kernel/linux-linaro-stable.git.
3. checkout the lsk 13.07 tag.
4. copy the config file from original image (i.e.
/boot/config-3.10.1.0-1-linaro-omap).
5. make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- CFLAGS="-O"
LOADADDR=0x80008000 uImage
The cross compiler on my machine is gcc-4.7-arm-linux-gnueabihf-base
6. From pandaboard, I load the built uImage via scp.
The problem I met:
1. In most cases, the kernel can't boot correctly. And the terminal keeps
printing "hub 1-1:1.0: hub_port_status failed (err = -71)".
2.Sometime, the kernel can finish booting. But the terminal prints for
several times the aforementioned error message after booting. Plus, I don't
have any module running, 'lsmod' shows nothing.
Please help! Thank you.
--
Regards,
Chao Xu
Hi,
I wanted to know if the ondemand governor scales down the frequency to
a minimum when the load comes below up_threshold?
I understand that
1) Every now and then, the governor work queue runs and checks for
"load" in percentage.
If load > 95 ; it bumps the frequency to maximum;
ie. if the idle time is less than 5% ; the cpu will run at maximum
2) If load < 90% ; it bumps the frequency down little bit;
It continues to do this till minimum; So the rate of decrease of
frequency to minimum is very slow;
So, the frequency decrease to minimum will take a long time to
reach minimum (depends on sampling time).
Is this correct.
/Ryan