2009-07-19 00:50:56     Compilation of uClinux kernel failed

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

2009-07-19 00:50:56     Compilation of uClinux kernel failed

Kaustubh Vaidya (INDIA)

Message: 77622   

 

Hi,

 

I am compiling uClinux-dist-2008R1.5-RC3 kernel with blackfin-toolchain-08r1.5-14.But while compiling it gives me following errror,

 

/opt/uClinux/bfin-uclinux/bin/bfin-uclinux-mkimage: Can't map arch/blackfin/boot/vmImage: No such device

make[2]: *** [arch/blackfin/boot/vmImage] Error 1

make[1]: *** [vmImage] Error 2

make[1]: Leaving directory `/media/disk-1/uClinux-dist-2008/linux-2.6.x'

make: *** [linux] Error 1

 

 

So please help me solve to this problem.

 

Thank you.

QuoteReplyEditDelete

 

 

2009-07-19 01:08:34     Re: Compilation of uClinux kernel failed

Mike Frysinger (UNITED STATES)

Message: 77623   

 

are you sure you're using the right compiler ?  what was `bfin-uclinux-gcc --version` show ?

 

if you go into the linux-2.6.x dir and run `make`, does it work ?

QuoteReplyEditDelete

 

 

2009-07-19 03:07:48     Re: Compilation of uClinux kernel failed

Kaustubh Vaidya (INDIA)

Message: 77624   

 

[root@localhost ~]# bfin-uclinux-gcc --version

bfin-uclinux-gcc (GCC) 4.1.2 (ADI svn)

Copyright (C) 2006 Free Software Foundation, Inc.

This is free software; see the source for copying conditions.  There is NO

warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 

 

[root@localhost linux-2.6.x]# make

  CHK     include/linux/version.h

  CHK     include/linux/utsrelease.h

  CALL    scripts/checksyscalls.sh

  CHK     include/linux/compile.h

  UPD     include/linux/compile.h

  CC      init/version.o

  LD      init/built-in.o

  GEN     usr/initramfs_data.cpio.gz

  AS      usr/initramfs_data.o

  LD      usr/built-in.o

  GEN     .version

  CHK     include/linux/compile.h

  UPD     include/linux/compile.h

  CC      init/version.o

  LD      init/built-in.o

  LD      .tmp_vmlinux1

  KSYM    .tmp_kallsyms1.S

  AS      .tmp_kallsyms1.o

  LD      .tmp_vmlinux2

  KSYM    .tmp_kallsyms2.S

  AS      .tmp_kallsyms2.o

  LD      vmlinux

  SYSMAP  System.map

  SYSMAP  .tmp_System.map

  MODPOST vmlinux

  OBJCOPY arch/blackfin/boot/vmlinux.bin

  GZIP    arch/blackfin/boot/vmlinux.gz

  UIMAGE  arch/blackfin/boot/vmImage

/opt/uClinux/bfin-uclinux/bin/bfin-uclinux-mkimage: Can't map arch/blackfin/boot/vmImage: No such device

make[1]: *** [arch/blackfin/boot/vmImage] Error 1

make: *** [vmImage] Error 2

QuoteReplyEditDelete

 

 

2009-07-19 03:36:52     Re: Compilation of uClinux kernel failed

Mike Frysinger (UNITED STATES)

Message: 77625   

 

does arch/blackfin/boot/vmImage exist ?

 

you shouldnt be extracting/building as root ... but you have to delete everything and re-extract as non-root or your permissions are going to be screwed up

 

run `make V=1` and see what the mkimage command is and try running it by hand through strace

QuoteReplyEditDelete

 

 

2009-07-20 22:37:33     Re: Compilation of uClinux kernel failed

Qi Qiu (CHINA)

Message: 77780   

 

hi,Vaidya

 

I have got the samle promblem.I think you lost some lib.

 

you can see

 

  docs.blackfin.uclinux.org/doku.php?id=installing_linux

 

and install this lib

Attachments

    Outcomes