[LiSA-Users] How to install and use the LISA ?

Radu Rendec radu.rendec at ines.ro
Fri Aug 15 11:44:47 EEST 2008


Hi,

The problem seems to be a mismatch between the kernel-space and the
userspace value of the AF_SWITCH constant. Because LiSA is not merged in
the mainstream kernel, we have to change the AF_SWITCH value each time
we make a port to a new kernel version (that has defined a new address
family type) to avoid value clashes with mainstream kernel address
family numbers.

First of all, check the kernel AF_SWITCH value
in /usr/src/linux/include/linux/socket.h - for 2.6.21 it should be 33.
Then check the userspace AF_SWITCH value
in /usr/src/lisa/userspace/include/switch_socket.h. It should be the
same; if not, change it to match the kernel value, make clean and
recompile the userspace part of LiSA.

If the value already is the same, then the only logical reasons I can
think of are: either you mistakenly rebooted your machine with other
kenrel image than the one you compiled with LiSA, or there is a bug in
the LiSA kernel module (it was never tested as built-in, we always
compiled it as a module) - in this case you can try compiling it as a
module and insert it into the kernel with modprobe. After the module is
loaded, you should see something like "kernel: NET: Registered protocol
family 33" in /var/log/messages.

Anyway, if your system is fedora 8 and your arch happens to be i686,
then the easiest way to get LiSA running on your machine is by
downloading and installing the precompiled binaries from the LiSA site
(unless of course you plan hacking on either the kernel or the userspace
part of LiSA). I have recently updated the download section of the site
(did that yesterday) and now you can find fresh fedora 8 packages. The
kernel package is a standard fedora kenrel .src.rpm, rebuilt with the
LiSA patch applied.

Please keep me updated if you succeed installing LiSA and getting it to
run.

Regards,

Radu Rendec

On Fri, 2008-08-15 at 15:48 +0800, zhang.haibo wrote:
> Radu Rendec 
>      Think you very much for you reply.Your answer is very detailed.
> But there is still something wrong happen.when I use the "swcli",the 
> system reply me:"socket:address family not supported by protocol".
>  
> I follow the  step to install the LISA,
> 1. cd /usr/src/linux
> 2. patch file ../LISA/liunx-2.6-lisa.patch     
> 3. make clean                                        
> 4. make mrproper                                  
> 5. make menuconfig
>      choose :->networking support
>                    ->networking option
>                       ->linux multilayer switch
>     (type "Y" ,not type "M" as module)
> 6.make bzImage
> 7.make modules_install
> 8.make install
>  
> every step above  run successful.
> then reboot the system
>  
> 1. cd /usr/src/lisa/userspace/
> 2. make
> 3. make install
>  
> then reboot.
> when use the cammand "/usr/src/lisa/usespace/cli/swcli"
> the problem appear.
>  
> my linux system is fedora 8,the kernel is 2.6.21
> lisa is:lisa-2008.02.19-2.6.21-1.fc8.src.rpm
>  
> best regards,
> Haibo zhang

> 



More information about the LiSA-Users mailing list