LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-10-2006, 06:37 PM   #76
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 49
Smile


Quote:
Originally Posted by konsolebox
i guess there's not much problem to run fbset in linuxrc. just make sure you don't place the command in the line before your fb driver is loaded. if the driver's set as built-in, then i guess you won't have any problem with that.

also make sure that you have the /sbin/fbset and /etc/fb.modes files. there's probably also a library file needed. i'm not sure or i just forgot.

to modify your initrd file, you must first extract it to a directory:
Code:
cd /boot
mkdir initrddir
cd initrddir
zcat ../initrd.img | while cpio -i; do :; done
after you make changes, save your new initrd:
Code:
for a in `ls | sort`; do
    find $a | sort | cpio -o -H newc | gzip -9 -c >> ../newinitrd.img
done
the problem here is that you'll always have to modify your initrd everytime you compile your modules

Edit: better use '/sbin/fbset 1024-768-60' than 'fbset 1024-768-60'.
Hi konsolebox, i am not able to modify my initrd image. Where is what I get if I try to mount it.

Code:
root@debian:/boot/initrddir# zcat ../initrd.img-2.6.13 | while cpio -i; do :; done
zcat: ../initrd.img-2.6.13: not in gzip format
cpio: premature end of archive
root@debian:/boot/initrddir#
I think my initrd image is a Cramfs type, because this is what I get if I try to get infomation about my initrd image:
Code:
root@debian:~# file -z /boot/initrd.img-2.6.13 /boot/initrd.img-2.6.13:
Linux Compressed ROM File System data,
little endian size 1372160 version #2
sorted_dirs CRC 0x30bc9195, edition 0, 879 blocks, 123 files
root@debian:~#
I even started a thread http://www.linuxquestions.org/questi...ghlight=initrd for this before hand, but no one has been able to help till now. My only hope lies with you.
 
Old 08-10-2006, 08:50 PM   #77
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
sorry kushalkoolwal. the script was only made for cpio archives.

take a look at these websites to know how you can extract and rebuild compressed rom files.

CROMFS: http://bisqwit.iki.fi/source/cromfs.html
ROMFS: http://romfs.sourceforge.net/
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FC5 shutdown sequence blank screen General Fedora 4 04-23-2006 12:44 PM
Blank Screen During Shutdown zachsandberg Linux - Newbie 2 01-03-2006 06:16 AM
Screen blank for a long time during FC3 shutdown Gethyn Fedora 4 04-17-2005 07:12 AM
screen not restarting after reboot?? lucastic Linux - Hardware 4 07-19-2004 10:28 PM
shutdown and restarting in terminal chrismiceli Linux - General 1 10-26-2002 08:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 03:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration