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

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

$
0
0
While I'm coding the DTS, I'd like you to try the kwboot again.

I can see why your kwboot was not successful with that error. Thecus u-boot is in SPI flash!

BootROM - 1.73

Booting from SPI flash

[    3.652367] 2 ofpart partitions found on MTD device spi1.0
[    3.657900] Creating 2 MTD partitions on "spi1.0":
[    3.662714] 0x000000000000-0x000000400000 : "U-Boot-img"
[    3.669677] 0x000000100000-0x000000400000 : "U-Boot-env"

Boot into stock OS, and

cat /proc/mtd

That mtd "U-Boot-img" is where u-boot is. So do a dump (assuming it is mtdx):

dd if=/dev/mtdx of=mtd_uboot bs=1024k conv=sync

And then run kwboot again with this file mtd_uboot.

kwboot  -t -B 115200 /dev/ttyUSB0 -b mtd_uboot  -p

if that does not work, try
kwboot  -t -B 115200 /dev/ttyUSB0 -b mtd_uboot  -p  -s 0 -q 1

BTW, you might need to try running kwboot many times until you can get a handshake with the box.

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

$
0
0
Hi bodhi,

Sure, can do:

N2350:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 20000000 00020000 "ubifs"
mtd1: 00400000 00010000 "U-Boot-img"
mtd2: 00300000 00010000 "U-Boot-env"
mtd3: 05885000 0001f000 "boot"
mtd4: 008f6000 0001f000 "etc"
mtd5: 1803b000 0001f000 "rom"
mtd6: 00706000 0001f000 "version"
N2350:~# ls
N2350:~# dd if=/dev/mtd1 of=mtd_uboot bs=1024k conv=sync
4+0 records in
4+0 records out
N2350:~# ls -l
-rw-r--r--    1 root     root       4194304 Mar 18 20:40 mtd_uboot

scp't this on my laptop, and tried kwboot:

[kwboot]$ ../kwboot-x86_64  -t -B 115200 /dev/ttyACM0 -b mtd_uboot  -p
Sending boot message. Please reboot the target...\
Sending boot image...

BootROM - 1.73
 (Boot)
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
  0 % [+xmodem: Protocol error

I got this only after several tries. So i guess the timing was right, but something else failed?

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

$
0
0
Hello,

@lordzahl: Yes I have serial cable. To be exact it is USB TTL converter:

[ 8708.644145] usb 2-2.1: New USB device found, idVendor=10c4, idProduct=ea60
[ 8708.644148] usb 2-2.1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 8708.644150] usb 2-2.1: Product: CP2102 USB to UART Bridge Controller
[ 8708.644152] usb 2-2.1: Manufacturer: Silicon Labs
[ 8708.644153] usb 2-2.1: SerialNumber: 0001
[ 8708.706781] cp210x 2-2.1:1.0: cp210x converter detected
[ 8708.743441] usb 2-2.1: cp210x converter now attached to ttyUSB0

I tried to boot with kwboot and got the same error, no matter if "-s 0 -q 1" parameters were added or not:

root@ubuntu:~# kwboot -t -B 115200 /dev/ttyUSB0 -b mtd_uboot -p -s 0 -q 1
Sending boot message. Please reboot the target...-
Sending boot image...

BootROM - 1.73
 (Boot)
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
  0 % [+xmodem: Protocol error

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

$
0
0
Here is a modified DTB version 3 for testing. This time we have the correct SPI flash type, and the SPI driver (in mtdparts).

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=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: Linux Kernel 4.4.117 Oxnas (OX820) Pogo V3 package and Debian rootfs

$
0
0
Hello Bodhi,

The thread is too long to read through all of it. I'm just wondering what your patches fix over the mainline and why they haven't been added to the mainline kernel.

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

$
0
0
Hi tommy,
I tested the kernel on my 2-bay NAS. It starts loading but dont get far. Also tested with 0x800000 and 0x2000000 as address.

Whitney # setenv loaduimage 'ext2load scsi 0 0x28000000 /boot/uImage.tommy'
Whitney # 	setenv bootcmd_scsi 'scsi init;run loaduimage;bootm 0x28000000'  
Whitney # run bootcmd

Initialize SCSI
AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part 
set feature error!
scanning bus for devices...
Supprt LBA48 addressing.
timeout exit!
  Device 0: (1:0) Vendor: ATA Prod.: HGST HTS725050A7 Rev: GH2Z
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)

3019912 bytes read
enter do_eth_down!!!
## Booting kernel from Legacy Image at 28000000 ...
   Image Name:   Linux-4.4.121-tommy
   Created:      2018-03-18  23:01:24 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3019848 Bytes =  2.9 MB
   Load Address: 22000000
   Entry Point:  22000000
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x900
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 4.4.121-tommy (root@debian9) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #26 SMP Sun Mar 18 23:57:36 CET 2018
CPU: ARMv6-compatible processor [410fb024] revision 4 (ARMv7), cr=00c5787d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Seagate CNS3420 NAS
bootconsole [earlycon0] enabled
Memory policy: Data cache writealloc

Re: Howto: Airplay on a Pogoplug

$
0
0
Updating with what I discovered today. Previously the Pogo was never available as an airplay endpoint (speaker) on my network. I went into the shairport-sync config file and set it up to output audio to a named pipe and configured the path to that pipe. Once I saved the config, I was able to get shairport-sync to start successfully and now see my PogoPlug in the list of airplay devices.

Still need to figure out what the issue was with the alsa device and not being able to use that output method.

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

$
0
0
Hi bodhi,

> Here is a modified DTB version 3 for testing. This
> time we have the correct SPI flash type, and the
> SPI driver (in mtdparts).

Still fails at the same point, see log. Next i will try kwboot again.

edit:
Still no luck with kwboot. Maybe it is because of my teensy as USB/Serial Converter. Maybe @nailman23 can try again. I had a little more luck with at least getting a "XModem error", if i start the kwboot command without -q... first and than inserting the power barrel connector as quick as possible.


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=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 501 ms (7.9 MiB/s)
17380 bytes read in 660 ms (25.4 KiB/s)
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Device Tree to 00ff8000, end 00fff3e3 ... 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 @ef7c7000 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=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: 1025948K/1048576K available (8192K kernel code, 722K rwdata, 2180K rodata, 1024K init, 337K bss, 22628K 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.008074] 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.025382] 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.043936] Console: colour dummy device 80x30
[    0.048469] Calibrating delay loop (skipped), value calculated using timer frequency.. 1066.00 BogoMIPS (lpj=5330000)
[    0.059130] pid_max: default: 32768 minimum: 301
[    0.063922] Security Framework initialized
[    0.068152] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.074827] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.082449] CPU: Testing write buffer coherency: ok
[    0.087577] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.125248] Setting up static identity map for 0x100000 - 0x100060
[    0.131596] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.136944] mvebu-pmsu: Initializing Power Management Service Unit
[    0.143275] Hierarchical SRCU implementation.
[    0.185218] smp: Bringing up secondary CPUs ...
[    0.235289] Booting CPU 1
[    0.238193] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.238278] smp: Brought up 1 node, 2 CPUs
[    0.248191] SMP: Total of 2 processors activated (2132.00 BogoMIPS).
[    0.254603] CPU: All CPU(s) started in SVC mode.
[    0.260034] devtmpfs: initialized
[    0.266102] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.274109] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.284007] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.290365] prandom: seed boundary self test passed
[    0.297842] prandom: 100 self tests passed
[    0.302007] pinctrl core: initialized pinctrl subsystem
[    0.308149] NET: Registered protocol family 16
[    0.313402] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.321674] cpuidle: using governor ladder
[    0.325903] cpuidle: using governor menu
[    0.330060] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.338131] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.344189] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.352352] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.405851] vgaarb: loaded
[    0.408835] SCSI subsystem initialized
[    0.412956] usbcore: registered new interface driver usbfs
[    0.418619] usbcore: registered new interface driver hub
[    0.424090] usbcore: registered new device driver usb
[    0.429526] media: Linux media interface: v0.10
[    0.434145] Linux video capture interface: v2.00
[    0.439677] clocksource: Switched to clocksource arm_global_timer
[    0.498653] VFS: Disk quotas dquot_6.6.0
[    0.502747] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.515572] NET: Registered protocol family 2
[    0.520478] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.527634] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.534245] TCP: Hash tables configured (established 8192 bind 8192)
[    0.540738] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.546747] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.553364] NET: Registered protocol family 1
[    0.558084] RPC: Registered named UNIX socket transport module.
[    0.564090] RPC: Registered udp transport module.
[    0.568860] RPC: Registered tcp transport module.
[    0.573645] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.580403] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.587199] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.596252] audit: initializing netlink subsys (disabled)
[    0.601843] audit: type=2000 audit(0.569:1): state=initialized audit_enabled=0 res=1
[    0.602096] Initialise system trusted keyrings
[    0.602123] Key type blacklist registered
[    0.602210] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.609663] zbud: loaded
[    0.620530] NFS: Registering the id_resolver key type
[    0.620547] Key type id_resolver registered
[    0.620550] Key type id_legacy registered
[    0.620560] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.620564] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.620718] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.621040] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.621145] orangefs_init: module version upstream loaded
[    0.624784] Key type asymmetric registered
[    0.624787] Asymmetric key parser 'x509' registered
[    0.624826] bounce: pool size: 64 pages
[    0.624864] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 247)
[    0.624869] io scheduler noop registered
[    0.624872] io scheduler deadline registered
[    0.624942] io scheduler cfq registered (default)
[    0.626477] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.628663] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    0.628671] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.628677] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.628682] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.629069] PCI: bus0: Fast back to back transfers disabled
[    0.629081] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.629094] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.629180] PCI: bus1: Fast back to back transfers enabled
[    0.629278] PCI: bus2: Fast back to back transfers enabled
[    0.629310] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.629320] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.629922] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.690265] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.690441] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.750252] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy intr )
[    0.811329] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.813055] console [ttyS0] disabled
[    0.850878] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 12500000) is a 16550A
[    0.859942] console [ttyS0] enabled
[    0.859942] console [ttyS0] enabled
[    0.867036] bootconsole [earlycon0] disabled
[    0.867036] bootconsole [earlycon0] disabled
[    0.877052] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    0.886181] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs 
[    0.895896] scsi host0: ahci-mvebu
[    0.899646] scsi host1: ahci-mvebu
[    0.903305] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 43
[    0.911325] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 43

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

$
0
0
blackdevil Wrote:
-------------------------------------------------------
> Hi tommy,
> I tested the kernel on my 2-bay NAS. It starts
> loading but dont get far. Also tested with
> 0x800000 and 0x2000000 as address.
>
>
> Whitney # setenv loaduimage 'ext2load scsi 0
> 0x28000000 /boot/uImage.tommy'
> Whitney # 	setenv bootcmd_scsi 'scsi init;run
> loaduimage;bootm 0x28000000'  
> Whitney # run bootcmd
> 
> Initialize SCSI
> AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl
> SATA mode
> flags: ncq stag pm led clo only pmp pio slum part
> 
> set feature error!
> scanning bus for devices...
> Supprt LBA48 addressing.
> timeout exit!
>   Device 0: (1:0) Vendor: ATA Prod.: HGST
> HTS725050A7 Rev: GH2Z
>             Type: Hard Disk
>             Supports 48-bit addressing
>             Capacity: 476940.0 MB = 465.7 GB
> (976773168 x 512)
> 
> 3019912 bytes read
> enter do_eth_down!!!
> ## Booting kernel from Legacy Image at 28000000
> ...
>


Hi blackdevil,

you need to add
mem=512M@0x20000000
to your boot params, otherwise it won't boot. See my previous posts.

ext2load scsi 0 0x28000000 and bootm 0x28000000 is ok

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

$
0
0
MarkTurner Wrote:
-------------------------------------------------------
> tommy79 Wrote:
> -------------------------------------------------------
> >
> > Please test and let me know what are your
> opinions
> > :)
>
> Also, when can I get your source code? :-)

Hi Mark,
I will try to publish tomorrow, I do not have time today

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

$
0
0
tommy, I cannot boot with bootargs from uboot. I have to compile the bootargs into the kernel. i will give it a try when you uploaded the kernel and compile it myself.

thank you!

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

$
0
0
blackdevil Wrote:
-------------------------------------------------------
> tommy, I cannot boot with bootargs from uboot. I
> have to compile the bootargs into the kernel. i
> will give it a try when you uploaded the kernel
> and compile it myself.
>
> thank you!

blackdevil,

Why can't you run following code in u-boot? It works for me
setenv bootargs 'console=ttyS0,38400 mem=512M@0x20000000 root=/dev/sdXX rootwait'
ext2load scsi 0 0x28000000 /boot/uImage.tommy
bootm 0x28000000

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

$
0
0
AAAAH!
My bootcmd was wrong... Passing bootargs is working now :-)

The Kernel complaints about missing init. Is it a OS ( in my case debian) problem? I think I am using the system bodhi posted last week.

Whitney # setenv bootargs 'console=ttyS0,38400 mem=512M@0x20000000 root=/dev/sda1 rootwait'
Whitney # setenv loaduimage 'ext2load scsi 0 0x28000000 /boot/uImage.tommy'
Whitney # setenv bootcmd_scsi 'scsi init;run loaduimage;bootm 0x28000000'
Whitney # run bootcmd_scsi

Initialize SCSI
AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part 
set feature error!
scanning bus for devices...
Supprt LBA48 addressing.
timeout exit!
  Device 0: (1:0) Vendor: ATA Prod.: HGST HTS725050A7 Rev: GH2Z
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)

3019912 bytes read
enter do_eth_down!!!
## Booting kernel from Legacy Image at 28000000 ...
   Image Name:   Linux-4.4.121-tommy
   Created:      2018-03-18  23:01:24 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3019848 Bytes =  2.9 MB
   Load Address: 22000000
   Entry Point:  22000000
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x900
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 4.4.121-tommy (root@debian9) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #26 SMP Sun Mar 18 23:57:36 CET 2018
CPU: ARMv6-compatible processor [410fb024] revision 4 (ARMv7), cr=00c5787d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Seagate CNS3420 NAS
Memory policy: Data cache writealloc
PERCPU: Embedded 12 pages/cpu @dfbd9000 s17004 r8192 d23956 u49152
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyS0,38400 mem=512M@0x20000000 root=/dev/sda1 rootwait
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 513692K/524288K available (4211K kernel code, 159K rwdata, 1256K rodata, 212K init, 101K bss, 10596K reserved, 0K cma-reserved)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc055ef9c   (5468 kB)
      .init : 0xc055f000 - 0xc0594000   ( 212 kB)
      .data : 0xc0594000 - 0xc05bbe10   ( 160 kB)
       .bss : 0xc05bbe10 - 0xc05d5348   ( 102 kB)
Hierarchical RCU implementation.
	Build-time adjustment of leaf fanout to 32.
NR_IRQS:16 nr_irqs:16 16
clocksource: freerun: mask: 0xffffffffffff max_cycles: 0x179dd7f66, max_idle_ns: 28210892933900 ns
smp_twd: clock not found -2
sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns
Console: colour dummy device 80x30
console [ttyS0] enabled
Calibrating local timer... 347.93MHz.
Calibrating delay loop... 277.70 BogoMIPS (lpj=1388544)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
Initializing cgroup subsys io
Initializing cgroup subsys devices
Initializing cgroup subsys net_cls
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x200082a0 - 0x200082fc
Brought up 2 CPUs
SMP: Total of 2 processors activated (555.41 BogoMIPS).
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 4
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 512 (order: 2, 16384 bytes)
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
cpuidle: using governor menu
L2C: DT/platform modifies aux control register: 0x02040000 -> 0x02540000
L2C-310 cache controller enabled, 8 ways, 256 kB
L2C-310: CACHE_ID 0x410000c4, AUX_CTRL 0x06540000
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
clocksource: Switched to clocksource freerun
FS-Cache: Loaded
NET: Registered protocol family 2
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x78000000 (irq = 45, base_baud = 1500000) is a 16550A
loop: module loaded
mGine mflash driver, (c) 2008 mGine Co.
zram: Added device: zram0
ahci ahci.0: SSS flag set, parallel bus scan disabled
ahci ahci.0: AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl platform mode
ahci ahci.0: flags: ncq sntf stag pm led clo only pmp pio slum part ccc 
scsi host0: ahci
scsi host1: ahci
ata1: SATA max UDMA/133 mmio [mem 0x83000000-0x83ffffff] port 0x100 irq 65
ata2: SATA max UDMA/133 mmio [mem 0x83000000-0x83ffffff] port 0x180 irq 65
physmap platform flash device: 08000000 at 10000000
physmap-flash physmap-flash.0: map_probe failed
libphy: Fixed MDIO Bus: probed
libphy: CNS3xxx MII Bus: probed
eth0: RGMII PHY 0 on cns3xxx Switch
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-platform: EHCI generic platform driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci-pci: OHCI PCI platform driver
ohci-platform: OHCI generic platform driver
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
CNS3XXX Real Time Clock, (c) 2009 Cavium Networks
rtc irq:23
rtc rtc0: invalid alarm value: 1900-1-20 0:0:0
cns3xxx-rtc cns3xxx-rtc: rtc core: registered cns3xxx-rtc as rtc0
i2c /dev entries driver
adt7475 0-002e: ADT7473 device, revision 0
adt7475 0-002e: Optional features: fan4 pwm2
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
Initializing XFRM netlink socket
NET: Registered protocol family 17
NET: Registered protocol family 15
bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
PCI-E0 uses external clock source.
ata1: SATA link down (SStatus 0 SControl 300)
PCIe: Port[0] Enable PCIe LTSSM
PCIe: Port[0] Check data link layer...
ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata2.00: ATA-8: HGST HTS725050A7E630, GH2ZB550, max UDMA/133
ata2.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 31/32)
ata2.00: configured for UDMA/133
scsi 1:0:0:0: Direct-Access     ATA      HGST HTS725050A7 B550 PQ: 0 ANSI: 5
sd 1:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
sd 1:0:0:0: [sda] 4096-byte physical blocks
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
 sda: sda1
