Closed maykolo closed 2 years ago
What is your OS version and Vivado version?
Vivado2018.3
OS version
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 @.***与>
what is the content of git_rev.h?
what command you have run to produce that error?
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 @.***与>
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
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 @.***与>
You can just remove that line, and create your own fake git_rev.sh with content:
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 ,其中包含:
— 直接回复此邮件,在 GitHub 上查看或者取消订阅. GitHub Mobile 上的分流通知IOS 系统或机器人. 你收到了这是因为你是这个线程的作者。留言 ID @.***与>
remove that line from your make_all.sh!
echo "#define GIT_REV 0x"$(git log -1 --pretty=%h) > git_rev.h
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 @.***与>
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 integer
constan’`define GIT_REV 0x`