Changes

Jump to: navigation, search

Standalone boot (XELK)

468 bytes removed, 11:52, 30 August 2019
no edit summary
|-
|4.0.0
|July 2018Aug 2019
|[[Axel_Embedded_Linux_Kit_(XELK)#XELK_4.0.0|XELK 4.0.0]]
|XELK 4.0.0
|-
|}
 
== Introduction ==
This document has been written and tested with the software/hardware combination described in the history table above. However it contains general concept that can be adapted on any DAVE Embedded Systems' Linux platform using the SPL.
We'll explain how to program and configure a [[Category: AxelLite|Axel Lite]] to boot in standalone mode, without the need of a system microSD card or a NFS server, with two options:
* booting with NOR + NAND
** U-Boot will fetch Linux kernel binary images (kernel + device tree) from on-board NOR flash memory, while later the OS will mount the root file system from a NAND partition.
=> run load_spl
Using FEC device
TFTP from server 192.168.0.8289; our IP address is 192.168.0.83Filename 'xelk4axel/SPLxelk-4.spi0.0_mx6qdlaxel_spi_SPL'.
Load address: 0x12000000
Loading: ############
=> run load_uboot
Using FEC device
TFTP from server 192.168.0.8289; our IP address is 192.168.0.83Filename 'xelk4axel/uxelk-4.0.0_mx6qdlaxel_spi_u-boot.img.spi'.
Load address: 0x12000000
Loading: #################################################################
<pre class="board-terminal">
root@imx6dlxelk:~# kobs-ng -x -v -w MTD CONFIG: chip_0_device_path = "/dev/mtd0" chip_1_device_path = "(null)" search_exponent = 2 data_setup_time = 80 data_hold_time = 60 address_setup_time = 25 data_sample_time = 6 row_address_size = 3 column_address_size = 2 read_command_code1 = 0 read_command_code2 = 48 boot_stream_major_version = 1 boot_stream_minor_version = 0 boot_stream_sub_version = 0 ncb_version = 3 boot_stream_1_address = 0 boot_stream_2_address = xelk-4.0unable to create a temporary file root@imx6dlxelk:~# kobs-ng -x -v -w SPL.nand 0_mx6qdlaxel_nand_SPL
MTD CONFIG:
chip_0_device_path = "/dev/mtd0"
Erasing 128 Kibyte @ 5e0000 -- 100 % complete
root@imx6dlxelk:~# nandwrite -p /dev/mtd1 uxelk-4.0.0_mx6qdlaxel_nand_u-boot.img.nand
Writing data to block 0 at offset 0x0
Writing data to block 1 at offset 0x20000
* Boot the system via SD or NFS as described into the [[XELK_Quick_Start_Guide|Quick_start_guide]]
* By default, the NAND is already partitioned to allow booting from NAND-only (see next section) and, thus, some partitions are reserved for U-boot and kernel images. Here we won't modify this default configuration. The [[Memory Tecnology Device (MTD)|MTD]] partitions can be dumped with <code>/proc/mtd</code> (the partition's name should be self-explanatory)
 
<pre class="board-terminal">
* Format and initialize ''nand-ubi'' partition, which in our case is <code>mtd7mtd8</code>, using [[Memory Tecnology Device (MTD)#UBI|UBI]] with:
<pre>
<pre>
tar xvjf xelk-4.0.0_axel-fsl-image-qt5.tar.bz2 -C /mnt/nand
</pre>
SF: Detected s25fl256s_64k with page size 256 Bytes, erase size 64 KiB, total 32 MiB
Using FEC device
TFTP from server 192.168.0.8289; our IP address is 192.168.0.83Filename 'xelk4axel/xelk-4.0.0_uImage'.
Load address: 0x12000000
Loading: #################################################################
SF: 6668104 bytes @ 0x200000 Written: OK
Using FEC device
TFTP from server 192.168.0.8289; our IP address is 192.168.0.83Filename 'xelk4axel/xelk-4.0.0_imx6q-sbcx-cb0012.dtb_wl'.
Load address: 0x18000000
Loading: ###########
=> run loadk nand_updatek loadfdt nand_updatefdt
Using FEC device
TFTP from server 192.168.0.8289; our IP address is 192.168.0.83Filename 'xelk4axel/xelk-4.0.0_uImage'.
Load address: 0x12000000
Loading: #################################################################
6668104 bytes written: OK
Using FEC device
TFTP from server 192.168.0.8289; our IP address is 192.168.0.83Filename 'xelk4axel/xelk-4.0.0_imx6q-sbcx-cb0012.dtb_wldtb'.
Load address: 0x18000000
Loading: ###########
8,154
edits

Navigation menu