Wiren Board 5: Build an image to download in USB Mass-Storage mode/en: различия между версиями

Новая страница: «* To get the kernel sources from git,'' <nowiki> $ git clone https://github.com/contactless/linux.git $ cd linux $ git checkout dev/v4.1.15 </nowiki> * Download…»
(Новая страница: «== Building Linux ==»)
(Новая страница: «* To get the kernel sources from git,'' <nowiki> $ git clone https://github.com/contactless/linux.git $ cd linux $ git checkout dev/v4.1.15 </nowiki> * Download…»)
Строка 15: Строка 15:
== Building Linux ==
== Building Linux ==


* Получить исходники ядра из git,''
* To get the kernel sources from git,''
  <nowiki>
  <nowiki>
$ git clone https://github.com/contactless/linux.git
$ git clone https://github.com/contactless/linux.git
$ cd linux
$ cd linux
$ git checkout dev/v4.1.15 </nowiki>
$ git checkout dev/v4.1.15 </nowiki>
* Скачать initramfs из [https://github.com/contactless/wirenboard/tree/master/initramfs_usbgadget репозитория] и распаковать
* Download initramfs from [https://github.com/contactless/wirenboard/tree/master/initramfs_usbgadget repository] and unzip
  <nowiki>
  <nowiki>
$ unzip initramfs_usbgadget.zip
$ unzip initramfs_usbgadget.zip
$ sudo tar xvf initramfs_usbgadget.tar</nowiki>
$ sudo tar xvf initramfs_usbgadget.tar</nowiki>
* Инициализировать окружение для сборки ядра. При необходимости, изменить в этом файле переменные ''DT'' и ''CROSS_COMPILE''
* Initialize the environment to build the kernel. If necessary, change the ''DT'' and ''CROSS_COMPILE'' variables in this file
  <nowiki>
  <nowiki>
$ . ./scripts/kbuild-env.sh
$ . ./scripts/kbuild-env.sh
$ set +e</nowiki>
$ set +e</nowiki>
* Задать конфиг ядра
* Set the config of the kernel
  <nowiki>$ make mxs_usbgadget_defconfig</nowiki>
  <nowiki>$ make mxs_usbgadget_defconfig</nowiki>
* Собрать ядро и модули, установив их в распакованную initramfs
* Build the kernel and modules by installing them in unpacked initramfs
  <nowiki>$ INSTALL_MOD_PATH=./initramfs_usbgadget/ ./scripts/kbuild.sh</nowiki>
  <nowiki>$ INSTALL_MOD_PATH=./initramfs_usbgadget/ ./scripts/kbuild.sh</nowiki>
* Собрать ядро с appended DTB и initramfs
* Build kernel with appended DTB and initramfs
  <nowiki>$ ./scripts/kbuild-dtb.sh</nowiki>
  <nowiki>$ ./scripts/kbuild-dtb.sh</nowiki>


12 063

правки