schedular / NUMA projects to work on

2013-01-31 Thread Shraddha Kamat
I am interested to work on schedular/ NUMA projects but I don't have
high end hardware to test the results - is there any way (like not sure
but - virtualization etc.) I can do it on 
a quad core single socket machine that I have. 

-- Shraddha 


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Question: copy_process() and CLONE_NEWNS

2013-01-31 Thread Kevin Wilson
Hi all,
question:

In copy_process() we have:

static struct task_struct *copy_process(unsigned long clone_flags,
 unsigned long stack_start,
 struct pt_regs *regs,
 unsigned long stack_size,
 int __user *child_tidptr,
 struct pid *pid,
 int trace)
 {
 int retval;
 struct task_struct *p;
 int cgroup_callbacks_done = 0;

 if ((clone_flags & (CLONE_NEWNS|CLONE_FS)) == (CLONE_NEWNS|CLONE_FS))
 return ERR_PTR(-EINVAL);
 ...
...


see :http://lxr.free-electrons.com/source/kernel/fork.c#L1128

Why is the CLONE_NEWNS, when set, cause an error in copy_process(), as
shown above ?
is it not permitted that CLONE_NEWNS will be set ?

rgs,
Kevin

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Linux Kernel Networking document (free, 178 pages doc)

2013-01-31 Thread Rami Rosen
Hi,
Have you considered to start with ext4?
it seems that ext3, ext2 are a bit out of fashion,

Regards,
Rami Rosen
http://ramirose.wix.com/ramirosen


On Thu, Jan 31, 2013 at 8:58 PM, shubham  wrote:
> Thanks Rami,
>
> I am also trying to understand ext3 and write some document for the same.
>
> Regards
> Shubham
>
>
> On 31-Jan-13 12:51 AM, Rami Rosen wrote:
>>
>> HI,
>> I will try to write something for Linux Filesystems  (and maybe for
>> other subsystems) but this will probably take a lot of time.
>>
>> Regards,
>> Rami Rosen
>> http://ramirose.wix.com/ramirosen
>>
>>
>> On Wed, Jan 30, 2013 at 5:44 PM, shubham  wrote:
>>>
>>> Thanks for sharing the document.
>>>
>>> I hope we could have such documents for other subsystems as well.
>>>
>>> Regards
>>> Shubham
>>>
>>>
>>> On 28-Jan-13 10:23 PM, Rami Rosen wrote:

 Hi everyone,
 You can find here an up to date and detailed document in pdf (178
 pages) about Linux Kernel Networking; going deep into design and
 implementation details as well as the theory behind it:
 http://media.wix.com/ugd//295986_931b8bcf34d93419d46e05b5aa5d0216.pdf

 I believe that developers/sysadmins/researchers/students may find help
 with it.


 regards,
 Rami Rosen

 http://ramirose.wix.com/ramirosen

 ___
 Kernelnewbies mailing list
 Kernelnewbies@kernelnewbies.org
 http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>>
>>>
>

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: kernel driver vs userspace program

2013-01-31 Thread Valdis . Kletnieks
On Thu, 31 Jan 2013 13:38:07 -0500, Simon said:
> Hi guys,
>   I'm building an electrical device which will be controlled by
> computer.  It will have an embedded microcontroller and will use USB
> to communicate with the PC.  I believe this calls automatically for a
> device driver, correct?  And for using the machine from the PC,
> interacting with it, that calls for a userspace program, correct?  I
> mean, doing things differently, such as all in userspace or all
> in-kernel, would be bad form, right?

My *first* reaction would be "do it almost all in userspace and
use libusb to talk to the device from userspace".  Unless there's
weird wonkyness or quirks that have to be handled by a kernel module.

>   My question is in case the machine is used in an industrial context
> where there is really only one usage and one kind of interaction that
> follows a pre-determined procedure (therefore totally automated).

There's no reason that an embedded system can't fire up a /sbin/init
that isn't a standard 'init' but is a program to do the process control
needed - in fact, most no-MMU and many embedded systems do that.

> This could give extremely high priority of execution, I guess.

First, see if you're able to meet the timing constraints from a
regular userspace before worrying about going the RT and/or kernel route.
A lot of embedded controllers are amazingly fast and may not need
any extra assistance to make the timing issues.

> Similar to a factory robot controlled by a computer.  Would it make
> more sense to have everything in kernel space, while the userspace (if
> any) would only serve the purpose of reporting?

Especially in the embedded world, there really isn't one right answer.
You'll have to do some trial-and-error to see what balance of userspace
versus kernel is the proper fit for your application.  But in general,
you want to try to keep it in userspace (where things are more protected
in case of a stray pointer, etc) if at all possible.


pgpRNMIUNyRBb.pgp
Description: PGP signature
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Linux Kernel Networking document (free, 178 pages doc)

2013-01-31 Thread shubham
Thanks Rami,

I am also trying to understand ext3 and write some document for the same.

Regards
Shubham

On 31-Jan-13 12:51 AM, Rami Rosen wrote:
> HI,
> I will try to write something for Linux Filesystems  (and maybe for
> other subsystems) but this will probably take a lot of time.
>
> Regards,
> Rami Rosen
> http://ramirose.wix.com/ramirosen
>
>
> On Wed, Jan 30, 2013 at 5:44 PM, shubham  wrote:
>> Thanks for sharing the document.
>>
>> I hope we could have such documents for other subsystems as well.
>>
>> Regards
>> Shubham
>>
>>
>> On 28-Jan-13 10:23 PM, Rami Rosen wrote:
>>> Hi everyone,
>>> You can find here an up to date and detailed document in pdf (178
>>> pages) about Linux Kernel Networking; going deep into design and
>>> implementation details as well as the theory behind it:
>>> http://media.wix.com/ugd//295986_931b8bcf34d93419d46e05b5aa5d0216.pdf
>>>
>>> I believe that developers/sysadmins/researchers/students may find help
>>> with it.
>>>
>>>
>>> regards,
>>> Rami Rosen
>>>
>>> http://ramirose.wix.com/ramirosen
>>>
>>> ___
>>> Kernelnewbies mailing list
>>> Kernelnewbies@kernelnewbies.org
>>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Android Kernel Compilation

2013-01-31 Thread Valdis . Kletnieks
On Thu, 31 Jan 2013 18:24:01 +0100, Matthias Brugger said:
> 2013/1/30 Rahul Gandhi :
> > I am trying to compile Kernel for my Android device. I am using the NDK
> > Toolchain (arm-linux-androideabi-4.4.3). When I use the defconfig, the
> > kernel compiles without any errors but when I flash it onto my device, it
> > either gets stuck on the HTC logo or continuously reboots.
> > If I pull the config.gz from my device, it gives errors at the tome of
> > compilation.
> >
> > What could have possibly gone wrong?
>
> first of all, check the kernel logs. that will give you a clue where
> to start digging.

If it hangs on the HTC logo or reboots, his kernel isn't living long enough
for userspace to retrieve the dmesg buffer.

First thing I'd try is a combo of the 3 kernel parameters 'earlyprintk',
'ignore_loglevel', 'initcall_debug' and either serial console or netconsole.
Though it's quite possible that he's dying before even that infrastructure can
give a hint, in which case it gets a lot trickier (and will probably
require some help from the hardware platform in the form of either a JTAG
interface or enough infrastructure to use kgdb or similar tool...)




pgpXFGR0hz73p.pgp
Description: PGP signature
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Android Kernel Compilation

2013-01-31 Thread Matthias Brugger
2013/1/30 Rahul Gandhi :
> I am trying to compile Kernel for my Android device. I am using the NDK
> Toolchain (arm-linux-androideabi-4.4.3). When I use the defconfig, the
> kernel compiles without any errors but when I flash it onto my device, it
> either gets stuck on the HTC logo or continuously reboots.
> If I pull the config.gz from my device, it gives errors at the tome of
> compilation.
>
> What could have possibly gone wrong?

first of all, check the kernel logs. that will give you a clue where
to start digging.

>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
---
motzblog.wordpress.com

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


How to receive DAD notifications in userspace

2013-01-31 Thread Murali Annamneni
Hi,

I'm trying to  retrieve DAD(duplicate address detection) notifications in 
userspace using netlink sockets.

The code snippet is -
struct sockaddr_nl addr;
sock = socket(PF_NETLINK, SOCK_RAW, NETLINK_ROUTE)
addr.nl_family = AF_NETLINK;
addr.nl_groups = RTMGRP_IPV6_IFADDR;

I'm receiving notifications when an ipv6 address added/deleted for an interface.
But I'm not receiving any notifications when the address is in tentative 
state(dadfailed)
I think I have to play with members of struct sockaddr_nl by setting proper 
values to receive notifications properly.

Can anyone please tell me what's wrong in my code .


Thanks & Regards
Murali Annamneni



::DISCLAIMER::


The contents of this e-mail and any attachment(s) are confidential and intended 
for the named recipient(s) only.
E-mail transmission is not guaranteed to be secure or error-free as information 
could be intercepted, corrupted,
lost, destroyed, arrive late or incomplete, or may contain viruses in 
transmission. The e mail and its contents
(with or without referred errors) shall therefore not attach any liability on 
the originator or HCL or its affiliates.
Views or opinions, if any, presented in this email are solely those of the 
author and may not necessarily reflect the
views or opinions of HCL or its affiliates. Any form of reproduction, 
dissemination, copying, disclosure, modification,
distribution and / or publication of this message without the prior written 
consent of authorized representative of
HCL is strictly prohibited. If you have received this email in error please 
delete it and notify the sender immediately.
Before opening any email and/or attachments, please check them for viruses and 
other defects.


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Kernel kallsyms

2013-01-31 Thread crayben
gre8 artical

发自我的 iPod

在 Jan 31, 2013,18:45,Anuz Pratap Singh Tomar  写道:

> 
> 
> On Thu, Jan 31, 2013 at 10:28 AM, Shraddha Kamat  wrote:
>> What are kernel kallsyms - and why are they used ?
> Please do google a bit before asking question. Any kernel book would give 
> explanation about kernel symbols( I think Robert Love's book have good 
> discussion about kallsyms).
> Here is third google search result of you
> http://onebitbug.me/2011/03/04/introducing-linux-kernel-symbols/  
>> -- shraddha
>> 
>> 
>> ___
>> Kernelnewbies mailing list
>> Kernelnewbies@kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> 
> 
> 
> -- 
> Thank you 
> Warm Regards
> Anuz
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
> 
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Kernel Config for Chromium Browser?

2013-01-31 Thread Valdis . Kletnieks
On Thu, 31 Jan 2013 16:15:45 +0100, Martin Kepplinger said:
> I stripped down my .config for my kernel-compilation a bit, but thought
> that I really just removed unnecessary stuff. But really, the
> consequency was, that the Chromium Browser didn't load _any_ page. Not
> even locally and no chrome:// page. It started, but just stayed at a
> white page.
>
> I didn't change the system whatsoever. I know it was the kernel. Does
> anyone by chance know what parameter caused that behaviour? What does
> chromium do differently? different than firefox.

There's too many possibilities to count, actually.  It's probably possible
to debug it and figure out *which* thing you missed, but this is probably
a lot faster and more accurate:

1) Boot your distro kernel, which is probably an 'allmodconfig' and will
end up loading a whole pile of modules.
2) Insert all your USB memory sticks, webcams, disk drives, and other
peripherals, at least long enough for udev to see them and load their
respective device drivers.
3) At this point, 'lsmod' should list pretty much every module you actually
use during normal use.
4) cd to wherever you have your kernel source tree, and 'make localmodconfig'.
This will take the output of 'lsmod' and customize the kernel for you.
5) Then proceed to make/make install/reboot and enjoy. :)