Device not found.
sd 1:0:0:0: [sda] Attached SCSI disk
EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext3 filesystem) on device 8:1.
devtmpfs: mounted
Freeing unused kernel memory: 212K
Starting init: /etc/init exists but couldn't execute it (error -13)
Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
CPU: 1 PID: 1 Comm: swapper/0 Not tainted 4.4.121-tommy #26
Hardware name: Seagate CNS3420 NAS
Backtrace: 
[<c00131f0>] (dump_backtrace) from [<c00133e8>] (show_stack+0x18/0x1c)
 r7:00000000 r6:60000093 r5:00000000 r4:c05a36c8
[<c00133d0>] (show_stack) from [<c01f41a0>] (dump_stack+0x94/0xb0)
[<c01f410c>] (dump_stack) from [<c009fc20>] (panic+0x94/0x1fc)
 r7:00000000 r6:00000000 r5:c041ea40 r4:c05bc1e8
[<c009fb90>] (panic) from [<c041eb0c>] (kernel_init+0xcc/0xf0)
 r3:00000000 r2:0000000e r1:df516000 r0:c04e8498
 r7:00000000
[<c041ea40>] (kernel_init) from [<c000f870>] (ret_from_fork+0x14/0x24)
 r5:c041ea40 r4:00000000
CPU0: stopping
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.4.121-tommy #26
Hardware name: Seagate CNS3420 NAS
Backtrace: 
[<c00131f0>] (dump_backtrace) from [<c00133e8>] (show_stack+0x18/0x1c)
 r7:c0595f10 r6:60000193 r5:00000000 r4:c05a36c8
[<c00133d0>] (show_stack) from [<c01f41a0>] (dump_stack+0x94/0xb0)
[<c01f410c>] (dump_stack) from [<c0016350>] (handle_IPI+0x17c/0x1bc)
 r7:c0595f10 r6:00000000 r5:00000000 r4:c05bc060
[<c00161d4>] (handle_IPI) from [<c00094b8>] (gic_handle_irq+0x8c/0xa0)
 r7:c0596550 r6:c0595f10 r5:000003ff r4:ff00010c
[<c000942c>] (gic_handle_irq) from [<c0013df4>] (__irq_svc+0x54/0x70)
Exception stack(0xc0595f10 to 0xc0595f58)
5f00:                                     00000001 00000000 00000000 00000000
5f20: c0594000 c059627c 00000000 00000000 c05962dc c058e2a0 c04246b8 c0595f6c
5f40: c0595f70 c0595f60 c00102b0 c00102b4 60000013 ffffffff
 r10:c04246b8 r9:c058e2a0 r8:c05962dc r7:c0595f44 r6:ffffffff r5:60000013
 r4:c00102b4
[<c0010284>] (arch_cpu_idle) from [<c005afe4>] (default_idle_call+0x28/0x34)
[<c005afbc>] (default_idle_call) from [<c005b21c>] (cpu_startup_entry+0x1d8/0x250)
[<c005b044>] (cpu_startup_entry) from [<c041ea28>] (rest_init+0x6c/0x84)
 r7:c0596220
[<c041e9bc>] (rest_init) from [<c055fcc0>] (start_kernel+0x340/0x3b4)
[<c055f980>] (start_kernel) from [<20008078>] (0x20008078)
---[ end Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.


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

$
0
0
Hello,

Quote
@nailman, Did you solder the wires or just temporaily connect them like lordzahl did?

No, I did not solder it as I don't have tools for that.
I tried several times and was not able to get the kwboot working. I tried to hold wires but with no success. I always get "xmodem error" or "Bad meesage". I have also Zyxel NSA320 and kwboot works perfectly with it.

I tried to run the Debian with 4.12.4 kernel and it stops on the same step

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 (Jun 20 2017 - 14:02:04) 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:  0
Marvell>> setenv mtdparts 'mtdparts=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 ...
4021296 bytes read in 291 ms (13.2 MiB/s)
17380 bytes read in 623 ms (26.4 KiB/s)
## Flattened Device Tree blob at 01000000
   Booting using the fdt blob at 0x01000000
   Loading Device Tree to 00ff8000, end 00fff3e3 ... 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.12.4-mvebu-tld-1 (root@tldDebianVM) (gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.4) ) #1 SMP PREEMPT Sat Jul 29 21:56:37 PDT 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] percpu: Embedded 17 pages/cpu @ef7c7000 s40460 r8192 d20980 u69632
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260608
[    0.000000] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=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: 1025968K/1048576K available (8192K kernel code, 712K rwdata, 2080K rodata, 1024K init, 331K bss, 22608K 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 - 0xc0db2308   ( 713 kB)
[    0.000000]        .bss : 0xc0db9a84 - 0xc0e0ca58   ( 332 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000]  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=16, nr_cpu_ids=2
[    0.000000] NR_IRQS:16 nr_irqs:16 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.000000] Switching to timer-based delay loop, resolution 40ns
[    0.000004] sched_clock: 32 bits at 25MHz, resolution 40ns, wraps every 85899345900ns
[    0.007886] clocksource: armada_370_xp_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 76450417870 ns
[    0.019227] Console: colour dummy device 80x30
[    0.023747] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=250000)
[    0.034145] pid_max: default: 32768 minimum: 301
[    0.038929] Security Framework initialized
[    0.043141] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.049819] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.057432] CPU: Testing write buffer coherency: ok
[    0.062546] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.103768] Setting up static identity map for 0x100000 - 0x100060
[    0.110110] mvebu-soc-id: MVEBU SoC ID=0x6820, Rev=0x4
[    0.115451] mvebu-pmsu: Initializing Power Management Service Unit
[    0.173695] smp: Bringing up secondary CPUs ...
[    0.233731] Booting CPU 1
[    0.236629] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.236698] smp: Brought up 1 node, 2 CPUs
[    0.246586] SMP: Total of 2 processors activated (100.00 BogoMIPS).
[    0.252908] CPU: All CPU(s) started in SVC mode.
[    0.258279] devtmpfs: initialized
[    0.264304] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[    0.272291] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.282195] futex hash table entries: 512 (order: 3, 32768 bytes)
[    0.288525] prandom: seed boundary self test passed
[    0.296014] prandom: 100 self tests passed
[    0.300177] pinctrl core: initialized pinctrl subsystem
[    0.306302] NET: Registered protocol family 16
[    0.311608] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.319963] cpuidle: using governor ladder
[    0.324179] cpuidle: using governor menu
[    0.328316] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[    0.336381] hw-breakpoint: maximum watchpoint size is 4 bytes.
[    0.342448] mvebu-pmsu: CPU hotplug support is currently broken on Armada 38x: disabling
[    0.350603] mvebu-pmsu: CPU idle is currently broken on Armada 38x: disabling
[    0.394149] vgaarb: loaded
[    0.397138] SCSI subsystem initialized
[    0.404096] usbcore: registered new interface driver usbfs
[    0.409707] usbcore: registered new interface driver hub
[    0.415145] usbcore: registered new device driver usb
[    0.420515] media: Linux media interface: v0.10
[    0.425180] Linux video capture interface: v2.00
[    0.430661] clocksource: Switched to clocksource armada_370_xp_clocksource
[    0.488077] VFS: Disk quotas dquot_6.6.0
[    0.492203] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.506044] NET: Registered protocol family 2
[    0.511011] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[    0.518164] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[    0.524766] TCP: Hash tables configured (established 8192 bind 8192)
[    0.531265] UDP hash table entries: 512 (order: 2, 16384 bytes)
[    0.537270] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[    0.544024] NET: Registered protocol family 1
[    0.548746] RPC: Registered named UNIX socket transport module.
[    0.554767] RPC: Registered udp transport module.
[    0.559533] RPC: Registered tcp transport module.
[    0.564312] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.571081] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.577856] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[    0.586952] audit: initializing netlink subsys (disabled)
[    0.592552] audit: type=2000 audit(0.571:1): state=initialized audit_enabled=0 res=1
[    0.592877] Initialise system trusted keyrings
[    0.592910] Key type blacklist registered
[    0.600509] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[    0.605068] zbud: loaded
[    0.625803] NFS: Registering the id_resolver key type
[    0.630962] Key type id_resolver registered
[    0.635211] Key type id_legacy registered
[    0.639294] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.646103] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.652693] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    0.660131] orangefs_debugfs_init: called with debug mask: :none: :0:
[    0.666799] orangefs_init: module version upstream loaded
[    0.675475] Key type asymmetric registered
[    0.679640] Asymmetric key parser 'x509' registered
[    0.684662] bounce: pool size: 64 pages
[    0.688592] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 248)
[    0.696072] io scheduler noop registered
[    0.700062] io scheduler deadline registered
[    0.704446] io scheduler cfq registered (default)
[    0.710235] armada-38x-pinctrl f1018000.pinctrl: registered pinctrl driver
[    0.719039] mvebu-pcie soc:pcie: PCI host bridge to bus 0000:00
[    0.725240] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.731602] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xe7ffffff]
[    0.738533] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.744483] PCI: bus0: Fast back to back transfers disabled
[    0.750124] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.758227] pci 0000:00:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.766417] PCI: bus1: Fast back to back transfers enabled
[    0.772108] PCI: bus2: Fast back to back transfers enabled
[    0.777709] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.782758] pci 0000:00:02.0: PCI bridge to [bus 02]
[    0.788293] mv_xor f1060800.xor: Marvell shared XOR driver
[    0.851247] mv_xor f1060800.xor: Marvell XOR (Descriptor Mode): ( xor cpy sg intr )
[    0.859098] mv_xor f1060900.xor: Marvell shared XOR driver
[    0.921225] mv_xor f1060900.xor: Marvell XOR (Descriptor Mode): ( xor cpy sg intr )
[    0.970146] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.978047] console [ttyS0] disabled
[    1.003148] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 23, base_baud = 12500000) is a 16550A
[    1.012220] console [ttyS0] enabled
[    1.012220] console [ttyS0] enabled
[    1.019311] bootconsole [earlycon0] disabled
[    1.019311] bootconsole [earlycon0] disabled
[    1.029056] ahci-mvebu f10a8000.sata: AHCI 0001.0000 32 slots 2 ports 6 Gbps 0x3 impl platform mode
[    1.038314] ahci-mvebu f10a8000.sata: flags: 64bit ncq sntf led only pmp fbs pio slum part sxs
[    1.047912] scsi host0: ahci-mvebu
[    1.051652] scsi host1: ahci-mvebu
[    1.055253] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 43
[    1.063243] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 43

