wb_editors
14 457
правок
(Новая страница: «== Building U-Boot ==») |
FuzzyBot (обсуждение | вклад) м (FuzzyBot переименовал страницу Сборка образа для загрузки в режиме USB Mass-Storage/en в Wiren Board 5: Build an image to download in USB Mass-Storage mode/en без оставления перенаправления: Часть переводимой страницы Сборка образа для загрузки в режиме USB Mass-Storage.) |
||
(не показаны 4 промежуточные версии 1 участника) | |||
Строка 38: | Строка 38: | ||
== Building U-Boot == | == Building U-Boot == | ||
* | * Get u-Boot sources from git. You need a ''wb_v2015.07'' branch | ||
<nowiki> | <nowiki> | ||
$ cd .. | $ cd .. | ||
Строка 44: | Строка 44: | ||
$ cd u-boot | $ cd u-boot | ||
$ git checkout wb_v2015.07</nowiki> | $ git checkout wb_v2015.07</nowiki> | ||
* | * Set u-Boot config | ||
<nowiki>$ make mx28_wirenboard5_usbgadget_defconfig</nowiki> | <nowiki>$ make mx28_wirenboard5_usbgadget_defconfig</nowiki> | ||
* | * Copy a previously collected image of '''[[kernel+initramfs]+DTB]''' to the U-Boot folder | ||
$ cp ../linux/zImage-imx28-evk ./zImage | $ cp ../linux/zImage-imx28-evk ./zImage | ||
* | * Build a combined image '''[U-Boot+[[kernel+initramfs]+DTB|kernel+initramfs]+DTB]''' into U-Boot folder | ||
$ cp ../linux/zImage-imx28-evk ./zImage | $ cp ../linux/zImage-imx28-evk ./zImage | ||
* | * Build a combined '''[U-Boot+[[kernel+initramfs]+DTB]]''' image suitable for booting to USB (bootstream) | ||
<nowiki>$ CROSS_COMPILE='arm-linux-gnueabi-' make -j4 u-boot.sb</nowiki> | <nowiki>$ CROSS_COMPILE='arm-linux-gnueabi-' make -j4 u-boot.sb</nowiki> | ||
== | == Assembling mxsldr == | ||
This utility is needed to download the resulting image via USB. Requires ''libusb-1.0'' library installed (<nowiki>apt-get install libusb-1.0-0-dev</nowiki>) | |||
<nowiki> | <nowiki> | ||
Строка 66: | Строка 65: | ||
== | == Loading a built image using mxsldr == | ||
<nowiki>$ ./mxsldr ../u-boot/u-boot.sb</nowiki> | <nowiki>$ ./mxsldr ../u-boot/u-boot.sb</nowiki> |