Note that in step 4, it *is* possible to miss a kernel module that you
may need in the future (that's why I said to insert all the peripherals,
so their modules get included).  It will usually show up as something
like "You add a new rule/option to iptables and it doesn't work" or
similar.  At that point, you just have to go enable that missing option.

(It's possible to strip down a distro kernel a *lot* - comparing
the current Fedora Rawhide kernel with the one I have booted now:

[~] grep '=[ym]' /boot/config-3.8.0-0.rc5.git1.1.fc19.x86_64 | wc -l
3741
[~] grep '=y' /boot/config-3.8.0-0.rc5.git1.1.fc19.x86_64 | wc -l
1490
[~] grep '=m' /boot/config-3.8.0-0.rc5.git1.1.fc19.x86_64 | wc -l
2251
[~] grep '=[ym]' /boot/config-3.8.0-rc3-next-20130117 | wc -l
1209
[~] grep '=y' /boot/config-3.8.0-rc3-next-20130117 | wc -l
924
[~] grep '=m' /boot/config-3.8.0-rc3-next-20130117 | wc -l
285

And I could get that 1209 down to well under 900 - there's a few parts
of the kernel (iptables, crypto, and some filesystems) that I mostly just
build just to give it build/test coverage.

Yes, it builds 3 times faster than the Fedora kernel. ;)



pgpyhOeya_qRg.pgp
Description: PGP signature
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Kernel Config for Chromium Browser?

2013-01-31 Thread Martin Kepplinger
I stripped down my .config for my kernel-compilation a bit, but thought
that I really just removed unnecessary stuff. But really, the
consequency was, that the Chromium Browser didn't load _any_ page. Not
even locally and no chrome:// page. It started, but just stayed at a
white page.

I didn't change the system whatsoever. I know it was the kernel. Does
anyone by chance know what parameter caused that behaviour? What does
chromium do differently? different than firefox.

thanks

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Needs Valuable Suggestions for Important Topics

2013-01-31 Thread rakesh Bhaskar
My kind suggestion would be try exploring Raspberry Pi, which opens the
gate to explore real operating system internals and research.

-Rakesh


On Thu, Jan 31, 2013 at 6:29 PM, gaurav holey  wrote:

> Dear All,
>
> This is gaurav. I would like to thank you all for your valuable
> contribution to this community. I am in process of designing a introductory
> training module for my students at the university for that i want
> suggestions from everybody out there.
>
> As you people working on the real stuff in industry, you know the
> potential and importance of good tutorials at the early stage of ones
> career.I want you to suggest me the topics in the increasing order of the
> complexity and importance in industrial scenario.
>
> I want to divide this module as Basics of Linux Kernel Programming and LDD
> Programming with some hands on training.
>
> I have some ARM LPC2148 board (ARM7),some AVR ATMega 16/32 boards with
> basic LED Interface,Serial Communication,Relay Interface. I can connect RTC
> DS1307 over I2C and SD Card through SPI with ARM Board.
>
> I am working in the field of embedded electronics product
> development,Application design using Qt and Training students in embedded
> since 8+years and i have tried tutorial out there on LDD and taken few
> topics as guidelines for this tutorial.
>
> Every suggestion to devise a good tutorial with examples motivating
> students to learn the basics of this wonderful field and try something
> different apart from their curriculum.
>
> I am looking forward to your valuable contribution.
>
> Thanking you in anticipation.
>
> Best Regards,
> Gaurav Holey
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>


