|
From: | Reer, Carolyn (SA-1) |
Subject: | RE: [Ltib] Linux iSCSI over Ethernet |
Date: | Fri, 27 Aug 2010 15:53:02 -0400 |
Just wanted to update everyone
on this problem. I could not build the STGT TGTD
iSCSI Target daemon to run on the Freescale MPC8536DS. Whenever the administrator tool ‘tgtadm’
sent a command to the target, ‘tgtd’ would crash. Everything worked fine on the
Fedora 12 running on a Pentium laptop. I isolated the problem to the 2.6.28.1
‘strtok’ function. TGTD calls tgt_device_create(tid,
TYPE_RAID, 0, NULL, 0); //NULL Pointer Which in turn calls ‘strtok’
with a NULL pointer. Linux 2.6.31.5-127.fc12.i686 can
handle a NULL pointer being passed to ‘strtok’ but 2.6.28.1 ppc
GNU/Linux crashes. The solution was simply to wrap
the ‘strtok’ while loop in: if(Pointer) { } The TGTD code was
downloaded from here: http://stgt.sourceforge.net/ Carolyn Reer From: address@hidden
[mailto:address@hidden On Behalf Of Reer,
Carolyn (SA-1) Has anyone ever run an iSCSI target on a Freescale MPC8536? I have 2.6.38.1 kernel GNU/Linux running on MPC8536DS Power
PC. I downloaded STGT_iSCSI_Target from http://stgt.sourceforge.net/ and built
for MPC8536 via make ISCSI=1. TGTD runs on the target PPC but crashes when I send commands
from tgtadm. ‘./tgtd –iscsi portal=192.168.1.100:3260’
causes 2 tgtd PIDs (2261 & 262) to be created. I can do a ‘./usr/tgtadm --lld iscsi --mode target
--op show’; PIDs and netstat show tgtd PIDs there and listening. But once I try 'new' command, The original listening PID
2261 is gone and PID 2262 is now listening "./usr/tgtadm --lld iscsi --mode target --op new
--tid=1 --targetname iqn.2009-02.com.example:for.all" tgtadm: tgtd closed the socket I rebuilt for the x86 Fedora 12 laptop and tgtd & tgtadm
run & interact OK. Original PIDs are there. In addition I created a LVM on the host and the host/rootfs
via ‘dd if=/dev/zero of=/tmp/iscsi-disk1 bs=1M
count=256’ I was able to create the LUN on the Fedora. But can’t
do anything on the PPC. Thanks for any help. Carolyn Reer |
[Prev in Thread] | Current Thread | [Next in Thread] |