Quartus 8.0在Linux上的破解方法

内核编译和嵌入式产品的设计与开发
回复
fengshudi
帖子: 13
注册时间: 2008-05-22 20:15

Quartus 8.0在Linux上的破解方法

#1

帖子 fengshudi » 2009-01-25 20:30

quartus 8.0 对于Linux的支持有了很大的改善,除了sopc builder的语言小问题外,几乎没有什么其它明显的bug了。破解方法:
1, License 可以使用Windows下的License文件。
2, 找到/quartus/linux/下的libsys_cpt.so文件,使用gdb调入此文件,查找函数 l_pubkey_verify 的地址,记住它的地址,用ghex等编辑器打开此文件,抄写下从刚刚记下的地址开头的数据内容,在quartus 8.0中是 55 89 e5 53 81 ec 24 01 00 00 c7 45. 将此处字符串的前三个55 89 e5 修改为 31 c0 c3。(如何查找地址,参看附件Crack Quartus Linux.txt文件)
3, 用刚才记下的字符串为特征,查找quartus_map文件,你可以找到惟一的字符串,如法炮制,修改开头三个字节 55 89 e5为31 c0 c3。
4, 如果破解还是不行的话,继续修改quartus alterad quartus_sh文件。修改前记得备份。
5, 这样子,quartus算是比较完全的破解了,可以生成不受限制的nios核。

How to crack Quartus for linux:
===============================
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
newerABC
帖子: 60
注册时间: 2007-01-15 23:14

Re: Quartus 8.0在Linux上的破解方法

#2

帖子 newerABC » 2009-01-29 20:53

太谢谢了,我也试试!
头像
chenyehong90
帖子: 315
注册时间: 2010-10-03 17:19

Re: Quartus 8.0在Linux上的破解方法

#3

帖子 chenyehong90 » 2011-03-13 16:06

mark
回复