Quantcast
Channel: Linux Device Hacking - Debian
Viewing all 26628 articles
Browse latest View live

Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package

$
0
0
Hi again,

You can check the sourcecode: https://www.dropbox.com/s/4c9jhtajmzxqcb6/linux-4.4.121-tommy.tar.gz?dl=0

blackdevil,
I have no idea what is wrong. The pcie driver is picky. Today in my box after few reboots pcie&usb stopped working, I unpluged all cables (power, ethernet, uart cable), plugged again and it resumed working. I am trying to find out any pattern when it is working and when is not, but I can't.

Mark,
In my box me powering on with a button just works, I have no issues with that.
I attached two harddrives and only one got initialized - so I can confirm it is a problem with sata driver. Did you have any patch for this? You mentioned this earlier.

Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package

$
0
0
tommy79 Wrote:
-------------------------------------------------------
> Mark,
> In my box me powering on with a button just works,
> I have no issues with that.
> I attached two harddrives and only one got
> initialized - so I can confirm it is a problem
> with sata driver. Did you have any patch for this?
> You mentioned this earlier.

Adding in the kernel's usual SATA Port Multiplier support is what brought all my drives online:
CONFIG_SATA_PMP=y

Thanks for the source! I'll build a kernel with it right away (and re-test the power button issue).

Mark

Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package

$
0
0
Mark,
I enabled this CONFIG_SATA_PMP but the result was that none of the drives got recognized....

Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package

$
0
0
tommy79 Wrote:
-------------------------------------------------------
> Mark,
> I enabled this CONFIG_SATA_PMP but the result was
> that none of the drives got recognized....

That's a bit unexpected! The port multiplier was the key to getting my drives going. I don't know why enabling support might make your drives unrecognized?

I posted my .120 config a few posts ago if you'd like to double-check my work.

Mark

Re: Tutorial of native sata boot for pogoplug pro

$
0
0
Bodhi, Ok I believe I have successfully create the usb rootfs;
didn't appear to be any issues:)


I did alter some envs for the:
setenv ethaddr 00:**:**:**:**:**
setenv ipaddr 192.168.**.*** ,
and setenv serverip 192.168.**.***

I am omitting the real numbers for security:)

here is the printenv thus far:

 OX820 # printenv
SET_dtb=fdt addr ${fdtaddr} ; fdt header
autoload=no
baudrate=115200
bootcmd=run ideboot
bootcmd_l=set_bootargs_lede
bootdelay=3
bootnew=bootm 60000000 - 61000000
bootold=bootm 60000000
console=console=ttyS0,115200n8
ethact=mii0
ethaddr=00:**:**:**:**:**
ext2_dtb=ext2load ide 0:2 61000000 /boot/dts/ox820-pogoplug-classic.dtb
ext2_ideboot=run ext2_uimage ; run ext2_dtb ; run SET_dtb ; run bootnew
ext2_uimage=ext2load ide 0:2 60000000 /boot/uImage
ext4_dtb=ext4load ide 0:2 61000000 /boot/dts/ox820-pogoplug-classic.dtb
ext4_ideboot=run ext4_uimage ; run ext4_dtb ; run SET_dtb ; run bootnew
ext4_uimage=ext4load ide 0:2 60000000 /boot/uImage
fdtaddr=61000000
filesize=1b79
ideboot=run ext4_ideboot
idebootold=${loadold} ;${bootold}
imgaddr=60000000
ipaddr=192.168.**.***
keypressed=1
mtdids=nand0=41000000.nand
mtdparts=mtdparts=orion_nand:0x100000@0x0(u-boot),-@0x100000(ubi)
nand_erasesize=20000
nand_oobsize=40
nand_writesize=800
netcon=echo switch to net console;setenv stderr nc;setenv stdin nc;setenv stdout nc;echo switch to net console
preboot=run safeboot
serialcon=echo switch to serial console;setenv stderr serial;setenv stdin serial;setenv stdout serial;echo switch to serial console
serverip=192.168.**.***
set_bootargs_lede=setenv bootargs console=ttyS0,115200 $mtdparts
stderr=serial
stdin=serial
stdout=serial
updboot=bootp;tftp 60000000 u-boot.img;ide write 60000000 400 400

Environment size: 1469/16380 bytes
OX820 #


gonna just hold up here until you get back to me, thanks a ton! Ecowarrior108

Re: Debian Installation on Thecus N2350 (Marvell Armada 385)

$
0
0
lordzahl,

> You mean information in GPL source? You may be
> right that the stock dts nand configuration is
> actually not valid.

Right, now that I looked in my NSA326 notes. The NFC NAND is actually supported in mainline as armada-nand. So the NSA326 had a simple NAND flash defintion. We just have to specify that in the bootargs.

Re: Tutorial of native sata boot for pogoplug pro

$
0
0
echowarrior108,

With the HDD and the USB rootfs attached to the Pogo. Power up, interrupt serial console at count down, and
setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10'
setenv uinitrd_addr 0x60e00000
setenv uimage_addr 0x60500000
setenv dtb_addr 0x62c00000
setenv dt_load_dtb 'ext2load usb 0:1 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb'
setenv dt_load_initrd 'ext2load usb 0:1 $uinitrd_addr /boot/uInitrd'
setenv dt_load_uimage 'ext2load usb 0:1 $uimage_addr /boot/uImage'
setenv dt_bootm 'bootm $uimage_addr $uinitrd_addr $dtb_addr'
setenv dt_usb_boot 'run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm'
setenv dt_usb_bootcmd 'run usb_set_bootargs; run dt_usb_boot'
setenv dt_bootcmd_usb 'usb start; run dt_usb_bootcmd; usb stop; reset'
setenv bootcmd 'run dt_bootcmd_usb'

and then boot

boot

Post the entire serial console log here.

Re: Debian Installation on Thecus N2350 (Marvell Armada 385)

$
0
0
Quote

