Welcome! Log In Create A New Profile

Advanced

Debian on NSA221

Posted by jlovell2105 
Debian on NSA221
November 08, 2017 03:05PM
OK, I've dug all over the forum as well as the internet and can't find any info on whether anyone has ever tried to get Debian or anything else running on the older Zyzel NSA221. Is this doable? I've successfully done this on Buffalo NAS's, my Zyxel NSA310 and NSA320 units but I can't see any info on the NSA221, hence the question.

Looks pretty close to the NSA320 device. Can this be done or is the CPU too different from anything else to be workable?

Here's what I can tell you about it.

~ # cat /proc/cpuinfo
Processor       : ARM926EJ-S rev 5 (v5l)
BogoMIPS        : 183.09
Features        : swp half thumb fastmult edsp java
CPU implementer : 0x41
CPU architecture: 5TEJ
CPU variant     : 0x0
CPU part        : 0x926
CPU revision    : 5
Cache type      : write-back
Cache clean     : cp15 c7 ops
Cache lockdown  : format C
Cache format    : Harvard
I size          : 32768
I assoc         : 4
I line length   : 32
I sets          : 256
D size          : 32768
D assoc         : 4
D line length   : 32
D sets          : 256

Hardware        : Oxsemi NAS
Revision        : 0000
Serial          : 00000cb31a366c80

/ # cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00020000 00010000 "uboot"
mtd1: 001c0000 00010000 "kernel"
mtd2: 001a0000 00010000 "initrd"
mtd3: 00070000 00010000 "etc"
mtd4: 0000c000 00002000 "empty"
mtd5: 00002000 00002000 "env1"
mtd6: 00002000 00002000 "env2"
/ #

~ # uname -a
Linux NSA221-1 2.6.24.4 #1 Thu Aug 16 14:34:54 CST 2012 armv5tejl GNU/Linux

From the uboot console...

1.00 U-Boot 1.1.2 (Apr 11 2010 - 20:23:49)

U-Boot code: 48D00000 -> 48D172F4  BSS: -> 48D1AFA4
RAM Configuration:
        Bank #0: 48000000 256 MB
SRAM Configuration:
        128KB at 0x58000000
Flash:  4 MB
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
$ ?
?       - alias for 'help'
base    - print or set address offset
bdinfo  - print Board Info structure
bootm   - boot application image from memory
bootp   - boot image via network using BootP/TFTP protocol
cmp     - memory compare
cp      - memory copy
crc32   - checksum calculation
echo    - echo args to console
erase   - erase FLASH memory
exit    - exit script
flinfo  - print FLASH memory information
go      - start application at address 'addr'
help    - print online help
iminfo  - print header information for application image
loop    - infinite loop on address range
md      - memory display
mm      - memory modify (auto-incrementing)
mtest   - simple RAM test
mw      - memory write (fill)
nm      - memory modify (constant address)
ping    - send ICMP ECHO_REQUEST to network host
printenv- print environment variables
protect - enable or disable FLASH write protection
rarpboot- boot image via network using RARP/TFTP protocol
reset   - Perform RESET of the CPU
run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
setenv  - set environment variables
test    - minimal test like /bin/sh
tftpboot- boot image via network using TFTP protocol
version - print monitor version
$

$ printenv
bootcmd=cp 0x411e0000 0x4a000000 0x25c000; bootm 0x41020000
bootdelay=2
baudrate=115200
ipaddr=192.168.1.3
serverip=192.168.1.1
autoload=n
netmask=255.255.255.0
bootfile="uImage"
MODEL_ID=DC01
PRODUCT_NAME=NSA-221
FEATURE_BIT=00
CONTRY_TYPE=FF
VENDOR_NAME=ZyXEL Communications Corp.
ethaddr=C8:6C:87:9B:B7:69
stdin=serial
stdout=serial
stderr=serial
bootargs=console=ttyS0,115200n8 root=/dev/ram0 rw init=/sbin/init initrd=0x4a000000,4M elevator=cfq mtdparts=physmap-flash.0:128k(uboot),1792k(kernel),1664k(initrd),448k(etc),48k(empty),8k(env1),8k(env2) mem=256M poweroutage=yes

Environment size: 579/8187 bytes
$

$ bdinfo
arch_number = 0x00000480
env_t       = 0x00000000
boot_params = 0x48000100
DRAM bank   = 0x00000000
-> start    = 0x48000000
-> size     = 0x10000000
ethaddr     = C8:6C:87:9B:B7:69
ip_addr     = 192.168.1.3
baudrate    = 115200 bps
$

$ flinfo

