General NAS-Central Forums

Welcome to the NAS community
It is currently Tue Oct 24, 2017 4:25 am

All times are UTC




Post new topic Reply to topic  [ 69 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next
Author Message
PostPosted: Sat Nov 05, 2016 6:53 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2303
Give me link to your package and config file you have used. I will try to experiment.


Top
 Profile  
 
PostPosted: Sat Nov 05, 2016 7:51 pm 
Offline
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 597
I sent theese files via a pm.

Is it a kernel problem again?

Thanks again! :)

_________________
Thanks nas-central the lot of help! :)


Top
 Profile  
 
PostPosted: Sat Nov 05, 2016 10:08 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2303
Don't know for now. Will see tomorrow.


Top
 Profile  
 
PostPosted: Sat Nov 05, 2016 10:26 pm 
Offline
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 597
Okay, good night! :)

_________________
Thanks nas-central the lot of help! :)


Top
 Profile  
 
PostPosted: Sun Nov 06, 2016 10:51 am 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2303
According to https://wiki.gentoo.org/wiki/ISCSI/Initiator, you need to load iscsi_tcp module before starting iscsid.


Top
 Profile  
 
PostPosted: Sun Nov 06, 2016 12:53 pm 
Offline
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 597
This option doesn't exist in the NSA320S's GPL source:

CONFIG_ISCSI_TCP

But, as I read at this wiki, the open-iscsi is only for initiators and I want to create a target server. So I have to compile the tgt I think...

_________________
Thanks nas-central the lot of help! :)


Last edited by MrDini on Sun Nov 06, 2016 8:25 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sun Nov 06, 2016 3:03 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2303
MrDini wrote:
This option doesn't exist in the NSA320S's GPL source:CONFIG_ISCSI_TCP

Of course it doesn't exists in config, because the parent option is not set. You need to enable with command:
Code:
make menuconfig


Top
 Profile  
 
PostPosted: Sun Nov 06, 2016 4:05 pm 
Offline
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 597
And there is no way, to configure the iscsi server without kernel replacing... :( This is a bit strange, because I am not at home.. So I will freeze this project and resume, when I cane home and have some time.

_________________
Thanks nas-central the lot of help! :)


Last edited by MrDini on Sun Nov 06, 2016 8:23 pm, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sun Nov 06, 2016 5:46 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2303
MrDini wrote:
And there is no way, to configure the iscsi server without kernel replaceing... :( .

I have no clue, about what you are talking now.
As I said, to run iscsid, all you need is to build scsi drivers and load iscsi_tcp.ko module first. Proof of concept:
Code:
modprobe iscsi_tcp

Code:
lsmod
Code:
Module                  Size  Used by
iscsi_tcp              12936  0
libiscsi_tcp           16668  1 iscsi_tcp
libiscsi               38812  2 libiscsi_tcp,iscsi_tcp
scsi_transport_iscsi    34960  2 libiscsi,iscsi_tcp

Code:
iscsid -c /ffp/etc/iscsi/iscsid.conf -i /ffp/etc/iscsi/initiatorname.iscsi -f -d 99
Quote:
iscsid: sysfs_init: sysfs_path='/sys'
iscsid: in ctldev_open
iscsid: created NETLINK_ISCSI socket...
iscsid: InitiatorName=iqn.2005-03.org.open-iscsi:936f7ffca7af
iscsid: InitiatorName=iqn.2005-03.org.open-iscsi:936f7ffca7af
iscsid: InitiatorAlias=NSA310
iscsid: Max file limits 1024 1024
iscsid: current time 375188
iscsid: nothing on pend_list, deactivating alarm
iscsid: reaped pid 22481, reap_count now 0
iscsid: current time 375189
iscsid: nothing on pend_list, deactivating alarm
^Ciscsid: pid 22480 caught signal 2
iscsid: pid 22480 caught signal 15
iscsid: iscsid shutting down.

BTW. It seems you left adaptation to /ffp prefix to the end of the worklist.


Top
 Profile  
 
PostPosted: Sun Nov 06, 2016 8:30 pm 
Offline
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 597
If the iscsi is disabled on kernel side, if I build the module manually, it will work in this case?

2. That's okay, but I haven't got the module itself... How did You compiled theese modules? Are You used a kernel embedded modules, or compiled the linux-iscsi with the kernel source?

3. Yes, I Cannot edit the pathes to ffp at the binaries, because it just have a makefile and a lot of wrong pathes. :x

BTW: I corrected my previous posts, because theese contained a lot of mistypeing... :roll:

Off: why I Cannot remove the uvcvideo driver using rmmod -f uvcvideo if the camera detached and nothing uses the module?

_________________
Thanks nas-central the lot of help! :)


