不知道版上有沒有大大試過把android裝在eee pc上面?
小弟試著下載android的source code,也下載了eee pc的project,可是make完後的image裝在eee pc上面,每次開機到要出現小綠人前就當住了@@,可是下載網路上別人build好的image又可以裝成功??
不知道那裡有少做什麼動作?
我的環境是uBuntu 8.10版
流程是 repo init -> repo sync -> vi local_manifest.xml -> repo sync(下載eee pc的project) -> make -> dd(製作usb開機碟)
請問有少做還是少改什麼東西嗎?
12 則回應
-之前的問題解決了 原來是學校網路的問題
現在遇到了另一個問題
就是在下make -j2 installer_img 他跳出了這個錯誤
NO matches for product "eee_701", Stop
請問有人遇到一樣的問題嗎= =?
-之前的問題解決了 原來是學校網路的問題
現在遇到了另一個問題
就是在下make -j2 installer_img 他跳出了這個錯誤
NO matches for product "eee_701", Stop
請問有人遇到一樣的問題嗎= =?
你有自己加 local_manifest.xml 嗎? 沒加的話,當然就沒有 eee_701.
不過想編 android on x86 的,不用再去看哪些舊文章了。現在 android-x86 計劃把一切都整合好了。你只要 repo init 再 repo sync 就可以 make 了,不用再改一堆有的沒的。該計劃網站上還有 build 好的 live cd 和 live usb 可以直接下載回來玩。
細節請見 http://android-x86.org
我的是eeepc701 看完以上的討論之後,用BT去抓
http://brocktice.com/eeedroid/eeeDroid_2008-12-20_1843Z.img.4622764.TPB.torrent
http://www.androidx86.org/images/stories/eeeDroid_2008-12-20_1843Z.img
下載完後的image就是將來裝在usb上面的安裝檔
在用eexubuntu(eeepc上)先把image丟進去,再用格式化好的隨身碟(FAT4G),
輸入指令:
sudo su -
<輸入登入密碼>
dd if=~/installer.img of=/dev/sda
再重新開機去用usb開機,就可以安裝了,開啟後也沒有啥問題,只是目前不能關機Orz
雖然ctrl+f1 ctrl+f7 可以在GUI和指令模式下切換(Linux初學者),有些簡單的指令好像也不太能用
http://virtuallyshocking.com/2008/12/20/building-android-for-the-asus-eeepc-701/
這網頁應該是image源頭,底下有很多人在討論開機後會出現grub就當機的解決方法,
是看到有個網友說(Martin),指令若式輸入dd if......../dev/sda1
就會有磁區的問題?
繼續研究中,謝謝大家:P
大家好,我想請教一下 repo 的問題。我現在是用 vmware 去跑 Ubuntu 8.10 (8.04 我也試過),也確定是可以上網的。當我照著 google 文件利用 apt-get install 做完許多 packages 安裝之後,接著就是安裝 repo 與 download 的動作。可是當我下達 "repo init -u git://android.git.kernel.org/platform/manifest.git",過一陣子之後就看到 connection timed out 的訊息。我看大家都很順利的下載成功,請問是哪個地方出了問題呢?會不會防火牆有影響,在 Ubuntu 內怎麼關掉防火牆呢?
網路上build eeepc 的版本很多很雜,過程中也遇到很多問題,多虧網路黑客的資訊,所有問題都一一克服。以下是我整理的詳細步驟,每一步都確實踹過,完成後,Android 也的確在我的平台跑起來(不是 eeepc 701),我還順便把 touch driver 移植過去,沒有 touch 的 android 真的難用!話說步驟從乾淨的Ubuntu 8.10 開始:以下為詳細內容(英文):
Android for Asus EEEPC 701 step by step
1.Install Ubuntu 8.10 Desktop
2.Open a terminal and go into your home directory
$ cd ~
3.Prepare your environment
Update apt-get
$ sudo apt-get update
Git 1.5.4 or newer and the GNU Privacy Guard
$ sudo apt-get install git-core gnupg
JDK 5.0, update 12 or higher
$ sudo apt-get install sun-java6-jdk
Someone recommands to install sun-java5-jdk instead of sun-java6-jdk
Required packages
$ sudo apt-get install flex bison gperf libsdl-dev libesd0-dev
libwxgtk2.6-dev build-essential zip curl libncurses5-dev zlib1g-dev
valgrind libreadline5-dev
4.Installing Repo
Create ~/bin
$ cd ~
$ mkdir bin
Add ~/bin in $PATH
$ export PATH=$PATH:~/bin
Download repo script, make sure it it executable
$ curl http://android.git.kernel.org/repo >~/bin/repo
$ chmod a+x ~/bin/repo
5.Create working directory (e.g. ~/mydroid)
$ mkdir ~/mydroid
$ cd ~/mydroid
6.Run repo init to bring down the latest version of Repo with all its most recent bug fixes.
$ repo init -u git://android.git.kernel.org/platform/manifest.git
If you would like to check out a branch other than "master", specify it with -b, like: (choice above one or following one)
$ repo init -u git://android.git.kernel.org/platform/manifest.git -b cupcake
P.S.(Richard) "master" is Android main stream source code, and "cupcake" is the branch of Android.
A successful initialization will end with a message such as
repo initialized in /mydroid
Your client directory should now contain a .repo directory where files such as the manifest will be kept.
7.Add file ~/mydroid/.repo/local_manifest.xml
$ touch ~/mydroid/.repo/local_manifest.xml
$ vim ~/mydroid/.repo/local_manifest.xml
Add following contents:
<?xml version="1.0" encoding="UTF-8"?>
<manifest>
<project name="platform/vendor/asus/eee_701" path="vendor/asus/eee_701"/>
</manifest>
save and exit
8.Run repo sync
May take very long time, about 4~5 hours.
$ repo sync
9.Build installer image
May take a long time (about 2 hours @ AMD Athlon64 X2 3800+ with 1GB DDR2 RAM)
$ TARGET_ARCH=x86 TARGET_PRODUCT=eee_701 DISABLE_DEXPREOPT=true make -j2 installer_img
P.S. the parameter -j8, someone use -j4 or -j2, -j2 recommanded for dual core processor
10.Modify config file if build error
......「out/target/product/eee_701/data」: No such file or directory
/bin/bash: line 0: [: -lt: unary operator expected find: out/target/product/eee_701/data: No such file or directory
out/host/linux-x86/bin/genext2fs: out/target/product/eee_701/data is neither a file nor a directory
make: *** [out/target/product/eee_701/userdata.img] Error 1 make: *** Waiting for unfinished jobs....
If you see the messages above, do the following step. That will fix the error compilation.
$ vim bootable/diskinstaller/config.mk
find
installer_target_data_files := \
$(INSTALLED_BOOTIMAGE_TARGET) \
$(INSTALLED_SYSTEMIMAGE) \
$(INSTALLED_USERDATAIMAGE_TARGET) \
$(bootldr_bin)
modify to
installer_target_data_files := \
droidcore \
$(bootldr_bin)
The above step is derivea
https://review.source.android.com/Gerrit#change,8265
11.Build installer image again
back to the top directory and do again, it may take a several minutes.
$ TARGET_ARCH=x86 TARGET_PRODUCT=eee_701 DISABLE_DEXPREOPT=true make -j2 installer_img
12.Write the installer into USB stick
Check your usb stick device name. (e.g /dev/sdf, it means following <usbstick of your choice> is sdf )
$ tail /var/log/messages
All data in usb stick will be deleted.
installer.img file size about 430MB.
$ sudo dd if=~/mydroid/out/target/product/eee_701/installer.img of=/dev/<usbstick of your choice>
Make sure data had been written in usbstick
$ sudo sync
13.Boot your EeePC from the usb stick and install everything
Make sure the target platform has been turn off, because when you plug the usbstick in the running Android,
the installer usbstick is be destroyed by Android.
WARNNING : It will install Android to your HDD, you need backup data first!
When you boot from usbstick, please do not change any option. It wil be finished automatically.
BTW, it may take a while, make sure the HDD LED is off.
eeepc 有很多型號,eeepc project 是 701 型的,已確定 701 可work, 他型的 eeepc 似乎有問題,這要看你是 eeepc 那一型的。
另外,eeepc project 內的 kernel 是使用 asus 預先編好的,連kernel module 也是,asus 並沒有公開他們的 kernel source, 此外 asus 的 vendor 目錄內的 kernel config 檔也是假的,預編好的 kernel 檔並不是這個 kernel config。
基本上,只要硬體是 intel + 945g 的內建顯示,基本上都能進 android,不能進的原因是 eeepc 的硬體不匹配所致。
eeepc 有很多型號,eeepc project 是 701 型的,已確定 701 可work, 他型的 eeepc 似乎有問題,這要看你是 eeepc 那一型的。
另外,eeepc project 內的 kernel 是使用 asus 預先編好的,連kernel module 也是,asus 並沒有公開他們的 kernel source, 此外 asus 的 vendor 目錄內的 kernel config 檔也是假的,預編好的 kernel 檔並不是這個 kernel config。
基本上,只要硬體是 intel + 945g 的內建顯示,基本上都能進 android,不能進的原因是 eeepc 的硬體不匹配所致。
首先 android eee_701 中的 kernel 是 android team 自己編的,跟 asus 沒有關係。再來 asus 的 kernel source 都己公告在它的下載網站,如果你真的找過,當然就找得到。(我假設你講的是 Xandros OS 的 kernel) 沒有公開 kernel source 是很嚴重的指控(違反 GPL),如果你不曾確認過,請勿人云亦云。不然講嚴重一點,asus 可以去告你毀謗。
Vendor 中的 kernel config 是假的? 我沒有實際編過不敢講。但我相信 android team 沒必要隨便放一個假的 config 上來。不過上面用的 drm patch 現在的確都找不到了,因此要重編一個一樣的 kernel 的確有困難。
不過這些都是過去式了。目前 drm, kms, i915 driver 都己整合到 kernel 2.6.29 中。用 android-2.6.29 就可以編得出來。
eeepc 有很多型號,eeepc project 是 701 型的,已確定 701 可work, 他型的 eeepc 似乎有問題,這要看你是 eeepc 那一型的。
另外,eeepc project 內的 kernel 是使用 asus 預先編好的,連kernel module 也是,asus 並沒有公開他們的 kernel source, 此外 asus 的 vendor 目錄內的 kernel config 檔也是假的,預編好的 kernel 檔並不是這個 kernel config。
基本上,只要硬體是 intel + 945g 的內建顯示,基本上都能進 android,不能進的原因是 eeepc 的硬體不匹配所致。
嗯~我的也是 eee 701 的
我之前是參考這一篇
http://www.androidx86.org/component/content/article/35-building/46-building-android-for-the-asus-eee-pc-701.html
編出來的
其中編 make 是用 gcc 4.2 編,因為我的 ubuntu 8.10 gcc 4.3 會編失敗
TARGET_ARCH=x86 TARGET_PRODUCT=eee_701 DISABLE_DEXPREOPT=true CC=gcc-4.2 CXX=g++-4.2 make -j2 installer_img
不過因為比較忙,所以就比較沒有再研究下去
不知道版上有沒有大大試過把android裝在eee pc上面?
小弟試著下載android的source code,也下載了eee pc的project,可是make完後的image裝在eee pc上面,每次開機到要出現小綠人前就當住了@@,可是下載網路上別人build好的image又可以裝成功??
不知道那裡有少做什麼動作?
我的環境是uBuntu 8.10版
流程是 repo init -> repo sync -> vi local_manifest.xml -> repo sync(下載eee pc的project) -> make -> dd(製作usb開機碟)
請問有少做還是少改什麼東西嗎?
你的步驟沒有錯
這跟 source code 的變動有關係
應該是 kernel 有變動,而 eee pc 的 project 目前沒人維護,所以有問題沒人修
試著下不同的 tag 看看可不可以取到可以過的版本
如果沒加 tag 的話,正常是會取 master 的版本,也就是最新最新的版本
另外,目前我也編不出 eee pc 的版本,手上有的是之前編出的版本,應該跟網路上的差不多
可以上 android-porting 的 google 論壇看看有沒有解法
http://groups.google.com/group/android-porting
你的步驟沒有錯
這跟 source code 的變動有關係
應該是 kernel 有變動,而 eee pc 的 project 目前沒人維護,所以有問題沒人修
試著下不同的 tag 看看可不可以取到可以過的版本
如果沒加 tag 的話,正常是會取 master 的版本,也就是最新最新的版本
另外,目前我也編不出 eee pc 的版本,手上有的是之前編出的版本,應該跟網路上的差不多
可以上 android-porting 的 google 論壇看看有沒有解法
http://groups.google.com/group/android-porting
感謝院長的回答~~~小弟再研究看看^^ 有消息再回報
我記得校長裝完成過,請校長解答一下囉~
我記得校長裝完成過,請校長解答一下囉~
我記得「plokijuh」是院長喔!