gpt4 book ai didi

android - 为Ok6410板编译android内核

转载 作者:行者123 更新时间:2023-11-29 22:12:50 25 4
gpt4 key购买 nike

Ok6410板子自带android 2.3源码(包括内核),我想定制内核然后使用,但是在编译过程中出现奇怪的错误,我得到了Ok6410 board。现在我 friend 的问题是(官方支持中文),我按照文档中写的编译过程(我通过谷歌翻译翻译了文档)但是我仍然遇到一些错误,我使用的是Ubuntu 11.04。以下是我遵循的步骤(它们与手册中所写的完全相同,我正在重写它以便没有人需要查看文档)。

在桌面创建文件夹android。

  1. cd 桌面/android
  2. 须藤须
  3. tar jxvf arm-none-linux-gnueabi-arm-2008q3-72-for-linux.tar.bz2 -C/
  4. tar zxvf arm-linux-gcc-4.3.2.tgz -C/
  5. ls/usr/local/arm/-l

[上面命令的输出和手册中写的一样:

root@ubuntu:/home/usama/Desktop/android# ls/usr/local/arm/-l <​​/p>

共 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 tar zxvf android_boot-android2.3-128M.tar.gz

7 cd android_boot-android2.3-128M

MakeFile有问题,CROSS_COMPILE的路径不对,之前是

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 

更改路径可消除此错误,

root@ubuntu:/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中更改路径后进行make clean,但会导致如下所示的错误]

8 清理干净

root@ubuntu:/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 导出 PATH=/usr/local/arm/4.3.2/bin/:$PATH

10 制作

root@ubuntu:/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时出现的,真正的内核源码编译还没有开始。

感谢您的帮助。

问候

乌山

最佳答案

使用这个命令:

make smdk6410_config 

在发出 make 命令之前。我认为它可能有效。

关于android - 为Ok6410板编译android内核,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/9226427/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com