Bank # 1: CFI conformant FLASH (16 x 16)  Size: 4 MB in 71 Sectors
 Erase timeout 16384 ms, write timeout 0 ms, buffer write timeout 1 ms, buffer size 1
  Sector Start Addresses:
 41000000      41010000      41020000      41030000      41040000
 41050000      41060000      41070000      41080000      41090000
 410A0000      410B0000      410C0000      410D0000      410E0000
 410F0000      41100000      41110000      41120000      41130000
 41140000      41150000      41160000      41170000      41180000
 41190000      411A0000      411B0000      411C0000      411D0000
 411E0000      411F0000      41200000      41210000      41220000
 41230000      41240000      41250000      41260000      41270000
 41280000      41290000      412A0000      412B0000      412C0000
 412D0000      412E0000      412F0000      41300000      41310000
 41320000      41330000      41340000      41350000      41360000
 41370000      41380000      41390000      413A0000      413B0000
 413C0000      413D0000      413E0000      413F0000      413F2000
 413F4000      413F6000      413F8000      413FA000      413FC000  RO
 413FE000  RO
$
Re: Debian on NSA221
November 08, 2017 06:02PM
jlovell2105 Wrote:
-------------------------------------------------------
> OK, I've dug all over the forum as well as the
> internet and can't find any info on whether anyone
> has ever tried to get Debian or anything else
> running on the older Zyzel NSA221. Is this
> doable? I've successfully done this on Buffalo
> NAS's, my Zyxel NSA310 and NSA320 units but I
> can't see any info on the NSA221, hence the
> question.
>
> Looks pretty close to the NSA320 device. Can
> this be done or is the CPU too different from
> anything else to be workable?
>
> Here's what I can tell you about it.
>
>
> ~ # cat /proc/cpuinfo
> Processor       : ARM926EJ-S rev 5 (v5l)
> BogoMIPS        : 183.09
> Features        : swp half thumb fastmult edsp
> java
> CPU implementer : 0x41
> CPU architecture: 5TEJ
> CPU variant     : 0x0
> CPU part        : 0x926
> CPU revision    : 5
> Cache type      : write-back
> Cache clean     : cp15 c7 ops
> Cache lockdown  : format C
> Cache format    : Harvard
> I size          : 32768
> I assoc         : 4
> I line length   : 32
> I sets          : 256
> D size          : 32768
> D assoc         : 4
> D line length   : 32
> D sets          : 256
> 
> Hardware        : Oxsemi NAS
> Revision        : 0000
> Serial          : 00000cb31a366c80
>
>
>
> / # cat /proc/mtd
> dev:    size   erasesize  name
> mtd0: 00020000 00010000 "uboot"
> mtd1: 001c0000 00010000 "kernel"
> mtd2: 001a0000 00010000 "initrd"
> mtd3: 00070000 00010000 "etc"
> mtd4: 0000c000 00002000 "empty"
> mtd5: 00002000 00002000 "env1"
> mtd6: 00002000 00002000 "env2"
> / #
>
>
>
> ~ # uname -a
> Linux NSA221-1 2.6.24.4 #1 Thu Aug 16 14:34:54 CST
> 2012 armv5tejl GNU/Linux
>
>
> From the uboot console...
>
>
> 1.00 U-Boot 1.1.2 (Apr 11 2010 - 20:23:49)
> 
> U-Boot code: 48D00000 -> 48D172F4  BSS: ->
> 48D1AFA4
> RAM Configuration:
>         Bank #0: 48000000 256 MB
> SRAM Configuration:
>         128KB at 0x58000000
> Flash:  4 MB
> In:    serial
> Out:   serial
> Err:   serial
> Hit any key to stop autoboot:  0
> $ ?
> ?       - alias for 'help'
> base    - print or set address offset
> bdinfo  - print Board Info structure
> bootm   - boot application image from memory
> bootp   - boot image via network using BootP/TFTP
> protocol
> cmp     - memory compare
> cp      - memory copy
> crc32   - checksum calculation
> echo    - echo args to console
> erase   - erase FLASH memory
> exit    - exit script
> flinfo  - print FLASH memory information
> go      - start application at address 'addr'
> help    - print online help
> iminfo  - print header information for application
> image
> loop    - infinite loop on address range
> md      - memory display
> mm      - memory modify (auto-incrementing)
> mtest   - simple RAM test
> mw      - memory write (fill)
> nm      - memory modify (constant address)
> ping    - send ICMP ECHO_REQUEST to network host
> printenv- print environment variables
> protect - enable or disable FLASH write
> protection
> rarpboot- boot image via network using RARP/TFTP
> protocol
> reset   - Perform RESET of the CPU
> run     - run commands in an environment variable
> saveenv - save environment variables to persistent
> storage
> setenv  - set environment variables
> test    - minimal test like /bin/sh
> tftpboot- boot image via network using TFTP
> protocol
> version - print monitor version
> $
> 
> $ printenv
> bootcmd=cp 0x411e0000 0x4a000000 0x25c000; bootm
> 0x41020000
> bootdelay=2
> baudrate=115200
> ipaddr=192.168.1.3
> serverip=192.168.1.1
> autoload=n
> netmask=255.255.255.0
> bootfile="uImage"
> MODEL_ID=DC01
> PRODUCT_NAME=NSA-221
> FEATURE_BIT=00
> CONTRY_TYPE=FF
> VENDOR_NAME=ZyXEL Communications Corp.
> ethaddr=C8:6C:87:9B:B7:69
> stdin=serial
> stdout=serial
> stderr=serial
> bootargs=console=ttyS0,115200n8 root=/dev/ram0 rw
> init=/sbin/init initrd=0x4a000000,4M elevator=cfq
> mtdparts=physmap-flash.0:128k(uboot),1792k(kernel),1664k(initrd),448k(etc),48k(empty),8k(env1),8k(env2)
> mem=256M poweroutage=yes
> 
> Environment size: 579/8187 bytes
> $
> 
> $ bdinfo
> arch_number = 0x00000480
> env_t       = 0x00000000
> boot_params = 0x48000100
> DRAM bank   = 0x00000000
> -> start    = 0x48000000
> -> size     = 0x10000000
> ethaddr     = C8:6C:87:9B:B7:69
> ip_addr     = 192.168.1.3
> baudrate    = 115200 bps
> $
> 
> $ flinfo
> 
> Bank # 1: CFI conformant FLASH (16 x 16)  Size: 4
> MB in 71 Sectors
>  Erase timeout 16384 ms, write timeout 0 ms,
> buffer write timeout 1 ms, buffer size 1
>   Sector Start Addresses:
>  41000000      41010000      41020000     
> 41030000      41040000
>  41050000      41060000      41070000     
> 41080000      41090000
>  410A0000      410B0000      410C0000     
> 410D0000      410E0000
>  410F0000      41100000      41110000     
> 41120000      41130000
>  41140000      41150000      41160000     
> 41170000      41180000
>  41190000      411A0000      411B0000     
> 411C0000      411D0000
>  411E0000      411F0000      41200000     
> 41210000      41220000
>  41230000      41240000      41250000     
> 41260000      41270000
>  41280000      41290000      412A0000     
> 412B0000      412C0000
>  412D0000      412E0000      412F0000     
> 41300000      41310000
>  41320000      41330000      41340000     
> 41350000      41360000
>  41370000      41380000      41390000     
> 413A0000      413B0000
>  413C0000      413D0000      413E0000     
> 413F0000      413F2000
>  413F4000      413F6000      413F8000     
> 413FA000      413FC000  RO
>  413FE000  RO
> $
>


It does look like a Kirkwood, but it is not! It's an OXNAS.

Can you show this info on your NSA320:

cat /proc/cpuinfo

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on NSA221
November 08, 2017 08:43PM
bodhi Wrote:

> It does look like a Kirkwood, but it is not! It's
> an OXNAS.

Hah! I thought it was. That gave me hope because you've done work with those CPU's as well.

> Can you show this info on your NSA320:
>
>
> cat /proc/cpuinfo
>

I decided I'd get you as much as I could about the NSA320. This has your u-boot installed as well as your 4.2.0 Kernel on it as well. Works beautifully (much thanks)! I have the cpuinfo, the meminfo, the mtd info, the dmesg output, and a copy of the /boot partion. Sorry for the overload, I figure more info is better than less.

root@jaynas03:/etc/network # uname -a
Linux jaynas03 4.2.0-kirkwood-tld-1 #1 PREEMPT Mon Aug 31 23:12:00 PDT 2015 armv5tel GNU/Linux

root@jaynas03:~ # cat /proc/cpuinfo
processor	: 0
model name	: Feroceon 88FR131 rev 1 (v5l)
BogoMIPS	: 1196.85
Features	: swp half thumb fastmult edsp 
CPU implementer	: 0x56
CPU architecture: 5TE
CPU variant	: 0x2
CPU part	: 0x131
CPU revision	: 1

Hardware	: Marvell Kirkwood (Flattened Device Tree)
Revision	: 0000
Serial		: 0000000000000000

