|
|
(33 intermediate revisions by 2 users not shown) |
Line 1: |
Line 1: |
− | {{PageHeader|How to write image to VisionSOM-6ULL NAND/eMMC using UUU tool on Windows}}
| |
− | == Prerequisites ==
| |
− | ** PC with Microsoft Windows 10 64-bit OS
| |
− | ** u-boot-dtb.imx - u-boot binary file to be programmed into traget
| |
− | ** rootfs.ubi - root file system image
| |
| | | |
− | == Information ==
| |
− | Default NAND paritions layout for 4M boot variant:
| |
− | |----------------------|
| |
− | | 3 MB [boot] |
| |
− | |----------------------|
| |
− | | 1 MB [splash] |
| |
− | |----------------------|
| |
− | | 508M [rootfs] | (remaining NAND area is used for root file system by default)
| |
− | |----------------------|
| |
− | [[File:VisionCB-2-0-bootsel.png|center|600px]]
| |
− |
| |
− | == Preparing ==
| |
− | For programming a memory of VisionSOM-6ULL, switch boot selector to mode: SERIAL.
| |
− | {| class="wikitable"
| |
− | ! colspan="2" style="text-align: center; font-weight: bold;" | BOOTx
| |
− | ! rowspan="2" style="text-align: center; font-weight: bold;" | Boot Mode
| |
− | |-
| |
− | | BOOT1
| |
− | | BOOT0
| |
− | |-
| |
− | | 1
| |
− | | 1
| |
− | |Reserved
| |
− | |-
| |
− | | 1
| |
− | | 0
| |
− | |Internal
| |
− | |-
| |
− | |'''0
| |
− | |'''1
| |
− | |'''Serial
| |
− | |-
| |
− | | 0
| |
− | | 0
| |
− | |Fuses
| |
− | |}
| |
− |
| |
− | Connect the VisionCB-STD board to the host PC using microUSB cable connected to the USB-OTG connector. To observe progress/error reports during programming, please use serial console. If you are using standard VisionSOM carrier board, this can be done by using build in serial/usb converter.
| |
− |
| |
− | == Programming board with eMMC/uSD card ==
| |
− | Flasher does not assume any specific partitions layout. It simply takes raw image of eMMC/SD card and writes it into the storage.
| |
− |
| |
− | For image programing, use command:
| |
− | <pre>uuu.exe -b vsom_6ull_emmc_flasher sdcard.img</pre>
| |
− | while: sdcard.img - raw image of SD card or eMMC memory
| |
− |
| |
− | At the command prompt, a progress bar will appear[[File:VCB_UUU_flashing_progress_bar.png|center|700px]]
| |
− |
| |
− | The serial terminal output will look like this:
| |
− | <pre>U-Boot 2018.03-00022-g23f402fe9c-dirty (May 27 2019 - 23:52:18 +0200)
| |
− |
| |
− | CPU: Freescale i.MX6ULL rev1.0 792 MHz (running at 396 MHz)
| |
− | CPU: Industrial temperature grade (-40C to 105C) at 50C
| |
− | Reset cause: POR
| |
− | Model: SoMLabs VisionSOM-6ULL
| |
− | Board: SomLabs VisionSOM-6ULL
| |
− | DRAM: 512 MiB
| |
− | board_fix_fdt(): boot device: 7, fdt@8789ed8c
| |
− | fdt_enable_by_ofname(): enabling node [/soc/aips-bus@02100000/qspi@021e0000] @00 00641C...result: 0
| |
− | fdt_enable_by_ofname(): enabling node [/soc/aips-bus@02100000/usdhc@02194000] @0 0005950...result: 0
| |
− | board_fix_fdt(): configuring USDHC2 for SD mode
| |
− | board_fix_fdt(): offset: 00005950, status 0
| |
− | NAND: MXS NAND: clock is disabled!
| |
− | 0 MiB
| |
− | MMC: FSL_SDHC: 0
| |
− | No panel detected: default to SL-TFT7-TP
| |
− | Display: SL-TFT7-TP (800x480)
| |
− | Video: 800x480x24
| |
− | Error (-2): cannot determine file size
| |
− | In: serial
| |
− | Out: serial
| |
− | Err: serial
| |
− | board_late_init()
| |
− | flash target is MMC:0
| |
− | Fastboot: Normal
| |
− | Boot from USB for uuu
| |
− | Hit any key to stop autoboot: 0
| |
− | switch to partitions #0, OK
| |
− | mmc0 is current device
| |
− | Starting download of 16776232 bytes
| |
− | ..........................................................................
| |
− | .....................................................
| |
− | downloading of 16776232 bytes finished
| |
− | writing to partition 'all'
| |
− | sparse flash target is mmc:0
| |
− | writing to partition 'all' for sparse, buffer size 16776232
| |
− | Flashing sparse image at offset 0
| |
− | Flashing Sparse Image
| |
− | ........ wrote 16776192 bytes to 'all'
| |
− | Starting download of 16776244 bytes
| |
− | ..........................................................................
| |
− | .....................................................
| |
− | downloading of 16776244 bytes finished
| |
− | writing to partition 'all'
| |
− | sparse flash target is mmc:0
| |
− | writing to partition 'all' for sparse, buffer size 16776244
| |
− | Flashing sparse image at offset 0
| |
− | Flashing Sparse Image
| |
− | ........ wrote 16776192 bytes to 'all'
| |
− |
| |
− |
| |
− | (...)
| |
− |
| |
− |
| |
− | downloading of 16776244 bytes finished
| |
− | writing to partition 'all'
| |
− | sparse flash target is mmc:0
| |
− | writing to partition 'all' for sparse, buffer size 16776244
| |
− | Flashing sparse image at offset 0
| |
− | Flashing Sparse Image
| |
− | ........ wrote 16776192 bytes to 'all'
| |
− | Starting download of 8396852 bytes
| |
− | ................................................................
| |
− | downloading of 8396852 bytes finished
| |
− | writing to partition 'all'
| |
− | sparse flash target is mmc:0
| |
− | writing to partition 'all' for sparse, buffer size 8396852
| |
− | Flashing sparse image at offset 0
| |
− | Flashing Sparse Image
| |
− | ........ wrote 8396800 bytes to 'all'
| |
− | resetting ...
| |
− | </pre>
| |
− |
| |
− | == Splash screen ==
| |
− | Prepare spalsh image - max. size is 800x480 (equal to screen resolution), bpp shall be 24bit or 8-bit with pallete.
| |
− | Image shall be stored as bmp file. Please ensure that file size is smaller than 1MB.
| |
− | === Flashing splash screen to eMMC ===
| |
− | There is no need to perform any additional step to programm custom splash image - for applying a splash screen, simply put prepared 'splash.bmp' file into '/boot' directory of the root file system.
| |
− |
| |
− | === Flashing splash screen to NAND ===
| |
− | Run command:
| |
− | <pre>uuu.exe -b vsom_6ull_nand_splash splash.bmp</pre>
| |
− |
| |
− | Be aware if any of erase blocks in 'splash' partiton are bad, then max. size of splash screen will be smaller. To meet size limit, it is possible to compress bitmap file with gzip and write compressed file to NAND.
| |