cipe-mips.txt
0b9c65d33ca463aeae63b6010046086cThis message contains instructions how to get CIPE working on the MIPS
platform which has no module support and therefore requires it to be
put into the kernel.
From: Harris Vaegan-Lloyd <harris@unixpac.com.au>
Organization: Unixpac Pty Ltd
To: Olaf Titz <olaf@bigred.inka.de>
Subject: Re: status of cipe?
[...]
First I made the directory /usr/src/linux/net/cip3i/
and put the files..
Makefile crc32.c device.c encaps.o idea0.o output.o
cip3i.o crc32.o device.o idea0.c output sock.c
cipe.h crypto.h encaps.c idea0.h output.c
In there..
The Makefile contains ...
### No user-serviceable parts below here
O_OBJS := device.o sock.o output.o encaps.o crc32.o idea0.o
O_TARGET := cip3i.o
tar:
tar -cvf /dev/f1 .
....
At the top of net/Makefile (line 35) I added ..
ifeq ($CONFIG_CIPE),y)
SUB_DIRS += cip3i
endif
line 1156 of net/ipv4/af_inet.c I added ..
/*
* Initialise the cipe driver.
*/
#ifdef CONFIG_CIPE
cipe_init();
#endif
int cipe_init(void)
{
int i;
cipe_maxdev=8;
#ifdef 1
printk(KERN_INFO
DEVNAME ": CIPE driver vers %s (c) Olaf Titz 1996-1998, %d
channels,
debug=%d\n",
driver_version, cipe_maxdev, cipe_debug);
#else
printk(KERN_INFO
DEVNAME ": CIPE driver vers %s (c) Olaf Titz 1996-1998, %d
channels\n",
driver_version, cipe_maxdev);
#endif
prnseed=~jiffies;
cipe_ctrls = (struct cipe_ctrl **)
kmalloc(sizeof(void*)*cipe_maxdev,
GFP_KERNEL);
if (!cipe_ctrls) {
printk(KERN_ERR
DEVNAME ": failed to allocate master control
structure\n");
return -ENOMEM;
}
memset(cipe_ctrls, 0, sizeof(void*)*cipe_maxdev);
for (i=0; i<cipe_maxdev; ++i)
if (cipe_alloc(i)<0)
return -ENOMEM;
return 0;
}
(cipe_init was adapted from cipe_module_init I think..)
I specified the cipe_debug and cipe_maxdev values my hand in there. It
minimal debugging and 8 devices.
There should be some stuff in the net/cip3i/config.in as well if you're
using make config or make menuconfig.. But the MIPS port doesn't have
such niceties ;). so I just added CONFIG_CIPE=y to the .config file. (Or
the arch/mips/defconfig).
Some include had to be changed as well (Just the usual ones for glibc)
then all was fine. In fact it worked the first time I tried it without
any spelling mistakes in it..
[...]
Comments
No comments yet, be the first!