1 Reply Latest reply on Sep 25, 2014 7:29 PM by lrosenman

    Edison -- Can't Flash.... :(

    lrosenman

      I got an Edison board at the Hackathon here in Austin last weekend, and when I go to flash it:

       

       

      /Volumes/Edison

      Larrys-MacBook-Pro:Edison lrosenma$ cd /Volumes/Edison/

      Larrys-MacBook-Pro:Edison lrosenma$ ls

      dnx_fwr_saltbay_pr2.bin edison_ifwi-dbg-05-dfu.bin

      dnx_osr_saltbay_pr2.bin edison_ifwi-dbg-05.bin

      edison-image-edison.ext4 edison_ifwi-dbg-06-dfu.bin

      edison-image-edison.hddimg edison_ifwi-dbg-06.bin

      edison_dnx_fwr.bin filter-dfu-out.js

      edison_dnx_osr.bin flashall.bat

      edison_ifwi-dbg-00-dfu.bin flashall.sh

      edison_ifwi-dbg-00.bin ifwi_saltbay_pr2-dfu.bin

      edison_ifwi-dbg-01-dfu.bin ifwi_saltbay_pr2.bin

      edison_ifwi-dbg-01.bin ota_update.scr

      edison_ifwi-dbg-02-dfu.bin package-list.txt

      edison_ifwi-dbg-02.bin pft-config-edison.xml

      edison_ifwi-dbg-03-dfu.bin pft-config-mcg_sku.xml

      edison_ifwi-dbg-03.bin u-boot-edison.bin

      edison_ifwi-dbg-04-dfu.bin u-boot-edison.img

      edison_ifwi-dbg-04.bin u-boot-envs

      Larrys-MacBook-Pro:Edison lrosenma$

       

      Larrys-MacBook-Pro:Edison lrosenma$ md5 *

      MD5 (dnx_fwr_saltbay_pr2.bin) = 390adfd2f1836a75ba01e89d0e47f89c

      MD5 (dnx_osr_saltbay_pr2.bin) = bd28e9909df1e59d023f006bfd16b076

      MD5 (edison-image-edison.ext4) = 19a6d93ba51f58fa9579033aa75fe608

      MD5 (edison-image-edison.hddimg) = f5f31630f0d485ea5ffefd140c66cebe

      MD5 (edison_dnx_fwr.bin) = 09ac93de3f131c07ad8573113b270fef

      MD5 (edison_dnx_osr.bin) = 50960acf9affc6ae30583844912216e9

      MD5 (edison_ifwi-dbg-00-dfu.bin) = c77ef284d8b7394b44e02b12aa4b696b

      MD5 (edison_ifwi-dbg-00.bin) = c9e854bfb14c7a00947a40d9118da1ac

      MD5 (edison_ifwi-dbg-01-dfu.bin) = 207f2d232b3f32c3e352160647a2a08a

      MD5 (edison_ifwi-dbg-01.bin) = 0a76447bf2fa24f68ea5954cff65121d

      MD5 (edison_ifwi-dbg-02-dfu.bin) = b3dd8b3f843b7e3e4fda2ddbec0b48a2

      MD5 (edison_ifwi-dbg-02.bin) = 5384371f162c9ba9fe516aa0d26c4b8a

      MD5 (edison_ifwi-dbg-03-dfu.bin) = ceaa3ca1be4db5d6bb2e8e65386f221e

      MD5 (edison_ifwi-dbg-03.bin) = 4acb78efac07d434f80531f7c384ab68

      MD5 (edison_ifwi-dbg-04-dfu.bin) = 3dd5362e9b311635a9d154f076dbe5c8

      MD5 (edison_ifwi-dbg-04.bin) = a0c2401e6435ebc11e55e8b99b66c9b5

      MD5 (edison_ifwi-dbg-05-dfu.bin) = bc312cf4ddce56e1abe286574dcdef6a

      MD5 (edison_ifwi-dbg-05.bin) = 7f2f7293dc73cc246e5330c69e6fa50c

      MD5 (edison_ifwi-dbg-06-dfu.bin) = d8c8d75f3e337f2a75e2232dbfc67c52

      MD5 (edison_ifwi-dbg-06.bin) = 5a985befced1332a6d7f1aac7163e3c4

      MD5 (filter-dfu-out.js) = fbab757d349edf71653025cb0ba1ce04

      MD5 (flashall.bat) = c7547cbd49af395eabc4227198a8c928

      MD5 (flashall.sh) = 6e3c9ee0075bc7626f48148f9e6fc730

      MD5 (ifwi_saltbay_pr2-dfu.bin) = b5cfa9d6c8febd618f91ac2843d50a1c

      MD5 (ifwi_saltbay_pr2.bin) = 2c339bea5e244c81a55b566b3664ccd3

      MD5 (ota_update.scr) = bfab6010d87786714a6555a1f2806a45

      MD5 (package-list.txt) = b0d9a231a9510721f0583980a2f5224e

      MD5 (pft-config-edison.xml) = a0ecf31e00fac8d01b5755a1da4a91d5

      MD5 (pft-config-mcg_sku.xml) = 3cf158aaad4e95c2a69d741d14d92443

      MD5 (u-boot-edison.bin) = 76ff7ef2919cb45cb4ab9fe37f07071c

      MD5 (u-boot-edison.img) = 4f775cc5e60e172a7d75647c029afca1

      md5: u-boot-envs: Is a directory

      Larrys-MacBook-Pro:Edison lrosenma$

       

       

      LER-Edison login: root

      Password:

      [ 123.641569] systemd-fsck[240]: /dev/mmcblk0p10: recovering journal

      [ 123.677060] systemd-fsck[240]: /dev/mmcblk0p10: clean, 15/152608

      files, 26870/610299 blocks

      root@LER-Edison:~# reboot ota

        Unmounting /factory...

        Unmounting /home...

      [ OK ] Stopped target Sound Card.

      [ OK ] Removed slice system-systemd\x2dfsck.slice.

        Stopping Watchdog sample daemon...

      [ OK ] Stopped target Multi-User System.

        Stopping Edison RM button handler...

        Stopping Daemon to reset sketches...

        Stopping Kernel Logging Service...

        Stopping Bluetooth rf kill event daemon...

        Stopping Mosquitto - lightweight server implementati...SN

      protocols...

        Stopping Zero-configuration networking...

        Stopping System Logging Service...

        Stopping Intel_XDK_Daemon...

        Stopping Network Name Resolution...

      [ OK ] Stopped target Login Prompts.

        Stopping Getty on tty1...

        Stopping Serial Getty on ttyMFD2...

        Stopping D-Bus System Message Bus...

      [ OK ] Stopped Watchdog sample daemon.

      [ OK ] Stopped Edison RM button handler.

      [ OK ] Stopped Kernel Logging Service.

      [ OK ] Stopped Bluetooth rf kill event daemon.

      [ OK ] Stopped Daemon to reset sketches.

      [ OK ] Stopped System Logging Service.

      [ OK ] Stopped Login Service.

      [ OK ] Stopped D-Bus System Message Bus.

      [ OK ] Stopped Mosquitto - lightweight server implementatio...T-SN

      protocols.

      [ OK ] Stopped Zero-configuration networking.

      [ OK ] Stopped Intel_XDK_Daemon.

      [ OK ] Stopped Network Name Resolution.

      [ OK ] Stopped Getty on tty1.

      [ OK ] Stopped Serial Getty on ttyMFD2.

      [ OK ] Unmounted /factory.

      [ OK ] Failed unmounting /home.

      [ OK ] Removed slice system-serial\x2dgetty.slice.

      [ OK ] Removed slice system-getty.slice.

        Stopping Permit User Sessions...

      [ OK ] Stopped target Network.

        Stopping Daemon to handle arduino sketches...

      [ OK ] Stopped Daemon to handle arduino sketches.

      [ OK ] Stopped Permit User Sessions.

      [ OK ] Stopped target Remote File Systems.

      [ OK ] Stopped target Basic System.

      [ OK ] Stopped target Slices.

      [ OK ] Removed slice User and Session Slice.

      [ OK ] Stopped target Paths.

      [ OK ] Stopped target Timers.

      [ OK ] Stopped target Sockets.

      [ OK ] Closed sshd.socket.

      [ OK ] Closed Syslog Socket.

      [ OK ] Closed D-Bus System Message Bus Socket.

      [ OK ] Stopped target System Initialization.

        Stopping Load/Save RF Kill Switch Status of rfkill2...

        Stopping Load/Save RF Kill Switch Status of rfkill0...

        Stopping Load/Save RF Kill Switch Status of rfkill1...

        Stopping Network Time Synchronization...

        Stopping Load Kernel Modules...

      [ OK ] Stopped Load Kernel Modules.

        Stopping Update UTMP about System Boot/Shutdown...

        Stopping Load/Save Random Seed...

        Stopping Apply Kernel Variables...

      [ OK ] Stopped Apply Kernel Variables.

      [ OK ] Stopped target Swap.

      [ OK ] Stopped Network Time Synchronization.

      [ OK ] Stopped Load/Save RF Kill Switch Status of rfkill2.

      [ OK ] Stopped Load/Save RF Kill Switch Status of rfkill0.

      [ OK ] Stopped Load/Save RF Kill Switch Status of rfkill1.

      [ OK ] Stopped Update UTMP about System Boot/Shutdown.

      [ OK ] Stopped Load/Save Random Seed.

      [ OK ] Removed slice system-systemd\x2drfkill.slice.

        Stopping Create Volatile Files and Directories...

      [ OK ] Stopped Create Volatile Files and Directories.

      [ OK ] Stopped target Local File Systems.

        Unmounting /etc/machine-id...

      [ OK ] Unset automount factory.automount.

      [ OK ] Unset automount home.automount.

      [ OK ] Unset automount boot.automount.

        Unmounting /var/volatile...

        Unmounting Temporary Directory...

      [ OK ] Unmounted /etc/machine-id.

      [ OK ] Failed unmounting /var/volatile.

      [ OK ] Unmounted Temporary Directory.

      [ OK ] Reached target Unmount All Filesystems.

      [ OK ] Stopped target Local File Systems (Pre).

        Stopping Remount Root and Kernel File Systems...

      [ OK ] Stopped Remount Root and Kernel File Systems.

      [ OK ] Reached target Shutdown.

       

       

      ******************************

      PSH KERNEL VERSION: b0182727

        WR: 20104000

      ******************************

       

      SCU IPC: 0x800000d0 0xfffce92c

       

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

       

      microkernel built 23:15:13 Apr 24 2014

       

      ******* 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 ***

       

       

      U-Boot 2014.04 (Aug 20 2014 - 16:08:32)

       

        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...

      reading ota_update.scr

      14750 bytes read in 31 ms (463.9 KiB/s)

      ## Executing script at 00100000

      === OTA update script ===

      Ota previously failed retry

      Validating Ota package

      part find mmc 0 label:update u_part_num;

      ota drive is mmc 0:9

       

      Validating edison_ifwi-dbg-00-dfu.bin hash for boot0 and boot1

      partitions

       

      fatload mmc 0:9 0x6400000 edison_ifwi-dbg-00-dfu.bin;

      reading edison_ifwi-dbg-00-dfu.bin

      4194304 bytes read in 111 ms (36 MiB/s)

      hash sha1 0x6400000 400000 sha1_sum;

      sha1 for 06400000 ... 067fffff ==>

      7238ee6962289f24c6b8328a017264bf30607f82

      edison_ifwi-dbg-00-dfu.bin size is 0x400000 bytes and 0x2000 block

       

      Validating u-boot-edison.bin hash for u-boot0 partition

       

      fatload mmc 0:9 0x6400000 u-boot-edison.bin;

      reading u-boot-edison.bin

      245760 bytes read in 37 ms (6.3 MiB/s)

      part find mmc 0 label:u-boot0 u_part_num;

      part info mmc 0:1 u_part_start u_part_sz u_part_blksz;

      Partition u-boot0 Start:0x800 Size:0x1000 BlockSize:0x200

      u-boot-edison.bin size is 0x3c000 bytes and 0x1e0 block

       

      hash sha1 0x6400000 3c000 sha1_sum;

      sha1 for 06400000 ... 0643bfff ==>

      9b51387e9145ebd3d5165aadf8c649df3f0f6116

       

      Validating edison-image-edison.hddimg hash for boot partition

      fatload mmc 0:9 0x6400000 edison-image-edison.hddimg;

      reading edison-image-edison.hddimg

      5799936 bytes read in 153 ms (36.2 MiB/s)

      part find mmc 0 label:boot u_part_num;

      part info mmc 0:7 u_part_start u_part_sz u_part_blksz;

      Partition boot Start:0x10000 Size:0x10000 BlockSize:0x200

      edison-image-edison.hddimg size is 0x588000 bytes and 0x2c40 block

       

      hash sha1 0x6400000 588000 sha1_sum;

      sha1 for 06400000 ... 06987fff ==>

      b6665f17e60bb093300f6f39169e69e2bedd10cb

       

      Validating edison-image-edison.ext4 hash for rootfs partition

       

      fatload mmc 0:9 0x6400000 edison-image-edison.ext4;

      reading edison-image-edison.ext4

      ** Unable to read file edison-image-edison.ext4 **

      Saving Environment to MMC...

      Writing to MMC(0)... done

      resetting ...

       

       

      ******************************

      PSH KERNEL VERSION: b0182727

        WR: 20104000

      ******************************

       

      SCU IPC: 0x800000d0 0xfffce92c

       

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

       

      microkernel built 23:15:13 Apr 24 2014

       

      ******* 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 ***

       

       

      U-Boot 2014.04 (Aug 20 2014 - 16:08:32)

       

        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

      5124192 bytes read in 127 ms (38.5 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@ncsndgbuild04) #1

      SMP PREEMPT Wed Aug 20 16:09:18 CEST 2014

      Building boot_params at 0x00090000

      Loading bzImage at address 00100000 (5108832 bytes)

      Magic signature found

      Kernel command line: "root=PARTUUID=012b3303-34ac-284d-99b4-34e03a2335f4

      rootfstype=ext4 console=ttyMFD2 earlyprintk=ttyMFD2,keep loglevel=4

      systemd.unit=multi-user.target hardware_id=00

      g_multi.iSerialNumber=97d96c4a3de6a069347232d34fb5f2e0"

       

      Starting kernel ...

       

      [ 1.627845] pmic_ccsm pmic_ccsm: Error reading battery profile from

      battid frmwrk

      [ 1.636512] pmic_ccsm pmic_ccsm: Battery Over heat exception

      [ 1.636598] pmic_ccsm pmic_ccsm: Battery0 temperature inside boundary

       

      Welcome to Linux!

       

      [ OK ] Reached target Remote File Systems.

        Expecting device dev-ttyMFD2.device...

        Expecting device dev-mmcblk1p1.device...

      [ OK ] Reached target Paths.

      [ OK ] Set up automount Arbitrary Executable File Formats F...utomount

      Point.

      [ OK ] Reached target Swap.

      [ OK ] Set up automount boot.automount.

      [ OK ] Set up automount home.automount.

      [ OK ] Created slice Root Slice.

      [ OK ] Listening on Delayed Shutdown Socket.

      [ OK ] Listening on /dev/initctl Compatibility Named Pipe.

      [ OK ] Listening on Syslog Socket.

      [ OK ] Listening on udev Kernel Socket.

      [ OK ] Listening on udev Control Socket.

      [ OK ] Created slice User and Session Slice.

      [ OK ] Listening on Journal Socket.

      [ OK ] Created slice System Slice.

        Starting Remount Root and Kernel File Systems...

        Starting Load Kernel Modules...

        Starting udev Coldplug all Devices...

        Starting Create list of required static device nodes...rrent

      kernel...

        Mounting Debug File System...

        Starting Apply Kernel Variables...

        Mounting POSIX Message Queue File System...

      [ OK ] Created slice system-getty.slice.

      [ OK ] Created slice system-serial\x2dgetty.slice.

        Starting Journal Service...

      [ OK ] Started Journal Service.

      [ OK ] Reached target Slices.

        Mounting Temporary Directory...

      [ OK ] Set up automount factory.automount.

      [ OK ] Mounted POSIX Message Queue File System.

      [ OK ] Mounted Debug File System.

      [ OK ] Mounted Temporary Directory.

      [ OK ] Started Remount Root and Kernel File Systems.

      [ OK ] Started Create list of required static device nodes ...current

      kernel.

      [ OK ] Started Apply Kernel Variables.

      [ OK ] Started Load Kernel Modules.

      [ OK ] Started udev Coldplug all Devices.

        Mounting FUSE Control File System...

        Mounting Configuration File System...

        Starting Create Static Device Nodes in /dev...

        Starting Load/Save Random Seed...

      [ OK ] Mounted Configuration File System.

      [ OK ] Mounted FUSE Control File System.

      [ OK ] Started Create Static Device Nodes in /dev.

      [ OK ] Started Load/Save Random Seed.

        Starting udev Kernel Device Manager...

      [ OK ] Reached target Local File Systems (Pre).

        Mounting /var/volatile...

      [ OK ] Started udev Kernel Device Manager.

      [ OK ] Mounted /var/volatile.

      [ OK ] Reached target Local File Systems.

        Starting Trigger Flushing of Journal to Persistent Storage...

        Starting Create Volatile Files and Directories...

      [ OK ] Started Create Volatile Files and Directories.

      [ OK ] Started Trigger Flushing of Journal to Persistent Storage.

      [ OK ] Found device /dev/ttyMFD2.

      [ OK ] Created slice system-systemd\x2drfkill.slice.

        Starting Load/Save RF Kill Switch Status of rfkill2...

        Starting Load/Save RF Kill Switch Status of rfkill1...

        Starting Load/Save RF Kill Switch Status of rfkill0...

        Starting Network Time Synchronization...

        Starting Update UTMP about System Boot/Shutdown...

      [ OK ] Started Load/Save RF Kill Switch Status of rfkill2.

      [ OK ] Started Load/Save RF Kill Switch Status of rfkill1.

      [ OK ] Started Load/Save RF Kill Switch Status of rfkill0.

      [ OK ] Started Network Time Synchronization.

      [ OK ] Started Update UTMP about System Boot/Shutdown.

      [ OK ] Reached target System Initialization.

      [ OK ] Reached target Timers.

      [ OK ] Listening on D-Bus System Message Bus Socket.

      [ OK ] Listening on sshd.socket.

      [ OK ] Reached target Sound Card.

      [ OK ] Reached target Sockets.

      [ OK ] Reached target Basic System.

        Starting Watchdog sample daemon...

      [ OK ] Started Watchdog sample daemon.

        Starting USB Ethernet gadget...

      [ 7.246485] dwc3-device dwc3-device.1: dwc3-gadget is already bound

      to g_multi

        Starting Crashlog service...

      [ OK ] Started Crashlog service.

        Starting Edison RM button handler...

      [ OK ] Started Edison RM button handler.

        Starting Kernel Logging Service...

      [ OK ] Started Kernel Logging Service.

        Starting Bluetooth rf kill event daemon...

      [ OK ] Started Bluetooth rf kill event daemon.

        Starting Daemon to handle arduino sketches...

      [ OK ] Started Daemon to handle arduino sketches.

        Starting Daemon to reset sketches...

      [ OK ] Started Daemon to reset sketches.

        Starting System Logging Service...

      [ OK ] Started System Logging Service.

        Starting Login Service...

        Starting Permit User Sessions...

        Starting D-Bus System Message Bus...

      [ OK ] Started D-Bus System Message Bus.

        Starting Network Service...

      [ OK ] Started Permit User Sessions.

      [ OK ] Started USB Ethernet gadget.

      [ OK ] Started Network Service.

      [ OK ] Started Login Service.

      [ OK ] Created slice system-systemd\x2dfsck.slice.

        Starting File System Check on /dev/disk/by-partlabel/factory...

      [ OK ] Reached target Network.

        Starting Mosquitto - lightweight server implementati...SN

      protocols...

      [ OK ] Started Mosquitto - lightweight server implementatio...T-SN

      protocols.

        Starting Zero-configuration networking...

      [ OK ] Started Zero-configuration networking.

        Starting Intel_XDK_Daemon...

      [ OK ] Started Intel_XDK_Daemon.

        Starting Network Name Resolution...

        Starting Getty on tty1...

      [ OK ] Started Getty on tty1.

        Starting Serial Getty on ttyMFD2...

      [ OK ] Started Serial Getty on ttyMFD2.

      [ OK ] Reached target Login Prompts.

        Starting HSU runtime pm service...

      [ OK ] Started Network Name Resolution.

      [ OK ] Started File System Check on /dev/disk/by-partlabel/factory.

      [ OK ] Started HSU runtime pm service.

      [ 9.283836] systemd-fsck[203]: /dev/mmcblk0p5: clean, 15/128 files,

      42/1024 blocks

        Mounting /factory...

      [ OK ] Mounted /factory.

       

      Poky (Yocto Project Reference Distro) 1.6 LER-Edison ttyMFD2

       

      LER-Edison login:

       

      How do I get past this?

        • 1. Re: Edison -- Can't Flash.... :(
          lrosenman

          I had posted this elsewhere as well.

           

          Upshot: I was using a MicroUSB cable from my MiFi, and apparently it has issues -- I changed to a generic MicroUSB cable, and redid the steps on Windows, and now have the latest stuff on my Edison.

           

          Moral: don't believe it's all good even if it looks good.

           

          Try different cables, etc.