Changes between Initial Version and Version 1 of venice/bsp

06/11/2020 09:16:54 PM (2 years ago)
Tim Harvey

initial page


  • venice/bsp

    v1 v1  
     3= Venice Board Support Package (BSP)
     4Gateworks provides a Board Support Package for Venice which provides source code and an easy mechanism to build different images, including a minimal Buildroot based distro as well as an Ubuntu based distro.
     6The Gateworks BSP is the easiest comprehensive software process because it contains everything. If a deep dive, expert path is desired, each piece of the BSP (boot firmware, rootfs, kernel) can all be built separately.
     8 * [#kernel Gateworks Venice Linux Kernel]
     9 * [wiki:venice/boot Gateworks Venice Boot Firmware]
     12== BSP Pre-Built Firmware Images
     14Pre-built firmware images can be found on
     16A sampling includes:
     18 * ''' Entire Board Software (recommended), including boot firmware, bootloader, OS, kernel, etc: '''
     19  * [ Venice Images] - Compressed Disk Image containing Firmware and kernel and OS ( .img.gz files )
     20   * Ubuntu version details are available [wiki:venice/ubuntu here]
     21 * ''' Venice GSC '''
     22  * [ GSC firmware images]
     23 * '''Only Boot Firmware '''
     24  * [ flash.bin] - Boot Firmware (everything up to and including the bootloader stored on the embedded FLASH boot device) (see [wiki:venice/boot venice/boot] for details)
     25 * '''Only Venice Kernel '''
     26  * [ linux-venice.tar.xz] - Compressed TAR archive of pre-built Linux kernel
     28''' Installation ''' instructions are at the following URL: [wiki:/venice/firmware Venice Flashing Instructions]
     32== BSP Source Code
     33Source code for the firmware, bootloader and kernel are hosted at !GitHub. We highly recommend you create a !GitHub account and 'Watch' these repositories to keep abreast of important feature additions, bugfixes, and firmware-releases. You can configure your !GitHub account to e-mail you when changes are made to repositories [ here].
     35The following !GitHub repos are used for Venice:
     36 * [] - Venice BSP support scripts and Makefile  ([ watch])
     37 * [] - Venice BSP repo Manifest  ([ watch])
     38 * [ uboot-venice] - Venice Bootloader ([ watch)]
     39 * [ linux-venice] - Venice Linux Kernel ([ watch)]
     43== Building the BSP from source
     44Below are instructions for building the entire BSP, which includes all of the bootloader components and Linux kernel and Ubuntu or OpenWrt.  Pre-built images are available [#images above].
     46The Gateworks Venice Board Support Package uses the Google {{{repo}}} tool to manage multiple code repositories.
     48The following pre-requisites are needed to build the Venice BSP:
     49 * Linux Development host (desktop or laptop computer) (Ubuntu 16.04 is used by Gateworks and tested)
     50 * Python 2.x (required by the 'repo' tool)
     51 * Git (used for source code repositories)
     52 * repo (used to manage multiple git repos)
     54Installing pre-requisites:
     56sudo apt-get install build-essential git python repo libssl-dev ncurses-dev kmod
     59To obtain the code:
     60 1. Initialize repo (fetch the repo manifest)
     62mkdir $HOME/venice
     63cd $HOME/venice
     64repo init -u
     66 1. Sync repositories (repeat this when you want to fetch the latest code updates)
     68repo sync
     70  * This will fetch/update the source repos described [#source above]. The first time it can take several minutes depending on your Internet connection and will take approximately ~3GB of disk space
     71 1. Setup build environment (***repeat this each time you open a shell***)
     73source setup-environment
     75 1. Build desired software target as defined below. For example:
     77make -j8 ubuntu-image # build focal-venice.img.gz
     83=== Modifying the stand-alone Linux Kernel
     84The Gateworks Venice BSP instructions [#build above] create an environment for building the Linux kernel among other targets.
     86Some additional instructions for common actions (make sure you have already installed the BSP and setup your shell environment as specified above):
     87 * Make standard Gateworks Venice kernel with Gateworks venice_defconfig
     89make linux # first build the kernel with the standard venice_defconfig
     91 * Modify Kernel configuration (enabling modules etc):
     93make kernel_menuconfig # this will do a 'make menuconfig; make savedefconfig' in the kernel directory
     95  - your modified defconfig is now in linux/defconfig if you want to save it away somewhere
     96 * copy your modified defconfig over the venice_defconfig (because 'make kernel_image' will always revert to venice_defconfig)
     98cp linux/.config linux/arch/arm64/configs/venice_defconfig
     100 * Build kernel tarball:
     102make kernel_image # builds the kernel and modules and tarball
     104 * Build new disk image using the updated kernel tarball:
     106make ubuntu-image