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.

#26 2011-04-18 18:58:53

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Netbsd working on DSM G600

phx wrote:

sala wrote:

But I remember that altboot did print "IDE/SATA device driver was not found"

Hmm. This should only happen when your board has an IDE controller chip which is unknown to altboot.
Don't you have an ACARD ATP865 chip? PCI-vendor 0x1191, PCI-product 0x0008?
Otherwise it will fail and I would have to add your chip ID.

I have put a recent altboot onto our FTP server, compiled with DEBUG option, so it should generate some more information about your hardware:
http://ftp.netbsd.org/pub/NetBSD/misc/p … bug.tar.gz

Code:

=> bootm FFF10000
## Booting image at fff10000 ...
   Image Name:   altboot
   Image Type:   PowerPC Linux Kernel Image (unknown compression)
   Data Size:    76396 Bytes = 74.6 kB
   Load Address: 01000000
   Entry Point:  01000000
 Verifying Checksum ... OK
OK

>> NetBSD/sandpoint altboot, revision 1.7 (Mon Apr 18 15:26:23 CEST 2011)
>> D-Link DSM-G600, cpu 198 MHz, bus 99 MHz, 32MB SDRAM
IDE/SATA device driver was not found
MAC address 00:13:46:d9:d7:75
100Mbps-FDX
Hit any key to enter interactive mode: 2
bootargs> tftp:netbsd-INSTALL

loading "netbsd-INSTALL" 5118940+111980=0x4fd5c8
entry=0x00090000, ssym=0x0058d148, esym=0x0058d5c8
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 5.99.49 (INSTALL) #0: Mon Apr 18 08:05:38 UTC 2011
        builds@b7.netbsd.org:/home/builds/ab/HEAD/sandpoint/201104172300Z-obj/hL
total memory = 32768 KB
avail memory = 26116 KB
OpenPIC Version 1.2: Supports 1 CPUs and 26 interrupt sources.
mainbus0 (root)
cpu0 at mainbus0: 8245 (Revision 0.4), ID 0 (primary)
cpu0: HID0 0x90c000<DOZE,DPM,ICE,DCE>, powersave: 1
eumb0 at mainbus0
com0 at eumb0 unit 0: ns16550a, working fifo
com0: console
com0: interrupting at irq 40
ociic0 at eumb0
iic0 at ociic0: I2C bus
strtc0 at iic0 addr 0x68: M41T8x Real-time Clock
satmgr0 at eumb0 unit 1: button manager (dlink)
satmgr0: interrupting at irq 41
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x1057 product 0x0006 (rev. 0x12)
ohci0 at pci0 dev 14 function 0: vendor 0x1033 product 0x0035 (rev. 0x43)
ohci0: interrupting at irq 17
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
ohci1 at pci0 dev 14 function 1: vendor 0x1033 product 0x0035 (rev. 0x43)
ohci1: interrupting at irq 17
ohci1: OHCI version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
ehci0 at pci0 dev 14 function 2: vendor 0x1033 product 0x00e0 (rev. 0x04)
ehci0: interrupting at irq 18
ehci0: companion controllers, 3 ports each: ohci0 ohci1
usb2 at ehci0: USB revision 2.0
stge0 at pci0 dev 15 function 0: Sundance ST-1023 Gigabit Ethernet, rev. 65
stge0: interrupting at irq 19
stge0: Ethernet address 00:13:46:d9:d7:75
ukphy0 at stge0 phy 24: OUI 0x0009c3, model 0x0008, rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDo
acardide0 at pci0 dev 16 function 0: Acard ATP865-A Ultra133 IDE Controller (re)
acardide0: using irq 20 for native-PCI interrupt
atabus0 at acardide0 channel 0
atabus1 at acardide0 channel 1
biomask 8000078 netmask 8000078 ttymask 8000078
uhub0 at usb0: vendor 0x1033 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1 at usb1: vendor 0x1033 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2 at usb2: vendor 0x1033 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
wd0 at atabus0 drive 0
wd0: <SAMSUNG SP0802N>
wd0: 76351 MB, 155127 cyl, 16 head, 63 sec, 512 bytes/sect x 156368016 sectors
boot device: stge0
root on md0a dumps on md0b
root file system type: ffs
WARNING: preposterous TOD clock time
WARNING: using filesystem time
WARNING: CHECK AND RESET THE DATE!
erase ^H, werase ^W, kill ^U, intr ^C, status ^T
Terminal type? [vt100]

Hmm, can't see any extra output.

Chip is acard but I don't know PCI-vendor and PCI-product id'd at the moment.

When installation is finished I can look up pciconf to see id-s. There is probably ATP865 and ATP865-A chips used on DSM-G600.


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#27 2011-04-19 10:52:26

phx
Member
Registered: 2011-04-08
Posts: 15

Re: Netbsd working on DSM G600

sala wrote:

Hmm, can't see any extra output.

Sorry, my fault. I made a new Makefile with DEBUG option, but then I used the old one to compile everything. wink

sala wrote:

acardide0 at pci0 dev 16 function 0: Acard ATP865-A Ultra133 IDE Controller (re)
...
Chip is acard but I don't know PCI-vendor and PCI-product id'd at the moment.

When installation is finished I can look up pciconf to see id-s. There is probably ATP865 and ATP865-A chips used on DSM-G600.

Yes, you are right! My chip is reported as ATP865 (without "-A"). Looking into the pcidevs table shows that there are indeed two different products:

product ACARD ATP865    0x0008  ATP865 UDMA IDE Controller
product ACARD ATP865A   0x0009  ATP865-A UDMA IDE Controller

Now I added your product ID 0x0009 to altboot and rebuilt it (this time with DEBUG). Chances are good it will work. Please download the new altboot from our FTP server. I have replaced the old file.

Once you confirmed it working I will commit the change. Thanks a lot!

Offline

 

#28 2011-04-19 20:08:56

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Netbsd working on DSM G600

phx wrote:

Now I added your product ID 0x0009 to altboot and rebuilt it (this time with DEBUG). Chances are good it will work. Please download the new altboot from our FTP server. I have replaced the old file.

Once you confirmed it working I will commit the change. Thanks a lot!

Tested and it worked. Thanks!

Chip used on my dlink is actually atp865-b but looks like a and b share same id's smile
http://dsmg600.info/_media/img_1775.jpg


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#29 2011-04-19 20:53:49

phx
Member
Registered: 2011-04-08
Posts: 15

Re: Netbsd working on DSM G600

sala wrote:

Tested and it worked. Thanks!

Great!
The modification is committed and should be available with the next build.

Offline

 

#30 2011-04-21 10:31:05

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Netbsd working on DSM G600

phx wrote:

- The board and/or the SM8954A microcontroller do not offer any function to reboot or shutdown the system. Rebooting currently works by jumping through the firmware's reset vector.

cwilson did have solution to implement poweroff function on linux. Maybe on bsd it is possible to use similar solution to communicate dsm-g600 micro-controller for poweroff function.
http://forum.dsmg600.info/viewtopic.php?pid=6235#p6235


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#31 2011-04-21 12:58:11

phx
Member
Registered: 2011-04-08
Posts: 15

Re: Netbsd working on DSM G600

sala wrote:

cwilson did have solution to implement poweroff function on linux.

I had a look into the source and his poweroff program just sends ZWC to the microcontroller. This will only turn off the power LED, but not the board. I'm sure that I already tried that. smile

NetBSD/sandpoint implements the satmgr(4) device to communicate directly with the microcontroller. So you can experiment with it yourself, e.g. by typing:

Code:

# echo "ZWC" > /dev/satmgr

Also the power-button is already active by default and will run a clean system-shutdown, when you press it for a few seconds.

Offline

 

#32 2011-06-22 18:58:05

SystemR89
Member
From: >>Turin<< >>Italy<<
Registered: 2006-09-19
Posts: 88

Re: Netbsd working on DSM G600

Hi,
I'm trying to install netbsd but I encountered a problem. I've successfully flashed altboot image and booted via tftp the installation however when I choose ftp as origin to retrieve packages I have to change base directory to "pub/NetBSD/NetBSD-5.1" because the default one doesn't exist and proceeding with "Get distrubution" installer can't find ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD- … odules.tgz


