Results 1 to 7 of 7
I am trying to compile the 2.6.18 kernel [obtained from kernel.org] and set it up so it can be ported to an board using a StrongARM SA1110 Processor. I don't ...
- 10-04-2006 #1Just Joined!
- Join Date
- Nov 2005
- Location
- Bristol UK
- Posts
- 15
Kernel compile error
I am trying to compile the 2.6.18 kernel [obtained from kernel.org] and set it up so it can be ported to an board using a StrongARM SA1110 Processor. I don't want any video driver support enabled [which i disabled using the menuconfig], however, why when i compile the kernel does it get stuck on the video driver if it has not been selected to be included [I tried it including the video support, but still the same error occurs!] Does anyone have any ideas why this is? the output when compiling the kernel is...
Code:... ... ... LD drivers/pcmcia/pcmcia_core.o LD drivers/pcmcia/pcmcia.o LD drivers/pcmcia/built-in.o CC drivers/rtc/rtc-lib.o LD drivers/rtc/built-in.o CC drivers/serial/serial_core.o CC drivers/serial/sa1100.o LD drivers/serial/built-in.o LD drivers/usb/gadget/built-in.o CC drivers/video/fb_notify.o LD drivers/video/backlight/built-in.o CC drivers/video/console/dummycon.o CC drivers/video/console/vgacon.o drivers/video/console/vgacon.c: In function `vgacon_startup': drivers/video/console/vgacon.c:486: error: `PCIMEM_BASE' undeclared (first use i n this function) drivers/video/console/vgacon.c:486: error: (Each undeclared identifier is report ed only once drivers/video/console/vgacon.c:486: error: for each function it appears in.) drivers/video/console/vgacon.c: In function `vgacon_do_font_op': drivers/video/console/vgacon.c:1037: error: `PCIMEM_BASE' undeclared (first use in this function) make[3]: *** [drivers/video/console/vgacon.o] Error 1 make[2]: *** [drivers/video/console] Error 2 make[1]: *** [drivers/video] Error 2 make: *** [drivers] Error 2 mconway@kenny:~/CRTS3/RTOS/linux-2.6.18$
- 10-04-2006 #2Just Joined!
- Join Date
- Nov 2005
- Location
- Bristol UK
- Posts
- 15
OK... I have managed to fix the error by manually editing the .config file, setting "CONFIG_VGA_CONSOLE=n" BUT!!! Now there is a new error...
Here is the contents of the directory it says the file does not exist in! ...However, it looks to me like it is there!!! so why is it throwing this error???Code:/home/netlab/mconway/CRTS3/RTOS/linux-2.6.18/scripts/mksysmap: line 43: ~/CRTS3/RTOS/buildroot/build_arm/staging_dir/bin/arm-linux-nm: No such file or directory make: *** [vmlinux] Error 1
Code:mconway@kenny:~/CRTS3/RTOS/buildroot/build_arm/staging_dir/bin$ ls -l total 5688 lrwxrwxrwx 1 mconway G700 26 Sep 26 18:30 arm-linux-addr2line -> arm-linux-uclibc-addr2line* lrwxrwxrwx 1 mconway G700 19 Sep 26 18:30 arm-linux-ar -> arm-linux-uclibc-ar* lrwxrwxrwx 1 mconway G700 19 Sep 26 18:30 arm-linux-as -> arm-linux-uclibc-as* lrwxrwxrwx 1 mconway G700 24 Sep 26 18:30 arm-linux-c++filt -> arm-linux-uclibc-c++filt* lrwxrwxrwx 1 mconway G700 17 Sep 26 18:30 arm-linux-cc -> ../usr/bin/ccache* lrwxrwxrwx 1 mconway G700 20 Sep 26 18:30 arm-linux-cpp -> arm-linux-uclibc-cpp* lrwxrwxrwx 1 mconway G700 17 Sep 26 18:30 arm-linux-gcc -> ../usr/bin/ccache* lrwxrwxrwx 1 mconway G700 26 Sep 26 18:30 arm-linux-gcc-3.4.2 -> arm-linux-uclibc-gcc-3.4.2* lrwxrwxrwx 1 mconway G700 23 Sep 26 18:30 arm-linux-gccbug -> arm-linux-uclibc-gccbug* lrwxrwxrwx 1 mconway G700 21 Sep 26 18:30 arm-linux-gcov -> arm-linux-uclibc-gcov* lrwxrwxrwx 1 mconway G700 19 Sep 26 18:30 arm-linux-ld -> arm-linux-uclibc-ld* lrwxrwxrwx 1 mconway G700 19 Sep 26 18:30 arm-linux-nm -> arm-linux-uclibc-nm* lrwxrwxrwx 1 mconway G700 24 Sep 26 18:30 arm-linux-objcopy -> arm-linux-uclibc-objcopy* lrwxrwxrwx 1 mconway G700 24 Sep 26 18:30 arm-linux-objdump -> arm-linux-uclibc-objdump* lrwxrwxrwx 1 mconway G700 23 Sep 26 18:30 arm-linux-ranlib -> arm-linux-uclibc-ranlib* lrwxrwxrwx 1 mconway G700 24 Sep 26 18:30 arm-linux-readelf -> arm-linux-uclibc-readelf* lrwxrwxrwx 1 mconway G700 21 Sep 26 18:30 arm-linux-size -> arm-linux-uclibc-size* lrwxrwxrwx 1 mconway G700 24 Sep 26 18:30 arm-linux-strings -> arm-linux-uclibc-strings* lrwxrwxrwx 1 mconway G700 22 Sep 26 18:30 arm-linux-strip -> arm-linux-uclibc-strip* -rwxr-xr-x 1 mconway G700 379948 Sep 26 18:30 arm-linux-uclibc-addr2line* -rwxr-xr-x 2 mconway G700 352108 Sep 26 18:30 arm-linux-uclibc-ar* -rwxr-xr-x 2 mconway G700 601900 Sep 26 18:30 arm-linux-uclibc-as* -rwxr-xr-x 1 mconway G700 379788 Sep 26 18:30 arm-linux-uclibc-c++filt* lrwxrwxrwx 1 mconway G700 17 Sep 26 18:30 arm-linux-uclibc-cc -> ../usr/bin/ccache* -rwxr-xr-x 1 mconway G700 84780 Sep 26 18:30 arm-linux-uclibc-cpp* lrwxrwxrwx 1 mconway G700 17 Sep 26 18:30 arm-linux-uclibc-gcc -> ../usr/bin/ccache* -rwxr-xr-x 2 mconway G700 84780 Sep 26 18:30 arm-linux-uclibc-gcc-3.4.2* -rwxr-xr-x 1 mconway G700 15988 Sep 26 18:30 arm-linux-uclibc-gccbug* -rwxr-xr-x 1 mconway G700 21144 Sep 26 18:30 arm-linux-uclibc-gcov* -rwxr-xr-x 2 mconway G700 622316 Sep 26 18:30 arm-linux-uclibc-ld* -rwxr-xr-x 2 mconway G700 392620 Sep 26 18:30 arm-linux-uclibc-nm* -rwxr-xr-x 1 mconway G700 529964 Sep 26 18:30 arm-linux-uclibc-objcopy* -rwxr-xr-x 2 mconway G700 571436 Sep 26 18:30 arm-linux-uclibc-objdump* -rwxr-xr-x 2 mconway G700 352108 Sep 26 18:30 arm-linux-uclibc-ranlib* -rwxr-xr-x 1 mconway G700 200620 Sep 26 18:30 arm-linux-uclibc-readelf* -rwxr-xr-x 1 mconway G700 331372 Sep 26 18:30 arm-linux-uclibc-size* -rwxr-xr-x 1 mconway G700 331724 Sep 26 18:30 arm-linux-uclibc-strings* -rwxr-xr-x 2 mconway G700 529964 Sep 26 18:30 arm-linux-uclibc-strip* -rwxr-xr-x 1 mconway G700 22866 Sep 26 18:30 makedevs*
- 12-20-2006 #3Just Joined!
- Join Date
- Dec 2006
- Posts
- 3
Same problem as you - Solution?
Hey Bob,
I don't know if you remember back to all of last year but I now have the same problem as you. I fixed the video problem, there was a sneaky option checked way inside menuconfig. However, I can't seem to solve the:
"../kenel/scripts/mksysmap: line 43:
../buildroot/build_arm/staging_dir/bin/arm-linux-nm: No such file or directory
make: *** [vmlinux] Error 1"
Did you ever find out why it did this?
Thanks in advance!
Lee
- 12-21-2006 #4Just Joined!
- Join Date
- Nov 2005
- Location
- Bristol UK
- Posts
- 15
Hi! ...ye... I remember that error! it was a right *****! ...the problem is that inside the makefile for the kernel, it tries to find something like $nm (which is a reference to the nm library) you have to find the line in the Makefile and give it the exact path to the arm-linux-nm library! I think it is something like:
... [path to buildroot dir] .../build_arm/staging_dir/bin/arm-linux-nm
and that shud fix your problem!
- 12-21-2006 #5Just Joined!
- Join Date
- Dec 2006
- Posts
- 3
Hey,
Thanks for your help!
I was pulling my hair out over that. The way I was reading it, in the script located at scripts/mksysmap, there are two variables, one was 'vmlinux' and the other is unimportant. When I looked for 'vmlinux' (which is the kernel image without the decompressor) in the current directory, it wasn't there. I assumed this was the problem. Even more so when I hacked the script in the Makefile to read "cmp Sysmap.dummy Sysmap.dummy", then did the *-nm myself of the command line and it worked!
It's still strange though as the error says the full path of the nm command. How could it not know where it was?? Most odd!!
- 01-04-2007 #6Just Joined!
- Join Date
- Dec 2006
- Posts
- 3
Bob,
I have another Pupetteer question for you!
On Craigs worksheet 4, page 4 he mentions the pathname:
cp .config buildroot/toolchain_arm/ucblicb/uclibc-9.2.NN/uclibc.config
Well, for starters there is no toolchain_arm folder? I have done a 'locate' on uclibcb too and no sign of that either. Did you have dramas with this? If so do you recall the solution?
Thanks again!
Lee
- 01-05-2007 #7Just Joined!
- Join Date
- Nov 2005
- Location
- Bristol UK
- Posts
- 15
LOL! ...Ye... its toolchain_build_arm or sumit like that... the path he has written down isn't correct! you have to find it yourself!!! ...I think, if i remember its something like:
buildroot/build_arm/...
or
buildroot/toolchain_build_arm/...
Have a look through the folders, you will find one called uClibc-version, in there there is a file .config, copy that to your home directory for safe keeping; you will have to rebuild the filesystem a few times (well... I did, along with most of my mates!!!) because you end up making errors, or deleting files you shouldn't etc!!! ...so this way, all you do when you remake is to re-copy the config file to its original location and you don't have to do any make menuconfig commands and waste your time! ...plus when it comes to assignment hand in, its the config file you have to hand in! so you need an up to date copy in your home directory all the time!


Reply With Quote
