Hi,
Want to compile the Linux Kernel by Robert Nelson
natively on the BBW. A harddisk is attached and
swap space is added to the system.
At first I want to try to co9mpile it with defconfig
settings.
I am using gentoo on the beagle bone.
./build_kernel.sh runs up to the start of the kernel
configuration. I saved .config and exited the tools.
There was no compilation starting but a help screen
output. Since this was a really native task (I did
it via the LCD7 screen), the name of the tool which prints
the help screen was out of sight.
I connected via ssh to the beaglebone and startet ./tools/rebuild.sh,
which again shows me the configuration panel.
I saved the .config and exited.
This was print on the screen:
beaglebone:RobertCNelson-3.2/linux-dev>./tools/rebuild.sh
which: no lsb_release in (/usr/local/bin:/bin/:/sbin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/armv7a-softfp-linux-gnueabi/gcc-bin/4.6.3:/usr/games/bin:/root/bin)
+ Detected build host
Blah, atleast "update" the am335x-3.2 branch..
Error executing formatting or display command.
System command (cd "/usr/share/man" && (echo ".pl 11i"; /bin/bzip2 -c -d '/usr/share/man/man1/git-pull.1.bz2') | /usr/bin/gtbl | /usr/bin/nroff -mandoc | /usr/bin/less) exited with status 141.
No manual entry for git-pull
'man-db' is not installed...
-----------------------------
scripts/gcc: Using: gcc (Gentoo 4.6.3 p1.11, pie-0.5.2) 4.6.3
Copyright (C) 2011 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.
No, It's using your native "gcc", no reason to specify "CC in sytstem.sh"...
-----------------------------
debug: CC=
Error executing formatting or display command.
System command (cd "/usr/share/man" && (echo ".pl 11i"; /bin/bzip2 -c -d '/usr/share/man/man1/git-pull.1.bz2') | /usr/bin/gtbl | /usr/bin/nroff -mandoc | /usr/bin/less) exited with status 141.
No manual entry for git-pull
scripts/kconfig/mconf Kconfig
*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.
â.configâ -> â/home/mccramer/data/pools/pool01/RobertCNelson-3.2/linux-dev/patches/defconfigâ
-----------------------------
make -j0 ARCH=arm LOCALVERSION=-psp27 CROSS_COMPILE="" zImage modules
"-j0" already fixed, just update your branch..
-----------------------------
make: the `-j' option requires a positive integral argument
Usage: make [options] [target] ...
Options:
-b, -m Ignored for compatibility.
-B, --always-make Unconditionally make all targets.
-C DIRECTORY, --directory=DIRECTORY
Change to DIRECTORY before doing anything.
-d Print lots of debugging information.
--debug[=FLAGS] Print various types of debugging information.
-e, --environment-overrides
Environment variables override makefiles.
--eval=STRING Evaluate STRING as a makefile statement.
-f FILE, --file=FILE, --makefile=FILE
Read FILE as a makefile.
-h, --help Print this message and exit.
-i, --ignore-errors Ignore errors from recipes.
-I DIRECTORY, --include-dir=DIRECTORY
Search DIRECTORY for included makefiles.
-j [N], --jobs[=N] Allow N jobs at once; infinite jobs with no arg.
-k, --keep-going Keep going when some targets can't be made.
-l [N], --load-average[=N], --max-load[=N]
Don't start multiple jobs unless load is below N.
-L, --check-symlink-times Use the latest mtime between symlinks and target.
-n, --just-print, --dry-run, --recon
Don't actually run any recipe; just print them.
-o FILE, --old-file=FILE, --assume-old=FILE
Consider FILE to be very old and don't remake it.
-p, --print-data-base Print make's internal database.
-q, --question Run no recipe; exit status says if up to date.
-r, --no-builtin-rules Disable the built-in implicit rules.
-R, --no-builtin-variables Disable the built-in variable settings.
-s, --silent, --quiet Don't echo recipes.
-S, --no-keep-going, --stop
Turns off -k.
-t, --touch Touch targets instead of remaking them.
-v, --version Print the version number of make and exit.
-w, --print-directory Print the current directory.
--no-print-directory Turn off -w, even if it was turned on implicitly.
-W FILE, --what-if=FILE, --new-file=FILE, --assume-new=FILE
Consider FILE to be infinitely new.
--warn-undefined-variables Warn when an undefined variable is referenced.
This program built for armv7a-softfp-linux-gnueabi
Report bugs to <bug-make@gnu.org>
[1] 27804 exit 2 ./tools/rebuild.sh
I tried to set CC in sytstem.sh to "/usr/bin/gcc", but the according line
changes to
â.configâ -> â/home/mccramer/data/pools/pool01/RobertCNelson-3.2/linux-dev/patches/defconfigâ
-----------------------------
make -j0 ARCH=arm LOCALVERSION=-psp27 CROSS_COMPILE="" zImage modules
-----------------------------
make: the `-j' option requires a positive integral argument
but the behaviour and the result were (except those lines above) the same.
It seems, that the script still thinks, that it needs to cross compile
things instead of doing a native compilation task.
On my beaglebone "uname -a" produces:
Linux beaglebone 3.2.42-20130505-psp27 #1 Sun May 5 06:09:59 CEST 2013 armv7l ARMv7 Processor rev 2 (v7l) am335xevm GNU/Linux
.
What I am doing wrong here?
just update the branch and atleast install 'man-db'...
Regards,