Skip to content

Instantly share code, notes, and snippets.

@kazken3
Created November 15, 2011 22:34
Show Gist options
  • Save kazken3/1368593 to your computer and use it in GitHub Desktop.
Save kazken3/1368593 to your computer and use it in GitHub Desktop.
とても久しぶりです。平和ではありませんが元気です。
さて、ICONIA TAB A500でlinux(ubuntu)を導入してみました
手順が長いので残しておこうかと思います。
前準備
-用意するもの
--Ubuntu11.04が動作して、SDカードが読めて、USBが使えるPC
--Windowsが動作するPC。これは前項とのデュアルブートでも問題ないです。用途はフルバックアップだけですが、
--adbが使える環境(ここでは省略します。)
--microSDHCカード
---16GBあれば安心。最低4G以上
--ICONIA TAB A500
---rootedにしておいてください。(ここでは省略)
---あと事前にアプリケーションのバックアップとか撮っているといいかも(手順内でもフルバックアップはしますが念の為)
-
-クロスビルド環境
http://www.mentor.com/embedded-software/sourcery-tools/sourcery-codebench/lite-edition から
「Download Sourcery CodeBench Lite Edition for ARM」を選択してダウンロードしますが、今回は最新版でなく、2010q1-188版をダウンロードしました。
http://www.codesourcery.com/sgpp/lite/arm/portal/package6495/public/arm-none-eabi/arm-2010q1-188-arm-none-eabi.bin ((最新版も大丈夫かと思いますが、とりあえず定評があるものをダウンロード))
実行権限をつけてお好きなところにインストールしてください。
--kernel
ChromeOS 2.6.28からブランチしている以下のカーネルソースをgit cloneしておきます。時間かかるよ。
https://github.com/astarasikov/iconia-gnu-kernel
--rootstock
Ubuntu上で、rootfsが作成できるようにrootstockをインストールしておいてください
>>
$sudo apt-get install rootstock
<<
>>
#ARCH指定
export ARCH=arm
export CROSS_COMPILE=/usr/local/share/CodeSourcery/bin/arm-none-eabi-
#path where your git clone or archive lies
cd /home/alexander/handhelds/tegra/kernel/chromium
make iconiaa500_defconfig
#use -j2 if you have one CPU. or Ncpu * 2 if you have more cores to speed up
make -j4 ARCH=$ARCH CROSS_COMPILE=$CROSS_COMPILE zImage modules
#this kernel doesn't really build useful modules
rm -r /home/alexander/handhelds/tegra/modules
make modules_install INSTALL_MOD_PATH=/home/alexander/handhelds/tegra/modules/
#now, make a flashable image. use mkbootimg from android tree or use Google to find a binary
export TEGRA=/home/kazken/iconia/testkernel
mkbootimg --ramdisk /dev/zero --kernel ${TEGRA}/arch/arm/boot/zImage -o ${TEGRA}/rc/newrec.img
<<
/etc/X11/org.conf
>>
Section "Monitor"
Identifier "Monitor0"
Mode "1280x800"
DotClock 0
HTimings 1280 1280 1280 1280
VTimings 800 800 800 800
Flags "-HSync" "-VSync"
EndMode
EndSection
Section "Device"
Identifier "fbdev"
Driver "fbdev"
Option "ShadowFB" "on"
EndSection
Section "InputDevice"
Identifier "Touchscreen"
Driver "evdev"
Option "Device" "/dev/input/event1"
Option "CorePointer"
Option "SendCoreEvents"
Option "ReportingMode" "Raw"
EndSection
Section "Screen"
Identifier "Framebuffer"
Device "fbdev"
Monitor "Monitor0"
DefaultFbBpp 16
SubSection "Display"
Depth 16
Modes "1280x800"
EndSubSection
EndSection
Section "ServerLayout"
Identifier "Layout"
Screen "Framebuffer"
InputDevice "Touchscreen"
EndSection
Section "ServerFlags"
Option "DefaultServerLayout" "Layout"
Option "AllowEmptyInput" "True"
Option "AutoAddDevices" "True"
EndSection
<<
-おまけ
--bootchart
http://twitpic.com/7cse6z/full
-参考
http://forum.xda-developers.com/showthread.php?t=1158260
http://forum.xda-developers.com/showthread.php?t=1197793
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment