2008-04-24 06:33:37     error while compiling the kernel in page_alloc.c,help!

Document created by Aaronwu Employee on Aug 6, 2013
Version 1Show Document
  • View in full screen mode

2008-04-24 06:33:37     error while compiling the kernel in page_alloc.c,help!

chong yuan (CHINA)

Message: 54848   

 

hi,all!

 

my development enviroment is : fedora8 linux installed in vmware6 ,blackfin-toolchain-08r1-8.i386.rpm, blackfin-

 

toolchain-uclibc-full-08r1-8.i386.rpm, uClinux-dist-2008R1-RC8.tar.bz2

 

i installed toolchain and uclibc and extracted the uClinux-dist-2008R1-RC8.tar.bz2 in ' / ' derectory.

 

then,i ' make menuconfig ' in ' linux2.6.x ' ,i made no change except  for choosing cpu bf561 and bf561-ezkit board.

 

while compiling the kernel in ' linux2.6.x ' derectory,the following error occured :

 

  CC      mm/page_alloc.o

mm/page_alloc.c: In function ‘__alloc_pages’:

mm/page_alloc.c:1371: error: ‘CONFIG_BIG_ORDER_ALLOC_NOFAIL_MAGIC’ undeclared (first use in this function)

 

mm/page_alloc.c:1371: error: (Each undeclared identifier is reported only once

mm/page_alloc.c:1371: error: for each function it appears in.)

make[1]: *** [mm/page_alloc.o] Error 1

make: *** [mm] Error 2

 

what can i do?

 

thank you all.

TranslateQuoteReplyEditDelete

 

 

2008-04-24 08:50:43     Re: error while compiling the kernel in page_alloc.c,help!

Robin Getz (UNITED STATES)

Message: 54856    Chong:

 

Are you sure you didn't run out of space when installing things? what does "df -h" show?

 

What does:

rgetz@imhotep:~/blackfin/trunk/uClinux-dist/linux-2.6.x> grep BIG_ORDER_ALLOC_NOFAIL_MAGIC .config

CONFIG_BIG_ORDER_ALLOC_NOFAIL_MAGIC=3

 

show?

 

-Robin

QuoteReplyEditDelete

 

 

2008-04-24 09:50:11     Re: error while compiling the kernel in page_alloc.c,help!

chong yuan (CHINA)

Message: 54865   

 

Robin:

 

thank you for your reply in time!

 

i tried what you said ,it showed as :

 

[root@david linux-2.6.x]# df -h

Filesystem            Size  Used Avail Use% Mounted on

/dev/mapper/VolGroup00-LogVol00

                                 7.6G  6.5G  734M  90% /

/dev/sda1             190M   13M  168M   7% /boot

tmpfs                    252M   12K  252M   1% /dev/shm

dev/sr0                   3.2G  3.2G     0 100% /media/Fedora 8 i386 DVD

[root@david linux-2.6.x]# grep BIG_ORDER_ALLOC_NOFAIL_MAGIC .config

[root@david linux-2.6.x]#

 

'CONFIG_BIG_ORDER_ALLOC_NOFAIL_MAGIC=3' was not shown.

 

i did the following change in mm/page_alloc.c:

 

//  if ((order <= CONFIG_BIG_ORDER_ALLOC_NOFAIL_MAGIC) || (gfp_mask & __GFP_REPEAT))

    if ((order <= 3) || (gfp_mask & __GFP_REPEAT))

 

but following error occoured:

 

CC [M]  drivers/dma/ioatdma.o

In file included from drivers/dma/ioatdma.c:34:

drivers/dma/ioatdma.h:118: error: expected specifier-qualifier-list before ‘DECLARE_PCI_UNMAP_ADDR’

drivers/dma/ioatdma.c: In function ‘do_ioat_dma_memcpy’:

drivers/dma/ioatdma.c:303: warning: implicit declaration of function ‘pci_unmap_addr_set

drivers/dma/ioatdma.c:304: error: ‘dst’ undeclared (first use in this function)

drivers/dma/ioatdma.c:304: error: (Each undeclared identifier is reported only once

drivers/dma/ioatdma.c:304: error: for each function it appears in.)

drivers/dma/ioatdma.c:305: warning: implicit declaration of function ‘pci_unmap_len_set’

drivers/dma/ioatdma.c:305: error: ‘src_len’ undeclared (first use in this function)

drivers/dma/ioatdma.c:306: error: ‘dst_len’ undeclared (first use in this function)

drivers/dma/ioatdma.c: In function ‘ioat_dma_memcpy_buf_to_pg’:

drivers/dma/ioatdma.c:371: warning: implicit declaration of function ‘pci_map_page’

drivers/dma/ioatdma.c: In function ‘ioat_dma_memcpy_cleanup’:

drivers/dma/ioatdma.c:476: warning: implicit declaration of function ‘pci_unmap_page’

drivers/dma/ioatdma.c:477: warning: implicit declaration of function ‘pci_unmap_addr’

drivers/dma/ioatdma.c:477: error: ‘dst’ undeclared (first use in this function)

drivers/dma/ioatdma.c:478: warning: implicit declaration of function ‘pci_unmap_len’

drivers/dma/ioatdma.c:478: error: ‘dst_len’ undeclared (first use in this function)

drivers/dma/ioatdma.c:481: error: ‘src’ undeclared (first use in this function)

drivers/dma/ioatdma.c:482: error: ‘src_len’ undeclared (first use in this function)

make[2]: *** [drivers/dma/ioatdma.o] Error 1

make[1]: *** [drivers/dma] Error 2

make: *** [drivers] Error 2

 

i think some header files are lost,but why?

 

my hard disk is not full, and i exacted the package using 'tar xjvf uClinux-dist-2008R1-RC8.tar.bz2'

 

-chong

TranslateQuoteReplyEditDelete

 

 

2008-04-24 11:05:58     Re: error while compiling the kernel in page_alloc.c,help!

Robin Getz (UNITED STATES)

Message: 54872    Chong:

 

Do not change your source. revert all your changes.

 

do a:

rgetz@imhotep:~/blackfin/trunk/uClinux-dist> make AnalogDevices/BF537-STAMP_default

 

and try that.

 

-Robin

QuoteReplyEditDelete

 

 

2008-04-24 15:58:15     Re: error while compiling the kernel in page_alloc.c,help!

Mike Frysinger (UNITED STATES)

Message: 54895    looks like you've severely misconfigured your kernel ... reset to a known working default as Robin suggested

QuoteReplyEditDelete

 

 

2008-04-25 09:18:30     Re: error while compiling the kernel in page_alloc.c,help!

chong yuan (CHINA)

Message: 54957   

 

Robin&Mike:

 

Thank you both!

 

i solved the problem by using "make AnalogDevices/BF561-EZKIT_default" in uClinux-dist directory.

 

Is it necessory to "make AnalogDevices/BF561-EZKIT_default"  to compiling the kernel for the first time?why?

 

what is the difference between vmimage and uimage?

 

where is the rootfs file?

 

Thank you again!

 

 

TranslateQuoteReplyEditDelete

 

 

2008-04-25 17:20:48     Re: error while compiling the kernel in page_alloc.c,help!

Mike Frysinger (UNITED STATES)

Message: 54963    it isnt required, it's just known to work

 

uImages contain a root filesystem while vmImages do not

QuoteReplyEditDelete

 

 

2008-04-25 22:47:36     回复: Re: error while compiling the kernel in page_alloc.c,help!

chong yuan (CHINA)

Message: 54972    Thank you very much!!

Attachments

    Outcomes