Welcome! Log In Create A New Profile

Advanced

NSA 325 V2 Debian Is Possible!

Posted by Buttzy10169 
Re: NSA 325 V2 Debian Is Possible!
March 21, 2019 07:52PM
szucsati Wrote:
-------------------------------------------------------
> First of all, big thank you for all who
> contributed to this project. It's awesome to have
> Debian running on this old hardware.
>
> I have one question (or problem) though. I have
> the latest uBoot installed, should it boot the
> factory software if no rootfs partition is found?
> I was careless and managed to use flash_erase_all
> instead of flash_erase on mtd0, and of cours
> misplaced the memory stick where I saved the
> backup. Could this be why the original Zyxel
> system is not starting?

No, you can no longer boot stock OS with my new uboot (it is too modern for stock OS in this box). Even if stock OS is still intact on NAND.

This is something I have not found free time to work on. I think it is possible, though.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA 325 V2 Debian Is Possible!
March 22, 2019 12:51AM
Oh, it's good to know, I don't know why I thought it would. Is there a way to set it up though to fall back to NAND of there's no usb or sata device with rootfs? Or at least to manually configure it to boot from there should one would like to boot stock FW?
And how badly did I mess up the system by erasing the full partition?
Re: NSA 325 V2 Debian Is Possible!
March 22, 2019 01:47AM
szucsati,

> Oh, it's good to know, I don't know why I thought
> it would. Is there a way to set it up though to
> fall back to NAND of there's no usb or sata device
> with rootfs? Or at least to manually configure it
> to boot from there should one would like to boot
> stock FW?

As I said, not possible at the moment. Typically, stock OS is on NAND. The new u-boot won't boot it. When I do get around to work on it, without USB or HDD rootfs, it will fallback to boot either stock OS, or OpenWrt in NAND (but not Debian or Arch).

> And how badly did I mess up the system by erasing
> the full partition?

Pretty bad, stock OS in NAND is gone :) so your box will only boot with USB or HDD.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: NSA 325 V2 Debian Is Possible!
March 22, 2019 04:22PM
Well, I should try to find that memory stick then :). At some point I will want to sell this, and would be useful to have the chance to get back to the official (and outdated) software.
Isn't mtd0 only the uBoot partition? If I erased that, wouldn't I still have the OS?

The reason why I wanted to try the official FW was that I just bought this NAS second hand, and I jumped straight to Debian, before testing the speeds. Now I'm getting about 70MBps read and 40MBps write (on an SSD, just for testing). Some benchmarks on the internet showed 100/80, but I also read similar results to mine. So a bit confused there, and wanted to check it myself.

Btw, what you are doing here is absolutely amazing! The software and the guides you put together are excellent, it was totally my fault that I missed a few bits, there's a lot to understand for someone new, but it's all there, just needs reading. And extre thumbs up for your patience towards those who come here with questions!
Re: NSA 325 V2 Debian Is Possible!
March 22, 2019 04:33PM
szucsati,

> Well, I should try to find that memory stick then
> :). At some point I will want to sell this, and
> would be useful to have the chance to get back to
> the official (and outdated) software.
> Isn't mtd0 only the uBoot partition? If I erased
> that, wouldn't I still have the OS?

Yes, it you've erased mtd only, then stock OS is still intact on other mtds. So you only need to restore u-boot image on mtd0 to go back to full stock.

>
> The reason why I wanted to try the official FW was
> that I just bought this NAS second hand, and I
> jumped straight to Debian, before testing the
> speeds. Now I'm getting about 70MBps read and
> 40MBps write (on an SSD, just for testing). Some
> benchmarks on the internet showed 100/80, but I
> also read similar results to mine. So a bit
> confused there, and wanted to check it myself.

Yes, that would be expected. Since stock FW was tuned and tested (often in a way that we don't want to do, i.e. kludge) to maximize the performance (how they were able to sell the box). What I provided here is a basic rootfs and full kernel. I expect users to do the tuning themselves and share the hints here to benefit all.

So if you see the IO or network performance is less than stock FW, you should post the benchmarks, and let other jump in to share theirs. At the end, if nobody figures out the tuning parameters, then I'd try to investigate.

One more thing, a lot of time, it is just how you set up your Samba, NFS, network ... that results in less performance.

-bodhi
===========================
Forum Wiki
bodhi's corner



Edited 1 time(s). Last edit at 03/22/2019 04:35PM by bodhi.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: