12 063
правки
(Новая страница: «== 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 == | ||
* | * 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> | ||
* | * 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> | ||
* | * 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> | ||
* | * 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> | ||
* | * Build kernel with appended DTB and initramfs | ||
<nowiki>$ ./scripts/kbuild-dtb.sh</nowiki> | <nowiki>$ ./scripts/kbuild-dtb.sh</nowiki> | ||
правки