Bin Meng | 225b87c | 2019-07-18 00:34:09 -0700 | [diff] [blame] | 1 | .. SPDX-License-Identifier: GPL-2.0+ |
| 2 | .. sectionauthor:: Andy Shevchenko <andriy.shevchenko@linux.intel.com> |
| 3 | |
| 4 | Edison |
| 5 | ====== |
| 6 | |
| 7 | Build Instructions for U-Boot as main bootloader |
| 8 | ------------------------------------------------ |
| 9 | |
| 10 | Simple you can build U-Boot and obtain u-boot.bin:: |
| 11 | |
| 12 | $ make edison_defconfig |
| 13 | $ make all |
| 14 | |
| 15 | Updating U-Boot on Edison |
| 16 | ------------------------- |
| 17 | |
| 18 | By default Intel Edison boards are shipped with preinstalled heavily |
| 19 | patched U-Boot v2014.04. Though it supports DFU which we may be able to |
| 20 | use. |
| 21 | |
| 22 | 1. Prepare u-boot.bin as described in chapter above. You still need one |
| 23 | more step (if and only if you have original U-Boot), i.e. run the |
| 24 | following command:: |
| 25 | |
| 26 | $ truncate -s %4096 u-boot.bin |
| 27 | |
| 28 | 2. Run your board and interrupt booting to U-Boot console. In the console |
| 29 | call:: |
| 30 | |
| 31 | => run do_force_flash_os |
| 32 | |
| 33 | 3. Wait for few seconds, it will prepare environment variable and runs |
| 34 | DFU. Run DFU command from the host system:: |
| 35 | |
| 36 | $ dfu-util -v -d 8087:0a99 --alt u-boot0 -D u-boot.bin |
| 37 | |
| 38 | 4. Return to U-Boot console and following hint. i.e. push Ctrl+C, and |
| 39 | reset the board:: |
| 40 | |
| 41 | => reset |