mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2024-11-18 22:43:53 +01:00
add bootsplash to 2.6.30 as well and enable it per default
SVN-Revision: 16297
This commit is contained in:
parent
8c574a5471
commit
bbda08d308
@ -221,7 +221,11 @@ CONFIG_LEDS_GTA02_VIBRATOR=y
|
||||
# CONFIG_LEDS_TRIGGER_DEFAULT_ON is not set
|
||||
# CONFIG_LEDS_TRIGGER_NETDEV is not set
|
||||
CONFIG_LOCK_KERNEL=y
|
||||
# CONFIG_LOGO is not set
|
||||
CONFIG_LOGO=y
|
||||
# CONFIG_LOGO_LINUX_CLUT224 is not set
|
||||
# CONFIG_LOGO_LINUX_MONO is not set
|
||||
# CONFIG_LOGO_LINUX_VGA16 is not set
|
||||
CONFIG_LOGO_OPENWRT_CLUT224=y
|
||||
CONFIG_LOG_BUF_SHIFT=18
|
||||
# CONFIG_MACH_AML_M5900 is not set
|
||||
# CONFIG_MACH_ANUBIS is not set
|
||||
|
@ -0,0 +1,79 @@
|
||||
diff -ruN linux-2.6.29.orig/drivers/video/console/fbcon.c linux-2.6.29/drivers/video/console/fbcon.c
|
||||
--- linux-2.6.29.orig/drivers/video/console/fbcon.c 2009-05-14 22:21:12.000000000 +0200
|
||||
+++ linux-2.6.29/drivers/video/console/fbcon.c 2009-05-15 01:45:36.000000000 +0200
|
||||
@@ -562,7 +562,7 @@
|
||||
/* Need to make room for the logo */
|
||||
struct fbcon_ops *ops = info->fbcon_par;
|
||||
int cnt, erase = vc->vc_video_erase_char, step;
|
||||
- unsigned short *save = NULL, *r, *q;
|
||||
+ unsigned short *r, *q;
|
||||
int logo_height;
|
||||
|
||||
if (info->flags & FBINFO_MODULE) {
|
||||
@@ -581,37 +581,18 @@
|
||||
q = (unsigned short *) (vc->vc_origin +
|
||||
vc->vc_size_row * rows);
|
||||
step = logo_lines * cols;
|
||||
- for (r = q - logo_lines * cols; r < q; r++)
|
||||
- if (scr_readw(r) != vc->vc_video_erase_char)
|
||||
- break;
|
||||
- if (r != q && new_rows >= rows + logo_lines) {
|
||||
- save = kmalloc(logo_lines * new_cols * 2, GFP_KERNEL);
|
||||
- if (save) {
|
||||
- int i = cols < new_cols ? cols : new_cols;
|
||||
- scr_memsetw(save, erase, logo_lines * new_cols * 2);
|
||||
- r = q - step;
|
||||
- for (cnt = 0; cnt < logo_lines; cnt++, r += i)
|
||||
- scr_memcpyw(save + cnt * new_cols, r, 2 * i);
|
||||
- r = q;
|
||||
- }
|
||||
- }
|
||||
- if (r == q) {
|
||||
- /* We can scroll screen down */
|
||||
- r = q - step - cols;
|
||||
- for (cnt = rows - logo_lines; cnt > 0; cnt--) {
|
||||
- scr_memcpyw(r + step, r, vc->vc_size_row);
|
||||
- r -= cols;
|
||||
- }
|
||||
- if (!save) {
|
||||
- int lines;
|
||||
- if (vc->vc_y + logo_lines >= rows)
|
||||
- lines = rows - vc->vc_y - 1;
|
||||
- else
|
||||
- lines = logo_lines;
|
||||
- vc->vc_y += lines;
|
||||
- vc->vc_pos += lines * vc->vc_size_row;
|
||||
- }
|
||||
- }
|
||||
+ r = q - step - cols;
|
||||
+ for (cnt = rows - logo_lines; cnt > 0; cnt--) {
|
||||
+ scr_memcpyw(r + step, r, vc->vc_size_row);
|
||||
+ r -= cols;
|
||||
+ }
|
||||
+ int lines;
|
||||
+ if (vc->vc_y + logo_lines >= rows)
|
||||
+ lines = rows - vc->vc_y - 1;
|
||||
+ else
|
||||
+ lines = logo_lines;
|
||||
+ vc->vc_y += lines;
|
||||
+ vc->vc_pos += lines * vc->vc_size_row;
|
||||
scr_memsetw((unsigned short *) vc->vc_origin,
|
||||
erase,
|
||||
vc->vc_size_row * logo_lines);
|
||||
@@ -621,16 +602,6 @@
|
||||
update_screen(vc);
|
||||
}
|
||||
|
||||
- if (save) {
|
||||
- q = (unsigned short *) (vc->vc_origin +
|
||||
- vc->vc_size_row *
|
||||
- rows);
|
||||
- scr_memcpyw(q, save, logo_lines * new_cols * 2);
|
||||
- vc->vc_y += logo_lines;
|
||||
- vc->vc_pos += logo_lines * vc->vc_size_row;
|
||||
- kfree(save);
|
||||
- }
|
||||
-
|
||||
if (logo_lines > vc->vc_bottom) {
|
||||
logo_shown = FBCON_LOGO_CANSHOW;
|
||||
printk(KERN_INFO
|
38452
target/linux/s3c24xx/patches-2.6.30/031-add-openwrt-logo.patch
Normal file
38452
target/linux/s3c24xx/patches-2.6.30/031-add-openwrt-logo.patch
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user