Need support in compiling ubuntu for BBB

Hello,
I want to compile OS ubuntu for BBB.

I am referring http://eewiki.net/display/linuxonarm/BeagleBone+Black

In downloaded linux-dev-am33x-v3.12 in home directory. Then ran script ./build_kernel.sh

It initially downloaded cross-compiler toolchain (around 48MB) and did set the CC, which is expected.
debug: CC=/home/vinayak/linux-dev-am33x-v3.12/dl/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/bin/arm-linux-gnueabihf-

Then it tried to download linux directory

scripts/git: LINUX_GIT not defined in system.sh
cloning git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git into default location: /home/vinayak/linux-dev-am33x-v3.12/ignore/linux-src
Cloning into ‘/home/vinayak/linux-dev-am33x-v3.12/ignore/linux-src’…
remote: Counting objects: 3239961, done.
remote: Compressing objects: 100% (486062/486062), done.
^Cceiving objects: 0% (1535/3239961), 836.00 KiB | 50 KiB/s

After downloading complete (around 650MB), got message as - Resolving deltas

Now internet connection lost. Again ran script ./build_kernel.sh

Now script again downloading 650MB data, which is not expected. In the previous run, it has downloaded the same data & again downloading. There should be some catch in this.

How to permanently fix this? How to download LINUX_GIT permanently. so,again will not download same file

Please help

Regards
Vinayak

As per the doc kindly provided by Robert, you can git clone Linus kernel
repository manually and set LINUX_GIT to that location. If kernel.org is
too slow and aborts, you might want to use the google provided mirror:

https://kernel.googlesource.com/

https://kernel.googlesource.com/pub/scm/linux/kernel/git/torvalds/linux.git

regards,
Nuno

- --
http://aeminium.org/nuno/

Hello,
I want to compile OS ubuntu for BBB.

I am referring http://eewiki.net/display/linuxonarm/BeagleBone+Black

In downloaded linux-dev-am33x-v3.12 in home directory. Then ran script
./build_kernel.sh

It initially downloaded cross-compiler toolchain (around 48MB) and did set
the CC, which is expected.
debug:
CC=/home/vinayak/linux-dev-am33x-v3.12/dl/gcc-linaro-arm-linux-gnueabihf-4.8-2013.09_linux/bin/arm-linux-gnueabihf-

Then it tried to download linux directory

scripts/git: LINUX_GIT not defined in system.sh
cloning git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
into default location: /home/vinayak/linux-dev-am33x-v3.12/ignore/linux-src
Cloning into '/home/vinayak/linux-dev-am33x-v3.12/ignore/linux-src'...
remote: Counting objects: 3239961, done.
remote: Compressing objects: 100% (486062/486062), done.
^Cceiving objects: 0% (1535/3239961), 836.00 KiB | 50 KiB/s

After downloading complete (around 650MB), got message as - Resolving deltas

Now internet connection lost. Again ran script ./build_kernel.sh

Did the "clone" finish before the network was lost?

Now script again downloading 650MB data, which is not expected. In the
previous run, it has downloaded the same data & again downloading. There
should be some catch in this.

the bash logic is as follows...

How to permanently fix this? How to download LINUX_GIT permanently. so,again
will not download same file

You could always "clone"
"git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git"
anywhere in your system, just set the LINUX_GIT variable to the
directory to where you cloned it.. If you mess up the logic, will just
re-clone it to the 'ignore/linux-src' directory...

Regards,

hello,
almost the same problem with me but as i am following the link:
https://eewiki.net/display/linuxonarm/BeagleBone+Black
after downloading the boot loader and linux kernel for “am33x-v4.5 (Stable)” i.e git checkout origin/am33x-v4.``5 -b tmp, the build_kernel.sh script is not running and is showing like that.

debian@beaglebone:~/bb-kernel/stable-kernel$ ./build_kernel.sh

  • Detected build host [Debian GNU/Linux 8.3 (jessie)]
  • host: [armv7l]
  • git HEAD commit: [fc591451959669c6d6acf0304c48fa41c09d37c1]

"Out of memory, calloc failed"

Don't run it on the BeagleBoard Black...

Regards,