Welcome! Log In Create A New Profile

Advanced

Debian on Kirkwood Box Ctera C200 v1 with 512MB memory and two SATA bays for 3.5" Hard Drives

Posted by daviddyer 
Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 06, 2022 06:41PM
Well, I choose that name because the debian dts folder names other kirkwood boxes that way...

And the source code file (from openwrt) name is kirkwood-c200-v1.dts

Or, like the pogoplug v4, name it kirkwood-c200_v1.dtb ?

Just tested one LED, seems fine. I have the usb boot drive on usb1, so LED for usb1 it is on. (green)

root@debian:/sys/class/leds/green:usb1# echo 0 >brightness

LED is off now.

root@debian:/sys/class/leds/green:usb1# echo 4096 >brightness

LED is on again

root@debian:/sys/class/leds/green:usb1#



Edited 4 time(s). Last edit at 01/06/2022 07:25PM by daviddyer.
Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 06, 2022 07:07PM
U-boot 2021 for C200_v1

seems sata command not working properly? I guess it should show some info after these commands.

I connected a rusty 250GB to the system and one usb flash drive (boot drive)



U-Boot 2021.10-tld-0.1 (Jan 06 2022 - 13:10:13 -0800)Ctera C200 V1

SoC:   Kirkwood 88F6281_A1
Model: Ctera C200 V1
DRAM:  512 MiB
NAND:  256 MiB
MMC:
Loading Environment from NAND... OK
In:    serial
Out:   serial
Err:   serial
Net:   eth0: ethernet-controller@72000
88E1116 Initialized on ethernet-controller@72000
Hit any key to stop autoboot:  0
C200_V1>sata init
C200_V1>sata info
C200_V1>sata info
C200_V1>

Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 06, 2022 07:12PM
The good news: The new uboot booted openwrt fine... might be a good choice for rescue system

C200_V1>printenv
bootcmd=run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec
bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then bootm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_addr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm $load_uimage_addr; fi; fi
bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi; sleep 3
bootdelay=10
bootdev=usb
device=0:1
devices=usb ide
disks=0 1 2 3
dtb_file=/boot/dts/kirkwood-c200-v1.dtb
ethact=egiga0
ethaddr=00:25:25:00:6d:f2
fdtcontroladdr=1fb53f00
if_netconsole=ping $serverip
ipaddr=192.168.7.73
led_error=orange blinking
led_exit=green off
led_init=green blinking
load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $dtb_file
load_dtb_addr=0x1c00000
load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /boot/uInitrd
load_initrd_addr=0x1100000
load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /boot/uImage
load_uimage_addr=0x800000
mainlineLinux=yes
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:0x100000@0x0(u-boot),-@0x100000(ubi)
partition=nand0,2
preboot_nc=run if_netconsole start_netconsole
scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start";  setenv scan_ide "ide reset";  setenv scan_mmc "mmc rescan"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done
serverip=192.168.7.4
set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
stderr=serial
stdin=serial
stdout=serial
uenv_addr=0x810000
uenv_import=echo importing envs ...; env import -t $uenv_addr $filesize
uenv_init_devices=echo Initializing devices...; setenv init_usb "usb start";  setenv init_ide "ide reset";  setenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done
uenv_load=run uenv_init_devices; setenv uenv_loaded 0; for devtype in $devices; do for disknum in $disks; do if test $uenv_loaded -eq 0; then setenv device_type $devtype; setenv disk_number $disknum; run uenv_read; fi; done; done;
uenv_read=echo Loading envs from $device_type $disk_number...; if load $device_type  $disk_number:1 $uenv_addr /boot/uEnv.txt; then setenv uenv_loaded 1; echo ... envs loaded; fi
usb_ready_retry=15
ver=U-Boot 2021.10-tld-0.1 (Jan 06 2022 - 13:10:13 -0800)Ctera C200 V1

Environment size: 2849/131068 bytes
C200_V1>usb reset
resetting USB...
Bus ehci@50000: USB EHCI 1.00
scanning bus ehci@50000 for devices...
Use USB retry period from the environment: 15 second(s)
3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
C200_V1>ext2load usb 0 0x800000 kernel
4446109 bytes read in 212 ms (20 MiB/s)
C200_V1>bootm 0x800000
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   ARM OpenWrt Linux-5.10.82
   Created:      2021-12-04   0:39:11 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4446045 Bytes = 4.2 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
   Loading Kernel Image

Starting kernel ...

