open-sdr / openwifi

open-source IEEE 802.11 WiFi baseband FPGA (chip) design: driver, software
GNU Affero General Public License v3.0
3.78k stars 643 forks source link

After modifying the driver, follow the "Update Driver" operation in the README file and the following problems occur? #135

Closed maykolo closed 2 years ago

maykolo commented 2 years ago

The first time, I downloaded all the files, and then modified the places I need to modify, and then there was a problem with the compilation. The second time, I reverted to the original file, i.e., without modifying the source code, and then compiling also had a relative problem. So this should not be an error caused by the code I modified. Environment: "openwifi-1.2.0" and "linux-2019_R1" Compilation error: openwifi/driver/git_rev.h:1:17: error: invalid suffix "x" on integerconstan’`

define GIT_REV 0x`

image

JiaoXianjun commented 2 years ago

What is your OS version and Vivado version?

maykolo commented 2 years ago

Vivado2018.3

JiaoXianjun commented 2 years ago

OS version

maykolo commented 2 years ago

Ubuntu16.04  Vivado2018.3

------------------ 原始邮件 ------------------ 发件人: "Jiao @.>; 发送时间: 2022年1月26日(星期三) 下午5:45 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [open-sdr/openwifi] After modifying the driver, follow the "Update Driver" operation in the README file and the following problems occur? (Issue #135)

操作系统版本

— 直接回复此邮件,在 GitHub 上查看或者取消订阅. GitHub Mobile 上的分流通知IOS 系统或机器人. 你收到了这是因为你是这个线程的作者。留言 ID @.***与>

JiaoXianjun commented 2 years ago

what is the content of git_rev.h?

JiaoXianjun commented 2 years ago

what command you have run to produce that error?

maykolo commented 2 years ago

There is only one line of code in this file。 is #define GIT_REV 0x

I ran "./make_all.sh $XILINX_DIR ARCH_BIT"

------------------ 原始邮件 ------------------ 发件人: "Jiao @.>; 发送时间: 2022年1月26日(星期三) 下午5:49 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [open-sdr/openwifi] After modifying the driver, follow the "Update Driver" operation in the README file and the following problems occur? (Issue #135)

你运行了哪个命令来产生这个错误?

— 直接回复此邮件,在 GitHub 上查看或者取消订阅. GitHub Mobile 上的分流通知IOS 系统或机器人. 你收到了这是因为你是这个线程的作者。留言 ID @.***与>

JiaoXianjun commented 2 years ago

if your directory is not git repository, you need to have a fake git_rev.h. Or put some fake revision number to this line (make_all.sh):

echo "#define GIT_REV 0x"$(git log -1 --pretty=%h) > git_rev.h
maykolo commented 2 years ago

What does this mean and how to add it?

------------------ 原始邮件 ------------------ 发件人: "Jiao @.>; 发送时间: 2022年1月26日(星期三) 下午5:51 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [open-sdr/openwifi] After modifying the driver, follow the "Update Driver" operation in the README file and the following problems occur? (Issue #135)

如果你的目录不是 git 仓库,你需要有个假的 git rev . h 。或者在这一行添加一些假的版本号( make all . sh ): echo "# define GIT REV 0x "$( git log - 1 - pretty =% h )> git rev . h — 直接回复此邮件,在 GitHub 上查看或者取消订阅. GitHub Mobile 上的分流通知IOS 系统或机器人. 你收到了这是因为你是这个线程的作者。留言 ID @.***与>

JiaoXianjun commented 2 years ago

You can just remove that line, and create your own fake git_rev.sh with content:

define GIT_REV 0x00000

maykolo commented 2 years ago

Hello, according to your suggestion, I modified the "0x" inside to "0x00000" and recompiled, but it changed back to "0x"

------------------ 原始邮件 ------------------ 发件人: "Jiao @.>; 发送时间: 2022年1月26日(星期三) 下午5:56 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [open-sdr/openwifi] After modifying the driver, follow the "Update Driver" operation in the README file and the following problems occur? (Issue #135)

你可以删除这一行,创建自己的假 git _ rev . sh ,其中包含:

define GIT _ REV 0x00000

— 直接回复此邮件,在 GitHub 上查看或者取消订阅. GitHub Mobile 上的分流通知IOS 系统或机器人. 你收到了这是因为你是这个线程的作者。留言 ID @.***与>

JiaoXianjun commented 2 years ago

remove that line from your make_all.sh!

echo "#define GIT_REV 0x"$(git log -1 --pretty=%h) > git_rev.h
maykolo commented 2 years ago

Thanks, I got it done.

------------------ 原始邮件 ------------------ 发件人: "Jiao @.>; 发送时间: 2022年1月26日(星期三) 晚上6:00 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [open-sdr/openwifi] After modifying the driver, follow the "Update Driver" operation in the README file and the following problems occur? (Issue #135)

从你的 make _ all . sh 中删除这一行!

— 直接回复此邮件,在 GitHub 上查看或者取消订阅. GitHub Mobile 上的分流通知IOS 系统或机器人. 你收到了这是因为你是这个线程的作者。留言 ID @.***与>