compile (newbie)

compile (newbie)

am 05.02.2011 05:12:37 von Roberto Spadim

hi, how could i compile raid1.c?

i have kernel headers, kernel source, kernel binary
all my md (raid1,raid5,raid0,all md options on make menuconfig) are modules

could i just goto md directory and
gcc raid1.c
?

--
Roberto Spadim
Spadim Technology / SPAEmpresarial
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: compile (newbie)

am 05.02.2011 07:02:26 von NeilBrown

On Sat, 5 Feb 2011 02:12:37 -0200 Roberto Spadim
wrote:

> hi, how could i compile raid1.c?
>
> i have kernel headers, kernel source, kernel binary
> all my md (raid1,raid5,raid0,all md options on make menuconfig) are modules
>
> could i just goto md directory and
> gcc raid1.c
> ?
>

From the top level in the kernel tree run

make drivers/md/raid1.o

or
make drivers/md/raid1.ko

to get a kernel module that you can load (if you are running a compatible
kernel).

NeilBrown
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: compile (newbie)

am 05.02.2011 15:33:02 von Roberto Spadim

nice thanks neil

2011/2/5 NeilBrown :
> On Sat, 5 Feb 2011 02:12:37 -0200 Roberto Spadim br>
> wrote:
>
>> hi, how could i compile raid1.c?
>>
>> i have kernel headers, kernel source, kernel binary
>> all my md (raid1,raid5,raid0,all md options on make menuconfig) are =
modules
>>
>> could i just goto md directory and
>> gcc raid1.c
>> ?
>>
>
> =A0From the top level in the kernel tree run
>
> =A0make drivers/md/raid1.o
>
> =A0or
> =A0make drivers/md/raid1.ko
>
> =A0to get a kernel module that you can load (if you are running a com=
patible
> =A0kernel).
>
> NeilBrown
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid"=
in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at =A0http://vger.kernel.org/majordomo-info.html
>



--=20
Roberto Spadim
Spadim Technology / SPAEmpresarial
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" i=
n
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: compile (newbie)

am 05.02.2011 15:50:15 von Roberto Spadim

what diference between raid1.ko, and raid1.o ?
sorry i'm new to kernel modules

2011/2/5 Roberto Spadim :
> nice thanks neil
>
> 2011/2/5 NeilBrown :
>> On Sat, 5 Feb 2011 02:12:37 -0200 Roberto Spadim br>
>> wrote:
>>
>>> hi, how could i compile raid1.c?
>>>
>>> i have kernel headers, kernel source, kernel binary
>>> all my md (raid1,raid5,raid0,all md options on make menuconfig) are=
modules
>>>
>>> could i just goto md directory and
>>> gcc raid1.c
>>> ?
>>>
>>
>> =A0From the top level in the kernel tree run
>>
>> =A0make drivers/md/raid1.o
>>
>> =A0or
>> =A0make drivers/md/raid1.ko
>>
>> =A0to get a kernel module that you can load (if you are running a co=
mpatible
>> =A0kernel).
>>
>> NeilBrown
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-raid=
" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at =A0http://vger.kernel.org/majordomo-info.html
>>
>
>
>
> --
> Roberto Spadim
> Spadim Technology / SPAEmpresarial
>



--=20
Roberto Spadim
Spadim Technology / SPAEmpresarial
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" i=
n
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: compile (newbie)

am 05.02.2011 16:40:37 von mathias.buren

On 5 February 2011 14:50, Roberto Spadim wrote:
> what diference between raid1.ko, and raid1.o ?
> sorry i'm new to kernel modules
>
> 2011/2/5 Roberto Spadim :
>> nice thanks neil
>>
>> 2011/2/5 NeilBrown :
>>> On Sat, 5 Feb 2011 02:12:37 -0200 Roberto Spadim m.br>
>>> wrote:
>>>
>>>> hi, how could i compile raid1.c?
>>>>
>>>> i have kernel headers, kernel source, kernel binary
>>>> all my md (raid1,raid5,raid0,all md options on make menuconfig) ar=
e modules
>>>>
>>>> could i just goto md directory and
>>>> gcc raid1.c
>>>> ?
>>>>
>>>
>>>  From the top level in the kernel tree run
>>>
>>>  make drivers/md/raid1.o
>>>
>>>  or
>>>  make drivers/md/raid1.ko
>>>
>>>  to get a kernel module that you can load (if you are running =
a compatible
>>>  kernel).
>>>
>>> NeilBrown
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-rai=
d" in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at  http://vger.kernel.org/majordomo-info.=
html
>>>
>>
>>
>>
>> --
>> Roberto Spadim
>> Spadim Technology / SPAEmpresarial
>>
>
>
>
> --
> Roberto Spadim
> Spadim Technology / SPAEmpresarial
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid"=
in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.ht=
ml
>

http://tinyurl.com/5tyg7b3 .

// Mathias
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" i=
n
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: compile (newbie)

am 05.02.2011 16:43:46 von Roberto Spadim

ehehehehehe thanks!

2011/2/5 Mathias Bur=E9n :
> On 5 February 2011 14:50, Roberto Spadim wrot=
e:
>> what diference between raid1.ko, and raid1.o ?
>> sorry i'm new to kernel modules
>>
>> 2011/2/5 Roberto Spadim :
>>> nice thanks neil
>>>
>>> 2011/2/5 NeilBrown :
>>>> On Sat, 5 Feb 2011 02:12:37 -0200 Roberto Spadim om.br>
>>>> wrote:
>>>>
>>>>> hi, how could i compile raid1.c?
>>>>>
>>>>> i have kernel headers, kernel source, kernel binary
>>>>> all my md (raid1,raid5,raid0,all md options on make menuconfig) a=
re modules
>>>>>
>>>>> could i just goto md directory and
>>>>> gcc raid1.c
>>>>> ?
>>>>>
>>>>
>>>> =A0From the top level in the kernel tree run
>>>>
>>>> =A0make drivers/md/raid1.o
>>>>
>>>> =A0or
>>>> =A0make drivers/md/raid1.ko
>>>>
>>>> =A0to get a kernel module that you can load (if you are running a =
compatible
>>>> =A0kernel).
>>>>
>>>> NeilBrown
>>>> --
>>>> To unsubscribe from this list: send the line "unsubscribe linux-ra=
id" in
>>>> the body of a message to majordomo@vger.kernel.org
>>>> More majordomo info at =A0http://vger.kernel.org/majordomo-info.ht=
ml
>>>>
>>>
>>>
>>>
>>> --
>>> Roberto Spadim
>>> Spadim Technology / SPAEmpresarial
>>>
>>
>>
>>
>> --
>> Roberto Spadim
>> Spadim Technology / SPAEmpresarial
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-raid=
" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at =A0http://vger.kernel.org/majordomo-info.html
>>
>
> http://tinyurl.com/5tyg7b3 .
>
> // Mathias
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid"=
in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at =A0http://vger.kernel.org/majordomo-info.html
>



--=20
Roberto Spadim
Spadim Technology / SPAEmpresarial
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" i=
n
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html

Re: compile (newbie)

am 05.02.2011 17:19:06 von Roberto Spadim

another question, i just founded sysfs todo, for proc fs have a lot of =
examples
any example for (how to code) sysfs?
thanks

2011/2/5 Roberto Spadim :
> ehehehehehe thanks!
>
> 2011/2/5 Mathias Bur=E9n :
>> On 5 February 2011 14:50, Roberto Spadim wro=
te:
>>> what diference between raid1.ko, and raid1.o ?
>>> sorry i'm new to kernel modules
>>>
>>> 2011/2/5 Roberto Spadim :
>>>> nice thanks neil
>>>>
>>>> 2011/2/5 NeilBrown :
>>>>> On Sat, 5 Feb 2011 02:12:37 -0200 Roberto Spadim com.br>
>>>>> wrote:
>>>>>
>>>>>> hi, how could i compile raid1.c?
>>>>>>
>>>>>> i have kernel headers, kernel source, kernel binary
>>>>>> all my md (raid1,raid5,raid0,all md options on make menuconfig) =
are modules
>>>>>>
>>>>>> could i just goto md directory and
>>>>>> gcc raid1.c
>>>>>> ?
>>>>>>
>>>>>
>>>>> =A0From the top level in the kernel tree run
>>>>>
>>>>> =A0make drivers/md/raid1.o
>>>>>
>>>>> =A0or
>>>>> =A0make drivers/md/raid1.ko
>>>>>
>>>>> =A0to get a kernel module that you can load (if you are running a=
compatible
>>>>> =A0kernel).
>>>>>
>>>>> NeilBrown
>>>>> --
>>>>> To unsubscribe from this list: send the line "unsubscribe linux-r=
aid" in
>>>>> the body of a message to majordomo@vger.kernel.org
>>>>> More majordomo info at =A0http://vger.kernel.org/majordomo-info.h=
tml
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Roberto Spadim
>>>> Spadim Technology / SPAEmpresarial
>>>>
>>>
>>>
>>>
>>> --
>>> Roberto Spadim
>>> Spadim Technology / SPAEmpresarial
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-rai=
d" in
>>> the body of a message to majordomo@vger.kernel.org
>>> More majordomo info at =A0http://vger.kernel.org/majordomo-info.htm=
l
>>>
>>
>> http://tinyurl.com/5tyg7b3 .
>>
>> // Mathias
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-raid=
" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at =A0http://vger.kernel.org/majordomo-info.html
>>
>
>
>
> --
> Roberto Spadim
> Spadim Technology / SPAEmpresarial
>



--=20
Roberto Spadim
Spadim Technology / SPAEmpresarial
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" i=
n
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html