COM iMX6 Bootloader U-Boot: Difference between revisions
From Wiki-DB
Jump to navigationJump to search
Ageisreiter (talk | contribs) |
Ageisreiter (talk | contribs) |
||
Line 193: | Line 193: | ||
:Remark: The standard MII registers 0-5 are supported by this command. When you are working with a DHCOM i.MX6 module only PHY address "0" is allowed. | :Remark: The standard MII registers 0-5 are supported by this command. When you are working with a DHCOM i.MX6 module only PHY address "0" is allowed. | ||
=== Bitmap === | |||
:'''Information''' | |||
:{| class="wikitable" | |||
|''<code>bmp info <Bitmap address></code>'' | |||
|} | |||
Image size : 800 x 480 | |||
Bits per pixel: 8 | |||
Compression : 0 | |||
:'''Display''' | |||
:{| class="wikitable" | |||
|'' <code>bmp display <Bitmap SDRAM address> [x y]</code>'' | |||
|} | |||
:Note: It is necessary to load bitmap file to memory address with an offset of an odd multiple of +2, since the use of a four-byte alignment will cause alignment exceptions at run-time. |
Revision as of 14:37, 28 May 2014
FAQ
Downloads
Enter Bootloader Console
- Connect DHCOM UART1 (FF UART) via null modem cable to the RS232 Port of your PC
- Start terminal program (e.g. Tera Term) on the Host PC with the following settings:
- Baud rate: 115200
- Data: 8 bit
- Parity: none
- Stop bits: 1 bit
- Flow control: none
- Press "del" on the Host PC during Core Module system start to enter bootloader console
U-boot console commands
SPI Flash
- SPI Flash Init
sf probe
- Example:
sf probe
- Description: Initializes the OnBoard SPI Flash
- SPI Flash Read
sf read <SDRAM address> <SPI Flash address> <Bytes>
- Example:
sf read 10000000 0 100
- Description: Copies 256Bytes from SPI Flash address 0x0 to SDRAM address 0x1000_0000
- SPI Flash Write
sf write <SDRAM address> <SPI Flash address> <Bytes>
- Example:
sf write 10000000 40000 10000
- Description: Copies 64kByte from SDRAM address 0x1000_0000 to SPI Flash address 0x4_0000
- SPI Flash Erase
sf erase <SPI Flash address> <Bytes>
- Example:
sf erase 100000 1000
- Description: Deletes SPI Flash content from address 0x10_0000 to 0x10_0FFF
- Note: The Bytes information needs to be sector size aligned!
SD/MMC Card
- Switch between MicroSD, SD Slot and eMMC
mmc dev <Slot number> <Partition number>
- Example:
mmc dev 0
- Description: Switch between SD/MMC Slots: 0 --> SD/MMC Slot, 1 --> MicroSD Slot, 2 --> eMMC Flash
- Note eMMC flash partition number: 0 --> User partition, 1 --> Boot partition 1, 2 --> Boot partition 2
- Initialize SD/MMC Card
mmc rescan
- Description: Initialize new inserted SD Card
- Show SD/MMC information
mmcinfo
- Description: Shows SD/MMC device information
Device: FSL_SDHC Manufacturer ID: 45 OEM: 100 Name: SEM08 Tran Speed: 52000000 Rd Block Len: 512 MMC version 4.41 High Capacity: Yes Capacity: 7.3 GiB Bus Width: 8-bit
- Write to MicroSD, SD Slot and eMMC
mmc write <SDRAM address> <block number> <block count>
- Example:
mmc write 11000000 5000 400
- Description: Write 512kByte (device block size is 512Byte) to the eMMC offset 10MByte.
- Read from MicroSD, SD Slot and eMMC
mmc read <SDRAM address> <block number> <block count>
- Example:
mmc read 11000000 5000 400
- Description: Read 512kByte (device block size is 512Byte) from the eMMC offset 10MByte.
FAT - Filesystem
- Show Filesystem information
fatinfo <interface> <device>
- Example:
fatinfo mmc 1
Interface: MMC Device 1: Vendor: Man 094150 Snr 266e068c Rev: 1.0 Prod: AF UD Type: Removable Hard Disk Capacity: 121.2 MB = 0.1 GB (248320 x 512) Partition 1: Filesystem: FAT16 "NO NAME "
- List files
fatls <interface> <device> <directory>
- Example 1:
fatls mmc 1
- Example 2:
fatls mmc 1 /folder
- Load Files from SD Card to SDRAM
fatload <interface> <device> <SDRAM address> <directory+filename>
- Example 1:
fatload mmc 1 10100000 nk.gz
- Example 2:
fatload mmc 1 10100000 /folder/nk.gz
Ethernet
- Load File via TFTP to SDRAM
tftp <SDRAM address> <directory+filename>
- Example:
tftp 80100000 nk.gz
- Example TFTP Server: "Winagents TFTP Server Manager"
- Note: For TFTP download it is necessary to config the ENV variables "ipaddr" and "serverip"
- Load File via TFTP to SDRAM using DHCP
dhcp <SDRAM address> <directory+filename>
- Example:
dhcp 80100000 nk.gz
- Example TFTP Server: "Winagents TFTP Server Manager"
- Note: It is necessary to config the ENV variable "serverip" with the ip-address of your TFTP-Server
- Ping
ping <IP address>
- Example:
ping 192.168.55.32
- Read PHY register via MII interface
mii dump <PHY address> <PHY register>
- Example:
mii dump 0 0
- Remark: The standard MII registers 0-5 are supported by this command. When you are working with a DHCOM i.MX6 module only PHY address "0" is allowed.
Bitmap
- Information
bmp info <Bitmap address>
Image size : 800 x 480 Bits per pixel: 8 Compression : 0
- Display
bmp display <Bitmap SDRAM address> [x y]
- Note: It is necessary to load bitmap file to memory address with an offset of an odd multiple of +2, since the use of a four-byte alignment will cause alignment exceptions at run-time.