xref: /openwifi/user_space/transfer_driver_userspace_to_board.sh (revision 6a4d7cea87e6493f6df109530a5a8275bc84916e)
1
2#!/bin/bash
3
4# Author: Xianjun Jiao
5# SPDX-FileCopyrightText: 2019 UGent
6# SPDX-License-Identifier: AGPL-3.0-or-later
7
8# Setup Eth connection before this script!
9# Host: 192.168.10.1
10# Board: 192.168.10.122
11# Commands onboard to setup:
12# ifconfig eth0 192.168.10.122 netmask 255.255.255.0
13# ifconfig eth0 up
14# route add default gw 192.168.10.1
15
16# if [ "$#" -ne 2 ]; then
17#     echo "You have input $# arguments."
18#     echo "You must enter \$DIR_TO_ADI_LINUX_KERNEL and ARCH_BIT(32 or 64) as argument"
19#     exit 1
20# fi
21
22# DIR_TO_ADI_LINUX_KERNEL=$1
23# ARCH_OPTION=$2
24
25# if [ "$ARCH_OPTION" == "64" ]; then
26#     LINUX_KERNEL_IMAGE=$DIR_TO_ADI_LINUX_KERNEL/arch/arm64/boot/Image
27# else
28#     LINUX_KERNEL_IMAGE=$DIR_TO_ADI_LINUX_KERNEL/arch/arm/boot/uImage
29# fi
30
31mkdir -p openwifi
32rm -rf ./openwifi/*
33find ../driver/ -name \*.ko -exec cp {} ./openwifi/ \;
34
35tar -zcvf openwifi.tar.gz openwifi
36
37scp openwifi.tar.gz root@192.168.10.122:
38