I compared that with working 3.10 kernel and the next step is configuring NAND device

[    3.530952] ata1: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x100 irq 58
[    3.538935] ata2: SATA max UDMA/133 mmio [mem 0xf10a8000-0xf10a9fff] port 0x180 irq 58
[    3.550713] armada-nand f10d0000.nand: Initialize HAL based NFC in 8bit mode with DMA Disabled using BCH 4bit ECC
[    3.565269] NAND device: Manufacturer ID: 0xad, Chip ID: 0xdc (Hynix NAND 512MiB 3,3V 8-bit), 512MiB, page size: 2048, OOB size: 64

Maybe that part missing in DTB/DTS files?

Re: Samba4 for ARM kirkwood


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

$
0
0
Your Kernel and debian ( from here https://github.com/KL-Yang/seagate_central_linux) is up!

Good work !

edit:

I think PCIe is not working and so USB is not working too.

Whitney # setenv bootargs 'console=ttyS0,38400 mem=512M@0x20000000 root=/dev/sda1';setenv loaduimage 'ext2load scsi 0 0x28000000 /boot/uImage';setenv bootcmd_scsi 'scsi init;run loaduimage;bootm 0x28000000'

Whitney # run bootcmd_scsi                                                                           

Initialize SCSI
AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part 
scanning bus for devices...
Supprt LBA48 addressing.
timeout exit!
  Device 0: (1:0) Vendor: ATA Prod.: HGST HTS725050A7 Rev: GH2Z
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 476940.0 MB = 465.7 GB (976773168 x 512)

3019912 bytes read
enter do_eth_down!!!
## Booting kernel from Legacy Image at 28000000 ...
   Image Name:   Linux-4.4.121-tommy
   Created:      2018-03-18  23:01:24 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3019848 Bytes =  2.9 MB
   Load Address: 22000000
   Entry Point:  22000000
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Booting Linux on physical CPU 0x900
Initializing cgroup subsys cpu
Initializing cgroup subsys cpuacct
Linux version 4.4.121-tommy (root@debian9) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #26 SMP Sun Mar 18 23:57:36 CET 2018
CPU: ARMv6-compatible processor [410fb024] revision 4 (ARMv7), cr=00c5787d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine: Seagate CNS3420 NAS
Memory policy: Data cache writealloc
PERCPU: Embedded 12 pages/cpu @dfbd9000 s17004 r8192 d23956 u49152
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttyS0,38400 mem=512M@0x20000000 root=/dev/sda1
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 513692K/524288K available (4211K kernel code, 159K rwdata, 1256K rodata, 212K init, 101K bss, 10596K reserved, 0K cma-reserved)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xe0800000 - 0xff800000   ( 496 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc055ef9c   (5468 kB)
      .init : 0xc055f000 - 0xc0594000   ( 212 kB)
      .data : 0xc0594000 - 0xc05bbe10   ( 160 kB)
       .bss : 0xc05bbe10 - 0xc05d5348   ( 102 kB)
Hierarchical RCU implementation.
	Build-time adjustment of leaf fanout to 32.
NR_IRQS:16 nr_irqs:16 16
clocksource: freerun: mask: 0xffffffffffff max_cycles: 0x179dd7f66, max_idle_ns: 28210892933900 ns
smp_twd: clock not found -2
sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns
Console: colour dummy device 80x30
console [ttyS0] enabled
Calibrating local timer... 347.98MHz.
Calibrating delay loop... 277.70 BogoMIPS (lpj=1388544)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
Initializing cgroup subsys io
Initializing cgroup subsys devices
Initializing cgroup subsys net_cls
CPU: Testing write buffer coherency: ok
Setting up static identity map for 0x200082a0 - 0x200082fc
Brought up 2 CPUs
SMP: Total of 2 processors activated (555.41 BogoMIPS).
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 1 part 20 variant b rev 4
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
futex hash table entries: 512 (order: 2, 16384 bytes)
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
cpuidle: using governor ladder
cpuidle: using governor menu
L2C: DT/platform modifies aux control register: 0x02040000 -> 0x02540000
L2C-310 cache controller enabled, 8 ways, 256 kB
L2C-310: CACHE_ID 0x410000c4, AUX_CTRL 0x06540000
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
clocksource: Switched to clocksource freerun
FS-Cache: Loaded
NET: Registered protocol family 2
TCP established hash table entries: 4096 (order: 2, 16384 bytes)
TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 4096 bind 4096)
UDP hash table entries: 256 (order: 1, 8192 bytes)
UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
NET: Registered protocol family 1
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 253)
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
serial8250: ttyS0 at MMIO 0x78000000 (irq = 45, base_baud = 1500000) is a 16550A
loop: module loaded
mGine mflash driver, (c) 2008 mGine Co.
zram: Added device: zram0
ahci ahci.0: SSS flag set, parallel bus scan disabled
ahci ahci.0: AHCI 0001.0100 32 slots 2 ports 3 Gbps 0x3 impl platform mode
ahci ahci.0: flags: ncq sntf stag pm led clo only pmp pio slum part ccc 
scsi host0: ahci
scsi host1: ahci
ata1: SATA max UDMA/133 mmio [mem 0x83000000-0x83ffffff] port 0x100 irq 65
ata2: SATA max UDMA/133 mmio [mem 0x83000000-0x83ffffff] port 0x180 irq 65
physmap platform flash device: 08000000 at 10000000
physmap-flash physmap-flash.0: map_probe failed
libphy: Fixed MDIO Bus: probed
libphy: CNS3xxx MII Bus: probed
eth0: RGMII PHY 0 on cns3xxx Switch
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ehci-pci: EHCI PCI platform driver
ehci-platform: EHCI generic platform driver
ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
ohci-pci: OHCI PCI platform driver
ohci-platform: OHCI generic platform driver
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
CNS3XXX Real Time Clock, (c) 2009 Cavium Networks
rtc irq:23
rtc rtc0: invalid alarm value: 1900-1-20 0:0:0
cns3xxx-rtc cns3xxx-rtc: rtc core: registered cns3xxx-rtc as rtc0
i2c /dev entries driver
adt7475 0-002e: ADT7473 device, revision 0
adt7475 0-002e: Optional features: fan4 pwm2
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
Initializing XFRM netlink socket
NET: Registered protocol family 17
NET: Registered protocol family 15
bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
PCI-E0 uses external clock source.
PCIe: Port[0] Enable PCIe LTSSM
PCIe: Port[0] Check data link layer...ata1: SATA link down (SStatus 0 SControl 300)

ata2: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
ata2.00: ATA-8: HGST HTS725050A7E630, GH2ZB550, max UDMA/133
ata2.00: 976773168 sectors, multi 16: LBA48 NCQ (depth 31/32)
ata2.00: configured for UDMA/133
scsi 1:0:0:0: Direct-Access     ATA      HGST HTS725050A7 B550 PQ: 0 ANSI: 5
sd 1:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/466 GiB)
sd 1:0:0:0: [sda] 4096-byte physical blocks
sd 1:0:0:0: [sda] Write Protect is off
sd 1:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
Device not found.
 sda: sda1
sd 1:0:0:0: [sda] Attached SCSI disk
EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext3 filesystem) on device 8:1.
devtmpfs: mounted
Freeing unused kernel memory: 212K
systemd[1]: System time before build time, advancing clock.
ip_tables: (C) 2000-2006 Netfilter Core Team
random: systemd: uninitialized urandom read (16 bytes read, 24 bits of entropy available)
systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN)
systemd[1]: Detected architecture arm.

Welcome to Debian GNU/Linux 9 (stretch)!

systemd[1]: Set hostname to <seagate-dev>.
random: systemd: uninitialized urandom read (16 bytes read, 29 bits of entropy available)
random: systemd-sysv-ge: uninitialized urandom read (16 bytes read, 32 bits of entropy available)
random: systemd-cryptse: uninitialized urandom read (16 bytes read, 34 bits of entropy available)
random: systemd-gpt-aut: uninitialized urandom read (16 bytes read, 34 bits of entropy available)
random: systemd-gpt-aut: uninitialized urandom read (16 bytes read, 34 bits of entropy available)
random: systemd: uninitialized urandom read (16 bytes read, 42 bits of entropy available)
random: systemd: uninitialized urandom read (16 bytes read, 42 bits of entropy available)
random: systemd: uninitialized urandom read (16 bytes read, 42 bits of entropy available)
random: systemd: uninitialized urandom read (16 bytes read, 42 bits of entropy available)
systemd[1]: Listening on Journal Socket (/dev/log).
[  OK  ] Listening on Journal Socket (/dev/log).
systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
systemd[1]: Listening on Journal Socket.
[  OK  ] Listening on Journal Socket.
systemd[1]: Reached target Swap.
[  OK  ] Reached target Swap.
systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
systemd[1]: Created slice User and Session Slice.
[  OK  ] Created slice User and Session Slice.
systemd[1]: Created slice System Slice.
[  OK  ] Created slice System Slice.
systemd[1]: Starting Load Kernel Modules...
         Starting Load Kernel Modules...
systemd[1]: Mounting Debug File System...
         Mounting Debug File System...
systemd[1]: Created slice system-getty.slice.
[  OK  ] Created slice system-getty.slice.
systemd[1]: Starting Remount Root and Kernel File Systems...
         Starting Remount Root and Kernel File Systems...
systemd[1]: Reached target Slices.
[  OK  ] Reached target Slices.
systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
systemd[1]: Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
systemd[1]: Reached target Encrypted Volumes.
[  OK  ] Reached target Encrypted Volumes.
systemd[1]: Reached target Paths.
[  OK  ] Reached target Paths.
systemd[1]: Starting Create list of required static device nodes for the current kernel...
         Starting Create list of required st…ce nodes for the current kernel...
systemd[1]: Mounting POSIX Message Queue File System...
         Mounting POSIX Message Queue File System...
systemd[1]: Listening on udev Control Socket.
[  OK  ] Listening on udev Control Socket.
systemd[1]: dev-hugepages.mount: Couldn't determine result for ConditionVirtualization=!private-users, assuming failed: No such file or directory
systemd[1]: Starting Journal Service...
         Starting Journal Service...
