必须要写点东西,折腾了好几个小时,终于能下载了,还不知道最终结局怎么样
下载,安装官网http://source.android.com/source/downloading.html
首先1 curl http://commondatastorage.googleapis.com/git-repo-downloads/repo > ~/bin/repo ,下载repo总是报错
然后有网友提供repo1.19,在后续的操作中不行,总是提示密钥错误,后用了repo1.12,才有用
http://blog.csdn.net/zeroboundary/article/details/17555183
http://blog.csdn.net/yanzi1225627/article/details/9255457
下载repo的地址 :http://code.google.com/p/git-repo/downloads/detail?name=repo-1.12
2 ~/bin/repo init -u https://android.googlesource.com/platform/manifest -b android-4.3_r2.1
报了几次 fatal: unable to access 'https://android.googlesource.com/platform/manifest/': Failed to connect to
curl: (22) The requested URL returned error: 404 Server does not provide clo
3 ~/bin/repo sync
错误提示
1、git tag 问题,按照下载提示,给git添加一下
2、匿名下载和授权下载,按照下载提示
我们需要再增加一个验证。由于访问都是匿名的,为了防止连接过多,谷歌对同一个ip的访问次数进行了限制。
用浏览器登录https://android.googlesource.com/new-password,输入谷歌账号,点击允许访问,会进入一个信息页面,里面可以得到类似以下内容:
machine android.googlesource.com login git-jacky.rg4.net password 1/dkRiGEvvC8o8Pgg-GsM2AbMNS_32-U0Pf0_VWkYogIA
machine android-review.googlesource.com login git-jacky.rg4.net password 1/dkRiGEvvC8o8Pgg-GsM2AbMNS_32-U0Pf0_VWkYogIA
在~(/home/username/.netrc)目录下创建一个.netrc文件,将以上两行内容粘贴进去,保存。
repo init的时候地址需要加上/a
repo init -u https://android.googlesource.com/a/platform/manifest
需要注意的是,这两行内容每次登录有可能得到的不一样,但似乎不会有差别。
cp /home/jolinery/myandroid/.repo/repo/repo /home/jolinery/bin/repo
Get https://android.googlesource.com/a/platform/manifest
% 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:04 --:--:-- 0
curl: (22) The requested URL returned error: 404
Server does not provide clone.bundle; ignoring.
https://android.googlesource.com/new-password
curl: (22) The requested URL returned error: 404
Server does not provide clone.bundle; ignoring.
下了好久了,不的不多说点了,总是会出现什么连接不上,出现致命的错误,而且无缘无故就死掉了,不动了,google了一下
在/etc/hosts里添加如下东西
180.168.41.175 www.googlesource.com
74.125.31.82 android.googlesource.com
180.168.41.175 cache.pack.google.com
注意,这里的地址都是我ping出来的
From https://android.googlesource.com/a/platform/ndk
3fc6297..1f3096c master -> aosp/master
remote: Counting objects: 11, done
remote: Finding sources: 100% (253/253)
Fetching projects: 98% (355/362) Receiving objects: 41% (105/253), 579.83 KiBFetching projects: 99% (359/362) Receiving objects: 43% (109/253), 1.44 MiB |fatal: Out of memory, malloc failed (tried to allocate 440363704 bytes)
fatal: index-pack failed
remote: Counting objects: 11, done
remote: Finding sources: 100% (253/253)
fatal: Out of memory, malloc failed (tried to allocate 440363704 bytes)
fatal: index-pack failed
error: Cannot fetch platform/prebuilts/sdk
git config --global pack.windowMemory 1024m
没解决,然胡从新启动电脑,解决了
Checking out files: 100% (193/193), done.ng out files: 11% (22/193)
Checking out files: 100% (37353/37353), done.
Syncing work tree: 97% (352/362) fatal: This operation must be run in a work tree
Traceback (most recent call last):
File "/media/document/.repo/repo/main.py", line 408, in <module>
_Main(sys.argv[1:])
File "/media/document/.repo/repo/main.py", line 388, in _Main
result = repo._Run(argv) or 0
File "/media/document/.repo/repo/main.py", line 138, in _Run
result = cmd.Execute(copts, cargs)
File "/media/document/.repo/repo/subcmds/sync.py", line 585, in Execute
project.Sync_LocalHalf(syncbuf)
File "/media/document/.repo/repo/project.py", line 1015, in Sync_LocalHalf
self._InitWorkTree()
File "/media/document/.repo/repo/project.py", line 1801, in _InitWorkTree
raise GitError("cannot initialize work tree")
error.GitError: cannot initialize work tree
jolinery@jolinery:/media/document$ ~/bin/repo sync -j1
... A new repo command ( 1.18) is available.
... You should upgrade soon:
cp /media/document/.repo/repo/repo /home/jolinery/bin/repo
Fetching projects: 100% (362/362), done.
Syncing work tree: 97% (352/362) fatal: This operation must be run in a work tree
Checking out files: 100% (1141/1141), done.
Syncing work tree: 100% (362/362), done.
error: prebuilts/sdk/: platform/prebuilts/sdk checkout 842e33e43a55ea44833b9e23e4d180fa17c843af
jolinery@jolinery:/media/document$
错误原因是之前出现out of memory是将project/prebuilts/sdk里的git的config改掉为
[core]
repositoryformatversion = 0
filemode = true
bare = true
[pack]
window = 0
[user]
email = jolineryxu.gmail.com
[remote "aosp"]
url = https://android.googlesource.com/a/platform/prebuilts/sdk
projectname = platform/prebuilts/sdk
fetch = +refs/heads/*:refs/remotes/aosp/*
然后将其改为原来的
[core]
repositoryformatversion = 0
filemode = true
[user]
email = jolineryxu.gmail.com
[remote "aosp"]
url = https://android.googlesource.com/a/platform/prebuilts/sdk
projectname = platform/prebuilts/sdk
fetch = +refs/heads/*:refs/remotes/aosp/*
继续同步如下
olinery@jolinery:/media/document$ ~/bin/repo sync -j8
... A new repo command ( 1.18) is available.
... You should upgrade soon:
cp /media/document/.repo/repo/repo /home/jolinery/bin/repo
Fetching projects: 100% (362/362), done.
Syncing work tree: 97% (352/362) fatal: This operation must be run in a work tree
Syncing work tree: 100% (362/362), done.
error: prebuilts/sdk/: platform/prebuilts/sdk checkout 842e33e43a55ea44833b9e23e4d180fa17c843af
jolinery@jolinery:/media/document$ ~/bin/repo sync -j8
... A new repo command ( 1.18) is available.
... You should upgrade soon:
cp /media/document/.repo/repo/repo /home/jolinery/bin/repo
Fetching projects: 100% (362/362), done.
Syncing work tree: 100% (362/362), done.
下
jolinery@jolinery:/media/document$ git clone git://git.freescale.com/imx/linux-2.6-imx.git kernel_imx
Cloning into 'kernel_imx'...
remote: Counting objects: 3304598, done.
remote: Compressing objects: 100% (571286/571286), done.
Receiving objects: 100% (3304598/3304598), 738.61 MiB | 187 KiB/s, done.
remote: Total 3304598 (delta 2780672), reused 3226671 (delta 2702958)
Resolving deltas: 100% (2780672/2780672), done.
jolinery@jolinery:/media/document$ cd kernel_imx
jolinery@jolinery:/media/document/kernel_imx$ git checkout jb4.3_1.1.0-ga
Checking out files: 100% (22749/22749), done.
Note: checking out 'jb4.3_1.1.0-ga'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at 8e02e5d... ENGR00290463 revert exact pages allocator to fix system reboot issue
下载uboot-imx
Cloning into 'uboot-imx'...
remote: Counting objects: 218243, done.
remote: Compressing objects: 100% (45880/45880), done.
remote: Total 218243 (delta 176072), reused 211201 (delta 169150)
Receiving objects: 100% (218243/218243), 56.74 MiB | 11 KiB/s, done.
Resolving deltas: 100% (176072/176072), done.
jolinery@jolinery:/media/document/bootable/bootloader$ cd uboot-imx
jolinery@jolinery:/media/document/bootable/bootloader/uboot-imx$ git checkout jb4.3_1.1.0-ga
Note: checking out 'jb4.3_1.1.0-ga'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b new_branch_name
HEAD is now at 877fd9e... ENGR00276287 Adjust key mapping for 6sl evk
jolinery@jolinery:/media/document/bootable/bootloader/uboot-imx$载kernel_imx
android源码patch
.
+
/media/document/hardware/imx/.git/rebase-apply/patch:1398: new blank line at EOF.
+
/media/document/hardware/imx/.git/rebase-apply/patch:2702: new blank line at EOF.
+
/media/document/hardware/imx/.git/rebase-apply/patch:4649: new blank line at EOF.
+
warning: squelched 8 whitespace errors
warning: 13 lines add whitespace errors.
/media/document/hardware/imx/.git/rebase-apply/patch:496: trailing whitespace.
vid_frmsize.pixel_format =
/media/document/hardware/imx/.git/rebase-apply/patch:906: new blank line at EOF.
+
warning: 2 lines add whitespace errors.
/media/document/hardware/imx/.git/rebase-apply/patch:269: new blank line at EOF.
+
warning: 1 line adds whitespace errors.
/media/document/hardware/imx/.git/rebase-apply/patch:125: new blank line at EOF.
+
/media/document/hardware/imx/.git/rebase-apply/patch:156: new blank line at EOF.
+
/media/document/hardware/imx/.git/rebase-apply/patch:218: new blank line at EOF.
+
/media/document/hardware/imx/.git/rebase-apply/patch:283: new blank line at EOF.
+
/media/document/hardware/imx/.git/rebase-apply/patch:464: new blank line at EOF.
+
warning: squelched 4 whitespace errors
warning: 9 lines add whitespace errors.
/media/document/hardware/imx/.git/rebase-apply/patch:312: new blank line at EOF.
+
warning: 1 line adds whitespace errors.
/media/document/hardware/imx/.git/rebase-apply/patch:426: new blank line at EOF.
+
/media/document/hardware/imx/.git/rebase-apply/patch:604: new blank line at EOF.
+
/media/document/hardware/imx/.git/rebase-apply/patch:958: new blank line at EOF.
+
warning: 3 lines add whitespace errors.
/media/document/hardware/imx/.git/rebase-apply/patch:97: new blank line at EOF.
+
warning: 1 line adds whitespace errors.
/media/document/hardware/imx/.git/rebase-apply/patch:3601: trailing whitespace, space before tab in indent.
}
/media/document/hardware/imx/.git/rebase-apply/patch:5326: trailing whitespace.
/media/document/hardware/imx/.git/rebase-apply/patch:6484: trailing whitespace.
if (err < 0)
/media/document/hardware/imx/.git/rebase-apply/patch:6669: trailing whitespace.
ath3k_init(fd,u->speed,u->init_speed,u->bdaddr, &ti);
/media/document/hardware/imx/.git/rebase-apply/patch:6676: trailing whitespace.
// Set actual baudrate
warning: squelched 11 whitespace errors
warning: 16 lines add whitespace errors.
/media/document/hardware/imx/.git/rebase-apply/patch:34: trailing whitespace.
#define ACC_DATA_NAME "FreescaleAccelerometer"
/media/document/hardware/imx/.git/rebase-apply/patch:54: trailing whitespace.
/media/document/hardware/imx/.git/rebase-apply/patch:90: space before tab in indent.
mEnabled++;
/media/document/hardware/imx/.git/rebase-apply/patch:296: space before tab in indent.
}
/media/document/hardware/imx/.git/rebase-apply/patch:469: trailing whitespace.
#define MAG_DATA_NAME "eCompass"
warning: squelched 34 whitespace errors
warning: 39 lines add whitespace errors.
/media/document/hardware/imx/.git/rebase-apply/patch:16: trailing whitespace.
/media/document/hardware/imx/.git/rebase-apply/patch:66: trailing whitespace.
/media/document/hardware/imx/.git/rebase-apply/patch:112: trailing whitespace.
index = 3;
/media/document/hardware/imx/.git/rebase-apply/patch:133: trailing whitespace.
warning: 4 lines add whitespace errors.
/media/document/hardware/imx/.git/rebase-apply/patch:264: trailing whitespace.
/media/document/hardware/imx/.git/rebase-apply/patch:270: trailing whitespace.
/media/document/hardware/imx/.git/rebase-apply/patch:274: trailing whitespace.
/media/document/hardware/imx/.git/rebase-apply/patch:294: trailing whitespace.
/media/document/hardware/imx/.git/rebase-apply/patch:351: trailing whitespace.
warning: squelched 48 whitespace errors
warning: 53 lines add whitespace errors.
/media/document/hardware/imx/.git/rebase-apply/patch:40: trailing whitespace.
/media/document/hardware/imx/.git/rebase-apply/patch:41: trailing whitespace.
fd = open("/proc/cpuinfo", O_RDONLY);
/media/document/hardware/imx/.git/rebase-apply/patch:63: trailing whitespace.
return cpuNum;
/media/document/hardware/imx/.git/rebase-apply/patch:74: trailing whitespace.
warning: 4 lines add whitespace errors.
Applying patch to hardware/realtek
/media/document/hardware/realtek/.git/rebase-apply/patch:41: trailing whitespace.
endif
/media/document/hardware/realtek/.git/rebase-apply/patch:230: trailing whitespace.
/media/document/hardware/realtek/.git/rebase-apply/patch:254: trailing whitespace.
/media/document/hardware/realtek/.git/rebase-apply/patch:265: trailing whitespace.
return -1;
/media/document/hardware/realtek/.git/rebase-apply/patch:271: trailing whitespace.
warning: squelched 19 whitespace errors
warning: 24 lines add whitespace errors.
/media/document/hardware/realtek/.git/rebase-apply/patch:226: trailing whitespace.
/media/document/hardware/realtek/.git/rebase-apply/patch:230: trailing whitespace.
/media/document/hardware/realtek/.git/rebase-apply/patch:237: trailing whitespace.
/media/document/hardware/realtek/.git/rebase-apply/patch:258: trailing whitespace.
for (i = 0;i < wifi_ifcount;i++) {
/media/document/hardware/realtek/.git/rebase-apply/patch:281: trailing whitespace.
warning: 5 lines add whitespace errors.
/media/document/hardware/realtek/.git/rebase-apply/patch:141: trailing whitespace.
the documentation and/or other materials provided with the
/media/document/hardware/realtek/.git/rebase-apply/patch:155: trailing whitespace.
OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
/media/document/hardware/realtek/.git/rebase-apply/patch:572: trailing whitespace.
/media/document/hardware/realtek/.git/rebase-apply/patch:573: trailing whitespace.
os_free(buf);
warning: 4 lines add whitespace errors.
Applying patch to packages/apps/fsl_imx_demo
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:12: trailing whitespace.
It is not only for E-Ink app, but also some other app we have done for demo usage.
warning: 1 line adds whitespace errors.
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:95: trailing whitespace.
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:96: trailing whitespace.
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:529: trailing whitespace.
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:533: space before tab in indent.
mContext = context;
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:539: space before tab in indent.
mContext = context;
warning: squelched 159 whitespace errors
warning: 164 lines add whitespace errors.
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:63: trailing whitespace.
</manifest>
warning: 1 line adds whitespace errors.
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:983: space before tab in indent.
VideoFileList.add("/storage/emulated/legacy" + "/" + FileNameInDir[fileIndex]);
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:1126: space before tab in indent.
public boolean onError(MediaPlayer mp, int what, int extra){
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:1127: space before tab in indent.
VideoFile = "/storage/emulated/legacy/"+"Mpeg4_SP1_1920x1080_30fps_9346kbps_MP3_48KHz_64kbps_2ch.mp4";
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:1128: space before tab in indent.
mUri2 = Uri.fromFile(new File(VideoFile));
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:1129: space before tab in indent.
mvideoview2.setVideoURI(mUri2);
warning: squelched 17 whitespace errors
warning: 22 lines add whitespace errors.
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:2525: space before tab in indent.
android:left="3dp"
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:2526: space before tab in indent.
android:top="3dp"
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:2774: space before tab in indent.
<ImageView
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:2841: space before tab in indent.
android:textSize="30sp"
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:2903: space before tab in indent.
android:textColor="#ffff00"
warning: squelched 40 whitespace errors
warning: 45 lines add whitespace errors.
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:3738: space before tab in indent.
case R.id.gridview:
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:3549: new blank line at EOF.
+
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:4038: new blank line at EOF.
+
warning: 3 lines add whitespace errors.
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:556: trailing whitespace.
<shape
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:559: trailing whitespace.
<gradient
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:560: trailing whitespace.
android:startColor="#acacac"
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:561: trailing whitespace.
android:endColor="#acacac"
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:586: trailing whitespace.
warning: squelched 2 whitespace errors
warning: 7 lines add whitespace errors.
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:276: new blank line at EOF.
+
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:2012: new blank line at EOF.
+
warning: 2 lines add whitespace errors.
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:156: trailing whitespace.
<string name="setting_title">setting_title</string>
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:203: trailing whitespace.
private LinearLayout layout;
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:228: trailing whitespace.
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:231: trailing whitespace.
}
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:276: trailing whitespace.
warning: squelched 10 whitespace errors
warning: 15 lines add whitespace errors.
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:13: trailing whitespace.
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:17: space before tab in indent.
IntentFilter intentFilter = new IntentFilter();
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:25: trailing whitespace.
warning: 3 lines add whitespace errors.
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:38: trailing whitespace.
}
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:51: trailing whitespace.
}
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:55: trailing whitespace.
}
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:80: trailing whitespace.
Log.v(TAG, "---------state in upgrading----------- ");
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:81: trailing whitespace.
}
warning: squelched 21 whitespace errors
warning: 26 lines add whitespace errors.
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:58: trailing whitespace.
// don't check return value , because in pause state, setting to new speed from same kind of old speed will
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:125: space before tab in indent.
pause();
/media/document/packages/apps/fsl_imx_demo/.git/rebase-apply/patch:129: space before tab in indent.
pause();
warning: 3 lines add whitespace errors.
Applying patch to frameworks/av
/media/document/frameworks/av/.git/rebase-apply/patch:115: trailing whitespace.
sp<ICamera> mCamera;
/media/document/frameworks/av/.git/rebase-apply/patch:116: trailing whitespace.
sp<ICameraRecordingProxy> mCameraProxy;
/media/document/frameworks/av/.git/rebase-apply/patch:191: trailing whitespace.
int mMediaType;
/media/document/frameworks/av/.git/rebase-apply/patch:443: trailing whitespace.
".rm",
/media/document/frameworks/av/.git/rebase-apply/patch:449: trailing whitespace.
".ts",
warning: squelched 5 whitespace errors
warning: 10 lines add whitespace errors.
/media/document/frameworks/av/.git/rebase-apply/patch:15: trailing whitespace.
// Find size of JPEG image
warning: 1 line adds whitespace errors.
/media/document/frameworks/av/.git/rebase-apply/patch:191: trailing whitespace.
if (!strncasecmp(url, "http://", 7)) {
warning: 1 line adds whitespace errors.
/media/document/frameworks/av/.git/rebase-apply/patch:53: trailing whitespace.
/media/document/frameworks/av/.git/rebase-apply/patch:155: trailing whitespace.
WFD source: 33 ms (capture one frame) + 33 ms (VPU has one frame delay) +
/media/document/frameworks/av/.git/rebase-apply/patch:161: trailing whitespace.
Discard one time media data during certain time, default is discard one time
/media/document/frameworks/av/.git/rebase-apply/patch:163: trailing whitespace.
As different use scenario have different quality and latency requirement, so my
/media/document/frameworks/av/.git/rebase-apply/patch:164: trailing whitespace.
proposal is add one adjust button like volume adjust to adjust the threshold by
warning: squelched 11 whitespace errors
warning: 16 lines add whitespace errors.
Applying patch to frameworks/base
/media/document/frameworks/base/.git/rebase-apply/patch:65: trailing whitespace.
String value= SystemProperties.get("ro.FSL_AVI_PARSER");
/media/document/frameworks/base/.git/rebase-apply/patch:82: space before tab in indent.
}
/media/document/frameworks/base/.git/rebase-apply/patch:97: trailing whitespace.
warning: 3 lines add whitespace errors.
/media/document/frameworks/base/.git/rebase-apply/patch:16: trailing whitespace.
}
warning: 1 line adds whitespace errors.
Applying patch to frameworks/rs
Applying patch to frameworks/native
/media/document/frameworks/native/.git/rebase-apply/patch:33: trailing whitespace.
warning: 1 line adds whitespace errors.
Applying patch to hardware/libhardware
Applying patch to hardware/libhardware_legacy
/media/document/hardware/libhardware_legacy/.git/rebase-apply/patch:727: trailing whitespace.
/media/document/hardware/libhardware_legacy/.git/rebase-apply/patch:938: trailing whitespace.
* <N>CTRL-EVENT-XXX
warning: 2 lines add whitespace errors.
/media/document/hardware/libhardware_legacy/.git/rebase-apply/patch:912: trailing whitespace.
* <N>CTRL-EVENT-XXX
warning: 1 line adds whitespace errors.
Applying patch to libcore
Applying patch to system/vold
Applying patch to system/core
Applying patch to packages/wallpapers/Basic
Applying patch to external/tinyalsa
/media/document/external/tinyalsa/.git/rebase-apply/patch:291: new blank line at EOF.
+
warning: 1 line adds whitespace errors.
Applying patch to external/ppp
/media/document/external/ppp/.git/rebase-apply/patch:106: trailing whitespace.
/* We don't need delete "default" entry in route table since it will be deleted
/media/document/external/ppp/.git/rebase-apply/patch:191: trailing whitespace.
/* Prepare new "default" route entry for ppp0 link
/media/document/external/ppp/.git/rebase-apply/patch:194: trailing whitespace.
Gateway: not specified
/media/document/external/ppp/.git/rebase-apply/patch:195: trailing whitespace.
Interface: ifname as argv[1]
/media/document/external/ppp/.git/rebase-apply/patch:213: trailing whitespace.
}
warning: squelched 1 whitespace error
warning: 6 lines add whitespace errors.
/media/document/external/ppp/.git/rebase-apply/patch:51: trailing whitespace.
memset(snd_buf,0,MAX_PPPD_MSG_LEN);
/media/document/external/ppp/.git/rebase-apply/patch:52: trailing whitespace.
strcpy(snd_buf,PPPD_MSG_PPP_DOWN);
/media/document/external/ppp/.git/rebase-apply/patch:54: trailing whitespace.
//send info to rild
/media/document/external/ppp/.git/rebase-apply/patch:56: trailing whitespace.
write(pppdSocket,snd_buf,sizeof(snd_buf));
warning: 4 lines add whitespace errors.
/media/document/external/ppp/.git/rebase-apply/patch:33: trailing whitespace.
/media/document/external/ppp/.git/rebase-apply/patch:55: new blank line at EOF.
+
warning: 2 lines add whitespace errors.
/media/document/external/ppp/.git/rebase-apply/patch:71: trailing whitespace.
warning: 1 line adds whitespace errors.
/media/document/external/ppp/.git/rebase-apply/patch:36: trailing whitespace.
*
/media/document/external/ppp/.git/rebase-apply/patch:60: trailing whitespace.
* ignored. If a '#' is to be expected as the first character, the
/media/document/external/ppp/.git/rebase-apply/patch:217: trailing whitespace.
int n_reports = 0, report_next = 0, report_gathering = 0 ;
/media/document/external/ppp/.git/rebase-apply/patch:402: trailing whitespace.
/media/document/external/ppp/.git/rebase-apply/patch:785: trailing whitespace.
for (phchar = phone_num; *phchar != '\0'; phchar++)
warning: squelched 23 whitespace errors
warning: 28 lines add whitespace errors.
Applying patch to bionic
/media/document/bionic/.git/rebase-apply/patch:102: trailing whitespace.
* @id: unique identifier for heap. When allocating (lower numbers
warning: 1 line adds whitespace errors.
Applying patch to packages/apps/SoundRecorder
Applying patch to external/skia
Applying patch to packages/apps/Settings
/media/document/packages/apps/Settings/.git/rebase-apply/patch:24: trailing whitespace.
warning: 1 line adds whitespace errors.
Applying patch to packages/apps/Gallery2
Applying patch to packages/apps/Music
Applying patch to packages/providers/MediaProvider
Applying patch to hardware/ril
/media/document/hardware/ril/.git/rebase-apply/patch:76: trailing whitespace.
// flag for pppd status. 1: started; 0: stoped
/media/document/hardware/ril/.git/rebase-apply/patch:175: trailing whitespace.
// Should already get local IP address from PPP link after IPCP negotation
/media/document/hardware/ril/.git/rebase-apply/patch:176: trailing whitespace.
// system property net.ppp0.local-ip is created by PPPD in "ip-up" script
/media/document/hardware/ril/.git/rebase-apply/patch:185: trailing whitespace.
response[2] = local_ip;
/media/document/hardware/ril/.git/rebase-apply/patch:187: trailing whitespace.
break;
warning: squelched 1 whitespace error
warning: 6 lines add whitespace errors.
/media/document/hardware/ril/.git/rebase-apply/patch:41: trailing whitespace.
/* Some HUAWEI USB datacards (e.g. E180) bootup and attach to network a little bit slowly(e.g. 20s).
/media/document/hardware/ril/.git/rebase-apply/patch:53: trailing whitespace.
LOGD ("Will delay RIL initialization for %d seconds", TIMEVAL_DELAYINIT.tv_sec);
warning: 2 lines add whitespace errors.
/media/document/hardware/ril/.git/rebase-apply/patch:649: new blank line at EOF.
+
warning: 1 line adds whitespace errors.
/media/document/hardware/ril/.git/rebase-apply/patch:17: trailing whitespace.
LOGD ("Will delay RIL initialization for %d seconds", TIMEVAL_DELAYINIT.tv_sec);
warning: 1 line adds whitespace errors.
/media/document/hardware/ril/.git/rebase-apply/patch:102: trailing whitespace.
//Make a lock of s_commandmutex for different thread access for
/media/document/hardware/ril/.git/rebase-apply/patch:111: trailing whitespace.
warning: 2 lines add whitespace errors.
/media/document/hardware/ril/.git/rebase-apply/patch:25: trailing whitespace.
/media/document/hardware/ril/.git/rebase-apply/patch:101: trailing whitespace.
/media/document/hardware/ril/.git/rebase-apply/patch:113: trailing whitespace.
/media/document/hardware/ril/.git/rebase-apply/patch:147: trailing whitespace.
//Need recover after read
/media/document/hardware/ril/.git/rebase-apply/patch:204: trailing whitespace.
warning: squelched 1 whitespace error
warning: 6 lines add whitespace errors.
/media/document/hardware/ril/.git/rebase-apply/patch:26: trailing whitespace.
/media/document/hardware/ril/.git/rebase-apply/patch:32: trailing whitespace.
warning: 2 lines add whitespace errors.
/media/document/hardware/ril/.git/rebase-apply/patch:1211: new blank line at EOF.
+
warning: 1 line adds whitespace errors.
/media/document/hardware/ril/.git/rebase-apply/patch:484: space before tab in indent.
err = at_tok_nextstr(&line, &dir);
warning: 1 line adds whitespace errors.
/media/document/hardware/ril/.git/rebase-apply/patch:126: trailing whitespace.
/media/document/hardware/ril/.git/rebase-apply/patch:181: trailing whitespace.
/media/document/hardware/ril/.git/rebase-apply/patch:661: trailing whitespace.
/media/document/hardware/ril/.git/rebase-apply/patch:665: trailing whitespace.
/media/document/hardware/ril/.git/rebase-apply/patch:669: trailing whitespace.
warning: 5 lines add whitespace errors.
Applying patch to bootable/recovery
Applying patch to hardware/qcom/wlan
Applying patch to external/wpa_supplicant_8
Applying patch to system/netd
Applying patch to packages/apps/Mms
Applying patch to build
Applying patch to packages/apps/Gallery
Applying patch to packages/apps/LegacyCamera
*************************************************************
Success: Now you can build android code for FSL i.MX platform
*************************************************************
jolinery@jolinery:/media/document$
编译android源码
jolinery@jolinery:/media/document$ source build/envsetup.sh
including device/asus/deb/vendorsetup.sh
including device/asus/flo/vendorsetup.sh
including device/asus/grouper/vendorsetup.sh
including device/asus/tilapia/vendorsetup.sh
including device/fsl/imx5x/vendorsetup.sh
including device/fsl/imx6/vendorsetup.sh
including device/generic/armv7-a-neon/vendorsetup.sh
including device/generic/mips/vendorsetup.sh
including device/generic/x86/vendorsetup.sh
including device/lge/mako/vendorsetup.sh
including device/samsung/maguro/vendorsetup.sh
including device/samsung/manta/vendorsetup.sh
including device/samsung_slsi/arndale/vendorsetup.sh
including device/samsung/toroplus/vendorsetup.sh
including device/samsung/toro/vendorsetup.sh
including device/ti/panda/vendorsetup.sh
including sdk/bash_completion/adb.bash
jolinery@jolinery:/media/document$ make
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.3
TARGET_PRODUCT=full
TARGET_BUILD_VARIANT=eng
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a
TARGET_CPU_VARIANT=generic
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.2.0-60-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=JSS15J
OUT_DIR=out
============================================
Checking build tools versions...
************************************************************
You are attempting to build with an unsupported JDK.
You use OpenJDK but only Sun/Oracle JDK is supported.
Please follow the machine setup instructions at
https://source.android.com/source/download.html
************************************************************
build/core/main.mk:151: *** stop. Stop.
jolinery@jolinery:/media/document$
提示使用openjdk不行,需要使用sun或者oracle的jdk,蛋疼,官网瞎搞
在安装oracle java 7 之前,先移除掉ubuntu中默认的open jdk
sudo apt-get purge openjdk*
然后把下载到的java 7 压缩文件解压
tar -xvf jdk-7u4-linux-x64.tar.gz
解压后得到的文件目录为jdk1.7.0_04 把它移动到/usr/lib/jvm/
sudo mv jdk1.7.0_04 /usr/lib/jvm
接下来执行安装命令:
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0_04/bin/javac 1
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_04/bin/java 1
设置环境变量:
sudo update-alternatives --config javac
sudo update-alternatives --config java
结果还是不行,于是下载JDK6也就是JDK1.6安装
执行make还是不行,make clean,从新来过出现如下
jolinery@jolinery:/media/document$ make
============================================
PLATFORM_VERSION_CODENAME=REL
PLATFORM_VERSION=4.3
TARGET_PRODUCT=sabresd_6dq
TARGET_BUILD_VARIANT=user
TARGET_BUILD_TYPE=release
TARGET_BUILD_APPS=
TARGET_ARCH=arm
TARGET_ARCH_VARIANT=armv7-a-neon
TARGET_CPU_VARIANT=cortex-a9
HOST_ARCH=x86
HOST_OS=linux
HOST_OS_EXTRA=Linux-3.2.0-60-generic-x86_64-with-Ubuntu-12.04-precise
HOST_BUILD_TYPE=release
BUILD_ID=1.1.0-rc4
OUT_DIR=out
============================================
Checking build tools versions...
build/core/Makefile:32: warning: overriding commands for target `out/target/product/sabresd_6dq/system/etc/permissions/android.software.live_wallpaper.xml'
build/core/base_rules.mk:520: warning: ignoring old commands for target `out/target/product/sabresd_6dq/system/etc/permissions/android.software.live_wallpaper.xml'
No private recovery resources for TARGET_DEVICE sabresd_6dq
host Java: jsr305lib (out/host/common/obj/JAVA_LIBRARIES/jsr305lib_intermediates/classes)
/bin/bash: jar: command not found
make: *** [out/host/common/obj/JAVA_LIBRARIES/jsr305lib_intermediates/javalib.jar] Error 127
安装jar,同java javac,然后make clean,。。。make
frameworks/base/core/res/res/values/public.xml:1616: warning: No comment for public symbol android:style/Widget.Holo.Light.TextView.SpinnerItem
frameworks/base/core/res/res/values/public.xml:1612: warning: No comment for public symbol android:style/Widget.Holo.Light.WebTextView
frameworks/base/core/res/res/values/public.xml:1613: warning: No comment for public symbol android:style/Widget.Holo.Light.WebView
frameworks/base/core/res/res/values/public.xml:1571: warning: No comment for public symbol android:style/Widget.Holo.ListPopupWindow
frameworks/base/core/res/res/values/public.xml:1549: warning: No comment for public symbol android:style/Widget.Holo.ListView
frameworks/base/core/res/res/values/public.xml:1544: warning: No comment for public symbol android:style/Widget.Holo.ListView.DropDown
frameworks/base/core/res/res/values/public.xml:1987: warning: No comment for public symbol android:style/Widget.Holo.MediaRouteButton
frameworks/base/core/res/res/values/public.xml:1572: warning: No comment for public symbol android:style/Widget.Holo.PopupMenu
frameworks/base/core/res/res/values/public.xml:1550: warning: No comment for public symbol android:style/Widget.Holo.PopupWindow
frameworks/base/core/res/res/values/public.xml:1551: warning: No comment for public symbol android:style/Widget.Holo.ProgressBar
frameworks/base/core/res/res/values/public.xml:1552: warning: No comment for public symbol android:style/Widget.Holo.ProgressBar.Horizontal
frameworks/base/core/res/res/values/public.xml:1555: warning: No comment for public symbol android:style/Widget.Holo.ProgressBar.Large
frameworks/base/core/res/res/values/public.xml:1553: warning: No comment for public symbol android:style/Widget.Holo.ProgressBar.Small
frameworks/base/core/res/res/values/public.xml:1554: warning: No comment for public symbol android:style/Widget.Holo.ProgressBar.Small.Title
frameworks/base/core/res/res/values/public.xml:1557: warning: No comment for public symbol android:style/Widget.Holo.RatingBar
frameworks/base/core/res/res/values/public.xml:1558: warning: No comment for public symbol android:style/Widget.Holo.RatingBar.Indicator
frameworks/base/core/res/res/values/public.xml:1559: warning: No comment for public symbol android:style/Widget.Holo.RatingBar.Small
frameworks/base/core/res/res/values/public.xml:1561: warning: No comment for public symbol android:style/Widget.Holo.ScrollView
frameworks/base/core/res/res/values/public.xml:1556: warning: No comment for public symbol android:style/Widget.Holo.SeekBar
frameworks/base/core/res/res/values/public.xml:1563: warning: No comment for public symbol android:style/Widget.Holo.Spinner
frameworks/base/core/res/res/values/public.xml:1625: warning: No comment for public symbol android:style/Widget.Holo.Tab
frameworks/base/core/res/res/values/public.xml:1565: warning: No comment for public symbol android:style/Widget.Holo.TabWidget
frameworks/base/core/res/res/values/public.xml:1541: warning: No comment for public symbol android:style/Widget.Holo.TextView
frameworks/base/core/res/res/values/public.xml:1570: warning: No comment for public symbol android:style/Widget.Holo.TextView.SpinnerItem
frameworks/base/core/res/res/values/public.xml:1566: warning: No comment for public symbol android:style/Widget.Holo.WebTextView
frameworks/base/core/res/res/values/public.xml:1567: warning: No comment for public symbol android:style/Widget.Holo.WebView
frameworks/base/core/res/res/values/public.xml:639: warning: No comment for public symbol android:style/Widget.ImageButton
frameworks/base/core/res/res/values/public.xml:638: warning: No comment for public symbol android:style/Widget.ImageWell
frameworks/base/core/res/res/values/public.xml:1070: warning: No comment for public symbol android:style/Widget.KeyboardView
frameworks/base/core/res/res/values/public.xml:1531: warning: No comment for public symbol android:style/Widget.ListPopupWindow
frameworks/base/core/res/res/values/public.xml:647: warning: No comment for public symbol android:style/Widget.ListView
frameworks/base/core/res/res/values/public.xml:649: warning: No comment for public symbol android:style/Widget.ListView.DropDown
frameworks/base/core/res/res/values/public.xml:650: warning: No comment for public symbol android:style/Widget.ListView.Menu
frameworks/base/core/res/res/values/public.xml:648: warning: No comment for public symbol android:style/Widget.ListView.White
frameworks/base/core/res/res/values/public.xml:1532: warning: No comment for public symbol android:style/Widget.PopupMenu
frameworks/base/core/res/res/values/public.xml:655: warning: No comment for public symbol android:style/Widget.PopupWindow
frameworks/base/core/res/res/values/public.xml:629: warning: No comment for public symbol android:style/Widget.ProgressBar
frameworks/base/core/res/res/values/public.xml:632: warning: No comment for public symbol android:style/Widget.ProgressBar.Horizontal
frameworks/base/core/res/res/values/public.xml:1132: warning: No comment for public symbol android:style/Widget.ProgressBar.Inverse
frameworks/base/core/res/res/values/public.xml:630: warning: No comment for public symbol android:style/Widget.ProgressBar.Large
frameworks/base/core/res/res/values/public.xml:1133: warning: No comment for public symbol android:style/Widget.ProgressBar.Large.Inverse
frameworks/base/core/res/res/values/public.xml:631: warning: No comment for public symbol android:style/Widget.ProgressBar.Small
frameworks/base/core/res/res/values/public.xml:1134: warning: No comment for public symbol android:style/Widget.ProgressBar.Small.Inverse
frameworks/base/core/res/res/values/public.xml:634: warning: No comment for public symbol android:style/Widget.RatingBar
frameworks/base/core/res/res/values/public.xml:646: warning: No comment for public symbol android:style/Widget.ScrollView
frameworks/base/core/res/res/values/public.xml:633: warning: No comment for public symbol android:style/Widget.SeekBar
frameworks/base/core/res/res/values/public.xml:641: warning: No comment for public symbol android:style/Widget.Spinner
frameworks/base/core/res/res/values/public.xml:1529: warning: No comment for public symbol android:style/Widget.Spinner.DropDown
frameworks/base/core/res/res/values/public.xml:653: warning: No comment for public symbol android:style/Widget.TabWidget
frameworks/base/core/res/res/values/public.xml:635: warning: No comment for public symbol android:style/Widget.TextView
frameworks/base/core/res/res/values/public.xml:642: warning: No comment for public symbol android:style/Widget.TextView.PopupMenu
frameworks/base/core/res/res/values/public.xml:643: warning: No comment for public symbol android:style/Widget.TextView.SpinnerItem
frameworks/base/core/res/res/values/public.xml:652: warning: No comment for public symbol android:style/Widget.WebView
target Java: framework (out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/classes)
Killed
jolinery@jolinery:/media/document$ Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
解决不了,从新启动系统
最后扩大了SWAP分区,问题解决了,
target Java: voip-common (out/target/common/obj/JAVA_LIBRARIES/voip-common_intermediates/classes)
Note: frameworks/opt/net/voip/src/java/com/android/server/sip/SipService.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: frameworks/opt/net/voip/src/java/com/android/server/sip/SipService.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Copying: out/target/common/obj/JAVA_LIBRARIES/voip-common_intermediates/classes-jarjar.jar
Copying: out/target/common/obj/JAVA_LIBRARIES/voip-common_intermediates/emma_out/lib/classes-jarjar.jar
Copying: out/target/common/obj/JAVA_LIBRARIES/voip-common_intermediates/classes.jar
target Java: telephony-common (out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes)
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Copying: out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes-jarjar.jar
Copying: out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/emma_out/lib/classes-jarjar.jar
Copying: out/target/common/obj/JAVA_LIBRARIES/telephony-common_intermediates/classes.jar
target Java: mms-common (out/target/common/obj/JAVA_LIBRARIES/mms-common_intermediates/classes)
Note: frameworks/opt/mms/src/java/com/google/android/mms/util/SqliteWrapper.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: frameworks/opt/mms/src/java/com/google/android/mms/pdu/PduHeaders.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Copying: out/target/common/obj/JAVA_LIBRARIES/mms-common_intermediates/classes-jarjar.jar
Copying: out/target/common/obj/JAVA_LIBRARIES/mms-common_intermediates/emma_out/lib/classes-jarjar.jar
Copying: out/target/common/obj/JAVA_LIBRARIES/mms-common_intermediates/classes.jar
Aidl Preprocess: out/target/common/obj/framework.aidl
Docs droiddoc: out/target/common/docs/api-stubs
DroidDoc took 31 sec. to write docs to out/target/common/docs/api-stubs
Copy: apicheck (out/host/linux-x86/obj/EXECUTABLES/apicheck_intermediates/apicheck)
Install: out/host/linux-x86/bin/apicheck
Checking API: checkapi-last
Checking API: checkapi-current
make -C kernel_imx imx6_android_defconfig ARCH=arm CROSS_COMPILE=`pwd`/prebuilts/gcc/linux-x86/arm/arm-eabi-4.6/bin/arm-eabi-
make[1]: Entering directory `/media/document/kernel_imx'
arch/arm/Kconfig:2062: can't open file "fs/Kconfig.binfmt"
make[2]: *** [imx6_android_defconfig] Error 1
make[1]: *** [imx6_android_defconfig] Error 2
make[1]: Leaving directory `/media/document/kernel_imx'
make: *** [out/target/product/sabresd_6dq/.config] Error 2