2,371 bytes added,
14:02, 19 June 2017 {{InfoBoxTop}}
{{AppliesToDIVA}}
{{InfoBoxBottom}}
== History ==
{| class="wikitable" border="1"
!Version
!Date
!XUELK version
!Notes
|-
|3.0.0
|Jun 2017
|[[Diva_Embedded_Linux_Kit_(DIVELK)#DIVELK_3.0.0|DIVELK 3.0.0]]
|DIVELK release
|-
|}
== Quick reference ==
{| class="wikitable" border="1"
|+Repository Information
|-
! URL
| git@git.dave.eu:dave/diva/linux-am33x.git
|-
! stable branch
| diva
|-
! stable tag
| divelk-3.0.0
|}
{| class="wikitable" border="1"
|+Build Information
|-
! defconfig
| colspan=5 | diva_defconfig
|-
! Kernel binary
| colspan=5 | UIMAGE_LOADADDR=0x80008000 uImage
|-
! rowspan=5 | Device trees
! Platform
! SOM ConfigID
! CB ConfigID
! DTB
|-
| DIVELK
| 0x00000001
| 0x00000001
| am335x-divelk.dtb
|-
| SBCD
| 0x00000001
| 0x00000002
| am335x-sbcd.dtb
|}
== Detailed Instructions ==
It is assumed that the development environment has been set up properly as described [[Diva_Embedded_Linux_Kit_(DIVELK)#Quick_start_guide|here]].
* start the Linux development VM and login into the system
* open a terminal window and ''cd'' into Linux kernel source code
<pre class="workstation-terminal">
cd diva/linux/
</pre>
* in case of needs you can update your local repository with the following git command
<pre class="workstation-terminal">
git pull
</pre>
* configure the build environment
<pre class="workstation-terminal">
source ~/env.sh
</pre>
* to build the binaries run the following commands:
<pre class="workstation-terminal">
make diva_defconfig
make LOADADDR=0x80008000 uImage am335x-divelk.dtb am335x-sbcd.dtb
</pre>
:The former command selects the default DIVELK configuration, while the latter builds the kernel binary image with the required u-boot header and the kernel device tree.
Default Linux kernel configuration can be changed by using the standard <code>menuconfig</code>, <code>xconfig</code>, or <code>gconfig</code> make target. Subsequent builds just require <code>uImage</code> make target to update the binary image. Once the build process is complete, the kernel binary image is stored into the <code>arch/arm/boot/uImage</code> file. Both this file and the kernel device tree can be copied to the tftp root directory <code>/tftpboot/diva/</code> with the following commands:
<pre class="workstation-terminal">
cp arch/arm/boot/uImage /tftpboot/diva/
cp arch/arm/boot/dts/*.dtb /tftpboot/diva/
</pre>