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

#101 2007-02-02 17:43:26

indy75
Member
Registered: 2007-01-14
Posts: 8

Re: New Firmware instead of Fun_Plug

Also great news : excepting my USB problems, my speed problems are totally corrected by Sala's firmware. Which means that D-Link firmware really sucks. Sorry I can't help (don't know development), but I'm eager to wait something complete : I'll keep my DSM-G600 instead of dumping it wink

Offline

 

#102 2007-02-02 17:49:13

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

Re: New Firmware instead of Fun_Plug

indy75 wrote:

I may be wrong, but it seems this firmware lacks support for USB external HDD ? At least, my USB EXT2-formatted HD is not recognized since I tried Sala's firmware.
Just to be sure...

Something is screwed with hotplug scripts. I remember that original D-Link firmware did have same problem sometimes.
You have to mount USB drives manualy using fun_plug or telnet.

And for the record it is not "my firmware" or "sala firmware". I prefer to call it custom firmware. This firmware is here because of dns323.kood.org/dsmg600 community and not just because of me.
As matter of fact beattie's contributions to this firmware is many times greater than mine or anybody else's.


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

Offline

 

#103 2007-02-02 17:56:58

qn1234
Member
Registered: 2006-08-18
Posts: 94

Re: New Firmware instead of Fun_Plug

sala wrote:

Sala_DSM-0.4 source, where did you get that one? You mean beattie?
You should post the error you get. Without this information I guess it is hard to help.

Oh, I got it from your download directory: people/sala/fw-build-script.tar.bz2 .  I renamed it to Sala_DSM-0.4.tar.bz2 since there is Beattie_DSM-0.4.tar.bz2.

Thanks,
Quang

Offline

 

#104 2007-02-02 18:04:43

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

Re: New Firmware instead of Fun_Plug

qn1234 wrote:

Oh, I got it from your download directory: people/sala/fw-build-script.tar.bz2 .  I renamed it to Sala_DSM-0.4.tar.bz2 since there is Beattie_DSM-0.4.tar.bz2.

It is pretty much the same. It was meant to implement busybox 1.0 final and downloading sources from original sites.


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

Offline

 

#105 2007-02-02 19:40:01

qn1234
Member
Registered: 2006-08-18
Posts: 94

Re: New Firmware instead of Fun_Plug

Did you have to do anything else besides extracting the archive and type make in order to build your fwimage?

--
Quang

Offline

 

#106 2007-02-02 20:06:01

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

Re: New Firmware instead of Fun_Plug

qn1234 wrote:

Did you have to do anything else besides extracting the archive and type make in order to build your fwimage?

--
Quang

There is wrong beginning in toolchain make file (wget line) and gdb still fails, so you need to remove mk file for gdb when you get the error.


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

Offline

 

#107 2007-02-02 23:37:17

qn1234
Member
Registered: 2006-08-18
Posts: 94

Re: New Firmware instead of Fun_Plug

Does it really need gdb?  If it does not depend on gdb I'd like to comment it out.

Offline

 

#108 2007-02-03 00:28:44

indy75
Member
Registered: 2007-01-14
Posts: 8

Re: New Firmware instead of Fun_Plug

My mistake : let's call it "custom firmware". And thanks to all who contribute !
About mounting USB drives by fun_plug, could anybody tell me what is the syntax ? I'll try it...
Unfortunately, I am not good enough in Unix to guess it by myself smile

Offline

 

#109 2007-02-06 15:44:58

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

Re: New Firmware instead of Fun_Plug

Couple of days ago I did upload modified build script to SVN. As current state it is not meant to build usable firmware images (because of upnp, images will be oversized).

http://dsmg600.googlecode.com/svn/trunk/
Use: svn checkout http://dsmg600.googlecode.com/svn/trunk/ dsmg600

Still todo:
*patches for hotplug scripts
*Kernel.mk make file to compile custom kernel
*Cramfs.mk make file to build custom image.cfs
*some kind of directory structure for build script
*clean up make files


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

Offline

 

#110 2007-02-06 16:11:33

StevieP
Member
Registered: 2006-08-19
Posts: 21

Re: New Firmware instead of Fun_Plug

Many thanks for providing the custom firmware. It's a huge improvement for me. The ability to use dtach is invaluable.

I got a bit excited when I saw the uboot stuff, but I'm assuming that there is still a blocking issue with the IDE and network controllers. However, would it be possible to do a boot-from-USB-only version, or am I being completely stupid?

Offline

 

#111 2007-02-07 05:57:18

beattie
Member / Developer
From: West Coast, USA
Registered: 2006-11-17
Posts: 92
Website

Re: New Firmware instead of Fun_Plug

StevieP wrote:

Many thanks for providing the custom firmware. It's a huge improvement for me. The ability to use dtach is invaluable.

I got a bit excited when I saw the uboot stuff, but I'm assuming that there is still a blocking issue with the IDE and network controllers. However, would it be possible to do a boot-from-USB-only version, or am I being completely stupid?

The problem with u-boot, is that there is no support for alternate boot sources compiled in, the existing flash partition is not big enough to add ANY additional functionality and in any case if you build a new u-boot and get it wrong, you will permanently brick your hardware.

Unless somebody can figure out how to enable the JTAG there is not going to be a new u-boot.

What exactly is it that you'd like to do by booting from USB that you can't do with the mechinisim I developed.

Offline

 

#112 2007-02-07 20:47:34

StevieP
Member
Registered: 2006-08-19
Posts: 21

Re: New Firmware instead of Fun_Plug

beattie wrote:

Unless somebody can figure out how to enable the JTAG there is not going to be a new u-boot.

Understood.

What exactly is it that you'd like to do by booting from USB that you can't do with the mechinisim I developed.

The ability to load an experimental kernel from the USB without having to fall back on the serial interface would have been nice. From what I've read on the subject so far I'm guessing you can't do that with pivot_root. However, I'm quite happy with what's been provided so far, and I'd rather contribute in some way, such as trying to work out what chkbutton's up to, than waste people's time. I've already had to look at USB core driver assembler to work out why a very basic driver I'd written was crashing, though it helped having the source code available.

Last edited by StevieP (2007-02-07 20:52:10)

Offline

 

#113 2007-02-08 04:41:30

beattie
Member / Developer
From: West Coast, USA
Registered: 2006-11-17
Posts: 92
Website

Re: New Firmware instead of Fun_Plug

StevieP wrote:

The ability to load an experimental kernel from the USB without having to fall back on the serial interface would have been nice. From what I've read on the subject so far I'm guessing you can't do that with pivot_root.

As thinks sit, no, but there is a kernel patch and set of tools called kexec/kexec-tools that will let you boot a new kernel from an existing kernel.  If you can get this working, you should be able to use my root diversion and run kexec instead of piviot_root.

I may give this a try, but not right away.

Last edited by beattie (2007-02-08 04:42:15)

Offline

 

#114 2007-02-08 10:36:13

BertrandB
Member
From: Dijon (France)
Registered: 2006-09-16
Posts: 119
Website

Re: New Firmware instead of Fun_Plug

beattie wrote:

As thinks sit, no, but there is a kernel patch and set of tools called kexec/kexec-tools that will let you boot a new kernel from an existing kernel.  If you can get this working, you should be able to use my root diversion and run kexec instead of piviot_root.

i'm looking for this patch (and for ppc) at this time i found only 2.6 patch. Will 2.6 kernel fit in flash ?
And why D-link stay o, 2.4.21 pre1 and not in pure 2.4.21 ?

Offline

 

#115 2007-02-09 04:06:12

beattie
Member / Developer
From: West Coast, USA
Registered: 2006-11-17
Posts: 92
Website

Re: New Firmware instead of Fun_Plug

BertrandB wrote:

beattie wrote:

As thinks sit, no, but there is a kernel patch and set of tools called kexec/kexec-tools that will let you boot a new kernel from an existing kernel.  If you can get this working, you should be able to use my root diversion and run kexec instead of piviot_root.

[i'm looking for this patch (and for ppc) at this time i found only 2.6 patch.

Here is one for an earlier 2.4 kernel version http://www.cwlinux.com/downloads/kexec/ … exec.patch I have not looked any further and I don't know if it is processor specific.

BertrandB wrote:

Will 2.6 kernel fit in flash ?
And why D-link stay o, 2.4.21 pre1 and not in pure 2.4.21 ?

I don't know if 2.6 will fit, but there are a number of specific patches for the DSM-G600, as to why D-Link has not moved to 2.6, there is no particular reason to do so, what they have works just fine.  If it ain't broke do fix it.

Offline

 

#116 2007-02-09 09:00:12

BertrandB
Member
From: Dijon (France)
Registered: 2006-09-16
Posts: 119
Website

Re: New Firmware instead of Fun_Plug

beattie wrote:

Here is one for an earlier 2.4 kernel version http://www.cwlinux.com/downloads/kexec/ … exec.patch I have not looked any further and I don't know if it is processor specific.

Only for Alpha and i386 architectures ....

Offline

 

#117 2007-02-09 17:29:42

beattie
Member / Developer
From: West Coast, USA
Registered: 2006-11-17
Posts: 92
Website

Re: New Firmware instead of Fun_Plug

BertrandB wrote:

beattie wrote:

Here is one for an earlier 2.4 kernel version http://www.cwlinux.com/downloads/kexec/ … exec.patch I have not looked any further and I don't know if it is processor specific.

Only for Alpha and i386 architectures ....

Oh well, maybe somebody can find or do a backport to 2.4.

Offline

 

#118 2007-02-09 21:40:53

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

Re: New Firmware instead of Fun_Plug

I've removed iocharset=cp850 and now all works fine!
thanks! smile

sala wrote:

SystemR89 wrote:

Hi!  Good work!    I've immediately upgraded my DSMG600, but now I've encountered a problem: I can't no more mount my internal FAT32 partition sad   

This is the error: 
# mount
%root% on / type unknown (rw)
proc on /proc type proc (rw)
/image.cfs on /sys/crfs type cramfs (rw,loop=/dev/loop1)
/dev/sda2 on /mnt/HD_a2 type ext2 (rw) 
# mount /dev/sda3  mount: wrong fs type, bad option, bad superblock on /dev/sda3, or too many mounted file systems

Obviously I've replaced the default fstab with my fstab (that I've alredy used with "old" firmwire)

Works fine in here without any extra mount option.

Code:

# mount
%root% on / type unknown (rw)
proc on /proc type proc (rw)
/image.cfs on /sys/crfs type cramfs (rw,loop=/dev/loop1)
/dev/sda2 on /mnt/HD_a2 type ext3 (rw)
/dev/sdb1 on /mnt/HD_a2/gentoo type vfat (rw)
# df -m |grep sdb1
/dev/sdb1                19084         4     19080   0% /mnt/HD_a2/gentoo
# cat /proc/filesystems
nodev   rootfs
nodev   bdev
nodev   proc
nodev   sockfs
nodev   tmpfs
nodev   pipefs
        ext3
        ext2
        cramfs
nodev   ramfs
        minix
        msdos
        vfat
        iso9660
nodev   nfs
        ntfs
        udf
nodev   autofs
#

But I can tell that mounting through hotplug/usbount will give error. usbmount uses mount parameters such iocharset=cp850 and I think that kernel does not like it. I might try to set FAT_DEFAULT_IOCHARSET to kernel config.

Code:

# mount -t vfat -o umask=0,iocharset=cp850,shortname=winnt /dev/sdb1 /mnt/HD_a2/gentoo/
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
       or too many mounted file systems
#

Now there is this possibility that we have one kernel source and D-Link has the other (more patched/modified). So our firmware and D-Link's original firmware can act little differently.
To meet GPL needs D-Link must release new tarballs with new firmwares they release but this is what D-Link does not do.

Also I would very much like to see D-Link releasing Ralink rt2500 drivers sources. I have e-mailed couple of times to support but they just ignore the main point of my emails, tell me to contact my local support or call them instead of emailing.

If I only could have more time, English skills and better knowledges about GPL I would troll over http://gpl-violations.org/ big_smile
I am sure that D-Link is known case to them.


Free is BETTER!!
Use GNU/Linux!!

Offline

 

#119 2007-02-09 22:08:47

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

Re: New Firmware instead of Fun_Plug

StevieP wrote:

Many thanks for providing the custom firmware. It's a huge improvement for me. The ability to use dtach is invaluable.

I got a bit excited when I saw the uboot stuff, but I'm assuming that there is still a blocking issue with the IDE and network controllers. However, would it be possible to do a boot-from-USB-only version, or am I being completely stupid?

How I can use dtach? I've tried, but with no success sad


Free is BETTER!!
Use GNU/Linux!!

Offline

 

#120 2007-02-10 01:07:15

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

Re: New Firmware instead of Fun_Plug

SystemR89 wrote:

How I can use dtach? I've tried, but with no success sad

At the end of putty.log I have a example of dtach in action.

Code:

# dtach -n /tmp/test vi
# dtach -a /tmp/test
//cutout
[EOF - dtach terminating]

Also look up man pages @ http://linuxcommand.org/man_pages/dtach1.html


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

Offline

 

#121 2007-02-10 20:46:42

mikkel_robin
Member
Registered: 2006-12-28
Posts: 9

Re: New Firmware instead of Fun_Plug

Hi all, i just got my DSN-G600 and would like to know, how close are you guys on releasing a firmware that can be used without the serial connection?

Offline

 

#122 2007-02-10 20:59:06

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

Re: New Firmware instead of Fun_Plug

mikkel_robin wrote:

Hi all, i just got my DSN-G600 and would like to know, how close are you guys on releasing a firmware that can be used without the serial connection?

Current firmware do not need serial console at all, but there is always this thing, if firmware update process fails or something else goes wrong, then you should have serial port in place, which you can use to recover your DSM-G600.

But before you go updating firmware, you should think why you want to do that, because most thing (except domain sockets) is still doable thru fun_plug wink


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

Offline

 

#123 2007-02-11 17:28:33

mikkel_robin
Member
Registered: 2006-12-28
Posts: 9

Re: New Firmware instead of Fun_Plug

Is there any witi on howto upgrade?

Offline

 

#124 2007-02-12 04:33:15

beattie
Member / Developer
From: West Coast, USA
Registered: 2006-11-17
Posts: 92
Website

Re: New Firmware instead of Fun_Plug

I'm planning on a 0.5 release, the main change I have is to build the kernel from source, so I can add a printk to the serial port driver to see the events (button presses etc.) comming from the mcu.  I'd like to collect up any changes that others have done or would like where they fit in with the scheme of things.

Offline

 

#125 2007-02-12 05:46:13

jens
Member
From: Dallas, TX
Registered: 2007-02-12
Posts: 27

Re: New Firmware instead of Fun_Plug

After playing with WRT54G projects like DD-WRT, where there were several "flavors" of a firmware, i.e., lite, standard, vpn, voip, etc - I can see that the DSM-G600 has lots of features, but is really limited by cpu and most of all memory.

Bright idea: why not come up with 2 or 3 different "flavors" of custom firmware, or a modular firmware design that you can change the operational role in the menu (i.e., select which "role" you want the firmware load on next reboot)
The modular firmware design would be such that a basic bootloader firmware will load a customized firmware from the harddisk)


some ideas for special function firmware - the functional role of the box can be changed by a menu setting to optimize it for a certain role:
1. balanced - all purpose, does most things = wifi, ftp, etc
2. performance (speed) optimized - dedicated to serving files and almost nothing else.. try to get maximum throughput of gigabit connection (although wirespeed will probably be impossible) - unnecessary services disabled like upnp, wifi, etc
3. feature (services) optimized - has many extra features at the expense of overall network performance, i.e. usb printing/cups, wifi, ftp, upnp, firefly, etc

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB