• Home
  • Help
  • Search
  • Login
  • Register
Pages: [1]
Author Topic: "New" Marvell Device? ICY IB-NAS 6210  (Read 10199 times)
guidol
Full Member
***

Karma: 10
Posts: 128



View Profile
« on: August 26, 2011, 01:46:25 AM »

Hi,

I heard about the IcyBox ICY IB-NAS 6210...
It seems that it also has a Marvell CPU.

Facts that I read:
Productdata: CPU-Speed: 1200 MHz (ARM Marvell 6281);
Memory: 256 MB;
Typ: NAS - Server;
Connectors: USB, eSATA, Ethernet 1000

www.raidsonic.de/data/datasheet/icybox/DE/datasheet_ib-nas6210_d.pdf

Looks like an external Drive case for 5.25" Drives

Price here in Germany around 66EUR

Will this device run debian?
Logged

pacolm
Full Member
***

Karma: 1
Posts: 102


View Profile
« Reply #1 on: August 26, 2011, 03:53:46 AM »

Hi,

 This device looks very tiny, if we could modify the embedded linux on it, for this price, is on my wish-list!

 Read this, seems promising.... http://www.linuxquestions.org/questions/slackware-14/is-it-possible-to-install-armedslack-on-a-icy-box-ib-nas6210-881511/

PacoLM
Logged

punaniac
Newbie
*

Karma: 1
Posts: 7


View Profile
« Reply #2 on: September 05, 2011, 03:25:54 AM »

Hi,

 This device looks very tiny, if we could modify the embedded linux on it, for this price, is on my wish-list!

 Read this, seems promising.... http://www.linuxquestions.org/questions/slackware-14/is-it-possible-to-install-armedslack-on-a-icy-box-ib-nas6210-881511/

PacoLM

