Re: Zyxel NAS326 - Debian / Boot from USB? January 27, 2017 05:30AM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Zyxel NAS326 - Debian / Boot from USB? January 27, 2017 05:42AM |
Registered: 7 years ago Posts: 24 |
Quote
bodhi
Does anyone know how to enable SSH or telnet in stock OS without using serial console?
Quote
bodhi
BTW, one thing that we have not figured out is which MCU this box has, I don't recall.
Board: RD-NAS-88F6820-DDR3 SoC: MV88F6810 Rev A0 running 1 CPUs CPU: ARM Cortex A9 MPCore (Rev 1) LE CPU 0 CPU @ 1332 [MHz] L2 @ 666 [MHz] TClock @ 250 [MHz] DDR @ 666 [MHz] DDR 32 Bit Width, FastPath Memory Access, DLB Enabled, ECC Disabled DRAM: 512 MiB NAND: 256 MiB $ cat /proc/cpuinfo processor : 0 model name : ARMv7 Processor rev 1 (v7l) BogoMIPS : 50.00 Features : half thumb fastmult vfp edsp thumbee neon vfpv3 tls vfpd32 CPU implementer : 0x41 CPU architecture: 7 CPU variant : 0x4 CPU part : 0xc09 CPU revision : 1 Hardware : Marvell Armada 380/385 (Device Tree)
Re: Zyxel NAS326 - Debian / Boot from USB? January 27, 2017 06:45AM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Zyxel NAS326 - Debian / Boot from USB? January 27, 2017 07:29AM |
Registered: 7 years ago Posts: 24 |
Re: Zyxel NAS326 - Debian / Boot from USB? January 27, 2017 11:03PM |
Admin Registered: 13 years ago Posts: 18,821 |
Quote
4. Enter the following commands (copy and paste to the console prompt):
setenv usb_init 'mw.l f1018100 20420000; mw.l f1018140 003E8800; sleep 3; usb start' 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 0x800000 /boot/uImage; ext2load usb 0:1 0x1100000 /boot/uInitrd; ext2load usb 0:1 0x1c00000 /boot/dts/armada-380-zyxel-nas326.dtb; run usb_set_bootargs; bootm 0x800000 0x1100000 0x1c00000' setenv curr_bootfrom 1 setenv next_bootfrom 1 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 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
boot
Re: Zyxel NAS326 - Debian / Boot from USB? January 28, 2017 09:48AM |
Registered: 9 years ago Posts: 298 |
Re: Zyxel NAS326 - Debian / Boot from USB? January 29, 2017 02:55AM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Zyxel NAS326 - Debian / Boot from USB? January 29, 2017 03:43AM |
Registered: 9 years ago Posts: 298 |
Re: Zyxel NAS326 - Debian / Boot from USB? January 29, 2017 04:41AM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Zyxel NAS326 - Debian / Boot from USB? January 30, 2017 01:45AM |
Registered: 9 years ago Posts: 298 |
Re: Zyxel NAS326 - Debian / Boot from USB? January 30, 2017 03:10AM |
Admin Registered: 13 years ago Posts: 18,821 |
static unsigned char kwboot_msg_boot[] = { 0xBB, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77 };
case 'b': bootmsg = kwboot_msg_boot; imgpath = optarg; break;
rc = kwboot_bootmsg(tty, bootmsg); if (rc) { perror("bootmsg"); goto out; }
kwboot_bootmsg(int tty, void *msg) { int rc; char c; if (msg == NULL) kwboot_printv("Please reboot the target into UART boot mode..."); else kwboot_printv("Sending boot message. Please reboot the target..."); do { rc = tcflush(tty, TCIOFLUSH); if (rc) break; rc = kwboot_tty_send(tty, msg, 8); if (rc) { usleep(msg_req_delay * 1000); continue; } rc = kwboot_tty_recv(tty, &c, 1, msg_rsp_timeo); kwboot_spinner(); } while (rc || c != NAK); kwboot_printv("\n"); return rc; }
Re: Zyxel NAS326 - Debian / Boot from USB? January 30, 2017 06:09AM |
Registered: 9 years ago Posts: 298 |
Re: Zyxel NAS326 - Debian / Boot from USB? January 30, 2017 01:32PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Zyxel NAS326 - Debian / Boot from USB? January 31, 2017 12:20AM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Zyxel NAS326 - Debian / Boot from USB? January 31, 2017 03:37AM |
Registered: 9 years ago Posts: 298 |
Re: Zyxel NAS326 - Debian / Boot from USB? January 31, 2017 04:05AM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Zyxel NAS326 - Debian / Boot from USB? February 02, 2017 03:47AM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Zyxel NAS326 - Debian / Boot from USB? February 04, 2017 03:59PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Zyxel NAS326 - Debian / Boot from USB? February 05, 2017 04:57PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Zyxel NAS326 - Debian / Boot from USB? February 05, 2017 06:52PM |
Registered: 7 years ago Posts: 24 |
jochen
Re: Zyxel NAS326 - Debian / Boot from USB? February 16, 2017 02:46PM |
Re: Zyxel NAS326 - Debian / Boot from USB? February 16, 2017 03:19PM |
Admin Registered: 13 years ago Posts: 18,821 |
Quote
Installation for NAS326 box can be done with serial console connected (section A), or inside stock OS (section B).
jochen
Re: Zyxel NAS326 - Debian / Boot from USB? February 17, 2017 12:18PM |
jochen
Re: Zyxel NAS326 - Debian / Boot from USB? February 17, 2017 01:24PM |
Re: Zyxel NAS326 - Debian / Boot from USB? February 17, 2017 03:46PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: Zyxel NAS326 - Debian / Boot from USB? February 18, 2017 04:07AM |
Admin Registered: 13 years ago Posts: 18,821 |
nano326
Re: Zyxel NAS326 - Debian / Boot from USB? February 18, 2017 10:30AM |
Re: Zyxel NAS326 - Debian / Boot from USB? February 18, 2017 06:37PM |
Admin Registered: 13 years ago Posts: 18,821 |
nano326
Re: Zyxel NAS326 - Debian / Boot from USB? February 19, 2017 11:09AM |
nano326
Re: Zyxel NAS326 - Debian / Boot from USB? February 19, 2017 11:10AM |