root@jaynas03:~ # cat /proc/meminfo
MemTotal:         510748 kB
MemFree:          290388 kB
MemAvailable:     463968 kB
Buffers:            8640 kB
Cached:           168668 kB
SwapCached:            0 kB
Active:           145876 kB
Inactive:          53900 kB
<stuff skipped>

For the mtd, only the u-boot and uboot_env sections are used. The rest is the leftover Zyxel partitions.

root@jaynas03:~ # cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00100000 00020000 "u-boot"
mtd1: 00080000 00020000 "uboot_env"
mtd2: 00080000 00020000 "key_store"
mtd3: 00080000 00020000 "info"
mtd4: 00a00000 00020000 "etc"
mtd5: 00a00000 00020000 "kernel_1"
mtd6: 02fc0000 00020000 "rootfs1"
mtd7: 00a00000 00020000 "kernel_2"
mtd8: 02fc0000 00020000 "rootfs2"

root@jaynas03:~ # dmesg
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Initializing cgroup subsys cpuset
[    0.000000] Initializing cgroup subsys cpu
[    0.000000] Initializing cgroup subsys cpuacct
[    0.000000] Linux version 4.2.0-kirkwood-tld-1 (root@tldDebian) (gcc version 4.9.2 (Debian 4.9.2-10) ) #1 PREEMPT Mon Aug 31 23:12:00 PDT 2015
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine model: Zyxel NSA320
[    0.000000] Memory policy: Data cache writeback
[    0.000000] On node 0 totalpages: 131072
[    0.000000] free_area_init_node: node 0, pgdat c089f6fc, node_mem_map dfbf9000
[    0.000000]   DMA zone: 1024 pages used for memmap
[    0.000000]   DMA zone: 0 pages reserved
[    0.000000]   DMA zone: 131072 pages, LIFO batch:31
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
[    0.000000] Kernel command line: console=ttyS0,$baudrate root=/dev/md0 rootdelay=10 mtdparts=orion_nand:1M(u-boot),512K(uboot_env),512K(key_store),512K(info),10M(etc),10M(kernel_1),48896K(rootfs1),10M(kernel_2),-(rootfs2)
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 502920K/524288K available (6019K kernel code, 571K rwdata, 1988K rodata, 284K init, 312K bss, 21368K reserved, 0K cma-reserved)
[    0.000000] Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xe0800000 - 0xff000000   ( 488 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .text : 0xc0008000 - 0xc07da1b4   (8009 kB)
      .init : 0xc07db000 - 0xc0822000   ( 284 kB)
      .data : 0xc0822000 - 0xc08b0e24   ( 572 kB)
       .bss : 0xc08b0e24 - 0xc08ff1a4   ( 313 kB)
[    0.000000] Preemptible hierarchical RCU implementation.
[    0.000000] 	Build-time adjustment of leaf fanout to 32.
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    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.000446] Console: colour dummy device 80x30
[    0.000478] Calibrating delay loop... 1196.85 BogoMIPS (lpj=5984256)
[    0.090100] pid_max: default: 32768 minimum: 301
[    0.090233] Security Framework initialized
[    0.090321] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.090342] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.091125] Initializing cgroup subsys blkio
[    0.091157] Initializing cgroup subsys devices
[    0.091182] Initializing cgroup subsys freezer
[    0.091217] Initializing cgroup subsys net_cls
[    0.091308] CPU: Testing write buffer coherency: ok
[    0.091734] Setting up static identity map for 0x8200 - 0x8258
[    0.092054] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x3
[    0.095745] devtmpfs: initialized
[    0.101917] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.102397] prandom: seed boundary self test passed
[    0.106138] prandom: 100 self tests passed
[    0.106160] pinctrl core: initialized pinctrl subsystem
[    0.107591] NET: Registered protocol family 16
[    0.108052] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.130103] cpuidle: using governor ladder
[    0.160104] cpuidle: using governor menu
[    0.160548] Feroceon L2: Enabling L2
[    0.160595] Feroceon L2: Cache support initialised.
[    0.161001] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[    0.166838] No ATAGs?
[    0.201615] vgaarb: loaded
[    0.202004] usbcore: registered new interface driver usbfs
[    0.202090] usbcore: registered new interface driver hub
[    0.202158] usbcore: registered new device driver usb
[    0.203288] clocksource: Switched to clocksource orion_clocksource
[    0.260052] NET: Registered protocol family 2
[    0.260702] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.260764] TCP bind hash table entries: 4096 (order: 2, 16384 bytes)
[    0.260816] TCP: Hash tables configured (established 4096 bind 4096)
[    0.260885] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.260909] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.261116] NET: Registered protocol family 1
[    0.261521] RPC: Registered named UNIX socket transport module.
[    0.261534] RPC: Registered udp transport module.
[    0.261541] RPC: Registered tcp transport module.
[    0.261549] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    0.261573] PCI: CLS 0 bytes, default 32
[    0.261826] Unpacking initramfs...
[    0.940048] Freeing initrd memory: 7544K (c1100000 - c185e000)
[    0.940177] NetWinder Floating Point Emulator V0.97 (double precision)
[    0.941291] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.941325] Initialise system trusted keyring
[    0.941450] audit: initializing netlink subsys (disabled)
[    0.941502] audit: type=2000 audit(0.930:1): initialized
[    0.942185] zpool: loaded
[    0.942203] zbud: loaded
[    0.942506] VFS: Disk quotas dquot_6.6.0
[    0.942569] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    0.943183] NFS: Registering the id_resolver key type
[    0.943236] Key type id_resolver registered
[    0.943245] Key type id_legacy registered
[    0.943273] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[    0.943351] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[    0.943589] jffs2: version 2.2. (NAND) (SUMMARY)  \xffffffc2\xffffffa9 2001-2006 Red Hat, Inc.
[    0.944150] Key type big_key registered
[    0.964544] Key type asymmetric registered
[    0.964570] Asymmetric key parser 'x509' registered
[    0.964658] bounce: pool size: 64 pages
[    0.964737] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252)
[    0.964755] io scheduler noop registered
[    0.964768] io scheduler deadline registered
[    0.964827] io scheduler cfq registered (default)
[    0.966176] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[    0.966892] irq: Cannot allocate irq_descs @ IRQ34, assuming pre-allocated
[    0.967334] irq: Cannot allocate irq_descs @ IRQ66, assuming pre-allocated
[    0.968181] mvebu-pcie mbus:pcie-controller: PCI host bridge to bus 0000:00
[    0.968201] pci_bus 0000:00: root bus resource [io  0x1000-0xfffff]
[    0.968215] pci_bus 0000:00: root bus resource [mem 0xe0000000-0xefffffff]
[    0.968229] pci_bus 0000:00: root bus resource [bus 00-ff]
[    0.968241] pci_bus 0000:00: scanning bus
[    0.968272] pci 0000:00:01.0: [11ab:6281] type 01 class 0x060400
[    0.968319] pci 0000:00:01.0: calling pci_fixup_ide_bases+0x0/0x40
[    0.968565] pci_bus 0000:00: fixups for bus
[    0.968582] PCI: bus0: Fast back to back transfers disabled
[    0.968596] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 0
[    0.968609] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    0.968625] pci 0000:00:01.0: scanning [bus 00-00] behind bridge, pass 1
[    0.968773] pci_bus 0000:01: scanning bus
[    0.968805] pci_bus 0000:01: fixups for bus
[    0.968814] PCI: bus1: Fast back to back transfers enabled
[    0.968826] pci_bus 0000:01: bus scan returning with max=01
[    0.968840] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    0.968856] pci_bus 0000:00: bus scan returning with max=01
[    0.968872] pci 0000:00:01.0: fixup irq: got 0
[    0.968884] pci 0000:00:01.0: assigning IRQ 00
[    0.968908] pci 0000:00:01.0: PCI bridge to [bus 01]
[    0.969213] mv_xor f1060800.xor: Marvell shared XOR driver
[    1.003980] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    1.043954] mv_xor f1060800.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    1.044154] mv_xor f1060900.xor: Marvell shared XOR driver
[    1.083966] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    1.123964] mv_xor f1060900.xor: Marvell XOR (Registers Mode): ( xor cpy )
[    1.124427] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    1.125818] console [ttyS0] disabled
[    1.125881] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A
[    3.142999] console [ttyS0] enabled
[    3.154834] nand: device found, Manufacturer ID: 0xec, Chip ID: 0xf1
[    3.173929] nand: Samsung NAND 128MiB 3,3V 8-bit
[    3.187786] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    3.210534] Scanning device for bad blocks
[    3.273019] Bad eraseblock 521 at 0x000004120000
[    3.320818] Bad eraseblock 874 at 0x000006d40000
[    3.349034] 9 cmdlinepart partitions found on MTD device orion_nand
[    3.367868] Creating 9 MTD partitions on "orion_nand":
[    3.383310] 0x000000000000-0x000000100000 : "u-boot"
[    3.399333] 0x000000100000-0x000000180000 : "uboot_env"
[    3.416069] 0x000000180000-0x000000200000 : "key_store"
[    3.432826] 0x000000200000-0x000000280000 : "info"
[    3.448285] 0x000000280000-0x000000c80000 : "etc"
[    3.463533] 0x000000c80000-0x000001680000 : "kernel_1"
[    3.480030] 0x000001680000-0x000004640000 : "rootfs1"
[    3.496295] 0x000004640000-0x000005040000 : "kernel_2"
[    3.512764] 0x000005040000-0x000008000000 : "rootfs2"
[    3.530102] libphy: Fixed MDIO Bus: probed
[    3.542755] libphy: orion_mdio_bus: probed
[    3.559998] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    3.581022] mv643xx_eth: Set the PHY to fix link down
[    3.596435] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address fc:f5:28:08:ac:b3
[    3.623572] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    3.643227] ehci-pci: EHCI PCI platform driver
[    3.656671] ehci-orion: EHCI orion driver
[    3.668894] orion-ehci f1050000.ehci: EHCI Host Controller
[    3.685403] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[    3.708561] orion-ehci f1050000.ehci: irq 30, io mem 0xf1050000
[    3.743322] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[    3.761594] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[    3.782005] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[    3.803695] usb usb1: Product: EHCI Host Controller
[    3.818350] usb usb1: Manufacturer: Linux 4.2.0-kirkwood-tld-1 ehci_hcd
[    3.838223] usb usb1: SerialNumber: f1050000.ehci
[    3.853111] hub 1-0:1.0: USB hub found
[    3.864446] hub 1-0:1.0: 1 port detected
[    3.877169] mousedev: PS/2 mouse device common for all mice
[    3.894629] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[    3.915505] i2c /dev entries driver
[    3.926813] rtc-pcf8563 0-0051: chip found, driver version 0.4.4
[    3.946963] rtc-pcf8563 0-0051: low voltage detected, date/time is not reliable.
[    3.969404] rtc-pcf8563 0-0051: rtc core: registered rtc-pcf8563 as rtc1
[    3.991960] hidraw: raw HID events driver (C) Jiri Kosina
[    4.008577] drop_monitor: Initializing network drop monitor service
[    4.027671] NET: Registered protocol family 17
[    4.041149] Key type dns_resolver registered
[    4.054915] Loading compiled-in X.509 certificates
[    4.069363] registered taskstats version 1
[    4.081743] zswap: loading zswap
[    4.091568] zswap: using zbud pool
[    4.101825] zswap: using lzo compressor
[    4.122389] Key type encrypted registered
[    4.135109] rtc-mv f1010300.rtc: setting system clock to 2017-11-09 02:02:17 UTC (1510192937)
[    4.162195] PM: Hibernation image not present or could not be loaded.
[    4.163444] Freeing unused kernel memory: 284K (c07db000 - c0822000)
[    4.213415] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    4.271387] systemd-udevd[85]: starting version 215
[    4.305675] random: systemd-udevd urandom read with 5 bits of entropy available
[    4.395337] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608
[    4.433388] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
[    4.477444] usb 1-1: Product: USB2.0 Hub
[    4.502705] hub 1-1:1.0: USB hub found
[    4.525465] hub 1-1:1.0: 4 ports detected
[    4.552309] SCSI subsystem initialized
[    4.656653] libata version 3.00 loaded.
[    4.658693] sata_mv f1080000.sata: version 1.28
[    4.658993] sata_mv f1080000.sata: slots 32 ports 2
[    4.743440] scsi host0: sata_mv
[    4.785085] scsi host1: sata_mv
[    4.797000] ata1: SATA max UDMA/133 irq 33
[    4.809428] ata2: SATA max UDMA/133 irq 33
[    5.323332] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    5.373367] ata1.00: ATA-8: WDC WD1002FAEX-00Z3A0, 05.01D05, max UDMA/133
[    5.393771] ata1.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    5.453377] ata1.00: configured for UDMA/133
[    5.483651] scsi 0:0:0:0: Direct-Access     ATA      WDC WD1002FAEX-0 1D05 PQ: 0 ANSI: 5
[    6.013331] ata2: SATA link up 3.0 Gbps (SStatus 123 SControl F300)
[    6.063369] ata2.00: ATA-8: WDC WD1002FAEX-00Z3A0, 05.01D05, max UDMA/133
[    6.083770] ata2.00: 1953525168 sectors, multi 0: LBA48 NCQ (depth 31/32)
[    6.143368] ata2.00: configured for UDMA/133
[    6.173620] scsi 1:0:0:0: Direct-Access     ATA      WDC WD1002FAEX-0 1D05 PQ: 0 ANSI: 5
[    6.212291] sd 0:0:0:0: [sda] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[    6.239021] sd 1:0:0:0: [sdb] 1953525168 512-byte logical blocks: (1.00 TB/931 GiB)
[    6.263927] sd 0:0:0:0: [sda] Write Protect is off
[    6.278630] sd 1:0:0:0: [sdb] Write Protect is off
[    6.293064] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[    6.293195] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    6.320391] sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
[    6.320516] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[    6.355995]  sda: sda1 sda2 sda3
[    6.365871]  sdb: sdb1 sdb2 sdb3
[    6.378131] sd 0:0:0:0: [sda] Attached SCSI disk
[    6.394659] sd 1:0:0:0: [sdb] Attached SCSI disk
[    6.411656] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    6.429749] sd 1:0:0:0: Attached scsi generic sg1 type 0
[   16.734159] md: md2 stopped.
[   16.763613] md: bind<sdb3>
[   16.775876] md: bind<sda3>
[   16.794762] md: raid1 personality registered for level 1
[   16.811787] md/raid1:md2: active with 2 out of 2 mirrors
[   16.828168] created bitmap (8 pages) for device md2
[   16.846033] md2: bitmap initialized from disk: read 1 pages, set 0 of 14519 bits
[   16.903484] md2: detected capacity change from 0 to 974299791360
[   21.547583] md: md1 stopped.
[   21.565428] md: bind<sdb2>
[   21.583250] md: bind<sda2>
[   21.601182] md/raid1:md1: active with 2 out of 2 mirrors
[   21.621752] md1: detected capacity change from 0 to 8585674752
[   26.312035] md: md0 stopped.
[   26.331399] md: bind<sdb1>
[   26.347217] md: bind<sda1>
[   26.368298] md/raid1:md0: active with 2 out of 2 mirrors
[   26.384580] md0: detected capacity change from 0 to 17179803648
[   26.403401] random: nonblocking pool is initialized
[   31.822951] EXT3-fs (md0): mounted filesystem with ordered data mode
[   31.842107] kjournald starting.  Commit interval 5 seconds
[   33.296371] systemd-udevd[320]: starting version 215
[   33.645246] input: gpio_keys as /devices/platform/gpio_keys/input/input0
[   33.846840] orion_wdt: Initial timeout 21 sec
[   36.078339] Adding 8384444k swap on /dev/md1.  Priority:-1 extents:1 across:8384444k FS
[   36.673839] EXT3-fs (md0): using internal journal
[   38.205259] netpoll: netconsole: local port 6666
[   38.219632] netpoll: netconsole: local IPv4 address 172.19.100.125
[   38.238591] netpoll: netconsole: interface 'eth0'
[   38.253156] netpoll: netconsole: remote port 6666
[   38.268156] netpoll: netconsole: remote IPv4 address 172.19.100.122
[   38.287238] netpoll: netconsole: remote ethernet address ec:a8:6b:65:67:16
[   38.310721] netpoll: netconsole: device eth0 not up yet, forcing it
[   38.335962] mv643xx_eth: Set the PHY back to auto-negotiation mode
[   39.094930] EXT4-fs (md2): mounted filesystem with ordered data mode. Opts: (null)
[   40.607584] NET: Registered protocol family 10
[   40.621965] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   42.373312] netpoll: netconsole: timeout waiting for carrier
[   42.392702] console [netcon0] enabled
[   42.403743] netconsole: network logging started
[  113.576753] NFSD: Using /var/lib/nfs/v4recovery as the NFSv4 state recovery directory
[  113.606959] NFSD: starting 90-second grace period (net c0896740)
[  846.225725] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[  846.236028] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[  856.138057] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down
[  869.497693] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 10 Mb/s, full duplex, flow control disabled
[  869.591693] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down
[  872.278442] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[ 1087.479232] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down
[ 1087.485277] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
[ 1397.098049] mv643xx_eth_port mv643xx_eth_port.0 eth0: link down
[ 1397.104092] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 1000 Mb/s, full duplex, flow control disabled
root@jaynas03:~ #

