Debian on NSA320s - possible? July 24, 2015 04:36AM |
Registered: 8 years ago Posts: 295 |
__ __ _ _ | \/ | __ _ _ ____ _____| | | | |\/| |/ _` | '__\ \ / / _ \ | | | | | | (_| | | \ V / __/ | | |_| |_|\__,_|_| \_/ \___|_|_| _ _ ____ _ | | | | | __ ) ___ ___ | |_ | | | |___| _ \ / _ \ / _ \| __| | |_| |___| |_) | (_) | (_) | |_ \___/ |____/ \___/ \___/ \__| ** MARVELL BOARD: DB6702A-GMtech LE U-Boot 1.1.4 (Sep 3 2013 - 16:27:22) Marvell version: 3.6.0 U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFB00 Soc: 88F6702 A1 CPU running @ 1000Mhz L2 running @ 500Mhz SysClock = 400Mhz , TClock = 166Mhz DRAM (DDR2) CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6 DRAM CS[0] base 0x00000000 size 256MB DRAM Total size 256MB 16bit width Addresses 10M - 0M are saved for the U-Boot usage. Mem malloc Initialization (10M - 7M): Done NAND:128 MB Flash: 0 kB CPU : Marvell Feroceon (Rev 1) Kernel address is 0xc80000. Streaming disabled Write allocate disabled USB 0: host mode PEX 0: interface detected no Link. Net: egiga0 [PRIME] Hit any key to stop autoboot: 0
Marvell>> usb start (Re)start USB... USB: scanning bus for devices... 2 USB Device(s) found Waiting for storage device(s) to settle before scanning... 0 Storage Device(s) found
Marvell>> usb tree Device Tree: 1 Hub (480MBit/s, 0mA) | Marvell EHCI | +-2 Hub (480MBit/s, 100mA) USB2.0 Hub
Marvell>> usb start (Re)start USB... USB: scanning bus for devices... 1 USB Device(s) found Waiting for storage device(s) to settle before scanning... 0 Storage Device(s) found
Marvell>> usb reset (Re)start USB... USB: scanning bus for devices... 1 USB Device(s) found Waiting for storage device(s) to settle before scanning... 0 Storage Device(s) found
Marvell>> usb tree Device Tree: 1 Hub (12MBit/s, 0mA) Marvell EHCIall usb sticks were recongnized when ZyXEL OS is up and running.
Re: Debian on NSA320s - possible? July 24, 2015 05:12AM |
Admin Registered: 13 years ago Posts: 18,581 |
Re: Debian on NSA320s - possible? July 24, 2015 05:25AM |
Registered: 8 years ago Posts: 295 |
NAND read: device 0 offset 0xc80000, size 0xa00000 Bad block at 0xc80000 in erase block from 0xc80000 will be skipped
Erasing Nand...Writing to Nand... done�!�}� __ _ _
NAND read: device 0 offset 0x4640000, size 0xa00000 Reading data from 0x503f800 -- 100% complete. 10485760 bytes read: OK ## Booting image at 02000000 ... Image Name: Linux-2.6.31.8 Created: 2014-04-07 3:26:07 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 5910836 Bytes = 5.6 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK Uncompressing Linux.................................................................................................................
Device 0 bad blocks: 00c80000 01900000
Re: Debian on NSA320s - possible? July 24, 2015 04:13PM |
Admin Registered: 13 years ago Posts: 18,581 |
setenv usb_boot 'mw 0x800000 0 1; if run usb_load_uimage; then run usb_load_uinitrd; bootm 0x800000 0x1100000; fi'
Re: Debian on NSA320s - possible? July 24, 2015 06:01PM |
Registered: 8 years ago Posts: 295 |
Re: Debian on NSA320s - possible? July 24, 2015 07:25PM |
Admin Registered: 13 years ago Posts: 18,581 |
Re: Debian on NSA320s - possible? July 25, 2015 01:38AM |
Registered: 8 years ago Posts: 295 |
NSA320s - kwboot - success? July 26, 2015 06:27AM |
Registered: 8 years ago Posts: 295 |
./kwboot -t -B 115200 /dev/ttyUSB0 -b /data/uboot.2013.10-tld-1-test.nsa325.uart.kwb Sending boot message. Please reboot the target...- Sending boot image... 0 % [......................................................................] 3 % [......................................................................] 5 % [......................................................................] 8 % [......................................................................] 11 % [......................................................................] 14 % [......................................................................] 17 % [......................................................................] 20 % [......................................................................] 23 % [......................................................................] 26 % [......................................................................] 29 % [......................................................................] 32 % [......................................................................] 35 % [......................................................................] 38 % [......................................................................] 41 % [......................................................................] 44 % [......................................................................] 47 % [......................................................................] 50 % [......................................................................] 53 % [......................................................................] 56 % [......................................................................] 59 % [......................................................................] 62 % [......................................................................] 65 % [......................................................................] 68 % [......................................................................] 71 % [......................................................................] 74 % [......................................................................] 77 % [......................................................................] 80 % [......................................................................] 83 % [......................................................................] 85 % [......................................................................] 88 % [......................................................................] 91 % [......................................................................] 94 % [......................................................................] 97 % [.....................................................] [Type Ctrl-\ + c to quit]
Re: NSA320s - kwboot - success? July 26, 2015 01:31PM |
Admin Registered: 13 years ago Posts: 18,581 |
[Type Ctrl-\ + c to quit]Sometime if your network is noisy, it could effect the loading time. It should help if the terminal session (where you run kwboot) is on a box that is connected to the same switch/router that the target (i.e. NSA320s) is connected to.
Re: NSA320s - kwboot - success? July 26, 2015 05:51PM |
Registered: 8 years ago Posts: 295 |
> [Type Ctrl-\ + c to quit] >
Re: NSA320s - kwboot - success? July 26, 2015 06:31PM |
Admin Registered: 13 years ago Posts: 18,581 |
Quote
This u-boot image is for the NSA325, so I expected that it will not execute. We need to build new u-boot to run it properly on this SoC. Next week when I have some time I will attempt building one!
Re: Debian on NSA320s - uart boot stock nsa310s u-boot July 30, 2015 08:04AM |
Registered: 8 years ago Posts: 295 |
./kwboot -t -B 115200 /dev/ttyUSB0 -b u-boot-1.1.4-bodhi.nsa310s.uart.bin Sending boot message. Please reboot the target...\ Sending boot image... 0 % [......................................................................] 1 % [......................................................................] 3 % [......................................................................] 5 % [......................................................................] 7 % [......................................................................] 9 % [......................................................................] 11 % [......................................................................] 13 % [......................................................................] 15 % [......................................................................] 16 % [......................................................................] 18 % [......................................................................] 20 % [......................................................................] 22 % [......................................................................] 24 % [......................................................................] 26 % [......................................................................] 28 % [......................................................................] 30 % [......................................................................] 32 % [......................................................................] 33 % [......................................................................] 35 % [......................................................................] 37 % [......................................................................] 39 % [......................................................................] 41 % [......................................................................] 43 % [......................................................................] 45 % [......................................................................] 47 % [......................................................................] 49 % [......................................................................] 50 % [......................................................................] 52 % [......................................................................] 54 % [......................................................................] 56 % [......................................................................] 58 % [......................................................................] 60 % [......................................................................] 62 % [......................................................................] 64 % [......................................................................] 65 % [......................................................................] 67 % [......................................................................] 69 % [......................................................................] 71 % [......................................................................] 73 % [......................................................................] 75 % [......................................................................] 77 % [......................................................................] 79 % [......................................................................] 81 % [......................................................................] 82 % [......................................................................] 84 % [......................................................................] 86 % [......................................................................] 88 % [......................................................................] 90 % [......................................................................] 92 % [......................................................................] 94 % [......................................................................] 96 % [......................................................................] 97 % [......................................................................] 99 % [.......] [Type Ctrl-\ + c to quit] __ __ _ _ | \/ | __ _ _ ____ _____| | | | |\/| |/ _` | '__\ \ / / _ \ | | | | | | (_| | | \ V / __/ | | |_| |_|\__,_|_| \_/ \___|_|_| _ _ ____ _ | | | | | __ ) ___ ___ | |_ | | | |___| _ \ / _ \ / _ \| __| | |_| |___| |_) | (_) | (_) | |_ \___/ |____/ \___/ \___/ \__| ** MARVELL BOARD: DB6702A-GMtech LE U-Boot 1.1.4 (Jul 28 2015 - 21:10:06) Marvell version: 3.6.0 U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFB00 Soc: 88F6702 A1 CPU running @ 1000Mhz L2 running @ 500Mhz SysClock = 400Mhz , TClock = 166Mhz DRAM (DDR2) CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6 DRAM CS[0] base 0x00000000 size 256MB DRAM Total size 256MB 16bit width Addresses 10M - 0M are saved for the U-Boot usage. Mem malloc Initialization (10M - 7M): Done NAND:128 MB Flash: 0 kB CPU : Marvell Feroceon (Rev 1) Kernel address is 0x4640000. Streaming disabled Write allocate disabled USB 0: host mode PEX 0: interface detected no Link. Net: egiga0 [PRIME] Hit any key to stop autoboot: 0
Marvell>> setenv setenv' - try 'help' Marvell>> setenv serverip 192.168.1.112 Marvell>> setenv ipaddr 192.168.1.200 Marvell>> ping 192.168.1.112 Using egiga0 device host 192.168.1.112 is alive
Re: Debian on NSA320s - uart boot stock nsa310s u-boot July 30, 2015 09:41AM |
Registered: 8 years ago Posts: 295 |
Marvell>> setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootfstype=ext4' Marvell>> tftp 0x800000 nsa320s/uImage Using egiga0 device TFTP from server 192.168.1.112; our IP address is 192.168.1.200 Filename 'nsa320s/uImage'. Load address: 0x800000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ############# done Bytes transferred = 3061593 (2eb759 hex) Marvell>> tftp 0x1100000 nsa320s/uInitrd Using egiga0 device TFTP from server 192.168.1.112; our IP address is 192.168.1.200 Filename 'nsa320s/uInitrd'. Load address: 0x1100000 Loading: ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ################################################################# ########################## done Bytes transferred = 7119407 (6ca22f hex) Marvell>> bootm 0x800000 0x1100000
Re: Debian on NSA320s - uart boot stock nsa310s u-boot July 30, 2015 02:51PM |
Admin Registered: 13 years ago Posts: 18,581 |
Re: Debian on NSA320s - uart boot stock nsa310s u-boot July 30, 2015 03:25PM |
Registered: 8 years ago Posts: 295 |
Re: Debian on NSA320s - uart boot stock nsa310s u-boot July 30, 2015 03:41PM |
Admin Registered: 13 years ago Posts: 18,581 |
Re: Debian on NSA320s - uart boot stock nsa310s u-boot July 31, 2015 01:43AM |
Registered: 8 years ago Posts: 295 |
Re: Debian on NSA320s - uart boot stock nsa310s u-boot July 31, 2015 01:53AM |
Admin Registered: 13 years ago Posts: 18,581 |
Re: Debian on NSA320s - uart boot stock nsa310s u-boot July 31, 2015 02:05AM |
Registered: 8 years ago Posts: 295 |
Re: Debian on NSA320s - possible? July 31, 2015 04:46AM |
Registered: 8 years ago Posts: 295 |
[ ok ] Unmounting temporary filesystems...done. [ ok ] Deactivating swap...done. [ ok ] Unmounting local filesystems...done. [ 747.031241] EXT4-fs (sda3): re-mounted. Opts: (null) [info] Will now halt. logger: Will halt - now [ 749.222476] sd 2:0:0:0: [sda] Synchronizing SCSI cache [ 749.229184] reboot: Power down [ 752.418423] ------------[ cut here ]------------ [ 752.423036] WARNING: CPU: 0 PID: 4244 at drivers/power/reset/gpio-poweroff.c:45 SyS_reboot+0x14c/0x1f8() [ 752.432473] Modules linked in: nls_utf8 nls_cp437 vfat fat ipv6 adt7475 hwmon_vid evdev orion_wdt hmac mv_cesa uio_pdrv_genirq uio gpio_keys sg sd_mod uas usb_storage sata_mv libata fixed scsi_mod [ 752.450061] CPU: 0 PID: 4244 Comm: halt Not tainted 4.0.0-kirkwood-tld-2 #1 [ 752.456985] Hardware name: Marvell Kirkwood (Flattened Device Tree) [ 752.463248] [<c0014fcc>] (unwind_backtrace) from [<c00114dc>] (show_stack+0x10/0x14) [ 752.470973] [<c00114dc>] (show_stack) from [<c001dec4>] (warn_slowpath_common+0x88/0xb0) [ 752.479037] [<c001dec4>] (warn_slowpath_common) from [<c001df7c>] (warn_slowpath_null+0x18/0x20) [ 752.487788] [<c001df7c>] (warn_slowpath_null) from [<c003851c>] (SyS_reboot+0x14c/0x1f8) [ 752.495849] [<c003851c>] (SyS_reboot) from [<c000e060>] (ret_fast_syscall+0x0/0x30) [ 752.503470] ---[ end trace 1b39e37839214d26 ]---
Re: Debian on NSA320s - possible? July 31, 2015 07:44AM |
Admin Registered: 13 years ago Posts: 18,581 |
> [ ok ] Unmounting temporary filesystems...done. > [ ok ] Deactivating swap...done. > [ ok ] Unmounting local filesystems...done. > [ 747.031241] EXT4-fs (sda3): re-mounted. Opts: > (null) > [info] Will now halt. > logger: Will halt - now > [ 749.222476] sd 2:0:0:0: [sda] Synchronizing > SCSI cache > [ 749.229184] reboot: Power down > [ 752.418423] ------------[ cut here > ]------------ > [ 752.423036] WARNING: CPU: 0 PID: 4244 at > drivers/power/reset/gpio-poweroff.c:45 > SyS_reboot+0x14c/0x1f8() > [ 752.432473] Modules linked in: nls_utf8 > nls_cp437 vfat fat ipv6 adt7475 hwmon_vid evdev > orion_wdt hmac mv_cesa uio_pdrv_genirq uio > gpio_keys sg sd_mod uas usb_storage sata_mv libata > fixed scsi_mod > [ 752.450061] CPU: 0 PID: 4244 Comm: halt Not > tainted 4.0.0-kirkwood-tld-2 #1 > [ 752.456985] Hardware name: Marvell Kirkwood > (Flattened Device Tree) > [ 752.463248] [<c0014fcc>] (unwind_backtrace) > from [<c00114dc>] (show_stack+0x10/0x14) > [ 752.470973] [<c00114dc>] (show_stack) from > [<c001dec4>] (warn_slowpath_common+0x88/0xb0) > [ 752.479037] [<c001dec4>] (warn_slowpath_common) > from [<c001df7c>] (warn_slowpath_null+0x18/0x20) > [ 752.487788] [<c001df7c>] (warn_slowpath_null) > from [<c003851c>] (SyS_reboot+0x14c/0x1f8) > [ 752.495849] [<c003851c>] (SyS_reboot) from > [<c000e060>] (ret_fast_syscall+0x0/0x30) > [ 752.503470] ---[ end trace 1b39e37839214d26 > ]--- > >
Re: Debian on NSA320s - possible? August 11, 2015 08:18AM |
Registered: 8 years ago Posts: 295 |
U-Boot 1.1.4 (Jul 16 2009 - 21:02:16) Cloud Engines (3.4.16) U-Boot code: 00600000 -> 0067FFF0 BSS: -> 00690D60 Soc: MV88F6192 Rev 3 (DDR2) CPU running @ 1000Mhz L2 running @ 500Mhz SysClock = 0Mhz , TClock = 166Mhz DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6 DRAM CS[0] base 0x00000000 size 128MB DRAM Total size 128MB 16bit width Flash: 0 kB Addresses 8M - 0M are saved for the U-Boot usage. Mem malloc Initialization (8M - 7M): Done NAND:128 MB *** Warning - bad CRC or NAND, using default environment CPU : Marvell Feroceon (Rev 1) CLOUD ENGINES BOARD (GUESSED): REDSTONE:0.1 Streaming disabled Write allocate disabled USB 0: host mode PEX 0: interface detected no Link. Net: egiga0 [PRIME], egiga1 Hit any key to stop autoboot: 0
-- NAS EXPLORER -- _ _ ____ _ | | | | | __ ) ___ ___ | |_ | | | |___| _ \ / _ \ / _ \| __| | |_| |___| |_) | (_) | (_) | |_ \___/ |____/ \___/ \___/ \__| ** QSI BOARD: NAS-PLUG LE U-Boot 1.1.4 (Jun 10 2010 - 08:28:13) Marvell version: 3.4.27 QSI NAS version: 1.0.4 U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFB00 Soc: 88F6192 A1 (DDR2) CPU running @ 1000Mhz L2 running @ 500Mhz SysClock = 0Mhz , TClock = 166Mhz DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6 DRAM CS[0] base 0x00000000 size 128MB DRAM Total size 128MB 16bit width Addresses 8M - 0M are saved for the U-Boot usage. Mem malloc Initialization (8M - 7M): Done NAND:128 MB *** Warning - bad CRC or NAND, using default environment Flash: 0 kB CPU : Marvell Feroceon (Rev 1) Streaming disabled Write allocate disabled USB 0: host mode PEX 0: interface detected no Link. Net: egiga0 [PRIME] <Explorer> Enter USB firmware instllation by RESET IO. USB: scanning bus for devices... 2 USB Device(s) found 0 Storage Device(s) found <Explorer> Firmware installation error(2)! <Explorer> Please power off system retry again!
Re: Debian on NSA320s - possible? August 11, 2015 03:05PM |
Admin Registered: 13 years ago Posts: 18,581 |
Re: Debian on NSA320s - possible? August 11, 2015 04:18PM |
Registered: 8 years ago Posts: 295 |
Re: Debian on NSA320s - possible? August 11, 2015 04:30PM |
Admin Registered: 13 years ago Posts: 18,581 |
Quote
> I'm guessing the remaining problem is stock u-boot
> on NSA320s does not load kernel from USB? so the
> behavior is different between stock NSA310s u-boot
> in NAND and stock NSA320s u-boot in NAND?
stock NSA320s and NSA310s U-Boot behave the same un NSA320s
Re: Debian on NSA320s - possible? August 11, 2015 04:47PM |
Registered: 8 years ago Posts: 295 |
./kwboot -t -B 115200 /dev/ttyUSB0 -b u-boot-1.1.4-bodhi.nsa310s.uart.bin -p Sending boot message. Please reboot the target...\ Sending boot image... 0 % [......................................................................] 1 % [......................................................................] 3 % [......................................................................] 5 % [......................................................................] 7 % [......................................................................] 9 % [......................................................................] 11 % [......................................................................] 13 % [......................................................................] 15 % [......................................................................] 16 % [......................................................................] 18 % [......................................................................] 20 % [......................................................................] 22 % [......................................................................] 24 % [......................................................................] 26 % [......................................................................] 28 % [......................................................................] 30 % [......................................................................] 32 % [......................................................................] 33 % [......................................................................] 35 % [......................................................................] 37 % [......................................................................] 39 % [......................................................................] 41 % [......................................................................] 43 % [......................................................................] 45 % [......................................................................] 47 % [......................................................................] 49 % [......................................................................] 50 % [......................................................................] 52 % [......................................................................] 54 % [......................................................................] 56 % [......................................................................] 58 % [......................................................................] 60 % [......................................................................] 62 % [......................................................................] 64 % [......................................................................] 65 % [......................................................................] 67 % [......................................................................] 69 % [......................................................................] 71 % [......................................................................] 73 % [......................................................................] 75 % [......................................................................] 77 % [......................................................................] 79 % [......................................................................] 81 % [......................................................................] 82 % [......................................................................] 84 % [......................................................................] 86 % [......................................................................] 88 % [......................................................................] 90 % [......................................................................] 92 % [......................................................................] 94 % [......................................................................] 96 % [......................................................................] 97 % [......................................................................] 99 % [.......] [Type Ctrl-\ + c to quit] __ __ _ _ | \/ | __ _ _ ____ _____| | | | |\/| |/ _` | '__\ \ / / _ \ | | | | | | (_| | | \ V / __/ | | |_| |_|\__,_|_| \_/ \___|_|_| _ _ ____ _ | | | | | __ ) ___ ___ | |_ | | | |___| _ \ / _ \ / _ \| __| | |_| |___| |_) | (_) | (_) | |_ \___/ |____/ \___/ \___/ \__| ** MARVELL BOARD: DB6702A-GMtech LE U-Boot 1.1.4 (Jul 28 2015 - 21:10:06) Marvell version: 3.6.0 U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CFB00 Soc: 88F6702 A1 CPU running @ 1000Mhz L2 running @ 500Mhz SysClock = 400Mhz , TClock = 166Mhz DRAM (DDR2) CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6 DRAM CS[0] base 0x00000000 size 256MB DRAM Total size 256MB 16bit width Addresses 10M - 0M are saved for the U-Boot usage. Mem malloc Initialization (10M - 7M): Done NAND:128 MB Flash: 0 kB CPU : Marvell Feroceon (Rev 1) Kernel address is 0xc80000. Streaming disabled Write allocate disabled USB 0: host mode PEX 0: interface detected no Link. Net: egiga0 [PRIME] Hit any key to stop autoboot: 0 Marvell>> Marvell>> Marvell>> Marvell>> usb start (Re)start USB... USB: scanning bus for devices... 2 USB Device(s) found Waiting for storage device(s) to settle before scanning... 0 Storage Device(s) found Marvell>> usb tree Device Tree: 1 Hub (480MBit/s, 0mA) | Marvell EHCI | +-2 Hub (480MBit/s, 100mA) USB2.0 Hub Marvell>> usb reset (Re)start USB... USB: scanning bus for devices... 1 USB Device(s) found Waiting for storage device(s) to settle before scanning... 0 Storage Device(s) found Marvell>> usb tree Device Tree: 1 Hub (12MBit/s, 0mA) Marvell EHCI Marvell>>Edited 1 time(s). Last edit at 08/11/2015 05:08PM by pengu.
Re: Debian on NSA320s - possible? August 11, 2015 05:25PM |
Admin Registered: 13 years ago Posts: 18,581 |
Marvell>> usb start (Re)start USB... USB: scanning bus for devices... 2 USB Device(s) found Waiting for storage device(s) to settle before scanning... 0 Storage Device(s) foundDo
> reset
Re: Debian on NSA320s - possible? August 11, 2015 05:49PM |
Registered: 8 years ago Posts: 295 |
> Marvell>> usb start > (Re)start USB... > USB: scanning bus for devices... 2 USB Device(s) > found > Waiting for storage device(s) to settle before > scanning... > 0 Storage Device(s) found >> Do
> > reset >>
Re: Debian on NSA320s - possible? August 11, 2015 06:18PM |
Admin Registered: 13 years ago Posts: 18,581 |
Quote
> yes, USB boot is no problem on NSA310s
Quote
> no matter wich stick I use, it isn't recognized.
> (same on NSA325v2 with stock U-Boot)
>
> on both devices, the following is also the same:
>
> the first "usb start" shows no usb storage even if
> I plug one in every usb port
> second: when issuing "usb start" again .. _or_
> "usb reset" the usb subsystem breaks down
> you'll see one device, not two or three
>
> this could only be fixed by resetting the box
Re: Debian on NSA320s - possible? August 11, 2015 06:32PM |
Admin Registered: 13 years ago Posts: 18,581 |
mw.l f1010100 0020c000 usb start