@Carl, To get access to u-boot envs in Debian, install mtd-utils. apt-get install mtd-utils And then cat /proc/cmdline cat /proc/mtd cat /etc/fw_env.config and compare the output with ones in stock OS. Make sure they are the same (For cmdline, only mtdparts is relevant for this).by bodhi - Debian
Rob, Let me take verify on my Pogo V3.by bodhi - Debian
This is step 4 in the release thread for how to set envs to run the rootfs from USB or HDD without serial console intervention. And please note that this u-boot hack is ony for the Zyxel NAS326, it will not work for different MVEBU NAS, or any NAS :). Doing this on a different box without examining its stock u-boot source code will very likely brick it! Quote4. Enter the following commandby bodhi - Debian
buec65, Some of your NAND flash partitions were corrupted. And nandwrite will not fix them. If you don't really want to run newer kernel and u-boot, and just want to restore stock, you can find instruction at NAS Central: http://zyxel.nas-central.org/wiki/Category:NSA-325 Basically, you will need to use a USB drive to reflash stock FW. If that still does not work, then you willby bodhi - Rescue System
Thanks JT! and @Rob, can you reformat that stick? or use a different one.by bodhi - Debian
rr4m, Thanks! I've figured out a foolproof way to boot from USB (therefore also HDD) automatically without serial console input! I'll post that shortly after some more testing. That's why I want to see telnet/ssh behave so I can write the instruction to allow users without serial console to set up to boot USB. With a giant disclaimer, of course :)by bodhi - Debian
Does anyone know how to enable SSH or telnet in stock OS without using serial console?by bodhi - Debian
Hi Martin, > I think fox_exe wrote some text somewhere on his > drive on where the environment is located in > flash. So one could maybe change it from debian > with the u-boot tools. True. This is the best way. What I usually do first. So: - Get the /etc/fw_env.config from stock OS - Copy it to your rootfs /etc/ - Install mtd-utils - And reboot back into Linux - Checkby bodhi - Debian
@Carl, > hey bodhi, > Env's and I guess every promp from the uboot are > already posted from JanN (first post as well), and > of cause I can stop the boot process (with key > "1"). > > Yes, I think the uboots are very similar, but in > the wd uboot version you can't save env's as there > is no saveenv command. I see. That shouldby bodhi - Debian
@Carl, When you mentioned about the bootloader was locked down, it made me curious! could you post a serial bootlog, and the u-boot envs. Just in case I might think of someway to unlock it.This u-boot is probably the same as the one on NAS326. Update: I got the serial log in the 1st post. So I only need the envs. Can you stop it at countdown? Hit any key to stop autoboot: 0by bodhi - Debian
Rob, This panic was due to the USB drive being messed up. Shutdown the Pogo V3 completely (unplug power cord too). Take this drive to another Linux box and run e2fsck to fix whatever problem it might have. And then cold start the Pogo V3 with it.by bodhi - Debian
bobafetthotmail, > I don't really want to activate it, I want to make > sure that whatever makes it stay dead in my nsa325 > will keep it dead also in others so people can > recover their nsa325 through kwboot fine just as I > can. That's why I said I need to look at my notes to see what's the most friendlay way to reverse this :) there are a few differentby bodhi - uBoot
bobafetthotmail, > @bodhi: thanks for taking the time to help kofec > on this even if it was not an issue of your u-boot > :) No problem :) But I would suggest in the mean time this should be moved to Rescue subforum. And people can continue posting there with problem. I thought that kofec just want to build new u-boot :) I'll ask Jeff if he can create another subforumby bodhi - Rescue System
varma Wrote: ------------------------------------------------------- > Thank you very much again, bodhi > > I tought it was a common file for all the Kirkwood > platform...my mistake My pleasure! ... It does look that way because they are in the same SoC family. But each board must be built separately.by bodhi - uBoot
kofec, It will not work with modern u-boot, i.e. it only works with much older u-boot. And LEDE doesn't need to do 2nd stage boot anyway. That's why I said it is not a good approach.by bodhi - Rescue System
rr4m, Good find! another dirty hack from Zyxel :) BTW, one thing that we have not figured out is which MCU this box has, I don't recall.by bodhi - Debian
kofec Wrote: ------------------------------------------------------- > As it is writen : > > https://github.com/lede-project/source/pull/732 > > > this commit allows to make both a standalone and > a second-stage u-boot for nsa310b, but only > first-stage u-boot is added in the makefile and > available in the build system. > > The reason is that whby bodhi - Rescue System
kofec, > [ 1.955387] Kernel panic - not syncing: VFS: > Unable to mount root fs on unknown-block(0,0) You've missed the bootargs env, so the kernel does not know where the rootfs is.by bodhi - Rescue System
QuoteI start your uboot - using kwboot - the write to flash. Thanks a lot for help. Maybe you can also fix 2nd boot stage in your uboot. I am not sure what you meant by 2nd boot stage?by bodhi - Rescue System
Try usb start fatload usb 0:3 0x2000000 lede-kirkwood-nsa310b-squashfs-factory.binby bodhi - Rescue System
Is the drive Ext2/3 or FAT? ext2load usb 0:3 0x1000000 uboot.binby bodhi - Rescue System
@kofec, Please use code tags.by bodhi - Rescue System
bobafetthotmail, > I tried to make a very barebones uboot so it can > be loaded with kwboot, but.... my nsa325's > hardware watchdog seems to be dead for good. It > does not show up and I can't trigger it in any > way. I've killed it :) when you use my patches it cannot run at all. Let me look at my notes for a simple mod to reactivate it. Update: BTWby bodhi - uBoot
Antonas, > Maybe there is a possibility of such a decision? > https://wrgms.com/entering-single-user-mode-on-a-s > ynology/ Possibly. Try it.by bodhi - uBoot
varma, > 1) installing this u-boot into a LG NAS N1T1 will > I be able to boot the stock OS? No. The LG N1T1 and the Guruplug are not on the support list (see 1st post). > 2)is compatible with Globalscale GuruPlug? Possibly you can use the u-boot image for Sheevaplug to boot the Guruplug. It might work , but no guarantee.by bodhi - uBoot
I've added the installation instruction in the release thread. QuoteZyxel NAS326 Installation Updated 24 Jan 2017by bodhi - Debian
See updated instruction above.by bodhi - Debian
We can do the GPIO. However, i2cset might just be easier to set the fan speed to very low value? I have not tried to experiement with it. i2cget works so i2cset has potentials.by bodhi - Debian
rr4m, > I just unscrewed the box (another time) - it is a > buzzer indeed, and it 'click-clack's :). No wonder why nobody has made it work on the NSA325/NSA310s :)) > > Also - fan. Nas326 has 3-pin fan (GND, VCC, > Sensor). There's way to turn it off and on - you > need to change values of 2 GPIO pins (this drops > VCC line from +12V to +0.5V andby bodhi - Debian
Hi David, It will be a while until I'll release new u-boot for this. Just a simple config switch that I've somehow missed during rebasing u-boot to 2015 version! but it will need rebuild to activate preboot again. If you can't live without it, pls let me know to raise its priority on my list.by bodhi - uBoot