Zyxel NSA325 Newbie question for update uBoot October 14, 2017 02:24PM |
Registered: 7 years ago Posts: 8 |
Re: Zyxel NSA325 Newbie question for update uBoot October 14, 2017 04:43PM |
Admin Registered: 14 years ago Posts: 19,306 |
Quote
A. Flashing Instruction:
Installation is the same for each u-Boot image, the instruction below is written to include all boxes. So choose the platform name that you are installing for, and copy/paste the appropriate commands.
If you are running kernel that do not provide mtd-utils and uboot-tools (fw_setenv, fw_printenv, flash_erase, nandwrite), you can download the NAND and U-Boot tools binaries here in this thread.
Quote
Updated 24 Jul 2017:
Basic Debian stretch Kirkwood rootfs for most Kirwood plugs:
.......
Download at Dropbox:
Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2
Re: Zyxel NSA325 Newbie question for update uBoot October 15, 2017 07:11AM |
Registered: 7 years ago Posts: 8 |
Re: Zyxel NSA325 Newbie question for update uBoot October 15, 2017 04:00PM |
Admin Registered: 14 years ago Posts: 19,306 |
Quote
https://forum.doozan.com/read.php?2,12096
Installation:
Installation can be done on any Linux box, with a fresh USB drive (SD card or HDD would work fine too).
Note: all steps below must be done while logging in as root user (not sudo). If you are not the root user then don't continue, because the rootfs will not work.
Quote
https://forum.doozan.com/read.php?3,12381
4. Be sure there is no bad block in the first 1M of your NAND (check dmesg). This is very important, if there is bad block in the first 1M (8 blocks), don't flash u-boot, because you will almost certainly brick your box. Please post your question here (there is a work around for it).
Example of bad block in mtd0:
dmesg | grep -i 'bad'
[ 2.413231] Scanning device for bad blocks
[ 2.417731] Bad eraseblock 3 at 0x000000060000
Re: Zyxel NSA325 Newbie question for update uBoot October 20, 2017 03:29PM |
Registered: 7 years ago Posts: 8 |
Re: Zyxel NSA325 Newbie question for update uBoot October 20, 2017 04:16PM |
Admin Registered: 14 years ago Posts: 19,306 |
Quote
8. Flashing default u-boot envs image:
As described in step 1, u-boot envs must be defined in etc/fw_env.config as
# MTD device name Device offset Env. size Flash sector size Number of sectors
/dev/mtd0 0xc0000 0x20000 0x20000
A special section (B. Flashing default u-boot envs image) about flashing default u-boot envs is included at the end of this installation procedure. Please follow the instruction in this section B to perform this step before continuing with step 9.
Quote
B. Flashing default u-boot envs image
This default envs image supports booting with multiple disk drives (and hubs) attached. The disk drives could be any type (usb, sata, sd card). The scanning logic and default envs were set to automatically boot the box with the following required configuration:
For whatever reason, if you can't set up your configuration to satisfy the following 4 requirements, then don't flash this defaut envs image. It might not boot properly. In this case, section C below can be used to tailor the envs to your specific configuration.
r1. There must be only one partition among all partitions from all drives that contains the kernel files. The 2 kernel files are /boot/uImage and /boot/uInitrd.
r2. The partition that contains the 2 kernel files must be partition 1 in a disk drive
r3. The partition that contains the rootfs must be labeled rootfs
r4. The rootfs partition is recommended to be type Ext3 (this is not a hard requirement, ext4 should boot OK, but Ext3 will ensure no problem).
So the bottom line is if you have only one rootfs in a single Ext3 partition, which is labeled as rootfs, then you're all set.
Re: Zyxel NSA325 Newbie question for update uBoot October 26, 2017 01:38PM |
Registered: 7 years ago Posts: 8 |
Error: unrecognized/unsupported machine ID (r1 = 0x0000118f). Available machine support: ID (hex) NAME ffffffff Generic DT based system ffffffff Marvell Kirkwood (Flattened Device Tree) Please check your kernel config and/or bootloader.
fw_setenv arcNumber 4495 fw_setenv mainlineLinux yes fw_setenv bootargs_stock 'console=ttyS0,115200 mtdparts=nand_mtd:0x100000(uboot),0x80000(uboot_env),0x80000(key_store),0x80000(info),0xA00000(etc),0xA00000(kernel_1),0x2FC0000(rootfs1),0xA00000(kernel_2),0x2FC0000(rootfs2) root=/dev/nfs rw init=/init' fw_setenv bootargs_linux 'console=ttyS0,115200 mtdparts=nand_mtd:0x100000(u-boot),0x400000(uImage),0x2000000(rootfs),0xDB00000(data), root=LABEL=rootfs loglevel=8' fw_setenv bootcmd_linux 'setenv bootargs $(bootargs_linux); mw.l f1010100 0020c000; usb reset; ext2load usb 0:1 $(loadaddr) /boot/uImage; ext2load usb 0:1 0x01100000 /boot/uInitrd; bootm $(loadaddr) 0x01100000' fw_setenv bootcmd_stock 'setenv bootargs $(bootargs_stock); nand read.e $(loadaddr) $(kernel_addr) 0xA00000; bootm $(loadadr)' fw_setenv to_stock "setenv mainlineLinux no; setenv bootcmd \'run bootcmd_stock\'; saveenv; reset" fw_setenv to_linux "setenv mainlineLinux yes; setenv bootcmd \'run bootcmd_linux\'; saveenv; reset" fw_setenv bootcmd 'run to_linux'
Re: Zyxel NSA325 Newbie question for update uBoot October 26, 2017 05:05PM |
Admin Registered: 14 years ago Posts: 19,306 |
Quote
Instruction
4. Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Skip this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time).
Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box (see the folder /media/sdb1/boot/dts for the exact spelling of your Kirkwood box name).
Generate the uImage with DTB embedded inside:
cd /media/sdb1/boot
cp -a zImage-4.12.1-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.12.1-kirkwood-tld-1 -d zImage.fdt uImage
sync
Re: Zyxel NSA325 Newbie question for update uBoot October 27, 2017 03:51AM |
Registered: 7 years ago Posts: 8 |
U-Boot 2016.05-tld-1 (Jun 12 2016 - 13:48:40 -0700) ZyXEL NSA325 2-Bay Power Media Server SoC: Kirkwood 88F6282_A1 DRAM: 512 MiB WARNING: Caches not enabled NAND: 128 MiB *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: egiga0 MV88E1318 PHY initialized on egiga0 Hit any key to stop autoboot: 10 ### 9 ### 8 ### 7 ### 6 ### 5 ### 4 ### 3 ### 2 ### 1 ### 0 starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 3 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found Partition Map for USB device 0 -- Partition Type: DOS Part Start Sector Num Sectors UUID Type 1 2048 62527488 57b31209-01 83 loading envs from usb 0 ... ** File not found /boot/uEnv.txt ** 3821592 bytes read in 418 ms (8.7 MiB/s) 7245696 bytes read in 519 ms (13.3 MiB/s) ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-4.12.1-kirkwood-tld-1 Created: 2017-07-20 8:11:24 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3821528 Bytes = 3.6 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: initramfs-4.12.1-kirkwood-tld-1 Created: 2017-07-24 0:18:23 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 7245632 Bytes = 6.9 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Loading Kernel Image ... OK Using machid 0x118f from environment Starting kernel ... Uncompressing Linux... done, booting the kernel. Error: unrecognized/unsupported machine ID (r1 = 0x0000118f). Available machine support: ID (hex) NAME ffffffff Generic DT based system ffffffff Marvell Kirkwood (Flattened Device Tree) Please check your kernel config and/or bootloader.
Re: Zyxel NSA325 Newbie question for update uBoot October 27, 2017 05:24PM |
Admin Registered: 14 years ago Posts: 19,306 |
> *** Warning - bad CRC, using default environment
Quote
8. Flashing default u-boot envs image:
As described in step 1, u-boot envs must be defined in etc/fw_env.config as
# MTD device name Device offset Env. size Flash sector size Number of sectors
/dev/mtd0 0xc0000 0x20000 0x20000
A special section (B. Flashing default u-boot envs image) about flashing default u-boot envs is included at the end of this installation procedure. Please follow the instruction in this section B to perform this step before continuing with step 9.
setenv dtb_file '/boot/dts/kirkwood-nsa325.dtb'
Re: Zyxel NSA325 Newbie question for update uBoot October 29, 2017 03:18PM |
Registered: 7 years ago Posts: 8 |
usb start ext2load usb 0:1 0x800000 /boot/uboot.2016.05-tld-1.environment.scr source 0x800000 printenv setenv devices 'usb ide' setenv ethaddr xx:xx:xx:xx:xx:xx (replaced with my adress) setenv dtb_file '/boot/dts/kirkwood-nsa325.dtb' boot
apt-get install mtd-utilsI downloaded the uboot.2016.05-tld-1.environment.bodhi.tar to my desktop pc an untar it with
tar -xf uboot.2016.05-tld-1.environment.bodhi.tar
scp uboot.2016.05-tld-1.environment.img root@ip-adress:/tmp
fw_printenv > current_envs.txt /usr/sbin/flash_erase /dev/mtd0 0xc0000 1 /usr/sbin/nandwrite -s 786432 /dev/mtd0 uboot.2016.05-tld-1.environment.img fw_setenv arcNumber 4495 fw_setenv machid fw_setenv mtdparts 'xxxxxxxxx' (forgotten :-() fw_setenv ethaddr 'xx:xx:xx:xx:xx:xx' (replaced with my adress) fw_setenv dtb_file '/boot/dts/kirkwood-nsa325.dtb' fw_printenv reboot
Re: Zyxel NSA325 Newbie question for update uBoot October 29, 2017 06:29PM |
Admin Registered: 14 years ago Posts: 19,306 |
Martin K.
Re: Zyxel NSA325 Newbie question for update uBoot May 06, 2019 10:06AM |
Re: Zyxel NSA325 Newbie question for update uBoot May 06, 2019 12:46PM |
Registered: 5 years ago Posts: 10 |
Re: Zyxel NSA325 Newbie question for update uBoot May 06, 2019 04:54PM |
Admin Registered: 14 years ago Posts: 19,306 |
Re: Zyxel NSA325 Newbie question for update uBoot August 01, 2019 06:13AM |
Registered: 5 years ago Posts: 20 |
Re: Zyxel NSA325 Newbie question for update uBoot August 01, 2019 01:07PM |
Admin Registered: 14 years ago Posts: 19,306 |
Re: Zyxel NSA325 Newbie question for update uBoot August 01, 2019 02:30PM |
Registered: 5 years ago Posts: 20 |
3. And install it with dpkg. Remove flash-kernel first to avoid potential problem: cd /boot apt-get remove flash-kernel dpkg -i linux-image-5.1.11-kirkwood-tld-2_2.0_armel.debStocksystem doesnt have apt nor dpkg?
~ # ls -p / bin/ etc/ init mnt/ root/ tmp/ zyxel/ dev/ home/ lib/ proc/ sbin/ usr/ e-data/ i-data/ linuxrc ram_bin/ sys/ var/ ~ #
Re: Zyxel NSA325 Newbie question for update uBoot August 02, 2019 12:18AM |
Admin Registered: 14 years ago Posts: 19,306 |
Quote
Yes, ive been reading them among others. So maybe its me who's dumb.
Quote
https://forum.doozan.com/read.php?2,12096
Linux Kernel 5.1.x Kirkwood package and rootfs for GoFlex Home/Net, Pogoplug E02/Mobile/V4, iConnect, Dockstar, Sheevaplug, NSA320, NSA320S, NSA325, NSA310S, NSA310, Topkick, Netgear Stora, ASUS-M25, Iomega ix4-200d, QiZhiTong 501mv2, HP Thin Client T5325, LG N1T1, Linksys EA4500, Lenovo/Iomega ix2-ng, Toshiba Canvio Home NAS, Lenovo Iomega EZ, Dell KACE M300, Freecom Silverstore HNCN2, DNS-320-B1, Medion P89634, and all other Kirkwood plugs that are already in the mainline.
Latest released kernel: linux-5.1.11-kirkwood-tld-2-bodhi.tar.bz2 (01 Jul 2019)
Latest released rootfs: Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 (24 Jul 2017)
Note: If this is your first time installation, then you need rootfs Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2 (this has kernel 4.12.1-kirkwood-tld-1 already installed).
Quote
Updated 24 Jul 2017:
Basic Debian stretch Kirkwood rootfs for most Kirwood plugs:
- tarball size: 188M
- install size: 488M
- The init system used in this rootfs is sysvinit . To boot with systemd, see note 2 below.
- Installed packages: nano, avahi, ntp, busybox-syslogd (log to RAM), htop, isc-dhcp-client, dialog, bzip2, nfs server/client, iperf, ethtool, sysvinit-core, sysvinit, and sysvinit-utils.
- see LED controls in /etc/rc.local, and /etc/init.d/halt
- see some useful aliases in /root/.profile
- root password: root
Download at Dropbox:
Debian-4.12.1-kirkwood-tld-1-rootfs-bodhi.tar.bz2
md5:
bf3d29569943875df348fb5ca03b348c
sha256:
4ed5714fdb123cdb40e973f3d0754e91cd199b75a9874018f2b5dc9cfa8ae8bb
And remember to check the hash of what you download, as always.
Re: Zyxel NSA325 Newbie question for update uBoot August 02, 2019 12:24AM |
Registered: 6 years ago Posts: 125 |
Re: Zyxel NSA325 Newbie question for update uBoot August 06, 2019 06:04PM |
Registered: 5 years ago Posts: 20 |
Re: Zyxel NSA325 Newbie question for update uBoot August 07, 2019 12:28AM |
Registered: 8 years ago Posts: 376 |
Re: Zyxel NSA325 Newbie question for update uBoot August 07, 2019 08:09AM |
Registered: 5 years ago Posts: 20 |
Re: Zyxel NSA325 Newbie question for update uBoot August 07, 2019 08:12AM |
Registered: 6 years ago Posts: 258 |
Re: Zyxel NSA325 Newbie question for update uBoot August 07, 2019 08:24AM |
Registered: 5 years ago Posts: 20 |
Re: Zyxel NSA325 Newbie question for update uBoot August 07, 2019 08:46AM |
Registered: 6 years ago Posts: 258 |
bootargs=console=ttyS0,115200 root=LABEL=rootfs
Re: Zyxel NSA325 Newbie question for update uBoot August 07, 2019 08:52AM |
Admin Registered: 14 years ago Posts: 19,306 |
Re: Zyxel NSA325 Newbie question for update uBoot August 07, 2019 09:17AM |
Registered: 5 years ago Posts: 20 |
Re: Zyxel NSA325 Newbie question for update uBoot August 07, 2019 09:27AM |
Admin Registered: 14 years ago Posts: 19,306 |
Re: Zyxel NSA325 Newbie question for update uBoot August 07, 2019 09:32AM |
Admin Registered: 14 years ago Posts: 19,306 |