Hi
I am tring to port open-iscsi on uClinux

I am using uclinux 2.6.19 version


Discovery command working fiem


I am using altera stratix II GX Board..

I am able to discover the targets...

But When I am trying to login It is giving mssages ..below

> iscsiadm -m node -T iqn.2002-10.edu.unh.iol.iscsi.draft20-target:1 -p 192.168.1.42:3260 -l
Logging in to [iface: default, target: iqn.2002-10.edu.unh.iol.iscsi.draft20-target:1, portal: 192.168.1.42,3260]
iscsid: poll result 1
iscsid: in read_transports
iscsid: Adding new transport tcp
iscsid: sysfs_attr_get_value: open '/class/iscsi_transport/tcp'/'handle'
iscsid: sysfs_attr_get_value: new uncached attribute '/sys/class/iscsi_transport/tcp/handle'
iscsid: sysfs_attr_get_value: add to cache '/sys/class/iscsi_transport/tcp/handle'
iscsid: sysfs_attr_get_value: cache '/sys/class/iscsi_transport/tcp/handle' with attribute value '36392176'
iscsid: sysfs_attr_get_value: open '/class/iscsi_transport/tcp'/'caps'
iscsid: sysfs_attr_get_value: new uncached attribute '/sys/class/iscsi_transport/tcp/caps'
iscsid: sysfs_attr_get_value: add to cache '/sys/class/iscsi_transport/tcp/caps'
iscsid: sysfs_attr_get_value: cache '/sys/class/iscsi_transport/tcp/caps' with attribute value '0x39'
iscsid: Matched transport tcp
iscsid: Allocted session 0x2340004
iscsid: no authentication configured...
iscsid: resolved 192.168.1.42 to 192.168.1.42
iscsid: get conn context 0x22b8004
iscsid: set TCP recv window size to 524288, actually got 206848
iscsid: set TCP send window size to 524288, actually got 206848
iscsid: connecting to 192.168.1.42:3260
iscsid: sched conn context 0x22b8004 event 2, tmo 0
iscsid: thread 0x22b8004 schedule: delay 0 state 3
iscsid: Setting login timer 0x23453bc timeout 15
iscsid: thread 0x23453bc schedule: delay 60 state 3
iscsid: exec thread scsi0 : iSCSI Initiator over TCP/IP
022b8004 callback
iscsid: put conn context 0x22b8004
iscsid: connected local port 3946 to 192.168.1.42:3260
iscsid: in kcreate_session
iscsid: in __kipc_call
iscsid: in kwritev
iscsid:
iscsid: in nlpayload_read
iscsid:
iscsid:
iscsid: in nlpayload_read
iscsid:
iscsid: created new iSCSI session sid 0 host no 0
iscsid: in kcreate_conn
iscsid: in __kipc_call
iscsid: in kwritev
iscsid:
iscsid: in nlpayload_read
iscsid:
iscsid:
iscsid: in nlpayload_read
iscsid:
iscsid: created new iSCSI connection 0:0
iscsid: in kbind_conn
iscsid: in __kipc_call
iscsid: in kwritev
iscsid:
iscsid: in nlpayload_read
iscsid:
iscsid:
iscsid: in nlpayload_read
iscsid:
iscsid: bound iSCSI connection 0:0 to session 0
iscsid: sysfs_attr_get_value: open '/class/iscsi_connection/connection0:0'/'exp_statsn'
iscsid: sysfs_attr_get_value: new uncached attribute '/sys/class/iscsi_connection/connection0:0/exp_statsn'
iscsid: sysfs_attr_get_value: add to cache '/sys/class/iscsi_connection/connection0:0/exp_statsn'
iscsid: sysfs_attr_get_value: cache '/sys/class/iscsi_connection/connection0:0/exp_statsn' with attribute value '0'
iscsid: sending login PDU with current stage 1, next stage 3, transit 0x80, isid 0x00023d000000 exp_statsn 0
iscsid: > InitiatorName=iqn.2005-03.org.open-iscsi:aaae1f5c2a1a
iscsid: > TargetName=iqn.2002-10.edu.unh.iol.iscsi.draft20-target:1
iscsid: > SessionType=Normal
iscsid: > HeaderDigest=None
iscsid: > DataDigest=None
iscsid: > DefaultTime2Wait=2
iscsid: > DefaultTime2Retain=0
iscsid: > IFMarker=No
iscsid: > OFMarker=No
iscsid: > ErrorRecoveryLevel=0
iscsid: > InitialR2T=No
iscsid: > ImmediateData=Yes
iscsid: > MaxBurstLength=16776192
iscsid: > FirstBurstLength=262144
iscsid: > MaxOutstandingR2T=1
iscsid: > MaxConnections=1
iscsid: > DataPDUInOrder=Yes
iscsid: > DataSequenceInOrder=Yes
iscsid: > MaxRecvDataSegmentLength=131072
iscsid: in ksend_pdu_begin
iscsid: send PDU began for hdr 48 bytes and data 444 bytes
iscsid: in kwritev
iscsid: wrote 48 bytes of PDU header
iscsid: in kwritev
iscsid: wrote 444 bytes of PDU data
iscsid: in ksend_pdu_end
iscsid: in __kipc_call
iscsid: in kwritev
iscsid:
iscsid: in nlpayload_read
iscsid:
iscsid:
iscsid: in nlpayload_read
iscsid:
iscsid: send PDU finished for conn 0:0
iscsid: thread removed

iscsid: thread 023453bc wait some more
iscsid: thread 023453bc wait some more
iscsid: thread 023453bc wait some more
iscsid: thread 023453bc wait some more
iscsid: thread 023453bc wait some more
iscsid: thread 023453bc wait some more
iscsid: thread 023453bc wait some more
iscsid: thread 023453bc wait some more
iscsid: thread 023453bc wait some more
iscsid: thread 023453bc wait some more
iscsid: thread 023453bc wait some more
iscsid: thread 023453bc wait some more
iscsid: thread 023453bc wait some more
iscsid: thread 023453bc wait some more
iscsid: thread 023453bc wait some more
iscsid: thread 023453bc wait some more
iscsid: thread 023453bc wait some more
iscsid: thread 023453bc wait some more
iscsid: thread 023453bc wait some more
iscsid: thread 023453bc wait some more
iscsid: thread 023453bc was scheduled at 121:60, curtime 182 q_forw 0x23391a8 &pend_list 0x23391a8
iscsid: thread 023453bc now in actor_list
iscsid: exec thread 023453bc callback
iscsid: iscsi_login_eh
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: thread ffffffff delete: state -1
iscsid: put conn context 0xffffffff
iscsid: Ignoring login error 9 in conn state -1.

iscsid: thread removed


And hangs the Board

But the same application is working on Fedora Linux Desktop working fine..

Please help how to debug

thanks

jagan