Lines Matching +full:auto +full:- +full:boot
2 Useful notes on bulding and using of U-Boot on ARC HS Development Kit (AKA HSDK)
7 The DesignWare ARC HS Development Kit is a ready-to-use platform for rapid
11 https://www.synopsys.com/dw/ipdir.php?ds=arc-hs-development-kit
14 …https://github.com/foss-for-synopsys-dwc-arc-processors/ARC-Development-Systems-Forum/wiki/docs/AR…
16 It has the following features useful for U-Boot:
17 * On-board 2-channel FTDI TTL-to-USB converter
18 - The first channel is used for serial debug port (which makes it possible
22 There's no HW flow-control and baud-rate is 115200.
24 - The second channel is used for built-in Digilent USB JTAG probe.
29 - Also with help of this FTDI chip it is possible to reset entire
30 board with help of a special `rff-ftdi-reset` utility, see:
31 https://github.com/foss-for-synopsys-dwc-arc-processors/rff-ftdi-reset
33 * Micro SD-card slot
34 - U-Boot expects to see the very first partition on the card formatted as
35 FAT file-system and uses it for keeping its environment in `uboot.env`
36 file. Note uboot.env is not just a text file but it is auto-generated
37 file created by U-Boot on invocation of `saveenv` command.
41 - There might be more useful files on that first FAT partition like
42 Linux kernl image in form of uImage (with or without built-in
45 - Except FAT partition there might be others following the first FAT one
46 like Ext file-system with rootfs etc.
49 - U-Boot might get payload from TFTP server. This might be uImage, rootfs
52 * 2 MiB of SPI-flash
53 - SPI-flahs is used as a storage for image of an application auto-executed
54 by bootROM on power-on. Typically U-Boot gets programmed there but
57 make sure required image is prepended. In case of U-Boot this is done
58 by invocation of `headerize-hsdk.py` with `make bsp-generate` command.
61 BUILDING U-BOOT
63 1. Configure U-Boot:
64 ------------------------->8----------------------
66 ------------------------->8----------------------
70 ------------------------->8----------------------
72 ------------------------->8----------------------
74 This will produce `u-boot` Elf file.
76 3. To build artifacts required for U-Boot update in n-board SPI-flash:
77 ------------------------->8----------------------
78 make bsp-generate
79 ------------------------->8----------------------
81 This will produce `u-boot.head` and `u-boot-update.scr` which should
82 be put on the first FAT partition of micro SD-card to be inserted in the
89 ------------------------->8----------------------
90 python3 -m pip install --user pyelftools
91 ------------------------->8----------------------
93 EXECUTING U-BOOT
95 1. The HSDK board is supposed to auto-start U-Boot image stored in on-board
96 SPI-flash on power-on. For that make sure DIP-switches in the corner of
100 2. Though it is possible to load U-Boot as a simple Elf file via JTAG right
104 ------------------------->8----------------------
105 mdb -digilent -run -cl u-boot
106 ------------------------->8----------------------
109 UPDATION U-BOOT IMAGE IN ON-BOARD SPI-FLASH
111 1. Create `u-boot.head` and `u-boot-update.scr` as discribed above with
112 `make bsp-generate` command.
114 2. Copy `u-boot.head` and `u-boot-update.scr` to the first FAT partition
115 of micro SD-card.
118 fire-up serial terminal.
120 3. Insert prepared micro SD-card in the HSDK board, press reset button
121 and stop auto-execution of existing `bootcmd` pressing any key in serial
123 ------------------------->8----------------------
124 mmc rescan && fatload mmc 0:1 ${loadaddr} u-boot-update.scr && source ${loadaddr}
125 ------------------------->8----------------------
126 Wait before you see "u-boot update: OK" message.
128 4. Press RESET button and enjoy updated U-Boot version.