-- 
G B Rakesh
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Needs Valuable Suggestions for Important Topics

2013-01-31 Thread gaurav holey
Dear All,

This is gaurav. I would like to thank you all for your valuable
contribution to this community. I am in process of designing a introductory
training module for my students at the university for that i want
suggestions from everybody out there.

As you people working on the real stuff in industry, you know the potential
and importance of good tutorials at the early stage of ones career.I want
you to suggest me the topics in the increasing order of the complexity and
importance in industrial scenario.

I want to divide this module as Basics of Linux Kernel Programming and LDD
Programming with some hands on training.

I have some ARM LPC2148 board (ARM7),some AVR ATMega 16/32 boards with
basic LED Interface,Serial Communication,Relay Interface. I can connect RTC
DS1307 over I2C and SD Card through SPI with ARM Board.

I am working in the field of embedded electronics product
development,Application design using Qt and Training students in embedded
since 8+years and i have tried tutorial out there on LDD and taken few
topics as guidelines for this tutorial.

Every suggestion to devise a good tutorial with examples motivating
students to learn the basics of this wonderful field and try something
different apart from their curriculum.

I am looking forward to your valuable contribution.

Thanking you in anticipation.

Best Regards,
Gaurav Holey
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: How to make a bootable hard disk image?

2013-01-31 Thread horseriver

Thanks!

 If I just only want to make a bootable hard disk image ,how can I do?

thanks!

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: How to make a bootable hard disk image?

2013-01-31 Thread Paul Davies C
May I know how can I make the initrd image for a given kernel version in
order to boot it using QEMU?


On Thu, Jan 31, 2013 at 4:24 PM, Anuz Pratap Singh Tomar <
chambilketha...@gmail.com> wrote:

>
>
> On Wed, Jan 30, 2013 at 11:05 PM, horseriver wrote:
>
>> On Thu, Jan 31, 2013 at 03:09:00PM +0700, Mulyadi Santosa wrote:
>> > On Thu, Jan 31, 2013 at 4:44 AM, horseriver 
>> wrote:
>> > > On Thu, Jan 31, 2013 at 12:51:36PM +0700, Mulyadi Santosa wrote:
>> > >> On Thu, Jan 31, 2013 at 2:52 AM, horseriver 
>> wrote:
>> > >> > hi:)
>> > >> >
>> > >> >I want to boot kernel from hard disk image ,because i am using
>> a virtual machine .
>> > >> >How to make this bootable image   ?
>> > >> >After I  make it ,how do I put kernel Image into this image?
>> > >>
>> > >> If you are using qemu or kvm, you don't need to put the kernel inside
>> > >> the virtual machine image.
>> > >>
>> > >> Just use -kernel (or possibly -initrd) parameter and pass the path
>> and
>> > >> file name of your kernel image and you're good to go.
>> > >
>> > >   The path?
>> > >   How to write the path? You mean the virtual machine can share
>> physical
>> > >   hard disk with the host ,without its own hard disk image ?
>> >
>> > assume your virtual disk image is in /tmp/guest.img.
>> >
>> > Kernel is /tmp/kernel-image. Initrd is /tmp/initrd
>> >
>> > Usually, I invoke it this way:
>> > qemu -kernel /tmp/kernel-image -initrd /tmp/initrd -hda /tmp/guest.img
>>
>>   thanks!
>>   how does the /tmp/kernel-image made ?
>>
>> Really?
> your bzImage is your kernel-image.
>
>>
>> >
>> > Hope you got the idea
>> >
>> >
>> > --
>> > regards,
>> >
>> > Mulyadi Santosa
>> > Freelance Linux trainer and consultant
>> >
>> > blog: the-hydra.blogspot.com
>> > training: mulyaditraining.blogspot.com
>> >
>> > ___
>> > Kernelnewbies mailing list
>> > Kernelnewbies@kernelnewbies.org
>> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>> ___
>> Kernelnewbies mailing list
>> Kernelnewbies@kernelnewbies.org
>> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>>
>
>
>
> --
> Thank you
> Warm Regards
> Anuz
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
>


-- 
*Regards,*
*Paul Davies C*
vivafoss.blogspot.com
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: How to make a bootable hard disk image?

2013-01-31 Thread Anuz Pratap Singh Tomar
On Wed, Jan 30, 2013 at 11:05 PM, horseriver  wrote:

> On Thu, Jan 31, 2013 at 03:09:00PM +0700, Mulyadi Santosa wrote:
> > On Thu, Jan 31, 2013 at 4:44 AM, horseriver 
> wrote:
> > > On Thu, Jan 31, 2013 at 12:51:36PM +0700, Mulyadi Santosa wrote:
> > >> On Thu, Jan 31, 2013 at 2:52 AM, horseriver 
> wrote:
> > >> > hi:)
> > >> >
> > >> >I want to boot kernel from hard disk image ,because i am using a
> virtual machine .
> > >> >How to make this bootable image   ?
> > >> >After I  make it ,how do I put kernel Image into this image?
> > >>
> > >> If you are using qemu or kvm, you don't need to put the kernel inside
> > >> the virtual machine image.
> > >>
> > >> Just use -kernel (or possibly -initrd) parameter and pass the path and
> > >> file name of your kernel image and you're good to go.
> > >
> > >   The path?
> > >   How to write the path? You mean the virtual machine can share
> physical
> > >   hard disk with the host ,without its own hard disk image ?
> >
> > assume your virtual disk image is in /tmp/guest.img.
> >
> > Kernel is /tmp/kernel-image. Initrd is /tmp/initrd
> >
> > Usually, I invoke it this way:
> > qemu -kernel /tmp/kernel-image -initrd /tmp/initrd -hda /tmp/guest.img
>
>   thanks!
>   how does the /tmp/kernel-image made ?
>
> Really?
your bzImage is your kernel-image.

>
> >
> > Hope you got the idea
> >
> >
> > --
> > regards,
> >
> > Mulyadi Santosa
> > Freelance Linux trainer and consultant
> >
> > blog: the-hydra.blogspot.com
> > training: mulyaditraining.blogspot.com
> >
> > ___
> > Kernelnewbies mailing list
> > Kernelnewbies@kernelnewbies.org
> > http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: Kernel kallsyms

2013-01-31 Thread Anuz Pratap Singh Tomar
On Thu, Jan 31, 2013 at 10:28 AM, Shraddha Kamat  wrote:

> What are kernel kallsyms - and why are they used ?
>
> Please do google a bit before asking question. Any kernel book would give
explanation about kernel symbols( I think Robert Love's book have good
discussion about kallsyms).
Here is third google search result of you
http://onebitbug.me/2011/03/04/introducing-linux-kernel-symbols/

> -- shraddha
>
>
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>



-- 
Thank you
Warm Regards
Anuz
___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Kernel kallsyms

2013-01-31 Thread Shraddha Kamat
What are kernel kallsyms - and why are they used ?

-- shraddha


___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: How to make a bootable hard disk image?

2013-01-31 Thread horseriver
On Thu, Jan 31, 2013 at 03:09:00PM +0700, Mulyadi Santosa wrote:
> On Thu, Jan 31, 2013 at 4:44 AM, horseriver  wrote:
> > On Thu, Jan 31, 2013 at 12:51:36PM +0700, Mulyadi Santosa wrote:
> >> On Thu, Jan 31, 2013 at 2:52 AM, horseriver  wrote:
> >> > hi:)
> >> >
> >> >I want to boot kernel from hard disk image ,because i am using a 
> >> > virtual machine .
> >> >How to make this bootable image   ?
> >> >After I  make it ,how do I put kernel Image into this image?
> >>
> >> If you are using qemu or kvm, you don't need to put the kernel inside
> >> the virtual machine image.
> >>
> >> Just use -kernel (or possibly -initrd) parameter and pass the path and
> >> file name of your kernel image and you're good to go.
> >
> >   The path?
> >   How to write the path? You mean the virtual machine can share physical
> >   hard disk with the host ,without its own hard disk image ?
> 
> assume your virtual disk image is in /tmp/guest.img.
> 
> Kernel is /tmp/kernel-image. Initrd is /tmp/initrd
> 
> Usually, I invoke it this way:
> qemu -kernel /tmp/kernel-image -initrd /tmp/initrd -hda /tmp/guest.img

  thanks!
  how does the /tmp/kernel-image made ?
  

> 
> Hope you got the idea
> 
> 
> -- 
> regards,
> 
> Mulyadi Santosa
> Freelance Linux trainer and consultant
> 
> blog: the-hydra.blogspot.com
> training: mulyaditraining.blogspot.com
> 
> ___
> Kernelnewbies mailing list
> Kernelnewbies@kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies


Re: How to make a bootable hard disk image?

2013-01-31 Thread Mulyadi Santosa
On Thu, Jan 31, 2013 at 4:44 AM, horseriver  wrote:
> On Thu, Jan 31, 2013 at 12:51:36PM +0700, Mulyadi Santosa wrote:
>> On Thu, Jan 31, 2013 at 2:52 AM, horseriver  wrote:
>> > hi:)
>> >
>> >I want to boot kernel from hard disk image ,because i am using a 
>> > virtual machine .
>> >How to make this bootable image   ?
>> >After I  make it ,how do I put kernel Image into this image?
>>
>> If you are using qemu or kvm, you don't need to put the kernel inside
>> the virtual machine image.
>>
>> Just use -kernel (or possibly -initrd) parameter and pass the path and
>> file name of your kernel image and you're good to go.
>
>   The path?
>   How to write the path? You mean the virtual machine can share physical
>   hard disk with the host ,without its own hard disk image ?

assume your virtual disk image is in /tmp/guest.img.

Kernel is /tmp/kernel-image. Initrd is /tmp/initrd

Usually, I invoke it this way:
qemu -kernel /tmp/kernel-image -initrd /tmp/initrd -hda /tmp/guest.img

Hope you got the idea


-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com

___
Kernelnewbies mailing list
Kernelnewbies@kernelnewbies.org
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies