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.