Ok,
went the kwboot way again. This took 2h (thats not really normal, is it? 4MB at 115200 baud should be faster?! Notice the "-q 0 -s 1". This makes the timing easier in my experience.
[kwboot]$ ../kwboot-x86_64 -f -t -B 115200 /dev/ttyUSB0 -b u-boot-a38x-spi-uart.bin -q 0 -s 1
Sending boot message. Please reboot the target.../
Sending boot image...
0 % [......................................................................]
0 % [......................................................................]
1 % [......................................................................]

<snip>

95 % [......................................................................]
96 % [......................................................................]
97 % [......................................................................]
98 % [......................................................................]
98 % [......................................................................]
99 % [..........]
[Type Ctrl-\ + c to quit]

Then nothing happened and i pressed the combination to quit. I opened a new serial console, but there was nothing as well. So i rebooted and it booted up normally.

That is not so good. Perhaps we need to build our own UART u-boot.

Re: Debian Installation on Thecus N2350 (Marvell Armada 385)

$
0
0
Here is DTB version 5 tarball for testing.

I've modified the NAND definition to use armada-nand, similar to the NAS326 and WD MyCloud boxes. And modified bootargs.


Copy the attached DTB to your USB rootfs /boot/dts/ folder.

Power up, interrupt serial console and set the envs (note that we are not loading uInitrd). We want to ignore that for now and see if the USB drive is powered up OK first.

setenv mtdparts 'mtdparts= armada-nand:-(ubifs);spi0.0:0x00100000(uboot),0x00010000@0x00100000(uboot_env)'
setenv load_dtb_addr 0x1000000
setenv load_initrd_addr 0x2900000
setenv load_image_addr 0x02000000
setenv dtbfilename armada-385-thecus-n2350.dtb
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; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/$dtbfilename; run usb_set_bootargs; bootz $load_image_addr - $load_dtb_addr'
usb start
run usb_bootcmd

Re: (WIP) Linux Kernel and rootfs 4.14.24 for Seagate Business Storage NAS (CNS3xxx) package

$
0
0
tommy79 Wrote:
-------------------------------------------------------
> Mark,
> I enabled this CONFIG_SATA_PMP but the result was
> that none of the drives got recognized....

I built a kernel with your config last night and enabled CONFIG_SATA_PMP and all four drives came online. Is there something else your system needs?

Thanks again for the source code and kernel config! I've been happily using USB since last night to speed up my file restoration. :)

Mark

Re: Tutorial of native sata boot for pogoplug pro

$
0
0
Hi Bodhi !!!

Here is what happened!

  # picocom -b 115200 /dev/ttyUSB0
picocom v2.2

port is        : /dev/ttyUSB0
flowcontrol    : none
baudrate is    : 115200
parity is      : none
databits are   : 8
stopbits are   : 1
escape is      : C-a
local echo is  : no
noinit is      : no
noreset is     : no
nolock is      : no
send_cmd is    : sz -vv
receive_cmd is : rz -vv -E
imap is        : 
omap is        : 
emap is        : crcrlf,delbs,

Type [C-a] [C-h] to see available commands

Terminal ready
�
U-Boot SPL 2013.10-ga72eb8f-dirty (Feb 19 2014 - 15:21:12)
  Boot device: SATA
Attempting to set PLLA to 800 MHz ...
  plla_ctrl0 : 0000030a
  plla_ctrl1 : 00400000
  plla_ctrl2 : 007f0068
  plla_ctrl3 : 00000193

PLLA Set
Bus 0: OK 
  Device 0: 
reading bootargs.bin
reading u-boot.img
reading u-boot.img


U-Boot 2013.10-ga72eb8f-dirty (Feb 19 2014 - 15:21:12) for OXNAS

DRAM:  128 MiB
IDE:   Bus 0: OK 
  Device 0: Model: WDC WD7500BPKT-75PK4T0 Firm: 01.01A01 Ser#:  WD-WXD1A61R3456
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 715404.8 MB = 698.6 GB (1465149168 x 512)
NAND:  128 MiB
reading u-boot.env
In:    serial
Out:   serial
Err:   serial
Net:   mii0
## Error: "safeboot" not defined
Hit any key to stop autoboot:  0 
OX820 # setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10'
OX820 # setenv uinitrd_addr 0x60e00000
OX820 # setenv uimage_addr 0x60500000
OX820 # setenv dtb_addr 0x62c00000
OX820 # setenv dt_load_dtb 'ext2load usb 0:1 $dtb_addr /boot/dts/ox820-pogoplug-pro.dtb'
OX820 # setenv dt_load_initrd 'ext2load usb 0:1 $uinitrd_addr /boot/uInitrd'
OX820 # setenv dt_load_uimage 'ext2load usb 0:1 $uimage_addr /boot/uImage'
OX820 # setenv dt_bootm 'bootm $uimage_addr $uinitrd_addr $dtb_addr'
OX820 # setenv dt_usb_boot 'run dt_load_uimage; run dt_load_initrd; run dt_load_dtb; run dt_bootm'
OX820 # setenv dt_usb_bootcmd 'run usb_set_bootargs; run dt_usb_boot'
OX820 # setenv dt_bootcmd_usb 'usb start; run dt_usb_bootcmd; usb stop; reset'
OX820 # setenv bootcmd 'run dt_bootcmd_usb'
OX820 # boot
(Re)start 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
4621824 bytes read in 526 ms (8.4 MiB/s)
4594376 bytes read in 561 ms (7.8 MiB/s)
7067 bytes read in 259 ms (26.4 KiB/s)
## Booting kernel from Legacy Image at 60500000 ...
   Image Name:   Linux-4.4.117-oxnas-tld-1
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4621760 Bytes = 4.4 MiB
   Load Address: 60008000
   Entry Point:  60008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 60e00000 ...
   Image Name:   initramfs-4.4.117-oxnas-tld-1
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    4594312 Bytes = 4.4 MiB
   Load Address: 60000000
   Entry Point:  60000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 62c00000
   Booting using the fdt blob at 0x62c00000
   Loading Kernel Image ... OK
   Loading Ramdisk to 679c9000, end 67e2aa88 ... OK
   Loading Device Tree to 679c4000, end 679c8b9a ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.4.54-oxnas-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #2 SMP PREEMPT Sat Mar 18 23:09:58 PDT 2017
[    0.000000] CPU: ARMv6-compatible processor [410fb025] revision 5 (ARMv7), cr=00c5787d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] Machine model: Pogoplug V3 Pro
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] DT missing boot CPU MPIDR[23:0], fall back to default cpu_logical_map
[    0.000000] PERCPU: Embedded 12 pages/cpu @c7eda000 s17696 r8192 d23264 u49152
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 32512
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10
[    0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[    0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Memory: 116204K/131072K available (6410K kernel code, 288K rwdata, 1908K rodata, 224K init, 247K bss, 14868K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xc8800000 - 0xff800000   ( 880 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xc8000000   ( 128 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0827e14   (8320 kB)
[    0.000000]       .init : 0xc0828000 - 0xc0860000   ( 224 kB)
[    0.000000]       .data : 0xc0860000 - 0xc08a8378   ( 289 kB)
[    0.000000]        .bss : 0xc08a8378 - 0xc08e6350   ( 248 kB)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] NR_IRQS:160
[    0.000000] clocksource: rps_clocksource_timer: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 19112603332 ns
[    0.000007] sched_clock: 24 bits at 390kHz, resolution 2560ns, wraps every 21474835200ns
[    0.000174] Console: colour dummy device 80x30
[    0.000209] Calibrating delay loop... 319.48 BogoMIPS (lpj=1597440)
[    0.050030] pid_max: default: 32768 minimum: 301
[    0.050209] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.050227] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.051084] Initializing cgroup subsys net_cls
[    0.051169] CPU: Testing write buffer coherency: ok
[    0.051612] Setting up static identity map for 0x60008220 - 0x60008258
[    0.190149] Brought up 2 CPUs
[    0.190172] SMP: Total of 2 processors activated (638.97 BogoMIPS).
[    0.190999] devtmpfs: initialized
[    0.196700] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.196751] futex hash table entries: 512 (order: 2, 16384 bytes)
[    0.197073] prandom: seed boundary self test passed
[    0.201766] prandom: 100 self tests passed
[    0.201794] pinctrl core: initialized pinctrl subsystem
[    0.202718] NET: Registered protocol family 16
[    0.203294] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.230018] cpuidle: using governor ladder
[    0.260011] cpuidle: using governor menu
[    0.265364] gpio-oxnas 44000000.gpio: at address c8848000
[    0.265784] gpio-oxnas 44100000.gpio: at address c884a000
[    0.266378] pinctrl-oxnas pinctrl: initialized OX820 pinctrl driver
[    0.390679] oxnas-pcie 47c00000.pcie-controller: PCIe version/deviceID 0x82510b5
[    0.390799] oxnas-pcie 47c00000.pcie-controller: link up
[    0.391147] oxnas-pcie 47c00000.pcie-controller: PCI host bridge to bus 0000:00
[    0.391175] pci_bus 0000:00: root bus resource [mem 0x48000000-0x49ffffff]
[    0.391193] pci_bus 0000:00: root bus resource [mem 0x4a000000-0x4bdfffff pref]
[    0.391208] pci_bus 0000:00: root bus resource [io  0x0000-0xfffff]
[    0.391226] pci_bus 0000:00: root bus resource [bus 00-7f]
[    0.391810] PCI: bus0: Fast back to back transfers disabled
[    0.391907] pci 0000:00:00.0: BAR 0: assigned [mem 0x48000000-0x4800ffff]
[    0.392389] vgaarb: loaded
[    0.392903] SCSI subsystem initialized
[    0.393835] usbcore: registered new interface driver usbfs
[    0.393948] usbcore: registered new interface driver hub
[    0.394112] usbcore: registered new device driver usb
[    0.394334] pps_core: LinuxPPS API ver. 1 registered
[    0.394350] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    0.394401] PTP clock support registered
[    0.396641] clocksource: Switched to clocksource rps_clocksource_timer
[    0.416322] NET: Registered protocol family 2
[    0.417272] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.417313] TCP bind hash table entries: 1024 (order: 1, 8192 bytes)
[    0.417351] TCP: Hash tables configured (established 1024 bind 1024)
[    0.417454] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.417500] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.417779] NET: Registered protocol family 1
[    0.418347] RPC: Registered named UNIX socket transport module.
[    0.418370] RPC: Registered udp transport module.
[    0.418380] RPC: Registered tcp transport module.
[    0.418391] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.418813] Unpacking initramfs...
[    0.925539] Freeing initrd memory: 4488K (c79c9000 - c7e2b000)
[    0.927150] Initialise system trusted keyring
[    0.953879] zbud: loaded
[    0.971507] NFS: Registering the id_resolver key type
[    0.971584] Key type id_resolver registered
[    0.971599] Key type id_legacy registered
[    0.971642] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.971665] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.972636] fuse init (API version 7.23)
[    0.974781] Key type big_key registered
[    1.056302] Key type asymmetric registered
[    1.056337] Asymmetric key parser 'x509' registered
[    1.056476] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    1.056504] io scheduler noop registered
[    1.056527] io scheduler deadline registered
[    1.056593] io scheduler cfq registered (default)
[    1.057280] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    1.058874] console [ttyS0] disabled
[    1.058977] 44200000.uart: ttyS0 at MMIO 0x44200000 (irq = 6, base_baud = 390625) is a 16550A
[    1.638430] console [ttyS0] enabled
[    1.654005] loop: module loaded
[    1.659217] scsi host0: sata_oxnas
[    1.663119] ata1: SATA max UDMA/133 irq 7
[    1.667215] sata_oxnas: resetting SATA core
[    1.668285] nand: Could not find valid ONFI parameter page; aborting
[    1.668326] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    1.668334] nand: Hynix NAND 128MiB 3,3V 8-bit
[    1.668341] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    1.668359] Scanning device for bad blocks
[    1.688686] Bad eraseblock 249 at 0x000001f20000
[    1.751413] 2 ofpart partitions found on MTD device 41000000.nand
[    1.757483] Creating 2 MTD partitions on "41000000.nand":
[    1.762897] 0x000000000000-0x000000e00000 : "boot"
[    1.769710] 0x000000e00000-0x000008000000 : "data"
[    1.777131] oxnas-gmac 40400000.ethernet: no reset control found
[    1.783157] stmmac - user ID: 0x12, Synopsys ID: 0x35
[    1.788180]  Ring mode enabled
[    1.791234]  DMA HW capability register supported
[    1.795742]  Enhanced/Alternate descriptors
[    1.800071] 	Enabled extended descriptors
[    1.804075]  RX Checksum Offload Engine supported (type 2)
[    1.809528]  TX Checksum insertion supported
[    1.813788]  Wake-Up On Lan supported
[    1.817433]  Enable RX Mitigation via HW Watchdog Timer
[    1.838786] libphy: stmmac: probed
[    1.842252] eth%d: PHY ID 001cc914 at 0 IRQ POLL (stmmac-0:00) active
[    1.848665] eth%d: PHY ID 001cc914 at 3 IRQ POLL (stmmac-0:03)
[    1.855367] PPP generic driver version 2.4.2
[    1.860154] rt2800pci 0000:00:00.0: enabling device (0140 -> 0142)
[    1.866511] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 3090, rev 3213 detected
[    1.877790] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 0005 detected
[    1.887078] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    1.893642] ehci-pci: EHCI PCI platform driver
[    1.898478] oxnas-ehci 40200100.ehci: EHCI Host Controller
[    1.904038] oxnas-ehci 40200100.ehci: new USB bus registered, assigned bus number 1
[    1.911877] oxnas-ehci 40200100.ehci: irq 10, io mem 0x40200100
[    1.930150] oxnas-ehci 40200100.ehci: USB 2.0 started, EHCI 1.00
[    1.936471] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    1.943270] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    1.950484] usb usb1: Product: EHCI Host Controller
[    1.955340] usb usb1: Manufacturer: Linux 4.4.54-oxnas-tld-1 ehci_hcd
[    1.961768] usb usb1: SerialNumber: 40200100.ehci
[    1.967518] hub 1-0:1.0: USB hub found
[    1.971389] hub 1-0:1.0: 2 ports detected
[    1.976634] usbcore: registered new interface driver cdc_acm
[    1.982318] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters
[    1.990433] usbcore: registered new interface driver cdc_wdm
[    1.996234] usbcore: registered new interface driver usb-storage
[    2.002462] usbcore: registered new interface driver usbserial
[    2.008335] usbcore: registered new interface driver usbserial_generic
[    2.015045] usbserial: USB Serial support registered for generic
[    2.021542] mousedev: PS/2 mouse device common for all mice
[    2.027284] i2c /dev entries driver
[    2.032225] hidraw: raw HID events driver (C) Jiri Kosina
[    2.037880] usbcore: registered new interface driver usbhid
[    2.043466] usbhid: USB HID core driver
[    2.049446] NET: Registered protocol family 10
[    2.055503] sit: IPv6 over IPv4 tunneling driver
[    2.061327] NET: Registered protocol family 17
[    2.065917] Key type dns_resolver registered
[    2.071797] registered taskstats version 1
[    2.075919] Loading compiled-in X.509 certificates
[    2.080852] zswap: loaded using pool lzo/zbud
[    2.101045] Key type encrypted registered
[    2.220006] ata1: SATA link up 1.5 Gbps (SStatus 113 SControl 310)
[    2.290140] usb 1-1: new high-speed USB device number 2 using oxnas-ehci
[    2.442030] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    2.448709] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    2.455846] usb 1-1: Product: USB2.0 Hub
[    2.460884] hub 1-1:1.0: USB hub found
[    2.465034] hub 1-1:1.0: 4 ports detected
[    2.564979] ata1.00: ATA-8: WDC WD7500BPKT-75PK4T0, 01.01A01, max UDMA/133
[    2.571873] ata1.00: 1465149168 sectors, multi 0: LBA48 NCQ (depth 0/32)
[    2.605644] ata1.00: configured for UDMA/133
[    2.650416] scsi 0:0:0:0: Direct-Access     ATA      WDC WD7500BPKT-7 1A01 PQ: 0 ANSI: 5
[    2.660177] sd 0:0:0:0: [sda] 1465149168 512-byte logical blocks: (750 GB/699 GiB)
[    2.667911] sd 0:0:0:0: [sda] 4096-byte physical blocks
[    2.673710] sd 0:0:0:0: [sda] Write Protect is off
[    2.678714] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    2.698280]  sda: sda1 sda2 sda3
[    2.704302] sd 0:0:0:0: [sda] Attached SCSI disk
[    2.709271] Freeing unused kernel memory: 224K (c0828000 - c0860000)
[    2.760302] usb 1-1.3: new high-speed USB device number 3 using oxnas-ehci
Loading, please wait...
[    2.872048] usb 1-1.3: New USB device found, idVendor=0781, idProduct=5530
[    2.878906] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[    2.886292] usb 1-1.3: Product: Cruzer
[    2.890027] usb 1-1.3: Manufacturer: SanDisk
[    2.894336] usb 1-1.3: SerialNumber: 20053248121181F0AC47
[    2.901278] usb-storage 1-1.3:1.0: USB Mass Storage device detected
starting version 232
[    2.917532] random: systemd-udevd: uninitialized urandom read (16 bytes read, 9 bits of entropy available)
[    2.927354] scsi host1: usb-storage 1-1.3:1.0
[    2.930639] random: udevadm: uninitialized urandom read (16 bytes read, 9 bits of entropy available)
[    2.933122] random: udevadm: uninitialized urandom read (16 bytes read, 9 bits of entropy available)
[    2.933314] random: udevadm: uninitialized urandom read (16 bytes read, 9 bits of entropy available)
[    2.934558] random: udevadm: uninitialized urandom read (16 bytes read, 9 bits of entropy available)
[    2.935651] random: udevadm: uninitialized urandom read (16 bytes read, 9 bits of entropy available)
[    2.936860] random: udevadm: uninitialized urandom read (16 bytes read, 9 bits of entropy available)
[    2.937955] random: udevadm: uninitialized urandom read (16 bytes read, 9 bits of entropy available)
[    2.939102] random: udevadm: uninitialized urandom read (16 bytes read, 9 bits of entropy available)
[    2.940405] random: udevadm: uninitialized urandom read (16 bytes read, 9 bits of entropy available)
[    3.230338] usbcore: registered new interface driver uas
[    3.317035] rt2800pci 0000:00:00.0 wlp0s0: renamed from wlan0
Begin: Loading essential drivers ... done.
[    4.031790] scsi 1:0:0:0: Direct-Access     SanDisk  Cruzer           1.20 PQ: 0 ANSI: 5
[    4.047449] sd 1:0:0:0: [sdb] 15633408 512-byte logical blocks: (8.00 GB/7.45 GiB)
[    4.062848] sd 1:0:0:0: [sdb] Write Protect is off
[    4.069158] sd 1:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[    4.090608]  sdb: sdb1
[    4.103628] sd 1:0:0:0: [sdb] Attached SCSI removable disk
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
Begin: Will now check root file system ... fsck from util-linux 2.29.2
[/sbin/fsck.ext4 (1) -- /dev/sdb1] fsck.ext4 -a -C0 /dev/sdb1 
rootfs: recovering journal
rootfs: clean, 14023/488640 files, 177715/1953792 blocks
done.
[   15.743902] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.88 booting
[info] Using makefile-style concurrent boot in runlevel S.
[....] Starting the hotplug events dispatcher: systemd-udevdstarting version 232
. ok 
[....] Synthesizing the initial hotplug events...[   18.470830] random: nonblocking pool is initialized
done.
[ ok ] Waiting for /dev to be fully populated...done.
[ ok ] Activating swap...done.
[   20.077788] EXT4-fs (sdb1): re-mounted. Opts: errors=remount-ro
[ ok ] Activating lvm and md swap...done.
[....] Checking file systems...fsck from util-linux 2.29.2
done.
[ ok ] Loading kernel modules...done.
[ ok ] Cleaning up temporary files... /tmp.
[ ok ] Mounting local filesystems...done.
[ ok ] Activating swapfile swap...done.
[ ok ] Cleaning up temporary files....
[ ok ] Setting kernel variables...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.3.5
Copyright 2004-2016 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:25:31:01:0c:d5
Sending on   LPF/eth0/00:25:31:01:0c:d5
Sending on   Socket/fallback
DHCPREQUEST of 192.168.0.16 on eth0 to 255.255.255.255 port 67
[   28.970316] oxnas-gmac 40400000.ethernet eth0: Link is Up - 1Gbps/Full - flow control off
DHCPREQUEST of 192.168.0.16 on eth0 to 255.255.255.255 port 67
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 6
DHCPREQUEST of 192.168.5.97 on eth0 to 255.255.255.255 port 67
DHCPOFFER of 192.168.5.97 from 192.168.5.72
DHCPACK of 192.168.5.97 from 192.168.5.72
bound to 192.168.5.97 -- renewal in 20161 seconds.
done.
[ ok ] Starting RPC port mapper daemon: rpcbind.
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Cleaning up temporary files....
INIT: Entering runlevel: 2
[info] Using makefile-style concurrent boot in runlevel 2.
[....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd...
1254 (syslogd)
. ok 
[ ok ] Starting NFS common utilities: statd idmapd.
[ ok ] Starting system message bus: dbus.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1250 (klogd)
. ok 
[ ok ] Starting NTP server: ntpd.

Debian GNU/Linux 9 debian ttyS0

debian login: root
Password: 
Last login: Tue Aug  1 17:15:07 PDT 2017 from 192.168.0.220 on pts/0
Linux debian 4.4.54-oxnas-tld-1 #2 SMP PREEMPT Sat Mar 18 23:09:58 PDT 2017 armv6l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.


so far so good!!!! got a few things to do so I will wait to see what is next:) but we are in root@Debian !!!

