NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
Skywalker
Dec 13, 2007NETGEAR Expert
Getting started How-To
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.
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.
129 Replies
Replies have been turned off for this discussion
- SkywalkerNETGEAR Expert
deb http://www.infrant.com/packages readynas/
deb http://http.us.debian.org/debian oldstable main contrib non-free
deb http://non-us.debian.org/debian-non-US oldstable/non-US main contrib non-free
deb http://security.debian.org oldstable/updates main contrib non-free
deb-src http://http.us.debian.org/debian oldstable main contrib non-free
deb-src http://non-us.debian.org/debian-non-US oldstable/non-US main contrib non-free - wmcelhan1AspirantTHANKS.
I did need to remove /lib/libc-2.3.6.so and a few others. Then I needed to do something concerning the sym links created for backwards compatiblity naming point old lib to new version names.
I ended up:
Restoring the Flash (so that I could)
rm -f /lib/* (remove EVERYTHING from /lib )
Then Restored the Flash again. ( to start fresh like the day lib was born )
THEN EVERYTHING was merry (as in Christmas).
Thanks for the wise council.
I LIKE ALL THE NEW Emoticons, although I'm not sure what was the best one for you.
Now I have an idea :idea: of what to do the next time I miss things up by loading to much.
W - osakanaAspirantI tried following procedure.
And I success to setup compiler environment.
Thanks,wmcelhan wrote: Restoring the Flash (so that I could)
rm -f /lib/* (remove EVERYTHING from /lib )
Then Restored the Flash again. ( to start fresh like the day lib was born ) - awAspirant
Skywalker wrote: deb http://www.infrant.com/packages readynas/
No deb-src for the GPL'd infrant packages? These would be very useful to have.Skywalker wrote: deb http://http.us.debian.org/debian oldstable main contrib non-free
deb http://non-us.debian.org/debian-non-US oldstable/non-US main contrib non-free
deb http://security.debian.org oldstable/updates main contrib non-free
deb-src http://http.us.debian.org/debian oldstable main contrib non-free
deb-src http://non-us.debian.org/debian-non-US oldstable/non-US main contrib non-free
Why "oldstable" instead of "sarge"? I think oldstable is a moving target. Once lenny becomes stable, etch will become oldstable and the potential to break the system with newer libraries would seem to increase. - btaroliProdigy
Skywalker wrote: Yes, thanks btaroli. And for those seeing illegal instructions, you must have installed a debian glibc package. DO NOT DO THIS! If you are seeing illegal instructions, you need to do a 5-second firmware reinstall, and then delete any newer glibc libraries (eg. "# rm -f /lib/libc-2.3.6.so"). If you do not do this, each time ldconfig is run, the illegal instructions will come back!
I thought I'd put a reference into this thread of a posting I made to the Installing PHP thread, as I referred the previous poster here when APT-related questions came up in a different forum. The posting relates to entries I added to /etc/apt/preferences to prevent it from updating or otherwise mucking around with libc6.
Perhaps it is time for an FAQ topic on APT in the Wiki? :D - eddy11AspirantTrying to install a TFTP server - got a whole load of:
W: Couldn't stat source package list http://security.debian.org oldstable/updates/non-free Packages (/var/lib/apt/lists/security.debian.org_dists_oldstable_updates_non-free_binary-sparc_Packages) - stat (2 No such file or directory)
W: You may want to run apt-get update to correct these problems - SkywalkerNETGEAR Expert
btaroli wrote: I thought I'd put a reference into this thread of a posting I made to the Installing PHP thread, as I referred the previous poster here when APT-related questions came up in a different forum. The posting relates to entries I added to /etc/apt/preferences to prevent it from updating or otherwise mucking around with libc6.
Perhaps it is time for an FAQ topic on APT in the Wiki? :D
Actually, if you download the APT addon now, it automatically populates /etc/apt/preferences to pin libc6 down. :) - btaroliProdigy
Skywalker wrote: btaroli wrote: I thought I'd put a reference into this thread of a posting I made to the Installing PHP thread, as I referred the previous poster here when APT-related questions came up in a different forum. The posting relates to entries I added to /etc/apt/preferences to prevent it from updating or otherwise mucking around with libc6.
Perhaps it is time for an FAQ topic on APT in the Wiki? :D
Actually, if you download the APT addon now, it automatically populates /etc/apt/preferences to pin libc6 down. :)
Feature! Thanks :D - tryrabbitAspirantHi,
I'm trying to post some legit notes about compiling with SVN, but the system won't let me due to overly restrictive spam checks on URLs.
How incredibly annoying. I understand your reluctance to not have spam, but what are those checks!?!?! I hope its not just: 'does it have a slash', and that its something more intuitive than that.
--
john clayton - yooden1AspirantI just did the 'apt-get update' on my NV+, and nearly out of reflex followed up with a 'apt-get upgrade'. I chickened out when it wanted to mess with /etc/passwd in a major way and Ctrl-c'ed it.
I assume now that you should not upgrade a ReadyNAS.
Now, since the box is brand new I have the option to factory default it. Should I do this to be on the safe side or would a 'dpkg --configure -a --force-confold' get me a stable system? Is there a simpler way to get back to safety?
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!