Changes between Version 22 and Version 23 of newport/bsp
- Timestamp:
- 02/08/2019 08:15:37 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
newport/bsp
v22 v23 1 1 [[PageOutline]] 2 2 3 = Newport Board Support Package (BSP) =3 = Newport Board Support Package (BSP) 4 4 Gateworks provides a Board Support Package for Newport which provides source code and an easy mechanism to build different images, including Ubuntu and OpenWrt. 5 5 … … 12 12 13 13 [=#images] 14 == BSP Pre-Built Firmware Images ==14 == BSP Pre-Built Firmware Images 15 15 16 16 Pre-built firmware images can be found on http://dev.gateworks.com/newport. … … 30 30 ''' Installation ''' instructions are at the following URL: [wiki:/newport/firmware#UpdateFirmwareviaSerialConsoleandEthernetfromBootloader Newport Flashing Instructions] 31 31 32 32 33 [=#source] 33 == BSP Source Code ==34 == BSP Source Code 34 35 Newport Source 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 [https://github.com/settings/notifications here]. 35 36 … … 46 47 47 48 [=#build] 48 == Building the BSP from source ==49 == Building the BSP from source 49 50 Below 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]. 50 51 … … 96 97 * [wiki:/newport/boot#BuildingaBootableDiskImages Creating Entire Disk Images for Booting] 97 98 99 98 100 [=#kernel] 99 == Building or Modifying the stand-alone Linux Kernel for Newport Ubuntu101 === Modifying the stand-alone Linux Kernel (ie for Ubuntu) 100 102 The Gateworks Newport BSP instructions [#build above] create an environment for building the Linux kernel among other targets. 101 103 … … 120 122 121 123 122 == Building Ubuntu Operating System - rootfs 124 === Modifying OpenWrt (toolchain, apps, kernel) 125 The OpenWrt build system includes building its own toolchain and kernel (so the kernel and toolchain directories in the bsp directory are not used) 123 126 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. 127 Modifying OpenWrt toolchain, installed applications, and general configuration: 128 {{{#!bash 129 make -C openwrt menuconfig # configure toolchain, installed applications and general configuration 130 }}} 131 - this results in a custom {{{.config}}} file in the {{{openwrt}}} directory which you may want to save away 125 132 126 The actual building of the Ubuntu rootfs does not happen in the Gateworks BSP instructions described above. 133 Modifying OpenWrt kernel: 134 {{{#!bash 135 make -C openwrt kernel_menuconfig 136 }}} 137 - this results in modifying {{{target/linux/octeontx/config-*}}} in the {{{openwrt}}} directory which you may want to save away 138 - Note that some kernel configurations get over-written by OpenWrt despite what you may select here 127 139 128 Information for manually building Ubuntu rootfs can be found here: [wiki:newport/ubuntu] 140 Build/rebuild OpenWrt (with your customizations): 141 {{{#!bash 142 make openwrt 143 }}} 144 - results in build artifacts in {{openwrt/bin/targets/octeontx/generic/}}} including rootfs tarball, linux kernel, and squashfs filesystem 129 145 146 Building OpenWrt Image from Newport BSP directory: 147 {{{#!bash 148 make openwrt-image # builds OpenWrt for octeontx and compressed disk image 149 }}} 150 * results in {{{openwrt-newport.img} - see {{{bsp/Makefile}}} {{{openwrt-image}}} target for details