root@jaynas03:~ # ls -al /boot
total 101120
drwxr-xr-x  3 root root     4096 Aug  4  2016 .
drwxr-xr-x 21 root root     4096 Nov 18  2015 ..
-rw-r--r--  1 root root  2019506 Feb  6  2015 System.map-3.18.5-kirkwood-tld-1
-rw-------  1 root root  2237781 Sep  2  2015 System.map-4.2.0-kirkwood-tld-1
-rw-r--r--  1 root root   131204 Feb  6  2015 config-3.18.5-kirkwood-tld-1
-rw-r--r--  1 root root   138511 Sep  2  2015 config-4.2.0-kirkwood-tld-1
drwxr-xr-x  2 root root     4096 Sep  2  2015 dts
-rw-r--r--  1 root root  6964114 Sep  5  2018 initrd.img-3.18.5-kirkwood-tld-1
-rw-r--r--  1 root root  7731762 Aug  4  2016 initrd.img-4.2.0-kirkwood-tld-1
-rw-r--r--  1 root root   114095 Sep  4  2015 linux-4.2.0-kirkwood-tld-1.patch
-rw-r--r--  1 root root  1075200 Sep  4  2015 linux-dtb-4.2.0-kirkwood-tld-1.tar
-rw-r--r--  1 root root  9460784 Feb  6  2015 linux-headers-3.18.5-kirkwood-tld-1_1_armel.deb
-rw-r--r--  1 root root  7345386 Sep  2  2015 linux-headers-4.2.0-kirkwood-tld-1_1.0_armel.deb
-rw-r--r--  1 root root 17432890 Sep  2  2015 linux-image-4.2.0-kirkwood-tld-1_1.0_armel.deb
-rw-r--r--  1 root root  3160891 Nov 16  2015 uImage
-rw-r--r--  1 root root  2878838 Nov  3  2015 uImage-3.18.5-kirkwood-tld-1
-rw-r--r--  1 root root  3160891 Nov  5  2015 uImage.20151116
-rw-r--r--  1 root root  2865664 Feb  8  2015 uImage.orig
-rw-r--r--  1 root root  7724011 Nov 16  2015 uInitrd
-rw-r--r--  1 root root  6535284 Feb 18  2015 uInitrd-3.18.5-kirkwood-tld-1
-rw-r--r--  1 root root  7150430 Nov  5  2015 uInitrd.20151116
-rwxr-xr-x  1 root root  2865600 Feb  6  2015 vmlinuz-3.18.5-kirkwood-tld-1
-rw-------  1 root root  3147136 Sep  2  2015 vmlinuz-4.2.0-kirkwood-tld-1
-rwxr-xr-x  1 root root  2865600 Feb  5  2015 zImage-3.18.5-kirkwood-tld-1
-rwxr-xr-x  1 root root  3147136 Sep  1  2015 zImage-4.2.0-kirkwood-tld-1
-rwxr-xr-x  1 root root  3160827 Nov 16  2015 zImage.fdt
root@jaynas03:~ # 
Re: Debian on NSA221
November 09, 2017 02:08AM
IIRC, unlike the Pogo V3 OX820 SoC, this OXNAS SoC was in mainline. Not sure how completed it is, but let's see if I can look back a bit and find some info.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on NSA221
November 09, 2017 04:42AM
jlovell2105,

This SoC is OX810SE. It has mainline support, but it is incompleted (I did not see USB and SATA driver). The current OXNAS kernel we have is for another CPU architecture so I don't think it will work for this box.

All we can do is waiting for Linux mainline OX810SE and OX820 OXNAS kernel. There was talk about porting USB and SATA to this kernel, but so far nothing has come out of that.

-bodhi
===========================
Forum Wiki
bodhi's corner
Re: Debian on NSA221
November 09, 2017 11:00AM
> This SoC is OX810SE. It has mainline support, but
> it is incompleted (I did not see USB and SATA
> driver).
> The
> current OXNAS kernel
we have is for another
> CPU architecture so I don't think it will work for
> this box.
>
> All we can do is waiting for Linux mainline
> OX810SE and OX820 OXNAS kernel. There was talk
> about porting USB and SATA to this kernel, but so
> far nothing has come out of that.

Well crud. I was afraid there was going to be some reason this wasn't done. As old as this CPU is, with better CPU's already on the market for years, I suspect there isn't much desire to do anything with it.
Re: Debian on NSA221
November 09, 2017 02:47PM
jlovell2105,

> Well crud. I was afraid there was going to be
> some reason this wasn't done. As old as this
> CPU is, with better CPU's already on the market
> for years, I suspect there isn't much desire to do
> anything with it.

There is an effort going on in mainline. But it is quite slow. I suspect that since Oxford Semi was acquired, all their SoCs might have been EOL, not just these 2.

I did build a new kernel that run quite well for the Pogo V3 OX820, but with no disk drive. So I am stuck at kernel 4.4.x, because I don't have enough free time to try the porting.

-bodhi
===========================
Forum Wiki
bodhi's corner
Author:

Your Email:


Subject:


Spam prevention:
Please, solve the mathematical question and enter the answer in the input field below. This is for blocking bots that try to post this form automatically.
Question: how much is 3 plus 10?
Message: