Changes

Jump to: navigation, search

Standalone boot (SDVX)

3,751 bytes added, 08:58, 26 September 2018
... into NOR flash
== Storing boot images ...==
==... into NOR flash ==
 
* Select the proper <code>u-boot</code>, <code>kernel</code> and <code>device tree</code> binary images according to the Axel Lite or Axel ULite SOM used.
 
===U-Boot===
Update to the latest u-boot version allows usage of u-boot environment variables available.
 
<pre class="board-terminal">
=> run load
Using FEC device
TFTP from server 192.168.0.13; our IP address is 192.168.0.89
Filename 'sdvx/u-boot/sdvx-1.0.0_mx6dl_sfczg_spi_u-boot.imx'.
Load address: 0x12000000
Loading: #################################################################
#################################################################
##
1.4 MiB/s
done
Bytes transferred = 671788 (a402c hex)
=> run spi_update
SF: Detected S25FL256S with page size 64 KiB, total 32 MiB
=>
</pre>
 
===Linux kernel image and device tree===
 
We assume that the following environment variables are present in u-boot:
 
<pre>
loadk=tftpboot ${loadaddr} ${serverip}:${bootfile}
loadfdt=tftpboot ${fdtaddr} ${serverip}:${fdtfile}
spi_updatek=sf erase 200000 800000; sf write ${loadaddr} 200000 ${filesize}
spi_updatefdt=sf erase 180000 80000; sf write ${fdtaddr} 180000 ${filesize}
spi_loadk=sf read ${loadaddr} 200000 800000
spi_loadfdt=sf read ${fdtaddr} 180000 80000
spi_nand=sf probe; run spi_loadk spi_loadfdt nandargs addcons addmisc; if run configid_fixupfdt; then bootm ${loadaddr} - ${fdtaddr}; fi
</pre>
 
* Update the <code>bootfile</code> and <code>fdtfile</code> environment variables to fit the filename as found inside the TFTP server.
* Program kernel and device tree on NOR flash with the following U-Boot command
 
<pre class="board-terminal">
sf probe; run loadk spi_updatek loadfdt spi_updatefdt
</pre>
 
E.g.:
 
<pre class="board-terminal">
=> sf probe; run loadk spi_updatek loadfdt spi_updatefdt
SF: Detected S25FL256S with page size 64 KiB, total 32 MiB
Using FEC device
TFTP from server 192.168.0.13; our IP address is 192.168.0.98
Filename 'sdvx/linux/sdvx-1.0.0_lite_uImage'.
Load address: 0x12000000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#################################################################
#############################################
1.6 MiB/s
done
Bytes transferred = 6437016 (623898 hex)
Using FEC device
TFTP from server 192.168.0.13; our IP address is 192.168.0.89
Filename 'sdvx/linux/sdvx-1.0.0_lite_imx6dl-sfczg-cb0043.dtb'.
Load address: 0x18000000
Loading: #########
1.2 MiB/s
done
Bytes transferred = 42547 (a633 hex)
=>
</pre>
 
Reboot the system and configure U-Boot to apply the new configuration
 
<pre class="board-terminal">
=> setenv bootcmd run spi_nand
=> saveenv
</pre>
 
== ... into NAND flash ==
===U-Boot===
8,160
edits

Navigation menu