Re: Zyxel NAS326 - Debian / Boot from USB? January 06, 2017 03:53PM |
Admin Registered: 14 years ago Posts: 19,317 |
Re: Zyxel NAS326 - Debian / Boot from USB? January 07, 2017 08:57AM |
Registered: 8 years ago Posts: 24 |
Re: Zyxel NAS326 - Debian / Boot from USB? January 07, 2017 04:11PM |
Admin Registered: 14 years ago Posts: 19,317 |
M - 1.73 Booting from NAND flashlKirsch's output on 2nd converter
BootROM - 1.73 Booting from NAND Flash
Re: Zyxel NAS326 - Debian / Boot from USB? January 07, 2017 07:35PM |
Registered: 8 years ago Posts: 24 |
root@16041:~/kwboot-tool# uname -a Linux 16041 4.4.0-57-generic #78-Ubuntu SMP Fri Dec 9 23:50:32 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux root@16041:~/kwboot-tool# lsusb Bus 001 Device 004: ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC root@16041:~/kwboot-tool# ./kwboot Usage: kwboot -b <image> [ -p ] [ -t ] [-B <baud> ] <TTY> -b <image>: boot <image> -p: patch <image> to type 0x69 (uart boot) -t: mini terminal -B <baud>: set baud rate
root@16041:~/kwboot-tool# ./kwboot -t -B 115200 /dev/ttyUSB0 -b ../u-boot-a38x-STG-328_2014_T3p6-nand-uart.bin Sending boot message. Please reboot the target...\^C root@16041:~/kwboot-tool# ./kwboot -B 115200 /dev/ttyUSB0 -b ../u-boot-a38x-STG-328_2014_T3p6-nand-uart.bin Sending boot message. Please reboot the target...\^C
root@16041:~/kwboot-tool# ./kwboot -t -B 115200 /dev/ttyUSB0 [Type Ctrl-\ + c to quit] @ BootROM - 1.73 Booting from NAND flash General initialization - Version: 1.0.0 Detected Device ID 6810 High speed PHY - Version: 2.0 ... U-Boot 2013.01-svn48023 (Oct 13 2015 - 09:25:56) Marvell version: 2014_T3.0p6 Board: RD-NAS-88F6820-DDR3 SoC: MV88F6810 Rev A0 running 1 CPUs CPU: ARM Cortex A9 MPCore (Rev 1) LE ... Hit any key to stop autoboot: 2 Marvell>>
@ BootROM - 1.73 ???- BootROM - 1.73 ?- BootROM - 1.73 ? BootROM - 1.73 or just BootROM - 1.73
Quote
bodhi
1. The current patch has the USB and HDD power patched code, but it should be temporary. This is a proper u-boot function so if u-boot works correctly, there is no need to patch the kernel to do it.
Re: Zyxel NAS326 - Debian / Boot from USB? January 07, 2017 09:46PM |
Admin Registered: 14 years ago Posts: 19,317 |
> @ > BootROM - 1.73 > > ???- > BootROM - 1.73 > > ?- > BootROM - 1.73 > > ? > BootROM - 1.73 > > or just > BootROM - 1.73 >>
Re: Zyxel NAS326 - Debian / Boot from USB? January 08, 2017 09:00AM |
Registered: 8 years ago Posts: 24 |
root@16041:~# ./kwboot.my -t /dev/ttyUSB0 [Type Ctrl-\ + c to quit] ??????????<?%?????????? BootROM - 1.73 Booting from NAND flash
Marvell>> ▒"3DUfw▒"3DUf""3DUfw▒"3DUfw▒"
Quote
bodhi
BTW, this the old version
Re: Zyxel NAS326 - Debian / Boot from USB? January 08, 2017 08:11PM |
Admin Registered: 14 years ago Posts: 19,317 |
Re: Zyxel NAS326 - Debian / Boot from USB? January 08, 2017 08:18PM |
Admin Registered: 14 years ago Posts: 19,317 |
Re: Zyxel NAS326 - Debian / Boot from USB? January 09, 2017 12:39AM |
Admin Registered: 14 years ago Posts: 19,317 |
T1: kwboot .... .... BootROM 1.73 T2:
T = T2 - T1
Re: Zyxel NAS326 - Debian / Boot from USB? January 09, 2017 04:35AM |
Registered: 8 years ago Posts: 24 |
Quote
bodhi
Do you have an ARM box beside this NAS326?
Quote
bodhi
When you run kwboot and eventually it is timed out by the NAS326 and it starts booting its own stock u-boot, how long is that T period?
root@16041:~# ./kwboot.my -t /dev/ttyUSB0 [Type Ctrl-\ + c to quit] ??????????<?%?????????? <--- printed in about a second BootROM - 1.73 Booting from NAND flash
Re: Zyxel NAS326 - Debian / Boot from USB? January 09, 2017 06:39PM |
Admin Registered: 14 years ago Posts: 19,317 |
>Quote
bodhi
> Do you have an ARM box beside this NAS326?
>
>Quote
bodhi
> When you run kwboot and eventually it is timed out
> by the NAS326 and it starts booting its own stock
> u-boot, how long is that T period?
>
> root@16041:~# ./kwboot.my -t /dev/ttyUSB0 > [Type Ctrl-\ + c to quit] > ??????????<?%?????????? <--- printed in about a > second > BootROM - 1.73 > Booting from NAND flash >>
Re: Zyxel NAS326 - Debian / Boot from USB? January 11, 2017 12:06AM |
Admin Registered: 14 years ago Posts: 19,317 |
setenv fdt_skip_update yes
Re: Zyxel NAS326 - Debian / Boot from USB? January 11, 2017 05:02PM |
Admin Registered: 14 years ago Posts: 19,317 |
Re: Zyxel NAS326 - Debian / Boot from USB? January 14, 2017 04:34PM |
Admin Registered: 14 years ago Posts: 19,317 |
Quote
unrecognized JEDEC id bytes: ff, ff, ff
Re: Zyxel NAS326 - Debian / Boot from USB? January 15, 2017 04:16PM |
Admin Registered: 14 years ago Posts: 19,317 |
Marvell>> md.l f1018100 1 f1018100: 04200000 .. . Marvell>> md.l f1018140 1 f1018140: 003c8000 ..<.
Re: Zyxel NAS326 - Debian / Boot from USB? January 15, 2017 04:21PM |
Admin Registered: 14 years ago Posts: 19,317 |
Quote
myself
> unrecognized JEDEC id bytes: ff, ff,
> ff
>
> This problem indicates SPI flash has not been
> initialized (no power). Stock u-boot did not bring
> up SPI. And stock "sf probe" does not work either.
> So my guess is stock u-boot has this bug, Because
> it should work for this a38x SoC.
Re: Zyxel NAS326 - Debian / Boot from USB? January 15, 2017 06:30PM |
Admin Registered: 14 years ago Posts: 19,317 |
Re: Zyxel NAS326 - Debian / Boot from USB? January 16, 2017 03:50AM |
Registered: 8 years ago Posts: 24 |
#define GPIO_POWER_ON_HDD1 45 #define GPIO_POWER_ON_HDD2 29 #define GPIO_POWER_ON_USB 43
Re: Zyxel NAS326 - Debian / Boot from USB? January 16, 2017 04:18AM |
Admin Registered: 14 years ago Posts: 19,317 |
Re: Zyxel NAS326 - Debian / Boot from USB? January 16, 2017 04:37AM |
Registered: 8 years ago Posts: 24 |
kralan
Re: Zyxel NAS326 - Debian / Boot from USB? January 16, 2017 04:21PM |
Re: Zyxel NAS326 - Debian / Boot from USB? January 18, 2017 02:10PM |
Registered: 8 years ago Posts: 24 |
Quote
kralan
I want to add these GPIOs to your collection:
20 poweroff system
53 hdd2 led white
54 hdd2 led red
rr4m, can you share your GPIO findings?
DataOut Register GPIO_Num0: 0x00018100 GPIO_Num1: 0x00018140 Data Out Enable Control Register GPIO_Num0: 0x00018104 GPIO_Num1: 0x00018144 Blink Enable Register GPIO_Num0: 0x00018108 GPIO_Num1: 0x00018148
Marvell>> md.l f1018100 3 f1018100: 04200000 0007f001 00000000 GPIO0 data-out data-out-enable blink-enable Marvell>> md.l f1018140 3 f1018140: 003c8000 04024280 00000000 GPIO1 data-out data-out-enable blink-enable
GPIO0 - 0007f001 = b0000 0000 0000 0111 1111 0000 0000 0001 31 15 0 GPIO1 - 04024280 = b0000 0100 0000 0010 0100 0010 1000 0000 31 15 0
MPP19 - quiet buzzer sound (do in u-boot 'mw.l f1018100 04280000', then 'mw.l f1018100 04200000' to hear it) MPP20 - power off (u-boot command 'mw.l f1018100 04300000' shuts the box down) MPP21 - USB WHITE LED ('mw.l f1018100 04000000' - off, 'mw.l f1018100 04200000' - on) MPP26 - BOTTOM WHITE LED - aka COPY WHITE LED ('mw.l f1018100 00000000' - off, 'mw.l f1018100 04000000' - on) MPP29 - POWER_ON_HDD2 (mw.l f1018100 24200000) --- MPP37 - BOTTOM RED LED - aka COPY RED LED ('mw.l f1018140 003c8000' - off, 'mw.l f1018140 003c8020' - on) MPP43 - POWER_ON_USB ('mw.l f1018140 003c8800', then 'usb reset') MPP45 - POWER_ON_HDD1 ('mw.l f1018140 003ca000') MPP48 - HDD1 RED LED ('mw.l f1018140 003c8000' - off, 'mw.l f1018140 003d8000' - on) MPP50 - HDD1 WHITE LED ('mw.l f1018140 003c8000' - on, 'mw.l f1018140 00388000' - off) MPP52 - TOP WHITE LED - aka SYSTEM WHITE LED ('mw.l f1018140 003c8000' - on, 'mw.l f1018140 002c8000' - off) MPP53 - HDD2 WHITE LED ('mw.l f1018140 003c8000' - on, 'mw.l f1018140 001c8000' - off) MPP54 - HDD2 RED LED ('mw.l f1018140 007c8000' - on, 'mw.l f1018140 003c8000' - off) MPP55 - TOP RED LED - aka SYSTEM RED LED ('mw.l f1018140 00bc8000' - on, 'mw.l f1018140 003c8000' - off)
mw.l f1018100 0 mw.l f1018140 0
turn it on: mw.l f1018100 00200000 blink mode on: mw.l f1018108 00200000 blink mode off: mw.l f1018108 00000000
turn it on: mw.l f1018140 00800000 blink on: mw.l f1018148 00800000 blink off: mw.l f1018148 00000000
mw.l f1018140 0 mw.l f1018100 ffefffff
Re: Zyxel NAS326 - Debian / Boot from USB? January 18, 2017 03:33PM |
Admin Registered: 14 years ago Posts: 19,317 |
Re: Zyxel NAS326 - Debian / Boot from USB? January 18, 2017 03:38PM |
Admin Registered: 14 years ago Posts: 19,317 |
Re: Zyxel NAS326 - Debian / Boot from USB? January 18, 2017 03:48PM |
Registered: 8 years ago Posts: 24 |
Re: Zyxel NAS326 - Debian / Boot from USB? January 18, 2017 03:54PM |
Admin Registered: 14 years ago Posts: 19,317 |
musv
Re: Zyxel NAS326 - Debian / Boot from USB? January 19, 2017 01:36AM |
Re: Zyxel NAS326 - Debian / Boot from USB? January 19, 2017 02:38AM |
Admin Registered: 14 years ago Posts: 19,317 |
Re: Zyxel NAS326 - Debian / Boot from USB? January 19, 2017 03:02AM |
Admin Registered: 14 years ago Posts: 19,317 |
Re: Zyxel NAS326 - Debian / Boot from USB? January 19, 2017 03:43AM |
Admin Registered: 14 years ago Posts: 19,317 |
red_sata1 { label = "nsa326:white:sata1"; gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>; linux,default-trigger = "ide-disk1"; };should be
red_sata1 { label = "nsa326:red:sata1"; gpios = <&gpio1 16 GPIO_ACTIVE_HIGH>; };