edison MacにUSB接続したときに反応しない

→上記の方法で試したが、うまく行かなかった。

%screen /dev/tty.usbserial-AI022S8R 115200 -L
U-Boot 2014.04 (Jun 19 2015 - 12:05:55)

Watchdog enabled
DRAM: 980.6 MiB
MMC: tangier_sdhci: 0
In: serial
Out: serial
Err: serial
Hit any key to stop autoboot: 0
Target:blank
Partitioning already done...
Flashing already done...
GADGET DRIVER: usb_dnl_dfu
reading vmlinuz
5434848 bytes read in 134 ms (38.7 MiB/s)
Valid Boot Flag
Setup Size = 0x00003c00
Magic signature found
Using boot protocol version 2.0c
Linux kernel version 3.10.17-poky-edison+ (sys_dswci@tlsndgbuild004) #1 SMP PREEMPT Fri Jun 19 12:06:40 CEST 2015
Building boot_params at 0x00090000
Loading bzImage at address 00100000 (5419488 bytes)
Magic signature found
Kernel command line: "rootwait root=PARTUUID=012b3303-34ac-284d-99b4-34e03a2335f4 rootfstype=ext4 console=ttyMFD2 earlyprintk=ttyMFD2,keep loglevel=4 g_multi.ethernet_config=cdc systemd.unit=multi-user.target hardware_id=00 g_multi.iSerialNumber=895fbb6361ff9818398dc02043da3453 g_multi.dev_addr=02:00:86:da:34:53 platform_mrfld_audio.audio_codec=dummy"

Starting kernel ...

[ 1.602260] snd_soc_sst_platform: Enter:sst_soc_probe
[ 2.006551] pmic_ccsm pmic_ccsm: Error reading battery profile from battid frmwrk
[ 2.024747] pmic_ccsm pmic_ccsm: Battery Over heat exception


******************************
PSH KERNEL VERSION: b0182b2b
WR: 20104000
******************************

SCU IPC: 0x800000d0 0xfffce92c

PSH miaHOB version: TNG.B0.VVBD.0000000c

microkernel built 11:24:08 Feb 5 2015

******* PSH loader *******
PCM page cache size = 192 KB
Cache Constraint = 0 Pages
Arming IPC driver ..
Adding page store pool ..
PagestoreAddr(IMR Start Address) = 0x04899000
pageStoreSize(IMR Size) = 0x00080000

*** Ready to receive application ***
→osアプデート途中で終了していまい、その後、
screeコマンド実行すると、Ready to receive applicationの所で前に進められない状態に落ちいた。


Edisonをフラッシュモードにする

EdisonにはU-Bootというブートマネージャ(?)が組み込まれていて、起動時にいくらかのコマンドを受け付けることができます。 Hit any key to stop autoboot と表示されたタイミングで [SPACE] などを叩いて自動起動を停止します。

U-Boot 2014.04 (Jun 19 2015 - 12:05:55)

       Watchdog enabled
DRAM:  980.6 MiB
MMC:   tangier_sdhci: 0
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0  # SPACEバーを押下

run do_flash とタイプしてフラッシュモードにします。

boot > run do_flash

flashall.shの起動

flashall.shを起動して、文鎮Edisonがフラッシュモードになるのを待機します。

outannexway@MacBook-Pro cd ~/Downloads/edison-iotdk-image-280915
chmod +x flashall.sh
sudo ./flashall.sh

%sudo ./flashall.sh ruby:[2.2.2]
Password:
Using U-Boot target: edison-blankcdc
Now waiting for dfu device 8087:0a99
Please plug and reboot the board
Flashing IFWI
Download [=========================] 100% 4194304 bytes
Download [=========================] 100% 4194304 bytes
Flashing U-Boot
Download [=========================] 100% 237568 bytes
Flashing U-Boot Environment
Download [=========================] 100% 65536 bytes
Flashing U-Boot Environment Backup
Copying data from PC to DFU device
Rebooting to apply partition changes
Now waiting for dfu device 8087:0a99
Flashing boot partition (kernel)
Copying data from PC to DFU device
Flashing rootfs, (it can take up to 5 minutes... Please be patient)
Copying data from PC to DFU device
Rebooting
U-boot & Kernel System Flash Success...
Your board needs to reboot to complete the flashing procedure, please do not unplug it for 2 minutes.

