Changes between Version 9 and Version 10 of newport/firmware


Ignore:
Timestamp:
12/07/2018 09:53:32 PM (6 years ago)
Author:
Ryan Erbstoesser
Comment:

include update_all script into page for updating firmware

Legend:

Unmodified
Added
Removed
Modified
  • newport/firmware

    v9 v10  
    102102The methods you use to update the firmware depends on what specifically you are trying to update.
    103103
    104 Update the entire device from a Compressed Disk Image ('[wiki:newport/boot boot firmware]' as well as entire OS):
     104==== Update entire firmware (recommended) ====
     105Update the entire device from a Compressed Disk Image. This image includes the ('boot firmware as well as entire OS and kernel):
     106
     107Complete Compressed Disk Images are available for download here: [http://dev.gateworks.com/newport/images/]
     108
     109''' Gateworks Update Script '''
     110
     111
     112This is the easiest.
    105113{{{#!bash
    106114setenv ipaddr 192.168.1.1 # sets device IP
    107115
     116setenv serverip 192.168.1.146 # sets TFTP LAN server IP
     117
     118setenv dev 0 # sets MMC device to be flashed
     119
     120setenv image xenial-newport.img.gz # or whatever filename is used, with any directories in front of the filename
     121
     122run update_all
     123
     124}}}
     125
     126Realize what the update_all script does:
     127{{{#!bash
     128update_all=tftpboot ${loadaddr} ${image} && gzwrite mmc ${dev} ${loadaddr} ${filesize}
     129}}}
     130
     131''' Manual Method '''
     132{{{#!bash
     133setenv ipaddr 192.168.1.1 # sets device IP
     134
    108135setenv serverip 192.168.1.146 # sets TFTP server IP
    109136
     
    114141  - **If the image was created using a minimally sized filesystem you will want to resize it after booting to take advantage of the full partition space. For an {{{ext4}}} root filesystem on the primary MMC device run {{{resize2fs /dev/mmcblk0p2}}}.**
    115142
    116 To summarize:
    117 
    118 
     143==== Updating just the kernel ====
    119144Updating just the kernel can be done with {{{tftpboot}}} and {{{fatwrite}}}:
    120145{{{#!bash
     
    125150}}}
    126151
     152==== Updating just the boot firmware ====
    127153Updating the [wiki:newport/boot 'Boot firmware'] (everything up to and including the Bootloader):
    128154On a Newport booted to the bootloader: