Unable to open an initial console

All questions relative to WINNER.

Moderators: A_Null, Curtis8

Unable to open an initial console

Postby guren » Fri Feb 05, 2010 9:26 pm

Hello!


I am trying to use WINNER in my work. I have tried PING but I had some problems formatting and installing new windows.
With WINNER I can do it easily.

Now I am trying to edit the initrd of WINNER, I had some problems to uncompress the rootfs.tar.bz2, but I think I handled it.
The only thing I edited was the file rc.xgow in rootfs/etc/rc.d/, adding:

Code: Select all
push(@FTP,{ Type=>"smb",
Server=>"192.168.10.200",
Share=>"share",
User=>"user",
Passwd=>'+++',
Release=>"/" });



Then I tried to reverse my first steps, compressing rootfs and creating the image of it (initrd). This was when the troubles started.
I do not know if I did the right steps. I used the mkisofs to create the image. The command line I used was this:

Code: Select all
mkisofs -o initrd.img -z -f -no-split-symlink-components -no-split-symlink-fields -J initrd_fold



When I boot using this edited initrd, I have a Kernell Panic, this are the last lines in the screen:

Code: Select all
md: ... autorun DONE.
RAMDISK: Compressed image found at block 0
VFS: Mounted root (iso9660 filesystem) readonly on device 1:0.
Freeing unused kernel memory: 324k freed
Warning: unable to open an initial console.
Kernel panic - not syncing: Attempted to kill init!



So this is my trouble, I would like to use this system, because it is based on Linux and it will help me in my work.
Please some one could help me. I do not have much experience in Linux, so I completely LOST here.

Keep the good work people.


Thank you.
guren
 
Posts: 7
Joined: Mon Feb 01, 2010 1:06 pm

Re: Unable to open an initial console

Postby guren » Mon Feb 15, 2010 11:31 am

I already resolve this problem.
guren
 
Posts: 7
Joined: Mon Feb 01, 2010 1:06 pm

Re: Unable to open an initial console

Postby Curtis8 » Mon Feb 15, 2010 3:35 pm

If you solved this, you should put what you did for future people to use as a fix :)
Curtis

If you can read this, help me by going to the following link (can only go once per day)
http://s13.bitefight.org/c.php?uid=32058

Thank you
User avatar
Curtis8
Site Janitor
 
Posts: 1119
Joined: Thu Mar 01, 2007 3:22 pm
Location: Canada

Re: Unable to open an initial console

Postby guren » Wed Feb 17, 2010 1:16 pm

This problem was caused because after I edited the files, and when I created the image again I did not verified the permission of the files.
When I realised it, I kept the original permissions of the files, and it worked fine.

Good luck,

guren
guren
 
Posts: 7
Joined: Mon Feb 01, 2010 1:06 pm

Re: Unable to open an initial console

Postby guren » Wed Feb 24, 2010 6:22 pm

The commands that I used to create the new ramdisk (initrd).
With files from the original WINNER initrd, and the edited file rootfs.tar.bz2, were this:

Code: Select all
RDSIZE=70000
BLKSIZE=1024
dd if=/dev/zero of=/home/alex/winner/untitled/ramdisk.img bs=$BLKSIZE count=$RDSIZE
/sbin/mke2fs -F -j -m 0 -b $BLKSIZE /home/alex/winner/untitled/ramdisk.img $RDSIZE
sudo mount /home/alex/winner/untitled/ramdisk.img /mnt/iso -t ext3 -o loop=/dev/loop0
guren
 
Posts: 7
Joined: Mon Feb 01, 2010 1:06 pm


Return to Winner / General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest

cron