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-10-29 02:47:24

puterboy
Member
Registered: 2008-09-18
Posts: 306

Patches for kernel reloading

-Fonz,
Wondering whether you would consider accepting the following patches.
The basis for the first one was in fact suggested by you.

--- reload.sh.jorig     2008-10-28 19:45:12.000000000 -0400
+++ reload.sh.jnew      2008-10-28 19:47:31.000000000 -0400
@@ -16,7 +16,11 @@

kernel=$(readlink -f zImage)
initrd=
+if echo $kernel | grep -q '2.6.12'; then
+    machtype=526
+else
      machtype=1542
+fi
cmdline="console=ttyS0,115200"

ip_autoconf=


This second patch consists of two parts.
The first part is not critical but I think it better reflects the layout of the temp filesystem.
The second part I found to be necessary to get kernel reloading to work -- don't ask me why... perhaps it is covering up for another bug somewhere.

--- rc.sysinit.jorig    2008-08-17 07:10:56 -0500
+++ rc.sysinit.jnew     2008-10-28 19:06:42 -0500
@@ -14,11 +14,11 @@
mount -t sysfs sysfs /sys

# /dev
-mount -t tmpfs tmpfs /dev
+mkdir -p /dev/pts /dev/shm
+mount -t tmpfs tmpfs /dev/shm
mknod -m 0600 /dev/console     c 5 1
mknod -m 0666 /dev/null                c 1 3
mknod -m 0666 /dev/zero                c 1 5
-mkdir -p /dev/pts /dev/shm
ln -s /proc/kcore      /dev/core
ln -s /proc/self/fd    /dev/fd
ln -s /proc/self/fd/0  /dev/stdin
@@ -45,5 +45,5 @@
fi

# run start scripts
-. /ffp/etc/rc
+. /ffp/etc/rc > /dev/null

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB