News:

Registered a URL and setup a forum as the IPCam stuff really needed its own site vs my irregular blog posts about IPCam hacking at http://www.computersolutions.cn/blog

Author Topic: Progress status  (Read 11040 times)

June 04, 2011, 08:05:02 pm
If I'm trying to make menu config I got following
Code: [Select]
make[1]: Entering directory `/home/NUVO/uClinux-dist'
make ARCH=armnommu CROSS_COMPILE=arm-elf- -C linux-2.4.x menuconfig
make[2]: Entering directory `/home/NUVO/uClinux-dist/linux-2.4.x'
rm -f include/asm-armnommu/arch include/asm-armnommu/proc
(cd include/asm-armnommu; ln -sf arch-nuc700 arch; ln -sf proc-armv proc)
rm -f include/asm
( cd include ; ln -sf asm-armnommu asm)
make -C scripts/lxdialog all
make[3]: Entering directory `/home/NUVO/uClinux-dist/linux-2.4.x/scripts/lxdialog'
make[3]: Leaving directory `/home/NUVO/uClinux-dist/linux-2.4.x/scripts/lxdialog'
/bin/bash scripts/Menuconfig arch/armnommu/config.in
Using defaults found in .config
Preparing scripts: functions, parsing..................................................................done.

And nothing happens more.

  • No avatar
  • *****
June 04, 2011, 09:00:43 pm
Have you installed the arm compiler tools?

arm-elf-gcc shows what?

May also try removing the mkdep and split-man so it recompiles those too.

Code: [Select]
rm /home/nuvo/uClinux-dist/linux-2.4.x/scripts/mkdep
rm /home/nuvo/uClinux-dist/linux-2.4.x/scripts/split-man
What sed do you have installed?

gnu sed?

Code: [Select]
which sed
sed -?


June 04, 2011, 10:33:32 pm
I copied everithing from scratch. Remade all the links and tried to compile again. So "make" command compiled the kernel I got it. "make dep" doesn't work before "make" and after "make" neither.

- First I run "make clean" and "make", it was ok.
- Then I run "make dep" - got the error

Code: [Select]
make[3]: Leaving directory `/home/NUVO/uClinux-dist/linux-2.4.x/arch/armnommu/tools'
make[2]: Leaving directory `/home/NUVO/uClinux-dist/linux-2.4.x/arch/armnommu/tools'
make[2]: Entering directory `/home/NUVO/uClinux-dist/linux-2.4.x/arch/armnommu/boot'
make[2]: Nothing to be done for `dep'.
make[2]: Leaving directory `/home/NUVO/uClinux-dist/linux-2.4.x/arch/armnommu/boot'
scripts/mkdep -- init/*.c > .depend
scripts/mkdep: 1: Syntax error: ")" unexpected
make[1]: *** [dep-files] Error 2
make[1]: Leaving directory `/home/NUVO/uClinux-dist/linux-2.4.x'
make: *** [dep] Error 2

- Then I run "make menuconfig". The menu configure was OK I've choosen
  • Customize kernel settings to see what I can change in the kernel. Chosen <Exit> 2 times and saved the kernel options.

I got following
Code: [Select]
root@moldov-VirtualBox:/home/NUVO/uClinux-dist# make menuconfig
config/mkconfig > config.in
make -C /home/NUVO/uClinux-dist/config/scripts/lxdialog all
make[1]: Entering directory `/home/NUVO/uClinux-dist/config/scripts/lxdialog'
make[1]: Leaving directory `/home/NUVO/uClinux-dist/config/scripts/lxdialog'
Using defaults found in .config
Preparing scripts: functions, parsing..done.

Saving your kernel configuration...

*** End of Linux kernel configuration.
*** Check the top-level Makefile for additional configuration.
*** Next, you must run 'make dep'.

make[1]: Entering directory `/home/NUVO/uClinux-dist'
make ARCH=armnommu CROSS_COMPILE=arm-elf- -C linux-2.4.x menuconfig
make[2]: Entering directory `/home/NUVO/uClinux-dist/linux-2.4.x'
rm -f include/asm-armnommu/arch include/asm-armnommu/proc
(cd include/asm-armnommu; ln -sf arch-nuc700 arch; ln -sf proc-armv proc)
rm -f include/asm
( cd include ; ln -sf asm-armnommu asm)
make -C scripts/lxdialog all
make[3]: Entering directory `/home/NUVO/uClinux-dist/linux-2.4.x/scripts/lxdialog'
make[3]: Leaving directory `/home/NUVO/uClinux-dist/linux-2.4.x/scripts/lxdialog'
/bin/bash scripts/Menuconfig arch/armnommu/config.in
Using defaults found in .config
Preparing scripts: functions, parsing..................................................................done.

And got stuck again.

That's I got from sed
Code: [Select]
GNU sed version 4.2.1
Copyright (C) 2009 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,
to the extent permitted by law.

GNU sed home page: <http://www.gnu.org/software/sed/>.
General help using GNU software: <http://www.gnu.org/gethelp/>.
E-mail bug reports to: <bug-gnu-utils@gnu.org>.
Be sure to include the word ``sed'' somewhere in the ``Subject:'' field.


 

June 07, 2011, 10:02:30 am
the links shouldn't be that important (to the kernel anyway)
if you have a good and working .config, just make mrproper, copy the config file, and make menuconfig, make dep/clean/dep and make should result in working binaries.

June 08, 2011, 05:43:08 pm
oliver,

thanks!!! It helped so much but I couldn't compile the proper kernel anyway. The "make dep" was OK but "make" not. I'll try to figure out later.

June 10, 2011, 02:41:13 pm
That's strange, but you _may_ need a few clean/dep/clean/dep sometimes. The kernel is strange like that.

I found most issues I had where from copying bspkernel.config to ., and thus not renaming it to .config :)