systemd[1]: Mounted POSIX Message Queue File System.
[  OK  ] Mounted POSIX Message Queue File System.
systemd[1]: Mounted Debug File System.
[  OK  ] Mounted Debug File System.
systemd[1]: Started Load Kernel Modules.
[  OK  ] Started Load Kernel Modules.
systemd[1]: Started Remount Root and Kernel File Systems.
[  OK  ] Started Remount Root and Kernel File Systems.
systemd[1]: Started Create list of required static device nodes for the current kernel.
[  OK  ] Started Create list of required sta…vice nodes for the current kernel.
systemd[1]: Started Journal Service.
[  OK  ] Started Journal Service.
         Starting Create Static Device Nodes in /dev...
         Starting Flush Journal to Persistent Storage...
         Starting Load/Save Random Seed...
         Starting udev Coldplug all Devices...
         Starting Apply Kernel Variables...
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Started Create Static Device Nodes in /dev.
[  OK  ] Started Apply Kernel Variables.
         Starting udev Kernel Device Manager...
[  OK  ] Reached target Local File Systems (Pre).
[  OK  ] Reached target Local File Systems.
         Starting Raise network interfaces...
[  OK  ] Started udev Coldplug all Devices.
systemd-journald[488]: Received request to flush runtime journal from PID 1
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started udev Kernel Device Manager.
         Starting Create Volatile Files and Directories...
[  OK  ] Started Create Volatile Files and Directories.
         Starting Update UTMP about System Boot/Shutdown...
         Starting Network Time Synchronization...
[  OK  ] Found device /dev/ttyS0.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Reached target System Initialization.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Started Daily Cleanup of Temporary Directories.
[  OK  ] Reached target Basic System.
[  OK  ] Started Regular background program processing daemon.
         Starting Login Service...
[  OK  ] Started D-Bus System Message Bus.
         Starting System Logging Service...
[  OK  ] Reached target System Time Synchronized.
[  OK  ] Started Login Service.
[  OK  ] Started System Logging Service.
random: nonblocking pool is initialized
         Stopping Network Time Synchronization...
[  OK  ] Stopped Network Time Synchronization.
         Starting Network Time Synchronization...
[  OK  ] Started Network Time Synchronization.
         Stopping Network Time Synchronization...
[  OK  ] Stopped Network Time Synchronization.
         Starting Network Time Synchronization...
[  OK  ] Started Raise network interfaces.
[  OK  ] Reached target Network.
         Starting OpenBSD Secure Shell server...
         Starting Permit User Sessions...
[  OK  ] Reached target Network is Online.
[  OK  ] Started Daily apt download activities.
[  OK  ] Started Daily apt upgrade and clean activities.
[  OK  ] Reached target Timers.
[  OK  ] Started Network Time Synchronization.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started Serial Getty on ttyS0.
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started OpenBSD Secure Shell server.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.

Debian GNU/Linux 9 seagate-dev ttyS0

seagate-dev login: eth0: link up, speed 1000 Mb/s, full duplex

Debian GNU/Linux 9 seagate-dev ttyS0

seagate-dev login: root

Re: Linux Kernel 4.4.117 Oxnas (OX820) Pogo V3 package and Debian rootfs

$
0
0
ShapeShifter499 Wrote:
-------------------------------------------------------
> Hello Bodhi,
>
> The thread is too long to read through all of it.
> I'm just wondering what your patches fix over the
> mainline and why they haven't been added to the
> mainline kernel.

Yes the patches should be applied on top of the mainline source tree 4.4.117. There is already activity to mainline the OX820 SoC starting kernel 4.9.x by Neil Amstrong.

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

$
0
0
I think you both were most likely right! perhaps this box hang when we don't try initialize the NAND partitions. Will do a version 4 to add the correct NAND mtds back in.

Overall, the kernel log looks very good.

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

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

$
0
0
Hi!

I think i made progress with kwboot! After reading this post
I downloaded from the solid-run page
the download-serial.sh script.
This scripts is similar to kwboot, interrupts the startup and then uploads a binary with the standard tool sx for the xmodem protocoll.
I have nearly a 100% success rate with this script to get the NAK package of an interrupted startup sequence. But the upload afterwards still fails.
The kwboot script has the -p flag to patch the image. I thought, maybe our image is wrong, and it gets rejected by the N2350 box. So i downloaded the uart image from this page, which was also mentioned in the other post.
Then i get this result:

[kwboot]$ ./download-serial.sh /dev/ttyUSB0 newkwboot/armada-38x-bootloader-recovery-files/u-boot-a38x-spi-uart.bin 
send-stop-pattern.c: In Funktion »main«:
send-stop-pattern.c:24:2: Warnung: Implizite Deklaration der Funktion »sleep«; meinten Sie »beep«? [-Wimplicit-function-declaration]
  sleep(2);
  ^~~~~
  beep
Now reset or power cycle your Armada 38x board and then press enter

Sleeping
Out of sleep
Got something 21
Got NACK (0x15) character
The board should be in serial downloader now. Sending the binary file 
Sending newkwboot/armada-38x-bootloader-recovery-files/u-boot-a38x-spi-uart.bin, 7499 blocks: Give your local XMODEM receive command now.
Xmodem sectors/kbytes sent: 200/25kRetry 0: Got 00 for sector ACK

It does actually upload! The sectors/kbytes numbers quickly increased and i interrupted the process, since i was not sure if it was safe to upload a random image from the internet..

But i guess the conclusion is clear:
Either the download-serial.sh script is better, and we just have to modify our mtd_uboot image in the same way kwboot does with the "-p" flag or our mtd_uboot image is somehow not suited for this.

edit: Looking at the sources: download-serial.sh spams the magic character sequence 6000 times. The mainline kwboot sources show, that it only spams them 16 times in a row. As far as i understand this can only be changed by editing the kwboot sources. But i don't really know how to build it (simply gcc needs more includes, and with the Makefile i don't get which target i have to choose..). Doesn't really matter though, the script is also fine, i guess.
Viewing all 26628 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>