Linux MIPS Architecture development
 help / color / mirror / Atom feed
From: sathesh babu <sathesh_edara2003@yahoo.co.in>
To: Jim Gifford <maillist@jg555.com>, Jim Wilson <wilson@specifix.com>
Cc: sathesh babu <sathesh_edara2003@yahoo.co.in>, linux-mips@linux-mips.org
Subject: Re: linux-libc-headers-2.6.17
Date: Tue, 3 Oct 2006 15:35:44 +0100 (BST)	[thread overview]
Message-ID: <20061003143545.37395.qmail@web7913.mail.in.yahoo.com> (raw)
In-Reply-To: <4512134B.40006@jg555.com>

[-- Attachment #1: Type: text/plain, Size: 2317 bytes --]

Hi Jim,
      
I have downloaded 2.6.18 sanitized headers from the following link which was suggested by you.
  http://ftp.jg555.com/headers 
   
  I am trying to build the toolchain for MIPS for linux-2.6.18 kernel using these headers and uClibc-0.9.28 and gcc-3.4.3.
  When i tried to compile busybox-1.00 i get the following error 
  "undefined reference to `getpageshift' ".
   
  Then i searched in the mailing list and found your article
  http://linuxfromscratch.org/pipermail/lfs-dev/2006-July/057591.html
   
  I added the following definition for getpageshift(), suggested in the above link in the asm-mips/page.h file
   
   Here is a santized version
> #define PAGE_SIZE       (getpagesize())
> static __inline__ int getpageshift()
> {
>     int pagesize = getpagesize();
>     return (__builtin_clz(pagesize) ^ 31);
> }

  I am not able to find definition for getpagesize().Can you please help me finding the definition for same. Is it in kernel or in userland?.
   
  BTW:
   
    I tried the same thing on Linux-2.6.17.13. I could build the toolchain by modifying the page.h as mentioned above. I could build the images for both Linux-2.6.17.13 and root file system for MIPS processor.But when i tried to execute any command pointing to busybox i was getting kernel crash.
   
  When i tried to debug this issue i found that "asm/page.h" file is included in some of the files in the busybox.
   
  Is this crash because of getpageshift() which is defined in asm-mips/page.h.?.
   
  What is the expected output of getpagesize()?.
   
  Could you advise a solution for this?.
   
   
  Regards,
  Sathesh
   
   
  
Jim Gifford <maillist@jg555.com> wrote:
  Jim Wilson wrote:
> I'd suggest looking at Dan Kegel's crosstool package, which provides
> scripts showing how to do a build from scratch. There is a pointer to
> it on the www.linux-mips.org wiki. See
> http://www.linux-mips.org/wiki/Toolchains
> 
Actually my Cross-LFS team has created a sanitation script to clean the 
headers, you can get the script from http://headers.cross-lfs.org, or 
you can download a bundle from http://ftp.jg555.com/headers




 				
---------------------------------
 Find out what India is talking about on  - Yahoo! Answers India 
 Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW

[-- Attachment #2: Type: text/html, Size: 3574 bytes --]

      parent reply	other threads:[~2006-10-03 14:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-09-20  9:18 linux-libc-headers-2.6.17 sathesh babu
2006-09-20 19:07 ` linux-libc-headers-2.6.17 Jim Wilson
2006-09-21  4:21   ` linux-libc-headers-2.6.17 Jim Gifford
2006-09-21 12:31     ` linux-libc-headers-2.6.17 sathesh babu
2006-10-03 14:35     ` sathesh babu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061003143545.37395.qmail@web7913.mail.in.yahoo.com \
    --to=sathesh_edara2003@yahoo.co.in \
    --cc=linux-mips@linux-mips.org \
    --cc=maillist@jg555.com \
    --cc=wilson@specifix.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox