qemu linux kernel with busybox booting problem

2009-06-20 Thread soumen acharya


  Hi all,

   I was trying to boot linux kernel with qemu using custom busybox , having 
booting problem.

  I did the following :

  dd if=/dev/zero of=rootfs.img bs=1k count=2048
  mkfs.ext2 ­i 1024 ­F rootfs.img
  mkdir /mnt/rootfs
  mount ­o loop rootfs.img /mnt/rootfs
  rsync ­a busybox/_install/ /mnt/rootfs/
  chown ­R root:root /mnt/rootfs/
  sync
  qemu -­m 64 -­hda rootfs.img -­kernel linux­2.6.28.4/arch/x86/boot 
/bzImage -­append "root=/dev/hda"

while booting it shows:

VFS : can not open hda
  append proper root fs in "root="
  
Looking for inputs about how to do it correctly.

Thanks,
Soumen Acharya

IIIT Bangalore
26/C Electronics City
Bangalore 560 100 INDIA
Mobile-(+91)9916596352



Re: CONFIG_INITRAMFS_SOURCE ??

2009-06-20 Thread Mulyadi Santosa
Hi...

On Sun, Jun 21, 2009 at 12:37 AM, Lenny M wrote:
> What is CONFIG_INITRAMFS_SOURCE  ?
> How can I use it to update my Debian GNU/Linux system kernel to 2.6.30 ?


Probably a bit old document, but hopefully still relevant and it could
help you to understand what CONFIG_INITRAMFS_SOURCE is:
http://free-electrons.com/kerneldoc/latest/early-userspace/README

regards,

Mulyadi

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ



Re: KDB Hangs !

2009-06-20 Thread Mulyadi Santosa
Hi...



On Sat, Jun 20, 2009 at 11:19 PM, Lenny M wrote:
> Yes , I am sure I am using proper kdb patches. any other tools do you
> suggest to debug filesystems ?
>
> Regards,
> Leena M.
>
> On Sat, Jun 20, 2009 at 8:42 PM, Mulyadi Santosa 
> wrote:
>>
>> Hi..
>>
>> On 6/20/09, Lenny M  wrote:
>> > I patched the kernel linux-2.6./16.27/18 with kdb. None of them is
>> > working
>> > the system hangs and the CPU usage becomes high gradually ( probably ,
>> > not
>> > sure !! )
>> > Please help with this !
>> >
>> > Also , Keyboard(USB) doesn't respond.
>> >
>> > Is there any solution to this !!
>>
>> probably a bug. Before we go further, are you sure you are using the
>> latest kdb patch and the latest vanilla kernel source?

First of all, please don't do top post in this mailing list.

About debugging filesystem, do you mean you want to debug filesystem
related code? Hm, I think you can use User Mode Linux. Head over
http://user-mode-linux.sourceforge.net/old/debugging.html to get
further info.

regards,

Mulyadi

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ



Re: how to make system calls from kernel module?

2009-06-20 Thread Razvan Deaconescu
On Sat, 2009-06-20 at 09:59 -0700, krushnaal pai wrote:
> how to make system calls from kernel module?
> 
> or
> 
> how to include library headers in modules so as to use open,read write
> functtions?

(Most of the time) You cannot. You could resort to some sort of hacks to
use system call handlers but it is not advisable. You should use kernel
specific functions to solve your problems.

Razvan


--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ



CONFIG_INITRAMFS_SOURCE ??

2009-06-20 Thread Lenny M
What is CONFIG_INITRAMFS_SOURCE  ?
How can I use it to update my Debian GNU/Linux system kernel to 2.6.30 ?


-Leena M.


Re: how to make system calls from kernel module?

2009-06-20 Thread Manish Katiyar
On Sat, Jun 20, 2009 at 10:29 PM, krushnaal pai wrote:
> how to make system calls from kernel module?
>
> or
>
> how to include library headers in modules so as to use open,read write

Why do you need that ? What are you trying to do ? Isn't this a
repeated question ??

Thanks -
Manish

> functtions?
>



-- 
Thanks -
Manish

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ



how to make system calls from kernel module?

2009-06-20 Thread krushnaal pai
how to make system calls from kernel module?

or

how to include library headers in modules so as to use open,read write
functtions?


Re: KDB Hangs !

2009-06-20 Thread Lenny M
Yes , I am sure I am using proper kdb patches. any other tools do you
suggest to debug filesystems ?

Regards,
Leena M.

On Sat, Jun 20, 2009 at 8:42 PM, Mulyadi Santosa
wrote:

> Hi..
>
> On 6/20/09, Lenny M  wrote:
> > I patched the kernel linux-2.6./16.27/18 with kdb. None of them is
> working
> > the system hangs and the CPU usage becomes high gradually ( probably ,
> not
> > sure !! )
> > Please help with this !
> >
> > Also , Keyboard(USB) doesn't respond.
> >
> > Is there any solution to this !!
>
> probably a bug. Before we go further, are you sure you are using the
> latest kdb patch and the latest vanilla kernel source?
>
> regards,
>
> Mulyadi.
>


Re: KDB Hangs !

2009-06-20 Thread Mulyadi Santosa
Hi..

On 6/20/09, Lenny M  wrote:
> I patched the kernel linux-2.6./16.27/18 with kdb. None of them is working
> the system hangs and the CPU usage becomes high gradually ( probably , not
> sure !! )
> Please help with this !
>
> Also , Keyboard(USB) doesn't respond.
>
> Is there any solution to this !!

probably a bug. Before we go further, are you sure you are using the
latest kdb patch and the latest vanilla kernel source?

regards,

Mulyadi.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ



Re: plz gimme linux kernel module programming ebook?

2009-06-20 Thread Mulyadi Santosa
On 6/20/09, krushnaal pai  wrote:
> plz mail me linux kernel module programming ebook as an attachment, i
> searced it all the way on net but couldnt get it?
>

make sure that ebook is a legitimate copy, not a pirated copy. For
example, google for Linux Device Drivers 3rd edition.  Kernelnewbies
website also has many information and valuable links. Don't miss LWN
kernel section too.


regards,

Mulyadi.

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ



Re: KERNEL PANIC !

2009-06-20 Thread Mulyadi Santosa
Hi..

On 6/20/09, Lenny M  wrote:
> Hi All ,
>
> I am updating the kernel of my debian 'etch'  GNU/Linux system.
> I am getting a kernel Panic:
>
> umount:devfs: not mounted
> mount : unknown filesystem type 'devfs'
> umount: devfs: not mounted
> pivot_root : No such file or directory
> /sbin/init: 432: cannot open dev/console : No such file
> Kernel Panic - not syncing : Attempted to kill init !
>
> Please help me with this.

AFAIK, 2.6 no longer uses devfs. It is now replaced by udev. However,
it's not a simple drop-in replacement. Without further info about your
Debian installation, you probably have to do a lot of upgrade tasks.
Try to consult to Debian mailing list/forum too.

regards,

Mulyadi

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ



Re: finding elf headers

2009-06-20 Thread Mulyadi Santosa
Hi...

On 6/19/09, krushnaal pai  wrote:
> how to identify the files used by an elf from the headers?
> where can we find the elf headers for any elf?
>

What do you mean by "the file used by an elf"? Dynamic libraries which
are linked to the ELF binary? then you can use "ldd".

For the rest of your ELF related identification, read the man pages of
"readelf" or "eu-readelf".

regards,

Mulyadi

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ



KDB Hangs !

2009-06-20 Thread Lenny M
I patched the kernel linux-2.6./16.27/18 with kdb. None of them is working
the system hangs and the CPU usage becomes high gradually ( probably , not
sure !! )
Please help with this !

Also , Keyboard(USB) doesn't respond.

Is there any solution to this !!


Regards,
Leena M.


KERNEL PANIC !

2009-06-20 Thread Lenny M
Hi All ,

I am updating the kernel of my debian 'etch'  GNU/Linux system.
I am getting a kernel Panic:

umount:devfs: not mounted
mount : unknown filesystem type 'devfs'
umount: devfs: not mounted
pivot_root : No such file or directory
/sbin/init: 432: cannot open dev/console : No such file
Kernel Panic - not syncing : Attempted to kill init !

Please help me with this.


Regards,
Leena M.