[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 5.10.82 (pi@Lubuntu7010) (arm-openwrt-linux-muslgnueabi-gcc (OpenWrt GCC 11.2.0 r18283-3843c641d8) 11.2.0, GNU ld (GNU Binutils) 2.37) #0 Sat Dec 4 00:39:11 2021
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] OF: fdt: Machine model: Ctera C200 V1
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 129920
[    0.000000] Kernel command line: console=ttyS0,115200
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[    0.000000] Memory: 504040K/524288K available (5668K kernel code, 589K rwdata, 1456K rodata, 6144K init, 206K bss, 20248K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000] random: get_random_bytes called from start_kernel+0x330/0x560 with crng_init=0
[    0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000008] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000041] Switching to timer-based delay loop, resolution 5ns
[    0.000128] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000153] pid_max: default: 32768 minimum: 301
[    0.000334] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.000360] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001254] CPU: Testing write buffer coherency: ok
[    0.002150] Setting up static identity map for 0x100000 - 0x10003c
[    0.002407] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.002587] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build
[    0.005691] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.005724] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.005842] pinctrl core: initialized pinctrl subsystem
[    0.006760] NET: Registered protocol family 16
[    0.007175] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.008131] thermal_sys: Registered thermal governor 'step_wise'
[    0.008231] cpuidle: using governor ladder
[    0.008543] Feroceon L2: Enabling L2
[    0.008592] Feroceon L2: Cache support initialised.
[    0.019674] No ATAGs?
[    0.063838] SCSI subsystem initialized
[    0.065251] usbcore: registered new interface driver usbfs
[    0.065307] usbcore: registered new interface driver hub
[    0.065360] usbcore: registered new device driver usb
[    0.070797] clocksource: Switched to clocksource orion_clocksource
[    0.071553] NET: Registered protocol family 2
[    0.071713] IP idents hash table entries: 8192 (order: 4, 65536 bytes, linear)
[    0.072361] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    0.072411] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.072466] TCP bind hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    0.072517] TCP: Hash tables configured (established 4096 bind 4096)
[    0.072613] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.072640] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    0.072812] NET: Registered protocol family 1
[    0.072844] PCI: CLS 0 bytes, default 32
[    0.145115] workingset: timestamp_bits=14 max_order=17 bucket_order=3
[    0.148883] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.148902] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.151837] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.153059] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:
[    0.153105] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[    0.153133] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    0.153153] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    0.153338] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    0.153359] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.153374] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[    0.153387] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    0.153399] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    0.153501] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400
[    0.153530] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    0.154778] PCI: bus0: Fast back to back transfers disabled
[    0.154796] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.155853] PCI: bus1: Fast back to back transfers enabled
[    0.155872] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.156066] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0000000-0xe00007ff pref]
[    0.156083] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.156531] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.157102] printk: console [ttyS0] disabled
[    0.157196] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    0.703115] printk: console [ttyS0] enabled
[    0.708376] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xda
[    0.714793] nand: Samsung NAND 256MiB 3,3V 8-bit
[    0.719430] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    0.727058] Scanning device for bad blocks
[    0.783164] Bad eraseblock 490 at 0x000003d40000
[    0.795696] Bad eraseblock 565 at 0x0000046a0000
[    0.823798] Bad eraseblock 787 at 0x000006260000
[    0.835272] Bad eraseblock 852 at 0x000006a80000
[    0.857236] Bad eraseblock 1016 at 0x000007f00000
[    0.923261] Bad eraseblock 1595 at 0x00000c760000
[    0.949659] Bad eraseblock 1800 at 0x00000e100000
[    0.956355] Bad eraseblock 1819 at 0x00000e360000
[    0.964850] Bad eraseblock 1855 at 0x00000e7e0000
[    0.989963] 10 fixed-partitions partitions found on MTD device orion_nand
[    0.996799] Creating 10 MTD partitions on "orion_nand":
[    1.002061] 0x000000000000-0x000000200000 : "uboot"
[    1.010644] 0x000000200000-0x000000300000 : "certificate"
[    1.016606] 0x000000300000-0x000000400000 : "preset_cfg"
[    1.023724] 0x000000400000-0x000000500000 : "dev_params"
[    1.029524] 0x000000500000-0x000000600000 : "active_bank"
[    1.036682] 0x000000600000-0x000000700000 : "magic"
[    1.042103] 0x000000700000-0x000002f00000 : "bank1"
[    1.048828] 0x000002f00000-0x000005700000 : "bank2"
[    1.054357] 0x000005a00000-0x000007a00000 : "reserved"
[    1.061402] 0x000007a00000-0x000010000000 : "ubi"
[    1.070452] libphy: Fixed MDIO Bus: probed
[    1.075642] libphy: orion_mdio_bus: probed
[    1.100089] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    1.861579] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:25:25:00:6d:f2
[    1.870564] i2c /dev entries driver
[    1.875460] orion_wdt: Initial timeout 21 sec
[    1.892600] marvell-cesa f1030000.crypto: CESA device successfully registered
[    1.900548] NET: Registered protocol family 10
[    1.906831] Segment Routing with IPv6
[    1.910596] NET: Registered protocol family 17
[    1.915257] 8021q: 802.1Q VLAN Support v1.8
[    1.923476] UBI error: no valid UBI magic found inside mtd9
[    1.946826] Freeing unused kernel memory: 6144K
[    1.951950] Run /init as init process
[    2.173590] init: Console is alive
[    2.177219] init: - watchdog -
[    2.188200] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    2.203375] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    2.216426] ehci-fsl: Freescale EHCI Host controller driver
[    2.227062] ehci-orion: EHCI orion driver
[    2.231297] orion-ehci f1050000.ehci: EHCI Host Controller
[    2.236851] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    2.244694] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    2.270860] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    2.277449] hub 1-0:1.0: USB hub found
[    2.281898] hub 1-0:1.0: 1 port detected
[    2.291404] random: fast init done
[    2.294927] ehci-platform: EHCI generic platform driver
[    2.313326] sata_mv f1080000.sata: slots 32 ports 2
[    2.323573] scsi host0: sata_mv
[    2.327897] scsi host1: sata_mv
[    2.331377] ata1: SATA max UDMA/133 irq 32
[    2.335492] ata2: SATA max UDMA/133 irq 32
[    2.580814] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    2.673564] ata1: SATA link down (SStatus 0 SControl F300)
[    2.781829] hub 1-1:1.0: USB hub found
[    2.785916] hub 1-1:1.0: 4 ports detected
[    3.110811] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[    3.170824] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    3.181614] ata2.00: ATA-8: WDC WD2500AAKX-75U6AA0, 19.01H19, max UDMA/133
[    3.188536] ata2.00: 488397168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    3.199895] ata2.00: configured for UDMA/133
[    3.204534] scsi 1:0:0:0: Direct-Access     ATA      WDC WD2500AAKX-7 1H19 PQ: 0 ANSI: 5
[    3.213797] sd 1:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/233 GiB)
[    3.222247] sd 1:0:0:0: [sda] Write Protect is off
[    3.227228] sd 1:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    3.246507]  sda: sda1 sda2 sda3
[    3.250926] sd 1:0:0:0: [sda] Attached SCSI disk
[    3.265971] rtc-s35390a 0-0030: registered as rtc0
[    3.274216] rtc-s35390a 0-0030: setting system clock to 2022-01-07T01:09:29 UTC (1641517769)
[    3.283719] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    3.293203] init: - preinit -
[    3.470517] random: jshn: uninitialized urandom read (4 bytes read)
[    3.517061] random: jshn: uninitialized urandom read (4 bytes read)
[    3.541919] random: jshn: uninitialized urandom read (4 bytes read)
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    7.486759] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[    7.496687] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    8.560111] procd: - early -
[    8.563718] procd: - watchdog -
[    9.142249] procd: - watchdog -
[    9.145774] procd: - ubus -
[    9.201828] procd: - init -
Please press Enter to activate this console.
[    9.586502] kmodloader: loading kernel modules from /etc/modules.d/*
[    9.679085] xt_time: kernel timezone is -0000
[    9.689131] urngd: v1.0.2 started.
[    9.742566] PPP generic driver version 2.4.2
[    9.762631] NET: Registered protocol family 24
[    9.802669] kmodloader: done loading kernel modules from /etc/modules.d/*
[    9.850869] random: crng init done
[    9.854295] random: 7 urandom warning(s) missed due to ratelimiting
[   20.531777] br-lan: port 1(eth0) entered blocking state
[   20.537037] br-lan: port 1(eth0) entered disabled state
[   20.542544] device eth0 entered promiscuous mode
[   23.682851] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control enabled
[   23.692700] br-lan: port 1(eth0) entered blocking state
[   23.697950] br-lan: port 1(eth0) entered forwarding state
[   23.705422] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready



BusyBox v1.34.1 (2021-12-04 00:39:11 UTC) built-in shell (ash)

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 OpenWrt SNAPSHOT, r18283-3843c641d8
 -----------------------------------------------------
=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@OpenWrt:/# ifconfig
br-lan    Link encap:Ethernet  HWaddr 00:25:25:00:6D:F2
          inet addr:192.168.7.248  Bcast:192.168.7.255  Mask:255.255.255.0
          inet6 addr: fe80::225:25ff:fe00:6df2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:124 errors:0 dropped:0 overruns:0 frame:0
          TX packets:43 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:13481 (13.1 KiB)  TX bytes:4712 (4.6 KiB)

eth0      Link encap:Ethernet  HWaddr 00:25:25:00:6D:F2
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:128 errors:0 dropped:4 overruns:0 frame:0
          TX packets:46 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:16737 (16.3 KiB)  TX bytes:4978 (4.8 KiB)
          Interrupt:33

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:64 errors:0 dropped:0 overruns:0 frame:0
          TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6296 (6.1 KiB)  TX bytes:6296 (6.1 KiB)

root@OpenWrt:/# ping www.google.com
PING www.google.com (142.250.68.132): 56 data bytes
64 bytes from 142.250.68.132: seq=0 ttl=115 time=17.180 ms
64 bytes from 142.250.68.132: seq=1 ttl=115 time=17.609 ms
^C
--- www.google.com ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 17.180/17.394/17.609 ms
root@OpenWrt:/#

Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 06, 2022 11:25PM
Yes, we should name it just like the original: kirkwood-c200-v1.dts, and kirkwood-c200-v1.dtb.

Let me take a look at SATA configs, might be missing something.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 06, 2022 11:58PM
Here is the 0.2 version.

I'd hope that you were using 2nd SATA slot. This version will probe both slots, I'd suggest: a single HDD on slot 0, and then slot 1, and then 2 on both.

If this is not successful then there is a real difference in the GPIO pins. This case will take a bit more time to dig into.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - uboot.2021.10-tld-0.2.c200v1.mtd0.kwb (512 KB)
Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 07, 2022 12:07AM
Strike this! it was not configured correctly for RTC. So wait for next version to test RTC.

=============

The RTC is emulated in this new u-boot. So try (adjust to your IP numbers, 192.168.0.1 is the router).

setenv set_rtc 'setenv dnsip 192.168.0.1;setenv gatewayip 192.168.0.1;setenv netmask 255.255.255.0; dns montpelier.caltech.edu ntpserver; sntp $ntpserver'
run set_rtc

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 01/07/2022 12:14AM by bodhi.
Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 07, 2022 08:13AM
Tested the new u-boot (250GB stat in its old place. Disk is in Disk 2 position of the box )

1 Soft RTC works.
2 sata init / sata info takes a little longer than last version. And it seems working!
3 Debian booted fine. Functions OK.

root@raspberrypi:~/c200# kwboot -t -B 115200 /dev/ttyAMA0 -b uboot.2021.10-tld-0.2.c200v1.mtd0.kwb -p
Sending boot message. Please reboot the target...|
Sending boot image...
  0 % [......................................................................]
          ----------------
 99 % [....................................]
[Type Ctrl-\ + c to quit]


U-Boot 2021.10-tld-0.2 (Jan 06 2022 - 21:40:54 -0800)Ctera C200 V1

SoC:   Kirkwood 88F6281_A1
Model: Ctera C200 V1
DRAM:  512 MiB
NAND:  256 MiB
MMC:
Loading Environment from NAND... OK
In:    serial
Out:   serial
Err:   serial
Net:   eth0: ethernet-controller@72000
88E1116 Initialized on ethernet-controller@72000
Hit any key to stop autoboot:  0
C200_V1>setenv set_rtc 'setenv dnsip 192.168.7.1;setenv gatewayip 192.168.7.1;setenv netmask 255.255.255.0; dns montpelier.caltech.edu ntpserver; sntp $ntpserver'
C200_V1>run set_rtc
ethernet-controller@72000 Waiting for PHY auto negotiation to complete....... done
192.12.19.20
ethernet-controller@72000 Waiting for PHY auto negotiation to complete........ done
SNTP: cannot find RTC: err=-19
Date: 2022-01-07 Time: 12:48:02

sata command works. I put one 250GB to the system. Disk is in Disk 2 position.

C200_V1>sata init
C200_V1>sata info
Failed to wait for completion on port 0
ATA operation timed out
Failed to wait for completion on port 0
ATA operation timed out
Device 0: Model:  Firm:  Ser#:
            Type: Hard Disk
            Capacity: not available
Device 1: Model: WDC WD2500AAKX-75U6AA0 Firm: 19.01H19 Ser#:      WD-WMC2F0015169
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)

Booted fine. Tested a few more LEDs. Seems matching / working

root@debian:/sys/class/leds/green:disk2# ls
.  ..  brightness  device  max_brightness  power  subsystem  trigger  uevent
root@debian:/sys/class/leds/green:disk2# ls -l
total 0
drwxr-xr-x  3 root root    0 Jan  7 05:55 .
drwxr-xr-x 15 root root    0 Jan  7 05:55 ..
-rw-r--r--  1 root root 4096 Jan  7 05:55 brightness
lrwxrwxrwx  1 root root    0 Jan  7 05:55 device -> ../../../leds
-r--r--r--  1 root root 4096 Jan  7 05:55 max_brightness
drwxr-xr-x  2 root root    0 Jan  7 05:55 power
lrwxrwxrwx  1 root root    0 Jan  7 05:55 subsystem -> ../../../../../class/leds
-rw-r--r--  1 root root    0 Jan  7 05:55 trigger
-rw-r--r--  1 root root 4096 Jan  7 05:55 uevent
root@debian:/sys/class/leds/green:disk2# cat trigger
[none] usb-gadget usb-host kbd-scrolllock kbd-numlock kbd-capslock kbd-kanalock kbd-shiftlock kbd-altgrlock kbd-ctrllock kbd-altlock kbd-shiftllock kbd-shiftrlock kbd-ctrlllock kbd-ctrlrlock f1072004.mdio-bus-mii:09:link f1072004.mdio-bus-mii:09:1Gbps f1072004.mdio-bus-mii:09:100Mbps f1072004.mdio-bus-mii:09:10Mbps usbport timer oneshot disk-activity disk-read disk-write ide-disk1 ide-disk2 mtd nand-disk heartbeat gpio default-on panic
root@debian:/sys/class/leds/green:disk2# cd power
root@debian:/sys/class/leds/green:disk2/power# ls
.   autosuspend_delay_ms  runtime_active_time  runtime_suspended_time
..  control               runtime_status
root@debian:/sys/class/leds/green:disk2/power# ls -l
total 0
drwxr-xr-x 2 root root    0 Jan  7 05:55 .
drwxr-xr-x 3 root root    0 Jan  7 05:55 ..
-rw-r--r-- 1 root root 4096 Jan  7 05:56 autosuspend_delay_ms
-rw-r--r-- 1 root root 4096 Jan  7 05:56 control
-r--r--r-- 1 root root 4096 Jan  7 05:56 runtime_active_time
-r--r--r-- 1 root root 4096 Jan  7 05:56 runtime_status
-r--r--r-- 1 root root 4096 Jan  7 05:56 runtime_suspended_time
root@debian:/sys/class/leds/green:disk2/power# cat control
auto
root@debian:/sys/class/leds/green:disk2/power# cd ..
root@debian:/sys/class/leds/green:disk2# ls
.  ..  brightness  device  max_brightness  power  subsystem  trigger  uevent
root@debian:/sys/class/leds/green:disk2# echo none >trigger
root@debian:/sys/class/leds/green:disk2# ls
.  ..  brightness  device  max_brightness  power  subsystem  trigger  uevent
root@debian:/sys/class/leds/green:disk2# ls -l
total 0
drwxr-xr-x  3 root root    0 Jan  7 05:55 .
drwxr-xr-x 15 root root    0 Jan  7 05:55 ..
-rw-r--r--  1 root root 4096 Jan  7 05:55 brightness
lrwxrwxrwx  1 root root    0 Jan  7 05:55 device -> ../../../leds
-r--r--r--  1 root root 4096 Jan  7 05:55 max_brightness
drwxr-xr-x  2 root root    0 Jan  7 05:55 power
lrwxrwxrwx  1 root root    0 Jan  7 05:55 subsystem -> ../../../../../class/leds
-rw-r--r--  1 root root    0 Jan  7 05:58 trigger
-rw-r--r--  1 root root 4096 Jan  7 05:55 uevent
root@debian:/sys/class/leds/green:disk2# echo 0 >brightness
root@debian:/sys/class/leds/green:disk2# echo 4096 >brightness
root@debian:/sys/class/leds/green:disk2# echo 0 >brightness
root@debian:/sys/class/leds/green:disk2# echo 4096 >brightness
root@debian:/sys/class/leds/green:disk2# echo 0 >brightness
root@debian:/sys/class/leds/green:disk2# cd ..
root@debian:/sys/class/leds# ls
.           green:disk-fail  green:status  red:disk-fail  red:status
..          green:disk1      green:usb1    red:disk1      red:usb1
blue:cloud  green:disk2      green:usb2    red:disk2      red:usb2
root@debian:/sys/class/leds# cd red:disk2
root@debian:/sys/class/leds/red:disk2# ls
.  ..  brightness  device  max_brightness  power  subsystem  trigger  uevent
root@debian:/sys/class/leds/red:disk2# cat trigger
[none] usb-gadget usb-host kbd-scrolllock kbd-numlock kbd-capslock kbd-kanalock kbd-shiftlock kbd-altgrlock kbd-ctrllock kbd-altlock kbd-shiftllock kbd-shiftrlock kbd-ctrlllock kbd-ctrlrlock f1072004.mdio-bus-mii:09:link f1072004.mdio-bus-mii:09:1Gbps f1072004.mdio-bus-mii:09:100Mbps f1072004.mdio-bus-mii:09:10Mbps usbport timer oneshot disk-activity disk-read disk-write ide-disk1 ide-disk2 mtd nand-disk heartbeat gpio default-on panic
root@debian:/sys/class/leds/red:disk2# echo none >trigger
root@debian:/sys/class/leds/red:disk2# ls
.  ..  brightness  device  max_brightness  power  subsystem  trigger  uevent
root@debian:/sys/class/leds/red:disk2# echo 0 > brightness
root@debian:/sys/class/leds/red:disk2# echo 4096 > brightness
root@debian:/sys/class/leds/red:disk2# echo 0 > brightness
root@debian:/sys/class/leds/red:disk2# echo 1 > brightness
root@debian:/sys/class/leds/red:disk2# echo 0 > brightness
root@debian:/sys/class/leds/red:disk2# echo 1 > brightness
root@debian:/sys/class/leds/red:disk2# cd ..
root@debian:/sys/class/leds# ls
.           green:disk-fail  green:status  red:disk-fail  red:status
..          green:disk1      green:usb1    red:disk1      red:usb1
blue:cloud  green:disk2      green:usb2    red:disk2      red:usb2
root@debian:/sys/class/leds# cd red:disk1
root@debian:/sys/class/leds/red:disk1# ls
.  ..  brightness  device  max_brightness  power  subsystem  trigger  uevent
root@debian:/sys/class/leds/red:disk1# echo none >trigger
root@debian:/sys/class/leds/red:disk1# echo 0 >brightness
root@debian:/sys/class/leds/red:disk1# echo 1 >brightness



Edited 2 time(s). Last edit at 01/07/2022 08:52AM by daviddyer.
Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 07, 2022 08:18AM
Thoughts on the RTC: IMHO, we can just stick to the soft RTC. These kirkwood devices are about 10 years old, I guess most of the batteries died. Soft RTC should be a good solution.
Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 07, 2022 08:30AM
One 250GB rusty disk in disk 1 position. sata command Works...

root@raspberrypi:~/c200# kwboot -t -B 115200 /dev/ttyAMA0 -b uboot.2021.10-tld-0.2.c200v1.mtd0.kwb -p
Sending boot message. Please reboot the target...|
Sending boot image...
  0 % [......................................................................]
  1 % [......................................................................]
----------
 99 % [....................................]
[Type Ctrl-\ + c to quit]


U-Boot 2021.10-tld-0.2 (Jan 06 2022 - 21:40:54 -0800)Ctera C200 V1

SoC:   Kirkwood 88F6281_A1
Model: Ctera C200 V1
DRAM:  512 MiB
NAND:  256 MiB
MMC:
Loading Environment from NAND... OK
In:    serial
Out:   serial
Err:   serial
Net:   eth0: ethernet-controller@72000
88E1116 Initialized on ethernet-controller@72000
Hit any key to stop autoboot:  0
C200_V1>sata init
C200_V1>sata info
Device 0: Model: WDC WD2500AAKX-75U6AA0 Firm: 19.01H19 Ser#:      WD-WMC2F0015169
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)
Failed to wait for completion on port 1
ATA operation timed out
Device 1: Model:  Firm:  Ser#:
            Type: Hard Disk
            Capacity: not available
C200_V1>

Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 07, 2022 08:39AM
One 250GB rusty disk in disk 1 position.
One 256GB ssd in disk 2 position

sata command Works...

root@raspberrypi:~/c200# kwboot -t -B 115200 /dev/ttyAMA0 -b uboot.2021.10-tld-0.2.c200v1.mtd0.kwb -p
Sending boot message. Please reboot the target.../
Sending boot image...
  0 % [......................................................................]
======
 99 % [....................................]
[Type Ctrl-\ + c to quit]


U-Boot 2021.10-tld-0.2 (Jan 06 2022 - 21:40:54 -0800)Ctera C200 V1

SoC:   Kirkwood 88F6281_A1
Model: Ctera C200 V1
DRAM:  512 MiB
NAND:  256 MiB
MMC:
Loading Environment from NAND... OK
In:    serial
Out:   serial
Err:   serial
Net:   eth0: ethernet-controller@72000
88E1116 Initialized on ethernet-controller@72000
Hit any key to stop autoboot:  0
C200_V1>sata init
C200_V1>sata info
Device 0: Model: WDC WD2500AAKX-75U6AA0 Firm: 19.01H19 Ser#:      WD-WMC2F0015169
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 238475.1 MB = 232.8 GB (488397168 x 512)
Device 1: Model: SATA SSD Firm: SBFMBB.3 Ser#: 21070725600291
            Type: Hard Disk
            Supports 48-bit addressing
            Capacity: 244198.3 MB = 238.4 GB (500118192 x 512)
C200_V1>
Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 07, 2022 08:46AM
One problem about disk 1 / disk 2 LED (in debian).

I think disk1 / disk 2 LED are supposed to light up when there's a drive installed. LED for disk 1 / disk 2 doesn't light up after debian is booted.

Also, if I operate on disk 1 / disk 2, the LED for disk 1 / disk 2 doesn't flash.

Disk 1 250GB rusty
Disk 2 256GB SSD

root@debian:~# dd if=/dev/sda of=/dev/null bs=4M count=512
512+0 records in
512+0 records out
2147483648 bytes (2.1 GB, 2.0 GiB) copied, 16.8562 s, 127 MB/s
root@debian:~# dd if=/dev/sdb of=/dev/null bs=4M count=512
512+0 records in
512+0 records out
2147483648 bytes (2.1 GB, 2.0 GiB) copied, 16.305 s, 132 MB/s
root@debian:~#

Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 07, 2022 03:51PM
Excellent!

The SNTP test is a good test of going out to the internet and get time from the time server. The command works, but should not give error. The RTC error was because currently it is currently configured as Marvell RTC, which is not correct.

The RTC driver for this box is not in u-boot, so I will reconfigure it as RTC emulation (this option was not available in 2017.07 u-boot). I think this RTC driver is not available in Linux kernel either (why it was disabled in the DTS).

See the LED names in Debian:

ls -l /sys/class/leds

And then (adjust to the correct names as the output above, if necessary).

echo  ide-disk1 > /sys/class/leds/green:disk1/trigger
echo  ide-disk2 > /sys/class/leds/green:disk2/trigger

Note that HDD LEDs don't light up by default. But they should flash when there are activities.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 2 time(s). Last edit at 01/07/2022 05:09PM by bodhi.
Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 07, 2022 05:13PM
Here is the tld-0.3 version. This should fix the RTC error message.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Attachments:
open | download - uboot.2021.10-tld-0.3.c200v1.mtd0.kwb (512 KB)
Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 07, 2022 05:42PM
Yes. The RTC error is gone now.

U-Boot 2021.10-tld-0.3 (Jan 07 2022 - 15:08:00 -0800)Ctera C200 V1

SoC:   Kirkwood 88F6281_A1
Model: Ctera C200 V1
DRAM:  512 MiB
NAND:  256 MiB
MMC:
Loading Environment from NAND... OK
In:    serial
Out:   serial
Err:   serial
Net:   eth0: ethernet-controller@72000
88E1116 Initialized on ethernet-controller@72000
Hit any key to stop autoboot:  0
C200_V1>
C200_V1>setenv set_rtc 'setenv dnsip 192.168.7.1;setenv gatewayip 192.168.7.1;setenv netmask 255.255.255.0; dns montpelier.caltech.edu ntpserver; sntp $ntpserver'
C200_V1>run set_rtc
ethernet-controller@72000 Waiting for PHY auto negotiation to complete....... done
192.12.19.20
ethernet-controller@72000 Waiting for PHY auto negotiation to complete........ done
Date: 2022-01-07 Time: 23:35:44
C200_V1>boot
Initializing devices...
starting USB...
Bus ehci@50000: USB EHCI 1.00
scanning bus ehci@50000 for devices...
Use USB retry period from the environment: 15 second(s)
3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
Unknown command 'ide' - try 'help'
Loading envs from usb 0...
Failed to load '/boot/uEnv.txt'
Loading envs from usb 1...
Couldn't find partition usb 1:1
Can't set block device
Loading envs from usb 2...
Couldn't find partition usb 2:1
Can't set block device
Loading envs from usb 3...
Couldn't find partition usb 3:1
Can't set block device
Loading envs from ide 0...
Couldn't find partition ide 0:1
Can't set block device
Loading envs from ide 1...
Couldn't find partition ide 1:1
Can't set block device
Loading envs from ide 2...
Couldn't find partition ide 2:1
Can't set block device
Loading envs from ide 3...
Couldn't find partition ide 3:1
Can't set block device
running scan_disk ...
Scan device usb
device usb 0:1
1 bytes read in 9 ms (0 Bytes/s)
Found bootable drive on usb 0
loading uImage ...
5576016 bytes read in 313 ms (17 MiB/s)
loading uInitrd ...
9582895 bytes read in 526 ms (17.4 MiB/s)
loading DTB /boot/dts/kirkwood-c200-v1.dtb ...
12173 bytes read in 12 ms (990.2 KiB/s)
## Booting kernel from Legacy Image at 00800000 ...
   Image Name:   Linux-5.9.12-kirkwood-tld-1
   Created:      2021-11-11  15:06:18 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    5575952 Bytes = 5.3 MiB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
   Image Name:   initramfs-5.9.12-kirkwood-tld-1
   Created:      2021-11-11  15:06:26 UTC
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    9582831 Bytes = 9.1 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 01c00000
   Booting using the fdt blob at 0x1c00000
   Loading Kernel Image
   Loading Ramdisk to 1f22e000, end 1fb518ef ... OK
   Loading Device Tree to 1f228000, end 1f22df8c ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
[    0.000000][    T0] Booting Linux on physical CPU 0x0
[    0.000000][    T0] Linux version 5.9.12-kirkwood-tld-1 (root@tldDebian) (gcc (Debian 8.3.0-6) 8.3.0, GNU ld (GNU Binutils for Debian) 2.31.1) #1.0 PREEMPT Sat Dec 5 14:05:39 PST 2020
[    0.000000][    T0] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000][    T0] CPU: VIVT data cache, VIVT instruction cache
[    0.000000][    T0] OF: fdt: Machine model: Ctera C200 V1
[    0.000000][    T0] Memory policy: Data cache writeback
[    0.000000][    T0] Zone ranges:
[    0.000000][    T0]   Normal   [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] Movable zone start for each node
[    0.000000][    T0] Early memory node ranges
[    0.000000][    T0]   node   0: [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] Initmem setup node 0 [mem 0x0000000000000000-0x000000001fffffff]
[    0.000000][    T0] Built 1 zonelists, mobility grouping on.  Total pages: 130048
[    0.000000][    T0] Kernel command line: console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:0x100000@0x0(u-boot),-@0x100000(ubi)
[    0.000000][    T0] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear)
[    0.000000][    T0] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear)
[    0.000000][    T0] mem auto-init: stack:off, heap alloc:on, heap free:off
[    0.000000][    T0] Memory: 492516K/524288K available (10240K kernel code, 1096K rwdata, 4144K rodata, 1024K init, 316K bss, 31772K reserved, 0K cma-reserved)
[    0.000000][    T0] random: get_random_u32 called from ____cache_alloc+0x404/0x790 with crng_init=0
[    0.000000][    T0] rcu: Preemptible hierarchical RCU implementation.
[    0.000000][    T0]  Trampoline variant of Tasks RCU enabled.
[    0.000000][    T0]  Rude variant of Tasks RCU enabled.
[    0.000000][    T0]  Tracing variant of Tasks RCU enabled.
[    0.000000][    T0] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies.
[    0.000000][    T0] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[    0.000000][    T0] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000010][    T0] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.000054][    T0] Switching to timer-based delay loop, resolution 5ns
[    0.000848][    T0] Console: colour dummy device 80x30
[    0.000904][    T0] Calibrating delay loop (skipped), value calculated using timer frequency.. 400.00 BogoMIPS (lpj=2000000)
[    0.000933][    T0] pid_max: default: 32768 minimum: 301
[    0.001356][    T0] LSM: Security Framework initializing
[    0.001511][    T0] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.001543][    T0] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear)
[    0.002927][    T0] CPU: Testing write buffer coherency: ok
[    0.004787][    T1] Setting up static identity map for 0x100000 - 0x100058
[    0.005096][    T1] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.005413][    T1] rcu: Hierarchical SRCU implementation.
[    0.006722][    T1] devtmpfs: initialized
[    0.013705][    T1] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.013745][    T1] futex hash table entries: 256 (order: -1, 3072 bytes, linear)
[    0.014017][    T1] xor: measuring software checksum speed
[    0.110120][    T1]    arm4regs  :  1088.800 MB/sec
[    0.210083][    T1]    8regs     :   654.000 MB/sec
[    0.310078][    T1]    32regs    :   950.400 MB/sec
[    0.310100][    T1] xor: using function: arm4regs (1088.800 MB/sec)
[    0.310125][    T1] prandom: seed boundary self test passed
[    0.314305][    T1] prandom: 100 self tests passed
[    0.314317][    T1] pinctrl core: initialized pinctrl subsystem
[    0.315856][    T1] NET: Registered protocol family 16
[    0.316666][    T1] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.317719][    T1] audit: initializing netlink subsys (disabled)
[    0.319129][    T1] thermal_sys: Registered thermal governor 'step_wise'
[    0.319488][   T16] audit: type=2000 audit(0.310:1): state=initialized audit_enabled=0 res=1
[    0.319627][    T1] cpuidle: using governor ladder
[    0.319712][    T1] cpuidle: using governor menu
[    0.320263][    T1] Feroceon L2: Enabling L2
[    0.320315][    T1] Feroceon L2: Cache support initialised.
[    0.336586][    T1] No ATAGs?
[    2.560059][    C0] random: fast init done
[    5.410458][    T1] raid6: int32x8  gen()   109 MB/s
[    5.580211][    T1] raid6: int32x8  xor()    69 MB/s
[    5.750159][    T1] raid6: int32x4  gen()   109 MB/s
[    5.920136][    T1] raid6: int32x4  xor()    72 MB/s
[    6.090152][    T1] raid6: int32x2  gen()   140 MB/s
[    6.260126][    T1] raid6: int32x2  xor()    85 MB/s
[    6.430180][    T1] raid6: int32x1  gen()    98 MB/s
[    6.600248][    T1] raid6: int32x1  xor()    59 MB/s
[    6.600260][    T1] raid6: using algorithm int32x2 gen() 140 MB/s
[    6.600270][    T1] raid6: .... xor() 85 MB/s, rmw enabled
[    6.600279][    T1] raid6: using intx1 recovery algorithm
[    6.600542][    T1] vgaarb: loaded
[    6.601116][    T1] SCSI subsystem initialized
[    6.601641][    T1] usbcore: registered new interface driver usbfs
[    6.601723][    T1] usbcore: registered new interface driver hub
[    6.601812][    T1] usbcore: registered new device driver usb
[    6.602041][    T1] pps_core: LinuxPPS API ver. 1 registered
[    6.602053][    T1] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    6.602084][    T1] PTP clock support registered
[    6.603729][    T1] clocksource: Switched to clocksource orion_clocksource
[    8.143076][    T1] VFS: Disk quotas dquot_6.6.0
[    8.143184][    T1] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    8.154252][    T1] NET: Registered protocol family 2
[    8.155129][    T1] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear)
[    8.155180][    T1] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    8.155251][    T1] TCP bind hash table entries: 4096 (order: 2, 16384 bytes, linear)
[    8.155305][    T1] TCP: Hash tables configured (established 4096 bind 4096)
[    8.155535][    T1] MPTCP token hash table entries: 512 (order: 0, 6144 bytes, linear)
[    8.155604][    T1] UDP hash table entries: 256 (order: 0, 4096 bytes, linear)
[    8.155636][    T1] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear)
[    8.155860][    T1] NET: Registered protocol family 1
[    8.156623][    T1] RPC: Registered named UNIX socket transport module.
[    8.156637][    T1] RPC: Registered udp transport module.
[    8.156646][    T1] RPC: Registered tcp transport module.
[    8.156655][    T1] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    8.156671][    T1] PCI: CLS 0 bytes, default 32
[    8.156991][    T1] Trying to unpack rootfs image as initramfs...
[    8.996551][    T1] Freeing initrd memory: 9360K
[    8.996727][    T1] NetWinder Floating Point Emulator V0.97 (double precision)
[    9.007532][    T1] Initialise system trusted keyrings
[    9.007590][    T1] Key type blacklist registered
[    9.007813][    T1] workingset: timestamp_bits=30 max_order=17 bucket_order=0
[    9.007921][    T1] zbud: loaded
[    9.009387][    T1] NFS: Registering the id_resolver key type
[    9.009422][    T1] Key type id_resolver registered
[    9.009433][    T1] Key type id_legacy registered
[    9.009476][    T1] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    9.009496][    T1] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    9.009789][    T1] jffs2: version 2.2. (NAND) (SUMMARY)  © 2001-2006 Red Hat, Inc.
[    9.010311][    T1] fuse: init (API version 7.31)
[    9.010709][    T1] orangefs_debugfs_init: called with debug mask: :none: :0:
[    9.010923][    T1] orangefs_init: module version upstream loaded
[    9.010938][    T1] SGI XFS with ACLs, security attributes, realtime, scrub, quota, no debug enabled
[    9.114931][    T1] async_tx: api initialized (async)
[    9.114956][    T1] Key type asymmetric registered
[    9.114967][    T1] Asymmetric key parser 'x509' registered
[    9.115028][    T1] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 246)
[    9.115141][    T1] io scheduler bfq registered
[    9.313837][    T1] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    9.315827][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: host bridge /mbus@f1000000/pcie@82000000 ranges:
[    9.315894][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0x00f1040000..0x00f1041fff -> 0x0000040000
[    9.315934][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:      MEM 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    9.315961][    T1] mvebu-pcie mbus@f1000000:pcie@82000000:       IO 0xffffffffffffffff..0x00fffffffe -> 0x0100000000
[    9.316266][    T1] mvebu-pcie mbus@f1000000:pcie@82000000: PCI host bridge to bus 0000:00
[    9.316289][    T1] pci_bus 0000:00: root bus resource [bus 00-ff]
[    9.316310][    T1] pci_bus 0000:00: root bus resource [mem 0xf1040000-0xf1041fff] (bus address [0x00040000-0x00041fff])
[    9.316326][    T1] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    9.316341][    T1] pci_bus 0000:00: root bus resource [io  0x1000-0xeffff]
[    9.316479][    T1] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400
[    9.316513][    T1] pci 0000:00:01.0: reg 0x38: [mem 0x00000000-0x000007ff pref]
[    9.318052][    T1] PCI: bus0: Fast back to back transfers disabled
[    9.318082][    T1] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    9.319349][    T1] PCI: bus1: Fast back to back transfers enabled
[    9.319378][    T1] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    9.319587][    T1] pci 0000:00:01.0: BAR 6: assigned [mem 0xe0000000-0xe00007ff pref]
[    9.319606][    T1] pci 0000:00:01.0: PCI bridge to [bus 01]
[    9.320302][    T1] mv_xor f1060800.xor: Marvell shared XOR driver
[    9.374784][    T1] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    9.377452][    T1] mv_xor f1060900.xor: Marvell shared XOR driver
[    9.434771][    T1] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy intr )
[    9.437678][    T1] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    9.439104][    T1] printk: console [ttyS0] disabled
[    9.439198][    T1] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[   10.389509][    T1] printk: console [ttyS0] enabled
[   10.403179][    T1] loop: module loaded
[   10.407897][    T1] sata_mv f1080000.sata: slots 32 ports 2
[   10.417462][    T1] scsi host0: sata_mv
[   10.422003][    T1] scsi host1: sata_mv
[   10.426196][    T1] ata1: SATA max UDMA/133 irq 32
[   10.431009][    T1] ata2: SATA max UDMA/133 irq 32
[   10.437155][    T1] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xda
[   10.444332][    T1] nand: Samsung NAND 256MiB 3,3V 8-bit
[   10.449670][    T1] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[   10.458051][    T1] Scanning device for bad blocks
[   10.515206][    T1] Bad eraseblock 490 at 0x000003d40000
[   10.528492][    T1] Bad eraseblock 565 at 0x0000046a0000
[   10.557449][    T1] Bad eraseblock 787 at 0x000006260000
[   10.569663][    T1] Bad eraseblock 852 at 0x000006a80000
[   10.592443][    T1] Bad eraseblock 1016 at 0x000007f00000
[   10.659587][    T1] Bad eraseblock 1595 at 0x00000c760000
[   10.686929][    T1] Bad eraseblock 1800 at 0x00000e100000
[   10.694357][    T1] Bad eraseblock 1819 at 0x00000e360000
[   10.703596][    T1] Bad eraseblock 1855 at 0x00000e7e0000
[   10.729576][    T1] 2 cmdlinepart partitions found on MTD device orion_nand
[   10.736614][    T1] Creating 2 MTD partitions on "orion_nand":
[   10.742522][    T1] 0x000000000000-0x000000100000 : "u-boot"
[   10.749727][    T1] 0x000000100000-0x000010000000 : "ubi"
[   10.758372][    T1] wireguard: WireGuard 1.0.0 loaded. See www.wireguard.com for information.
[   10.767058][    T1] wireguard: Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
[   10.778865][    T1] libphy: Fixed MDIO Bus: probed
[   10.785047][    T1] libphy: orion_mdio_bus: probed
[   10.807136][    T1] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[   10.933781][   T88] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   10.945345][   T88] ata1.00: ATA-8: WDC WD2500AAKX-75U6AA0, 19.01H19, max UDMA/133
[   10.952956][   T88] ata1.00: 488397168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[   10.965093][   T88] ata1.00: configured for UDMA/133
[   10.980623][    T7] scsi 0:0:0:0: Direct-Access     ATA      WDC WD2500AAKX-7 1H19 PQ: 0 ANSI: 5
[   10.990743][   T92] sd 0:0:0:0: [sda] 488397168 512-byte logical blocks: (250 GB/233 GiB)
[   10.999567][   T92] sd 0:0:0:0: [sda] Write Protect is off
[   11.005306][   T92] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   11.027552][   T92]  sda: sda1 sda2 sda3
[   11.033452][   T92] sd 0:0:0:0: [sda] Attached SCSI disk
[   11.494607][    T1] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:25:25:00:6d:f2
[   11.504125][   T90] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[   11.511443][    T1] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[   11.518881][   T90] ata2.00: ATA-11: SATA SSD, SBFMBB.3, max UDMA/133
[   11.525406][    T1] ehci-pci: EHCI PCI platform driver
[   11.530637][    T1] ehci-orion: EHCI orion driver
[   11.535400][   T90] ata2.00: 500118192 sectors, multi 16: LBA48 NCQ (depth 31/32)
[   11.543262][    T1] orion-ehci f1050000.ehci: EHCI Host Controller
[   11.549790][   T90] ata2.00: configured for UDMA/133
[   11.554898][    T1] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[   11.563481][    T1] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[   11.570588][   T58] scsi 1:0:0:0: Direct-Access     ATA      SATA SSD         BB.3 PQ: 0 ANSI: 5
[   11.580827][   T92] sd 1:0:0:0: [sdb] 500118192 512-byte logical blocks: (256 GB/238 GiB)
[   11.589493][   T92] sd 1:0:0:0: [sdb] Write Protect is off
[   11.595178][   T92] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[   11.605012][    T1] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[   11.613803][    T1] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002, bcdDevice= 5.09
[   11.622980][   T92]  sdb: sdb1 sdb2
[   11.626523][    T1] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[   11.636373][   T92] sd 1:0:0:0: [sdb] Attached SCSI disk
[   11.641778][    T1] usb usb1: Product: EHCI Host Controller
[   11.647455][    T1] usb usb1: Manufacturer: Linux 5.9.12-kirkwood-tld-1 ehci_hcd
[   11.654940][    T1] usb usb1: SerialNumber: f1050000.ehci
[   11.661053][    T1] hub 1-0:1.0: USB hub found
[   11.665662][    T1] hub 1-0:1.0: 1 port detected
[   11.671169][    T1] usbcore: registered new interface driver usb-storage
[   11.678381][    T1] mousedev: PS/2 mouse device common for all mice
[   11.685071][    T1] i2c /dev entries driver
[   11.695155][    T1] rtc-s35390a 0-0030: registered as rtc0
[   11.701746][    T1] rtc-s35390a 0-0030: setting system clock to 2022-01-07T23:36:13 UTC (1641598573)
[   11.712297][    T1] device-mapper: uevent: version 1.0.3
[   11.717986][    T1] device-mapper: ioctl: 4.42.0-ioctl (2020-02-27) initialised: dm-devel@redhat.com
[   11.727692][    T1] device-mapper: multipath round-robin: version 1.2.0 loaded
[   11.735025][    T1] device-mapper: multipath queue-length: version 0.2.0 loaded
[   11.742373][    T1] device-mapper: multipath service-time: version 0.3.0 loaded
[   11.749845][    T1] device-mapper: dm-log-userspace: version 1.3.0 loaded
[   11.756697][    T1] device-mapper: raid: Loading target version 1.15.1
[   11.766366][    T1] hid: raw HID events driver (C) Jiri Kosina
[   11.772620][    T1] drop_monitor: Initializing network drop monitor service
[   11.780276][    T1] NET: Registered protocol family 10
[   11.786770][    T1] Segment Routing with IPv6
[   11.791152][    T1] RPL Segment Routing with IPv6
[   11.796025][    T1] NET: Registered protocol family 17
[   11.801464][    T1] Key type dns_resolver registered
[   11.806988][    T1] registered taskstats version 1
[   11.811806][    T1] Loading compiled-in X.509 certificates
[   11.817494][    T1] zswap: loaded using pool lzo/zbud
[   11.822934][    T1] Key type ._fscrypt registered
[   11.827745][    T1] Key type .fscrypt registered
[   11.832390][    T1] Key type fscrypt-provisioning registered
[   11.840311][    T1] Key type big_key registered
[   11.875915][    T1] Key type encrypted registered
[   11.887033][    T1] Freeing unused kernel memory: 1024K
[   11.904675][    T1] Checked W+X mappings: passed, no W+X pages found
[   11.911075][    T1] Run /init as init process
Loading, please wait...
[   12.033854][   T99] usb 1-1: new high-speed USB device number 2 using orion-ehci
Starting version 241
[   12.254512][   T99] usb 1-1: New USB device found, idVendor=0409, idProduct=005a, bcdDevice= 1.00
[   12.263453][   T99] usb 1-1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[   12.306004][   T99] hub 1-1:1.0: USB hub found
[   12.324211][   T99] hub 1-1:1.0: 4 ports detected
[   12.653832][   T99] usb 1-1.2: new high-speed USB device number 3 using orion-ehci
[   12.815001][   T99] usb 1-1.2: New USB device found, idVendor=0781, idProduct=5530, bcdDevice= 1.00
[   12.826327][  T135] input: keys as /devices/platform/keys/input/input0
[   12.833541][   T99] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[   12.856104][   T99] usb 1-1.2: Product: Cruzer
[   12.860578][   T99] usb 1-1.2: Manufacturer: SanDisk
[   12.883885][   T99] usb 1-1.2: SerialNumber: 2005244411190D22FC1E
[   12.908678][   T99] usb-storage 1-1.2:1.0: USB Mass Storage device detected
[   12.931591][   T99] scsi host2: usb-storage 1-1.2:1.0
[   13.581988][  T135] usbcore: registered new interface driver uas
[   14.004972][   T92] scsi 2:0:0:0: Direct-Access     SanDisk  Cruzer           1.02 PQ: 0 ANSI: 2
[   14.019559][   T58] sd 2:0:0:0: [sdc] 7813120 512-byte logical blocks: (4.00 GB/3.73 GiB)
[   14.034292][   T58] sd 2:0:0:0: [sdc] Write Protect is off
[   14.040523][   T58] sd 2:0:0:0: [sdc] No Caching mode page found
[   14.046709][   T58] sd 2:0:0:0: [sdc] Assuming drive cache: write through
[   14.067801][   T58]  sdc: sdc1
[   14.087291][   T58] sd 2:0:0:0: [sdc] Attached SCSI removable disk
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... done.
[   25.406461][  T154] process '/usr/bin/fstype' started with executable stack
Begin: Will now check root file system ... fsck from util-linux 2.33.1
fsck: error 2 (No such file or directory) while executing fsck.ext3 for /dev/sdc1
fsck exited with status code 8
done.
Warning: File system check failed but did not detect errors
[   30.587307][  T163] EXT4-fs (sdc1): mounting ext3 file system using the ext4 subsystem
[   30.625002][  T163] EXT4-fs (sdc1): mounted filesystem with ordered data mode. Opts: (null)
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.
INIT: version 2.93 booting
[info] Using makefile-style concurrent boot in runlevel S.
[ ok ] Starting hotplug events dispatcher: systemd-udevd.
[ ok ] Synthesizing the initial hotplug events (subsystems)...done.
[ ok ] Synthesizing the initial hotplug events (devices)...done.
[....] Waiting for /dev to be fully populated...[   33.812517][  T354] systemd-udevd[354]: Using default interface naming scheme 'v240'.
[   33.960102][  T354] systemd-udevd[354]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
[   34.106291][  T353] orion_wdt: Initial timeout 21 sec
[   34.203726][    C0] random: crng init done
[   34.359463][  T354] sd 0:0:0:0: Attached scsi generic sg0 type 0
[   34.399642][  T354] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   34.503423][  T354] sd 2:0:0:0: Attached scsi generic sg2 type 0
[   34.710929][  T384] marvell-cesa f1030000.crypto: CESA device successfully registered
[   34.979800][  T353] systemd-udevd[353]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
done.
[ ok ] Setting hostname to 'debian'...done.
[ ok ] Activating swap:.
[   37.602043][  T572] EXT4-fs (sdc1): re-mounted. Opts: (null)
[....] Will now check root file system:fsck from util-linux 2.33.1
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -y -C0 /dev/sdc1
e2fsck 1.44.5 (15-Dec-2018)
rootfs: clean, 17842/244320 files, 519661/976384 blocks
. ok
[   37.923554][  T598] EXT4-fs (sdc1): re-mounted. Opts: errors=remount-ro
[info] Will now check all file systems.
fsck from util-linux 2.33.1
Checking all file systems.
LABEL=rootfs is mounted
[....] Done checking file systems. A log is being saved in /var/log/fsck/checkfs[ ok hat location is writable..
[ ok ] Cleaning up temporary files...[....] Cleaning /tmp...done.
[ ok .
[ ok ] Will now mount local filesystems:.
[ ok ] Will now activate swapfile swap:done.
[ ok ] Checking minimum space in /tmp...done.
[ ok ] Cleaning up temporary files....
[ ok ] Starting Setting kernel variables: sysctl.
[ ok ] Initializing random number generator...done.
[....] Configuring network interfaces...Internet Systems Consortium DHCP Client 4.4.1
Copyright 2004-2018 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/eth0/00:25:25:00:6d:f2
Sending on   LPF/eth0/00:25:25:00:6d:f2
Sending on   Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 4
[   45.387852][    C0] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 11
DHCPOFFER of 192.168.7.248 from 192.168.7.1
DHCPREQUEST for 192.168.7.248 on eth0 to 255.255.255.255 port 67
DHCPACK of 192.168.7.248 from 192.168.7.1
bound to 192.168.7.248 -- renewal in 39706 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...
1340 (syslogd)
. ok
[....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd...
1367 (klogd)
. ok
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
[ ok ] Starting NFS common utilities: statd idmapd.
[warn] Not starting NFS kernel daemon: no exports. ... (warning).
[ ok ] Starting NTP server: ntpd.
[ ok ] Starting OpenBSD Secure Shell server: sshd.
[ ok ] Running local boot scripts (/etc/rc.local).

Debian GNU/Linux 10 debian ttyS0

debian login: root
Password:
Last login: Fri Jan  7 15:32:11 PST 2022 on ttyS0
Linux debian 5.9.12-kirkwood-tld-1 #1.0 PREEMPT Sat Dec 5 14:05:39 PST 2020 armv5tel

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.
root@debian:~#

Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 07, 2022 05:44PM
LED...

root@debian:~# ls -l /sys/class/leds
total 0
drwxr-xr-x  2 root root 0 Jan  7 15:36 .
drwxr-xr-x 47 root root 0 Jan  7 15:36 ..
lrwxrwxrwx  1 root root 0 Jan  7 15:43 blue:cloud -> ../../devices/platform/leds/leds/blue:cloud
lrwxrwxrwx  1 root root 0 Jan  7 15:43 green:disk-fail -> ../../devices/platform/leds/leds/green:disk-fail
lrwxrwxrwx  1 root root 0 Jan  7 15:43 green:disk1 -> ../../devices/platform/leds/leds/green:disk1
lrwxrwxrwx  1 root root 0 Jan  7 15:43 green:disk2 -> ../../devices/platform/leds/leds/green:disk2
lrwxrwxrwx  1 root root 0 Jan  7 15:43 green:status -> ../../devices/platform/leds/leds/green:status
lrwxrwxrwx  1 root root 0 Jan  7 15:43 green:usb1 -> ../../devices/platform/leds/leds/green:usb1
lrwxrwxrwx  1 root root 0 Jan  7 15:43 green:usb2 -> ../../devices/platform/leds/leds/green:usb2
lrwxrwxrwx  1 root root 0 Jan  7 15:43 red:disk-fail -> ../../devices/platform/leds/leds/red:disk-fail
lrwxrwxrwx  1 root root 0 Jan  7 15:43 red:disk1 -> ../../devices/platform/leds/leds/red:disk1
lrwxrwxrwx  1 root root 0 Jan  7 15:43 red:disk2 -> ../../devices/platform/leds/leds/red:disk2
lrwxrwxrwx  1 root root 0 Jan  7 15:43 red:status -> ../../devices/platform/leds/leds/red:status
lrwxrwxrwx  1 root root 0 Jan  7 15:43 red:usb1 -> ../../devices/platform/leds/leds/red:usb1
lrwxrwxrwx  1 root root 0 Jan  7 15:43 red:usb2 -> ../../devices/platform/leds/leds/red:usb2
root@debian:~#

Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 07, 2022 06:05PM
[   11.685071][    T1] i2c /dev entries driver
[   11.695155][    T1] rtc-s35390a 0-0030: registered as rtc0
[   11.701746][    T1] rtc-s35390a 0-0030: setting system clock to 2022-01-07T23:36:13 UTC (1641598573)

Interesting! I thought it was disabled in the DTS.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 07, 2022 06:08PM
>
> [   11.685071][    T1] i2c /dev entries driver
> [   11.695155][    T1] rtc-s35390a 0-0030:
> registered as rtc0
> [   11.701746][    T1] rtc-s35390a 0-0030: setting
> system clock to 2022-01-07T23:36:13 UTC
> (1641598573)
>
>
> Interesting! I thought it was disabled in the DTS.

Ah I've misread it. So it was enabled and works in Linux.

rtc@30 {
                compatible = "s35390a";
                reg = <0x30>;
        };

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 07, 2022 07:40PM
- A simlar RTC driver is in the new u-boot.

./drivers/rtc/s35392a.c

- And this box has lm63 sensor. Install lmsensors in Debian.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 01/07/2022 07:42PM by bodhi.
Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 07, 2022 08:03PM
Now added these to /etc/rc.local, LED for HDD will flash when HDD is accessed.

Also, after booting, the Ready/Status will be green after booting.

It does have a lot of LEDs to play with.


if [ -d /sys/class/leds/green:disk1 ]; then
   echo ide-disk1  > /sys/class/leds/green:disk1/trigger
fi

if [ -d /sys/class/leds/green:disk2 ]; then
   echo ide-disk2  > /sys/class/leds/green:disk2/trigger
fi

echo 1 > /sys/class/leds/green:status/brightness



Edited 1 time(s). Last edit at 01/07/2022 08:15PM by daviddyer.
Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 07, 2022 08:06PM
Just installed lm-sensors.

Hope the fan will not be that loud later. It used to run at full speed. :P
Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 07, 2022 11:56PM
> echo 1 > /sys/class/leds/green:status/brightness

This is better:
echo default-on > /sys/class/leds/green:status/trigger

The brightness setting works for some, but not all boxes. So the default-on is safer to use (i.e. it will work when you do similar setup for a different Kirkwood box).

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 01/07/2022 11:58PM by bodhi.
Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 08, 2022 01:04PM
Thanks. Changed.
Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 08, 2022 01:17PM
Let me post some pictures of the setup. I used Rpi 0 with an usb-ethernet adapter. Used Rpi0's hardware serial port to connect to the c200 board. The cheap CH341 usb-ttl adapter I got from eBay sucks! So I did not use it.



Edited 1 time(s). Last edit at 01/08/2022 01:19PM by daviddyer.
Attachments:
open | download - c200_rpi_serial_01_small.jpg (557.6 KB)
open | download - c200_rpi_serial_02_small.jpg (531.3 KB)
Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 08, 2022 02:39PM
blkid showed some uncorrectable ECC error.


root@debian:~# blkid
[ 4016.614907][ T1692] __nand_correct_data: uncorrectable ECC error
[ 4016.621046][ T1692] __nand_correct_data: uncorrectable ECC error
[ 4016.627538][ T1692] blk_update_request: I/O error, dev mtdblock0, sector 1024 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[ 4016.639697][ T1692] __nand_correct_data: uncorrectable ECC error
[ 4016.645732][ T1692] __nand_correct_data: uncorrectable ECC error
[ 4016.652100][ T1692] blk_update_request: I/O error, dev mtdblock0, sector 1024 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 4016.663690][ T1692] Buffer I/O error on dev mtdblock0, logical block 1024, async page read
[ 4016.672410][ T1692] __nand_correct_data: uncorrectable ECC error
[ 4016.678675][ T1692] __nand_correct_data: uncorrectable ECC error
[ 4016.684719][ T1692] blk_update_request: I/O error, dev mtdblock0, sector 1025 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 4016.696387][ T1692] Buffer I/O error on dev mtdblock0, logical block 1025, async page read
[ 4016.705070][ T1692] __nand_correct_data: uncorrectable ECC error
[ 4016.711325][ T1692] __nand_correct_data: uncorrectable ECC error
[ 4016.717579][ T1692] blk_update_request: I/O error, dev mtdblock0, sector 1026 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 4016.729161][ T1692] Buffer I/O error on dev mtdblock0, logical block 1026, async page read
[ 4016.737845][ T1692] __nand_correct_data: uncorrectable ECC error
[ 4016.743884][ T1692] __nand_correct_data: uncorrectable ECC error
[ 4016.750233][ T1692] blk_update_request: I/O error, dev mtdblock0, sector 1027 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 4016.761812][ T1692] Buffer I/O error on dev mtdblock0, logical block 1027, async page read
[ 4016.770507][ T1692] __nand_correct_data: uncorrectable ECC error
[ 4016.776541][ T1692] __nand_correct_data: uncorrectable ECC error
[ 4016.782892][ T1692] blk_update_request: I/O error, dev mtdblock0, sector 1028 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 4016.794467][ T1692] Buffer I/O error on dev mtdblock0, logical block 1028, async page read
[ 4016.803148][ T1692] __nand_correct_data: uncorrectable ECC error
[ 4016.809406][ T1692] __nand_correct_data: uncorrectable ECC error
[ 4016.815449][ T1692] blk_update_request: I/O error, dev mtdblock0, sector 1029 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 4016.827138][ T1692] Buffer I/O error on dev mtdblock0, logical block 1029, async page read
[ 4016.835609][ T1692] __nand_correct_data: uncorrectable ECC error
[ 4016.841953][ T1692] __nand_correct_data: uncorrectable ECC error
[ 4016.848214][ T1692] blk_update_request: I/O error, dev mtdblock0, sector 1030 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 4016.859795][ T1692] Buffer I/O error on dev mtdblock0, logical block 1030, async page read
[ 4016.868478][ T1692] __nand_correct_data: uncorrectable ECC error
[ 4016.874537][ T1692] __nand_correct_data: uncorrectable ECC error
[ 4016.880881][ T1692] blk_update_request: I/O error, dev mtdblock0, sector 1031 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[ 4016.892461][ T1692] Buffer I/O error on dev mtdblock0, logical block 1031, async page read
/dev/sda1: LABEL="System Reserved" UUID="AA7C8FAD7C8F72BD" TYPE="ntfs" PARTUUID="aaa7a52c-01"
/dev/sda2: LABEL="Win10ProMbrOfficeEtc" UUID="7EF6910DF690C735" TYPE="ntfs" PARTUUID="aaa7a52c-02"
/dev/sda3: UUID="3072A23B72A205A6" TYPE="ntfs" PARTUUID="aaa7a52c-03"
/dev/sdb1: SEC_TYPE="msdos" UUID="1C50-F1DD" TYPE="vfat" PARTUUID="6c74a671-01"
/dev/sdb2: UUID="36f80b28-86f2-456e-ade5-f30a6b71cb54" TYPE="ext4" PARTUUID="6c74a671-02"
/dev/sdc1: LABEL="rootfs" UUID="d6155c1b-7c8b-4b7a-a669-952149778e4a" TYPE="ext3"

Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 08, 2022 04:14PM
> Let me post some pictures of the setup. I used Rpi
> 0 with an usb-ethernet adapter. Used Rpi0's
> hardware serial port to connect to the c200 board.
> The cheap CH341 usb-ttl adapter I got from eBay
> sucks! So I did not use it.

Nice!

[ 4016.614907][ T1692] __nand_correct_data: uncorrectable ECC error
[ 4016.621046][ T1692] __nand_correct_data: uncorrectable ECC error
[ 4016.627538][ T1692] blk_update_request: I/O error, dev mtdblock0, sector 1024 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0


These are annoying but not real errors. I thought I've fixed them long ago, but might need to look at this again.

However, it is better to use lsblk. It does not probe deeply to ECC, but basically the options give same info about block devices). Example:

# lsblk
NAME      MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda         8:0    0 14.9G  0 disk 
└─sda1      8:1    0 14.9G  0 part /media/HOME
sdb         8:16   0 58.4G  0 disk 
└─sdb1      8:17   0 58.4G  0 part /
mtdblock0  31:0    0  508K  0 disk 
mtdblock1  31:1    0    4K  0 disk

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 08, 2022 04:20PM
David,

I think it's time to rename the first post to "Debian on Ctera C200 v1". Perhaps also edit it to move or link to info in many posts.

Remembe to list credit. The DTS was quite well done and has made this bringup a lot easier than having to read GPL source!

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 08, 2022 04:30PM
One last thing. Did you save the stock mtds before flashing new u-boot?

Creating 10 MTD partitions on "orion_nand":
0x000000700000-0x000002f00000 : "romdisk"
0x000000000000-0x000000200000 : "u-boot"
0x000000200000-0x000000300000 : "certificate"
0x000000300000-0x000000400000 : "preset_cfg"
0x000000400000-0x000000500000 : "dev_params"
0x000000500000-0x000000600000 : "active_bank"
0x000000600000-0x000000700000 : "magic"
0x000000700000-0x000002f00000 : "bank1"
0x000002f00000-0x000005700000 : "bank2"

Even though we don't care to keep old layout. It is still good to know where the old envs reside. It usually is at the location after u-boot and in the 1st 1MB, but we never know if Ctera did things differently than the norm. For example, stock has u-boot in mtd1 :)

The nanddump for stock mtd1 would be good to keep and used for info.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 08, 2022 07:33PM
bodhi Wrote:
-------------------------------------------------------
> One last thing. Did you save the stock mtds before
> flashing new u-boot?

I did not save them.... I used to save them (for dockstar, goflex home, etc) , but I never used them, so I don't save them any more. :P
Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 08, 2022 07:35PM
> However, it is better to use lsblk. It does not
> probe deeply to ECC, but basically the options
> give same info about block devices). Example:
>
> # lsblk


En, I will use lsblk instead. I can live with the errors as long as the system did not crash.
Re: Ctera C200 : This looks like a Kirkwood device 512MB mem 2 SATA
January 08, 2022 09:02PM
> I did not save them.... I used to save them (for
> dockstar, goflex home, etc) , but I never used
> them, so I don't save them any more. :P

:D I know, it seems redundant once we can boot the new u-boot and never look back! in this case I'm just interested in knowning the location of the stock envs for people who run OpenWrt with stock u-boot. In the future there might be more people come looking for info..

For now, we'll go with the mtds layout that can boot OpenWrt on NAND.
mtdparts=orion_nand:0x100000@0x0(u-boot),-@0x100000(ubi)

So how was the lmsensors? did it allow you to control the fan speed?

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: