1 2 Previous Next 18 Replies Latest reply on Aug 16, 2015 12:18 PM by frohro Go to original post
      • 15. Re: Updating firmware from 7xx to 1.04 on Galileo 1 just hangs....
        poseid

        Hmm... strange, on my MacOS I can confirm that everything works. I just upgraded a second board which I had.

         

        Java:

         

        $ java -version

        java version "1.7.0_67"

        Java(TM) SE Runtime Environment (build 1.7.0_67-b01)

        Java HotSpot(TM) 64-Bit Server VM (build 24.65-b04, mixed mode)

         

        I screen logged the different processes, and it looks like this:

         

        1) check current version (= 732) and upload new version:

        root@clanton:~# clloader: remote command execution requested

        clloader: cat /sys/firmware/board_data/flash_version

        signal- child ignore  signal rxed

        Zmodem wait finished .. restart to look for sketch

        /sketch/sketch.elf file does not exist or invalid permissions

        clloader waiting to receive.

                                                                            

        Receiving: firmware.cap

         

        Bytes received:    1024/7300496   BPS:37925  ETA 03:12 

        Bytes received:   10240/7300496   BPS:155151 ETA 00:46 

        Bytes received:   19456/7300496   BPS:185295 ETA 00:39 

        Bytes received:   28672/7300496   BPS:171688 ETA 00:42 

        Bytes received:   37888/7300496   BPS:173798 ETA 00:41 

        Bytes received:   47104/[  2

         

        (takes a while)

         

        2) actual upgrade process

         

        226368/7300496   BPS:324970 ETA 00:00  [  244.669031] ttyGS0: RX not scheduled?

         

         

        Bytes received: 7235584/7300496   BPS:325019 ETA 00:00 

        Bytes received: 7244800/7300496   BPS:325097 ETA 00:00 

        Bytes received: 7254016/7300496   BPS:325438 ETA 00:00 

        Bytes received: 7263232/7300496   BPS:325778 ETA 00:00 

        Bytes received: 7272448/7300496   BPS:326118 ETA 00:00 

        Bytes received: 7281664/7300496   BPS:326458 ETA 00:00 

        Bytes received: 7290880/7300496   BPS:326813 ETA 00:00 

        Bytes received: 7300096/7300496   BPS:327123 ETA 00:00 

        Clloader: fclose: 0x8411060

         

         

        Bytes received: 7300496/7300496   BPS:327112               

        Zmodem wait finished .. restart to look for sketch

        /sketch/sketch.elf file does not exist or invalid permissions

        clloader waiting to receive.clloader: remote command execution requested

        clloader: md5sum /firmware.cap

        signal- child ignore  signal rxed

        Zmodem wait finished .. restart to look for sketch

        /sketch/sketch.elf file does not exist or invalid permissions

        clloader waiting to receive.clloader: remote command execution requested

        clloader: mkdir -p /tmp/spi_upgrade

        signal- child ignore  signal rxed

        Zmodem wait finished .. restart to look for sketch

        /sketch/sketch.elf file does not exist or invalid permissions

        clloader waiting to receive.clloader: remote command execution requested

        clloader: mkdir -p /lib/firmware/tmp/spi_upgrade

        signal- child ignore  signal rxed

        Zmodem wait finished .. restart to look for sketch

        /sketch/sketch.elf file does not exist or invalid permissions

        clloader waiting to receive.clloader: remote command execution requested

        clloader: mv /firmware.cap /tmp/spi_upgrade/galileo_firmware.bin

        signal- child ignore  signal rxed

        Zmodem wait finished .. restart to look for sketch

        /sketch/sketch.elf file does not exist or invalid permissions

        clloader waiting to receive.clloader: remote command execution requested

        clloader: cp /tmp/spi_upgrade/galileo_firmware.bin /lib/firmware/tmp/spi_upgrade/galileo_firmware.bin

        signal- child ignore  signal rxed

        Zmodem wait finished .. restart to look for sketch

        /sketch/sketch.elf file does not exist or invalid permissions

        clloader waiting to receive.clloader: remote command execution requested

        clloader: ./opt/cln/galileo/start_spi_upgrade.sh

        [  246.670494] efi-capsupdate: nblocks 1784 total_size 7300496

        [  246.676431] efi-capsupdate: File /tmp/spi_upgrade/galileo_firmware.bin size 7300496 descriptor blocks 1784

        [  246.694091] efi-capsupdate: hdr offset in file 1024 bytes

        [  246.699555] efi-capsupdate: hdr size 80 flags 0x00010000 imagesize 0x006f6190

        [  246.706877] efi-capsupdate: block 0 length 3072 data @ phys 0x0ee31400

        [  246.717058] efi-capsupdate: block 1 length 4096 data @ phys 0x0ee32000

        [  246.724823] efi-capsupdate: block 2 length 4096 data @ phys 0x0ee33000

        [  246.732925] efi-capsupdate: block 3 length 4096 data @ phys 0x0ee34000

        [  246.739589] efi-capsupdate: block 4 length 4096 data @ phys 0x0ee35000

        [  246.747330] efi-capsupdate: block 5 length 4096 data @ phys 0x0ee36000

         

         

        3) reboot and check new version

         

        cat /sys/firmware/board_data/flash_version

        0x01000400

         

        Do you have a possibility to log into the debug console with a serial console?

        Otherwise, it might be an option to use your Linux machine and run the commands for the zterminal protocol manually. Would need some time to actually that script though.

        • 16. Re: Updating firmware from 7xx to 1.04 on Galileo 1 just hangs....
          poseid

          This was the command to upload the firmware capsule maunally:

           

          lsz  --escape --binary --overwrite CapsuleApp-1.0.4.efi < /dev/cu.usbmodem1421 > /dev/cu.usbmodem1421

          • 17. Re: Updating firmware from 7xx to 1.04 on Galileo 1 just hangs....
            poseid

            This one actually:

             

            lsz  --escape --binary --overwrite firmware-1.0.4.cap < /dev/cu.usbmodem1421 > /dev/cu.usbmodem1421

             

            Similarly, with -c it is possible to run commands on the board, like triggering the upgrade script. However, this needs some development work and time. Maybe someone else can provide this. The next days looks like I have no time.

            • 18. Re: Updating firmware from 7xx to 1.04 on Galileo 1 just hangs....
              frohro

              What version of OS X are you using?

              1 2 Previous Next