iSCSI on a ZyXEL NAS?

Marvell Kirkwood based
User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: iSCSI on a ZyXEL NAS?

Post by MrDini » Sat Oct 22, 2016 9:12 am

No, I Can also build the stable version, that you linked without any errors. But before that, I used a beta source, which gived e some strange errors, as You Can see at my past messages...
barmalej2 wrote:You can think whatever you want, but that doesn't make you right
Nice sentence, I have to learn that! :) But in this case, not true, because I already checked my thought wit readelf and it consolidated me. See:

Code: Select all

root@NSA320S:~# readelf -a /ffp/lib/libc.so.0 | grep 'fmemopen'
root@NSA320S:~#
I have theese uClibcs installed:

uClibc-0.9.33.3_git-arm-5
uClibc-solibs-0.9.33.3_git-arm-5
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2383
Joined: Sun Apr 29, 2012 5:24 pm

Re: iSCSI on a ZyXEL NAS?

Post by barmalej2 » Sat Oct 22, 2016 10:00 am

What are you trying to convince? That the C library lacks standard functions ? :shock:
Below is the output from extracted uClibc-solibs-0.9.33.3_git-arm-5 package:
root@NSA310:~# ls -la
total 248K
drwxr-xr-x 2 root root 0 Oct 22 12:53 .
drwxr-xr-x 20 root root 0 Oct 14 22:20 ..
-rw-r--r-- 1 root root 248K May 22 19:27 uClibc-solibs-0.9.33.3_git-arm-5.txz
root@NSA310:~# md5sum uClibc-solibs-0.9.33.3_git-arm-5.txz
89a2ed05dccd7a6d49624b5e1f0a3108 uClibc-solibs-0.9.33.3_git-arm-5.txz
root@NSA310:~# tar xf uClibc-solibs-0.9.33.3_git-arm-5.txz
root@NSA310:~# readelf -a /root/ffp/lib/libc.so.0 | grep 'fmemopen'
384: 00034dac 268 FUNC GLOBAL DEFAULT 7 fmemopen
Ah surprise again -fmemopen is not hidden and available :o

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: iSCSI on a ZyXEL NAS?

Post by MrDini » Sat Oct 22, 2016 12:55 pm

I tried to install Your latest uClibc which not supports UTF-8 characters:

Code: Select all

root@NSA320S:~# readelf -a /ffp/lib/libc.so.0 | grep 'fmemopen'
   384: 00031738   268 FUNC    GLOBAL DEFAULT    7 fmemopen
And with downgrade to the UTF-8 supporting:

Code: Select all

root@NSA320S:~# readelf -a /ffp/lib/libc.so.0 | grep 'fmemopen'
root@NSA320S:~#
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2383
Joined: Sun Apr 29, 2012 5:24 pm

Re: iSCSI on a ZyXEL NAS?

Post by barmalej2 » Sat Oct 22, 2016 2:09 pm

fmemopen function is available in uClibc if not from the beginning of it, then at least from 2003y for sure. And it doesn't depends uclibc has UTF- support or not.
MrDini wrote:And with downgrade to the UTF-8 supporting:
Ok. Let's do it:
root@NSA310:~# wget http://downloads.zyxel.nas-central.org/ ... -arm-5.txz
--16:57:22-- http://downloads.zyxel.nas-central.org/ ... -arm-5.txz
=> `uClibc-0.9.33.3_git-arm-5.txz'
Resolving downloads.zyxel.nas-central.org... 140.211.169.172
Connecting to downloads.zyxel.nas-central.org[140.211.169.172]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 719,436 [application/octet-stream]

100%[=================================================================================================================================================>] 719,436 195.51K/s ETA 00:00

16:57:26 (194.99 KB/s) - `uClibc-0.9.33.3_git-arm-5.txz' saved [719436/719436]

root@NSA310:~# wget http://downloads.zyxel.nas-central.org/ ... -arm-5.txz
--16:57:31-- http://downloads.zyxel.nas-central.org/ ... -arm-5.txz
=> `uClibc-solibs-0.9.33.3_git-arm-5.txz'
Resolving downloads.zyxel.nas-central.org... 140.211.169.172
Connecting to downloads.zyxel.nas-central.org[140.211.169.172]:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 253,360 [application/octet-stream]

100%[=================================================================================================================================================>] 253,360 148.28K/s

16:57:33 (147.94 KB/s) - `uClibc-solibs-0.9.33.3_git-arm-5.txz' saved [253360/253360]

root@NSA310:~# funpkg -u uClibc-0.9.33.3_git-arm-5.txz uClibc-solibs-0.9.33.3_git-arm-5.txz
Scanning uClibc-0.9.33.3_git-arm-5.txz ...
#
# Description of uClibc:
# uClibc (aka ▒Clibc/pronounced yew-see-lib-see) is a C library for developing embedded Linux systems.
# It is much smaller than the GNU C Library, but nearly all applications supported by glibc also work
# perfectly with uClibc. uClibc is maintained by Erik Andersen and is licensed under the GNU LGPL.
# Version:0.9.33.3_git
# Homepage:http://www.uclibc.org/
#
# Depends on these packages:
# br2:uClibc-solibs mz:kernel_headers-2.6.31.8
#
# IMPORTANT NOTICE: Fully compatible only with Zyxel NSA 3** series NAS'es.
# Other devices with kernel different from 2.6.31.8 are only partly compatible.
#
Upgrading to uClibc-0.9.33.3_git-arm-5
Removing uClibc-0.9.33.3_git-arm-8,upgraded,20161022_165755
Running doinst.sh ...
IMPORTANT NOTICE: Fully compatible only with Zyxel NSA 3** series NAS'es.
Other devices with kernel different from 2.6.31.8 are only partly compatible.
Scanning uClibc-solibs-0.9.33.3_git-arm-5.txz ...
#
# Description of uClibc-solibs:
# uClibc (aka ▒Clibc/pronounced yew-see-lib-see) is a C library for developing embedded Linux systems.
# It is much smaller than the GNU C Library, but nearly all applications supported by glibc also work
# perfectly with uClibc. uClibc is maintained by Erik Andersen and is licensed under the GNU LGPL.
# Version:0.9.33.3_git
# Homepage:http://www.uclibc.org/
#
# Depends on these packages:
# br2:uClibc mz:kernel_headers-2.6.31.8
#
# IMPORTANT NOTICE: Fully compatible only with Zyxel NSA 3** series NAS'es.
# Other devices with kernel different from 2.6.31.8 are only partly compatible.
#
Upgrading to uClibc-solibs-0.9.33.3_git-arm-5
Removing uClibc-solibs-0.9.33.3_git-arm-8,upgraded,20161022_165803
Running doinst.sh ...
IMPORTANT NOTICE: Fully compatible only with Zyxel NSA 3** series NAS'es.
Other devices with kernel different from 2.6.31.8 are only partly compatible.
root@NSA310:~# readelf -a /ffp/lib/libc.so.0 | grep 'fmemopen'
384: 00034dac 268 FUNC GLOBAL DEFAULT 7 fmemopen
Surprise, surprise I have libc, which has and supports fmemopen function.

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: iSCSI on a ZyXEL NAS?

Post by MrDini » Sat Oct 22, 2016 2:24 pm

Yes, very interesting. I wanted to share for You the package, that I am used, but I already found one at my repo, I hope that is the "wrong" package without fmemopen:

http://users.atw.hu/mrdini/packages/nee ... -arm-5.txz

Many thanks for the link, I will try it.

Mod: hurray, hurray! :) I owe a particular debt of gratitude for You! ;)

Code: Select all

root@NSA320S:/tmp# readelf -a /ffp/lib/libc.so.0 | grep 'fmemopen'
   384: 00034dac   268 FUNC    GLOBAL DEFAULT    7 fmemopen
Thanks nas-central the lot of help! :)

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: iSCSI on a ZyXEL NAS?

Post by MrDini » Sat Oct 22, 2016 2:32 pm

Yahoo! The main compilation also done (open-iscsi)... I just have to correct the pathes to fit to the FFp.

Code: Select all

Compilation complete                 Output file
-----------------------------------  ----------------
Built iSCSI daemon:                  usr/iscsid
Built management application:        usr/iscsiadm
Built boot tool:                     usr/iscsistart
Built iscsiuio daemon:               iscsiuio/src/unix/iscsiuio
:D :o
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2383
Joined: Sun Apr 29, 2012 5:24 pm

Re: iSCSI on a ZyXEL NAS?

Post by barmalej2 » Sat Oct 22, 2016 2:41 pm

MrDini wrote:Yes, very interesting. I wanted to share for You the package, that I am used, but I already found one at my repo
Many thanks for the link, I will try it.
I am a bit shocked :shock: According to this your comment:viewtopic.php?f=249&t=14977&start=15#p103831 I was thinking that you already using updated versions of uClibc.

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: iSCSI on a ZyXEL NAS?

Post by MrDini » Sat Oct 22, 2016 2:47 pm

Yes, sorry. But I had to update the uClibc to a non UTF-8 build for testing. And after it I reinstalled the UTF-8 build. But for that, I have an alias called uclibc-utf8, which reinstalled the old packages. :oops:
Thanks nas-central the lot of help! :)

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: iSCSI on a ZyXEL NAS?

Post by MrDini » Fri Nov 04, 2016 9:39 pm

Okay, So I Could built the package as I already wrote earlier and now, I finished wroting configure files and editing the pathes to fit to the FFp...

But, when I try to start it, certainly it gives me an error :(:

Code: Select all

iscsid: can not bind NETLINK_ISCSI socket
I googled that, and some people think, that is a selinux error, but I don't think So and hope also, that isn't a selinux error...
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2383
Joined: Sun Apr 29, 2012 5:24 pm

Re: iSCSI on a ZyXEL NAS?

Post by barmalej2 » Fri Nov 04, 2016 11:15 pm

Do the problem persist after reboot?

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: iSCSI on a ZyXEL NAS?

Post by MrDini » Sat Nov 05, 2016 9:13 am

Good idea!

But not works in that case... :( The error msg is exactly the same. :evil:
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2383
Joined: Sun Apr 29, 2012 5:24 pm

Re: iSCSI on a ZyXEL NAS?

Post by barmalej2 » Sat Nov 05, 2016 4:14 pm

Strace?

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: iSCSI on a ZyXEL NAS?

Post by MrDini » Sat Nov 05, 2016 5:09 pm

Here is a strace output.

Ps: yes, I mistyped the strace at the paste title... :oops:
Thanks nas-central the lot of help! :)

barmalej2
Posts: 2383
Joined: Sun Apr 29, 2012 5:24 pm

Re: iSCSI on a ZyXEL NAS?

Post by barmalej2 » Sat Nov 05, 2016 5:59 pm

159.access("/etc/iscsi/", F_OK) Do this directory really exists? Can you specify path to config manually using iscsid command line args?
Has iscsid option to disable logging to syslog?

User avatar
MrDini
Posts: 651
Joined: Mon Dec 21, 2015 7:21 pm
Contact:

Re: iSCSI on a ZyXEL NAS?

Post by MrDini » Sat Nov 05, 2016 6:09 pm

Ahh, sorry, for the strace, I forgot to run with some plus options... Here is the correct output.
barmalej2 wrote:Has iscsid option to disable logging to syslog?
Unfortunately, not. But it is not necessary I think.
Thanks nas-central the lot of help! :)

Post Reply