Hello,
I would like to build a smaller version of android by excluding some built
in apps and some external programs (inside .../external/...). I could
exclude the apps by modifying - .../build/target/product/sdk.mk and
.../build/target/product/generic_no_telephony.mk files. Build was
successful for Arndale board using Linaro Android 14.03 replica build and
it reduces system.tar.bz2 size by about 15MB.
But I can't seem to find any document or reference on the web on how I can
exclude building some programs in 'external' directory. Which makefiles do
I need to modify for this? What's the process?
--
Thanks,
-Meraj
forward to linaro android list
---------- Forwarded message ----------
From: <pandaboard111(a)gmail.com>
Date: Wed, Apr 16, 2014 at 10:09 PM
Subject: [LNG] Re: error while cloning the linaro android kitkat 4.4
To: linaro-networking(a)linaro.org
Cc: rajkumar.thavti(a)sibridgetech.com
can you tell me what's the solution of the problem, I face the same
problem as you .
thanks a lot !
在 2014年3月7日星期五UTC+8下午1时20分34秒,rajkuma...(a)sibridgetech.xn--com:-7z8fk634a
> Hi All,
>
> I want to build android kitkat on pandaboard...i have downloaded linaro
> android build script from
>
> http://releases.linaro.org/13.11/android/panda and when i run the script
> i got cloning error after few hours of fetching the tags and branches...
>
> the script throws the following message...
> Traceback (most recent call last):
> File "/home/rajkumar/linaro-android-kitkat/.repo/repo/main.py", line
> 408, in <module>
> _Main(sys.argv[1:])
> File "/home/rajkumar/linaro-android-kitkat/.repo/repo/main.py", line
> 384, in _Main
> result = repo._Run(argv) or 0
> File "/home/rajkumar/linaro-android-kitkat/.repo/repo/main.py", line
> 143, in _Run
> result = cmd.Execute(copts, cargs)
> File "/home/rajkumar/linaro-android-kitkat/.repo/repo/subcmds/sync.py",
> line 650, in Execute
> fetched = self._Fetch(to_fetch, opt)
> File "/home/rajkumar/linaro-android-kitkat/.repo/repo/subcmds/sync.py",
> line 319, in _Fetch
> archive=self.manifest.IsArchive):
> File "/home/rajkumar/linaro-android-kitkat/.repo/repo/project.py", line
> 1087, in Sync_NetworkHalf
> self._InitMRef()
> File "/home/rajkumar/linaro-android-kitkat/.repo/repo/project.py", line
> 2085, in _InitMRef
> self._InitAnyMRef(R_M + self.manifest.branch)
> File "/home/rajkumar/linaro-android-kitkat/.repo/repo/project.py", line
> 2097, in _InitAnyMRef
> self.bare_git.UpdateRef(ref, dst, message = msg, detach = True)
> File "/home/rajkumar/linaro-android-kitkat/.repo/repo/project.py", line
> 2306, in UpdateRef
> self.update_ref(*cmdv)
> File "/home/rajkumar/linaro-android-kitkat/.repo/repo/project.py", line
> 2383, in runner
> p.stderr))
> error.GitError: platform/packages/inputmethods/LatinIME update-ref:
> fatal: 1d90d66fd637398868c98ba66480d17250bf1233^0: not a valid SHA1
>
> so i want to as you guys what might be the possible root cause and
> solution for this if possible...
>
>
> --
You received this message because you are subscribed to the Google Groups
"Linaro Networking" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to linaro-networking+unsubscribe(a)linaro.org.
To post to this group, send email to linaro-networking(a)linaro.org.
To view this discussion on the web visit
https://groups.google.com/a/linaro.org/d/msgid/linaro-networking/165b3898-b…<https://groups.google.com/a/linaro.org/d/msgid/linaro-networking/165b3898-b…>
.
--
Regards,
Vincent Hsu
On Wed, 2014-04-09 at 10:25 +0800, dcv wrote:
> Before I press the Left Ctrl and Left Alt keys, I have selected CLCD
> window. But when I select CLCD and grap mouse in it,I cannot find
> mouse in it .
The mouse pointer will be drawn by the Android system being run by the
'Fast Model'. Despite having the name 'fast', the emulation of the ARM
system is a lot slower than real hardware, and for the first few minutes
after boot the Android system tends to be very busy doing various
background task and doesn't have much emulated cycles for updating the
display. However, I see from you screen shots that the emulator has been
running for 20 minutes, which should be enough time.
I also see from the screenshots that you are running a model with one
emulated CPU. Can you say which fast model you are running? Is it one of
the pre-built ones that ARM supplies? And which Linaro Android
build/release are you working with? I want to see if I can reproduce the
problem.
Regards
--
Tixy
Followings are my operations to start Linaro-android in Fastmodel:
First, download and build linaro-android
(1)Download “linaro_android_build_cmds.sh” from http://snapshots.linaro.org/android/~linaro-android/vexpress-linaro-13.09-r…
(2)Comment out the last two lines in script corresponding to the building of android
#. build/envsetup.sh
#make -j${CPUS} boottarball systemtarball userdatatarball
(3)Run the Script to download "vexpress-linaro-13.09-release"
(4)Remove the folder "native-toolchain" exist in source code
(5)Uncomment out the last two lines in script corresponding to the building of android
. build/envsetup.sh
make -j${CPUS} boottarball systemtarball userdatatarball
(6)Run the script "linaro_android_build_cmds.sh" to build android
Here ,in <android directory>/out/target/product/vexpress/ appear: boot.tar.bz2 、system.tar.bz2 、userdata.tar.bz2
Second,create an SD card image
linaro-android-media-create --iamge-file mmc.bin --image-size 2000M --dev vexpress --system system.tar.bz2 --boot boot.tar.bz2 --userdata userdata.tar.bz2
Third,boot linaro-android in Fastmodel
(1)start Fastmodel
(2)Load project:FastModelsPortfolio_8.3/examples/FVP_VE/Build_Cortex-A15x1/FVP_VE_Cortex-A15x1.sgproj
(3)Debug
Click "OK"
About the above step,the parameter settings are:
motherboard.smsc_91c111.enabled=1 motherboard.hostbridge.userNetworking=1
motherboard.mmc.p_mmc_file=/home/muzhen/files/mmc.bin cluster.cpu0.semihosting-cmd_line="--kernel /home/muzhen/files/movetoolchain/boot/uImage --dtb /home/muzhen/files/movetoolchain/boot/rtsm/rtsm_ve-ca15x1.dtb --initrd /home/muzhen/files/movetoolchain/boot/uInitrd -- console=tty0 console=ttyAMA0,38400n8 rootwait ro init=/init androidboot.console=ttyAMA0"
Click "OK" , then "Run" ,the following is result:
But the question is when I grap mouse in CLCD ,I cannot find mouse in it . I cannot do any operation . So look forward to your reply about this problem.
Thanks a lot!
I am using the debian wheezy to develop the android porting ,so I can
not use the ppa to install the linaro-image-tools . I am going to get
the linaro-image-tools source .Now , I find two ways : one is "bzr
branch lp:linaro-image-tools " and the other is on the web
http://git.linaro.org/infrastructure/linaro-image-tools.git . whatis the
difference between the two ?
I execute "linaro_android_build_cmds.sh" to download "vexpress-linaro-13.09-release" code and build it .
Now the case is: code is downloaded successfully , but when build android code ,there is error with it.
*******************************************************************************************************************************
Makefile:3839: recipe for target 'build/gengenrtl.o' failed
make[3]: *** [build/gengenrtl.o] Error 1
make[3]: *** Waiting for unfinished jobs....
In file included from /usr/include/features.h:357:0,
from /usr/include/stdio.h:28,
from /home/muzhen/android/android/native-toolchain/src/gcc/gcc/system.h:40,
from /home/muzhen/android/android/native-toolchain/src/gcc/gcc/genhooks.c:21:
/usr/include/malloc.h:76:32: error: declaration of 'void free(void*) throw ()' has a different exception specifier
extern void free (void *__ptr) __THROW;
^
In file included from /home/muzhen/android/android/native-toolchain/src/gcc/gcc/genhooks.c:21:0:
/home/muzhen/android/android/native-toolchain/src/gcc/gcc/system.h:420:13: error: from previous declaration 'void free(void*)'
extern void free (void *);
^
In file included from ./bconfig.h:5:0,
from /home/muzhen/android/android/native-toolchain/src/gcc/gcc/genhooks.c:20:
/home/muzhen/android/android/native-toolchain/src/gcc/gcc/../include/ansidecl.h:308:64: error: declaration of 'int snprintf(char*, size_t, const char*, ...)' has a different exception specifier
# define ATTRIBUTE_NONNULL(m) __attribute__ ((__nonnull__ (m)))
^
/home/muzhen/android/android/native-toolchain/src/gcc/gcc/../include/ansidecl.h:328:80: note: in expansion of macro 'ATTRIBUTE_NONNULL'
#define ATTRIBUTE_PRINTF(m, n) __attribute__ ((__format__ (__printf__, m, n))) ATTRIBUTE_NONNULL(m)
^
/home/muzhen/android/android/native-toolchain/src/gcc/gcc/../include/ansidecl.h:331:28: note: in expansion of macro 'ATTRIBUTE_PRINTF'
#define ATTRIBUTE_PRINTF_3 ATTRIBUTE_PRINTF(3, 4)
^
/home/muzhen/android/android/native-toolchain/src/gcc/gcc/../include/libiberty.h:628:57: note: in expansion of macro 'ATTRIBUTE_PRINTF_3'
extern int snprintf (char *, size_t, const char *, ...) ATTRIBUTE_PRINTF_3;
^
In file included from /home/muzhen/android/android/native-toolchain/src/gcc/gcc/genhooks.c:21:0:
/home/muzhen/android/android/native-toolchain/src/gcc/gcc/system.h:527:12: error: from previous declaration 'int snprintf(char*, size_t, const char*, ...) throw ()'
extern int snprintf (char *, size_t, const char *, ...);
^
In file included from ./bconfig.h:5:0,
from /home/muzhen/android/android/native-toolchain/src/gcc/gcc/genhooks.c:20:
/home/muzhen/android/android/native-toolchain/src/gcc/gcc/../include/ansidecl.h:308:64: error: declaration of 'int vsnprintf(char*, size_t, const char*, __va_list_tag*)' has a different exception specifier
# define ATTRIBUTE_NONNULL(m) __attribute__ ((__nonnull__ (m)))
^
/home/muzhen/android/android/native-toolchain/src/gcc/gcc/../include/ansidecl.h:328:80: note: in expansion of macro 'ATTRIBUTE_NONNULL'
#define ATTRIBUTE_PRINTF(m, n) __attribute__ ((__format__ (__printf__, m, n))) ATTRIBUTE_NONNULL(m)
^
/home/muzhen/android/android/native-toolchain/src/gcc/gcc/../include/libiberty.h:633:62: note: in expansion of macro 'ATTRIBUTE_PRINTF'
extern int vsnprintf (char *, size_t, const char *, va_list) ATTRIBUTE_PRINTF(3,0);
^
In file included from /home/muzhen/android/android/native-toolchain/src/gcc/gcc/genhooks.c:21:0:
/home/muzhen/android/android/native-toolchain/src/gcc/gcc/system.h:531:12: error: from previous declaration 'int vsnprintf(char*, size_t, const char*, __va_list_tag*) throw ()'
extern int vsnprintf(char *, size_t, const char *, va_list);
^
Makefile:3839: recipe for target 'build/genhooks.o' failed
make[3]: *** [build/genhooks.o] Error 1
rm gcov.pod fsf-funding.pod gfdl.pod cpp.pod gcc.pod
make[3]: Leaving directory '/home/muzhen/android/android/native-toolchain/build/gcc/gcc'
Makefile:3889: recipe for target 'all-gcc' failed
make[2]: *** [all-gcc] Error 2
make[2]: Leaving directory '/home/muzhen/android/android/native-toolchain/build/gcc'
Makefile:837: recipe for target 'all' failed
make[1]: *** [all] Error 2
make[1]: Leaving directory '/home/muzhen/android/android/native-toolchain/build/gcc'
native-toolchain/Android.mk:11: recipe for target 'out/target/product/vexpress/system/bin/gcc' failed
make: *** [out/target/product/vexpress/system/bin/gcc] Error 2
make: *** 正在等待未完成的任务....
root@muzhen-virtual-machine:/home/muzhen/android#
*******************************************************************************************************************************
I donot know how to solve it, Look forward to your reply.
Now,I have download "vexpress-linaro-13.09-release",next I want to build it.But I donot want to rebuild "native-toolchain",can I use the toolchain from "http://snapshots.linaro.org/android/~linaro-android/toolchain-4.7-2013.09" instead of it ? The followings are my operations:
1. download the toolchain from "http://snapshots.linaro.org/android/~linaro-android/toolchain-4.7-2013.09"
2. mv the toolchain to "<android code directory>/prebuilts/gcc/linux-x86/arm/" , then "tar xvf android-toolchain-eabi-4.7-2013.09-x86.tar.bz2"
3. gedit <android code directory>/native-toolchain/Android.mk
comment out the two lines:
native-toolchain: $(GCC_FILE_NAME)
$(GCC_FILE_NAME): $(TARGET_CRTBEGIN_DYNAMIC_O) $(TARGET_CRTEND_O) / $(TARGET_OUT_SHARED_LIBRARIES)/libm.so $(TARGET_OUT_SHARED_LIBRARIES)/libc.so / $(TARGET_OUT_SHARED_LIBRARIES)/libdl.so $(TARGET_OUT_SHARED_LIBRARIES)/libstlport.so
4. gedit "linaro_android_build_cmds.sh"
modify line:export TARGET_TOOLS_PREFIX=prebuilts/gcc/linux-x86... to
export TARGET_TOOLS_PREFIX=prebuilts/gcc/linux-x86/arm/android-toolchain-eabi/bin/arm-linux-androideabi-
5 . build/envsetup.sh
make boottarball systemtarball userdatatarball
so is it right to build the code with a prebuild toolchain ? Looking forward to your answer.
Hi Vishal,
When launching the Browser on Samsung Arndale board to show the default
Google web page, a pop-up window says:
Security warning
There are problems with the security certificate for this site.
It can be skipped by clicking "Continue" button though.
In logcat, I could see lots of following error messages:
Failed to find provider info for com.google.settings
This issue doesn't exist on ARM Versatile Express A9 Android.
The build I'm using for Samsung Arndale is #386:
https://android-build.linaro.org/builds/~linaro-android/linux-linaro-arndal…
FYI.
Thanks.
Best Regards
Botao Sun