Ok6410板附带android 2.3源代码(包括内核),我想定制内核然后使用它,但在编译期间出现奇怪的错误,我从我的Ok6410 board朋友现在的问题是(官方支持是中文),我按照文档中的编写过程(我翻译了谷歌翻译文档),但仍然出现一些错误,我使用的是Ubuntu 11.04。 下面是我遵循的步骤(它们与手册中写的完全相同,我正在重写它以便没有人需要查看文档)。为Ok6410编译android内核板
在桌面上制作一个文件夹android。
- CD桌面/机器人
- 须藤苏
- 焦油jxvf臂-NONE-Linux的gnueabi臂-2008q3-72换linux.tar.bz2 -C/
- 焦油zxvf臂-linux-GCC-4.3.2.tgz -C/
- LS的/ usr /本地/臂/ -l
[ 上述命令的输出是相同的写入手册:
根@ Ubuntu的:/家庭/乌萨马/桌面/机器人#LS的/ usr /本地/臂/ -l
总8
drwxr-xr-x 7 root root 4096 2009-03-25 12:08 4.3.2
drwxr-xr-x 8 usama usama 4096 2009-02-25 15:30 arm-none-linux-gnueabi
]
6焦油zxvf android_boot-android2 .3-128M.tar.gz
7 CD android_boot-android2.3-128M
有在生成文件的问题,CROSS_COMPILE的路径是WRO NG,它以前
CROSS_COMPILE =/usr/local/arm/4.2.2-eabi/usr/bin/arm-linux-
这是错误的,我把它改成
CROSS_COMPILE =/usr/local/arm/4.3.2/bin/arm-linux-
[当路径没有改变,我收到了错误,
make: /usr/local/arm/4.2.2-eabi/usr/bin/arm-linux-gcc: Command not found
更改路径删除此错误,
[email protected]:/home/usama/Desktop/android/android_boot-android2.3-128M# gedit Makefile
(gedit:6888): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.X6LD9V': No such file or directory
(gedit:6888): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
(gedit:6888): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.MT0E9V': No such file or directory
(gedit:6888): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
(gedit:6888): Gtk-WARNING **: Attempting to store changes into `/root/.local/share/recently-used.xbel', but failed: Failed to create file '/root/.local/share/recently-used.xbel.MFVT9V': No such file or directory
(gedit:6888): Gtk-WARNING **: Attempting to set the permissions of `/root/.local/share/recently-used.xbel', but failed: No such file or directory
]
[使清洁Makefile中改变路径后建议,但它会导致如下所示的错误]
8使清洁
[email protected]:/home/usama/Desktop/android/android_boot-android2.3-128M# make clean
make: execvp: /: Permission denied
find /home/usama/Desktop/android/android_boot-android2.3-128M -type f \
\(-name 'core' -o -name '*.bak' -o -name '*~' \
-o -name '*~' -o -name '.depend*' \
-o -name '*.o' -o -name '*.a' \) -print \
| xargs rm -f
rm -f u-boot*
rm -f examples/hello_world examples/timer \
examples/eepro100_eeprom examples/sched \
examples/mem_to_mem_idma2intr examples/82559_eeprom \
examples/smc91111_eeprom examples/interrupt \
examples/test_burst
rm -f tools/img2srec tools/mkimage tools/envcrc \
tools/gen_eth_addr
rm -f tools/mpc86x_clk tools/ncb
rm -f tools/easylogo/easylogo tools/bmp_logo
rm -f tools/gdb/astest tools/gdb/gdbcont tools/gdb/gdbsend
rm -f tools/env/fw_printenv tools/env/fw_setenv
rm -f board/cray/L1/bootscript.c board/cray/L1/bootscript.image
rm -f board/netstar/eeprom board/netstar/crcek board/netstar/crcit
rm -f board/netstar/*.srec board/netstar/*.bin
rm -f board/trab/trab_fkt board/voiceblue/eeprom
rm -f board/integratorap/u-boot.lds board/integratorcp/u-boot.lds
rm -f include/bmp_logo.h
rm -f nand_spl/u-boot-spl nand_spl/u-boot-spl.map
注:execvp似乎是错误的一些源,但我不知道它是什么。
9 export PATH =/usr/local/arm/4.3。2 /斌/:$ PATH
10使
[email protected]:/home/usama/Desktop/android/android_boot-android2.3-128M# make
make: execvp: /: Permission denied
for dir in tools examples post post/cpu ; do make -C $dir _depend ; done
make[1]: execvp: /: Permission denied
make[1]: Entering directory `/home/usama/Desktop/android/android_boot-android2.3-128M/tools'
make[1]: Leaving directory `/home/usama/Desktop/android/android_boot-android2.3-128M/tools'
make[1]: execvp: /: Permission denied
make[1]: Entering directory `/home/usama/Desktop/android/android_boot-android2.3-128M/tools'
make[1]: Nothing to be done for `_depend'.
make[1]: Leaving directory `/home/usama/Desktop/android/android_boot-android2.3-128M/tools'
make[1]: execvp: /: Permission denied
make[1]: Entering directory `/home/usama/Desktop/android/android_boot-android2.3-128M/examples'
/bin/sh: /: Permission denied
dirname: missing operand
Try `dirname --help' for more information.
/bin/sh: /: Permission denied
dirname: missing operand
Try `dirname --help' for more information.
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
make[1]: *** No rule to make target `.depend', needed by `_depend'. Stop.
make[1]: Leaving directory `/home/usama/Desktop/android/android_boot-android2.3-128M/examples'
make[1]: execvp: /: Permission denied
make[1]: Entering directory `/home/usama/Desktop/android/android_boot-android2.3-128M/post'
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
make[1]: *** No rule to make target `.depend', needed by `_depend'. Stop.
make[1]: Leaving directory `/home/usama/Desktop/android/android_boot-android2.3-128M/post'
make[1]: execvp: /: Permission denied
make[1]: Entering directory `/home/usama/Desktop/android/android_boot-android2.3-128M/post/cpu'
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
/bin/sh: /: Permission denied
make[1]: *** No rule to make target `.depend', needed by `_depend'. Stop.
make[1]: Leaving directory `/home/usama/Desktop/android/android_boot-android2.3-128M /post/cpu'
make: *** [depend] Error 2
现在,如果有人可以告诉大家,这是什么问题以及如何解决:
我试着问在论坛这个问题witech(该公司销售这个董事会),但我甚至无法在这些论坛上作出帐户,因为所有这些(注册等)说明都是中文,谷歌翻译的效果并不理想。
我知道很多你可能没有在Ok6410上试过android,但是任何在Linux和android编译方面都有专长的人都可以找出问题所在。
注:
这是在编译内核的非常初始阶段发生的事情,所有这些误差都在编译的uboot,实际的内核源代码编译还没有开始。
感谢您的帮助。
问候
乌萨马·本