PREV UP next The Ftape Installation Guide - 1.2.13


5.3.2.2: Changing 1.2.13 by hand

You have already changed to the directory `/usr/src/linux/' which contains the kernel sources. You only need to do the following:

  1. Replace the file `./include/asm-i386/io.h' with the one that comes with ftape-3.04d:

    mv ./include/asm-i386/io.h ./include/asm-i386/io.h.old
    cp /usr/src/ftape-3.04d/patches/1.2.13/io.h ./include/asm-i386/
    

  2. Create the file `./include/linux/wrapper.h':

    cp /usr/src/ftape-3.04d/patches/1.2.13/wrapper.h ./include/linux/
    

  3. Edit the file `./kernel/ksyms.c' using you favorite text editor. You need to add some function and variable declarations and add some kernel symbols to the export list.

    You need to add the following declarations:

    extern unsigned long __get_dma_pages(int priority, unsigned long order); extern mem_map_t *mem_map; extern int remap_page_range(unsigned long from, unsigned long to, unsigned long size, pgprot_t prot);

    Place those lines somewhere at the beginning of the file, where you find other lines starting with extern.

    The symbols to add to the export list are:

            X(__get_dma_pages),
            X(remap_page_range),
            X(mem_map),
            X(intr_count),
    

    Please insert the above lines right after the line containing the text X(register_symtab),.

    You may also want to examine the patch files

    /usr/src/ftape-3.04d/patches/1.2.13/linux-1.2.13.dif
    /usr/src/ftape-3.04d/patches/1.2.13/linux-1.2.13.dif.2
    

    to get an idea how the changed `./kernel/ksyms.c' should look like.

    Please don't forget the `,' and `;' characters at the end of the lines as indicated in the instructions above.


Use these buttons to jump to the top menu

TOP (parent node)

TOP (previous node) TOP (this node) TOP (next node)