Showing posts with label building Envionment. Show all posts
Showing posts with label building Envionment. Show all posts

4/20/2013

how to get Android repo when android.git.kernel.org is unreachable ?

As you may already know, kernel.org site which hosts the Android git repository has been hacked. Because of this we can't obtain the Android source code from its servers. All attempts to do so ultimately fail with the similar response:

[root@localhost WORK_DIRECTORY]# repo sync
android.git.kernel.org[0: 149.20.4.77]: errno=No route to host
android.git.kernel.org[0: 149.20.20.141]: errno=Connection timed out
fatal: unable to connect a socket (Connection timed out)

or:

[root@localhost ~]# curl https://android.git.kernel.org/repo> ~/bin/repo
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
curl: (7) couldn't connect to host

I will describe another way to get the Android source codes if you hadn't already cloned it's repo before kernel.org servers went down.

Prepare the environment
First, you need to download "repo" script from kernel.org my blog (please, enclose the URL address in double quotes):

curl "http://php.webtutor.pl/en/wp-content/uploads/2011/09/repo" > ~/bin/repo
chmod a+x ~/bin/repo
PATH=~/bin:$PATH
Download the Android repository
Now, you can safely download the repository, like so:

mkdir WORK_DIRECTORY
cd WORK_DIRECTORY
repo init -u git://codeaurora.org/quic/qrd-android/platform/manifest.git -b refs/tags/R8625QSOSKQLYA3020 -m default.xml
repo sync

12/19/2012

How to build AMSS with windows for QRD8x25

If you compile in windows xp, please use a clean PC , please reference build/ms/rvct22.bat for installing path.

1. install cygwin 1.7 (important remove the python contain in cygwin) ,choose "install all".

2. install python 2.6.6.msi for windows

3. install actvie perl 5.8.8

4. install the RVDS 2.2 with patch593,after setup, cd C:\apps\rvds221\RVCT\Programs\2.2\593\win_32-pentium,and execute

cp armcc tcc
cp armcc armcpp
cp armcc tcpp

To check the versions, run armcc --vsn. It should return the following:
ARM/Thumb C/C++ Compiler, RVCT2.2 [Build 593]
Software supplied by: ARM Limited

armcpp --vsn
tcc --vsn
tcpp --vsn
armlink --vsn
armasm --vsn
fromelf --vsn
The version returned should be build 593 for all.

5. modify the windows environment variable path " add cygwin path and python path

6. modify the rvct22.bat in build/ms

7. modify build command such as SSKOLY_FLASH_*.cmd, set $0 to %0, set BUILD_UNIX=no

8. in cmd windows, execute the rvct22.bat next ,execute theSSKOLY_FLASH_*.cmd

There may be some error, please see
http://www.anyclub.org/2012/11/some-error-when-build-qrd8225-modem.html

11/15/2012

Some error when build QRD8225 modem with windows

the released version is HY11-NA094-7_1.0.145451
build id is SSKOLYM_FLASH_H9DP32A4JJACGR_KEM (USE_UNIX=no)
buid entironment: Windows+cygwin
GNU make 3.81
RVCT2.2 build 593
perl 5.8.8
python 2.6.2
those entironment can build 7x30 platform
the fat.bin and udisk.bin has not been generated , the build error is following



LINKING cpfatfs.exe
gcc -mno-cygwin -o cpfatfs.exe cpfatfs.o
-----------------------------------------------------------
make[1]: Leaving directory `/e/build/W840A/_CodeBase/HY11-NA094-7_1.0.145451/modem_proc/core/storage/tools/fattool'
===============================================================
---------------------------------------------------------------
Generating fat.bin for eMMC.

SSNSKOLY
../../core/storage/tools/fattool/cpfatfs.exe ../../build/ms/bin/SSNSKOLY/fat.bin image ../../build/ms/bin/SSNSKOLY/amss
hd.mbn
Found directory: change working directory to: 1b1.
Incoming file size: 2293256
Adding file to cluster 3.
Insufficient disk space to copy data file.
make: *** [genfatfs] Error 1
rm ../../core/boot/secboot/cfg_data/boot_cfg_data.exe bin/SSNSKOLY/emmcbld/emmcbld.mbn bin/SSNSKOLY/emmcbld/emmcbldhd.mb
n ../../core/boot/secboot/qcsbl/qcsblhd.mbn


I think the fat.bin image is generated by cpfatfs.exe from amsshd.mbn and amss.mbn
there must be some problem to build modem_proc\core\storage\tools\fattool

so modify modem_proc\core\storage\tools\fattool\Makefile to set BUILD_UNIX=y, it will be OK.

6/01/2012

How to build the Android LK bootloader without compiling the entire software

If you are always working in LK bootloader, a dedicated command to build the LK bootloader may save a lot of time, here are the step that you need to do (example below is for 8660):
1.. cd M8660AAABQNLYM1070/LINUX/android


2.. source build/envsetup.sh


3.. choosecombo 1 1 msm8660_surf 3


4.. cd android/bootable/bootloader/lk


5.. make PROJECT=msm8660_surf BOOTLOADER_OUT=../../../out/target/product/msm8660_surf/obj/BOOTLOADER_EMMC_OBJ EMMC_BOOT=1
Once the completed, the image emmc_appsboot.mbn will be generated in M8660AAABQNLYM1070/LINUX/android/out/target/product/msm8660_surf folder which you specified in BOOTLOADER_OUT.

10/10/2011

Android Gingerbread Building Envionment for Ubuntu 64bit




1. You will meet problem with installing sun-java6-jdk and you can add the following lines into /etc/apt/sources.list


  deb http://mirrors.sohu.com/ubuntu/ hardy multiverse
deb http://mirrors.sohu.com/ubuntu/ hardy main multiverse

2. sudo apt-get update
3. Then you could issue command as follows to install required tools:

sudo apt-get install git-core gnupg flex bison gperf build-essential zip curl sun-java6-jdk zlib1g-dev gcc-multilib g++-multilib libc6-dev-i386 lib32ncurses5-dev ia32-libs x11proto-core-dev libx11-dev lib32readline5-dev lib32z-dev

4. Make bash the default shell.

sudo dpkg-reconfigure dash  (and answer no)