| 171 | |
| 172 | [=#kernel] |
| 173 | === Building or modifying the Linux Kernel === |
| 174 | The Gateworks Newport BSP creates an environment for building the Linux kernel. Here are some additional instructions for common actions: |
| 175 | * Modify Kernel configuration (enabling modules etc): |
| 176 | {{{#!bash |
| 177 | cd linux |
| 178 | make newport_defconfig # start with the Newport kernel configuration |
| 179 | make menuconfig # modify as desired |
| 180 | make # build Image and modules |
| 181 | }}} |
| 182 | * Build kernel tarball: |
| 183 | {{{#!bash |
| 184 | cd linux |
| 185 | make # build Image and modules |
| 186 | mkdir -p install/boot # create install and install/boot directories |
| 187 | cp arch/arm64/boot/Image install/boot # copy kernel Image |
| 188 | make INSTALL_MOD_PATH=install modules_install # install modules |
| 189 | tar -cvJf /tftpboot/newport/linux-newport.tar.xz --numeric-owner -C install . # create tarball |
| 190 | }}} |
| 191 | - You can install this kernel on a running system via {{{cd /; tar xvf inux-newport.tar.xz}}} |