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