tweeking uptime

Place to discuss Debian Linux and Debian based distributions
X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

tweeking uptime

Post by X11 »

VoidMain, how do i go about tweeking my uptime in debian so it thinks its higher, i want to change a few things, and its for my "TestBox" so i dont really care if it kills the whole system.

So where do i start?

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

Just have to add a line or two to /usr/src/linux/kernel/sysctl.c to expose a certain variable under /proc/sys/kernel so it can be manipulated. I believe I posted my patch and instructions on MES, should be able to find it in a netcraft thread over there...

X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Post by X11 »

hehehe cool

I noticed you run transperancy on your terms in your screenshots void, you should use my Linus background (im going to make a better one) its good inspiration for kernel hacking.

X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Post by X11 »

voidmain there is a make rpm or somthing you can do kernels, would you make an rpm with 2.4.20 and this patch in it?

X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Post by X11 »

voidmain the mes just went down this miniute so im having trouble finding it

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

X11 wrote:voidmain there is a make rpm or somthing you can do kernels, would you make an rpm with 2.4.20 and this patch in it?
No way, I'm not going to make a 40MB RPM for a 2 line patch that you can apply with a single command (patch -p1 < myipp.patch) to a stock kernel.

X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Post by X11 »

yea, i see your point, where do i get it i could not find it.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »


X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Post by X11 »

i did the patch and used a make oldconfig and then make bzImage, worked, make modules however did this...

In file included from cipe.h:62,
from module.c:15:
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:469: invalid suffix on integer constant
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:469: parse error before numeric constant
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:469: `dev_get_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:469: warning: function declaration isn't a prototype
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:479: floating constant exponent has no digits
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:479: parse error before numeric constant
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:479: `register_netdevice_notifier_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:479: warning: function declaration isn't a prototype
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:480: `unregister_netdevice_notifier_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:480: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:481: invalid suffix on integer constant
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:481: parse error before numeric constant
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:481: `dev_new_index_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:481: warning: function declaration isn't a prototype
/usr/src/linux-2.4.18-14/include/linux/netdevice.h: In function `__netif_schedule':
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:525: `d01f3ee8' undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:525: called object is not a function
/usr/src/linux-2.4.18-14/include/linux/netdevice.h: In function `dev_kfree_skb_irq':
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:575: `d01f3ee8' undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:575: called object is not a function
/usr/src/linux-2.4.18-14/include/linux/netdevice.h: At top level:
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:591: `net_call_rx_atomic_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:591: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:596: invalid suffix on integer constant
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:596: parse error before numeric constant
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:596: `dev_ioctl_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:596: warning: function declaration isn't a prototype
/usr/src/linux-2.4.18-14/include/linux/netdevice.h: In function `netif_rx_ni':
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:611: `f0a529b7' undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:611: called object is not a function
In file included from /usr/src/linux-2.4.18-14/include/net/dst.h:12,
from /usr/src/linux-2.4.18-14/include/net/sock.h:107,
from cipe.h:69,
from module.c:15:
/usr/src/linux-2.4.18-14/include/net/neighbour.h: In function `neigh_confirm':
/usr/src/linux-2.4.18-14/include/net/neighbour.h:233: `jiffies_R0da02d67' undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/net/neighbour.h: In function `neigh_event_send':
/usr/src/linux-2.4.18-14/include/net/neighbour.h:248: `jiffies_R0da02d67' undeclared (first use in this function)
In file included from /usr/src/linux-2.4.18-14/include/net/sock.h:107,
from cipe.h:69,
from module.c:15:
/usr/src/linux-2.4.18-14/include/net/dst.h: In function `dst_set_expires':
/usr/src/linux-2.4.18-14/include/net/dst.h:149: `jiffies_R0da02d67' undeclared (first use in this function)
In file included from cipe.h:69,
from module.c:15:
/usr/src/linux-2.4.18-14/include/net/sock.h: In function `sk_filter_release':
/usr/src/linux-2.4.18-14/include/net/sock.h:934: warning: implicit declaration of function `kfree_R037a0cba'
/usr/src/linux-2.4.18-14/include/net/sock.h: In function `sock_orphan':
/usr/src/linux-2.4.18-14/include/net/sock.h:1009: `do_softirq_Rf0a529b7' undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/net/sock.h: In function `sock_graft':
/usr/src/linux-2.4.18-14/include/net/sock.h:1018: `do_softirq_Rf0a529b7' undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/net/sock.h: In function `sock_recv_timestamp':
/usr/src/linux-2.4.18-14/include/net/sock.h:1266: warning: implicit declaration
of function `put_cmsg_Rf39bf4d9'
module.c: In function `cipe_check_kernel':
module.c:73: warning: implicit declaration of function `printk_R1b7d4074'
/usr/src/linux-2.4.18-14/include/linux/skbuff.h: In function `kunmap_skb_frag':
/usr/src/linux-2.4.18-14/include/linux/skbuff.h:1108: warning: asm operand 1 probably doesn't match constraints
make[3]: *** [module.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.18-14/drivers/addon/cipe'
make[2]: *** [_modsubdir_cipe] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.18-14/drivers/addon'
make[1]: *** [_modsubdir_addon] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.18-14/drivers'
make: *** [_mod_drivers] Error 2

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

Why are you using 2.4.18-14? Although it should work with that kernel, I patched against 2.4.20 which is what I would suggest you use following my 2.4.20 kernel from source example in the Red Hat tips section. I have no idea why you are getting those errors though but I can tell you they have nothing to do with that little patch I created. I also assume you are doing this on your Red Hat box since that looks like the RH8 stock kernel version.

X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Post by X11 »

Well my hard disk got wiped because i put Windows on there for a lan party- and its off now.

X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Post by X11 »

And do you know what i should do it fix it, i seen stuff about the jiffies tweek in there.

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

You saw stuff about what in where? You didn't include the beginning of the errors as far as I can see. Let me ask you a question. How did you install the patch? Did you copy/paste the patch into a file and then change into your linux source directory and run the patch command on it (patch -p1 < /dir/patchfile)? And was it successful? If so I need to see where the errors start. I don't see anything related to the patch in the error message. Again, I suggest you get the 2.4.20 kernel source and install according to my kernel instructions.

X11
guru
guru
Posts: 676
Joined: Sun Jan 19, 2003 11:09 pm
Location: Australia
Contact:

Post by X11 »

the patch was sucsessful i think
i just downloaded the patch and saved it to my /johnz partition
then copyed it to /usr/src/linux-2.4
then i did the "patch p1 < file" stuff
then i did a "make oldconfig"
then "make bzImage"
then "make modules"
then this

In file included from cipe.h:62,
from module.c:15:
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:469: invalid suffix on integer constant
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:469: parse error before numeric constant
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:469: `dev_get_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:469: warning: function declaration isn't a prototype
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:479: floating constant exponent has no digits
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:479: parse error before numeric constant
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:479: `register_netdevice_notifier_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:479: warning: function declaration isn't a prototype
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:480: `unregister_netdevice_notifier_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:480: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:481: invalid suffix on integer constant
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:481: parse error before numeric constant
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:481: `dev_new_index_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:481: warning: function declaration isn't a prototype
/usr/src/linux-2.4.18-14/include/linux/netdevice.h: In function `__netif_schedule':
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:525: `d01f3ee8' undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:525: called object is not a function
/usr/src/linux-2.4.18-14/include/linux/netdevice.h: In function `dev_kfree_skb_irq':
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:575: `d01f3ee8' undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:575: called object is not a function
/usr/src/linux-2.4.18-14/include/linux/netdevice.h: At top level:
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:591: `net_call_rx_atomic_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:591: warning: parameter names (without types) in function declaration
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:596: invalid suffix on integer constant
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:596: parse error before numeric constant
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:596: `dev_ioctl_R_ver_str' declared as function returning a function
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:596: warning: function declaration isn't a prototype
/usr/src/linux-2.4.18-14/include/linux/netdevice.h: In function `netif_rx_ni':
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:611: `f0a529b7' undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/linux/netdevice.h:611: called object is not a function
In file included from /usr/src/linux-2.4.18-14/include/net/dst.h:12,
from /usr/src/linux-2.4.18-14/include/net/sock.h:107,
from cipe.h:69,
from module.c:15:
/usr/src/linux-2.4.18-14/include/net/neighbour.h: In function `neigh_confirm':
/usr/src/linux-2.4.18-14/include/net/neighbour.h:233: `jiffies_R0da02d67' undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/net/neighbour.h: In function `neigh_event_send':
/usr/src/linux-2.4.18-14/include/net/neighbour.h:248: `jiffies_R0da02d67' undeclared (first use in this function)
In file included from /usr/src/linux-2.4.18-14/include/net/sock.h:107,
from cipe.h:69,
from module.c:15:
/usr/src/linux-2.4.18-14/include/net/dst.h: In function `dst_set_expires':
/usr/src/linux-2.4.18-14/include/net/dst.h:149: `jiffies_R0da02d67' undeclared (first use in this function)
In file included from cipe.h:69,
from module.c:15:
/usr/src/linux-2.4.18-14/include/net/sock.h: In function `sk_filter_release':
/usr/src/linux-2.4.18-14/include/net/sock.h:934: warning: implicit declaration of function `kfree_R037a0cba'
/usr/src/linux-2.4.18-14/include/net/sock.h: In function `sock_orphan':
/usr/src/linux-2.4.18-14/include/net/sock.h:1009: `do_softirq_Rf0a529b7' undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/net/sock.h: In function `sock_graft':
/usr/src/linux-2.4.18-14/include/net/sock.h:1018: `do_softirq_Rf0a529b7' undeclared (first use in this function)
/usr/src/linux-2.4.18-14/include/net/sock.h: In function `sock_recv_timestamp':
/usr/src/linux-2.4.18-14/include/net/sock.h:1266: warning: implicit declaration
of function `put_cmsg_Rf39bf4d9'
module.c: In function `cipe_check_kernel':
module.c:73: warning: implicit declaration of function `printk_R1b7d4074'
/usr/src/linux-2.4.18-14/include/linux/skbuff.h: In function `kunmap_skb_frag':
/usr/src/linux-2.4.18-14/include/linux/skbuff.h:1108: warning: asm operand 1 probably doesn't match constraints
make[3]: *** [module.o] Error 1
make[3]: Leaving directory `/usr/src/linux-2.4.18-14/drivers/addon/cipe'
make[2]: *** [_modsubdir_cipe] Error 2
make[2]: Leaving directory `/usr/src/linux-2.4.18-14/drivers/addon'
make[1]: *** [_modsubdir_addon] Error 2
make[1]: Leaving directory `/usr/src/linux-2.4.18-14/drivers'
make: *** [_mod_drivers] Error 2

(could not get all of it)

User avatar
Void Main
Site Admin
Site Admin
Posts: 5716
Joined: Wed Jan 08, 2003 5:24 am
Location: Tuxville, USA
Contact:

Post by Void Main »

Please, I don't need to see a duplicate of the error messages that do me absolutely no good. Save the error messages to a file "make modules > /tmp/makemodules.log 2>&1" and stick them on your web site.

Post Reply