Changes between Version 22 and Version 23 of linux/ubi


Ignore:
Timestamp:
02/26/2020 04:55:36 PM (3 months ago)
Author:
Ryan Erbstoesser
Comment:

reorder nand update instructions

Legend:

Unmodified
Added
Removed
Modified
  • linux/ubi

    v22 v23  
    360360[=#BasicMethod]
    361361=== Updating NAND FLASH with a UBI image ===
    362 If your ubi image is on a [wiki:tftpserver tftp server] as {{{image.ubi}}} you can use the following to update the 'rootfs' NAND FLASH partition in U-Boot (update the ip addresses as appropriate for your network environment):
     362If your ubi image is on a [wiki:tftpserver tftp server] as {{{image.ubi}}} you can use the following to update the 'rootfs' NAND FLASH partition in U-Boot:
     363
     364Preferred method using the {{{nand_update}}} script will perform the update for you using the image name specified in the {{{image_rootfs}}} env variable.
     365Run the following commands in the bootloader:
     366{{{#!bash
     367setenv ipaddr 192.168.1.1
     368setenv serverip 192.168.1.254
     369setenv image_rootfs image.ubi;
     370run nand_update
     371}}}
     372
     373
     374The more manual method without using the {{{nand_update}}} script, if your ubi image is on a tftp server as image.ubi you can use the following to update the 'rootfs' NAND FLASH partition in U-Boot (update the ip addresses as appropriate for your network environment):
    363375{{{#!bash
    364376setenv ipaddr 192.168.1.1
     
    368380  nand write ${loadaddr} rootfs ${filesize}
    369381}}}
    370  * Note the {{{nand_update}}} script will perform the last step for you using the image name specified in the {{{image_rootfs}}} env variable such that you could do a {{{setenv image_rootfs image.ubi; run nand_update}}}
     382
    371383
    372384If your ubi image is on the first partition of a FAT formated MMC called {{{image.ubi}}} you can do the following: