Getting started How-To

A nice, warm, and cozy place for all third-party developers to congregate.

Moderator: chirpa

Similar topics


Getting started How-To

Postby Skywalker » Thu Dec 13, 2007 12:38 pm

Requirements:
1) RAIDiator-4.00c1-p2 or later.
2) The APT addon. Install it using the Frontview web UI under System -> Update -> Local Update.
3) The EnableRootSSH addon. Again, install using the Frontview web UI under System -> Update -> Local Update. This will allow you to SSH in to the NAS and bring up a shell command prompt.

Now what?
After those requirements are met, you should be able to run the standard Debian command "apt-get" to download and install packages for everything you need for development, including the headers for the non-standard packages used for the ReadyNAS.
Examples:
# apt-get update
# apt-get install libc6-dev
# apt-get install gcc
# apt-get install gdb
# apt-get install libtag1-dev
# apt-get install uuid-dev

Compiling natively on the ReadyNAS is slow. How about a cross-compiler?
You can grab a tarball of a cross-compiler to compile using an x86 system from here. It includes gcc, g++, and development headers, for use on Linux-based systems. Extract the tarball from your root directory to ensure things are placed in the correct path.

WARNING!
Please note that you can get your ReadyNAS into peril easily by overriding some of the system libraries and utilities. Do not do your development on a system you don't have a backup of as you may end up re-installing the firmware or worse yet, doing a factory default.
User avatar
Skywalker
Jedi Council
 
Posts: 2763
Joined: Fri Nov 19, 2004 10:47 am
Location: Fremont, CA
ReadyNAS: NV

Postby avpman » Thu Dec 13, 2007 6:43 pm

Getting an error trying to install libc6-dev:

nas1:/# apt-get install lib6-dev
Reading Package Lists... Done
Building Dependency Tree... Done
E: The package libc6 needs to be reinstalled, but I can't find an archive for it.


Any ideas?
User avatar
avpman
Advanced ReadyNAS User
 
Posts: 161
Joined: Sat Aug 19, 2006 4:52 pm

Postby Skywalker » Thu Dec 13, 2007 6:49 pm

Are you running T38? A 5-second OS reinstall should fix it, or just a forced updated to the T38 firmware.
User avatar
Skywalker
Jedi Council
 
Posts: 2763
Joined: Fri Nov 19, 2004 10:47 am
Location: Fremont, CA
ReadyNAS: NV

Postby avpman » Thu Dec 13, 2007 6:57 pm

Skywalker wrote:Are you running T38? A 5-second OS reinstall should fix it, or just a forced updated to the T38 firmware.


I'm on RAIDiator 4.00c1-p1 [1.00a037] Can I get a link to T38?
Thanks!
User avatar
avpman
Advanced ReadyNAS User
 
Posts: 161
Joined: Sat Aug 19, 2006 4:52 pm

Postby avpman » Thu Dec 13, 2007 6:58 pm

avpman wrote:
Skywalker wrote:Are you running T38? A 5-second OS reinstall should fix it, or just a forced updated to the T38 firmware.


I'm on RAIDiator 4.00c1-p1 [1.00a037] Can I get a link to T38?
Thanks!


Duh me, I just saw it. :oops:
User avatar
avpman
Advanced ReadyNAS User
 
Posts: 161
Joined: Sat Aug 19, 2006 4:52 pm

Postby avpman » Thu Dec 13, 2007 8:06 pm

Skywalker wrote:Are you running T38? A 5-second OS reinstall should fix it, or just a forced updated to the T38 firmware.


Ok, completed the libc6 install. Then tried gcb and got:

nas1:~# apt-get install gcb
Reading Package Lists... Done
Building Dependency Tree... Done
E: Couldn't find package gcb
User avatar
avpman
Advanced ReadyNAS User
 
Posts: 161
Joined: Sat Aug 19, 2006 4:52 pm

Postby Skywalker » Thu Dec 13, 2007 8:11 pm

avpman wrote:Ok, completed the libc6 install. Then tried gcb and got:

The only thing I could find for gcb is for ham radio. Is that what you're looking for??
User avatar
Skywalker
Jedi Council
 
Posts: 2763
Joined: Fri Nov 19, 2004 10:47 am
Location: Fremont, CA
ReadyNAS: NV

Postby avpman » Thu Dec 13, 2007 8:24 pm

Skywalker wrote:
avpman wrote:Ok, completed the libc6 install. Then tried gcb and got:

The only thing I could find for gcb is for ham radio. Is that what you're looking for??


Sorry, I hit a typo. Corrected it to install gcc and at the end of the install, got:

Setting up cpp-3.3 (3.3.5-13) ...
Setting up cpp (3.3.5-3) ...
Setting up gcc-3.3 (3.3.5-13) ...
Setting up gcc (3.3.5-3) ...
dpkg (subprocess): unable to execute post-installation script: Accessing a corrupted shared library
dpkg: error processing gcc (--configure):
subprocess post-installation script returned error exit status 2
Errors were encountered while processing:
gcc
E: Sub-process /usr/bin/dpkg returned an error code (1)
nas1:~#
User avatar
avpman
Advanced ReadyNAS User
 
Posts: 161
Joined: Sat Aug 19, 2006 4:52 pm

Stuck at T27

Postby svandive » Fri Dec 14, 2007 4:04 pm

I have downloaded the t38 code, but my NAS doesn't seem to want to load it. I am going through the Local file Load process just fine, but after the reboot it still shows T27 as the loaded version.

Also when I discover the device using the RAIDar, it constantly says the unit is "Booting" however I can access it via the Web just fine.

P.S. SSH is dead too

any ideas???

P.S.S. I am very excited to see what this group provides / discovers
Thanks...

Scott
svandive
ReadyNAS Newbie
 
Posts: 13
Joined: Tue Dec 11, 2007 9:42 am

Re: Stuck at T27

Postby svandive » Fri Dec 14, 2007 6:20 pm

svandive wrote:I have downloaded the t38 code, but my NAS doesn't seem to want to load it. I am going through the Local file Load process just fine, but after the reboot it still shows T27 as the loaded version.

Also when I discover the device using the RAIDar, it constantly says the unit is "Booting" however I can access it via the Web just fine.

P.S. SSH is dead too

any ideas???

P.S.S. I am very excited to see what this group provides / discovers
Thanks...

Scott



I figured it...

The issue was the unit wasn't actually rebooting when I was telling it to. Tried a Shutdown via the web and now I am in business.

Scott
svandive
ReadyNAS Newbie
 
Posts: 13
Joined: Tue Dec 11, 2007 9:42 am

*-dev won't install

Postby btaroli » Sat Dec 15, 2007 1:04 am

I'm running T38 (waiting to upgrade to T45 until a long operation finishes and I'll be able to restart without interrupting it) but have been unable to use apt-get to install any of the *-dev packages. The gcc and gdb bits installed w/o any issues.

apt-get install libc6-dev
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libc6-dev: Depends: libc6 (= 2.3.2.ds1-22sarge6) but 2.3.2.ds1-22sarge6.infrant1 is to be installed
E: Broken packages

apt-get install libtag1-dev
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
libtag1-dev: Depends: libtag1 (= 1.3.1-1) but 1.4-2bpo2.netgear1 is to be installed
E: Broken packages

apt-get install uuid-dev
Reading Package Lists... Done
Building Dependency Tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
uuid-dev: Depends: libc6-dev but it is not going to be installed or
libc-dev
Depends: libuuid1 (= 1.37-2sarge1) but 1.40.2-1.netgear1 is to be installed
E: Broken packages


I get the impression that there are same or newer versions of vendor specific packages installed, but not apparently what the dependency checks of apt-get are wanting. So before I try and force it, I figured it would be a good idea to check first. :D
User avatar
btaroli
Advanced ReadyNAS Expert
 
Posts: 562
Joined: Wed Dec 05, 2007 6:23 pm
Location: SF Bay Area, CA
ReadyNAS: NV+

Postby btaroli » Sat Dec 15, 2007 4:30 am

Tried again to install the *-dev packages after installing T45 and got the same results.
User avatar
btaroli
Advanced ReadyNAS Expert
 
Posts: 562
Joined: Wed Dec 05, 2007 6:23 pm
Location: SF Bay Area, CA
ReadyNAS: NV+

it was moving along so well

Postby wmcelhan » Sat Dec 15, 2007 7:53 pm

See ERROR near the end....

