[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Compiling Kernel for Bootsplash: The Whole Seven Metres.



On 9/14/05, Pooly <pooly7@gmail.com> wrote:
2005/9/6, mess-mate <messmate@free.fr>:

> | Basically, the steps are:
> |
> | 1. Download the kernel source
> |
> | 2. Extract it to /usr/src, or wherever you'd prefer
> |
> | 3. Download the bootsplash patch from http://www.bootsplash.de/files/
> |
> | 4. 'cd' into the extracted kernel source directory and run 'patch -p1
> |    /path/to/bootsplash.diff'
> |
> | 5. Run 'make menuconfig', customize as needed, and be sure to set
> |    CONFIG_BOOTSPLASH=y
> |
> | 6. Run 'make-kpkg kernel_image'.  See /usr/share/doc/kernel-packages for
> |    lots more info.
> |
> | 7. Use 'dpkg -i' to install the newly build kernel package
> |
> | > Next, I need use kernel-package. How do I do this? What of menuconfig or some
> | > such thing? Must I 'do' this as well?
> | >
> | > There is also the matter of Patching. When and how do I do this so that I will
> | > have Bootsplash? There is an entry for Sources.list, so I can acquire that
> | > which I need from the Bootsplash web-site. But, what do I need? How do I
> | > implement this?
> |
> | Add to the /etc/apt/sources.list:
> |
> |   deb http://debian.bootsplash.de unstable main
> |
> | And then install:
> |
> | bootsplash
> | bootsplash-theme-whatever
> |
> | And probably sysv-rc-bootsplash if you want a working progress bar.
> | It looks like they also have some packages for apply the kernel patch,
> | but I've never bothered with those.
> |
> | I think that's about it...
> |
> | --
> Thanks for the tut..
> But after downloading a vanilla linux-2.6.12.6 kernel,
> the  patch -p1 --verbose bootsplash-3.1.6-2.6.12.diff
> don't work. (nothing happen)
> Have to ^c to stop it after 30min.


patch was waiting for user input...
try that instead (or read the doc ;-)
patch -p1 --verbose < bootsplash-3.1.6-2.6.12.diff


>
>
> mess-mate
> --
> You have a will that can be influenced by all with whom you come in contact.
I have 2.6.8 kernel source. I tried the following both patches separately in the same order. ie second time src previous patched source was deleted and new src was installed.
bootsplash-3.1.6-2.6.8.diff
bootsplash-3.1.4-sp3-2.6.8.1.diff
both patches gave nearly same error. Following error is for second one. First patch also gave error as Hunk #1 FAILED at 989 instaed of Hunk #1 FAILED at 988. However bootsplash works. But I want to know the significance of file n_tty.c and patch to it.
Hunk #1 FAILED at 988.
Hunk #2 succeeded at 1322 (offset 242 lines).
1 out of 2 hunks FAILED -- saving rejects to file drivers/char/n_tty.c.rej
----------------------------------
lvghomepc:/usr/src/linux# cat drivers/char/n_tty.c.rej
***************
*** 988,994 ****
                printk("n_tty_read_chan: called with read_buf == NULL?!?\n");
                return -EIO;
        }
-
        /* Job control check -- must be done at start and after
           every sleep (POSIX.1 7.1.1.4). */
        /* NOTE: not yet done after every sleep pending a thorough
--- 988,993 ----
                printk("n_tty_read_chan: called with read_buf == NULL?!?\n");
                return -EIO;
        }
        /* Job control check -- must be done at start and after
           every sleep (POSIX.1 7.1.1.4). */
        /* NOTE: not yet done after every sleep pending a thorough
------------------------------------------------------
 As side note I found an interesting thing, that I wanted to share with the list.We can have two screens one for booting and other for shutdown. First make boot screen, put it in /etc/bootsplash/themes/<theme name>/images and do (as example)
 
 splash -s -f /etc/bootsplash/themes/debian-sarge/config/bootsplash-1024x768.cfg >>initrd.img-2.6.8.20050916
 
 Then make shutdown screen and replace the boot screen image in /etc/bootsplash/themes/<theme name>/images. Now boot screen and shutdown screens will be different.


--
L.V.Gandhi
http://lvgandhi.tripod.com/
linux user No.205042
Reply to: