Changes between Version 47 and Version 48 of OpenWrt/building
- Timestamp:
- 01/22/2026 05:50:08 PM (25 hours ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
OpenWrt/building
v47 v48 56 56 57 57 Instructions 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 62 VER=24.10 60 63 # get source 61 git clone https://github.com/openwrt/openwrt.git openwrt -b openwrt- 24.1064 git clone https://github.com/openwrt/openwrt.git openwrt -b openwrt-$VER 62 65 cd openwrt 63 66 # create a feeds.conf containing the gateworks feeds and upstream feeds: 64 67 cat <<EOF > feeds.conf 65 src-git gateworks https://github.com/Gateworks/gw-openwrt-packages.git; 24.1066 src-git packages https://git.openwrt.org/feed/packages.git;openwrt- 24.1067 src-git luci https://git.openwrt.org/project/luci.git;openwrt- 24.1068 src-git routing https://git.openwrt.org/feed/routing.git;openwrt- 24.1069 src-git telephony https://git.openwrt.org/feed/telephony.git;openwrt- 24.1068 src-git gateworks https://github.com/Gateworks/gw-openwrt-packages.git;$VER 69 src-git packages https://git.openwrt.org/feed/packages.git;openwrt-$VER 70 src-git luci https://git.openwrt.org/project/luci.git;openwrt-$VER 71 src-git routing https://git.openwrt.org/feed/routing.git;openwrt-$VER 72 src-git telephony https://git.openwrt.org/feed/telephony.git;openwrt-$VER 70 73 EOF 71 74 # update package feeds 72 75 ./scripts/feeds update -a 73 76 ./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) 78 curl -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/{} 76 79 git am *.patch 77 80 # start with an example config (for ventana use diffconfig.ventana) 78 wget https://dev.gateworks.com/openwrt/ 24.10/diffconfig.venice -O .config81 wget https://dev.gateworks.com/openwrt/$VER/diffconfig.venice -O .config 79 82 make defconfig 80 83 # (optional) customize config 81 84 make menuconfig 82 85 # build 83 make -j 8V=s86 make -j$(nproc) V=s 84 87 # copy disk image 85 88 cp bin/targets/imx/cortexa53/openwrt-imx-cortexa53-gateworks_venice-squashfs-img.gz /tftpboot/openwrt-venice.img.gz 86 89 }}} 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.ubi90 * 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 88 91 * Video: [https://youtu.be/cnObX6tErhw] 89 92 … … 105 108 # 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 106 109 # build 107 make -j 8V=s110 make -j$(nproc) V=s 108 111 # copy disk image 109 112 bin/targets/imx/cortexa53/gateworks-imx-cortexa53-gateworks_venice-squashfs-img.gz /tftpboot/openwrt-venice.img.gz … … 168 171 OpenWrt 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. 169 172 170 Once complete, a simple {{{make -j 8V=s}}} will re-run the make command to re-create the rootfs.173 Once complete, a simple {{{make -j$(nproc) V=s}}} will re-run the make command to re-create the rootfs. 171 174 172 175 Please read more at this page [wiki:OpenWrt/Configuration here]. … … 202 205 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. 203 206 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 -j 8. 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: 205 208 {{{#!bash 206 209 make -j1 V=s