wemightbe:~/MYUPDATES# apt-get install libc6-dev
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
linux-kernel-headers
Suggested packages:
glibc-doc manpages-dev
Recommended packages:
gcc c-compiler
The following NEW packages will be installed:
libc6-dev linux-kernel-headers
0 upgraded, 2 newly installed, 0 to remove and 78 not upgraded.
Need to get 4705kB of archives.
After unpacking 20.5MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://www.infrant.com readynas/ linux-kernel-headers 2.6.17.8ReadyNAS.netgear1 [1863kB]
Get:2 http://www.infrant.com readynas/ libc6-dev 2.3.2.ds1-22sarge6.infrant1 [2842kB]
Fetched 4705kB in 7s (629kB/s)
Selecting previously deselected package linux-kernel-headers.
(Reading database ... 9636 files and directories currently installed.)
Unpacking linux-kernel-headers (from .../linux-kernel-headers_2.6.17.8ReadyNAS.netgear1_sparc.deb) ...
Selecting previously deselected package libc6-dev.
Unpacking libc6-dev (from .../libc6-dev_2.3.2.ds1-22sarge6.infrant1_sparc.deb) ...
Setting up linux-kernel-headers (2.6.17.8ReadyNAS.netgear1) ...
Setting up libc6-dev (2.3.2.ds1-22sarge6.infrant1) ...
wemightbe:~/MYUPDATES# apt-get install gcc
Reading Package Lists... Done
Building Dependency Tree... Done
The following extra packages will be installed:
binutils cpp cpp-3.3 gcc-3.3 gcc-3.3-base
Suggested packages:
binutils-doc cpp-doc make manpages-dev autoconf automake libtool flex bison gdb gcc-doc gcc-3.3-doc
The following NEW packages will be installed:
binutils cpp cpp-3.3 gcc gcc-3.3 gcc-3.3-base
0 upgraded, 6 newly installed, 0 to remove and 78 not upgraded.
Need to get 5307kB of archives.
After unpacking 14.1MB of additional disk space will be used.
Do you want to continue? [Y/n] Y
Get:1 http://http.us.debian.org oldstable/main gcc-3.3-base 1:3.3.5-13 [149kB]
Get:2 http://http.us.debian.org oldstable/main binutils 2.15-6 [2193kB]
Get:3 http://http.us.debian.org oldstable/main cpp-3.3 1:3.3.5-13 [1333kB]
Get:4 http://http.us.debian.org oldstable/main cpp 4:3.3.5-3 [29.6kB]
Get:5 http://http.us.debian.org oldstable/main gcc-3.3 1:3.3.5-13 [1592kB]
Get:6 http://http.us.debian.org oldstable/main gcc 4:3.3.5-3 [10.8kB]
Fetched 5307kB in 7s (698kB/s)
Selecting previously deselected package gcc-3.3-base.
(Reading database ... 11537 files and directories currently installed.)
Unpacking gcc-3.3-base (from .../gcc-3.3-base_1%3a3.3.5-13_sparc.deb) ...
Selecting previously deselected package binutils.
Unpacking binutils (from .../binutils_2.15-6_sparc.deb) ...
Selecting previously deselected package cpp-3.3.
Unpacking cpp-3.3 (from .../cpp-3.3_1%3a3.3.5-13_sparc.deb) ...
Selecting previously deselected package cpp.
Unpacking cpp (from .../cpp_4%3a3.3.5-3_sparc.deb) ...
Selecting previously deselected package gcc-3.3.
Unpacking gcc-3.3 (from .../gcc-3.3_1%3a3.3.5-13_sparc.deb) ...
Selecting previously deselected package gcc.
Unpacking gcc (from .../gcc_4%3a3.3.5-3_sparc.deb) ...
Setting up gcc-3.3-base (3.3.5-13) ...
Setting up binutils (2.15-6) ...

Setting up cpp-3.3 (3.3.5-13) ...
Setting up cpp (3.3.5-3) ...
Setting up gcc-3.3 (3.3.5-13) ...
Setting up gcc (3.3.5-3) ...
dpkg: error processing gcc (--configure):
subprocess post-installation script killed by signal (Illegal instruction)
Errors were encountered while processing:
gcc
E: Sub-process /usr/bin/dpkg returned an error code (1)
wemightbe:~/MYUPDATES# pwd
/root/MYUPDATES
wemightbe:~/MYUPDATES# apt-get install gcc
Illegal instruction
wemightbe:~/MYUPDATES# apt-get install gcc
Illegal instruction
wemightbe:~/MYUPDATES# apt-get install reinstall gcc
Illegal instruction
wemightbe:~/MYUPDATES# apt-get update
Illegal instructionwemightbe:~/MYUPDATES#
wmcelhan
Advanced ReadyNAS User
 
Posts: 118
Joined: Sat Jul 07, 2007 5:28 pm

Illegal instruction problem

Postby osakana » Sat Dec 15, 2007 9:10 pm

I occurred same "Illegal instruction" problem.

Code: Select all
Selecting previously deselected package cpp.
Unpacking cpp (from .../cpp_4%3a3.3.5-3_sparc.deb) ...
Selecting previously deselected package gcc-3.3.
Unpacking gcc-3.3 (from .../gcc-3.3_1%3a3.3.5-13_sparc.deb) ...
Selecting previously deselected package gcc.
Unpacking gcc (from .../gcc_4%3a3.3.5-3_sparc.deb) ...
Removing old gcc doc directory.
Setting up gcc-3.3-base (3.3.5-13) ...
Setting up binutils (2.15-6) ...

Setting up cpp-3.3 (3.3.5-13) ...
Setting up cpp (3.3.5-3) ...
Setting up gcc-3.3 (3.3.5-13) ...
Setting up gcc (3.3.5-3) ...
dpkg: error processing gcc (--configure):
subprocess post-installation script killed by signal (Illegal instruction)
Errors were encountered while processing:
gcc
E: Sub-process /usr/bin/dpkg returned an error code (1)
readynas:~# ls
Illegal instruction
readynas:~#


I tried following firmware.

* RAIDiator-4.00b5-p1-T1
* RAIDiator-4.00b9-p1-T1
* RAIDiator-4.00c1-p1
* RAIDiator-4.00c1-p2-T38
* RAIDiator-4.00c1-p2-T45

But all failed.
User avatar
osakana
ReadyNAS User
 
Posts: 50
Joined: Wed Nov 30, 2005 7:15 pm
Location: Japan
ReadyNAS: 600

Postby wmcelhan » Sat Dec 15, 2007 9:18 pm

Same after updating to T45 and trying again.
wmcelhan
Advanced ReadyNAS User
 
Posts: 118
Joined: Sat Jul 07, 2007 5:28 pm

Next

Return to ReadyNAS Developers Network

Similar topics


Who is online

Users browsing this forum: No registered users and 1 guest