Free is BETTER!!
Use GNU/Linux!!

Offline

 

#33 2011-06-22 19:19:04

SystemR89
Member
From: >>Turin<< >>Italy<<
Registered: 2006-09-19
Posts: 88

Re: Netbsd working on DSM G600

SystemR89 wrote:

Hi,
I'm trying to install netbsd but I encountered a problem. I've successfully flashed altboot image and booted via tftp the installation however when I choose ftp as origin to retrieve packages I have to change base directory to "pub/NetBSD/NetBSD-5.1" because the default one doesn't exist and proceeding with "Get distrubution" installer can't find ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD- … odules.tgz

solved using as
server: http://nyftp.netbsd.org
base: pub/NetBSD-daily/HEAD/201106190950Z
dir: sandpoint/binary

however now booting the installation dsmg600 stuck here (can't type anything):

Code:

Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 5.1 (GENERIC) #0: Sat Nov  6 17:52:27 UTC 2010
        builds@b6.netbsd.org:/home/builds/ab/netbsd-5-1-RELEASE/sandpoint/201011061943Z-obj/home/builds/ab/netbsd-5-1-RELEASE/src/sys/arch/sandpoint/compile/GENERIC
total memory = 32768 KB
avail memory = 27764 KB
OpenPIC Version 1.2: Supports 1 CPUs and 26 interrupt sources.

and it doesn't reply pinging his address

Last edited by SystemR89 (2011-06-22 19:58:39)


Free is BETTER!!
Use GNU/Linux!!

Offline

 

#34 2011-06-27 13:43:01

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Netbsd working on DSM G600

SystemR89 wrote:

Code:

NetBSD 5.1 (GENERIC) #0: Sat Nov  6 17:52:27 UTC 2010
        builds@b6.netbsd.org:/home/builds/ab/netbsd-5-1-RELEASE/sandpoint/201011061943Z-obj/home/builds/ab/netbsd-5-1-RELEASE/src/sys/arch/sandpoint

This installed kernel is probably not right. Use the latest sandpoint kernel. If am an not mistaking, while installing, there should be a prompt asking kernel location.


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#35 2012-01-30 14:41:33

obigiankenobi
Member
Registered: 2012-01-30
Posts: 9

Re: Netbsd working on DSM G600

Hello,
I have the same problem with the current release of netbsd.
I can't boot the current 5.1.1 kernel, and I have the same problem with previous versions.
I was able to successfully install only the HEAD version with kernel 5.99.60 (from nyftp.netbsd.org), but the 5.99.61 doesn't work!!!
Posted a help request on the netbds sandpoint mailing list. One of the maintainers (Frank) kindly answers  that the kernel is probably broken, and he will check asap.
Anyone have faced (and possibly solved) this problem, or was able to boot any official netBSD release on DSM-G600?
Thank you very much.

Offline

 

#36 2012-01-31 15:10:45

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Netbsd working on DSM G600

obigiankenobi wrote:

Anyone have faced (and possibly solved) this problem, or was able to boot any official netBSD release on DSM-G600?
Thank you very much.

Official release is too old and don't have necessary code to run on DSM-G600.
I recently installed 5.99.60 201201200410Z and its working okay smile


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#37 2012-02-01 02:55:39

psychesnet
New member
Registered: 2012-02-01
Posts: 2

Re: Netbsd working on DSM G600

Dear sala,

where can get 201201200410Z sand point version? Please tell me, thanks a lot.
I install the office release version, but DSM-G600 can not boot successful.
It is blocked at "OpenPIC Version 1.2: Supports 1 CPUs and 26 interrupt sources." and no any more info.

In the other hand, how to rollback to D-Link firmware?
Thanks a lot.

Offline

 

#38 2012-02-02 16:09:46

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Netbsd working on DSM G600

psychesnet wrote:

where can get 201201200410Z sand point version? Please tell me, thanks a lot.

Try to google. It's rotated already from where I did get it.
http://ftp.neti.ee/pub/NetBSD/NetBSD-daily/HEAD/

psychesnet wrote:

In the other hand, how to rollback to D-Link firmware?

http://dsmg600.info/howto:recover


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#39 2012-02-06 18:45:39

obigiankenobi
Member
Registered: 2012-01-30
Posts: 9

Re: Netbsd working on DSM G600

Sala is right: netbsd version 5.1 does not support the DSM-G600.
DMS-G600 will be supported from version 6.0.
Meanwhile, we can test the HEAD version, that is the beta version of NetBSD 6.0.
The last working HEAD version is the 5.99.64,
and here you can download the release that I've (succesfully) installed:

http://nyftp.netbsd.org/pub/NetBSD-dail … sandpoint/

Please report problems to the "netbsd - sandpoint port" mailing list.

Problems that I've found in this release:

Missing support for optical units via USB (as the maintainer of the porting says, build a custom kernel could help - Thanks Frank!);
very long time for WPA2-PSK synchronization.
is not possible to load the kernel module for NTFS (standard, not the "fuse" version).

Frank, the maintainer of the porting, is a very kindly person.

Please, if you can, test the various release and report problems...
I think that we can bring the old DSM to new life!!!

psychesnet wrote:

Dear sala,

where can get 201201200410Z sand point version? Please tell me, thanks a lot.
I install the office release version, but DSM-G600 can not boot successful.
It is blocked at "OpenPIC Version 1.2: Supports 1 CPUs and 26 interrupt sources." and no any more info.

In the other hand, how to rollback to D-Link firmware?
Thanks a lot.

Last edited by obigiankenobi (2012-02-06 18:51:14)

Offline

 

#40 2012-02-08 02:53:32

psychesnet
New member
Registered: 2012-02-01
Posts: 2

Re: Netbsd working on DSM G600

Dear obigiankenobi,

I try to use this 201202041150Z sandpoint, but I got following message.

U-Boot 0.2.0 (Mar 16 2006 - 10:12:43)

CPU:   MPC8245 V1.2 at 170.503 MHz:
Board: Sandpoint 8245
DRAM:  32 MB
FLASH: FUJI_DL323BE
In:    serial
Out:   serial
Err:   serial
Hit any key to stop autoboot:  0
## Booting image at fff10000 ...
   Image Name:   altboot
   Image Type:   PowerPC Linux Kernel Image (unknown compression)
   Data Size:    75172 Bytes = 73.4 kB
   Load Address: 01000000
   Entry Point:  01000000
Verifying Checksum ... OK
OK
## Loading RAMDisk Image at ffc20000 ...
   Image Name:   default
   Image Type:   PowerPC Linux RAMDisk Image (gzip compressed)
   Data Size:    3008602 Bytes =  2.9 MB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
   Loading Ramdisk to 01c50000, end 01f2e85a ... OK

>> NetBSD/sandpoint altboot, revision 1.8 (Thu Jan 19 16:55:39 UTC 2012)
>> D-Link DSM-G600, cpu 198 MHz, bus 99 MHz, 32MB SDRAM
channel 0 present
wd0: <WDC AC28400R> DMA LBA 8063 MB
wd0a: ffs       (63)
wd0b: swap      (16250031)
MAC address 00:17:9a:5c:6f:ce
100Mbps-FDX
Hit any key to enter interactive mode: 0
loading "netbsd" 3195868+148524 [201392+195451]=0x391b78
entry=0x90000, ssym=0x3c0808, esym=0x421b78
Copyright (c) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005,
    2006, 2007, 2008, 2009, 2010, 2011, 2012
    The NetBSD Foundation, Inc.  All rights reserved.
Copyright (c) 1982, 1986, 1989, 1991, 1993
    The Regents of the University of California.  All rights reserved.

NetBSD 5.99.64 (GENERIC) #0: Sat Feb  4 21:59:10 UTC 2012
        builds@b7.netbsd.org:/home/builds/ab/HEAD/sandpoint/201202041150Z-obj/home/builds/ab/HEAD/src/sys/arch/sandpoint/compile/GENERIC
Model: dlink
total memory = 32768 KB
avail memory = 27588 KB
OpenPIC Version 1.2: Supports 1 CPUs and 26 interrupt sources.
mainbus0 (root)
cpu0 at mainbus0: 8245 (Revision 0.4), ID 0 (primary)
cpu0: HID0 0x90c000<DOZE,DPM,ICE,DCE>, powersave: 1
cpu0: 198.00 MHz
eumb0 at mainbus0
com0 at eumb0 unit 0: ns16550a, working fifo
com0: console
com0: interrupting at irq 40
ociic0 at eumb0
iic0 at ociic0: I2C bus
strtc0 at iic0 addr 0x68: M41T8x Real-time Clock
satmgr0 at eumb0 unit 1: button manager (dlink)
satmgr0: interrupting at irq 41
cfi at mainbus0 not configured
pci0 at mainbus0 bus 0
pchb0 at pci0 dev 0 function 0
pchb0: vendor 0x1057 product 0x0006 (rev. 0x12)
ral0 at pci0 dev 13 function 0: vendor 0x1814 product 0x0201 (rev. 0x01)
ral0: interrupting at irq 16
ral0: 802.11 address 00:0f:a3:ac:90:00
ral0: MAC/BBP RT2560 (rev 0x04), RF RT2525
ral0: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
ral0: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
ohci0 at pci0 dev 14 function 0: vendor 0x1033 product 0x0035 (rev. 0x43)
ohci0: interrupting at irq 17
ohci0: OHCI version 1.0, legacy support
usb0 at ohci0: USB revision 1.0
ohci1 at pci0 dev 14 function 1: vendor 0x1033 product 0x0035 (rev. 0x43)
ohci1: interrupting at irq 17
ohci1: OHCI version 1.0, legacy support
usb1 at ohci1: USB revision 1.0
ehci0 at pci0 dev 14 function 2: vendor 0x1033 product 0x00e0 (rev. 0x04)
ehci0: interrupting at irq 18
ehci0: companion controllers, 3 ports each: ohci0 ohci1
usb2 at ehci0: USB revision 2.0
stge0 at pci0 dev 15 function 0: Sundance ST-1023 Gigabit Ethernet (rev. 0x41)
stge0: interrupting at irq 19
stge0: Ethernet address 00:17:9a:5c:6f:ce
ukphy0 at stge0 phy 24: OUI 0x0009c3, model 0x0008, rev. 0
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
acardide0 at pci0 dev 16 function 0: Acard ATP865 Ultra133 IDE Controller (rev. 0x10)
acardide0: using irq 20 for native-PCI interrupt
atabus0 at acardide0 channel 0
atabus1 at acardide0 channel 1
biomask 1f000000 netmask 1f000000 ttymask 1f000000
uhub0 at usb0: vendor 0x1033 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1 at usb1: vendor 0x1033 OHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2 at usb2: vendor 0x1033 EHCI root hub, class 9/0, rev 2.00/1.00, addr 1
wd0 at atabus0 drive 0
wd0: <WDC AC28400R>
wd0: 8063 MB, 16383 cyl, 16 head, 63 sec, 512 bytes/sect x 16514064 sectors
boot device: wd0
root on wd0a dumps on wd0b
root file system type: msdos

Then I always block here, no success boot my dsmg600.
I have try a lot of version. 201202060230Z and 201202051330Z are same.
Thanks a lot.

Offline

 

#41 2012-02-08 10:45:55

sala
Member / Site Admin
From: Estonia
Registered: 2006-07-28
Posts: 731
Website

Re: Netbsd working on DSM G600

psychesnet wrote:

wd0a: ffs       (63)
wd0b: swap      (16250031)

psychesnet wrote:

root on wd0a dumps on wd0b
root file system type: msdos

I guess there is a problem with partition layout. But altboot sees that everything is ok.


DSM-G600 - NetBSD hdd-boot - 80GB Samsung SP0802N
NSA-220 - Gentoo armv5tel 20110121 hdd-boot - 2x 2TB WD WD20EADS

Offline

 

#42 2012-02-08 17:57:36

obigiankenobi
Member
Registered: 2012-01-30
Posts: 9

Re: Netbsd working on DSM G600

@psychesnet
Hi,
please report your problem to    
port-sandpoint@netbsd.org.
Better you join this mailing list.
I think that Sala is right, also Frank Willie (the maintainer) have a similar issue with a boot disk with ext2 fs.

Last edited by obigiankenobi (2012-02-08 17:58:05)

Offline

 

#43 2012-02-10 11:08:51

phx
Member
Registered: 2011-04-08
Posts: 15

Re: Netbsd working on DSM G600

Initializing a NetBSD ffs filesystem with newfs(8) does not overwrite every single block in a partition. In the holes the kernel might detect signatures of a previous filesystem (e.g. an msdos boot sector in the frist block of the partition, or an ext2fs signature in the third block).

The ext2fs signature will be wiped out now, but an msdos boot sector could still be a problem. Although it is easy to solve if you follow the instructions on the sandpoint mailing list.

BTW, the maintainer of sandpoint is Toru Nishimura, not me. He has the last word. smile

Offline

 

#44 2012-02-11 09:01:18

boothowto
New member
Registered: 2012-02-11
Posts: 3

Re: Netbsd working on DSM G600

Hi,

phx added USB CD/DVD support in HEAD version.
The feature is now a part of GENERIC kernel.
The new set of distribution will become available as daily build runs.

Some of USB CD/DVD drives may still fail to work since they emulate ATAPI protocol.
In hurry, please add the following lines to GENERIC configuration file and try to rebuild a new kernel.

atapibus* at atapi?
cd*   at atapibus? drive ? flags 0x0000       # ATAPI CD-ROM drives

This fix is to be made in HEAD.

Note that sandpoint kernel does not have all features enabled, particular,
exotic filesystem support and/or popular USB devices available in market.
It'd be recommended to try the features/device drivers with your NAS units.
i386/amd64 GENERIC configurations provide the largest feature set.
Please consult them to see what's available.

All the NetBSD mailing list are recorded and browsable with;
http://mail-index.netbsd.org/

--

Offline

 

#45 2012-02-12 01:18:21

obigiankenobi
Member
Registered: 2012-01-30
Posts: 9

Re: Netbsd working on DSM G600

The config file is located under usr/src/sys/arch/sandpoint/conf.
I have also uncommented this line:

file-system     CD9660        # ISO 9660 + Rock Ridge file system

to enable iso9660 file system support.
I think this is necessary for mount cd/dvd filesys.

Works fine.

Bye

boothowto wrote:

Hi,

phx added USB CD/DVD support in HEAD version.
The feature is now a part of GENERIC kernel.
The new set of distribution will become available as daily build runs.

Some of USB CD/DVD drives may still fail to work since they emulate ATAPI protocol.
In hurry, please add the following lines to GENERIC configuration file and try to rebuild a new kernel.

atapibus* at atapi?
cd*   at atapibus? drive ? flags 0x0000       # ATAPI CD-ROM drives

This fix is to be made in HEAD.

Note that sandpoint kernel does not have all features enabled, particular,
exotic filesystem support and/or popular USB devices available in market.
It'd be recommended to try the features/device drivers with your NAS units.
i386/amd64 GENERIC configurations provide the largest feature set.
Please consult them to see what's available.

All the NetBSD mailing list are recorded and browsable with;
http://mail-index.netbsd.org/

--

Offline

 

#46 2012-02-13 20:44:51

obigiankenobi
Member
Registered: 2012-01-30
Posts: 9

Re: Netbsd working on DSM G600

Hello,
I'm experiencing a kernel panic on my DSM-G600 rev.B2 (netbsd kernel 5.99.64-GENERIC).
1) Enable ftp server via inetd in /etc/inetd.conf
2) Connect via ethernet the DSM-G600 to a PC (my linux machine).
3) Create a 1GB file using: dd if=/dev/zero of=1giga bs=1024 count=1000000 in the linux machine.
4) Connect to DSM-G600 via ftp and try to send him 1 giga using: put 1giga
Few seconds and...:

dsm-g600# trap: kernel read DSI trap @ 0xd1a6752e by 0x995d0 (DSISR 0x40000000, err=14), lr 0x99954
panic: trap
cpu0: Begin traceback...
0x00664a00: at panic+0x4c
0x00664a40: at trap+0x104
0x00664ad0: kernel DSI read trap @ 0xd1a6752e by m_xhalf+0x9c: srr1=0x9030
            r1=0x664ba0 cr=0x40002048 xer=0 ctr=0x9982c dsisr=0x40000000
saved LR(0xffffefef) is invalid.cpu0: End traceback...
dumpsys: TBD
*

U-Boot 0.2.0 (Mar 16 2006 - 10:12:43)
....
....
swapctl: setting dump device to /dev/wd0b
Starting virecover.
Checking for core dump...
savecore: no core dump <--------
Starting local daemons:.
Updating motd.
Starting inetd.
.....

I tried also ftp get to DSM-G600, same result (build of the 1giga file using dd on DSM-G600 works fine, so I think that is not a disk issue).
This happens every time.
Could someone try to reproduce and confirm this?
Thank you very much.

Last edited by obigiankenobi (2012-02-13 21:24:56)

Offline

 

#47 2012-02-13 22:14:16

obigiankenobi
Member
Registered: 2012-01-30
Posts: 9

Re: Netbsd working on DSM G600

boothowto wrote:

In hurry, please add the following lines to GENERIC configuration file and try to rebuild a new kernel.

atapibus* at atapi?
cd*   at atapibus? drive ? flags 0x0000       # ATAPI CD-ROM drives

This fix is to be made in HEAD.

Are you sure that this is for usb?
I added

cd*   at scsibus? target ? lun ?

and this works for me...

With atapibus my external unit is not recognised.

Offline

 

#48 2012-02-14 03:19:22

boothowto
New member
Registered: 2012-02-11
Posts: 3

Re: Netbsd working on DSM G600

obigiankenobi wrote:

atapibus* at atapi?
cd*   at atapibus? drive ? flags 0x0000       # ATAPI CD-ROM drives

Are you sure that this is for usb?
I added

cd*   at scsibus? target ? lun ?

and this works for me...

There are two different kind of USB CD/DVD drives where one emulates SCSI protocol and another does ATAPI protocol.
The lines above was found necessary for my unit;

umass0 at uhub2 port 2 configuration 1 interface 0
umass0: Logitec LDR USB Device, rev 2.00/1.13, addr 2
umass0: using ATAPI over Bulk-Only
atapibus0 at umass0: 2 targets
cd0 at atapibus0 drive 0: <TEAC, DV-W28S-V, L.0E> cdrom removable

