|
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册
x
cd <quartus_install_dir>/linux
cp libsys_cpt.so libsys_cpt.so.bak
then run gdb:
gdb> file libsys_cpt.so
gdb> info function l_pubkey_verify
Note the resulting address (for Quartus 7.2 it was 0x000c617b)
quit gdb, then open libsys_cpt.so using a hex editor, then go to the address
that you got from gdb and replace the 3 bytes starting at that address with
those bytes: 31 C0 C3
Alternatively one can get the address of 'l_pubkey_verify' function using the
command:
nm libsys_cpt.so | grep l_pubkey_verify
Now regular quartus tool flow can work, except for the Design Space Explorer,
to get the Design Space Explorer working do the following:
* Note the first few bytes (8 or more) in the 'l_pubkey_verify' function of the
original libsys_cpt.so, and search for those bytes in quartus_sh (using a hex
editor). I found that the number of bytes to search for (which were 8 for
Quartus 8.0) are the minimum number of bytes which will match only once in
quartus_sh.
* Replace the first 3 bytes with those bytes: 31 C0 C3 |
|