LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-27-2006, 02:50 PM   #1
ashlesha
Member
 
Registered: May 2005
Location: PA
Distribution: Ubuntu
Posts: 204

Rep: Reputation: 30
kernel 2.6 initramfs


hi,

I m trying to boot the 2.6 kernel on the DB1500 board that has the AU1500 MIPS processor.

When I built the kernel, a separate folder called usr was created that has the initramfs_data.cpio.gz, initramfs_data.o, gen_init_cpio (elf) and other files...

Now at the YAMON prompt, I dont know what bootargs to give for this compressed initramfs, for the root= arg.

Thanks
Ashlesha.
 
Old 07-27-2006, 05:37 PM   #2
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
the initramfs_data.cpio.gz is a data for your initrd. you'll set it as your initrd image in the lilo config or grub config.

copy that file to /boot/ as initrd-`uname -r`.

then edit your config file (/boot/grub/menu.lst or /etc/lilo.conf) and add 'initrd=/boot/initrd-version' after the line with the string root=.

your config should now look something like this:
for menu.lst or grub.conf
Code:
title Debian GNU/Linux, kernel 2.4.27-2-386
root (hd0,6)
kernel /boot/vmlinuz-2.4.27-2-386 root=/dev/hda7 ro
initrd /boot/initrd.img-2.4.27-2-386
savedefault
boot
for lilo.conf
Code:
image = /boot/kernel
        label = Gentoo
        root = /dev/ram0
        initrd = /boot/initramfs
        append = "real_root=/dev/hda1 init=/linuxrc splash=silent,theme:darkcross video=nvidiafb:102
4x768 fbset=1024x768-60 CONSOLE=/dev/tty1 quiet"
        read-only
if you're using lilo, run 'lilo' before restart.

Edit: sorry bout this but i guess i can be wrong about initramfs_data.cpio.gz. i'm not really sure but initramfs_data.cpio.gz can only a part of initrd. it's not really the initrd. to make the initrd, run
Code:
mkinitrd -o initrd-`uname -r` `uname -r`
Edit2: don't use 'uname -r' btw if you're installing a new kernel version.

Last edited by konsolebox; 07-27-2006 at 05:54 PM.
 
Old 07-27-2006, 05:52 PM   #3
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
Quote:
Originally Posted by ashlesha
Now at the YAMON prompt, I dont know what bootargs to give for this compressed initramfs, for the root= arg.
you'll only need to specify here the real fs besides initrd that you're trying to boot. example 'root=/dev/hda1'. you can also add 'ro' to make /dev/hda1 mount read only. this is required when booting.
 
Old 07-27-2006, 06:07 PM   #4
ashlesha
Member
 
Registered: May 2005
Location: PA
Distribution: Ubuntu
Posts: 204

Original Poster
Rep: Reputation: 30
hi,

Thanks for your reply..
the thing is i m not using either grub or lilo..this is an embedded system..so my .config file doesnt have a root= entry..

so here is what i have: a boot loader called YAMON that can dnload the kernel image and take boot arguments and start the kernel accordingly..now upto kernel version 2.4, i could supply root=/dev/nfs and then give the location of the file system in nfsaddr=<server ip>:<path of fs> ..

but, i dont know how to do this with the new initramfs..

so far i ve tried the following boot args:
bootargs0 (USER) noinitrd
bootargs1 (USER) ip=xxx.xxx.1.xxx:xxx.xxx.x.xxx root=/dev/nfs
bootargs2 (USER) nfsroot=xxx.xxx.x.xxx:/tftpboot/usr_as/initramfs_list

doesnt work!

ashlesha.
 
Old 07-27-2006, 06:14 PM   #5
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
you can get some documentations and new releases of YAMON here. the only problem is you need to register to get the files.
 
Old 07-27-2006, 06:19 PM   #6
ashlesha
Member
 
Registered: May 2005
Location: PA
Distribution: Ubuntu
Posts: 204

Original Poster
Rep: Reputation: 30
yeah i ve tried doing that too..and it gets stuck at the registration page!
do you knw anywhere else that i can look?

thanks,
a
 
Old 07-27-2006, 06:29 PM   #7
ashlesha
Member
 
Registered: May 2005
Location: PA
Distribution: Ubuntu
Posts: 204

Original Poster
Rep: Reputation: 30
hi,

do you know where i can look at the log buffer?

my System.map gives me the following address:

ieee754dp_logb

but i dont know what to do with it!?!

thanks
ashlesha.
 
Old 07-27-2006, 06:32 PM   #8
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
i don't really understand the meaning of this page but it says something about adding linux parameters: http://www.mycable.de/xxs1500/cms/in...tart_a_Program

Edit: check the whole site. they also have some docs and manuals.

Last edited by konsolebox; 07-27-2006 at 06:33 PM.
 
Old 07-27-2006, 07:31 PM   #9
ashlesha
Member
 
Registered: May 2005
Location: PA
Distribution: Ubuntu
Posts: 204

Original Poster
Rep: Reputation: 30
thanks for trying to ans my questions!
ashlesha.
 
Old 07-27-2006, 07:49 PM   #10
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Quote:
Originally Posted by ashlesha
hi,

Thanks for your reply..
the thing is i m not using either grub or lilo..this is an embedded system..so my .config file doesnt have a root= entry..

so here is what i have: a boot loader called YAMON that can dnload the kernel image and take boot arguments and start the kernel accordingly..now upto kernel version 2.4, i could supply root=/dev/nfs and then give the location of the file system in nfsaddr=<server ip>:<path of fs> ..

but, i dont know how to do this with the new initramfs..

so far i ve tried the following boot args:
bootargs0 (USER) noinitrd
bootargs1 (USER) ip=xxx.xxx.1.xxx:xxx.xxx.x.xxx root=/dev/nfs
bootargs2 (USER) nfsroot=xxx.xxx.x.xxx:/tftpboot/usr_as/initramfs_list

doesnt work!

ashlesha.
Evenin! I'm not all that familiar with embedded systems, but I have used NFS mounts and network booting and such. It may just be a problem with your kernel. There is an option in the 2.6 kernels to allow NFS as the root filesystem (I believe it lives in the filesystem section of the kernel config). From the sounds of your issue, this may not be enabled on your kernel. Other than that, your command line args seem correct assuming you aren't giving any typos when you type them on your actual system.

Cool
 
Old 07-27-2006, 09:07 PM   #11
konsolebox
Senior Member
 
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
Quote:
Originally Posted by ashlesha
thanks for trying to ans my questions!
ashlesha.
sorry ashlesha. i was just typing my message when you made the post. anyway. i also have no idea where you can look at the log buffer.

i'll again try to search an alternate site where you can download the manual. i'll post one later if i find something.
 
  


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
Kernel 2.6.17.6 - kernel panic on initramfs linead Debian 20 08-09-2008 09:08 AM
Conflict in Upgrading initramfs-tools and udev Brian Puccio Linux - Software 2 03-12-2006 01:46 PM
difference between initrd and initramfs shrndegruv Linux - General 1 02-14-2006 12:03 AM
what is initramfs and how can I edit one? mangolicious Linux - Software 2 03-16-2005 10:27 PM
waiting for checking for initramfs, SLOW boot Rocker Linux - General 1 09-25-2004 07:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:11 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