With atapibus my external unit is not recognised.

Could you have me the kernel messages for the ok case and the failure case?
Three mods were made to HEAD source tree lately to support USB CD/DVD drives.

- CD9660 filesystem
- CD/DVD drive to emulate SCSI
- CD/DVD drive to emulate ATAPI

--

Offline

 

#49 2012-02-14 03:54:50

boothowto
New member
Registered: 2012-02-11
Posts: 3

Re: Netbsd working on DSM G600

Three mods were made to HEAD source tree lately to support USB CD/DVD drives.

- CD9660 filesystem
- CD/DVD drive to emulate SCSI
- CD/DVD drive to emulate ATAPI

Automatic daily build has been experiencing turbulence due to the last time changes to prepare NB6.0 release.
The up-to-minute source tree can be obtained via anoncvs access.  The tree can also be seen thru
  http://nxr.netbsd.org
Please check and see the looks of sys/arch/sandpoint/conf/GENERIC file typing the name in "File Path" field.

--

Offline

 

#50 2012-02-15 14:17:21

obigiankenobi
Member
Registered: 2012-01-30
Posts: 9

Re: Netbsd working on DSM G600

External optical units works fine for me, but I'm facing network problems... Could you answer to a question? When you plug the network cable in your DSM-G600, without any traffic, the LAN led rapidly blinks or is on (as the DSM-G600 Manual says)? I suspect a "brain damaged" ip1000a chip on my board....

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB