トップ «前の日記(2012-10-21) 最新 次の日記(2012-10-23)» 編集

ヨタの日々

2001|08|09|10|11|12|
2002|01|02|03|04|05|06|07|08|09|10|11|12|
2003|01|02|03|04|05|06|07|08|09|10|11|12|
2004|01|02|03|04|05|06|07|08|09|10|11|12|
2005|01|02|03|04|05|06|07|08|09|10|11|12|
2006|01|02|03|04|05|06|07|08|09|10|11|12|
2007|01|02|03|04|05|06|07|08|09|10|11|12|
2008|01|02|03|04|05|06|07|08|09|10|11|12|
2009|01|02|03|04|05|06|07|08|09|10|11|12|
2010|01|02|03|04|05|06|07|08|09|10|11|12|
2011|01|02|03|04|05|06|07|08|09|10|11|12|
2012|01|02|03|04|05|06|07|08|09|10|11|12|
2013|01|02|03|04|05|06|07|08|09|10|11|12|
2014|01|02|03|04|05|06|07|08|09|10|11|12|
2015|01|02|03|04|05|06|07|08|09|10|11|12|
2016|01|02|03|04|05|06|07|08|09|10|11|12|
2017|01|02|03|04|05|06|07|08|09|10|11|12|
2018|01|02|03|04|05|06|07|08|09|10|11|12|
2019|01|02|03|04|05|06|07|08|09|10|11|12|
2020|01|02|03|04|05|06|07|08|09|10|11|12|
2021|01|02|03|04|05|06|07|08|09|10|11|12|
2022|01|02|03|04|05|06|07|08|09|10|11|12|
2023|01|

