Changes between Version 21 and Version 22 of newport/bsp
- Timestamp:
- 02/08/2019 07:58:45 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
newport/bsp
v21 v22 97 97 98 98 [=#kernel] 99 == Building or Modifying the Linux Kernel for Newport ==99 == Building or Modifying the stand-alone Linux Kernel for Newport Ubuntu 100 100 The Gateworks Newport BSP instructions [#build above] create an environment for building the Linux kernel among other targets. 101 101 102 102 Some additional instructions for common actions (make sure you have already installed the BSP and setup your shell environment as specified above): 103 * Make standard Gateworks Newport kernel with Gateworks newport_defconfig 104 {{{#!bash 105 make linux # first build the kernel with the standard newport_defconfig 106 }}} 103 107 * Modify Kernel configuration (enabling modules etc): 104 108 {{{#!bash 105 cd linux 106 make newport_defconfig # start with the Newport kernel configuration 107 make menuconfig # modify as desired 108 make # build Image and modules 109 make kernel_menuconfig # this will do a 'make menuconfig; make savedefconfig' in the kernel directory 109 110 }}} 111 - your modified defconfig is now in linux/defconfig if you want to save it away somewhere 110 112 * Build kernel tarball: 111 113 {{{#!bash 112 cd linux 113 make # build Image and modules 114 mkdir -p install/boot # create install and install/boot directories 115 cp arch/arm64/boot/Image install/boot # copy kernel Image 116 make INSTALL_MOD_PATH=install modules_install # install modules 117 tar -cvJf /tftpboot/newport/linux-newport.tar.xz --numeric-owner -C install . # create tarball 114 make kernel_image # builds the kernel and modules and tarball 115 }}} 116 * Build new disk image using the updated kernel tarball: 117 {{{#!bash 118 make ubuntu-image 118 119 }}} 119 120 120 While the resulting kernel modules must be placed on the root filesystem the kernel image must be placed in a partition readable by the U-Boot Bootloader. Therefore placing the kernel within the root filesystem as above does not work if you use a filesystem that U-Boot does not natively support (like F2FS or BTRFS for example). U-Boot only supports FAT and EXT (and UBI for NAND devices) natively.121 121 122 123 == Building Ubuntu Operating System - rootfs == 122 == Building Ubuntu Operating System - rootfs 124 123 125 124 You can build an entire Ubuntu image from the BSP noted above (which will boot on a Newport SBC), but it does not include building the isolated rootfs.