Added note, I saved the setenv you posted after a few tries to make sure it worked, this now works I can now get to root@debian but am still using the sata to startup as it won't boot without the sata connection. I am however running to an issue with copy/paste from terminal. do you have a link to fix that on ubuntu 17.10?

Thanks Echowarrior108

Re: Debian Installation on Thecus N2350 (Marvell Armada 385)

$
0
0
Hi bodhi,
Thanks for the update.

bodhi Wrote:
-------------------------------------------------------
> Here is DTB version 5 tarball for testing.
Here is the result, still no change.
Are you sure "num-cs = <1>;" is correct?
The dts from the gpl source states "0". This is the chip select number, right?
I tried to change it myself, but i am missing the "dt-bindings" stuff.

edit: Fixed the log.

BootROM - 1.73
Booting from SPI flash


General initialization - Version: 1.0.0
AVS selection from EFUSE disabled (Skip reading EFUSE values)
Overriding default AVS value to: 0x23
Detected Device ID 6820
High speed PHY - Version: 2.0

Init Customer board board SerDes lanes topology details:
 | Lane # | Speed|    Type     |
 ------------------------------|
 |   0    |  0   |  SGMII0     |
 |   1    |  3   |  SATA0      |
 |   2    |  3   |  SATA1      |
 |   4    |  5   |  USB3 HOST0 |
 |   5    |  5   |  USB3 HOST1 |
 -------------------------------