2012-10-22 :-(

_ 午前

0550 起床

0830 出勤

0900 検討

_ 午後

1300 検討

1700 退勤

_

1740 ラゾーナ川崎

1830 Androidほげ

2100 飯。カレーライス、ポテトサラダ

2200 Androidほげ

_ [Android]Android エミュレーターを仮想計算機で動かす

Android SDK のAndroid エミュレーターを普通に使おうとすると激烈に重すぎて起動している間に一眠りできるくらいにテンポが悪くなるのでググってみたところ仮想計算機へインストールするのが王道らしい。

参考

手順通り。

Download - Android-x86 - Porting Android to x86 には Android のバージョンごとに .iso がある。都合により 2.x 系統の android-x86-2.2-generic.iso を使う。参考にしたサイトでも android-x86-2.2-generic.iso を使っているのでちょうどよい。しかし 2.2 は Deprecated なので近々削除されるのかしら。

参考サイトには VirtualBox を使う方法が紹介されてるんだが、手順を見たら仮想計算機に .iso を指定してどうのこうのするようなので「じゃあ vmware でも出来るんじゃないのか」と思いやってみた。出来るようだ。

とりあえず MDPI のほうを選択する。(HDPI は解像度が小さかった)

a00.png

起動

a01.png

設定

a02.png

Ethernet の設定

a03.png

Ethernet の設定

a05.png

IP アドレスを指定しておく。

a06.png

ここまできたら adb.exe を実行する。

んだが、adb.exe が見当たらない。

なにかファイルがあった。

C:\Program Files (x86)\Android\android-sdk\tools\adb_has_moved.txt

「移動しますた」だそうだ

The adb tool has moved to platform-tools/

あった。

C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe

実行する。

C:\Users\rin>"C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe" connect 192.168.0.40
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
unable to connect to 192.168.0.40:5555

んん?

ググる

Android OS側に adbd (adbデーモン)を起動する
adbコマンド実行側で、adb server を起動する
adbコマンドは、adb server を経由してadbd に指示を与える

adbd って?

なんとなく DevTools をたどってみる。

a07.png

これかなあ

a08.png

これかなあ

a09.png

当たりだったようだ。

C:\Program Files (x86)\Android\android-sdk\platform-tools\adb.exe connect 192.168.0.40
connected to 192.168.0.40:5555

Eclipse を起動し、テキトーな Android プロジェクトで 実行 → 実行の構成 → Target → Launch on all compatible devices/AVD's → Active devices and AVD's する

おお。これか

a10.png

これでテキトーに実行できるようになる。

次回

明日は Lice CD ではなく VMware にインストールからお送りします。

_ [sysupgrade][NetBSD]NetBSD 5.1 から sysupgrade したら死んだ

 :

230- Current [4] users / Max [150] users
230-
230 Anonymous access granted, restrictions apply
Remote system type is UNIX.
Using binary mode to transfer files.
200 Type set to I
250 CWD command successful
250-EXPORT NOTICE
250-
250-Please note that portions of this FTP site contain cryptographic
250-software controlled under the Export Administration Regulations (EAR).
250-
250-None of this software may be downloaded or otherwise exported or
250-re-exported into (or to a national or resident of) Cuba, Iran, Libya,
250-Sudan, North Korea, Syria or any other country to which the U.S. has
250-embargoed goods.
250-
250-By downloading or using said software, you are agreeing to the
250-foregoing and you are representing and warranting that you are not
250-located in, under the control of, or a national or resident of any
250-such country or on any such list.
250 CWD command successful
250 CWD command successful
250 CWD command successful
250 CWD command successful
250 CWD command successful
local: /var/cache/sysupgrade/xbase.tgz.tmp remote: xbase.tgz
229 Entering Extended Passive Mode (|||60155|)
150 Opening BINARY mode data connection for xbase.tgz (7719138 bytes)
100% |***************************************************************************************************|  7538 KiB  676.00 KiB/s    00:00 ETA
226 Transfer complete
7719138 bytes received in 00:11 (674.73 KiB/s)
221 Goodbye.
sysupgrade: I: Downloading ftp://ftp4.jp.netbsd.org/pub/NetBSD/NetBSD-6.0/i386/binary/sets/xcomp.tgz into /var/cache/sysupgrade
Connected to core.ring.gr.jp.
220 yamanashi.ring.gr.jp FTP server ready.
331 Anonymous login ok, send your complete email address as your password
230-
230-         ##################################################
230-         #     Welcome to the RingServer FTP service.     #
230-         ##################################################
230-
230- Localtime [Mon Oct 22 22:51:00 2012 JST+0900]
230- Current [4] users / Max [150] users
230-
230 Anonymous access granted, restrictions apply
Remote system type is UNIX.
Using binary mode to transfer files.
200 Type set to I
250 CWD command successful
250-EXPORT NOTICE
250-
250-Please note that portions of this FTP site contain cryptographic
250-software controlled under the Export Administration Regulations (EAR).
250-
250-None of this software may be downloaded or otherwise exported or
250-re-exported into (or to a national or resident of) Cuba, Iran, Libya,
250-Sudan, North Korea, Syria or any other country to which the U.S. has
250-embargoed goods.
250-
250-By downloading or using said software, you are agreeing to the
250-foregoing and you are representing and warranting that you are not
250-located in, under the control of, or a national or resident of any
250-such country or on any such list.
250 CWD command successful
250 CWD command successful
250 CWD command successful
250 CWD command successful
250 CWD command successful
local: /var/cache/sysupgrade/xcomp.tgz.tmp remote: xcomp.tgz
229 Entering Extended Passive Mode (|||55392|)
150 Opening BINARY mode data connection for xcomp.tgz (17166230 bytes)
100% |***************************************************************************************************| 16763 KiB  682.29 KiB/s    00:00 ETA
226 Transfer complete
17166230 bytes received in 00:24 (681.58 KiB/s)
221 Goodbye.
sysupgrade: I: Downloading ftp://ftp4.jp.netbsd.org/pub/NetBSD/NetBSD-6.0/i386/binary/sets/xfont.tgz into /var/cache/sysupgrade
Connected to core.ring.gr.jp.
220 yamanashi.ring.gr.jp FTP server ready.
331 Anonymous login ok, send your complete email address as your password
230-
230-         ##################################################
230-         #     Welcome to the RingServer FTP service.     #
230-         ##################################################
230-
230- Localtime [Mon Oct 22 22:51:35 2012 JST+0900]
230- Current [4] users / Max [150] users
230-
230 Anonymous access granted, restrictions apply
Remote system type is UNIX.
Using binary mode to transfer files.
200 Type set to I
250 CWD command successful
250-EXPORT NOTICE
250-
250-Please note that portions of this FTP site contain cryptographic
250-software controlled under the Export Administration Regulations (EAR).
250-
250-None of this software may be downloaded or otherwise exported or
250-re-exported into (or to a national or resident of) Cuba, Iran, Libya,
250-Sudan, North Korea, Syria or any other country to which the U.S. has
250-embargoed goods.
250-
250-By downloading or using said software, you are agreeing to the
250-foregoing and you are representing and warranting that you are not
250-located in, under the control of, or a national or resident of any
250-such country or on any such list.
250 CWD command successful
250 CWD command successful
250 CWD command successful
250 CWD command successful
250 CWD command successful
local: /var/cache/sysupgrade/xfont.tgz.tmp remote: xfont.tgz
229 Entering Extended Passive Mode (|||60960|)
150 Opening BINARY mode data connection for xfont.tgz (32782649 bytes)
100% |***************************************************************************************************| 32014 KiB  682.17 KiB/s    00:00 ETA
226 Transfer complete
32782649 bytes received in 00:46 (681.84 KiB/s)
221 Goodbye.
sysupgrade: I: Downloading ftp://ftp4.jp.netbsd.org/pub/NetBSD/NetBSD-6.0/i386/binary/sets/xserver.tgz into /var/cache/sysupgrade
Connected to core.ring.gr.jp.
220 yamanashi.ring.gr.jp FTP server ready.
331 Anonymous login ok, send your complete email address as your password
230-
230-         ##################################################
230-         #     Welcome to the RingServer FTP service.     #
230-         ##################################################
230-
230- Localtime [Mon Oct 22 22:52:32 2012 JST+0900]
230- Current [3] users / Max [150] users
230-
230 Anonymous access granted, restrictions apply
Remote system type is UNIX.
Using binary mode to transfer files.
200 Type set to I
250 CWD command successful
250-EXPORT NOTICE
250-
250-Please note that portions of this FTP site contain cryptographic
250-software controlled under the Export Administration Regulations (EAR).
250-
250-None of this software may be downloaded or otherwise exported or
250-re-exported into (or to a national or resident of) Cuba, Iran, Libya,
250-Sudan, North Korea, Syria or any other country to which the U.S. has
250-embargoed goods.
250-
250-By downloading or using said software, you are agreeing to the
250-foregoing and you are representing and warranting that you are not
250-located in, under the control of, or a national or resident of any
250-such country or on any such list.
250 CWD command successful
250 CWD command successful
250 CWD command successful
250 CWD command successful
250 CWD command successful
local: /var/cache/sysupgrade/xserver.tgz.tmp remote: xserver.tgz
229 Entering Extended Passive Mode (|||53438|)
150 Opening BINARY mode data connection for xserver.tgz (8823162 bytes)
100% |***************************************************************************************************|  8616 KiB  692.04 KiB/s    00:00 ETA
226 Transfer complete
8823162 bytes received in 00:12 (690.79 KiB/s)
221 Goodbye.
sysupgrade: I: Downloading ftp://ftp4.jp.netbsd.org/pub/NetBSD/NetBSD-6.0/i386/binary/kernel/netbsd-GENERIC.gz into /var/cache/sysupgrade
Connected to core.ring.gr.jp.
220 yamanashi.ring.gr.jp FTP server ready.
331 Anonymous login ok, send your complete email address as your password
230-
230-         ##################################################
230-         #     Welcome to the RingServer FTP service.     #
230-         ##################################################
230-
230- Localtime [Mon Oct 22 22:52:55 2012 JST+0900]
230- Current [3] users / Max [150] users
230-
230 Anonymous access granted, restrictions apply
Remote system type is UNIX.
Using binary mode to transfer files.
200 Type set to I
250 CWD command successful
250-EXPORT NOTICE
250-
250-Please note that portions of this FTP site contain cryptographic
250-software controlled under the Export Administration Regulations (EAR).
250-
250-None of this software may be downloaded or otherwise exported or
250-re-exported into (or to a national or resident of) Cuba, Iran, Libya,
250-Sudan, North Korea, Syria or any other country to which the U.S. has
250-embargoed goods.
250-
250-By downloading or using said software, you are agreeing to the
250-foregoing and you are representing and warranting that you are not
250-located in, under the control of, or a national or resident of any
250-such country or on any such list.
250 CWD command successful
250 CWD command successful
250 CWD command successful
250 CWD command successful
250 CWD command successful
local: /var/cache/sysupgrade/netbsd-GENERIC.gz.tmp remote: netbsd-GENERIC.gz
229 Entering Extended Passive Mode (|||56768|)
150 Opening BINARY mode data connection for netbsd-GENERIC.gz (5897127 bytes)
100% |***************************************************************************************************|  5758 KiB  685.61 KiB/s    00:00 ETA
226 Transfer complete
5897127 bytes received in 00:08 (683.59 KiB/s)
221 Goodbye.
sysupgrade: I: Skipping modules installation (modules not in SETS)
sysupgrade: I: Upgrading kernel using GENERIC in /
sysupgrade: I: Backing up 'netbsd' kernel as 'onetbsd'
sysupgrade: I: Upgrading base system
sysupgrade: I: Extracting base into /
100% |***************************************************************************************************|    99 MiB    4.56 MiB/s    00:00 ETA
sysupgrade: I: Extracting comp into /
[1]   Bad system call (core dumped) progress -zf "${...
sysupgrade: I: Extracting games into /
[1]   Bad system call (core dumped) progress -zf "${...
sysupgrade: I: Extracting man into /
[1]   Bad system call (core dumped) progress -zf "${...
sysupgrade: I: Extracting misc into /
[1]   Bad system call (core dumped) progress -zf "${...
sysupgrade: I: Extracting tests into /
[1]   Bad system call (core dumped) progress -zf "${...
sysupgrade: I: Extracting text into /
[1]   Bad system call (core dumped) progress -zf "${...
sysupgrade: I: Extracting xbase into /
[1]   Bad system call (core dumped) progress -zf "${...
sysupgrade: I: Extracting xcomp into /
[1]   Bad system call (core dumped) progress -zf "${...
sysupgrade: I: Extracting xfont into /
[1]   Bad system call (core dumped) progress -zf "${...
sysupgrade: I: Extracting xserver into /
[1]   Bad system call (core dumped) progress -zf "${...
sysupgrade: I: Upgrading /etc interactively
[1]   Bad system call (core dumped) etcupdate -a -l ...
sysupgrade: I: Performing postinstall checks
[1]   Bad system call (core dumped) postinstall "-d$...
[1]   Bad system call (core dumped) postinstall "-d$...
sysupgrade: E: Some postinstall(8) checks have failed

ログインしようとしたら

init: getty repeating too quickly on port '/dev/console', sleeping

などと言われた。

といってもまあ VMware なのでカーネルだけインストールしなおせばいいやと思い .iso に接続して sysinst したら死んだ。

n00.png