compile linux kernel 2.6.0 failed!

2013-01-01 Thread horse_rivers
hi,

   I am compiling kernel 2.6.0 with gcc 4.4.5, when linking , here comes the 
error :

  /usr/bin/ld: arch/i386/kernel/vsyscall-int80.so: Not enough room for program 
headers, try linking with -N

  I suspect that  gcc version is not compitable for ld , my ld is 2.20 version .

  I want to know what does this error mean ? and the general reason for this ?

 thanks!


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


Re:Re: Re:Re: gcc 2.95.3 compile failure

2012-12-20 Thread horse_rivers
At 2012-12-20 18:01:40,"Bernd Petrovitsch"  wrote:
>On Don, 2012-12-20 at 11:11 +0800, horse_rivers wrote:
>[]
>> becasue i want to compile linux 2.6 version  kernel ,which require  gcc2.95.3
>
>2.6 as such covers the range of years - look at the release dates from
>2.6.0 and 2.6.39.
>
>And requirements are usually the minimum (here: oldest) version.
>All remotely currently deployed gcc's (including from - but not limited
>to - Debian/stable over RedHat-Enterprise-6 to SUSE/Novell with and
>without updates) up to gcc-4.7.2 (most recent stable) should actually
>work.

that is saying the gcc4.7 can compile linux kernel 2.6.0-2.6.39  ?

Best Regards!

>
>Known broken versions in between are explicitly checked
>
>Kind regards,
>   Bernd
>-- 
>Bernd Petrovitsch  Email : be...@petrovitsch.priv.at
> LUGA : http://www.luga.at
>
>
>___
>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:Re: gcc 2.95.3 compile failure

2012-12-19 Thread horse_rivers
At 2012-12-19 22:54:30,"Thomas Petazzoni"  wrote:
>Dear horse_rivers,
>
>On Wed, 19 Dec 2012 22:10:07 +0800 (CST), horse_rivers wrote:
>
>>   I am trying to  compile gcc2.95.3 ,after I patch  source code , and configure , make 
>
>Do you know we are in 2012 ?
>
>Some people are even saying that the end of the world will be in two
>days. So what do you risk at trying with a sane, recent, version of
>gcc, instead of the prehistoric 2.95 version?

becasue i want to compile linux 2.6 version  kernel ,which require  gcc2.95.3

Best regards

>
>Best regards,
>
>Thomas
>-- 
>Thomas Petazzoni, Free Electrons
>Kernel, drivers, real-time and embedded Linux
>development, consulting, training and support.
>http://free-electrons.com

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


gcc 2.95.3 compile failure

2012-12-19 Thread horse_rivers
hi:

  I am trying to  compile gcc2.95.3 ,after I patch  source code , and configure 
