Project:Sandbox

= Working With AirTies Software Build Profiles =

Introduction
What are Profiles? '''

Creating a Workspace Directory Structure
Introduction... Introduction... Introduction... Introduction... Introduction... Introduction... Introduction... Introduction... Introduction... ''' The most widely used directory structure for working with various AirTies Software Build Profiles is as follows:       ~/test/target/buildsys/ ...    The exact name of the test and target' directories is up to you. However, the convention would be to use test and then various subdirectory names which are meaningful to you.  '   Some people choose to use subdirectory names like:        a, b, c, etc. ''' ''Or, a descriptive product name such as:       BGW210, NVG599-2.4G_HEAD, etc.   Certainly, it is never a problem to use additional subdirectories as you wish, such as:        ~/test/NVG599/2.4G_HEAD/buildsys/, ~/test/NVG599/5G_HEAD/buildsys/, etc. 

Building and Image for a Specific Product
In the following examples, we will use the series of NVG599 profiles as an example. '''       First, we will want to create our overall working directory:       ~/test# mkdir MVG599''' ~/test# cd MVG599 '''   You may wish to create a more specific subdirectory (you can easily change the name later if you wish):       ~/test/MVG599# mkdir 2.4G_HEAD''' ~/test/MVG599# cd 2.4G_HEAD    Now, you need to clone part of the AirTies git repository...    This can be easily accomplished, by using the airgitclone.sh script (a fairly quick process... note the spelling is not "air get clone.sh"'!''):       ~/test/MVG599/2.4G_HEAD# airgitclone.sh''' '''   You should see something like this (or, perhaps exactly like this):       ---       '''airgitclone version 1.1 ---             Cloning into 'buildsys'...       Checking connectivity... done. '''   After the airgitclone.sh script finishes, you will see a new buildsys directory:       ~/test/MVG599/2.4G_HEAD# ls'''       buildsys '''   Navigate to the new buildsys directory and setup your environment:       ~/test/MVG599/2.4G_HEAD# cd buildsys''' ~/test/MVG599/2.4G_HEAD/buildsys# source environment '''   Navigate to the new buildsys directory and setup your environment:       ~/test/MVG599/2.4G_HEAD# cd buildsys''' ~/test/MVG599/2.4G_HEAD/buildsys# source environment '   We are now ready to download the various AirTies Profile Directories, using the AirTies bake script with the co option (this is fairly fast''):       ~/test/MVG599/2.4G_HEAD/buildsys# bake co'''       Starting container: ''' environments: '''   HOSTNAME = lance-VirtualBox ''' command: '''   /bin/bash -c  "source environment; make co" '''Enabling ccache Initializing profiles...      remote: Counting objects: 58, done. '''remote: Compressing objects: 100% (58/58), done. '''remote: Total 58 (delta 38), reused 7 (delta 0) '''Unpacking objects: 100% (58/58), done. '''From git://git.corp.airties.com/profiles ''' * [new ref]        refs/changes/08/15908/1 -> refs/changes/08/15908/1 ''' * [new ref]        refs/changes/79/15879/1 -> refs/changes/79/15879/1 ''' * [new ref]        refs/changes/82/15882/1 -> refs/changes/82/15882/1 ''' * [new ref]        refs/changes/83/15883/1 -> refs/changes/83/15883/1 ''' * [new ref]        refs/changes/86/15886/1 -> refs/changes/86/15886/1 ''' * [new ref]        refs/changes/91/15891/1 -> refs/changes/91/15891/1 '''  e3d2329..3004322  master     -> master '''  9a18b1e..d9ffc97  refs/notes/review -> refs/notes/review Cloning into 'profiles'...      Checking connectivity... done. '''profiles DONE '''   You will probably see the following error message. Please just ignore the error message.:       Makefile:294: *** You must first run make menuconfig. Stop. '''   We now have all of the available Profiles. Let's switch to the profiles directory and view them:       ~/test/MVG599/2.4G_HEAD/buildsys# cd profiles''' ~/test/MVG599/2.4G_HEAD/buildsys/profiles# ls -d --group-directories-first *       Air3510                Air4920-Bison-lm           Air4920NO-EN_AT33      Air4920US-FA       BGW210-QTN_1.5        Pace5268-QTN_10.6 '''Air4400NOCD_DOWN      Air4920CH-SW               Air4920NO-GT           Air4920US-FR       BGW210-QTN-Release    Pace5268-QTN_11.1 '''<kbd style='color:turquoise'>Air4400NOCD_UP        Air4920CH-SW_AT33          Air4920-P1905          Air4920US-MC       BGW220                Pace5268-QTN-Release '''<kbd style='color:turquoise'>Air4400SNZ            Air4920-CMF                Air4920PL-OR           Air4920VF          BGW220-BCM            QSR10G '''<kbd style='color:turquoise'>Air4641SW             Air4920DK-TD               Air4920PL-OR_AT25      Air4920VF-Release  BRCMAP-REF            SB601 '''<kbd style='color:turquoise'>Air4820               Air4920DK-WA               Air4920PT-PT           Air4920ZA-NO       BRCMGW-REF            SC201DE '''<kbd style='color:turquoise'>Air4820-bsp2.7-meshng Air4920DK-WA_AT33          Air4920SE-SE           Air4930            BRCMGW-REF_4.16L.05   SC201SKIT '''<kbd style='color:turquoise'>Air4820QA-OR          Air4920ES-VF               Air4920SE-SE-Release   Air4930SG          GEN7US                SKY-Booster-4-REF '''<kbd style='color:turquoise'>Air4820SW             Air4920EU-ST               Air4920SG              Air4930-SKY        GEN7US-Release        SKY-HUB-4-REF '''<kbd style='color:turquoise'>Air4820SW_AT22        Air4920EU-ST_AT36          Air4920SG_AT33         Air6372SO          NVG599-2.4G           VV5820 '''<kbd style='color:turquoise'>Air4820TR-SO          Air4920FR-OR               Air4920TR              BCM63138-REF       NVG599-2.4G_HEAD      VV5820-Release '''<kbd style='color:turquoise'>Air4820US-AS          Air4920FR-OR_200           Air4920US-AC           BGW210-700-BCM     NVG599-5G             WVB2 '''<kbd style='color:turquoise'>Air4820VFDE           Air4920FR-OR_AT25_interim  Air4920US-AC-Release   BGW210-BCM_1.3     NVG599-5G_HEAD '''<kbd style='color:turquoise'>Air4830               Air4920IL-CC               Air4920US-AL           BGW210-BCM_1.4     Pace5268-BCM '''<kbd style='color:turquoise'>Air4830-128MB         Air4920JO-OR               Air4920US-AL-Anatolia  BGW210-BCM_1.5     Pace5268-BCM_10.6 '''<kbd style='color:turquoise'>Air4830-acR4.8        Air4920-lm                 Air4920US-AL-Release   BGW210-QTN         Pace5268-BCM_11.1 '''<kbd style='color:turquoise'>Air4830DE-LO          Air4920-next               Air4920US-AL-Smyrna    BGW210-QTN_1.3     Pace5268-BCM-Release '''<kbd style='color:turquoise'>Air4920               Air4920NO-EN               Air4920US-AS           BGW210-QTN_1.4     Pace5268-QTN '''   We now have the Profile we are interested in. Make note of the correct name:       NVG599-2.4G_HEAD '''   We are ready to git the image configuration code from the AirTies repository...     However, we need to change to the our parent, the profile directory, first:       <kbd style='color:green'>~/test/MVG599/2.4G_HEAD/buildsys/profiles# cd ..''' '   OK, we can again use the AirTies bake script to download and configure our local environment to do the build (a quick process''):       <kbd style='color:green'>~/test/MVG599/2.4G_HEAD/buildsys# bake NVG599-2.4G_HEAD'''    This will generate a LOT''' of output... The begining should look something like this:       Starting container: '''   environments: '''      HOSTNAME = yourHostname '''   command: '''      /bin/bash -c  "source environment; make NVG599-2.4G_HEAD" '''Enabling ccache '''echo > .config '''cat profiles/NVG599-2.4G_HEAD/profile.config >> .config [ -n "`grep CONFIG_ADD_BUILDNUMBER_TO_VERSION=y .config`" ] && sed -ie 's/^CONFIG_RELEASE_VERSION="\([0-9A-Z]*\)\.\([0-9]*\)\.\([0-9]*.*\)\.\([0-9]*.*\)\ (.*\)"/CONFIG_RELEASE_VERSION="\1.\2.\3.\4.'${BUILD_NUMBER:-0}'\5"/' .config '''timeout 20 conf -D .config Config '''   Great! We are almost done... Now we are finally ready to build everything. Once again we use the AirTies bake script:       <kbd style='color:green'>~/test/MVG599/2.4G_HEAD/buildsys# bake modem''' '   If we have done everything correctly, the output from the bake script should again, begin like this (this is a great time to take a break as this process will take some time''):       Starting container: '''   environments: '''      HOSTNAME = yourHostname '''   command: '''      /bin/bash -c  "source environment; make NVG599-2.4G_HEAD" '''Enabling ccache '''   Once the build process is complete, let's go check on the image for the device:       <kbd style='color:green'>~/test/MVG599/2.4G_HEAD/buildsys# cd release/image''' '''   If everything was successful, in the image directory, you should find the following deliverables:       <kbd style='color:green'>~/test/MVG599/2.4G_HEAD/buildsys/release/image# ls'''       qhs840-arc-linux-uclibc--NVG599-2.4G_HEAD.STEERING-filesystem/ AirTies_BGW210-700_Release_AT.STEERING.tar.gz      airties-bsp-patches-ac853c3.tar.gz       airties-rootfs-overlay.tar.gz       qhs840-arc-linux-uclibc--NVG599-2.4G_HEAD.STEERING.config '''qhs840-arc-linux-uclibc--NVG599-2.4G_HEAD.STEERING-config.xml '''qhs840-arc-linux-uclibc--NVG599-2.4G_HEAD.STEERING-kernel.config '''System.map '''topaz-linux.lzma.img '''vmlinux

Building and Image for a Specific Product
Introduction... Introduction... Introduction... Introduction... Introduction... Introduction... Introduction... Introduction... Introduction... ''' The most widely used directory structure for working with various Software Build Profiles is as follows:      ~/test/target/buildsys/ ...    The exact name of the test and target' directories is up to you. However, the convention would be to use test and then various subdirectory names that are meaningful to you.  '   Some people choose to use subdirectory names like:        a, b, c, etc. ''' ''Or, a descriptive product name such as:       BGW210, NVG599-2.4G_HEAD, etc.   Certainly, it is never a problem to use additional subdirectories as you wish, such as:        ~/test/NVG599/2.4G_HEAD/buildsys/, ~/test/NVG599/5G_HEAD/buildsys/, etc.