diskは認識出来なかったが、とりあえずosにはログインできました。

Poky (Yocto Project Reference Distro) 1.7.2 edison ttyMFD2
edison login: root
root@edison:~#
root@edison:~# shutdown -r now
→restartしたら、diskも認識できるようになった。

が、この方法は/home以下の内容が全部なくなってしまう。
インストールしたpackgeは全部なくなる。
パスワードやwifiの設定は全部なくなる。


起動時にエラーが発生した。
[FAILED] Failed to start Load Kernel Modules.
root@edsion1_pepper:/etc/opkg# systemctl status systemd-modules-load.service
● systemd-modules-load.service - Load Kernel Modules
Loaded: loaded (/lib/systemd/system/systemd-modules-load.service; static)
Active: failed (Result: exit-code) since Sat 2000-01-01 09:00:12 JST; 16 years 2 months ago
Docs: man:systemd-modules-load.service(8)
man:modules-load.d(5)
Process: 105 ExecStart=/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)
Main PID: 105 (code=exited, status=1/FAILURE)

Jan 01 09:00:12 edsion1_pepper systemd[1]: systemd-modules-load.service: mai...E
Jan 01 09:00:12 edsion1_pepper systemd[1]: Failed to start Load Kernel Modules.
Jan 01 09:00:12 edsion1_pepper systemd[1]: Unit systemd-modules-load.service....
Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable.
Hint: Some lines were ellipsized, use -l to show in full.
root@edsion1_pepper:/etc/opkg# systemctl status systemd-modules-load.service -l
● systemd-modules-load.service - Load Kernel Modules
Loaded: loaded (/lib/systemd/system/systemd-modules-load.service; static)
Active: failed (Result: exit-code) since Sat 2000-01-01 09:00:12 JST; 16 years 2 months ago
Docs: man:systemd-modules-load.service(8)
man:modules-load.d(5)
Process: 105 ExecStart=/lib/systemd/systemd-modules-load (code=exited, status=1/FAILURE)

Main PID: 105 (code=exited, status=1/FAILURE)

Jan 01 09:00:12 edsion1_pepper systemd[1]: systemd-modules-load.service: main process exited, code=exited, status=1/FAILURE
Jan 01 09:00:12 edsion1_pepper systemd[1]: Failed to start Load Kernel Modules.
Jan 01 09:00:12 edsion1_pepper systemd[1]: Unit systemd-modules-load.service entered failed state.
→上記の同じ方法で解決した。



→すでにFAT32であるが、容量が足りないようですね。
フォーマットしようとしても、フォーマットができないようです。



outannexway@MacBook-Pro /Volumes/Edison
%lsal
486 drwxrwxrwx 1 outannexway staff hidden 4.0K 3 24 11:44:44 2016 .Spotlight-V100/
484 drwxrwxrwx@ 1 outannexway staff hidden 4.0K 3 24 11:44:44 2016 .Trashes/
485 -rwxrwxrwx 1 outannexway staff hidden 4.0K 3 24 11:44:44 2016 ._.Trashes*
624 drwxrwxrwx 1 outannexway staff hidden 4.0K 3 24 12:06:48 2016 .fseventsd/


上記の方法でedisonの上のLinux-File-CD Gadget Media 配下のEdison をフォマット(消去)してしまった。
どうやって戻すのかは分かりません。 
osを再インストールしても戻せなかった。⇒このspaceはOSとは独立しているようです。
何か影響があるのかは分かりません。
参ったな。

影響:
J16をMACに接続しても、MACからはedisonのremovalbe diskが識別できない。
以下のダイアログが表示される。

初期化のボタンを押下すると、以下の画面が表示される。


もう一つのedisonを繋いで確認する。

検証もできない。

修復もできない。


こちから最新のimageをダウンロードして、復元してみてもだめでした。




これを見ると、Linux File***全体をフォーマットできそうで、
ためしてみると、できたようです。




MACからはEDSION2というremovable diskが表示できるようになった。


removable diskは同時にMACかedisonかどちらの一方しかmountできないようです。
The caveat is that the partition cannot be mounted both by your host computer and by the Edison, so you have to eject the drive from your desktop before you try to mount it on the Edison.