, make 

  fail with this :gcc-2.95.3/libio/streambuf.h:37: parse error before `}'

  I find this line is     35  extern "C" {
                               36    #include 
                              37 }

how can I fix this error?


thanks!

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


Re:Re: can I input a gate service to kernel to get kernel data to user ?

2012-12-13 Thread horse_rivers
At 2012-12-13 18:11:24,"Daniel Baluta"  wrote:
>On Thu, Dec 13, 2012 at 5:17 AM, horse_rivers  wrote:
>> is there method for doing this work? take kernel data to user?
>
>Check copy_to_user [1].

how can user application achive to getting data from kernel , I have no idea 
about  procedure for implementing this quest

is there some advice ?

BestRegards!
 
>
>thanks,
>Daniel.
>
>[1] http://lxr.linux.no/#linux+v3.7/arch/x86/lib/usercopy_32.c#L715
>
>___
>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:Re: can I input a gate service to kernel to get kernel data to user ?

2012-12-13 Thread horse_rivers
At 2012-12-13 18:52:53,"Matthias Brugger"  wrote:
>On 12/13/2012 04:17 AM, horse_rivers wrote:
>> is there method for doing this work? take kernel data to user?
>
>I think copy_to_user is what you are looking for:
>http://lxr.free-electrons.com/source/include/asm-generic/uaccess.h#L253
>

thanks !

can this function run at user level ?

when programme is   at user level , can  I use this function to get kernel text 
segment data ,and then analysis it ?

BestRegards!

>Cheers,
>Matthias
>
>>
>>
>> thanks!
>>
>> ___
>> 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

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


can I input a gate service to kernel to get kernel data to user ?

2012-12-12 Thread horse_rivers
is there method for doing this work? take kernel data to user?


thanks!

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


topic about old linux kernel version 0.11

2012-12-03 Thread horse_rivers
hi,

   I use bochs to boot linux 0.11 kernel .I put kernel image to floppy , when 
it run to mount root-file system , it prints 

  "reset floppy called" 


  hoe to continue with this issure?


thanks!

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


Re:Re: how to use kgtp in kernel debuging ?

2012-12-03 Thread horse_rivers
At 2012-11-28 22:54:01,"Mulyadi Santosa"  wrote:
>On Wed, Nov 28, 2012 at 8:03 AM, horse_rivers  wrote:
>> hi:
>>
>> I want to trace kernel of linux 1.0 version ,and now I have compile sucessfully a 1.0 kernel with source code .
>>
>>but how to use kgtp tools to trace kernel ?
>
>kgtp? or kgdb?
   
it is kgtp,kernel debug trace 

Thanks!
BestRegards!
>


>-- 
>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


what is tty* in /edv file folder?

2012-11-28 Thread horse_rivers
hi:


   I find in /dev/ file folder ,there are many tty* , which is like  
tty0,ty1,tty7,tty9,and son on.

  I do not know what is this ?

   my computer may not have so many device

thanks!

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


how to use kgtp in kernel debuging ?

2012-11-27 Thread horse_rivers
hi:

    I want to trace kernel of linux 1.0 version ,and now I have compile 
sucessfully a 1.0 kernel with source code .

   but how to use kgtp tools to trace kernel ?

   what is target side and what is host ?


thanks!

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


Re:Re: Re: Does kernel Image file contains the elf format information ?

2012-11-27 Thread horse_rivers
At 2012-11-27 15:58:39,"Mulyadi Santosa"  wrote:
>On Tue, Nov 27, 2012 at 2:08 PM, horse_rivers  wrote:
>>and  this  file can  boot inux os ?  if I put this file into  floppy ,and boot from floppy ,can I boot this kernel ?
>
>as long as your bootloader could load and boot it, then "yes"
>
  this is to say, there is a interpreter working for analysis elf informayion ?

 thanks!
>-- 
>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


Re:Re: Does kernel Image file contains the elf format information ?

2012-11-26 Thread horse_rivers
At 2012-11-27 13:10:37,"Kumar amit mehta"  wrote:
>On Tue, Nov 27, 2012 at 12:44:45PM +0800, horse_rivers wrote:
>> hi,
>>when we compile kernel,gcc will put elf format information into the target file ,then we use build-tools construct the kernel Image,
>> 
>>   during this procedure,will elf information be copyed into Image file ?
>> 
>Yes, it does but as you know that the kernel image will be in the compressed
>format, therefore you'll have to decompress it first. I tried following with my
>kernel image and then I was able to use the 'readelf' and 'objdump' on the
>extracted elf:
>
   and  this  file can  boot inux os ?  if I put this file into  floppy ,and 
boot from floppy ,can I boot this kernel ?

thanks!

>amit@ubuntu:/tmp$ cp /boot/vmlinuz-3.7.0-rc3-next-20121029 /tmp/
>amit@ubuntu:/tmp$ od -A d -t x1 vmlinuz-3.7.0-rc3-next-20121029 | grep '1f 8b 08
>00'
>0016992 f3 a5 fc 5e 8d 83 b4 91 4f 00 ff e0 1f 8b 08 00
> 
>amit@ubuntu:/tmp$ dd if=vmlinuz bs=1 skip=17004 | zcat > vmlinux
>
>How did i calculated 17004 ?
>0016992 + offset of GZ signature(1f 8b 08 00), i.e.
>0016992 + 12
>
>amit@ubuntu:/tmp$ dd if=vmlinuz-3.7.0-rc3-next-20121029 bs=1 skip=17004 | 
>zcat > vmlinux
>5233764+0 records in
>5233764+0 records out
>5233764 bytes (5.2 MB) copied
>
>amit@ubuntu:/tmp$ file vmlinux
>vmlinux: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), statically
>linked, BuildID[sha1]=0xb874d61ffd40167270bdc1a95274976200223cc0, stripped
>
>amit@ubuntu:/tmp$ objdump -f vmlinux
>
>vmlinux: file format elf32-i386
>architecture: i386, flags 0x0102:
>EXEC_P, D_PAGED
>start address 0x0100
>
>For more information check the link [1] below.
>
>- Amit
>
>[1] http://forums.codeguru.com/showthread.php?415186-convert-vmlinuz-to-vmlinux

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


Does kernel Image file contains the elf format information ?

2012-11-26 Thread horse_rivers
hi,
   when we compile kernel,gcc will put elf format information into the target 
file ,then we use build-tools construct the kernel Image,

  during this procedure,will elf information be copyed into Image file ?


thanks!
BestRegards!

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


Re:Re: Re: Re: problem with kernel make in debian

2012-11-21 Thread horse_rivers
 
>don't top post, ok? :)

ok:)


>And good luck. Don't forget to share your progress, ok? ;)
 of cource!
 as you say,the current gcc do not  support  some code,

for example :   1.  inline asm code  form 
                     2. CFLAG can not pass to subdirs


my process is continuing .  :)

 

BestRegards!

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


what is the difference between kmalloc and vmalloc?

2012-11-21 Thread horse_rivers
thanks!

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


Re:Re: Re: problem with kernel make in debian

2012-11-20 Thread horse_rivers

thank  you !

I have got a 0.11 version kernel which has been modified to be compatible  for 
the current version of toolchain?

and I think I can also  do this work   for 1.0 version   ! 

BestRegards!

At 2012-11-20 18:36:20,"Mulyadi Santosa"  wrote:
>Hi :)
>
>On Tue, Nov 20, 2012 at 8:30 AM, horse_rivers  wrote:
>>
>> thanks!
>>
>> do you mean that the compile environment is not confortable for linux2.0?
>
>generally, yes, that's what I meant. However, if you're patient, you
>can modify the source to better match the environment. But I am not
>sure, how much effort you will spend.
>
>Try googling, some one else did something similar for linux kernel
>0.1. Maybe you can get idea from that. Sorry, I have no URL in  hand
>right now.
>
>> but I find  from google  that I can do some modify for this done well .
>
>but, does the document explain whether the result is really compatible
>with current version of toolchain?
>
>> gensymb is a tool,which deal with kernel sysmboles.of course,it  can be installed .
>
>never heard of it...but again, can you find the source ?
>
>
>-- 
>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:Re: problem with kernel make in debian

2012-11-19 Thread horse_rivers

thanks!

do you mean that the compile environment is not confortable for linux2.0?
but I find  from google  that I can do some modify for this done well .

gensymb is a tool,which deal with kernel sysmboles.of course,it  can be 
installed .


BestRegards! 

At 2012-11-20 02:11:56,"Mulyadi Santosa"  wrote:
>On Mon, Nov 19, 2012 at 12:32 PM, horse_rivers  wrote:
>> hi,
>>
>> when I make kernel linux2.0  in debian ,which first do "make dep" ,but since it find no gensymb tool ,so it failed.
>
>do I read correctly that you wanna compile linux kernel version 2.0?
>On top of modern distro such as Slackware 13.37?
>
>I think you will fail...unless, you use ported kernel that is
>compile-able with recent gcc toolchain.
>
>
>-- 
>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


problem with kernel make in debian

2012-11-18 Thread horse_rivers
hi,
   
    when I make kernel linux2.0  in debian ,which first do "make dep" ,but 
since it find no gensymb tool ,so it failed.

    how to resolve this issure?

   

thanks sincerely!

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