内核文件夹放在普通用户家目录
否则没有权限执行。
cd /home/nuoman
安装ltlib
./install
修改配置
错误:main::check_sudo_setup:2437
main::host_checks:1400
main:539
Exiting on error or interrupt
visudo
nuoman ALL = NOPASSWD: /bin/rpm, /opt/freescale/ltib/usr/bin/rpm
配置
./ltib -m config
运行错误:
+++++++++++++++++++++++++++++++++++++++++
Can't get: mtd-utils-201006.tar.bz2
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
There is a thread with more info on this issue at http://comments.gmane.org/gmane.linux.drivers.mtd/34059
A quick solution:
1) Clean up from the failed ltib build:
$ rm -fr /opt/freescale/ltib/usr/src/rpm/BUILD/mtd-utils
2) In the ltib distribution there is an older version of mtd-utils, so let's use that one instead
$ cd /home/user/ltib/dist/lfs-5.1/mtd-utils
$ mv mtd-utils.spec mtd-utils-201006.spec
$ ln -s mtd-utils-20060302.spec mtd-utils.spec
3) Build ltib again and this will use the older version which built correctly.
$ cd /home/user/ltib
$ ./ltib
++++++++++++++++++++++++++++++++++
Assume you had unzipped i.MX Android release package to /opt/imx-android-r10.1/.
$ cd ~
$ mkdir myandroid
$ cd myandroid
$ curl http://android.git.kernel.org/repo > ./repo
$ chmod a+x ./repo
2.修改文件repo将里面的
REPO_URL='git://android.git.kernel.org/tools/repo.git' 改成
REPO_URL='http://android.git.kernel.org/tools/repo.git'
$ ./repo init -u git://android.git.kernel.org/platform/manifest.git -b gingerbread
$cp /opt/imx515/source/imx-android-r10.1/code/r10.1/default.xml .repo/manifests/default.xml
3. 修改文件.repo/manifests/default.xml将其中的 fetch="git://android.git.kernel.org/" 改成
fetch="http://android.git.kernel.org/"
(To avoid loading unnecessary gits from Google repo, meanwhile load some gits from Google repo which is not included in default manifest)
$ ./repo sync