Android donut on Gumstix overo - 相關設定整理
Shell - copy shell on Angstrom to android
$ wget http://www.gumstix.net/overo-gm-images/v0.92/omap3-console-image-overo-v0.92.tar.bz2$ tar -jxvf omap3-console-image-overo-v0.92.tar.bz2$ cp bin/ sbin/ lib/ usr/bin/ usr/sbin/ usr/lib usr/share/usb.ids /media/android_fs_partition
lsusb
$ mount -t usbfs none /proc/bus/usb
應該也可以寫到init.rc裡面
寫在fstab沒有作用
Ctrl+c
u-boot參數多加一個androidboot.console$ setenv mmcargs setenv bootargs console=ttyS2,115200n8 androidboot.console=ttyS2 root=/dev/mmcblk0p2 rootdelay=2 omapfb.mode=dvi:800x480MR-16@60 init=/init意外解決scp的鬼問題 good :p
Read-Only filesystem
GPIO and 800x480$ vi init.rccomment mount rootfs rootfs / ro remount
u-boot參數
kerner driver
DNS
$ vi init.rc#basic network initsetprop net.dns1 140.96.254.100
Ethernet
$ make menuconfigDevice Drivers -> Network device support -> USB Network Adapters -> Multi-purpose USB Networking Framework -> ASIX AX88xxx Based USB2.0 Ethernet Adapter$ vi init.rc#basic network initifup eth0service dhcp /system/bin/netcfg eth0 dhcponeshot(上面兩行擺在init.rc的最後面即可)
Wireless Network - zd1211
$ make menuconfigDevice Drivers -> Network device support -> Wireless LAN -> Wireless LAN and ZyDAS ZD1211/ZD1211B USB-wireless support$ cp zd1211-firmware /system/etc/firmware/zd1211$ vi init.rc#basic network initifup wlan0$ iwconfig wlan0 essid xxx$ netcfg wlan0 dhcp
ALSA - sample config: asound.conf, init.rc
$ make menuconfigDevice Driver -> Sound card support -> Advanced Linux Sound Architecture -> ALSA for Soc audio support -> 全選(其餘項目還沒確定哪些可選可不選)編譯alsa-utils, alsa-lib, alsa-sound內容太過冗長, 請參考android 1.5 on gumstix overo的 ALSA Setting$ vi init.rc$ vi /system/etc/asound.conf可參考上面所附的config file
tty
$ vi init.rcservice getty /sbin/getty 38400 tty1oneshot
ssh and scp (android內建的)
$ ln -s /system/xbin/ssh /system/bin/ssh$ mv /dev/random /dev/random.bk$ ln -s /dev/urandom /dev/randomps: 設定後scp還是無法使用ps: u-boot參數多加一個androidboot.console=ttyS2, 意外解決這個問題
Mount SD card
$ vi .config (接著重編kernel)-CONFIG_SYSFS_DEPRECATED=y-CONFIG_SYSFS_DEPRECATED_V2=y+# CONFIG_SYSFS_DEPRECATED_V2 is not set$ vi /system/etc/vold.confvolume_sdcard {emu_media_path /devices/platform/mmci-omap-hs.0/mmc_host/mmc0/mmc0:b368media_type mmcmount_point /sdcardums_path /devices/platform/usb_mass_storage/lun0}
ehci
阿志大大從oe copy出來的kernel source裡面所附的overo-ehci.patch無法順利patch的話, 手動改一下就可以了, 然後重編kernel即可支援ehcips: 找不到usb device? 換個主板試試手氣 :p
adb tip - 在linux的環境下,透過sdk內附的adb連至remote android
$ export ADBHOST=192.168.0.133$ ~/sdk/android-sdk-mac_x86-1.5_r2/tools/adb shell(還沒試過 :p)
Keylayout
直接拿android on beagle的qwerty.kl來用
Battery
patch this file: frameworks/base/services/jni/com_android_server_BatteryService.cpp
touch problem
patch this file: frameworks/base/libs/utils/ResourceTypes.cppDisplay on Jipin TV through HDMI
u-boot設定 (800x480還沒成功, 電視偵測到的訊息是800x600@59Hz)setenv mmcargs setenv bootargs console=ttyS2,115200n8 androidboot.console=ttyS2 root=/dev/mmcblk0p2 rootdelay=2 omapfb.mode=dvi:800x600@60,vxres=800,vyres=600 init=/init
另外一個設定,解決顏色不對的問題,此外測了三組板子只有一組可正常顯示setenv mmcargs setenv bootargs console=ttyS2,115200n8 androidboot.console=ttyS2 root=/dev/mmcblk0p2 rootdelay=2 omapfb.mode=dvi:800x600R-16@60 init=/init
你好!
回覆刪除請問你一下我有一個問題,我以經驗正我的platform 裡面的USb Host EHCI and OHCI driver可以動囉!假如我一開始在USB Host 那邊有plug 一各USb 2.0 device,那請問一下我如何在 vold.conf 裡面一開始就在android 跑起來後,就可以把 USB 2.0 device 掛載起來呢?
android的版本是?froyo裡的vold"似乎"有內建支援UMS
回覆刪除看看source code及vold.fstab是否有機會用起來囉
還沒有實際試過,尚無法準確解答你的疑惑 : )