Re: Zyxel NAS326 Installation Instruction December 26, 2020 04:44AM |
Admin Registered: 13 years ago Posts: 18,900 |
Re: Zyxel NAS326 Installation Instruction December 26, 2020 12:24PM |
Registered: 3 years ago Posts: 17 |
Re: Zyxel NAS326 Installation Instruction December 26, 2020 03:59PM |
Admin Registered: 13 years ago Posts: 18,900 |
Re: Zyxel NAS326 Installation Instruction December 26, 2020 09:13PM |
Registered: 3 years ago Posts: 17 |
Re: Zyxel NAS326 Installation Instruction December 28, 2020 03:33PM |
Registered: 3 years ago Posts: 17 |
Tasmin
Re: Zyxel NAS326 Installation Instruction September 23, 2021 01:43AM |
Re: Zyxel NAS326 Installation Instruction September 23, 2021 02:13AM |
Admin Registered: 13 years ago Posts: 18,900 |
Re: Zyxel NAS326 Installation Instruction September 23, 2021 07:56AM |
Registered: 12 years ago Posts: 4 |
Re: Zyxel NAS326 Installation Instruction September 23, 2021 02:59PM |
Admin Registered: 13 years ago Posts: 18,900 |
Re: Zyxel NAS326 Installation Instruction September 23, 2021 10:29PM |
Registered: 12 years ago Posts: 4 |
Tasmin
Re: Zyxel NAS326 Installation Instruction October 07, 2021 06:07PM |
Tasmin
Re: Zyxel NAS326 Installation Instruction October 12, 2021 07:41PM |
Re: Zyxel NAS326 Installation Instruction December 11, 2021 09:22AM |
Registered: 5 years ago Posts: 20 |
mkfs -t ext3 /dev/sdg1 mount /media/sdf /dev/sdg1 cd /media/sdf tar -xjf /root/Debian-5.13.8-mvebu-tld-1-rootfs-bodhi.tar.bz2 . cd boot/ cp -a zImage-5.13.8-mvebu-tld-1 zImage.fdt cat dts/armada-380-zyxel-nas326.dtb >> zImage.fdt ~/u-boot-2020.07/tools/mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.13.8-mvebu-tld-1 -d zImage.fdt uImage sync;sync umount -l /media/sdf #on zyxel via ssh as root fw_setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts init=/bin/systemd' fw_setenv curr_bootfrom 1 fw_setenv next_bootfrom 1 fw_setenv load_dtb_addr 0x1000000 fw_setenv load_initrd_addr 0x2900000 fw_setenv load_image_addr 0x02000000 fw_setenv usb_init 'mw.l f1018100 20420000; mw.l f1018140 003E8800; sleep 3; usb start' fw_setenv set_bootargs_stock 'setenv bootargs "console=ttyS0,115200 ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs1 rw rootdelay=2"' fw_setenv bootcmd_stock_1 'run set_bootargs_stock; echo Booting from NAND kernel 1 ...; nand read 0x2000000 0x00E00000 0xF00000 && bootz 0x2000000' fw_setenv bootcmd_stock_2 'run set_bootargs_stock; echo Booting from NAND kernel 2 ...; nand read 0x2000000 0x08700000 0xF00000 && bootz 0x2000000' fw_setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"' fw_setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; run usb_init; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/armada-380-zyxel-nas326.dtb; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr' fw_setenv bootcmd_custom 'if run usb_bootcmd; then; else if run bootcmd_stock_1; then; else run bootcmd_stock_2; reset; fi; fi' fw_setenv kernel_addr_1 '0x00000000; run bootcmd_custom; ' fw_setenv change_boot_part 1 #plug in usb into front port sync;sync;/sbin/reboot
cd / mount -t ext3 /dev/sdc1 /mnt mount -t proc proc /mnt/proc mount -t sysfs sys /mnt/sys chroot /mnt /bin/bash
fw_setenv load_dtb_addr 0x1000000 fw_setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; run usb_init; ext2load usb 0:1 $load_image_addr /boot/uImage; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr'
Re: Zyxel NAS326 Installation Instruction December 11, 2021 10:19AM |
Registered: 5 years ago Posts: 20 |
#fw_setenv load_dtb_addr 0x1000000 fw_setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; run usb_init; ext2load usb 0:1 $load_image_addr /boot/uImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/armada-380-z yxel-nas326.dtb; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr'
Re: Zyxel NAS326 Installation Instruction December 11, 2021 02:09PM |
Registered: 5 years ago Posts: 20 |
Re: Zyxel NAS326 Installation Instruction December 11, 2021 03:49PM |
Admin Registered: 13 years ago Posts: 18,900 |
Quote
fw_setenv curr_bootfrom 1
fw_setenv next_bootfrom 1
fw_setenv load_initrd_addr 0x2900000
fw_setenv load_image_addr 0x02000000
fw_setenv usb_init 'mw.l f1018100 20420000; mw.l f1018140 003E8800; sleep 3; usb start'
fw_setenv set_bootargs_stock 'setenv bootargs "console=ttyS0,115200 ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs1 rw rootdelay=2"'
fw_setenv bootcmd_stock_1 'run set_bootargs_stock; echo Booting from NAND kernel 1 ...; nand read 0x2000000 0x00E00000 0xF00000 && bootz 0x2000000'
fw_setenv bootcmd_stock_2 'run set_bootargs_stock; echo Booting from NAND kernel 2 ...; nand read 0x2000000 0x08700000 0xF00000 && bootz 0x2000000'
fw_setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"'
fw_setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; run usb_init; ext2load usb 0:1 $load_image_addr /boot/uImage; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr'
fw_setenv bootcmd_custom 'if run usb_bootcmd; then; else if run bootcmd_stock_1; then; else run bootcmd_stock_2; reset; fi; fi'
fw_setenv kernel_addr_1 '0x00000000; run bootcmd_custom; '
fw_setenv change_boot_part 1
Quote
fw_setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; run usb_init; ext2load usb 0:1 $load_image_addr /boot/uImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/armada-380-z
yxel-nas326.dtb; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootz $load_image_addr $load_initrd_addr $load_dtb_addr'
Re: Zyxel NAS326 Installation Instruction December 11, 2021 03:58PM |
Admin Registered: 13 years ago Posts: 18,900 |
fw_setenv bootcmd_custom 'if run usb_bootcmd; then; else if run bootcmd_stock_1; then; else run bootcmd_stock_2; reset; fi; fi' fw_setenv kernel_addr_1 '0x00000000; run bootcmd_custom; '
Re: Zyxel NAS326 Installation Instruction December 17, 2021 06:37PM |
Registered: 5 years ago Posts: 20 |
Re: Zyxel NAS326 Installation Instruction December 17, 2021 08:25PM |
Registered: 5 years ago Posts: 20 |
setenv curr_bootfrom 1 setenv next_bootfrom 1 setenv load_initrd_addr 0x2900000 setenv load_image_addr 0x02000000 setenv usb_init 'mw.l f1018100 20420000; mw.l f1018140 003E8800; sleep 3; usb start' setenv set_bootargs_stock 'setenv bootargs "console=ttyS0,115200 ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs1 rw rootdelay=2"' setenv bootcmd_stock_1 'run set_bootargs_stock; echo Booting from NAND kernel 1 ...; nand read 0x2000000 0x00E00000 0xF00000 && bootz 0x2000000' setenv bootcmd_stock_2 'run set_bootargs_stock; echo Booting from NAND kernel 2 ...; nand read 0x2000000 0x08700000 0xF00000 && bootz 0x2000000' setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"' setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; run usb_init; ext2load usb 0:1 $load_image_addr /boot/uImage; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr' setenv bootcmd_custom 'if run usb_bootcmd; then; else if run bootcmd_stock_1; then; else run bootcmd_stock_2; reset; fi; fi' setenv kernel_addr_1 '0x00000000; run bootcmd_custom; ' saveenv
mkfs -t ext3 /dev/sdf1 mount /dev/sdf1 /media/sdf cd /media/sdf tar -xjf /root/Debian-5.13.8-mvebu-tld-1-rootfs-bodhi.tar.bz2 cd boot cp -a zImage-5.13.8-mvebu-tld-1 zImage.fdt cat dts/armada-380-zyxel-nas326.dtb >> zImage.fdt ~/u-boot-2020.07/tools/mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.13.8-mvebu-tld-1 -d zImage.fdt uImage sync cd .. umount /media/sdf
Begin: Running /scripts/local-block ... done. done. Gave up waiting for root file system device. Common problems: - Boot args (cat /proc/cmdline) - Check rootdelay= (did the system wait long enough?) - Missing modules (cat /proc/modules; ls /dev) ALERT! LABEL=rootfs does not exist. Dropping to a shell! BusyBox v1.30.1 (Debian 1:1.30.1-6+b3) built-in shell (ash) Enter 'help' for a list of built-in commands. (initramfs)
setenv curr_bootfrom 1 setenv next_bootfrom 1 setenv load_initrd_addr 0x2900000 setenv load_image_addr 0x02000000 setenv usb_init 'mw.l f1018100 20420000; mw.l f1018140 003E8800; sleep 3; usb start' setenv set_bootargs_stock 'setenv bootargs "console=ttyS0,115200 ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs1 rw rootdelay=2"' setenv bootcmd_stock_1 'run set_bootargs_stock; echo Booting from NAND kernel 1 ...; nand read 0x2000000 0x00E00000 0xF00000 && bootz 0x2000000' setenv bootcmd_stock_2 'run set_bootargs_stock; echo Booting from NAND kernel 2 ...; nand read 0x2000000 0x08700000 0xF00000 && bootz 0x2000000' setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"' setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; run usb_init; ext2load usb 0:1 $load_image_addr /boot/uImage; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr' setenv bootcmd_custom 'if run usb_bootcmd; then; else if run bootcmd_stock_1; then; else run bootcmd_stock_2; reset; fi; fi' setenv kernel_addr_1 '0x00000000; run bootcmd_custom; ' setenv change_boot_part 1 saveenv
e2label /dev/sdf1 rootfs
Re: Zyxel NAS326 Installation Instruction December 17, 2021 09:53PM |
Registered: 5 years ago Posts: 20 |
CASset=max CONTRY_TYPE=FF FEATURE_BIT=00 MALLOC_len=5 MODEL_ID=B303 MPmode=SMP PRODUCT_NAME=STG-328 VENDOR_NAME=MitraStar Technology Corp. autoload=no baudrate=115200 boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr bootargs=console=ttyS0,115200 ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs1 rw rootdelay=2 bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none bootargs_root=root=/dev/nfs rw bootcmd=nand read 0x2000000 0x00000000; run bootcmd_custom; 0xF00000 && bootz 0x2000000 bootcmd_auto=stage_boot $boot_order bootcmd_custom=if run usb_bootcmd; then; else if run bootcmd_stock_1; then; else run bootcmd_stock_2; reset; fi; fi bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr; bootcmd_fdt_boot=tftpboot 0x2000000 $image_name; setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr; bootcmd_fdt_edit=tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot bootcmd_lgcy=tftpboot 0x2000000 $image_name; setenv bootargs $bootargs_dflt; bootm 0x2000000; bootcmd_stock_1=run set_bootargs_stock; echo Booting from NAND kernel 1 ...; nand read 0x2000000 0x00E00000 0xF00000 && bootz 0x2000000 bootcmd_stock_2=run set_bootargs_stock; echo Booting from NAND kernel 2 ...; nand read 0x2000000 0x08700000 0xF00000 && bootz 0x2000000 bootdelay=3 cacheShare=no change_boot_part=0 console=console=ttyS0,115200 core_checksum_1=c782fd9d1adda4a6bac11cb570151a09 core_checksum_2=c782fd9d1adda4a6bac11cb570151a09 curr_bootfrom=1 device_partition=0:1 disaMvPnp=no eeeEnable=no enaClockGating=no enaCpuStream=no enaFPU=yes enaMonExt=no enaWrAllo=no eth1addr=00:50:43:38:32:25 eth1mtu=1500 eth2addr=00:50:43:38:a6:25 eth2mtu=1500 eth3addr=00:50:43:32:a6:38 eth3mtu=1500 ethact=egiga0 ethaddr=5C:64:8E:A5:41:6B ethmtu=1500 ethprime=egiga0 fdt_addr=2040000 fdt_skip_update=no fdtaddr=0x1000000 fdtfile=armada-38x-modular.dtb fwversion_1=V5.21(AAZF.8) fwversion_2=V5.21(AAZF.8) ide_path=/ image_name=uImage img_checksum_1=dd8adfdfaec6f9560ac52c54b277f5cf img_checksum_2=dd8adfdfaec6f9560ac52c54b277f5cf initrd_name=uInitrd ipaddr=10.4.50.170 kernel_addr=${kernel_addr_1} kernel_addr_1=0x00000000; run bootcmd_custom; kernel_addr_1=0x00E00000 kernel_addr_2=0x08700000 kernel_addr_r=2080000 kernel_mtd_1=3 kernel_mtd_2=5 lcd0_enable=0 lcd0_params=640x480-16@60 lcd_panel=0 load_dtb_=0x1000000 load_imagdr=0x02000000 load_initddr=0x2900000 load_initrd_addr=0x2900000 loadaddr=0x02000000 loads_echo=0 modelid_1=B303 modelid_2=B303 mtdids=nand0=armada-nand mtdparts=mtdparts=armada-nand:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2) mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500 mv_pon_addr=00:50:43:25:a6:38 nandEcc=nfcConfig=4bitecc netbsd_en=no netmask=255.255.255.0 netretry=no next_bootfrom=1 pcieTune=no pexMode=RC pxe_files_load=:default.arm-armadaxp-db:default.arm-armadaxp:default.arm pxefile_addr_r=3100000 ramdisk_addr_r=2880000 revision_1=51181 revision_2=51181 romfile_checksum_1=B316 romfile_checksum_2=B316 rootpath=/srv/nfs/ sata_delay_reset=0 sata_dma_mode=yes script_addr_r=3000000 script_name=boot.scr serial_number=S210Y37062991 serverip=10.4.50.38 set_bootargs_stock=setenv bootargs "console=ttyS0,115200 ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs1 rw rootdelay=2" standalone=fsload 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000; stderr=serial stdin=serial stdout=serial sysimg_mtd_1=4 sysimg_mtd_2=6 usb0Mode=host usbActive=0 usbType=2 usb_bootcmd=echo Booting from USB ...; setenv fdt_skip_update yes; run usb_init; ext2load usb 0:1 $load_image_addr /boot/uImage; ext2load usb 0:1 $load_initrd_addr /boot/uInitrd; run usb_set_bootargs; bootm $load_image_addr $load_initrd_addr usb_init=mw.l f1018100 20420000; mw.l f1018140 003E8800; sleep 3; usb start usb_set_bootargs=setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial" vxworks_en=no yuk_ethaddr=00:00:00:EE:51:81 zld_checksum_1=e3da2fd44e82e74d7c15dbeef23be3d0 zld_checksum_2=e3da2fd44e82e74d7c15dbeef23be3d0
Booting from NAND flash General initialization - Version: 1.0.0 Detected Device ID 6810 High speed PHY - Version: 2.0 Init RD NAS topology board SerDes lanes topology details: | Lane # | Speed | Type | -------------------------------- | 0 | 06 | SATA0 | | 1 | 05 | USB3 HOST0 | | 2 | 06 | SATA1 | | 5 | 05 | USB3 HOST1 | -------------------------------- High speed PHY - Ended Successfully DDR3 Training Sequence - Ver TIP-1.26.0 mvSysEnvGetTopologyUpdateInfo: TWSI Read failed DDR3 Training Sequence - Switching XBAR Window to FastPath Window DDR3 Training Sequence - Ended Successfully Not detected suspend to RAM indication BootROM: Image checksum verification PASSED __ __ _ _ | \/ | __ _ _ ____ _____| | | | |\/| |/ _` | '__\ \ / / _ \ | | | | | | (_| | | \ V / __/ | | |_| |_|\__,_|_| \_/ \___|_|_| _ _ ____ _ | | | | | __ ) ___ ___ | |_ | | | |___| _ \ / _ \ / _ \| __| | |_| |___| |_) | (_) | (_) | |_ \___/ |____/ \___/ \___/ \__| ** LOADER ** U-Boot 2013.01-svn48206 (Dec 03 2015 - 02:50:37) Marvell version: 2014_T3.0p6 Board: RD-NAS-88F6820-DDR3 mvCtrlRevNameGet: Error: Failed to read Revision ID SoC: MV88F6810 running 1 CPUs CPU: ARM Cortex A9 MPCore (Rev 1) LE CPU 0 CPU @ 1332 [MHz] L2 @ 666 [MHz] TClock @ 200 [MHz] DDR @ 666 [MHz] DDR 32 Bit Width, FastPath Memory Access, DLB Enabled, ECC Disabled DRAM: 512 MiB Map: Code: 0x1fed0000:0x1ff95e28 BSS: 0x1ffef2b4 Stack: 0x1f9cff20 Heap: 0x1f9d0000:0x1fed0000 U-Boot Environment: 0x00200000:0x00280000 (NAND) NAND: 256 MiB MMC: mv_sdh: 0 *** Booting kernel from kernel 1 @0x00000000; run bootcmd_custom; *** USB2.0 0: Host Mode USB3.0 0: Host Mode USB3.0 1: Host Mode Board configuration detected: Net: | port | Interface | PHY address | |--------|-----------|--------------| | egiga0 | RGMII | 0x01 | egiga0 [PRIME] Hit any key to stop autoboot: 0 NAND read: device 0 whole chip Attempt to read outside the flash area 0 bytes read: ERROR Booting from USB ... (Re)start USB... USB0: Port (usbActive) : 0 Interface (usbType = 2) : USB EHCI 1.00 scanning bus 0 for devices... 2 USB Device(s) found scanning usb for storage devices... 1 Storage Device(s) found scanning usb for ethernet devices... 0 Ethernet Device(s) found ** No boot file defined ** 9649885 bytes read in 836 ms (11 MiB/s) ## Booting kernel from Legacy Image at 02900000 ... Image Name: initramfs-5.13.8-mvebu-tld-1 Created: 2021-09-24 7:54:32 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 9649821 Bytes = 9.2 MiB Load Address: 00000000 Entry Point: 00000000 Verifying Checksum ... OK Wrong Image Type for bootm command ERROR: can't get kernel image! Booting from NAND kernel 1 ... NAND read: device 0 offset 0xe00000, size 0xf00000 15728640 bytes read: OK * kernel: cmdline image address = 0x02000000 Starting kernel ... Init SATA for SSD ... Power on HDD1 ... Power on HDD2 ...
** No boot file defined **but then, the box recognized a boot file:
## Booting kernel from Legacy Image at 02900000 ... Image Name: initramfs-5.13.8-mvebu-tld-1 Created: 2021-09-24 7:54:32 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 9649821 Bytes = 9.2 MiB ...and uses "empty" load address/ entry point?
Load Address: 00000000 Entry Point: 00000000What's up with my image?
Wrong Image Type for bootm command ERROR: can't get kernel image!
Re: shaman January 10, 2022 05:18PM |
Admin Registered: 13 years ago Posts: 18,900 |
cd /media/sdb1/boot ls -lart
usb start ext2ls usb 0:1 /boot ext2load usb 0:1 $load_image_addr /boot/uImage
Re: Zyxel NAS326 Installation Instruction January 10, 2022 05:21PM |
Admin Registered: 13 years ago Posts: 18,900 |
Re: shaman January 10, 2022 05:33PM |
Registered: 2 years ago Posts: 4 |
osboxes@osboxes:/media/osboxes/rootfs/boot$ ls -lart total 51564 drwxrwxrwx 21 root root 4096 Jan 20 2017 .. drwxr-xr-x 3 root root 4096 Jan 10 22:36 boot-5.13.8 -rw-r--r-- 1 root root 205052 Jan 10 22:39 config-5.13.8-mvebu-tld-1 drwxr-xr-x 2 root root 4096 Jan 10 22:39 dts -rw-r--r-- 1 root root 9649821 Jan 10 22:39 initrd.img-5.13.8-mvebu-tld-1 -rw-r--r-- 1 root root 7785524 Jan 10 22:39 linux-headers-5.13.8-mvebu-tld-1_1.0_armhf.deb -rw-r--r-- 1 root root 4461631 Jan 10 22:40 System.map-5.13.8-mvebu-tld-1 -rw-r--r-- 1 root root 5237781 Jan 10 22:40 uImage -rw-r--r-- 1 root root 9649885 Jan 10 22:40 uInitrd -rwxr-xr-x 1 root root 5218232 Jan 10 22:40 vmlinuz-5.13.8-mvebu-tld-1 -rwxr-xr-x 1 root root 5218232 Jan 10 22:40 zImage-5.13.8-mvebu-tld-1 drwxr-xr-x 4 root root 4096 Jan 10 22:40 . -rwxr-xr-x 1 root root 5237717 Jan 10 22:40 zImage.fdt
Marvell>> usb start (Re)start USB... USB0: Port (usbActive) : 0 Interface (usbType = 2) : USB EHCI 1.00 scanning bus 0 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found scanning usb for ethernet devices... 0 Ethernet Device(s) found Marvell>> ext2ls usb 0:1 /boot ** Bad device usb 0 ** Marvell>> ext2load usb 0:1 $load_image_addr /boot/uImage ** Bad device usb 0 **
Re: shaman January 10, 2022 05:43PM |
Admin Registered: 13 years ago Posts: 18,900 |
Quote
scanning usb for storage devices... 0 Storage Device(s) found
usb resetDo reset a few times to see if it is spun up by u-boot. Sometime the USB drive brand is important for older u-boot (Sandisk is best to use).
Re: shaman January 10, 2022 05:51PM |
Registered: 2 years ago Posts: 4 |
Re: shaman January 11, 2022 12:47PM |
Registered: 2 years ago Posts: 4 |
Re: shaman January 11, 2022 04:26PM |
Admin Registered: 13 years ago Posts: 18,900 |
Re: Zyxel NAS326 Installation Instruction January 29, 2022 03:51PM |
Registered: 6 years ago Posts: 56 |
login as: root root@192.168.222.73's password: BusyBox v1.19.4 (2021-04-01 09:56:40 CST) built-in shell (ash) Enter 'help' for a list of built-in commands. ~ # whoami root ~ # fdisk -l Disk /dev/loop0: 141 MiB, 147849216 bytes, 288768 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mtdblock0: 2 MiB, 2097152 bytes, 4096 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mtdblock1: 2 MiB, 2097152 bytes, 4096 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mtdblock2: 10 MiB, 10485760 bytes, 20480 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mtdblock3: 15 MiB, 15728640 bytes, 30720 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mtdblock4: 106 MiB, 111149056 bytes, 217088 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mtdblock5: 15 MiB, 15728640 bytes, 30720 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mtdblock6: 106 MiB, 111149056 bytes, 217088 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/sda: 7.3 TiB, 8001563222016 bytes, 15628053168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: 8455418A-CE98-4B25-ADA0-4C843953AA85 Device Start End Sectors Size Type /dev/sda1 2048 3999743 3997696 1.9G Linux RAID /dev/sda2 3999744 7999487 3999744 1.9G Linux RAID /dev/sda3 7999488 15628052479 15620052992 7.3T Linux RAID Disk /dev/sdb: 7.3 TiB, 8001563222016 bytes, 15628053168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: 563F91F8-DCE5-4E81-9D60-651BE73C98E9 Device Start End Sectors Size Type /dev/sdb1 2048 3999743 3997696 1.9G Linux RAID /dev/sdb2 3999744 7999487 3999744 1.9G Linux RAID /dev/sdb3 7999488 15628052479 15620052992 7.3T Linux RAID Disk /dev/md0: 1.9 GiB, 2045706240 bytes, 3995520 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/md1: 1.9 GiB, 2046754816 bytes, 3997568 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/md2: 14.6 TiB, 15994934132736 bytes, 31240105728 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/mapper/vg_10a0fb03-vg_info_area: 100 MiB, 104857600 bytes, 204800 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk /dev/mapper/vg_10a0fb03-lv_a08d79be: 14.6 TiB, 15994827309056 bytes, 31239897088 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes
~ # df -h Filesystem Size Used Available Use% Mounted on ubi6:ubi_rootfs2 88.1M 47.6M 36.0M 57% /firmware/mnt/nand /dev/md0 1.8G 143.9M 1.6G 8% /firmware/mnt/sysdisk /dev/loop0 136.5M 120.5M 16.0M 88% /ram_bin /dev/loop0 136.5M 120.5M 16.0M 88% /usr /dev/loop0 136.5M 120.5M 16.0M 88% /lib/security /dev/loop0 136.5M 120.5M 16.0M 88% /lib/modules /dev/loop0 136.5M 120.5M 16.0M 88% /lib/locale /dev/ram0 5.0M 4.0K 5.0M 0% /tmp/tmpfs /dev/ram0 5.0M 4.0K 5.0M 0% /usr/local/etc ubi2:ubi_config 2.2M 76.0K 2.0M 4% /etc/zyxel /dev/mapper/vg_10a0fb03-lv_a08d79be 14.4T 92.5M 14.4T 0% /i-data/a08d79be /dev/mapper/vg_10a0fb03-vg_info_area 92.9M 56.0K 90.8M 0% /mnt/vg_info_area/vg_10a0fb03 /dev/mapper/vg_10a0fb03-lv_a08d79be 14.4T 92.5M 14.4T 0% /usr/local/apache/htdocs/desktop,/pkg
~ # mount /proc on /proc type proc (rw) /sys on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw) ubi6:ubi_rootfs2 on /firmware/mnt/nand type ubifs (ro) /dev/md0 on /firmware/mnt/sysdisk type ext4 (ro) /firmware/mnt/sysdisk/sysdisk.img on /ram_bin type ext2 (ro) /ram_bin/usr on /usr type none (ro,bind) /ram_bin/lib/security on /lib/security type none (ro,bind) /ram_bin/lib/modules on /lib/modules type none (ro,bind) /ram_bin/lib/locale on /lib/locale type none (ro,bind) /dev/ram0 on /tmp/tmpfs type tmpfs (rw,size=5m) /tmp/tmpfs/usr_etc on /usr/local/etc type none (rw,bind) ubi2:ubi_config on /etc/zyxel type ubifs (rw) /dev/mapper/vg_10a0fb03-lv_a08d79be on /i-data/a08d79be type ext4 (rw,noatime,usrquota,data=ordered,barrier=1) /dev/mapper/vg_10a0fb03-vg_info_area on /mnt/vg_info_area/vg_10a0fb03 type ext4 (rw) /i-data/a08d79be/.system/zy-pkgs/pkggui on /usr/local/apache/htdocs/desktop,/pkg type none (rw,bind) configfs on /sys/kernel/config type configfs (rw)
~ # ls -la / drwxr-xr-x 19 root root 0 Jul 8 2020 . drwxr-xr-x 19 root root 0 Jul 8 2020 .. drwxr-xr-x 2 root root 0 Jan 29 13:58 bin drwxr-xr-x 7 root root 0 Jan 29 13:58 dev drwxr-xr-x 2 root root 0 Apr 1 2021 e-data drwxr-xr-x 22 root root 0 Jan 29 14:00 etc drwxr-xr-x 5 root root 0 Jan 29 13:57 firmware drwxr-xr-x 3 root root 0 Jan 29 13:58 home drwxr-xr-x 3 1013 1000 0 Aug 18 2017 i-data -rwxr-xr-x 1 root root 5072 Apr 1 2021 init drwxr-xr-x 6 root root 0 Apr 1 2021 lib lrwxrwxrwx 1 root root 11 Apr 1 2021 linuxrc -> bin/busybox drwxr-xr-x 4 root root 0 Jan 29 13:58 mnt dr-xr-xr-x 133 root root 0 Jan 1 1970 proc drwxr-xr-x 9 root root 1024 Apr 1 2021 ram_bin drwxr-xr-x 2 root root 0 Apr 1 2021 root drwxr-xr-x 2 root root 0 Jan 29 13:58 sbin dr-xr-xr-x 12 root root 0 Jan 29 13:57 sys drwxrwxrwx 6 root root 0 Jan 29 22:35 tmp drwxr-xr-x 8 root root 1024 Apr 1 2021 usr drwxr-xr-x 14 root root 0 Jan 29 13:58 var
~ # fw_printenv CASset=max CONTRY_TYPE=FF FEATURE_BIT=00 MALLOC_len=5 MODEL_ID=B303 MPmode=SMP PRODUCT_NAME=STG-328 VENDOR_NAME=MitraStar Technology Corp. autoload=no baudrate=115200 boot_order=hd_scr usb_scr mmc_scr hd_img usb_img mmc_img pxe net_img net_scr bootargs=console=ttyS0,115200 ubi.mtd=4,2048 rootfstype=ubifs root=ubi0:rootfs1 rw rootdelay=2 bootargs_dflt=$console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel bootargs_end=:10.4.50.254:255.255.255.0:Armada38x:eth0:none bootargs_root=root=/dev/nfs rw bootcmd=nand read 0x2000000 0x08700000 0xF00000 && bootz 0x2000000 bootcmd_auto=stage_boot $boot_order bootcmd_fdt=tftpboot 0x2000000 $image_name;tftpboot $fdtaddr $fdtfile;setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr; bootcmd_fdt_boot=tftpboot 0x2000000 $image_name; setenv bootargs $console $nandEcc $mtdparts $bootargs_root nfsroot=$serverip:$rootpath ip=$ipaddr:$serverip$bootargs_end $mvNetConfig video=dovefb:lcd0:$lcd0_params clcd.lcd0_enable=$lcd0_enable clcd.lcd_panel=$lcd_panel; bootz 0x2000000 - $fdtaddr; bootcmd_fdt_edit=tftpboot $fdtaddr $fdtfile; fdt addr $fdtaddr; setenv bootcmd $bootcmd_fdt_boot bootcmd_lgcy=tftpboot 0x2000000 $image_name; setenv bootargs $bootargs_dflt; bootm 0x2000000; bootdelay=3 cacheShare=no console=console=ttyS0,115200 core_checksum_1=c782fd9d1adda4a6bac11cb570151a09 core_checksum_2=b2e7f9d46be6914446516f2cbedfd7eb curr_bootfrom=2 device_partition=0:1 disaMvPnp=no eeeEnable=no enaClockGating=no enaCpuStream=no enaFPU=yes enaMonExt=no enaWrAllo=no eth1addr=00:50:43:38:32:25 eth1mtu=1500 eth2addr=00:50:43:38:a6:25 eth2mtu=1500 eth3addr=00:50:43:32:a6:38 eth3mtu=1500 ethact=egiga0 ethaddr=5C:64:8E:32:FC:F7 ethmtu=1500 ethprime=egiga0 fdt_addr=2040000 fdt_skip_update=no fdtaddr=0x1000000 fdtfile=armada-38x-modular.dtb fwversion_1=V5.21(AAZF.8) fwversion_2=V5.21(AAZF.10) ide_path=/ image_name=uImage img_checksum_1=dd8adfdfaec6f9560ac52c54b277f5cf img_checksum_2=ea11142db3b34adc3602086d20479a95 initrd_name=uInitrd ipaddr=10.4.50.170 kernel_addr=${kernel_addr_1} kernel_addr_1=0x00E00000 kernel_addr_2=0x08700000 kernel_addr_r=2080000 kernel_mtd_1=3 kernel_mtd_2=5 lcd0_enable=0 lcd0_params=640x480-16@60 lcd_panel=0 loadaddr=0x02000000 loads_echo=0 modelid_1=B303 modelid_2=B303 mtdids=nand0=armada-nand mtdparts=mtdparts=armada-nand:2m(u-boot),2m(env),2m(config),15m(kernel1),110m(rootfs1),15m(kernel2),-(rootfs2) mvNetConfig=mv_net_config=4,(00:50:43:11:11:11,0:1:2:3),mtu=1500 mv_pon_addr=00:50:43:25:a6:38 nandEcc=nfcConfig=4bitecc netbsd_en=no netmask=255.255.255.0 netretry=no next_bootfrom=2 pcieTune=no pexMode=RC pxe_files_load=:default.arm-armadaxp-db:default.arm-armadaxp:default.arm pxefile_addr_r=3100000 ramdisk_addr_r=2880000 revision_1=51181 revision_2=51209 romfile_checksum_1=B316 romfile_checksum_2=7010 rootpath=/srv/nfs/ sata_delay_reset=0 sata_dma_mode=yes script_addr_r=3000000 script_name=boot.scr serial_number=S210Y31049101 serverip=10.4.50.38 standalone=fsload 0x2000000 $image_name;setenv bootargs $console $nandEcc $mtdparts root=/dev/mtdblock0 rw ip=$ipaddr:$serverip$bootargs_end; bootm 0x2000000; stderr=serial stdin=serial stdout=serial sysimg_mtd_1=4 sysimg_mtd_2=6 usb0Mode=host usbActive=0 usbType=2 vxworks_en=no yuk_ethaddr=00:00:00:EE:51:81 zld_checksum_1=e3da2fd44e82e74d7c15dbeef23be3d0 zld_checksum_2=e861824adfedf3827be8b63e8405ce7e
Re: Zyxel NAS326 Installation Instruction January 29, 2022 05:13PM |
Admin Registered: 13 years ago Posts: 18,900 |