Changes between Version 21 and Version 22 of newport/bsp


Ignore:
Timestamp:
02/08/2019 07:58:45 PM (6 years ago)
Author:
Tim Harvey
Comment:

updated Ubuntu kernel configuration steps using BSP Makefile

Legend:

Unmodified
Added
Removed
Modified
  • newport/bsp

    v21 v22  
    9797
    9898[=#kernel]
    99 == Building or Modifying the Linux Kernel for Newport ==
     99== Building or Modifying the stand-alone Linux Kernel for Newport Ubuntu
    100100The Gateworks Newport BSP instructions [#build above] create an environment for building the Linux kernel among other targets.
    101101
    102102Some 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
     105make linux # first build the kernel with the standard newport_defconfig
     106}}}
    103107 * Modify Kernel configuration (enabling modules etc):
    104108{{{#!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
     109make kernel_menuconfig # this will do a 'make menuconfig; make savedefconfig' in the kernel directory
    109110}}}
     111  - your modified defconfig is now in linux/defconfig if you want to save it away somewhere
    110112 * Build kernel tarball:
    111113{{{#!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
     114make kernel_image # builds the kernel and modules and tarball
     115}}}
     116 * Build new disk image using the updated kernel tarball:
     117{{{#!bash
     118make ubuntu-image
    118119}}}
    119120
    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.
    121121
    122 
    123 == Building Ubuntu Operating System - rootfs ==
     122== Building Ubuntu Operating System - rootfs
    124123
    125124You 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.