I want build kernel of ubuntu from scratch for beaglebone black, for this I search for more than two days for downloading kernel soure code but I did'nt get anything. So, please tell me from where I can get kernel source code.
Thanks.
--
For more options, visit http://beagleboard.org/discuss
---
You received this message because you are subscribed to the Google Groups "BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email to beagleboard...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
root@beaglebone:/home/debian/Work/Linux-3.8.13-bone79/src# git clone https://gi thub.com/RobertCNelson/bb-kernel.git
Cloning into 'bb-kernel'...
remote: Counting
objects: 30634, done.
remote: Compressing objects: 100% (137/137), done.
remote: Total 30634 (delta 86), reused 0 (delta 0), pack-reused 30497
Receiving objects: 100% (30634/30634), 30.46 MiB | 163 KiB/s, done.
Resolving deltas: 100% (18338/18338), done.
root@beaglebone:/home/debian/Work/Linux-3.8.13-bone79/src# cd bb-kernel/
root@beaglebone:/home/debian/Work/Linux-3.8.13-bone79/src/bb-kernel# ls
LICENSE README.md
root@beaglebone:/home/debian/Work/Linux-3.8.13-bone79/src/bb-kernel# git tag
2.6.38-d5
2.6.38-rc1-d0
2.6.38-rc1-d1
2.6.38-rc2-d1
2.6.38-rc3-d1
2.6.38-rc3-d2
2.6.38-rc4-d2
2.6.38-rc4-d3
2.6.38-rc5-d3
2.6.38-rc6-d3
2.6.38-rc7-d3
2.6.38-rc8-d3
2.6.38-rc8-d4
2.6.38-rc8-d5
2.6.38-rc8-d6
2.6.38.1-d7
2.6.38.2-d8
2.6.38.2-d9
2.6.39-d5
2.6.39-d6
2.6.39-rc1-d1
2.6.39-rc2-d2
2.6.39-rc3-d2
2.6.39-rc3-d3
2.6.39-rc4-d3
2.6.39-rc4-d4
2.6.39-rc5-d4
2.6.39-rc6-d5
2.6.39-rc7-d5
3.0-d4
3.0-rc1-d0
3.0-rc2-d0
3.0-rc3-d0
3.0-rc3-d1
3.0-rc4-d1
3.0-rc5-d1
3.0-rc6-d1
3.0-rc6-d2
3.0-rc7-d2
3.0-rc7-d3
3.0-rc7-d4
3.1-d4
3.1-rc1-d0
3.1-rc10-d4
3.1-rc2-d0
3.1-rc3-d0
3.1-rc3-d1
3.1-rc4-d1
3.1-rc4-d2
3.1-rc4-d3
3.1-rc5-d3
3.1-rc6-d3
3.1-rc7-d3
3.1-rc7-d4
3.1-rc8-d4
3.1-rc9-d4
3.10-rc1-armv7-d1
3.10-rc2-armv7-d1
3.10-rc3-armv7-d1
3.10-rc4-armv7-d2
3.10-rc5-armv7-d2
3.11-bone5
3.11-rc1-armv7-d1
3.11-rc3-bone1
3.11-rc5-bone2
3.11-rc6-bone3
3.11-rc7-bone4
3.12-bone8
3.12-rc1-bone1
3.12-rc2-bone2
3.12-rc3-bone3
3.12-rc4-bone4
3.12-rc4-bone5
3.12-rc5-bone6
3.12-rc6-bone7
3.12-rc7-bone8
3.12.1-bone8
3.12.11-bone12
3.12.12-bone12
3.12.13-bone12
3.12.2-bone9
3.12.3-bone9
3.12.4-bone9
3.12.5-bone10
3.12.6-bone11
3.12.8-bone12
3.12.9-bone12
3.13-bone4
3.13-bone5
3.13-rc6-bone1
3.13-rc6-bone2
3.13-rc7-bone3
3.13-rc8-bone3
3.13-rc8-bone4
3.13.1-bone5
3.13.10-bone9
3.13.11-bone10
3.13.11-bone11
3.13.11-bone12
3.13.2-bone5
3.13.3-bone5
3.13.4-bone5
3.13.5-bone5
3.13.5-bone6
3.13.6-bone7
3.13.6-bone8
3.13.8-bone8
3.13.9-bone9
3.14-bone0
3.14-bone1
3.14-rc1-bone0
3.14-rc2-bone0
3.14-rc3-bone0
3.14-rc4-bone0
3.14-rc5-bone0
3.14-rc6-bone0
3.14-rc7-bone0
3.14-rc8-bone0
3.14.1-bone2
3.14.15-bone6
3.14.17-bone7
3.14.17-bone8
3.14.2-bone2
3.14.3-bone2
3.14.3-bone3
3.14.4-bone3
3.14.4-bone4
3.14.8-bone5
3.15-bone1
3.15-rc2-bone0
3.15-rc3-bone0
3.15-rc4-bone0
3.15-rc5-bone0
3.15-rc5-bone1
3.15-rc6-bone1
3.15-rc7-bone1
3.15-rc8-bone1
3.15.1-bone2
3.15.10-bone6
3.15.10-bone7
3.15.10-bone8
3.15.2-bone2
3.15.3-bone3
3.15.4-bone4
3.15.5-bone4
3.15.5-bone5
3.15.6-bone5
3.15.7-bone5
3.15.8-bone5
3.15.8-bone6
3.15.9-bone6
3.16-bone2
3.16-rc1-bone0
3.16-rc2-bone0
3.16-rc3-bone0
3.16-rc4-bone0
3.16-rc5-bone0
3.16-rc6-bone1
3.16-rc7-bone1
3.16.1-bone3
3.16.1-bone4
3.16.2-bone5
3.16.3-bone6
3.17-bone4
3.17-rc1-bone0
3.17-rc2-bone1
3.17-rc3-bone2
3.17-rc4-bone2
3.17-rc5-bone3
3.17-rc6-bone4
3.17-rc7-bone4
3.17.1-bone4
3.17.2-bone5
3.18-bone1
3.18-rc1-bone0
3.18-rc2-bone1
3.18-rc3-bone1
3.18-rc4-bone1
3.18-rc5-bone1
3.18-rc6-bone1
3.18-rc7-bone1
3.18.1-bone1
3.18.2-bone1
3.18.3-bone1
3.18.4-bone1
3.18.5-bone1
3.19-bone3
3.19-rc1-bone0
3.19-rc2-bone0
3.19-rc3-bone1
3.19-rc3-bone2
3.19-rc4-bone2
3.19-rc5-bone2
3.19-rc6-bone2
3.19-rc7-bone2
3.19-rc7-bone3
3.19.1-bone4
3.19.2-bone4
3.19.3-bone4
3.2-d4
3.2-psp12
3.2-psp13
3.2-psp14
3.2-psp15
3.2-psp16
3.2-psp17
3.2-psp18
3.2-psp19
3.2-psp20
3.2-psp21
3.2-psp22
3.2-psp23
3.2-psp24
3.2-psp25
3.2-psp26
3.2-psp27
3.2-psp8
3.2-psp9
3.2-rc1-d0
3.2-rc2-d0
3.2-rc3-d0
3.2-rc4-d1
3.2-rc4-d2
3.2-rc5-d2
3.2-rc6-d2
3.2-rc6-d3
3.2-rc7-d3
3.2-rc7-d4
3.3-d5
3.3-rc2-d0
3.3-rc3-d0
3.3-rc4-d1
3.3-rc5-d2
3.3-rc5-d3
3.3-rc6-d3
3.3-rc7-d4
3.3-rc7-d5
3.4-d4
3.4-rc1-d0
3.4-rc1-d1
3.4-rc2-d1
3.4-rc3-d1
3.4-rc4-d1
3.4-rc5-d1
3.4-rc5-d2
3.4-rc6-d3
3.4-rc7-d3
3.4-rc7-d4
3.5-rc1-d0
3.5-rc2-d0
3.5-rc3-d0
3.5-rc4-d0
3.5-rc5-d0
3.5-rc6-d1
3.5-rc7-d1
3.6-bone0
3.6-rc1-d0
3.6-rc2-d0
3.6-rc3-d0
3.6-rc4-d1
3.6-rc4-d2
3.6-rc5-d2
3.6-rc6-d3
3.6-rc7-d3.2
3.6-rc7-d4
3.6-rc7-d5
3.6.1-bone0
3.6.2-bone0
3.7-bone2
3.7-rc1-d0
3.7-rc2-d0
3.7-rc3-d0
3.7-rc4-d0
3.7-rc4-d1
3.7-rc5-d1
3.7-rc5-d2
3.7-rc8-bone1
3.7.1-bone3
3.7.1-bone4
3.7.3-bone5
3.8-bone4
3.8-rc1-d0
3.8-rc2-d0
3.8-rc3-d0
3.8-rc4-d0
3.8-rc5-bone1
3.8-rc5-d1
3.8-rc6-bone2
3.8-rc6-bone3
3.8-rc6-d2
3.8-rc7-bone4
3.8.1-bone5
3.8.10-bone15
3.8.11-bone16
3.8.12-bone17
3.8.13-bone18
3.8.13-bone19
3.8.13-bone20
3.8.13-bone21
3.8.13-bone22
3.8.13-bone23
3.8.13-bone24
3.8.13-bone25
3.8.13-bone26
3.8.13-bone27
3.8.13-bone28
3.8.13-bone29
3.8.13-bone30
3.8.13-bone31
3.8.13-bone32
3.8.13-bone33
3.8.13-bone34
3.8.13-bone35
3.8.13-bone36
3.8.13-bone37
3.8.13-bone38
3.8.13-bone39
3.8.13-bone40
3.8.13-bone41
3.8.13-bone42
3.8.13-bone43
3.8.13-bone44
3.8.13-bone45
3.8.13-bone46
3.8.13-bone47
3.8.13-bone48
3.8.13-bone49
3.8.13-bone50
3.8.13-bone51
3.8.13-bone52
3.8.13-bone53
3.8.13-bone54
3.8.13-bone55
3.8.13-bone56
3.8.13-bone57
3.8.13-bone58
3.8.13-bone59
3.8.13-bone60
3.8.13-bone61
3.8.13-bone62
3.8.13-bone63
3.8.13-bone64
3.8.13-bone65
3.8.13-bone66
3.8.13-bone67
3.8.13-bone68
3.8.13-bone69
3.8.13-bone70
3.8.13-bone71
3.8.13-bone72
3.8.13-bone73
3.8.13-bone74
3.8.13-bone75
3.8.13-bone76
3.8.13-bone77
3.8.13-bone78
3.8.13-bone79
3.8.13-xenomai-r67
3.8.13-xenomai-r69
3.8.13-xenomai-r70
3.8.13-xenomai-r71
3.8.13-xenomai-r72
3.8.13-xenomai-r75
3.8.13-xenomai-r76
3.8.13-xenomai-r78
3.8.2-bone5
3.8.2-bone6
3.8.3-bone6
3.8.3-bone7
3.8.4-bone8
3.8.4-bone9
3.8.5-bone10
3.8.5-bone11
3.8.6-bone12
3.8.7-bone13
3.8.8-bone13
3.8.8-bone14
3.8.9-bone15
3.9-rc1-armv7-d1
3.9-rc2-armv7-d2
3.9-rc3-armv7-d3
3.9-rc4-armv7-d4
3.9-rc5-armv7-d5
4.0-bone0
4.0-rc1-bone0
4.0-rc2-bone0
4.0-rc3-bone0
4.0-rc4-bone0
4.0-rc5-bone0
4.0-rc6-bone0
4.0-rc7-bone0
4.0.1-bone1
4.0.2-bone1
4.0.2-bone2
4.0.2-bone3
4.0.3-bone3
4.0.4-bone4
4.0.6-bone-rt-r5
4.0.6-bone-rt-r6
4.0.7-bone-rt-r7
4.0.8-bone-rt-r8
4.1-bone9
4.1-rc1-bone0
4.1-rc2-bone0
4.1-rc3-bone0
4.1-rc3-bone1
4.1-rc4-bone2
4.1-rc4-bone3
4.1-rc5-bone3
4.1-rc6-bone4
4.1-rc6-bone5
4.1-rc6-bone6
4.1-rc7-bone7
4.1-rc8-bone8
4.1-rc8-bone9
4.1.1-bone10
4.1.1-bone9
4.1.10-bone-rt-r16
4.1.10-bone16
4.1.11-bone-rt-r16
4.1.11-bone16
4.1.12-bone-rt-r16
4.1.12-bone16
4.1.13-bone-rt-r16
4.1.13-bone-rt-r17
4.1.13-bone16
4.1.13-bone17
4.1.14-bone-rt-r17
4.1.14-bone17
4.1.15-bone-rt-r17
4.1.15-bone-rt-r18
4.1.15-bone17
4.1.15-bone18
4.1.2-bone11
4.1.2-bone12
4.1.3-bone-rt-r15
4.1.3-bone13
4.1.3-bone14
4.1.3-bone15
4.1.4-bone15
4.1.5-bone-rt-r15
4.1.5-bone15
4.1.6-bone15
4.1.7-bone-rt-r16
4.1.7-bone16
4.1.8-bone-rt-r16
4.1.8-bone16
4.1.9-bone-rt-r16
4.1.9-bone16
4.2-bone2
4.2-rc1-bone1
4.2-rc2-bone1
4.2-rc3-bone1
4.2-rc4-bone2
4.2-rc5-bone2
4.2-rc6-bone2
4.2-rc7-bone2
4.2-rc8-bone2
4.2.1-bone2
4.2.2-bone2
4.2.3-bone2
4.2.4-bone2
4.2.5-bone2
4.3-bone1
4.3-bone2
4.3-rc1-bone0
4.3-rc2-bone0
4.3-rc3-bone0
4.3-rc4-bone1
4.3-rc5-bone1
4.3-rc6-bone1
4.3-rc7-bone1
4.3.1-bone2
4.3.2-bone2
4.3.3-bone2
4.3.3-bone3
4.3.3-bone4
4.4-bone-rt-r1
4.4-bone-rt-r2
4.4-bone1
4.4-bone2
4.4-rc1-bone0
4.4-rc2-bone0
4.4-rc3-bone0
4.4-rc4-bone0
4.4-rc5-bone0
4.4-rc6-bone0
4.4-rc7-bone0
4.4-rc8-bone-rt-r1
4.4-rc8-bone0
4.4-rc8-bone1
root@beaglebone:/home/debian/Work/Linux-3.8.13-bone79/src/bb-kernel# 3.8.13-bone 79
-bash: 3.8.13-bone79: command not found
root@beaglebone:/home/debian/Work/Linux-3.8.13-bone79/src/bb-kernel# git checkou t 3.8.13-bone79 -b 3.8.13-bone79
Switched to a new branch '3.8.13-bone79'
root@beaglebone:/home/debian/Work/Linux-3.8.13-bone79/src/bb-kernel# ./build_ker nel.sh
+ Detected build host [Debian GNU/Linux 7.8 (wheezy)]
+ host: [armv7l]
+ git HEAD commit: [e5a74db51805f35597e5b36e1e11e3936e8c7c72]
Debian/Ubuntu/Mint: missing dependencies, please install:
-----------------------------
sudo apt-get update
sudo apt-get install bc lzma lzop libncurses5-dev
-----------------------------
* Failed dependency check
root@beaglebone:/home/debian/Work/Linux-3.8.13-bone79/src/bb-kernel# ^C
root@beaglebone:/home/debian/Work/Linux-3.8.13-bone79/src/bb-kernel# sudo apt-ge t update
0% [Working]
Hit http://security.debian.org wheezy/updates Release.gpg
Hit http://repos.rcn-ee.com wheezy Release.gpg
Hit http://security.debian.org wheezy/updates Release
Hit http://ftp.us.debian.org wheezy Release.gpg
Hit http://repos.rcn-ee.com wheezy Release
Hit http://ftp.us.debian.org wheezy-updates Release.gpg
Hit http://ftp.us.debian.org wheezy Release
Hit http://ftp.us.debian.org wheezy-updates Release
Hit http://security.debian.org wheezy/updates/main armhf Packages
Hit http://repos.rcn-ee.com wheezy/main armhf Packages
Hit http://security.debian.org wheezy/updates/contrib armhf Packages
Hit http://security.debian.org wheezy/updates/non-free armhf Packages
Hit http://ftp.us.debian.org wheezy/main armhf Packages
Hit http://ftp.us.debian.org wheezy/contrib armhf Packages
Hit http://ftp.us.debian.org wheezy/non-free armhf Packages
Hit http://ftp.us.debian.org wheezy-updates/main armhf Packages
Hit http://ftp.us.debian.org wheezy-updates/contrib armhf Packages
Hit http://ftp.us.debian.org wheezy-updates/non-free armhf Packages
Reading package lists... Done
root@beaglebone:/home/debian/Work/Linux-3.8.13-bone79/src/bb-kernel#
root@beaglebone:/home/debian/Work/Linux-3.8.13-bone79/src/bb-kernel# sudo apt-ge t install bc lzma lzop libncurses5-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
liblzo2-2 libtinfo-dev
Suggested packages:
ncurses-doc
The following NEW packages will be installed:
bc liblzo2-2 libncurses5-dev libtinfo-dev lzma lzop
0 upgraded, 6 newly installed, 0 to remove and 148 not upgraded.
Need to get 525 kB of archives.
After this operation, 1619 kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.us.debian.org/debian/ wheezy/main liblzo2-2 armhf 2.06-1+deb7u1 [54.8 kB]
Get:2 http://ftp.us.debian.org/debian/ wheezy/main bc armhf 1.06.95-2 [103 kB]
Get:3 http://ftp.us.debian.org/debian/ wheezy/main libtinfo-dev armhf 5.9-10 [83 .9 kB]
Get:4 http://ftp.us.debian.org/debian/ wheezy/main libncurses5-dev armhf 5.9-10 [194 kB]
Get:5 http://ftp.us.debian.org/debian/ wheezy/main lzma armhf 9.22-2 [48.5 kB]
Get:6 http://ftp.us.debian.org/debian/ wheezy/main lzop armhf 1.03-3 [41.4 kB]
Fetched 525 kB in 5s (95.9 kB/s)
Selecting previously unselected package liblzo2-2:armhf.
(Reading database ... 100998 files and directories currently installed.)
Unpacking liblzo2-2:armhf (from .../liblzo2-2_2.06-1+deb7u1_armhf.deb) ...
Selecting previously unselected package bc.
Unpacking bc (from .../bc_1.06.95-2_armhf.deb) ...
Selecting previously unselected package libtinfo-dev:armhf.
Unpacking libtinfo-dev:armhf (from .../libtinfo-dev_5.9-10_armhf.deb) ...
Selecting previously unselected package libncurses5-dev.
Unpacking libncurses5-dev (from .../libncurses5-dev_5.9-10_armhf.deb) ...
Selecting previously unselected package lzma.
Unpacking lzma (from .../archives/lzma_9.22-2_armhf.deb) ...
Selecting previously unselected package lzop.
Unpacking lzop (from .../archives/lzop_1.03-3_armhf.deb) ...
Processing triggers for man-db ...
Processing triggers for install-info ...
Setting up liblzo2-2:armhf (2.06-1+deb7u1) ...
Setting up bc (1.06.95-2) ...
Setting up libtinfo-dev:armhf (5.9-10) ...
Setting up libncurses5-dev (5.9-10) ...
Setting up lzma (9.22-2) ...
update-alternatives: using /usr/bin/lzmp to provide /usr/bin/lzma (lzma) in auto mode
Setting up lzop (1.03-3) ...
root@beaglebone:/home/debian/Work/Linux-3.8.13-bone79/src/bb-kernel# ./build_ker nel.sh
+ Detected build host [Debian GNU/Linux 7.8 (wheezy)]
+ host: [armv7l]
+ git HEAD commit: [e5a74db51805f35597e5b36e1e11e3936e8c7c72]
`/home/debian/Work/Linux-3.8.13-bone79/src/bb-kernel/system.sh.sample' -> `/home /debian/Work/Linux-3.8.13-bone79/src/bb-kernel/system.sh'
-----------------------------
scripts/gcc: Using: gcc (Debian 4.6.3-14) 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.
-----------------------------
CROSS_COMPILE=
-----------------------------
scripts/git: LINUX_GIT not defined in system.sh
cloning https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git into default location: /home/debian/Work/Linux-3.8.13-bone79/src/bb-kernel/ignore/lin ux-src
Cloning into '/home/debian/Work/Linux-3.8.13-bone79/src/bb-kernel/ignore/linux-s rc'...
remote: Counting objects: 4533648, done.
remote: Compressing objects: 100% (52709/52709), done.
Counting objects: 4533648, done.Receiving objects: 14% (646498/4533648), 261.2 Counting objects: 4533648, done.Receiving objects: 14% (653382/4533648), 265.5
^Cceiving objects: 34% (1579601/4533648), 589.96 MiB | 450 KiB/sEnter code here...
On Jan 17, 2016 12:20 AM, "Devendra Gupta" <devendra...@gmail.com> wrote:
>
> Thanks For the prompt reply Robert. I completely understand your point, But this is not the case with ubuntu source code, the uncompressed version takes around 600MB see below. Why the source code for Beaglebone black is too large, Does it mean that the source i am getting is the main tree and needs to be configured according to the Beaglebone config file.
Your comparing apples and oranges.
Ubuntu kernel source that you have their is just a shallow snapshot of the Linux tree.
Whereas my script starts with the master git repo of Linux-stable, then checks out the kernel tag and patches it.
Regards,