High speed PHY - Ended Successfully
DDR4 Training Sequence - Ver TIP-0.23.(Sublib 0.8)0
DDR4 Training Sequence - Switching XBAR Window to FastPath Window 
DDR4 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED

 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_ 
        | | | |___|  _ \ / _ \ / _ \| __| 
        | |_| |___| |_) | (_) | (_) | |_ 
         \___/    |____/ \___/ \___/ \__| 
 ** LOADER **


U-Boot 2013.01 (Aug 09 2017 - 16:51:03) Marvell version: 2015_T1.0p18

Board: A38x-Customer0-Thecus-N2350
SoC:   MV88F6820 Rev A0
       running 2 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1066 [MHz]
       L2     @ 800 [MHz]
       TClock @ 200 [MHz]
       DDR4    @ 800 [MHz]
       DDR4 32 Bit Width,FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  1 GiB
NAND:  512 MiB
MMC:   mv_sdh: 0
SF: Detected MX25L3205D with page size 64 KiB, total 4 MiB
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode

Map:   Code:			0x3fed0000:0x3ff959e4
       BSS:			0x3ffef104
       Stack:			0x3f9bff20
       Heap:			0x3f9c0000:0x3fed0000
       U-Boot Environment:	0x00100000:0x00110000 (SPI)