Top
 Profile  
 
PostPosted: Sun Nov 06, 2016 8:55 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2303
1. Don't know for sure. Should work I think.
Code:
KERNEL Enabling the iSCSI driver: CONFIG_INET=y, CONFIG_BLK_DEV_SD=y, CONFIG_SCSI_LOWLEVEL=y, CONFIG_ISCSI_TCP=M and CONFIG_SCSI_ISCSI_ATTRS=M
[*] Networking support  --->
   Networking options  --->
      [M] TCP/IP networking

Device Drivers  --->
  SCSI device support  --->
     <*> SCSI disk support
     [*] SCSI low-level drivers  --->
       <M> iSCSI Initiator over TCP/IP
         SCSI Transports --->
       {M} iSCSI Transport Attributes

In mine case, everything was enabled except iSCSI Initiator over TCP/IP and iSCSI Transport Attributes. Enabling iSCSI Initiator over TCP/IP build as module automatically enabled iSCSI Transport Attributes.

2. I used NSA310 Zyxel GPL source.

3. Buggy uvcvideo driver. Try:
Code:
modprobe -rf
but I doubt if that will help.


Top
 Profile  
 
PostPosted: Sun Nov 06, 2016 9:02 pm 
Offline
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 597
As far, as I remeber, in my config, the whole scsi disabled by default... :x

_________________
Thanks nas-central the lot of help! :)


Top
 Profile  
 
PostPosted: Sun Nov 06, 2016 9:18 pm 
Offline

Joined: Sun Apr 29, 2012 5:24 pm
Posts: 2303
So what? Enable as in diagram above and build modules. If you want to quick test, I have uploaded scsi-modules-2.6.31.8-arm-1.txz to slacker repo.


Top
 Profile  
 
PostPosted: Sun Nov 06, 2016 9:41 pm 
Offline
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 597
Okay, will try it, but as I said, I am not at home and my VPN connection is So slow for compiling. And the kernel not compiles directly on my nas, only on my ubuntu desktops Can build it...

BTW: Your package with the modules works really cool! :) Wow, how Can i thank it for You?

There is just one headache remained, and this is the path correction of the whole open-iscsi, but I also wrote this thing to my to-do list, So I will do sg with the source tomorrow!

_________________
Thanks nas-central the lot of help! :)


Top
 Profile  
 
PostPosted: Sun Nov 06, 2016 9:46 pm 
Offline
User avatar

Joined: Mon Dec 21, 2015 7:21 pm
Posts: 597
And just for interest:

Code:
root@NSA320S:~# rmmod -f iscsi_tcp
rmmod: ERROR: could not remove module iscsi_tcp: Device or resource busy
root@NSA320S:~# modprobe -r iscsi_tcp
root@NSA320S:~# lsmod
Module                  Size  Used by
iscsi_tcp              12936  0
libiscsi_tcp           16668  1 iscsi_tcp
libiscsi               38812  2 libiscsi_tcp,iscsi_tcp
scsi_transport_iscsi    34960  2 libiscsi,iscsi_tcp
snd_usb_audio          62920  0
snd_hwdep               6860  1 snd_usb_audio
snd_usb_lib            15844  1 snd_usb_audio
snd_rawmidi            18816  1 snd_usb_lib
snd_seq_device          5824  1 snd_rawmidi
snd_pcm                62448  1 snd_usb_audio
snd_page_alloc          7040  1 snd_pcm
snd_timer              18436  1 snd_pcm
snd                    42160  6 snd_timer,snd_pcm,snd_seq_device,snd_rawmidi,snd_hwdep,snd_usb_audio
soundcore               5052  1 snd
bsd_comp                5916  0
pppoe                  11604  0
pppox                   2812  1 pppoe
ppp_deflate             5112  0
ppp_async               8908  0
ppp_synctty             7452  0
ecb                     2868  0
ppp_mppe                6904  0
ppp_generic            24148  7 ppp_mppe,ppp_synctty,ppp_async,ppp_deflate,pppox,pppoe,bsd_comp
slhc                    5656  1 ppp_generic
tntfs                 394012  0
ntfs                   97812  0


But the iscsid didn't started, and I have Your latest kmod package installed.

_________________
Thanks nas-central the lot of help! :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 69 posts ]  Go to page Previous  1, 2, 3, 4, 5  Next

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 71 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group