very interesting and cheap device, indeed. There have been some successful efforts, e.g. to gain access to the serial console (http://forum.nas-portal.org/showthread.php?12855-Ib-nas6220-b). Although the discussion is focused on the 2-bay Ib-NAS-6220b, the PCB location of the serial port is the same. I feel really tempted to give this one a try...
Logged

punaniac
Newbie
*

Karma: 1
Posts: 7


View Profile
« Reply #3 on: September 09, 2011, 01:30:59 PM »

very interesting and cheap device, indeed. There have been some successful efforts, e.g. to gain access to the serial console (http://forum.nas-portal.org/showthread.php?12855-Ib-nas6220-b). Although the discussion is focused on the 2-bay Ib-NAS-6220b, the PCB location of the serial port is the same. I feel really tempted to give this one a try...

so I just ordered one of these... Ib-NAS-6210. Following the thread linked in my previous post, I soldered a serial cable. This is what I got.

U-boot output
Code:
         __  __                      _ _
        |  \/  | __ _ _ ____   _____| | |
        | |\/| |/ _` | '__\ \ / / _ \ | |
        | |  | | (_| | |   \ V /  __/ | |
        |_|  |_|\__,_|_|    \_/ \___|_|_|
 _   _     ____              _
| | | |   | __ )  ___   ___ | |_
| | | |___|  _ \ / _ \ / _ \| __|
| |_| |___| |_) | (_) | (_) | |_
 \___/    |____/ \___/ \___/ \__|
 ** MARVELL BOARD: DB-88F6281A-BP LE

U-Boot 1.1.4 (Oct 12 2009 - 13:41:53) Marvell version: 3.4.16

U-Boot code: 00600000 -> 0067FFF0  BSS: -> 006CEE60

Soc: MV88F6281 Rev 3 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz

DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000   size 256MB
DRAM Total size 256MB  16bit width
Flash:  0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:256 MB

CPU : Marvell Feroceon (Rev 1)

Streaming disabled
Write allocate disabled


USB 0: host mode
PEX 0: interface detected no Link.
Net:   egiga0 [PRIME]
Hit any key to stop autoboot:  0

NAND read: device 0 offset 0x100000, size 0x300000

Reading data from 0x3ff800 -- 100% complete.
 3145728 bytes read: OK
## Booting image at 00800000 ...
   Image Name:   Linux-2.6.22.18
   Created:      2009-12-23  18:37:19 UTC
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2087656 Bytes =  2 MB
   Load Address: 00008000
   Entry Point:  00008000
   Verifying Checksum ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.

U-boot commands
Code:
Marvell>> help
?       - alias for 'help'
SatR - sample at reset sub-system, relevent for DB only
base    - print or set address offset
boot    - boot default, i.e., run 'bootcmd'
bootd   - boot default, i.e., run 'bootcmd'
bootext2    dev:boot_part1,boot_part2 addr boot_image linux_dev_name
bootm   - boot application image from memory
bootp - boot image via network using BootP/TFTP protocol
bubt - Burn an image on the Boot Nand Flash.
chpart - change active partition
cmp     - memory compare
cmpm - Compare Memory
cp      - memory copy
cpumap - Display CPU memory mapping settings.
crc32   - checksum calculation
date    - get/set/reset date & time
dclk - Display the MV device CLKs.
dhcp - invoke DHCP client to obtain IP/boot params
diskboot- boot from IDE device
echo    - echo args to console
eeprom  - EEPROM sub-system
erase   - erase FLASH memory
ext2load- load binary file from a Ext2 filesystem
ext2ls  - list files in a directory (default /)
fatinfo - print information about filesystem
fatload - load binary file from a dos filesystem
fatls   - list files in a directory (default /)
fi - Find value in the memory.
flinfo  - print FLASH memory information
fsinfo - print information about filesystems
fsload - load binary file from a filesystem image
g - start application at cached address 'addr'(default addr 0x40000)
go      - start application at address 'addr'
help    - print online help
icrc32  - checksum calculation
ide     - IDE sub-system
iloop   - infinite loop on address range
imd     - i2c memory display
imm[.b, .s, .w, .l]     - i2c memory modify (auto-incrementing)
imw     - memory write (fill)
inm     - memory modify (constant address)
iprobe  - probe to discover valid I2C chip addresses
ir - reading and changing MV internal register values.
loop    - infinite loop on address range
ls - list files in a directory (default /)
map - Diasplay address decode windows
md      - memory display
me - PCI master enable
mm      - memory modify (auto-incrementing)
mp - map PCI BAR
mtdparts- define flash/nand partitions
mtest   - simple RAM test
mw      - memory write (fill)
nand                   - NAND sub-system
nboot   - boot from NAND device
nbubt - Burn a boot loader image on the Boot Nand Flash.
nm      - memory modify (constant address)
pci     - list and access PCI Configuration Space
phyRead - Read PCI-E Phy register
pciePhyWrite - Write PCI-E Phy register
phyRead - Read Phy register
phyWrite - Write Phy register
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
rcvr - Satrt recovery process (Distress Beacon with TFTP server)
reset   - Perform RESET of the CPU
resetenv - Return all environment variable to default.
run     - run commands in an environment variable
saveenv - save environment variables to persistent storage
se - PCI Slave enable
setenv  - set environment variables
sflash - read, write or erase the external SPI Flash.
sg - scanning the PHYs status
sp - Scan PCI bus.
tftpboot- boot image via network using TFTP protocol
usb     - USB sub-system
usbboot - boot from USB device
version - print monitor version

U-boot printenv output
Code:
Marvell>> printenv
baudrate=115200
loads_echo=0
ipaddr=10.4.50.165
netmask=255.255.255.0
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_end=:::DB88FXX81:eth0:none
standalone=fsload 0x2000000 $(image_name);setenv bootargs $(console) root=/dev/mtdblock0 rw ip=$(ipaddr):$(serverip)$(bootargs_end) $(mvPhoneConfig); bootm 0x2000000;
ethmtu=1500
mvPhoneConfig=mv_phone_config=dev0:fxs,dev1:fxs
mvNetConfig=mv_net_config=(00:11:88:0f:62:81,0:1:2:3),mtu=1500
usb0Mode=host
yuk_ethaddr=00:00:00:EE:51:81
nandEcc=1bit
netretry=no
rcvrip=169.254.100.100
loadaddr=0x02000000
autoload=no
ethact=egiga0
bootargs_root=ubi.mtd=2,2048 root=ubi0:rootfs rootfstype=ubifs init=/linuxrc
console=console=ttyS0,115200
bootcmd=nand read.e 0x800000 0x100000 0x300000; setenv bootargs $(console) $(bootargs_root); bootm 0x800000
rootpath=/tftpboot/marvell.nfs.rootfs
image_name=uImage.6281a.ubifs.20090513
serverip=10.128.129.205
ethaddr=00:01:D2:0E:0F:60
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
disaMvPnp=no
enaAutoRecovery=no

Environment size: 1192/131068 bytes

Kernel messages
Code:
Linux version 2.6.22.18 (ramang@es5x86.axentra.com) (gcc version 4.3.2 (sdk3.2rc1-ct-ng-1.4.1) ) #21 Wed Dec 23 13:37:12 EST 2009
CPU: ARM926EJ-S [56251311] revision 1 (ARMv5TE), cr=00053977
Machine: Feroceon-KW
Using UBoot passing parameters structure
Memory policy: ECC disabled, Data cache writeback
CPU0: D VIVT write-back cache
CPU0: I cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
CPU0: D cache: 16384 bytes, associativity 4, 32 byte lines, 128 sets
Built 1 zonelists.  Total pages: 65024
Kernel command line: console=ttyS0,115200 ubi.mtd=2,2048 root=ubi0:rootfs rootfstype=ubifs init=/linuxrc
PID hash table entries: 1024 (order: 10, 4096 bytes)
Console: colour dummy device 80x30
Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
Memory: 256MB 0MB 0MB 0MB = 256MB total
Memory: 255616KB available (3832K code, 260K data, 128K init)
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
NET: Registered protocol family 16

CPU Interface
-------------
SDRAM_CS0 ....base 00000000, size 256MB
SDRAM_CS1 ....disable
SDRAM_CS2 ....disable
SDRAM_CS3 ....disable
PEX0_MEM ....base e8000000, size 128MB
PEX0_IO ....base f2000000, size   1MB
INTER_REGS ....base f1000000, size   1MB
NFLASH_CS ....base fa000000, size   2MB
SPI_CS ....base f4000000, size  16MB
BOOT_ROM_CS ....no such
DEV_BOOTCS ....no such
CRYPT_ENG ....base f0000000, size   2MB

  Marvell Development Board (LSP Version KW_LSP_4.3.4)-- DB-88F6281A-BP  Soc: 88F6281 A1 LE

 Detected Tclk 200000000 and SysClk 400000000
MV Buttons Device Load
Marvell USB EHCI Host controller #0: c0690600
PEX0 interface detected no Link.
PCI: bus0: Fast back to back transfers enabled
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
NET: Registered protocol family 2
Time: kw_clocksource clocksource has been installed.
IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
TCP established hash table entries: 8192 (order: 4, 65536 bytes)
TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
TCP reno registered
RTC registered
cesadev_init(c0011568)
mvCesaInit: sessions=640, queue=64, pSram=f0000000
Warning: TS unit is powered off.
MV Buttons Driver Load
JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
io scheduler noop registered
io scheduler anticipatory registered (default)
Serial: 8250/16550 driver $Revision: 1.90 $ 4 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33) is a 16550A
serial8250.0: ttyS1 at MMIO 0xf1012100 (irq = 34) is a 16550A
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
loop: module loaded
Loading Marvell Ethernet Driver:
  o Cached descriptors in DRAM
  o DRAM SW cache-coherency
  o Single RX Queue support - ETH_DEF_RXQ=0
  o Single TX Queue support - ETH_DEF_TXQ=0
  o TCP segmentation offload enabled
  o Receive checksum offload enabled
  o Transmit checksum offload enabled
  o Network Fast Processing (Routing) supported
  o Driver ERROR statistics enabled
  o Driver INFO statistics enabled
  o Proc tool API enabled
  o Rx descripors: q0=128
  o Tx descripors: q0=532
  o Loading network interface(s):
    o eth0, ifindex = 1, GbE port = 0

Warning: Giga 1 is Powered Off

mvFpRuleDb (cfe18000): 2048 entries, 8192 bytes
Intel(R) PRO/1000 Network Driver - version 7.3.20-k2-NAPI
Copyright (c) 1999-2006 Intel Corporation.
e100: Intel(R) PRO/100 Network Driver, 3.5.17-k4-NAPI
e100: Copyright(c) 1999-2006 Intel Corporation
Integrated Sata device found
scsi0 : Marvell SCSI to SATA adapter
scsi1 : Marvell SCSI to SATA adapter
NFTL driver: nftlcore.c $Revision: 1.98 $, nftlmount.c $Revision: 1.41 $
NAND device: Manufacturer ID: 0xec, Chip ID: 0xda (Samsung NAND 256MiB 3,3V 8-bit)
Scanning device for bad blocks
Bad eraseblock 142 at 0x011c0000
Bad eraseblock 194 at 0x01840000
Bad eraseblock 195 at 0x01860000
Bad eraseblock 1166 at 0x091c0000
Bad eraseblock 1219 at 0x09860000
Using static partition definition
Creating 3 MTD partitions on "nand_mtd":
0x00000000-0x00100000 : "u-boot"
0x00100000-0x00700000 : "uImage"
0x00700000-0x10000000 : "root"
UBI: attaching mtd2 to ubi0
UBI: physical eraseblock size:   131072 bytes (128 KiB)
UBI: logical eraseblock size:    126976 bytes
UBI: smallest flash I/O unit:    2048
UBI: sub-page size:              512
UBI: VID header offset:          2048 (aligned 2048)
UBI: data offset:                4096
UBI: attached mtd2 to ubi0
UBI: MTD device name:            "root"
UBI: MTD device size:            249 MiB
UBI: number of good PEBs:        1987
UBI: number of bad PEBs:         5
UBI: max. allowed volumes:       128
UBI: wear-leveling threshold:    4096
UBI: number of internal volumes: 1
UBI: number of user volumes:     1
UBI: available PEBs:             0
UBI: total number of reserved PEBs: 1987
UBI: number of PEBs reserved for bad PEB handling: 19
UBI: max/mean erase counter: 2/0
UBI: background thread "ubi_bgt0d" started, PID 296
ehci_marvell ehci_marvell.70059: Marvell Orion EHCI
ehci_marvell ehci_marvell.70059: new USB bus registered, assigned bus number 1
ehci_marvell ehci_marvell.70059: irq 19, io base 0xf1050100
ehci_marvell ehci_marvell.70059: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
USB Universal Host Controller Interface driver v3.0
usb 1-1: new high speed USB device using ehci_marvell and address 2
usb 1-1: configuration #1 chosen from 1 choice
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 4 ports detected
usbcore: registered new interface driver usblp
drivers/usb/class/usblp.c: v0.13: USB Printer Device Class driver
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mice: PS/2 mouse device common for all mice
i2c /dev entries driver
Linux telephony interface: v1.00
Marvell Telephony Driver:

Warning Tdm is Powered Off
md: linear personality registered for level -1
md: raid0 personality registered for level 0
md: raid1 personality registered for level 1
raid6: int32x1     91 MB/s
raid6: int32x2    109 MB/s
raid6: int32x4    119 MB/s
raid6: int32x8     94 MB/s
raid6: using algorithm int32x4 (119 MB/s)
md: raid6 personality registered for level 6
md: raid5 personality registered for level 5
md: raid4 personality registered for level 4
raid5: measuring checksumming speed
   arm4regs  :  1084.400 MB/sec
   8regs     :   822.000 MB/sec
   32regs    :   803.200 MB/sec
raid5: using function: arm4regs (1084.400 MB/sec)
device-mapper: ioctl: 4.11.0-ioctl (2006-10-12) initialised: dm-devel@redhat.com
dm_crypt using the OCF package.
usbcore: registered new interface driver usbhid
drivers/hid/usbhid/hid-core.c: v2.6:USB HID core driver
TCP cubic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
md: Autodetecting RAID arrays.
md: autorun ...
md: ... autorun DONE.
UBIFS: mounted UBI device 0, volume 0, name "rootfs"
UBIFS: file system size:   239857664 bytes (234236 KiB, 228 MiB, 1889 LEBs)
UBIFS: journal size:       9023488 bytes (8812 KiB, 8 MiB, 72 LEBs)
UBIFS: media format:       4 (latest is 4)
UBIFS: default compressor: zlib
UBIFS: reserved for root:  0 bytes (0 KiB)
VFS: Mounted root (ubifs filesystem).
Freeing init memory: 128K

Boot log
Code:
Failed to execute /linuxrc.  Attempting defaults...
INIT: version 2.86 booting
Welcome to HipServ
Press 'I' to enter interactive startup.
Setting clock : Thu Sep 30 14:12:57 EDT 2010 [  OK  ]
Starting udev: [  OK  ]
Setting hostname axentraserver.localdomain:  [  OK  ]
Setting up Logical Volume Management:   No volume groups found
[  OK  ]
Checking filesystems
Checking all file systems.
[  OK  ]
Mounting local filesystems:  mount: sysfs already mounted or /sys busy
mount: according to mtab, /sys is already mounted on /sys
mount: /dev/md0: can't read superblock
[FAILED]
Enabling /etc/fstab swaps:  [  OK  ]
INIT: Entering runlevel: 3
Entering non-interactive startup
HipServ startup:mount: /dev/md0: can't read superblock
[FAILED]
Starting reset:  [  OK  ]
Starting touch-lifecycle:[  OK  ]
Bringing up loopback interface:  [  OK  ]
Bringing up interface eth0: 
Determining IP information for eth0... failed; no link present.  Check cable?
 failed.
[FAILED]
Starting system logger: [  OK  ]
Starting kernel logger: [  OK  ]
Starting locator:[  OK  ]
Starting system message bus: [  OK  ]
Starting sshd: [  OK  ]
Starting cups: [  OK  ]
Starting xinetd: [  OK  ]
Starting vsftpd for vsftpd: [  OK  ]
Starting access-patrol:[  OK  ]
Starting backupagent: [  OK  ]
Starting httpd: [  OK  ]
Starting appserver: [  OK  ]
Starting crond: [  OK  ]
Starting AppleTalk services:
  Starting cnid_metad:[  OK  ]
  Starting afpd:[  OK  ]

Starting SMB services: [  OK  ]
Starting NMB services: [  OK  ]
check_igd.pl: no process killed
Starting igd-daemon:[ERROR] main: UpnpInit() returned error (-208)
hipserv2_raidsonic
[  OK  ]
Starting OEone System Proxy: SPD starting....log level=1, uid=0

[  OK  ]
Starting Avahi daemon... [  OK  ]
Starting minidlna.init:  Starting /usr/sbin/minidlna ... [2010/09/30 14:14:06] minidlna.c:576: No IP address automatically detected!
Usage:
/usr/sbin/minidlna [-d] [-f config_file]
[-a listening_ip] [-p port]
[-s serial] [-m model_number]
[-t notify_interval] [-P pid_filename]
[-w url] [-R] [-V] [-h]

Notes:
Notify interval is in seconds. Default is 895 seconds.
Default pid file is /var/run/minidlna.pid.
With -d minidlna will run in debug mode (not daemonize).
-w sets the presentation url. Default is http address on port 80
-h displays this text
-R forces a full rescan
-V print the version number

[  OK  ]
Starting MySafe: started: (--startup)
[  OK  ]
/dev/sda3: No such file or directory
Starting DAAP server: [  OK  ]
Starting mynetworkd:[  OK  ]
ioctl() SIOCGIFADDR: Cannot assign requested address
1474
HipServ boot complete:Error : Temporary failure in name resolution
30 Sep 14:15:10 ntpdate[1798]: can't find host 0.pool.ntp.org

30 Sep 14:15:10 ntpdate[1798]: no servers can be used, exiting
[  OK  ]
Starting spindownd: [  OK  ]
Starting usbreaderd: [  OK  ]

axentraserver.localdomain login:

I haven't attached this device to my home network, nor have I changed anything in its configuration. Next step is to try this thing to boot from USB and eSATA. If that works I will replace my eSATA Sheeva by this one as it's got everything I need in just one case. (3x USB, eSATA, internal SATA, small fan, fancy design)

best regards.
Logged

punaniac
Newbie
*

Karma: 1
Posts: 7


View Profile
« Reply #4 on: September 12, 2011, 04:11:28 AM »

update:
I succeeded in replacing my eSATA Sheevaplug with the IcyBox.
The IcyBox boots fine from USB and eSATA (if you built your kernel with mv_sata support compiled in). The only necessary change was setting the correct arcNumber in u-Boot environment for booting a recent kernel (mine is 2.6.37).

Code:
Marvell>> setenv mainlineLinux yes
Marvell>> setenv arcNumber 1680
Marvell>> saveenv
Marvell>> reset

Please note that setting mainlineLinux to yes prevents the factory NAND installation from booting (which is ok for me as the stock firmware is known to "phone home").

Just to give you some more information on my configuration: I'm running the following services on my IcyBox now.
- WLAN access point hostapd with a TP-Link TL-WN321G (rt73usb chipset), bridged with eth0
- VDR 1.7.16 using a USB DVB-S2 receiver TT-connect s2-3600 with svdrp support for remote clients
- NFS and tftpd-hpa for netbooting my diskless VDR client
- nginx, mysql, php5 for serving a local wiki
- TwonkyServer 6.0.x for UPnP audio and video streaming
- Samba network shares
- netatalk for TimeMachine share

Free RAM is about 170MB.
Logged

bnms
Newbie
*

Karma: 3
Posts: 4


View Profile
« Reply #5 on: October 03, 2011, 07:00:45 AM »

Thanks punaniac! Works like a charm Cheesy.

Since the information how to get your own OS onto the box is rather "distributed", I put together a page that summarizes the steps: http://bit.ly/mZJ48r.

Perhaps it is of use to someone.
Logged

punaniac
Newbie
*

Karma: 1
Posts: 7


View Profile
« Reply #6 on: October 10, 2011, 01:21:30 AM »

Thanks punaniac! Works like a charm Cheesy.

Since the information how to get your own OS onto the box is rather "distributed", I put together a page that summarizes the steps: http://bit.ly/mZJ48r.

Perhaps it is of use to someone.

nice wrapup... can you confirm that your outlined kernel patch is working for handling the LEDs and buttons?

best regards.
Logged

bnms
Newbie
*

Karma: 3
Posts: 4


View Profile
« Reply #7 on: October 13, 2011, 11:27:50 AM »

...
nice wrapup... can you confirm that your outlined kernel patch is working for handling the LEDs and buttons?


Yes, as far as I can tell they both work. I consider the patch as complete; it's just that I did not find the time to document it yet. Any sort of testing is of course highly appreciated.

LEDs:
"nas6210:green:power" is dim green when off and bright green when on.
"nas6210:red:power " is "master enabled" by the green power LED. Thus, nothing happens if the green LED is off.
"nas6210:red:usb_copy" can be toggled on/off

I did not much with the keys, but pressing them seems to generate the respective input events.
Logged

Arne.F
Newbie
*

Karma: 1
Posts: 4


View Profile
« Reply #8 on: October 14, 2011, 02:43:58 AM »

I can confirm that the led's are working like bnms describes. I have not found a way to get an event from the power button yet. (Copy and reset are working)

But in the patch is a bug at the mtd partitions. The size of the uImage is 6MB not 4MB

Code:
}, {
.name = "uImage",
.offset = MTDPART_OFS_NXTBLK,
.size = (SZ_1M*6)
}, {

I have also adapted the shutdown code from the gpl-sources (strange patches) to the machine setup.
Code:
void ib_nas62x0_power_off(void)
{
int value = -1;

value = readl(KIRKWOOD_REGS_VIRT_BASE | 0x10100);
value = value | (1<<24);
writel(value,KIRKWOOD_REGS_VIRT_BASE | 0x10100);
while(1);
}

If you register this at the __init with
Code:
pm_power_off = ib_nas62x0_power_off;

the box will switch of after init 0

Logged


GPLUS
Newbie
*

Karma: 0
Posts: 3


View Profile
« Reply #9 on: October 14, 2011, 05:22:33 AM »

Hi, what about the right ArcNumber? I found in kernel 3.0.X a definition for
this device  in arch/arm/tools/mach-types

Code:
prima2_evb              MACH_PRIMA2_EVB         PRIMA2_EVB              3103
nas6210                 MACH_NAS6210            NAS6210                 3104
unisdev                 MACH_UNISDEV            UNISDEV                 3105

Do we need

arcNumber 3104

to be set in the uboot env then?

I also had to include
#include <asm/io.h>

in arch/arm/mach-kirkwood/nas6210-setup.c

to compile the addition from Arne.F


Logged

Arne.F
Newbie
*

Karma: 1
Posts: 4


View Profile
« Reply #10 on: October 14, 2011, 09:32:14 AM »

Yes you need to use the arcNumber that points to your changed file. (3104 should be ok if it point to nas6210 or ib_nas62x0 (in older kernels)

@GPLUS you have right. I had forgotten the additional include, but i have used linux/io.h but this should have the same effect.
Logged


bnms
Newbie
*

Karma: 3
Posts: 4


View Profile
« Reply #11 on: October 15, 2011, 03:51:23 AM »

I can confirm that the led's are working like bnms describes. I have not found a way to get an event from the power button yet. (Copy and reset are working)

But in the patch is a bug at the mtd partitions. The size of the uImage is 6MB not 4MB

...
I have also adapted the shutdown code from the gpl-sources (strange patches) to the machine setup.



Thanks Arne for pointing out the bug with the MTD partitions and how to power off the device via GPIO #24. I have adapted the patch on the site, but hopefully not in the original strange patch style...

I could not detect any GPIO activity when pressing the power button either. Is the original software able to detect this event?

Btw. do you run this patch on the 6210 or the 6220? I assume that it works on the 6220 as well, but I cannot verify this since I don't have the hardware.

Logged

Arne.F
Newbie
*

Karma: 1
Posts: 4


View Profile
« Reply #12 on: October 19, 2011, 07:02:33 AM »

Your code looks much cleaner. I have only track down the patches to this memory access but not seen that this was a simple gpio access.

I use also the ICY-Box 6210. I have renamed the ARCH and led names NAS6210 now to be compatible with your patch and the the 3.0.4 kernel. (arcNumber 3104 is there already present at arm/tools but the setup is still missing)
Logged


Pages: [1]
Print
Jump to: