LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Using a different slack.bmp image in Lilo (https://www.linuxquestions.org/questions/slackware-14/using-a-different-slack-bmp-image-in-lilo-827466/)

Gorilla no Baka 08-20-2010 06:17 PM

Quote:

Originally Posted by corbis_demon (Post 4072539)
Nice to see people still using Lilo! :D

Lilo is the best...

corbis_demon 08-21-2010 12:34 AM

Quote:

Originally Posted by try-alls (Post 4072648)
how would i use these options

Open the file in Gimp, and go to Image -> Mode -> Indexed. Now under "Generate Optimum Palette" choose the maximum number of colors to be 255 (Well, I chose 255. Dunno how selecting a different number will affect this. I'm no graphics guru ;) ). Click "Convert" and save. I think that should do it.
Now, the slack.dat file details the dimensional, positional and color parameters of the image (if I'm not wrong). Keep this file open alongside for reference when you are editing the variables. I'm sure it'll help.

corbis_demon 08-21-2010 01:04 AM

Ok, I guess this would help:

Code:

root [ ~ ]# lilo -E silentwww-640x480.bmp                                 
Editing contents of bitmap file:  silentwww-640x480.bmp

Table dimensions:
  Number of columns:  1
  Entries per column (number of rows):  25
Table upper left corner:
  Column(X): 13 (chars) or 96p (pixels)  Row(Y): 6 (chars) or 80p (pixels)

Text colors:
  Normal:  Foreground: 7  Background: transparent  Shadow: none
Highlight:  Foreground: 15  Background: transparent  Shadow: none
    Timer:  Foreground: 7  Background: 0  Shadow: none
Timer position:
  Column(X): 65 (chars) or 512p (pixels)  Row(Y): 3 (chars) or 32p (pixels)

Commands are:  L)ayout, C)olors, T)imer, Q)uit, W)rite:  L

Table dimensions:
  Number of columns:  1
  Entries per column (number of rows):  25
Table upper left corner:
  Column(X): 13 (chars) or 96p (pixels)  Row(Y): 6 (chars) or 80p (pixels)

Layout options:  D)imensions, P)osition, B)ack:  D

Number of columns (1..5) [1]:  1
Entries per column (1..30) [25]:  25


Table dimensions:
  Number of columns:  1
  Entries per column (number of rows):  25
Table upper left corner:
  Column(X): 13 (chars) or 96p (pixels)  Row(Y): 6 (chars) or 80p (pixels)

Layout options:  D)imensions, P)osition, B)ack:  P

Table UL column (1..80) or (8p..632p) [13 or 96p]: 60p
Table UL row (1..30) or (16p..464p) [6 or 80p]: 175p


Table dimensions:
  Number of columns:  1
  Entries per column (number of rows):  25
Table upper left corner:
  Column(X): 8+ (chars) or 60p (pixels)  Row(Y): 11+ (chars) or 175p (pixels)

Layout options:  D)imensions, P)osition, B)ack:  B



Table dimensions:
  Number of columns:  1
  Entries per column (number of rows):  25
Table upper left corner:
  Column(X): 8+ (chars) or 60p (pixels)  Row(Y): 11+ (chars) or 175p (pixels)

Text colors:
  Normal:  Foreground: 7  Background: transparent  Shadow: none
Highlight:  Foreground: 15  Background: transparent  Shadow: none
    Timer:  Foreground: 7  Background: 0  Shadow: none
Timer position:
  Column(X): 65 (chars) or 512p (pixels)  Row(Y): 3 (chars) or 32p (pixels)

Commands are:  L)ayout, C)olors, T)imer, Q)uit, W)rite:  C

  Normal:  Foreground: 7  Background: transparent  Shadow: none
Highlight:  Foreground: 15  Background: transparent  Shadow: none
    Timer:  Foreground: 7  Background: 0  Shadow: none

Text color options:  N)ormal, H)ighlight, T)imer, B)ack:  N

Normal text text fg color (0..255) [7]: 254
Normal text text bg color (0..255,transparent) [transparent]:
Normal text text sh color (0..255,none) [none]: 19


  Normal:  Foreground: 254  Background: transparent  Shadow: 19
Highlight:  Foreground: 15  Background: transparent  Shadow: none
    Timer:  Foreground: 7  Background: 0  Shadow: none

Text color options:  N)ormal, H)ighlight, T)imer, B)ack:  H

Highlight text text fg color (0..255) [15]: 19
Highlight text text bg color (0..255,transparent) [transparent]:
Highlight text text sh color (0..255,none) [none]: 254


  Normal:  Foreground: 254  Background: transparent  Shadow: 19
Highlight:  Foreground: 19  Background: transparent  Shadow: 254
    Timer:  Foreground: 7  Background: 0  Shadow: none

Text color options:  N)ormal, H)ighlight, T)imer, B)ack:  B



Table dimensions:
  Number of columns:  1
  Entries per column (number of rows):  25
Table upper left corner:
  Column(X): 8+ (chars) or 60p (pixels)  Row(Y): 11+ (chars) or 175p (pixels)

Text colors:
  Normal:  Foreground: 254  Background: transparent  Shadow: 19
Highlight:  Foreground: 19  Background: transparent  Shadow: 254
    Timer:  Foreground: 7  Background: 0  Shadow: none
Timer position:
  Column(X): 65 (chars) or 512p (pixels)  Row(Y): 3 (chars) or 32p (pixels)

Commands are:  L)ayout, C)olors, T)imer, Q)uit, W)rite:  T

Timer colors:
    Timer:  Foreground: 7  Background: 0  Shadow: none
Timer position:
  Column(X): 65 (chars) or 512p (pixels)  Row(Y): 3 (chars) or 32p (pixels)

Timer setup:  C)olors, P)osition, D)isable, B)ack:  C

Timer text fg color (0..255) [7]: 254
Timer text bg color (0..255,transparent) [0]: 0
Timer text sh color (0..255,none) [none]: 19


Timer colors:
    Timer:  Foreground: 254  Background: 0  Shadow: 19
Timer position:
  Column(X): 65 (chars) or 512p (pixels)  Row(Y): 3 (chars) or 32p (pixels)

Timer setup:  C)olors, P)osition, D)isable, B)ack:  P

Timer col (1..80) or (8p..632p) [65 or 512p]: 30p
Timer row (1..30) or (16p..464p) [3 or 32p]: 434p


Timer colors:
    Timer:  Foreground: 254  Background: 0  Shadow: 19
Timer position:
  Column(X): 4+ (chars) or 30p (pixels)  Row(Y): 28+ (chars) or 434p (pixels)

Timer setup:  C)olors, P)osition, D)isable, B)ack:  B



Table dimensions:
  Number of columns:  1
  Entries per column (number of rows):  25
Table upper left corner:
  Column(X): 8+ (chars) or 60p (pixels)  Row(Y): 11+ (chars) or 175p (pixels)

Text colors:
  Normal:  Foreground: 254  Background: transparent  Shadow: 19
Highlight:  Foreground: 19  Background: transparent  Shadow: 254
    Timer:  Foreground: 254  Background: 0  Shadow: 19
Timer position:
  Column(X): 4+ (chars) or 30p (pixels)  Row(Y): 28+ (chars) or 434p (pixels)

Commands are:  L)ayout, C)olors, T)imer, Q)uit, W)rite:  W
Save companion configuration file? (yes or no) [N]:  yes
Save changes to bitmap file? (yes or no) [N]:  yes
Writing output file:  silentwww-640x480.bmp

This is how you should go about if you were to get the parameters in the text file that I linked to in my previous post.

try-alls 08-21-2010 01:22 AM

ok cool, so gonna sound dumb again just reading through it, will this work with any image, i.e. how do i know how many columns, row etc will i need or is it just a case of hit an miss

corbis_demon 08-21-2010 01:42 AM

Quote:

Originally Posted by try-alls (Post 4073066)
ok cool, so gonna sound dumb again just reading through it, will this work with any image, i.e. how do i know how many columns, row etc will i need or is it just a case of hit an miss

Ok, that output was generated when I used this image. Of course, I scaled it down, and converted it. Using those same variable values on your image might not produce the desired result ( I tried it on my image, and it got spliced). So yes, it is a bit of trial and error, unless you are an expert in graphics. But please don't get exasperated now that you've gotten this far. Also, if you haven't visited the link that aocab provided, I suggest you do. I got all the info that I'm now disseminating from that link.

aocab 08-21-2010 02:34 AM

Quote:

Originally Posted by try-alls (Post 4072648)
ah the command is /sbin/lilo -E FILENAME* but now it give me some options to which i am noobishly unsure:


how would i use these options

i went for broke and just write then yes for the next two questions and it still returns with "fatal unsupported bitmap", if there are any gimp masters (wow that sounds a lil wierd) that could give me info an how to make it supported with gimp that may make this easier,
i know some of you could prob do it for me but thats not the point i need to learn lol

thanks again in advance

Quote:

3) you can use lilo.conf or the bmp file itself to tell lilo the color information (for your text and timer-box)
Using /sbin/lilo -E FILENAME sets the color information in the bmp file.
I did not use that method.

I modified lilo.conf to set the color information.
Code:

man lilo.conf
has all the details on how to set the various settings (and was a little easier for me to understand).

Cheers
HTH

corbis_demon 08-21-2010 02:46 AM

Thanks for clearing it up, aocab :) . But will it work for any image file that I might use?

aocab 08-21-2010 10:04 AM

Quote:

Originally Posted by corbis_demon (Post 4073092)
Thanks for clearing it up, aocab :) . But will it work for any image file that I might use?

From what I've read, the image has to be
a 640x480 BMP with 256 colors (or less) and indexed.

try-alls 08-21-2010 10:33 AM

tried with the link and the image turns to complete black so gonna spend a fair bit o time with this tryin different settings

(i am happy with lilo's standard setup i.e. where the timer is etc just a shame it's not as simple as just swap the files, lol)

cheers for the help will report back once successsful

aocab 08-21-2010 11:43 AM

Quote:

Originally Posted by try-alls (Post 4073333)
tried with the link and the image turns to complete black so gonna spend a fair bit o time with this tryin different settings

(i am happy with lilo's standard setup i.e. where the timer is etc just a shame it's not as simple as just swap the files, lol)

cheers for the help will report back once successsful

I'm not quite sure which image you are referring to...
this is the one I used:
http://www.yzzerdd.net/images/boot/s...40x480x256.bmp

Could you possibly post the image you are trying to use?

corbis_demon 08-21-2010 12:06 PM

Hmm...Something interesting happened after I fed the info into my lilo.conf. I ran lilo, and got this:

Code:

root [ ~ ]# lilo                                                           
Warning: LBA32 addressing assumed
Warning: Unable to determine video adapter in use in the present system.
Warning: Video adapter does not support VESA BIOS extensions needed for
  display of 256 colors.  Boot loader will fall back to TEXT only operation.
Added Slack *

And now there's no bootloader :( Darn.

aocab 08-21-2010 12:27 PM

Quote:

Originally Posted by corbis_demon (Post 4073407)
Hmm...Something interesting happened after I fed the info into my lilo.conf. I ran lilo, and got this:

Code:

root [ ~ ]# lilo                                                           
Warning: LBA32 addressing assumed
Warning: Unable to determine video adapter in use in the present system.
Warning: Video adapter does not support VESA BIOS extensions needed for
  display of 256 colors.  Boot loader will fall back to TEXT only operation.
Added Slack *

And now there's no bootloader :( Darn.

You should still have a bootloader (those are just warnings)...?
I've gotten those messages before when I had to chroot into the system to run lilo when something went wrong. I would just re-run lilo again as root once I could get back into the system in runlevel 3.

corbis_demon 08-21-2010 12:44 PM

Sorry, I made a typo in the .conf . root got assigned to a non-existent boot image. :). But yes, you're right, those are just warnings. But the interesting bit is that no warnings (other than the LB32 one) were issued when I ran the command from inside a chroot. Not important, I'm sure. Sorry to bother. Thanks for taking time out to reply. :)

EDIT: Really sorry to take the discussion somewhat off the track, but kernel 2.6.35.2 seems to have got serious bug that's causing boot failures. Is there a fix available in 2.6.35.3? I mean it's a pain recompiling now that I compiled 2.6.35.2 a few days back.

aocab 08-21-2010 12:49 PM

Quote:

Originally Posted by corbis_demon (Post 4073433)
Sorry, I made a typo in the .conf . root got assigned to a non-existent boot image. :). But yes, you're right, those are just warnings. But the interesting bit is that no warnings (other than the LB32 one) were issued when I ran the command from inside a chroot. Not important, I'm sure. Sorry to bother. Thanks for taking time out to reply. :)

you can get rid of the lba32 warning by adding "lba32"
(without quotes) to the beginning of lilo.conf.

try-alls 08-21-2010 04:28 PM

i too had this but it was when i added "compact" to lilo which is most useful, lba32 is needed for larger sized hard-drives


All times are GMT -5. The time now is 11:28 AM.