10 Replies Latest reply on Aug 15, 2015 6:57 AM by BurimD

    Edison firmware flash

    Tamiroquai

      Hi,

       

      I am trying to get the firmware flash, not sure, but I think it fails.

      The flash tool is a disaster, it just won't work, I read all the BKMs of browsing to json file and click start flash before connecting Edison - craps! it connects and immediately disconnects. needless to say, flash fails.

      Second I try is formatting Edison drive to FAT32, copying the files to the Edison drive on my windows8, as follows:

      07/21/2015  12:51 PM    <DIR>          helper

      07/21/2015  12:51 PM    <DIR>          u-boot-envs

      06/19/2015  12:13 PM            98,196 edison_dnx_fwr.bin

      06/19/2015  12:13 PM           148,996 edison_dnx_osr.bin

      06/19/2015  12:13 PM         4,194,468 edison_ifwi-dbg-00.bin

      06/19/2015  12:13 PM         4,194,304 edison_ifwi-dbg-00-dfu.bin

      06/19/2015  12:13 PM         4,194,468 edison_ifwi-dbg-01.bin

      06/19/2015  12:13 PM         4,194,304 edison_ifwi-dbg-01-dfu.bin

      06/19/2015  12:13 PM         4,194,468 edison_ifwi-dbg-02.bin

      06/19/2015  12:13 PM         4,194,304 edison_ifwi-dbg-02-dfu.bin

      06/19/2015  12:13 PM         4,194,468 edison_ifwi-dbg-03.bin

      06/19/2015  12:13 PM         4,194,304 edison_ifwi-dbg-03-dfu.bin

      06/19/2015  12:13 PM         4,194,468 edison_ifwi-dbg-04.bin

      06/19/2015  12:13 PM         4,194,304 edison_ifwi-dbg-04-dfu.bin

      06/19/2015  12:13 PM         4,194,468 edison_ifwi-dbg-05.bin

      06/19/2015  12:13 PM         4,194,304 edison_ifwi-dbg-05-dfu.bin

      06/19/2015  12:13 PM         4,194,468 edison_ifwi-dbg-06.bin

      06/19/2015  12:13 PM         4,194,304 edison_ifwi-dbg-06-dfu.bin

      06/19/2015  12:13 PM       566,330,368 edison-image-edison.ext4

      06/19/2015  12:13 PM         6,111,232 edison-image-edison.hddimg

      06/19/2015  12:13 PM               742 filter-dfu-out.js

      06/19/2015  12:13 PM             7,225 flashall.bat

      06/19/2015  12:13 PM             5,872 flashall.sh

      06/19/2015  12:13 PM             5,657 FlashEdison.json

      06/19/2015  12:13 PM            14,747 ota_update.scr

      06/19/2015  12:13 PM            12,566 package-list.txt

      06/19/2015  12:13 PM           237,568 u-boot-edison.bin

      06/19/2015  12:13 PM         6,291,968 u-boot-edison.img

                    26 File(s)    637,986,541 bytes

                     2 Dir(s)     160,870,400 bytes free

       

      Then I go to the serial port and run reboot ota I get this (cuting relevant only):

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

      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

      boot >

      boot > run do_ota

      reading ota_update.scr

      14747 bytes read in 18 ms (799.8 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 107 ms (37.4 MiB/s)

      hash sha1 0x6400000 400000 sha1_sum;

      sha1 for 06400000 ... 067fffff ==> ca48082bcaaa8a12776534c6fcdf707823bd2113

      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

      237568 bytes read in 20 ms (11.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 0x3a000 bytes and 0x1d0 block

       

       

      hash sha1 0x6400000 3a000 sha1_sum;

      sha1 for 06400000 ... 06439fff ==> e09f102c808d88295e39beee4b9f328745b9a037

       

       

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

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

      reading edison-image-edison.hddimg

      6111232 bytes read in 151 ms (38.6 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 0x5d4000 bytes and 0x2ea0 block

       

       

      hash sha1 0x6400000 5d4000 sha1_sum;

      sha1 for 06400000 ... 069d3fff ==> 752dc04ba544e4d3e15b4b3efc9e68cca3c09b05

       

       

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

       

       

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

      reading edison-image-edison.ext4

      566330368 bytes read in 12582 ms (42.9 MiB/s)

      part find mmc 0 label:rootfs u_part_num;

      part info mmc 0:8 u_part_start u_part_sz u_part_blksz;

      Partition rootfs Start:0x20000 Size:0x100000 BlockSize:0x200

      edison-image-edison.ext4 size is 0x21c18400 bytes and 0x10e0c2 block

       

       

      Saving Environment to MMC...

      Writing to redundant 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 ***

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

      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

      boot >

      boot > run do_ota

      reading ota_update.scr

      14747 bytes read in 18 ms (799.8 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 107 ms (37.4 MiB/s)

      hash sha1 0x6400000 400000 sha1_sum;

      sha1 for 06400000 ... 067fffff ==> ca48082bcaaa8a12776534c6fcdf707823bd2113

      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

      237568 bytes read in 20 ms (11.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 0x3a000 bytes and 0x1d0 block

       

       

      hash sha1 0x6400000 3a000 sha1_sum;

      sha1 for 06400000 ... 06439fff ==> e09f102c808d88295e39beee4b9f328745b9a037

       

       

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

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

      reading edison-image-edison.hddimg

      6111232 bytes read in 151 ms (38.6 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 0x5d4000 bytes and 0x2ea0 block

       

       

      hash sha1 0x6400000 5d4000 sha1_sum;

      sha1 for 06400000 ... 069d3fff ==> 752dc04ba544e4d3e15b4b3efc9e68cca3c09b05

       

       

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

       

       

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

      reading edison-image-edison.ext4

      566330368 bytes read in 12582 ms (42.9 MiB/s)

      part find mmc 0 label:rootfs u_part_num;

      part info mmc 0:8 u_part_start u_part_sz u_part_blksz;

      Partition rootfs Start:0x20000 Size:0x100000 BlockSize:0x200

      edison-image-edison.ext4 size is 0x21c18400 bytes and 0x10e0c2 block

       

       

      Saving Environment to MMC...

      Writing to redundant 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 ***

       

       

       

       

      However, the hostname that i set is not removed, neither I think I get the latest version

      root@Tamir:~# cat /etc/version

      edison-weekly_build_56_2014-08-20_15-54-05                                    <-- is this latest? I don't think

       

      I also see this (i downloaded 2.1 release - but not sure it refers to this version):

      Poky (Yocto Project Reference Distro) 1.6 Tamiroquai ttyMFD2

       

       

      But last indication that gives me a clue that I am not on latest is that I don't have the option to

      root@Tamir:~# configure_edison --setup

      Incorrect input. Redirecting to --help

       

       

        Interactive configuration options:

          (none)                  Goes through changing the device name, password, and wifi options.

          --name or -n            Changes the device name

          --password or -p        Changes the device password

          --wifi or -w            Changes the wifi options

       

       

        Non-interactive configuration options

          --changePassword        Changes the device password to the following argument

          --changeName            Changes the device name to the following argument

       

       

        Other options

          --help or -h        Displays these help options

          --server            Starts the server (testing only)

       

       

      I believe this is there from ver 68.

       

       

      I would be happy to get advise how to further debug this...

      I would also state that other than that the current FW that I have boots to yocto fine, and connects to wifi w/ no issue (however it will not remember the AP and user/passwd after boot, which is why I want to run the setup)
      Anyone, help?

      BTW: I work for Intel, just couldn't find the internal contact - so will appreciate internal communication as well

        • 1. Re: Edison firmware flash
          Intel_Alvarado

          Hi,

           

          No, you are not running the latest version. The output of cat /etc/version should be “weekly-159” and the first line you should see after boot should be similar to Poky (Yocto Project Reference Distro) 1.7.2 Alvarado ttyMFD2

           

          First, download the latest image from Intel® Edison Board Download | Intel® Developer Zone under the name “Release 2.1 Yocto complete image” and the Flash Tool lite 5.2.4.0.

          Extract the contents of the image to a folder named edison-image-ww25.5-15. Open the Flash tool lite. Click the Browse button and select the FlashEdison.json file. At this point you should see Flash file: FlashEdison.json and configuration RNDIS. At this point the board should be disconnected and not powered.

          Then click Start to flash and quickly connect the microUSB port closest to the switch and then the power supply. Make sure the switch is in the correct position. At this point you should see the flashing process begin. After the flash is successful you will be prompted with a message on when it is safe to disconnect and reboot.

           

          Are you using the Arduino expansion or mini breakout? This process worked for me using the Arduino expansion board and Windows 7. Please try with these steps and let me know the results.

           

          Sergio

          • 2. Re: Edison firmware flash
            Tamiroquai

            Hi Serjio,

             

            Thanks for the response.

            As a matter of fact I did exactly the steps above and ended with the same result, before I went on to try the manual ota option.

            I am using the small breakout board (not the arduino), Since it failed to upgrade in both methods, I assume that the problem is somehow in the current fw or the hw, and not the env.

            what else can I try?

            How to debug?

            Tamir

            • 3. Re: Edison firmware flash
              NPK

              download Release 2.0 Yocto* complete image.  

              after update 2.0 version and  reupdate 2.1 version

              • 4. Re: Edison firmware flash
                Tamiroquai

                Hi NPK,

                 

                Thanks! trying right now...hope that will do. have you had such experience?

                Tamir

                • 5. Re: Edison firmware flash
                  Tamiroquai

                  OK, so after a bit of optimism, seeing the image updated after installing the release 2.0

                                     Poky (Yocto Project Reference Distro) 1.6.1 edison ttyMFD2

                  ended up again with the release 2.1 not doing anything, and after installing it, I still see same 1.6.1

                  other suggestions?

                  • 6. Re: Edison firmware flash
                    Tamiroquai

                    here is the output of the flash process:

                    ******************************
                    PSH KERNEL VERSION: b0182929
                                    WR: 20104000
                    ******************************

                    SCU IPC: 0x800000d0  0xfffce92c

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

                    microkernel built 10:14:01 Jan 13 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 ***


                    U-Boot 2014.04 (Jan 30 2015 - 14:15:53)

                           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
                    14747 bytes read in 17 ms (846.7 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 107 ms (37.4 MiB/s)
                    hash sha1 0x6400000 400000 sha1_sum;
                    sha1 for 06400000 ... 067fffff ==> ca48082bcaaa8a12776534c6fcdf707823bd2113
                    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
                    237568 bytes read in 23 ms (9.9 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 0x3a000 bytes and 0x1d0 block

                    hash sha1 0x6400000 3a000 sha1_sum;
                    sha1 for 06400000 ... 06439fff ==> e09f102c808d88295e39beee4b9f328745b9a037

                    Validating edison-image-edison.hddimg hash for boot partition
                    fatload mmc 0:9 0x6400000 edison-image-edison.hddimg;
                    reading edison-image-edison.hddimg
                    6111232 bytes read in 147 ms (39.6 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 0x5d4000 bytes and 0x2ea0 block

                    hash sha1 0x6400000 5d4000 sha1_sum;
                    sha1 for 06400000 ... 069d3fff ==> 752dc04ba544e4d3e15b4b3efc9e68cca3c09b05

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

                    fatload mmc 0:9 0x6400000 edison-image-edison.ext4;
                    reading edison-image-edison.ext4
                    566330368 bytes read in 12594 ms (42.9 MiB/s)
                    part find mmc 0 label:rootfs u_part_num;
                    part info mmc 0:8 u_part_start u_part_sz u_part_blksz;
                    Partition rootfs Start:0x20000 Size:0x100000 BlockSize:0x200
                    edison-image-edison.ext4 size is 0x21c18400 bytes and 0x10e0c2 block

                    Saving Environment to MMC...
                    Writing to MMC(0)... done
                    resetting ...


                    ******************************
                    PSH KERNEL VERSION: b0182929
                                    WR: 20104000
                    ******************************

                    SCU IPC: 0x800000d0  0xfffce92c

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

                    microkernel built 10:14:01 Jan 13 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 ***


                    U-Boot 2014.04 (Jan 30 2015 - 14:15:53)

                           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
                    5348960 bytes read in 132 ms (38.6 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 Jan 30 14:16:35 CET 2015
                    Building boot_params at 0x00090000
                    Loading bzImage at address 00100000 (5333600 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=9ad774dea2f6ff5f7571f2d4f867477d"

                    Starting kernel ...

                    • 7. Re: Edison firmware flash
                      Tamiroquai

                      OK, Finally!!!!

                      Poky (Yocto Project Reference Distro) 1.7.2 edison ttyMFD2

                       

                       

                      Here is how I did it, started browsing the files in the release 2.1 zip, I saw a flashall.bat file, looking into it, I immediately saw that it just does the flashing.

                      So following these steps I was able to upgrade (I wonder why this method is not documented, as it is easiest...:-))

                      1. disconnect Edison

                      2. run the bat file until it requests to plug the Edison

                      3. plug the Edison - this starts the flashing...just wait till it's done.

                       

                      I haven't caught it, but I did see that it complains on lack of DFU device (could it be related to the fact that I wasn't able to flash?)

                      Anhow I am good to start dev now...

                      • 8. Re: Edison firmware flash
                        BurimD

                        Tamiroquai,

                         

                        This method does not seem to work for me. The batch file runs, and after I plug in the edison board, it runs for aprox 30 sec. After that it just closes.

                         

                        When I serial into my edison, I still have the same version as before running, and my credentials are the same.

                         

                        Any idea why this is happening?

                        • 9. Re: Edison firmware flash
                          Tamiroquai

                          were you able to spot an error msg?

                          For me it just worked...but it did after I tried both the flash tool and the command line on the linux...so it might be that some parts were already done, when I invoked flasshall.bat

                          • 10. Re: Edison firmware flash
                            BurimD

                            No, there was no error messages. however I managed to flash my Edison using the flash tool. Thank you for your support.