Ok6410ボードにはアンドロイド2.3のソースコード(カーネルを含む)が付属していますので、カーネルをカスタマイズして使用したいのですが、コンパイル中に奇妙なエラーが発生しました。Ok6410 board私はUbuntu 11.04を使用していますが、問題は(正式なサポートは中国語です)、ドキュメントに書かれているコンパイルプロセスに従っています(私は翻訳したドキュメントを翻訳しました)。 ここに私が従った手順があります(そしてそれらはマニュアルに書かれているのとまったく同じです、誰もドキュメントを見る必要がないように書き直しています)。Ok6410ボード用のアンドロイドカーネル
デスクトップにフォルダアンドロイドを作成します。
- CDデスクトップ/アンドロイド
- 須藤SU
- タールjxvfアームなし-Linuxベースgnueabiアーム-2008q3-72-FOR-linux.tar.bz2 -C/
- タールzxvfアーム-linux-GCC-4.3.2.tgz -C/
- LSは/ usr/local /アーム/ -l
[ 上記のコマンドの出力は、手動で書かれたものと同じである。
ルート@ Ubuntuの:/ -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 /ホーム/ウサマ/デスクトップ/アンドロイド#のLSは/ usr/local /アーム.3-128M.tar.gz
7のCD android_boot-android2.3-128M
Makefileの問題がありました、CROSS_COMPILEのパスはWROましたパスが
make: /usr/local/arm/4.2.2-eabi/usr/bin/arm-linux-gcc: Command not found
は、パスを変更し、私はエラーを受け、変化しなかったとき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-
にそれを変更しましたこのエラーを削除します。
[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でパスを変更した後に推奨されきれいにするが、それは、以下に示すエラーになります]注
[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
8メイククリーン:execvpのエラーのいくつかの源であると思われます、私はそれが何であるか分からない。
9 export PATH =/usr/local/arm/4.3。私は、フォーラムでこの質問をしようとした
:2/binに/:誰が、何が問題とどのように解決することができるであることを伝えることができる場合、$ 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(私がこのボードを販売している会社)のものですが、私はこれらのフォーラムでアカウント作成することすらできませんでした。そのような(登録など)手順はすべて中国語であり、Google翻訳はあまりうまく機能しません。
私は多くの人がOk6410でアンドロイドを試していないかもしれないと知っていますが、Linuxとアンドロイドのコンパイルに精通している人なら誰でも問題を見つけることができます。
注:これは、カーネルのコンパイルの非常に初期の段階で起こっている
ubootのコンパイル中に、すべてのこれらのエラーが来る、実際のカーネルソースのコンパイルはまだ開始していません。
ありがとうございました。 makeコマンドを与える前に
make smdk6410_config
:
ウサマ・