Where do I find the source for NAS 542 firmware

I would like to learn how to residently map physical directories (or paths) from the local disk-0 (i-data) into the virtual ram-disk to keep changes and addons after a reboot.

I have fundamental problems to install Entware-ng package because knowledge to understand the boot strategy or procedure and where to put executable scripts and why ........

I did not find the source code to have a look how the did it.

In a post from Mijzelf from September 2019   he wrote

how to change webserver settings for NAS 540

It is possible to put files in /usr/local/apache/htdocs/desktop,/ , but it's not intended, and so a bit cumbersome.
I know 3 ways.
1) Download the firmware sources, modify them and build your own firmware
and so on - ok- where do I fond the sourcecode ?

a list or plan of the boot-procedure would be nice too.

I am familiar with opensuse since 25 years. but Zyxel is different.

Accepted Solution

  • Mijzelf
    Mijzelf Posts: 2,598  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    Answer ✓
    Here is the sourcecode. Unfortunately a bit out of date.

    It's not quite clear what you want to achieve.

All Replies

  • Mijzelf
    Mijzelf Posts: 2,598  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    Answer ✓
    Here is the sourcecode. Unfortunately a bit out of date.

    It's not quite clear what you want to achieve.
  • dernachtwerker
    dernachtwerker Posts: 11
    edited January 2022
    Thank you. If you may have a look onto my "software help for dummies and experts" pages, you will find a lot of pages regarding NAS stations and their background and more. These pages are well visited from people, asking simple questions - for example: How does a NAS work - What is the difference to a real server and so on.

    And I like to add some value onto my 540/542 - I like to add an inhouse webserver with typo3 and mysql.
    Furthermore i like to understand the boot procedure of this NAS : when is the hard-disk added to the ram-disk and how do they do this.
    My tries to install the metarepository from scratch onto a fully new 540 did fail twice - so I descibe the way I id it and what is broken, to find a generic working solution.

    have a look ono
    http://software.ipw.net/die-zyxel-nas542-box.html
    http://software.ipw.net/samba-auf-zyxel-nas-540.html

    help and hints are welccome

    if you like to contact me privately - please use the contact page
    http://www.fernsehmuseum.info/feedback-form.html

    currently the sourcefile is loading - slowly but steadyly
    again thank you -
    I will report the results
    best regards
    the nightworker from Wiesbaden Germany - TV-Museum
    -
    .


  • u can take help directly from ZYXEL or find local IT Support Team

    Thank You
    Thomas Neff
  • Mijzelf
    Mijzelf Posts: 2,598  Guru Member
    First Anniversary 10 Comments Friend Collector First Answer
    I see. Well, your struggles with MetaRepository are unknown to me. Combined with a disappearing rc.unslung I wonder if your disk is faulty? Already looked in dmesg?

    When MetaRepository is started, it puts a web_prefix file in \\admin\zy-pkgs, containing 'http://localhost:9000' (from the top of my head, it could be something comparable). The NAS regularly checks for updates, and when the file does not exist, it downloads the database directly from ZyXEL, in which case it forgets about all 3th party pkgs. The web_prefix file is removed when MR stops.
    Maybe here is the problem? Did you disable MR or remove the web_prefix file after MR had done it's job?

    About mc, I think it creates a symlink in /bin/, pointing to the real binary. It was compiled for an Armv5 processor, and uses interpreter /lib/ld-linux.so.3. By default that is not available on the 5xx, as that runs an Armv7 processor, and has interpreter /lib/ld-linux-armhf.so.3.
    But MR was also compiled for Armv5 (well, it contains a busybox blob only containing inetd and nc, to do the listening). Because of that MR creates a symlink /lib/ld-linux.so.3 pointing to /lib/ld-linux-armhf.so.3. Mc also relies on that symlink, so without MR mc won't run.
    (Not completely true, RandomTools will also create that symlink, if it doesn't exist yet)

    About the startup, most of the work is done in /etc/init.d/rcS. Don't know if you can read that? The startup hook which is used by your Entware-ng install procedure depends on /etc/init.d/zypkg_controller.sh, which is called both on start and shutdown of the box.
    For the startup search for '# - start to startup packages according to ${USRPKG_DEPS_START}', and the shutdown '# - start to stop packages according to ${USRPKG_DEPS_SHUTDOWN}'.

  • I found - surprisingly and unexpected by accident - the current sources for the NAS-542 here : https://github.com/elblindo/NAS542_521ABAG7C0

  • Kreiszahl
    Kreiszahl Posts: 5
    u can take help directly from ZYXEL or find local IT Support Team

    Thank You
    Thomas Neff
    HaHaHa.... lmao. :)
  • Kreiszahl
    Kreiszahl Posts: 5
    I found - surprisingly and unexpected by accident - the current sources for the NAS-542 here : https://github.com/elblindo/NAS542_521ABAG7C0

    Gibt es in der Community zufällig eine aktuelle? Ich glaube auf Zyxel zu warten macht keinen Sinn mehr... Ich würd' mir gern die Arbeit sparen zu OMV zu wechseln.
  • dernachtwerker
    dernachtwerker Posts: 11
    edited May 2022
    Hallo Kreiszahl,
    bitte gehe ins Impressum von fernsehmuseum.info und rufe die dortige Festnetz-Nummer an, Nachmittags ist es besser.
    Ich habe die Sourcen noch und dann gibts die Links auf meine Software-Seiten
    Grüsse aus Wiesbaden
    der nachtwerker

Consumer Product Help Center