Changes between Version 75 and Version 76 of expansion/gw16146


Ignore:
Timestamp:
01/22/2026 06:03:18 PM (25 hours ago)
Author:
Tim Harvey
Comment:

add example for building support into venice BSP

Legend:

Unmodified
Added
Removed
Modified
  • expansion/gw16146

    v75 v76  
    318318
    319319All pre-built Venice images are here: [https://dev.gateworks.com/venice/images/]
     320
     321[=#venice-bsp]
     322=== Adding support to the Venice BSP
     323The latest Venice BSP will no longer build the driver/userspace components needed for the GW16146 but you can add the following script to your bsp directory to have them built which is what we do when generating our pre-built images:
     3241. Add a 'custom_kernel_gw16146' script
     325{{{#!bash
     326cat <<\EOF > custom_kernel_gw16146
     327#!/bin/bash -e
     328
     329DIR=$PWD/gw16146
     330OUTDIR=$DIR/out
     331KDIR=$1
     332DESTDIR=$2
     333mkdir -p $DIR
     334
     335cd $DIR
     336
     337[ -d nrc7292 ] || git clone https://github.com/Gateworks/nrc7292 -b v1.5.1-gateworks
     338[ -d ftdi-usb-spi ] || git clone https://github.com/Gateworks/ftdi-usb-spi
     339
     340# FTDI USB-SPI driver
     341make -j$(nproc) -C ftdi-usb-spi \
     342        KDIR=$KDIR INSTALL_MOD_PATH=$DESTDIR \
     343        INSTALL_MOD_STRIP=1 \
     344        modules modules_install
     345
     346# newracom nrc7292 802.11ah driver
     347make -j$(nproc) -C nrc7292/package/src/nrc/ KDIR=$KDIR modules
     348make -j$(nproc) -C nrc7292/package/src/nrc/ KDIR=$KDIR \
     349        INSTALL_MOD_PATH=$DESTDIR modules_install
     350
     351# newracom nrc7292 firmware
     352mkdir -p $DESTDIR/lib/firmware
     353cp nrc7292/package/evk/sw_pkg/nrc_pkg/sw/firmware/nrc7292_* \
     354        $DESTDIR/lib/firmware/
     355
     356# newracom nrc7292 cli app
     357make -j$(nproc) CC=${CROSS_COMPILE}gcc LFLAGS=-static -C nrc7292/package/src/cli_app/
     358mkdir -p $DESTDIR/usr/local/bin/
     359cp nrc7292/package/src/cli_app/cli_app \
     360        $DESTDIR/usr/local/bin/
     361
     362# newracom nrc7292 module params
     363mkdir -p $DESTDIR/etc/modprobe.d
     364echo "options nrc fw_name=nrc7292_cspi.bin bd_name=nrc7292_bd.dat spi_polling_interval=5" \
     365        > $DESTDIR/etc/modprobe.d/nrc.conf
     366EOF
     367chmod +x custom_kernel_gw16146
     368}}}
     3692. rebuild the ubuntu-image:
     370{{{#!bash
     371source ./setup-environment
     372make ubuntu-image
     373}}}
    320374
    321375[=#spi_ft232h]