We changed the defines according the schematic because they are different from K16 design. Another thing is we don´t use the inverters in the clock line, just use the NOR gates, but it´s wroking ok.
[2013-11-04 01:21:30] Pool 0
http://stratum.btcguild.com:3333 alive
[2013-11-04 01:21:30] KLN0:0 Send cmd [S ]
[2013-11-04 01:21:30] KLN0:0 Reply status [S ] dev=0 chips=1 slaves=0 workcq=3 workid=0 temp=0 fan=0 errors=0 hashes=16163 max=0 noise=0
[2013-11-04 01:21:30] KLN0:0 Send config [C] dev=0 clock=0 temptarget=0 tempcrit=0 fan=0
[2013-11-04 01:21:30] KLN0:0 Reply config [C] dev=0 clock=128 temptarget=60 tempcrit=80 fan=255
[2013-11-04 01:21:31] KLN0:0 config (0: Clk: 128, T:17, C:25, F:99)
[2013-11-04 01:21:31] KLN0:0 Send cmd [S ]
[2013-11-04 01:21:31] KLN0:0 Reply status [S ] dev=0 chips=1 slaves=0 workcq=3 workid=0 temp=0 fan=0 errors=0 hashes=16265 max=0 noise=0
[2013-11-04 01:21:31] KLN0:0 Send enable [E] enable=1
[2013-11-04 01:21:31] KLN0:0 Reply status [E] dev=0 chips=1 slaves=0 workcq=3 workid=0 temp=0 fan=0 errors=0 hashes=16316 max=0 noise=0
[2013-11-04 01:21:31] Work update message received
[2013-11-04 01:21:31] Network diff set to 391M
[2013-11-04 01:21:31] KLN0:0 Send cmd [A]
[2013-11-04 01:21:31] New block: 000636636dbb6fd9... diff 391M
[2013-11-04 01:21:31] KLN0:0 Reply status [A] dev=0 chips=1 slaves=0 workcq=0 workid=0 temp=0 fan=0 errors=0 hashes=16316 max=0 noise=0
[2013-11-04 01:21:31] KLN0:0 Send work [W] dev=0 workid=0x00 ...
[2013-11-04 01:21:31] KLN0:0 Reply status [W] dev=0 chips=1 slaves=0 workcq=0 workid=0 temp=0 fan=0 errors=0 hashes=0 max=0 noise=0
[2013-11-04 01:21:31] KLN0:0 Send work [W] dev=0 workid=0x01 ...
[2013-11-04 01:21:31] KLN0:0 Reply status [W] dev=0 chips=1 slaves=0 workcq=1 workid=0 temp=0 fan=0 errors=0 hashes=49 max=0 noise=0
[2013-11-04 01:21:31] Popping work from get queue to get work
[2013-11-04 01:21:31] Got work from get queue to get work for thread 0
[2013-11-04 01:21:31] Selecting pool 0 for work
[2013-11-04 01:21:31] Generated stratum merkle 7618c59587bd4f535f6199068ad972819c9f8dd87ec8d48e9460ff1e4f9f661d
[2013-11-04 01:21:31] Generated stratum header 00000002d44f95c3062241d9984ce5b44dbcba426fd9a9cf36636dbb00000006000000007618c59
587bd4f535f6199068ad972819c9f8dd87ec8d48e9460ff1e4f9f661d52788106190afc85000000
000000008000000000000000000000000000000000000000000000000000000000000000
[2013-11-04 01:21:31] Work job_id 337957 nonce2 4 ntime 52788106
[2013-11-04 01:21:31] WORKDATA: 5700022d4a6e55ba38cb634cd0fc216485d7b1f2f6b7d872cfec7505a1792d7b7ace656a7767555
2788106190afc85
[2013-11-04 01:21:31] Generated target 0000000000000000000000000000000000000000000000000080ff7f00000000
[2013-11-04 01:21:31] KLN0:0 sending work (0:02)
[2013-11-04 01:21:31] Generated stratum work
[2013-11-04 01:21:31] KLN0:0 Send work [W] dev=0 workid=0x02 ...
[2013-11-04 01:21:31] Pushing work from pool 0 to hash queue
[2013-11-04 01:21:31] KLN0:0 Reply status [W] dev=0 chips=1 slaves=0 workcq=2 workid=0 temp=0 fan=0 errors=0 hashes=106 max=0 noise=0
[2013-11-04 01:21:31] Popping work from get queue to get work
[2013-11-04 01:21:31] Got work from get queue to get work for thread 0
[2013-11-04 01:21:31] Selecting pool 0 for work
[2013-11-04 01:21:31] Generated stratum merkle f9dd78e4eb7dbfc13efc05f32397d00569f481bf21e1b205f03120de62afd52e
[2013-11-04 01:21:31] Generated stratum header 00000002d44f95c3062241d9984ce5b44dbcba426fd9a9cf36636dbb0000000600000000f9dd78e
4eb7dbfc13efc05f32397d00569f481bf21e1b205f03120de62afd52e52788106190afc85000000
000000008000000000000000000000000000000000000000000000000000000000000000
[2013-11-04 01:21:31] Work job_id 337957 nonce2 5 ntime 52788106
[2013-11-04 01:21:31] Generated target 0000000000000000000000000000000000000000000000000080ff7f00000000
[2013-11-04 01:21:31] WORKDATA: 570003955bd73295580dcc55b321716ea7c54fa9ec3e9c35547e710bf165cfcdec6540683003a85
2788106190afc85
[2013-11-04 01:21:31] Generated stratum work
[2013-11-04 01:21:31] KLN0:0 sending work (0:03)
[2013-11-04 01:21:31] Pushing work from pool 0 to hash queue
[2013-11-04 01:21:31] KLN0:0 Send work [W] dev=0 workid=0x03 ...
[2013-11-04 01:21:31] KLN0:0 Reply status [W] dev=0 chips=1 slaves=0 workcq=3 workid=0 temp=0 fan=0 errors=0 hashes=159 max=0 noise=0
[2013-11-04 01:21:31] Popping work from get queue to get work
[2013-11-04 01:21:31] Selecting pool 0 for work
[2013-11-04 01:21:31] Generated stratum merkle ef6010385620b8111ba19a66a7d8e0e37d7cf1eed1f3d59f829baa52f3545483
[2013-11-04 01:21:31] Got work from get queue to get work for thread 0
[2013-11-04 01:21:31] Generated stratum header 00000002d44f95c3062241d9984ce5b44dbcba426fd9a9cf36636dbb0000000600000000ef60103
85620b8111ba19a66a7d8e0e37d7cf1eed1f3d59f829baa52f354548352788106190afc85000000
000000008000000000000000000000000000000000000000000000000000000000000000
[2013-11-04 01:21:31] Work job_id 337957 nonce2 6 ntime 52788106
[2013-11-04 01:21:31] Generated target 0000000000000000000000000000000000000000000000000080ff7f00000000
[2013-11-04 01:21:31] Generated stratum work
[2013-11-04 01:21:31] Pushing work from pool 0 to hash queue
[2013-11-04 01:21:31] KLN0: GetResults (amt=0 err=-7 ern=25)
[2013-11-04 01:21:32] [thread 0: 0 hashes, 0.0 khash/sec]
[2013-11-04 01:21:32] KLN0: GetResults (amt=0 err=-7 ern=25)
[2013-11-04 01:21:32] KLN0: GetResults (amt=0 err=-7 ern=25)
[2013-11-04 01:21:32] KLN0: GetResults (amt=0 err=-7 ern=25)
[2013-11-04 01:21:32] KLN0: GetResults (amt=0 err=-7 ern=25)
[2013-11-04 01:21:32] KLN0: GetResults (amt=0 err=-7 ern=25)
[2013-11-04 01:21:33] KLN0: GetResults (amt=0 err=-7 ern=25)
[2013-11-04 01:21:33] KLN0: getting status
[2013-11-04 01:21:33] KLN0:0 Send cmd [S ]
[2013-11-04 01:21:33] KLN0:0 Reply status [S ] dev=0 chips=1 slaves=0 workcq=3 workid=0 temp=0 fan=0 errors=0 hashes=927 max=0 noise=0