Changes

Jump to: navigation, search

Standalone boot (XUELK)

1,861 bytes added, 14:09, 4 November 2016
no edit summary
!Date
!XUELK version
!Hardware version
!Notes
|-
|November 2016
|[[AXEL_ULite_and_SBC_Lynx_Embedded_Linux_Kit_(XUELK)#XUELK_1.0.0|XUELK 1.0.0]]
|XUBE0000I1R
|
|-
You can now safely reboot or turn off the system.
 
In U-Boot environment check the following variable, which must contain the same MTD partition number used above
 
<pre>
nand_args=setenv bootargs root=ubi0:rootfs rootfstype=ubifs rw ubi.mtd=7
</pre>
 
== Program boot images ==
<pre class="board-terminal">
=> sf probe; run loadk spi_updatek loadfdt spi_updatefdt
</pre>
Using FEC0 device
TFTP from server 192.168.0.13; our IP address is 192.168.0.77
Filename 'lynx/linux/xuelk-1.0.0_imx6ul-lynx-som000c.dtb'.
Load address: 0x83000000
Loading: ######
== NAND flash ==
We assume that the following environment variables are present in u-boot:
<pre>
nand_loadk=nand read ${loadaddr} nand-kernel
nand_loadfdt=nand read ${fdtaddr} nand-fdt
nand_args=setenv bootargs root=ubi0:rootfs rootfstype=ubifs rw ubi.mtd=7
nand_nand=run nand_loadk nand_loadfdt nandargs addip addcons addmisc; bootm ${loadaddr} - ${fdtaddr}
</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 NAND flash with the following U-Boot command
 
<pre class="board-terminal">
=> run loadk nand_updatek loadfdt nand_updatefdt
</pre>
 
E.g.:
 
<pre class="board-terminal">
=> run loadk nand_updatek loadfdt nand_updatefdt
Using FEC0 device
TFTP from server 192.168.0.13; our IP address is 192.168.0.77
Filename 'lynx/linux/xuelk-1.0.0_uImage'.
Load address: 0x80800000
Loading: #################################################################
#################################################################
[...]
###########################
1.9 MiB/s
done
Bytes transferred = 6459304 (628fa8 hex)
 
NAND erase.part: device 0 offset 0xc00000, size 0x800000
Skipping bad block at 0x010a0000
Erasing at 0x13e0000 -- 100% complete.
OK
 
NAND write: device 0 offset 0xc00000, size 0x628fa8
Skip bad block 0x010a0000
6459304 bytes written: OK
Using FEC0 device
TFTP from server 192.168.0.13; our IP address is 192.168.0.77
Filename 'lynx/linux/xuelk-1.0.0_imx6ul-lynx-som000c.dtb'.
Load address: 0x83000000
Loading: #######
1.3 MiB/s
done
Bytes transferred = 31168 (79c0 hex)
 
NAND erase.part: device 0 offset 0xa00000, size 0x100000
Erasing at 0xae0000 -- 100% complete.
OK
 
NAND write: device 0 offset 0xa00000, size 0x79c0
31168 bytes written: OK
</pre>
 
 
Reboot the system and configure U-Boot to apply the new configuration
 
<pre class="board-terminal">
=> setenv bootcmd run nand_nand
=> saveenv
</pre>
757
edits

Navigation menu