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

#76 2009-10-29 19:19:26

darion
Member
Registered: 2009-10-26
Posts: 16

Re: native Lenny for DNS-313 is ready.

Ok. I was using Ubuntu 9.04 LiveUSB on my laptop, I made new partitions

Code:

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1         127     1020096   83  Linux 
/dev/sdc2             128       29751   237954780   83  Linux 
/dev/sdc3           29752       30401     5221125   83  Linux

I untared root fs from DNS-313_lenny_24092008.tgz to /dev/sdc
I changed /etc/network/intefaces

Code:

iface egiga0 inet static
    address 192.168.0.200
    netmask 255.255.255.0
    network 192.168.0.0
    broadcast 192.168.0.255
    gateway 192.168.0.1

all configuration is suitable for my network.
And I still got a green led in few seconds after power (it means that hard drive is not formatted correctly)

Offline

 

#77 2009-10-29 20:56:23

Trueman
Member
Registered: 2009-10-10
Posts: 23

Re: native Lenny for DNS-313 is ready.

@darian, first of all, i suggest to download shibby's debian http://update.groov.pl/debian_v2.tar.gz
Then repeat all steps written in rtf manual (link at the first post of this thread).
From yours first post, i see, that you untar debian to linux swap partition, so as mount it instead of boot one.
In your second post (fdisk -l out) i see, that there is no partition chosen for boot.

p.s. See mine output of fdisk -l(boot partition marked with asterix):
{
root@DNS-313:~# fdisk -l /dev/sda

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xad89e61e

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1         132     1060258+  82  Linux swap / Solaris
/dev/sda2           23125       60801   302640501    7  HPFS/NTFS
/dev/sda3   *         133         753     4988182+  83  Linux
/dev/sda4             754       23124   179695057+  83  Linux

Partition table entries are not in disk order
}

p.p.s. shibby's debian has static ip configured by default in interfaces file.

Offline

 

#78 2009-10-30 01:05:51

darion
Member
Registered: 2009-10-26
Posts: 16

Re: native Lenny for DNS-313 is ready.

Code:

# fdisk -l /dev/sdh

Disk /dev/sdh: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xff9eff9e

   Device Boot      Start         End      Blocks   Id  System
/dev/sdh1               1         132     1060258+  82  Linux swap / Solaris
/dev/sdh2            1501       30401   232147282+   7  HPFS/NTFS
/dev/sdh3   *         133         753     4988182+  83  Linux
/dev/sdh4             754        1500     6000277+  83  Linux

Partition table entries are not in disk order

mkswap /dev/sdh1
mkfs.ext3 /dev/sdh2
mkfs .ext2 -I 128 /dev/sdh3
mkfs.ext2 -I 128 /dev/sdh4

tar -xzf debian_v2.tar.gz -C /mnt/exh3
changed /etc/network/intefaces
and still nothing it doesn't even write any log. Just green led (after few seconds). But thanks anyway.

Last edited by darion (2009-10-30 01:07:26)

Offline

 

#79 2009-10-30 01:12:05

darion
Member
Registered: 2009-10-26
Posts: 16

Re: native Lenny for DNS-313 is ready.

can you make some files
dd if=/dev/sda of=mbr.sda bs=512 count=1  // It's an MBR part.

dd if=/dev/sda of=boot.sda bs=512 skip=1 count=12512  //boot section

sfdisk -d /dev/sda | sed s/sda/ > part.sda  // partitioning table

Offline

 

#80 2009-10-30 10:04:26

pepe77
Member
Registered: 2009-08-28
Posts: 10

Re: native Lenny for DNS-313 is ready.

You've got mail!

Offline

 

#81 2009-10-31 20:15:17

Trueman
Member
Registered: 2009-10-10
Posts: 23

Re: native Lenny for DNS-313 is ready.

Here is my problem:
- DNS-313 with Debian Lenny 5.0.2 in LAN (100Mbit) {LAN controlled by D-Link DIR-320 router with upgraded firmware to ASUS WL500Gp}
- on NAS configured SMB and NFS (via UNFS3 server) shares
- reading speed over smb and nfs is about 2-2.5 Mbytes/sec
- i use NAS as external storage of media for eGreat M34A player (to play FullHD videos)
- read speed is too small for 8GB (or higher) video files
My question is "how to re-configure NFS (may be another user space server) or may be SMB to improve reading speed to at least 4-5 MBytes/sec"

p.s. nfs-user-server also was tried for NFS share up, but it support only nfs2 version with file size limit up to 2GB.
By the way, what is yours reading speed over LAN via SMB, NFS???

Offline

 

#82 2009-11-01 13:24:12

Trueman
Member
Registered: 2009-10-10
Posts: 23

Re: native Lenny for DNS-313 is ready.

Mine read-speed problem becomes slightly clear:
- hdd in NAS partitioned into 4 partitions (ext2 with debian, swap, ext2 for torrent download/upload, ntfs with old data)
- ext2 and ntfs partitions mounted into system to /data folder
/data exported as NFS share:
- read speed from mounted ext2 - 2.5 MB/s
- read speed from ext2 with debian (root) - 5MB/s
- read speed from mounted ntfs - 4 MB/s

So, speed from mounted ext2 file system is about twice slower then reading from root ext2 fs or mounted ntfs.
Tried different mount option but no success to read speed improvement.
I am confused.
Any idea?

Offline

 

#83 2009-11-04 12:20:00

Trueman
Member
Registered: 2009-10-10
Posts: 23

Re: native Lenny for DNS-313 is ready.

Something strange happens yesterday: i reboot nas and debian did not start - just blue light after about half a minute of hdd activity. No any log for such startup created. Strange. I reformat and untar shibbys debian (but not to the third partition) and got the same situation as darian has sad
Under investigation now. Seems, there is some limitation of bootloader that in mbr i think. I am going to resolve these and prepare manual how to fix it together with release updated shibby,s debian to 5.0.3 with nfs3 support (for now unfortunately without ext3 support).
Any help with bootloader configuration/manuall creation etc will be good wink
p.s. What about mine post above about 2.5mb speed - problem was in hdd partition (same speed was via usb) - investigating it too - first impression that partition was phisically placed on different parts of hdd.

Offline

 

#84 2009-11-04 22:35:22

darion
Member
Registered: 2009-10-26
Posts: 16

Re: native Lenny for DNS-313 is ready.

And I still cant make it work, I tried to install lenny, etch, shibbys debian etc...
I even wrote a script.

Code:

#!/bin/sh
## Set this 3 parameters
LENNY=/home/darion/Desktop/debian_v2.tar.gz
DISK=sdh
MOUNT_POINT=/mnt/exh3

echo -e "d\n1\nd\n2\nd\n3\nd\nn\np\n1\n\n+1G\nn\np\n3\n\n+5G\nn\np\n2\n\n\na\n3\nt\n1\n82\nw\n" | fdisk /dev/${DISK}
umount /dev/${DISK}2
umount /dev/${DISK}3
mkswap /dev/${DISK}1
mkfs.ext3 /dev/${DISK}2
mkfs.ext2 -I 128 /dev/${DISK}3
if [ ! -d $MOUNT_POINT ]; then
  mkdir $MOUNT_POINT;
fi
mount -t ext2 /dev/${DISK}3 $MOUNT_POINT
tar -xzf $LENNY -C $MOUNT_POINT
umount /dev/${DISK}3

Just edit 3 lines in the begining and save it. Then "sh filename.sh" and wait. It follows all the instructions, but my NAS doesn't want to work.

P.S. Can someone test the script?

Last edited by darion (2009-11-04 22:37:07)

Offline

 

#85 2009-11-04 22:47:59

darion
Member
Registered: 2009-10-26
Posts: 16

Re: native Lenny for DNS-313 is ready.

I had 2.00 firmware before, is it ok for install debian?

Offline

 

#86 2009-11-05 08:31:40

Trueman
Member
Registered: 2009-10-10
Posts: 23

Re: native Lenny for DNS-313 is ready.

darion wrote:

I had 2.00 firmware before, is it ok for install debian?

Looks, it is the answer.
You have dns-313 revision Bx.
But this debian supports dns-313 revision Ax.
Seems, Ax ans Bx revision have different hardware, so it may not work sad

Offline

 

#87 2009-11-05 09:57:44

epodrez
Member
Registered: 2009-10-02
Posts: 7

Re: native Lenny for DNS-313 is ready.

My local D-Link support answer about possibility  update DNS 313 Ax with Firmware 2x:

"Firmware 2x will be only for hardware devices Bx, 1.x firmware will be only for Hardware Ax ."

Offline

 

#88 2009-11-05 10:23:03

epodrez
Member
Registered: 2009-10-02
Posts: 7

Re: native Lenny for DNS-313 is ready.

Latest original  firmware for DNS-313:

DNS-313_1.04b02v2           [url]http://www.station-drivers.com/telechargement/dlink/dns-313/DNS-313_1.04b02v2(www.station-drivers.com)[/url]
DNS-313_1.04b04               [url]http://www.station-drivers.com/telechargement/dlink/dns-313/DNS-313_1.04b04(www.station-drivers.com).rar[/url]
dns-313_2.00b11v3_rev_b http://www.station-drivers.com/telechar … _rev_b.zip

shibby used kernel from original dlink firmware 1.03.

Last edited by epodrez (2009-11-05 10:27:39)

Offline

 

#89 2009-11-05 11:29:42

Trueman
Member
Registered: 2009-10-10
Posts: 23

Re: native Lenny for DNS-313 is ready.

@darian,  needs to try replace kernel in shibby,s debian with the one comes with original 2.0 firmware. Somewhere on this forum i read charminbaer,s post about how to do it (as i remember just to replace file).

Offline

 

#90 2009-11-05 11:37:41

Trueman
Member
Registered: 2009-10-10
Posts: 23

Re: native Lenny for DNS-313 is ready.

And by the way, what is the hardware difference between Ax and Bx?

Offline

 

#91 2009-11-05 12:01:49

epodrez
Member
Registered: 2009-10-02
Posts: 7

Re: native Lenny for DNS-313 is ready.

I have tried to update Firmware 2x for my DNS-313 (with  Hardware Ax ),but without luck.
Probably it can work for  Hardware  Bx, but not sure.

Last edited by epodrez (2009-11-05 12:26:48)

Offline

 

#92 2009-11-05 12:59:03

darion
Member
Registered: 2009-10-26
Posts: 16

Re: native Lenny for DNS-313 is ready.

So, what I've got D-link DNS-313 Bx revision ...
I tried to untar shibby's debian and returned ".boot" directory from the original disk... and I can see only blue led (even after 30 seconds). Does anybody has a link to post "how to make your own debian on arm" or some?

PS. And what about script, does it work?

Offline

 

#93 2009-11-05 14:52:51

Trueman
Member
Registered: 2009-10-10
Posts: 23

Re: native Lenny for DNS-313 is ready.

@darian: unfortunately i have bring back all my data to nas and cannot to reformat it again to test your script sad but visually i see next: shibby,s lenny doe not support ext3 (kernel from dlink firmware) so you should to use ext2 or try replace kernel with charminbaer,s one (note that speed via network will be slower, as written on forum).

Offline

 

#94 2009-11-05 14:57:03

darion
Member
Registered: 2009-10-26
Posts: 16

Re: native Lenny for DNS-313 is ready.

@Trueman I cant make it boot whith any kernel except firmware one, but firmware .boot + any other files doesn't boot

Offline

 

#95 2009-11-05 22:34:21

Trueman
Member
Registered: 2009-10-10
Posts: 23

Re: native Lenny for DNS-313 is ready.

@shibby, kernel from what d-link firmware you have used? According this doc:
ftp://ftp.dlink.ru/pub/NAS/DNS-313/Firm … _v1.03.doc
exist at least 4 1.0.3 firmware smile

Offline

 

#96 2009-11-07 23:07:41

usky
Member
Registered: 2009-11-07
Posts: 10

Re: native Lenny for DNS-313 is ready.

Hello,

I just install the lenny OS. I face some problem with transmission daemon. I did not change the setting file.
Did you succeed to see it through the network with your web browser ?

Offline

 

#97 2009-11-08 11:32:03

epodrez
Member
Registered: 2009-10-02
Posts: 7

Re: native Lenny for DNS-313 is ready.

I have no problem with transmission.
I have manage my DNS trough ssh and Midnight commander or FAR with WinSCP to edit some configuration files.
But I have update transmission to version 1.75 according to http://trac.transmissionbt.com/wiki/Building

Offline

 

#98 2009-11-08 11:59:24

Trueman
Member
Registered: 2009-10-10
Posts: 23

Re: native Lenny for DNS-313 is ready.

@usky, be sure you enter correct url to access (for me it http://192.168.1.2:9091/transmission/web/)

Offline

 

#99 2009-11-12 17:17:33

darion
Member
Registered: 2009-10-26
Posts: 16

Re: native Lenny for DNS-313 is ready.

does anybody have any advices about how to create debian for NAS ?

Offline

 

#100 2009-12-12 19:29:38

andry
Member
Registered: 2009-12-12
Posts: 20

Re: native Lenny for DNS-313 is ready.

for use this debian from DNS-313 rev.B your are need change header files from /.boot direcrory.

Code:

dd if=zImage of=zImage_noh bs=8 skip=13
dd if=rd.gz of=rd_noh.gz bs=8 skip=13
dd if=rootfs.tgz of=rootfs_noh.tgz bs=8 skip=13

~/image_tools/mkimage -f ~/image_tools/kernel_new.cfg -d zImage_noh zImage
~/image_tools/mkimage -f ~/image_tools/kernel_new.cfg -d rd_noh.gz rd.gz
~/image_tools/mkimage -f ~/image_tools/kernel_new.cfg -d rootfs_noh.tgz rootfs.tgz

my kernel_new.cfg:

Code:

# Magic number for the ImageHeader, use this to seach start of the Image Header
#
MAGIC_NUMBER 0x27051956
#operation system type
OS_TYPE  linux
#cpu architecture type
CPU_ARCH  arm
#image type
IMAGE_TYPE  kernel
#compress type
COMPRESS_TYPE   gzip
#
DATALOAD_ADDRESS   0x00008000
#
ENTRY_ADDRESS   0x00008000
#image name string
IMAGE_NAME   kernel.img
#model name string
MODEL_NAME   dns-313v3
# version string
VERSION  2.00b11
# mac address string
MAC_ADDRESS          00-80-c8-16-81-68
#the beginning offset of writing header
START_OFFSET         0x00
#the end offset of writing header
END_OFFSET           0xFF
#whether overwrite
OVERWRITE            n

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB