User Tools

Site Tools


uboot

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
uboot [2011/07/17 23:32] simonuboot [2012/12/06 18:05] (current) 78.122.157.53
Line 28: Line 28:
  
 ===== Install from a LaCie stock U-Boot ===== ===== Install from a LaCie stock U-Boot =====
 +
 +This section present step by step how to update the stock U-Boot with a mainline version. A Network Space v2 board is used but the process should work with all the other LaCie boards supported by U-Boot mainline.
  
 ==== Why ? ==== ==== Why ? ====
Line 41: Line 43:
   * Be able to add a new feature.   * Be able to add a new feature.
  
-==== Update step by step ==== +==== Preparations ====
- +
-This section present step by step how to update the stock U-Boot with a mainline version. A Network Space v2 board is used but the process should work with all the other LaCie boards supported by U-Boot mainline. +
- +
-=== Preparations ===+
  
   * Create a work directory   * Create a work directory
Line 67: Line 65:
   $ wget ftp://ftp.lacie-nas.org/u-boot/u-boot-netspace_v2.kwb -O /var/tftpboot/u-boot-netspace_v2.kwb   $ wget ftp://ftp.lacie-nas.org/u-boot/u-boot-netspace_v2.kwb -O /var/tftpboot/u-boot-netspace_v2.kwb
      
-=== Run CLUNC and connect to the LaCie U-Boot console ===+==== Run CLUNC and connect to the LaCie U-Boot console ====
  
 Startup the NS2 and run the following commands: Startup the NS2 and run the following commands:
Line 80: Line 78:
 </note> </note>
      
-=== Flash the new U-Boot image ===+==== Flash the new U-Boot image ====
  
   Marvell>> bubt u-boot-netspace_v2.kwb   Marvell>> bubt u-boot-netspace_v2.kwb
Line 101: Line 99:
   Protect Flash Monitor space   Protect Flash Monitor space
      
-=== Restart ===+==== Restart ====
  
   Marvell>> reset   Marvell>> reset
      
-=== Retrieve the NAS IP address ===+==== Retrieve the NAS IP address ====
  
 U-Boot mainline don't provide a magic packet mechanism to configure the IP address. Instead DHCP is used. It means that [[CLUNC|CLUNC]] becomes useless from this point. Ensure that the NAS is connected to your local network and that a DHCP server is running. U-Boot mainline don't provide a magic packet mechanism to configure the IP address. Instead DHCP is used. It means that [[CLUNC|CLUNC]] becomes useless from this point. Ensure that the NAS is connected to your local network and that a DHCP server is running.
Line 145: Line 143:
 The IP address is **192.168.0.15** The IP address is **192.168.0.15**
  
-=== Connect to U-Boot via netconsole ===+==== Connect to U-Boot via netconsole ====
  
 The netconsole configuration rely on some environment variables: **ipaddr**, **ncip**, **stdin**, **stdout** and **stderr** (for more information,  please refer to the file README.NetConsole included in U-Boot sources). After the update, this variables will be initialized with the default (or built-in) values and the netconsole is configured to broadcast UDP messages. The netconsole configuration rely on some environment variables: **ipaddr**, **ncip**, **stdin**, **stdout** and **stderr** (for more information,  please refer to the file README.NetConsole included in U-Boot sources). After the update, this variables will be initialized with the default (or built-in) values and the netconsole is configured to broadcast UDP messages.
Line 162: Line 160:
   GNU ld (Sourcery G++ Lite 2010q1-188) 2.19.51.20090709   GNU ld (Sourcery G++ Lite 2010q1-188) 2.19.51.20090709
  
-=== Default configuration ===+==== Default configuration ====
  
   * Here is a default environment sample:   * Here is a default environment sample:
Line 188: Line 186:
   Environment size: 604/4092 bytes   Environment size: 604/4092 bytes
  
-=== Configure U-Boot to suit your own needs ===+==== Configure U-Boot to suit your own needs ====
  
   * Modify the U-Boot environment.   * Modify the U-Boot environment.
Line 220: Line 218:
   ns2> reset   ns2> reset
   resetting ...   resetting ...
 +
 +
 +You can automatize these steps with an u-boot script :
 +  ns2> setenv update_uboot 'tftp 0x800000 $UBOOTFILE && sf probe 0 && sf erase 0 0x50000 && sf write 0x800000 0 0x50000'
 +  ns2> setenv UBOOTFILE u-boot-netspace_v2.kwb
 +  ns2> sav
 +  Saving Environment to SPI Flash...
 +
 +And then update the UBOOTFILE variable and launch the script :
 +  ns2> setenv UBOOTFILE <my-new-u-boot.kwb>
 +  ns2> sav
 +  Saving Environment to SPI Flash...
 +  ns2> run update_uboot
 +  Using egiga0 device
 +  TFTP from server 192.168.1.19; our IP address is 192.168.1.65
 +  Filename 'uboot'.
 +  Load address: 0x800000
 +  Loading: #################
 +  done 
 +  Bytes transferred = 239836 (3a8dc hex)
 +  SF: Detected MX25L4005 with page size 64 KiB, total 512 KiB
 +
  
 ===== Links ===== ===== Links =====
  
   * [[http://www.denx.de/wiki/U-Boot|U-Boot project]]   * [[http://www.denx.de/wiki/U-Boot|U-Boot project]]
uboot.1310938366.txt.gz · Last modified: 2011/07/17 23:32 by simon