BTW: I just checked out a new version of ewrt, and version.h is created
when you start make in the directory ewrt-0.3/src. (Compilation of the
kernel is made first of all during config/depend it's created)

I'm sure you are in trouble if version.h doesn't exist in your ewrt
directory after running make. I wouldn't try that kernel on my router
at least.

Remember that you can't do 'make clean' from ewrt-0.3/src/ since it
will remove some object files (without source), such as ezc.o in
ewrt-0.3/src/router/shared/ or something like that. If you have a copy
of the deleted object-files, it's just to copy them back after
"make clean" though...

/Christian


On Fri, 2005-06-10 at 05:03 +0200, Christian Magnusson wrote:
> This is very strange... in my ewrt-0.3 build directory there
> is a file called version.h... NOT a link to 
> /opt/brcm/hndtools-mipsel-linux/.... directory.
> 
> -rw-r--r--  1 root root 126 Apr  8 00:39
> /opt/wrt54g/ewrt-0.3/src/linux/linux/include/linux/version.h
> 
> I think I just checked out the whole source from ewrt's cvs
> directory, so my question is where you found your version?
> 
> I'm a bit afraid that you might create a flash image without
> a proper linux-kernel now.
> 
> /Christian
> 
> 
> 
> On Thu, 2005-06-09 at 22:06, Paul Hilton wrote:
> > Thanks for the info,
> > I think I do have awk (gawk),
> > 
> > ~> awk -W version
> > GNU Awk 3.1.4
> > Copyright (C) 1989, 1991-2003 Free Software Foundation.
> > .......
> > .......
> > 
> > Maybe it isn't working as expected in this make tree for some reason.
> > 
> > I wrote another reply to my own message  saying what fix I did find
> > (a link to the version.h in the mipsel-linux tools tree)
> > 
> > This version.h contains
> > 
> > #define UTS_RELEASE "2.4.20"
> > #define LINUX_VERSION_CODE 132116
> > #define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))
> > 
> > which ties up with the info you suggested.
> > 
> > Paul Hilton
> > 
> > On Thu, 2005-06-09 at 21:41 +0200, Christian Magnusson wrote:
> > > Awk doesn't seem to be installed on your computer.
> > > 
> > > Change the beginning of fuse/kernel/Makefile and hardcode the kernel
> > > version number instead.
> > > -------------
> > > VERSION = 2
> > > PATCHLEVEL = 4
> > > SUBLEVEL = 20
> > > VERSION_CODE = 132116
> > > 
> > > #VERSION := $(shell.....
> > > #PATCHLEVEL := $(shell.....
> > > #SUBLEVEL := $(shell.....
> > > #VERSION_CODE := $(shell.....
> > > -----------------
> > > 
> > > This should work for you...
> > > 
> > > 
> > > Does anyone else have an idea how to extract the kernel-version to the
> > > Makefile just to make it work for both 2.4 and 2.6 kernels?
> > > 
> > > /Christian
> > > 
> > > 
> > > 
> > 
> > 
> > 
> > 
> > -------------------------------------------------------
> > This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you 
> > shotput
> > a projector? How fast can you ride your desk chair down the office luge 
> > track?
> > If you want to score the big prize, get to know the little guy.  
> > Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
> > _______________________________________________
> > Owfs-developers mailing list
> > Owfs-developers@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/owfs-developers
> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
> a projector? How fast can you ride your desk chair down the office luge track?
> If you want to score the big prize, get to know the little guy.  
> Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
> _______________________________________________
> Owfs-developers mailing list
> Owfs-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/owfs-developers
-- 
Christian Magnusson <[EMAIL PROTECTED]>



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.  How far can you shotput
a projector? How fast can you ride your desk chair down the office luge track?
If you want to score the big prize, get to know the little guy.  
Play to win an NEC 61" plasma display: http://www.necitguy.com/?r=20
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to