2010-04-05 12:27:43     Problem while creating kernel whats wrong ?

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

2010-04-05 12:27:43     Problem while creating kernel whats wrong ?

Raphael Lang (GERMANY)

Message: 88098   

 

Hello together,

 

I tried alot different setting to make a valid kernel but everything failed.

 

when I download the precompiled kernel from the website and upload to the board with

 

tftpboot 0x2000000 uImage its working well.

 

The Kernel is installed at:

 

home/raphael/Desktop/uC-dist/uClinux-dist/linux-2.6.x

 

But when I compile my own kernel with default settings 1. menu xconfig and 2. make

 

I become that error:

 

bfin-uclinux-gcc -pipe -Wall -g -O2      -mcpu=bf537-0.2 -Wall -Werror -DUSING_FLASH_FILESYSTEM=1 -DFLATFSD_VERSION='"3.0.1fs"' -DEMBED -D__uClinux__ -I/home/raphael/Desktop/uC-dist/uClinux-dist  -mcpu=bf537-0.2  -c -o flatfsd.o flatfsd.c

flatfsd.c:29:28: Fehler: linux/autoconf.h: No such file or directory

make[3]: *** [flatfsd.o] Fehler 1

make[3]: Verlasse Verzeichnis '/home/raphael/Desktop/uC-dist/uClinux-dist/user/flatfsd'

make[2]: *** [flatfsd] Fehler 2

make[2]: Verlasse Verzeichnis '/home/raphael/Desktop/uC-dist/uClinux-dist/user'

make[1]: *** [all] Fehler 2

make[1]: Verlasse Verzeichnis '/home/raphael/Desktop/uC-dist/uClinux-dist/user'

make: *** [subdirs] Fehler 1

raphael@raphael:~/Desktop/uC-dist/uClinux-dist$

 

so there is only in vmImage,vmImage.gz and vmlinux.bin, vmlinux.gz

 

in the arch/blackfin/boot directory but no uImage or linux.initramfs

 

I also checked

 

General setup  --->

  [*] Initial RAM filesystem and RAM disk (initramfs/initrd) support

 

 

 

but they failed to boot with U-Boot, and I can not check them with iminfo.

 

they hang on, or have no root file system

 

Who knows what is wrong ?

 

Thanks for help

 

Raph

 

My makefile:

 

#

 

# arch/blackfin/boot/Makefile

 

#

 

# This file is subject to the terms and conditions of the GNU General Public

 

# License.  See the file "COPYING" in the main directory of this archive

 

# for more details.

 

#

 

 

MKIMAGE := $(srctree)/scripts/mkuboot.sh

 

 

targets := vmImage vmImage.bz2 vmImage.gz vmImage.lzma

 

extra-y += vmlinux.bin vmlinux.gz

 

 

quiet_cmd_uimage = UIMAGE  $@

 

      cmd_uimage = $(CONFIG_SHELL) $(MKIMAGE) -A $(ARCH) -O linux -T kernel \

 

                   -C $(2) -n 'Linux-$(KERNELRELEASE)' -a $(CONFIG_BOOT_LOAD) \

 

                   -e $(shell $(NM) vmlinux | awk '$$NF == "__start" {print $$1}') \

 

                   -d $< $@

 

 

 

 

$(obj)/vmlinux.bin: vmlinux FORCE

 

    $(call if_changed,objcopy)

 

 

$(obj)/vmlinux.gz: $(obj)/vmlinux.bin FORCE

 

    $(call if_changed,gzip)

 

 

$(obj)/vmlinux.bz2: $(obj)/vmlinux.bin FORCE

 

    $(call if_changed,bzip2)

 

 

$(obj)/vmlinux.lzma: $(obj)/vmlinux.bin FORCE

 

    $(call if_changed,lzma)

 

 

$(obj)/vmImage.bz2: $(obj)/vmlinux.bz2

 

    $(call if_changed,uimage,bzip2)

 

 

$(obj)/vmImage.gz: $(obj)/vmlinux.gz

 

    $(call if_changed,uimage,gzip)

 

 

$(obj)/vmImage.lzma: $(obj)/vmlinux.lzma

 

    $(call if_changed,uimage,lzma)

 

 

$(obj)/vmImage: $(obj)/vmImage.gz

 

    @ln -sf $(notdir $<) $@

 

 

install:

 

    sh $(srctree)/$(src)/install.sh $(KERNELRELEASE) $(BOOTIMAGE) System.map "$(INSTALL_PATH)"

TranslateQuoteReplyEditDelete

 

 

2010-04-05 18:16:35     Re: Problem while creating kernel whats wrong ?

Mike Frysinger (UNITED STATES)

Message: 88104   

 

dont enable flatfsd.  it's a useless program.

QuoteReplyEditDelete

 

 

2010-04-06 08:45:46     Re: Problem while creating kernel whats wrong ?

Raphael Lang (GERMANY)

Message: 88146   

 

Thanks,

 

I also disabled nfsmount because it also reporting a bug.h

 

I upload the kernel and it works...thanks after one week frustration.

 

Did i need nfsmount to boot from mmc card over spi ?

 

thanks

 

 

 

Raph

TranslateQuoteReplyEditDelete

 

 

2010-04-06 10:52:53     Re: Problem while creating kernel whats wrong ?

Mike Frysinger (UNITED STATES)

Message: 88150   

 

nfsmount, as the name implies, is only for mounting nfs filesystems.  mmc cards are not accessed over the network.

Attachments

    Outcomes