Board configuration detected:
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   SGMII   |     0x01     |
egiga0 [PRIME]
Hit any key to stop autoboot:  3 ??? 0
Marvell>> setenv mtdparts 'mtdparts= armada-nand:-(ubifs);spi0.0:0x00100000(uboot),0x00010000@0x00100000(uboot_env)'
Marvell>> setenv load_dtb_addr 0x1000000
Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv dtbfilename armada-385-thecus-n2350.dtb
Marvell>> setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/$dtbfilename; run usb_set_bootargs; bootz $load_image_addr - $load_dtb_addr'
Marvell>> usb start
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : Anson:xhci_usb_lowlevel_init--1--index=0
Anson:xhci_usb_lowlevel_init--2
Anson:Register 2000120 NbrPorts 2
USB XHCI 1.00
Anson:xhci_usb_lowlevel_init--3
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
Marvell>> run usb_bootcmd
Booting from USB ...
4141288 bytes read in 503 ms (7.9 MiB/s)
18686 bytes read in 662 ms (27.3 KiB/s)
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Device Tree to 00ff8000, end 00fff8fd ... OK

   Skipping Device Tree update ('fdt_skip_update' = yes)

Limit DDR size at 3GB due to power of 2 requirement of Address decoding

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.1-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4)) #1 SMP PREEMPT Sat Nov 25 00:32:53 PST 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Thecus N2350
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] random: fast init done
[    0.000000] percpu: Embedded 17 pages/cpu @ef7c6000 s40716 r8192 d20724 u69632
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts= armada-nand:-(ubifs);spi0.0:0x00100000(uboot),0x00010000@0x00100000(uboot_env) earlyprintk=serial
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1025944K/1048576K available (8192K kernel code, 722K rwdata, 2180K rodata, 1024K init, 337K bss, 22632K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db4848   ( 723 kB)
[    0.000000]        .bss : 0xc0dbbf1c - 0xc0e103c4   ( 338 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] 	Tasks RCU enabled.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000009] sched_clock: 64 bits at 533MHz, resolution 1ns, wraps every 2199023255551ns
[    0.008073] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x7aed16d152, max_idle_ns: 440795225656 ns
[    0.019167] Switching to timer-based delay loop, resolution 1ns
[    0.025380] Ignoring duplicate/late registration of read_current_timer delay
[    0.032489] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.043959] Console: colour dummy device 80x30
[    0.048492] Calibrating delay loop (skipped), value calculated using timer frequency.. 1066.00 BogoMIPS (lpj=5330000)
[    0.059154] pid_max: default: 32768 minimum: 301
[    0.063945] Security Framework initialized
[    0.068175] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.074850] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.082473] CPU: Testing write buffer coherency: ok
[    0.087602] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.125247] Setting up static identity map for 0x100000 - 0x100060
[    0.131594] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.136943] mvebu-pmsu: Initializing Power Management Service Unit
[    0.143274] Hierarchical SRCU implementation.
[    0.185217] smp: Bringing up secondary CPUs ...
[    0.235288] Booting CPU 1
[    0.238192] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.238277] smp: Brought up 1 node, 2 CPUs
[    0.248190] SMP: Total of 2 processors activated (2132.00 BogoMIPS).
[    0.254602] CPU: All CPU(s) started in SVC mode.
[    0.260032] devtmpfs: initialized
[    0.266522] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.274531] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.284429] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.290794] prandom: seed boundary self test passed
[    0.298270] prandom: 100 self tests passed
[    0.302436] pinctrl core: initialized pinctrl subsystem
[    0.308572] NET: Registered protocol family 16
[    0.313934] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.322211] cpuidle: using governor ladder
[    0.326442] cpuidle: using governor menu
[    0.330711] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.338782] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.344841] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.353005] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.416829] vgaarb: loaded
[    0.419814] SCSI subsystem initialized
[    0.424364] usbcore: registered new interface driver usbfs
[    0.430083] usbcore: registered new interface driver hub
[    0.435596] usbcore: registered new device driver usb
[    0.441072] media: Linux media interface: v0.10
[    0.445735] Linux video capture interface: v2.00
[    0.455537] clocksource: Switched to clocksource arm_global_timer
[    0.514472] VFS: Disk quotas dquot_6.6.0
[    0.518564] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.531812] NET: Registered protocol family 2
[    0.536734] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.543891] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.550504] TCP: Hash tables configured (established 8192 bind 8192)
[    0.556993] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.563002] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.569622] NET: Registered protocol family 1
[    0.574339] RPC: Registered named UNIX socket transport module.
[    0.580558] RPC: Registered udp transport module.
[    0.585329] RPC: Registered tcp transport module.
[    0.590115] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.596996] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.603793] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.612866] audit: initializing netlink subsys (disabled)
[    0.618457] audit: type=2000 audit(0.589:1): state=initialized audit_enabled=0 res=1
[    0.618710] Initialise system trusted keyrings
[    0.618734] Key type blacklist registered
[    0.618834] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.626291] zbud: loaded
[    0.637122] NFS: Registering the id_resolver key type
[    0.637135] Key type id_resolver registered
[    0.637137] Key type id_legacy registered
[    0.637147] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.637151] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.637305] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.641673] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.641780] orangefs_init: module version upstream loaded
[    0.645443] Key type asymmetric registered
[    0.645447] Asymmetric key parser 'x509' registered
[    0.645485] bounce: pool size: 64 pages
[    0.645524] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.645558] io scheduler noop registered
[    0.645561] io scheduler deadline registered
[    0.645627] io scheduler cfq registered (default)
[    0.650956] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.659247] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    0.659255] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.659260] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.659265] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.659641] PCI: bus0: Fast back to back transfers disabled
[    0.659653] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.659666] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.659750] PCI: bus1: Fast back to back transfers enabled
[    0.659846] PCI: bus2: Fast back to back transfers enabled
[    0.659879] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.659889] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.660433] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.716126] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.716300] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.776108] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.869651] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.877810] console [ttyS0] disabled
[    0.901753] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 12500000) is a 16550A
[    0.910835] console [ttyS0] enabled
[    0.910835] console [ttyS0] enabled
[    0.917999] bootconsole [earlycon0] disabled
[    0.917999] bootconsole [earlycon0] disabled
[    0.927780] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    0.936961] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    0.956465] scsi host0: ahci-mvebu
[    0.970179] scsi host1: ahci-mvebu
[    0.973743] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 43
[    0.981735] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 43

Re: Debian Installation on Thecus N2350 (Marvell Armada 385)

$
0
0
All,

Have you tried with the HDD inserted in the slot?

Re: Debian Installation on Thecus N2350 (Marvell Armada 385)

$
0
0
Manuel,

Quote

Are you sure "num-cs = <1>;" is correct?

Not sure.

Re: Debian Installation on Thecus N2350 (Marvell Armada 385)

$
0
0
bodhi Wrote:
-------------------------------------------------------
> All,
>
> Have you tried with the HDD inserted in the slot?
No without HDD in the slot. I don't have a HDD to insert for the next few days.

Re: Debian Installation on Thecus N2350 (Marvell Armada 385)

$
0
0
Here is DTB version 6 tarball for testing.

I've modified the NAND definition to use armada-nand, similar to the NAS326 and WD MyCloud boxes. And modified bootargs.


Copy the attached DTB to your USB rootfs /boot/dts/ folder.

Power up, interrupt serial console and set the envs (note that we are not loading uInitrd). We want to ignore that for now and see if the USB drive is powered up OK first.

setenv mtdparts 'mtdparts= armada-nand:-(ubifs);spi0.0:0x00100000(uboot),0x00010000@0x00100000(uboot_env)'
setenv load_dtb_addr 0x1000000
setenv load_initrd_addr 0x2900000
setenv load_image_addr 0x02000000
setenv dtbfilename armada-385-thecus-n2350.dtb
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; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/$dtbfilename; run usb_set_bootargs; bootz $load_image_addr - $load_dtb_addr'
usb start
run usb_bootcmd

Re: Debian Installation on Thecus N2350 (Marvell Armada 385)

$
0
0
lordzahl Wrote:
-------------------------------------------------------
> bodhi Wrote:
> -------------------------------------------------------
> > All,
> >
> > Have you tried with the HDD inserted in the
> slot?
> No without HDD in the slot. I don't have a HDD to
> insert for the next few days.

It would be good to see if the HDD was powered up at that point.

I've uploaded version 6 above (I've chaged that cs to 0).

Re: Debian Installation on Thecus N2350 (Marvell Armada 385)

$
0
0
Hi, thanks.
Version 6 result:

edit: Ok, maybe nailman23 can test with HDD, i will not be home before monday and i have only taken the box with me, but no drives.

BootROM - 1.73
Booting from SPI flash


General initialization - Version: 1.0.0
AVS selection from EFUSE disabled (Skip reading EFUSE values)
Overriding default AVS value to: 0x23
Detected Device ID 6820
High speed PHY - Version: 2.0

Init Customer board board SerDes lanes topology details:
 | Lane # | Speed|    Type     |
 ------------------------------|
 |   0    |  0   |  SGMII0     |
 |   1    |  3   |  SATA0      |
 |   2    |  3   |  SATA1      |
 |   4    |  5   |  USB3 HOST0 |
 |   5    |  5   |  USB3 HOST1 |
 -------------------------------
High speed PHY - Ended Successfully
DDR4 Training Sequence - Ver TIP-0.23.(Sublib 0.8)0
DDR4 Training Sequence - Switching XBAR Window to FastPath Window 
DDR4 Training Sequence - Ended Successfully
BootROM: Image checksum verification PASSED

 __   __                      _ _
