DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-03-04 10:30:59

Paul
Member
From: Landshut, Germany
Registered: 2007-01-19
Posts: 35
Website

Sata not working with orion-git kernel on CH3SNAS

Hi!

I'm using an orion git Kernel on my DLink DNS-323 (2.6.24-something) and Debian on an usb-drive.
Recently I've bought a Conceptronic CH3SNAS NAS. While almost everything works as expected - when booting the same compiled orion git kernel that works perfectly on the dlink on the conceptronic I'm missing the SATA harddiscs (the sata_mv module is compiled into the kernel and not as a module.).

I've also tried the kernel Dlink has released (2.6.12.6). This one does find the SATA devices ?!?

I've noticed that lspci on the dlink shows me the device, while on the conceptronic it won't.
"00:01.0 SCSI storage controller: Marvell Technology Group Ltd. Unknown device 7042 (rev 02)"

Any ideas?
At first I thought it might be an error in the sata_mv driver, but since it won't even show up in lspci I'm not sure anymore...

Offline

 

#2 2008-03-04 10:56:54

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Sata not working with orion-git kernel on CH3SNAS

There have been two SATA drivers for Marvell chips, and there have been changes in that area recently. Maybe a more recent kernel helps.

Offline

 

#3 2008-03-07 22:40:52

Paul
Member
From: Landshut, Germany
Registered: 2007-01-19
Posts: 35
Website

Re: Sata not working with orion-git kernel on CH3SNAS

Nope, no luck yet :-(

I've tried the latest orion-git kernel, vanilla-kernel 2.6.25-rc3 and 2.6.25-rc2-mm1... Same results :-(

Offline

 

#4 2008-10-05 15:07:38

Paul
Member
From: Landshut, Germany
Registered: 2007-01-19
Posts: 35
Website

Re: Sata not working with orion-git kernel on CH3SNAS

I've recently come across the RevB of the DNS323 and noticed the same problem like on the CH3SNAS... It's the exact same problem... Maybe I'm missing something here?! Is anyone running vanilla Kernel or Orion Kernel on a CH3SNAS or the DNS323 Rev.B and can post his kernel-config please?

Offline

 

#5 2008-10-05 15:09:07

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Sata not working with orion-git kernel on CH3SNAS

Paul wrote:

I've recently come across the RevB of the DNS323 and noticed the same problem like on the CH3SNAS...

It's the same chip.

Offline

 

#6 2008-10-05 17:08:00

Paul
Member
From: Landshut, Germany
Registered: 2007-01-19
Posts: 35
Website

Re: Sata not working with orion-git kernel on CH3SNAS

It's the same chip.

Hmm strange... using this kernel everything works on my old DNS323 - but as I said, no SATA-Subsystem on CH3SNAS or newer DNS323 Models...
Maybe I'm just missing an kernel module then?

Last edited by Paul (2008-10-05 17:10:19)

Offline

 

#7 2008-10-07 16:09:58

tbm
Member
Registered: 2008-08-12
Posts: 7

Re: Sata not working with orion-git kernel on CH3SNAS

Does rev A1 use a 88F5181  whereas rev B1 (and the CH3SNAS) use a 88F5182?  Can someone confirm this?

Offline

 

#8 2008-10-07 18:01:34

Paul
Member
From: Landshut, Germany
Registered: 2007-01-19
Posts: 35
Website

Re: Sata not working with orion-git kernel on CH3SNAS

Does rev A1 use a 88F5181  whereas rev B1 (and the CH3SNAS) use a 88F5182?  Can someone confirm this?

Well I have not opened mine yet, but according to this thread, yes.

Offline

 

#9 2008-10-07 19:44:30

tbm
Member
Registered: 2008-08-12
Posts: 7

Re: Sata not working with orion-git kernel on CH3SNAS

Right.  88F5182 has SATA built-in whereas 88F5181 uses an external SATA chip (probably on PCI).  On 88F5182, the SATA controller needs to be initialized directly in the kernel.

Anyway, I should receive a CH3SNAS soon and will look into adding kernel support.

Offline

 

#10 2008-10-14 17:12:10

tbm
Member
Registered: 2008-08-12
Posts: 7

Re: Sata not working with orion-git kernel on CH3SNAS

Ok, I got my CH3SNAS.  The board even says DNS-323 rev B1, so I guess that settles the question whether they are identical.

Unfortunately I don't have such a small serial connector... if someone can help me get a serial console, I'll fix the kernel to work on rev B1.

Offline

 

#11 2008-10-15 17:57:47

fonz
Member / Developer
From: Berlin
Registered: 2007-02-06
Posts: 1716
Website

Re: Sata not working with orion-git kernel on CH3SNAS

tbm wrote:

Unfortunately I don't have such a small serial connector... if someone can help me get a serial console, I'll fix the kernel to work on rev B1.

I'm not aware of any ready-to-use cables. But since the kernel basically boots, you might get along with a netconsole. I think hvr used it a lot. Afaict, he did the original port to the DNS-323 (almost) completely without serial cable.

PS: I assume you've seen http://dns323.kood.org/hardware:serial A schematic can be found here: http://dns323.kood.org/dsmg600/howto:serial_connector

Offline

 

#12 2008-10-19 16:32:29

mpalmer
Member
From: Australia
Registered: 2008-10-19
Posts: 13

Re: Sata not working with orion-git kernel on CH3SNAS

I've got a patch for linus' tree and also the current Debian lenny kernel that enable the SATA controller on a DNS-323 B1.  I expect it'll work for the CH3SNAS, too.  I have this horrible suspicion, though, that it'll kill SATA on A1 hardware (but I lack an A1 to test on).

Patches against mainline are at:

http://github.com/mpalmer/linux-2.6.git dns323

E-mail me if you want the patches against Debian's 2.6.26-1.

Note that in order to test this you *will* need to have an initrd with the appropriate modules in (or else have sata_mv compiled in); the SATA init routines want to load sata_mv.ko immediately, and that's the only visible difference between success and failure (because even if you don't pre-init the SATA controller, you can still modprobe sata_mv manually later and it'll work... go figure)

The patches I've got in the git tree also set the MAC address, which might be handy for someone.

I'd appreciate feedback on these patches, especially running on A1 and CH3SNAS, so that future kernels don't break support on that hardware.

Offline

 

#13 2009-01-04 03:50:11

kennedy101
Member
Registered: 2008-09-16
Posts: 48

Re: Sata not working with orion-git kernel on CH3SNAS

I am in need or a vanila kernel for ffp-reloaded on a B1 DNS-323. The kernel found here http://www.inreto.de/dns323/ffp-reloade … 25.1-2.tgz fails due to hardware differences documented here http://dns323.kood.org/howto:ffp-reloaded.

The manifest shows the following files in the ffp-reloaded kernel (not included in post, too length. Can  be found at http://www.inreto.de/dns323/ffp-reloade … NIFEST.txt).

How can i go about getting these modules and kernel to use ffp reloaded on my version B1 DNS 323?


DNS 323 (Hardware B1, Firmware 1.06). 2x 1.5TB Seagate HDs.
Chroot Debain (Lenny) on USB (not reloaded). Edna server. USB print server. USB drives added to samba share. All init.d scripts in place.
Future projects: FFP reloaded then chroot on B1 hardware.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB