Changes between Version 47 and Version 48 of OpenWrt/building


Ignore:
Timestamp:
01/22/2026 05:50:08 PM (25 hours ago)
Author:
Tim Harvey
Comment:

added OpenWrt 25.12 build instructions and changed all '-j8' to '-j$(nproc)'

Legend:

Unmodified
Added
Removed
Modified
  • OpenWrt/building

    v47 v48  
    5656
    5757Instructions vary depending on what version of OpenWrt you are building:
    58  * Upstream OpenWrt 24.10 (recommended for IMX based Venice / Ventana)
    59 {{{#!bash
     58 * Upstream OpenWrt 25.12 ('''release candidate for IMX based Venice''')
     59  - For imx8m SoC based Gateworks Venice boards you can use the instructions for OpenWrt 24.10 below and set VER=25.12 to build an OpenWrt 25.12 image
     60 * Upstream OpenWrt 24.10 ('''recommended for IMX based Venice / Ventana''')
     61{{{#!bash
     62VER=24.10
    6063# get source
    61 git clone https://github.com/openwrt/openwrt.git openwrt -b openwrt-24.10
     64git clone https://github.com/openwrt/openwrt.git openwrt -b openwrt-$VER
    6265cd openwrt
    6366# create a feeds.conf containing the gateworks feeds and upstream feeds:
    6467cat <<EOF > feeds.conf
    65 src-git gateworks https://github.com/Gateworks/gw-openwrt-packages.git;24.10
    66 src-git packages https://git.openwrt.org/feed/packages.git;openwrt-24.10
    67 src-git luci https://git.openwrt.org/project/luci.git;openwrt-24.10
    68 src-git routing https://git.openwrt.org/feed/routing.git;openwrt-24.10
    69 src-git telephony https://git.openwrt.org/feed/telephony.git;openwrt-24.10
     68src-git gateworks https://github.com/Gateworks/gw-openwrt-packages.git;$VER
     69src-git packages https://git.openwrt.org/feed/packages.git;openwrt-$VER
     70src-git luci https://git.openwrt.org/project/luci.git;openwrt-$VER
     71src-git routing https://git.openwrt.org/feed/routing.git;openwrt-$VER
     72src-git telephony https://git.openwrt.org/feed/telephony.git;openwrt-$VER
    7073EOF
    7174# update package feeds
    7275./scripts/feeds update -a
    7376./scripts/feeds install -a
    74 # (optional) fetch and apply Gateworks patches from https://dev.gateworks.com/openwrt/24.10/patches/ (you may want to skip this unless you know you need a patch)
    75 curl -s https://dev.gateworks.com/openwrt/24.10/patches/ | grep -o 'href="[^"]*\.patch"' | cut -d'"' -f2 | xargs -I {} wget https://dev.gateworks.com/openwrt/24.10/patches/{}
     77# (optional) fetch and apply Gateworks patches from https://dev.gateworks.com/openwrt/$VER/patches/ (you may want to skip this unless you know you need a patch)
     78curl -s https://dev.gateworks.com/openwrt/$VER/patches/ | grep -o 'href="[^"]*\.patch"' | cut -d'"' -f2 | xargs -I {} wget https://dev.gateworks.com/openwrt/$VER/patches/{}
    7679git am *.patch
    7780# start with an example config (for ventana use diffconfig.ventana)
    78 wget https://dev.gateworks.com/openwrt/24.10/diffconfig.venice -O .config
     81wget https://dev.gateworks.com/openwrt/$VER/diffconfig.venice -O .config
    7982make defconfig
    8083# (optional) customize config
    8184make menuconfig
    8285# build
    83 make -j8 V=s
     86make -j$(nproc) V=s
    8487# copy disk image
    8588cp bin/targets/imx/cortexa53/openwrt-imx-cortexa53-gateworks_venice-squashfs-img.gz /tftpboot/openwrt-venice.img.gz
    8689}}}
    87   * For Ventana use https://dev.gateworks.com/openwrt/24.10/diffconfig.venice and target NAND ubi images will be bin/targets/imx/cortexa9/openwrt-imx-cortexa9-gateworks_ventana-large-squashfs-nand.ubi and bin/targets/imx/cortexa9/openwrt-imx-cortexa9-gateworks_ventana-squashfs-nand.ubi
     90  * For Ventana use https://dev.gateworks.com/openwrt/$VER/diffconfig.venice and target NAND ubi images will be bin/targets/imx/cortexa9/openwrt-imx-cortexa9-gateworks_ventana-large-squashfs-nand.ubi and bin/targets/imx/cortexa9/openwrt-imx-cortexa9-gateworks_ventana-squashfs-nand.ubi
    8891  * Video: [https://youtu.be/cnObX6tErhw]
    8992
     
    105108# NOTE: If adding a lot of packages, it may outgrow the default partition size of 104mb. Adjust the CONFIG_TARGET_ROOTFS_PARTSIZE kernel param to grow the partition size appropriately
    106109# build
    107 make -j8 V=s
     110make -j$(nproc) V=s
    108111# copy disk image
    109112bin/targets/imx/cortexa53/gateworks-imx-cortexa53-gateworks_venice-squashfs-img.gz /tftpboot/openwrt-venice.img.gz
     
    168171OpenWrt can be customized by running the {{{make menuconfig}}} command. In this new window, you can select/deselect packages you want installed. If kernel customization is required, a {{{make kernel_menuconfig}}} will open the make menu for the kernel.
    169172
    170 Once complete, a simple {{{make -j8 V=s}}} will re-run the make command to re-create the rootfs.
     173Once complete, a simple {{{make -j$(nproc) V=s}}} will re-run the make command to re-create the rootfs.
    171174
    172175Please read more at this page [wiki:OpenWrt/Configuration here].
     
    202205 1. **Finding an Error** - Often the error will be 'reported' at the end of the build. However, the error will have actually occurred earlier on. Scroll up in the logs and look for an error. Typically it is from a package or dependency that was not able to be downloaded.
    203206 2. **Missing Dependencies** - The build will pull files from mirrors around the web including a Gateworks mirror at ​http://dev.gateworks.com/sources. If for some reason you can't download dependencies then you likely have a network issue. Note that files can be placed manually in the dl directory to avoid downloading.
    204  3. **Errors** - By default, the build is ran on many threads with the parameter -j8. To achieve better debugging information after a failure, re-run the build with the following -j1 flag from the trunk directory:
     207 3. **Errors** - By default, the build is ran on many threads with the parameter -j$(nproc). To achieve better debugging information after a failure, re-run the build with the following -j1 flag from the trunk directory:
    205208{{{#!bash
    206209make -j1 V=s