|  \/  | __ _ _ ____   _____| | |
| |\/| |/ _` | '__\ \ / / _ \ | |
| |  | | (_| | |   \ V /  __/ | |
|_|  |_|\__,_|_|    \_/ \___|_|_|
         _   _     ____              _
        | | | |   | __ )  ___   ___ | |_ 
        | | | |___|  _ \ / _ \ / _ \| __| 
        | |_| |___| |_) | (_) | (_) | |_ 
         \___/    |____/ \___/ \___/ \__| 
 ** LOADER **


U-Boot 2013.01 (Aug 09 2017 - 16:51:03) Marvell version: 2015_T1.0p18

Board: A38x-Customer0-Thecus-N2350
SoC:   MV88F6820 Rev A0
       running 2 CPUs
CPU:   ARM Cortex A9 MPCore (Rev 1) LE
       CPU 0
       CPU    @ 1066 [MHz]
       L2     @ 800 [MHz]
       TClock @ 200 [MHz]
       DDR4    @ 800 [MHz]
       DDR4 32 Bit Width,FastPath Memory Access, DLB Enabled, ECC Disabled
DRAM:  1 GiB
NAND:  512 MiB
MMC:   mv_sdh: 0
SF: Detected MX25L3205D with page size 64 KiB, total 4 MiB
USB2.0 0: Host Mode
USB3.0 0: Host Mode
USB3.0 1: Host Mode

Map:   Code:			0x3fed0000:0x3ff959e4
       BSS:			0x3ffef104
       Stack:			0x3f9bff20
       Heap:			0x3f9c0000:0x3fed0000
       U-Boot Environment:	0x00100000:0x00110000 (SPI)

Board configuration detected:
Net:   
|  port  | Interface | PHY address  |
|--------|-----------|--------------|
| egiga0 |   SGMII   |     0x01     |
egiga0 [PRIME]
Hit any key to stop autoboot:  3 ??? 0
Marvell>> setenv mtdparts 'mtdparts= armada-nand:-(ubifs);spi0.0:0x00100000(uboot),0x00010000@0x00100000(uboot_env)'
Marvell>> setenv load_dtb_addr 0x1000000
Marvell>> setenv load_initrd_addr 0x2900000
Marvell>> setenv load_image_addr 0x02000000
Marvell>> setenv dtbfilename armada-385-thecus-n2350.dtb
Marvell>> setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts earlyprintk=serial"'
Marvell>> setenv usb_bootcmd 'echo Booting from USB ...; setenv fdt_skip_update yes; ext2load usb 0:1 $load_image_addr /boot/zImage; ext2load usb 0:1 $load_dtb_addr /boot/dts/$dtbfilename; run usb_set_bootargs; bootz $load_image_addr - $load_dtb_addr'
Marvell>> usb start
(Re)start USB...
USB0:   Port (usbActive) : 0	Interface (usbType = 3) : Anson:xhci_usb_lowlevel_init--1--index=0
Anson:xhci_usb_lowlevel_init--2
Anson:Register 2000120 NbrPorts 2
USB XHCI 1.00
Anson:xhci_usb_lowlevel_init--3
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
Marvell>> run usb_bootcmd
Booting from USB ...
4141288 bytes read in 503 ms (7.9 MiB/s)
18686 bytes read in 664 ms (27.3 KiB/s)
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Device Tree to 00ff8000, end 00fff8fd ... OK

   Skipping Device Tree update ('fdt_skip_update' = yes)

Limit DDR size at 3GB due to power of 2 requirement of Address decoding

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.14.1-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4)) #1 SMP PREEMPT Sat Nov 25 00:32:53 PST 2017
[    0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt: Machine model: Thecus N2350
[    0.000000] bootconsole [earlycon0] enabled
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] random: fast init done
[    0.000000] percpu: Embedded 17 pages/cpu @ef7c6000 s40716 r8192 d20724 u69632
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts= armada-nand:-(ubifs);spi0.0:0x00100000(uboot),0x00010000@0x00100000(uboot_env) earlyprintk=serial
[    0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[    0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Memory: 1025944K/1048576K available (8192K kernel code, 722K rwdata, 2180K rodata, 1024K init, 337K bss, 22632K reserved, 0K cma-reserved, 262144K highmem)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xf0800000 - 0xff800000   ( 240 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xf0000000   ( 768 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0c00000 - 0xc0d00000   (1024 kB)
[    0.000000]       .data : 0xc0d00000 - 0xc0db4848   ( 723 kB)
[    0.000000]        .bss : 0xc0dbbf1c - 0xc0e103c4   ( 338 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] 	Tasks RCU enabled.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] L2C-310 enabling early BRESP for Cortex-A9
[    0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[    0.000000] L2C-310 D prefetch enabled, offset 1 lines
[    0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[    0.000000] L2C-310 Coherent cache controller enabled, 16 ways, 1024 kB
[    0.000000] L2C-310 Coherent: CACHE_ID 0x410054c9, AUX_CTRL 0x56070001
[    0.000009] sched_clock: 64 bits at 533MHz, resolution 1ns, wraps every 2199023255551ns
[    0.008073] clocksource: arm_global_timer: mask: 0xffffffffffffffff max_cycles: 0x7aed16d152, max_idle_ns: 440795225656 ns
[    0.019168] Switching to timer-based delay loop, resolution 1ns
[    0.025381] Ignoring duplicate/late registration of read_current_timer delay
[    0.032492] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.043961] Console: colour dummy device 80x30
[    0.048493] Calibrating delay loop (skipped), value calculated using timer frequency.. 1066.00 BogoMIPS (lpj=5330000)
[    0.059155] pid_max: default: 32768 minimum: 301
[    0.063946] Security Framework initialized
[    0.068175] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.074850] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.082472] CPU: Testing write buffer coherency: ok
[    0.087600] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.125248] Setting up static identity map for 0x100000 - 0x100060
[    0.131595] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.136943] mvebu-pmsu: Initializing Power Management Service Unit
[    0.143274] Hierarchical SRCU implementation.
[    0.185218] smp: Bringing up secondary CPUs ...
[    0.235289] Booting CPU 1
[    0.238194] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.238279] smp: Brought up 1 node, 2 CPUs
[    0.248194] SMP: Total of 2 processors activated (2132.00 BogoMIPS).
[    0.254606] CPU: All CPU(s) started in SVC mode.
[    0.260039] devtmpfs: initialized
[    0.266537] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.274541] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.284439] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.290801] prandom: seed boundary self test passed
[    0.298278] prandom: 100 self tests passed
[    0.302443] pinctrl core: initialized pinctrl subsystem
[    0.308578] NET: Registered protocol family 16
[    0.313940] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.322217] cpuidle: using governor ladder
[    0.326447] cpuidle: using governor menu
[    0.330718] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.338788] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.344845] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.353008] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.416811] vgaarb: loaded
[    0.419798] SCSI subsystem initialized
[    0.424357] usbcore: registered new interface driver usbfs
[    0.430074] usbcore: registered new interface driver hub
[    0.435586] usbcore: registered new device driver usb
[    0.441065] media: Linux media interface: v0.10
[    0.445728] Linux video capture interface: v2.00
[    0.455539] clocksource: Switched to clocksource arm_global_timer
[    0.514529] VFS: Disk quotas dquot_6.6.0
[    0.518620] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.531856] NET: Registered protocol family 2
[    0.536780] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.543937] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.550547] TCP: Hash tables configured (established 8192 bind 8192)
[    0.557037] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.563046] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.569664] NET: Registered protocol family 1
[    0.574385] RPC: Registered named UNIX socket transport module.
[    0.580601] RPC: Registered udp transport module.
[    0.585371] RPC: Registered tcp transport module.
[    0.590157] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.597037] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.603830] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.612907] audit: initializing netlink subsys (disabled)
[    0.618496] audit: type=2000 audit(0.589:1): state=initialized audit_enabled=0 res=1
[    0.618744] Initialise system trusted keyrings
[    0.618768] Key type blacklist registered
[    0.618860] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.626330] zbud: loaded
[    0.637159] NFS: Registering the id_resolver key type
[    0.637170] Key type id_resolver registered
[    0.637172] Key type id_legacy registered
[    0.637182] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.637186] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.637339] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.641707] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.641814] orangefs_init: module version upstream loaded
[    0.645460] Key type asymmetric registered
[    0.645463] Asymmetric key parser 'x509' registered
[    0.645501] bounce: pool size: 64 pages
[    0.645571] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.645575] io scheduler noop registered
[    0.645578] io scheduler deadline registered
[    0.645649] io scheduler cfq registered (default)
[    0.650970] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.659285] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    0.659293] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.659299] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.659304] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.659679] PCI: bus0: Fast back to back transfers disabled
[    0.659691] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.659704] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.659787] PCI: bus1: Fast back to back transfers enabled
[    0.659884] PCI: bus2: Fast back to back transfers enabled
[    0.659915] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.659925] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.660463] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.716129] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.716302] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.776112] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.868153] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.876606] console [ttyS0] disabled
[    0.900478] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 12500000) is a 16550A
[    0.909734] console [ttyS0] enabled
[    0.909734] console [ttyS0] enabled
[    0.916972] bootconsole [earlycon0] disabled
[    0.916972] bootconsole [earlycon0] disabled
[    0.927063] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    0.936259] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    0.956034] scsi host0: ahci-mvebu
[    0.969806] scsi host1: ahci-mvebu
[    0.973441] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 43
[    0.981442] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 43

Re: Debian Installation on Thecus N2350 (Marvell Armada 385)

$
0
0
> Manuel,
>
>
Quote

Are you sure "num-cs = <1>;" is
> correct?
>
> Not sure.

You're right! this box mus have a different NAND type from the NAS326 and WD MyCloud.

Re: Debian Installation on Thecus N2350 (Marvell Armada 385)

$
0
0
Hello,

I've tried both (v5 and v6) and both them gives them same results as before, no matter if the disk is attached to any port.
Viewing all 26628 articles
Browse latest View live