This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

setup build machine

Dear TI

I have a beagle bone black hardware

i need to setup a build machine where i can compile & build linux kernel image or full image required to boot on target board finally after image is created flash the image on the target beagle bone board

due to huge number of links huge number of theory i am going can some one please explain me in simple steps

1) how to set up a build machine ? do i need to have a ubuntu machine in order to download packages required for beagle bone development

2) how to create images and how to flash on target board ? 

Regards

Nick

  • thanks biser

    My aim 

    i am modifying the beagle bone prototype board and connect and bunch of other peripherals required for my project so i must have the full source code of beagle bone black so that i can write kernel drivers for LCD, wifi and so on and make a build and flash it on the target hardware now i seem i am going no where with huge amount of links 

    i expect it to be few steps 

    like git clone: download full source code from some repository

    but the links does you gave me keeps doing a bunch of stuff i don't understand and it creates targetNFS and many things which i do not understand whats going on

  • Hello Nick,

    You can find the detailed U-Boot/Kernel configuration/compilation/installation steps in these training materials: processors.wiki.ti.com/.../Sitara_Linux_Training
    SD card creation and eMMC programming on BBB is described here: processors.wiki.ti.com/.../Processor_SDK_Linux_create_SD_card_script and here processors.wiki.ti.com/.../Sitara_Linux_Program_the_eMMC_on_Beaglebone_Black

    Best regards,
    Kemal

  • hi kemal

    i am not getting how i shall explain to different people at different times
    i just want the complete source code of the beagle bone black in my ubuntu working space thats all i don't want to go to bunch of links ending up installing all sorts of things
    as per biser i went to this link
    processors.wiki.ti.com/.../Processor_SDK_Linux_Getting_Started_Guide
    and did follow all till step 2. which says Install the SDK - Within your Linux host machine, Install the Linux SDK
    wasted almost full day ending up nowhere

    can you please just mention in few steps how can i have full source code on linux host where i can see source code for BBB i am a vi editor guy i don't need all fancy editors hence please don't send me links to install eclipse and so on.

    i just need full source code loaded in my host machine steps to compile and create a binary image thats all for now

    Regards
    Nick

  • Hi Nick,

    If you have successfully installed the SDK, you should have all the needed stuff extracted on your ubuntu working space.

    You can find them in these locations:
    U-Boot: <sdk install dir>/board-support/u-boot-<version>
    Kernel: <sdk install dir>/board-support/linux-<version>
    Root-fs: <sdk install dir>/filesystem
    Cross-tool-chain: <sdk install dir>/linux-devkit

    Compilation is done by running a make command from the SDK's top directory .
    When the compilation is done, you can create a SD card by this script <sdk install dir>/bin/create-sdcard.sh

    Best regards,
    Kemal

  • thanks kemal now things are starting to be bit clear i can now see all of these directory structure you mentioned

    i want to know a few more things
    1) i hope this SDK that i have installed after make it would create a debian flavour of linux image to flash on the BBB am i correct ?
    2) i have BBB so it boot from flash not SD card but your step 3 in the link given by biser says this:
    Create a SD Card using the SDK Create SD Card Script, or One-time Program EVM for K2H/K2K, K2E, and K2L

    i think i need to skip the above SD card step am i correct since i boot from flash so i guess i need to run TFTP method to flash kernel,uboot
    and so on onto BBB am i correct .


    please correct me in case i am wrong this is quite a big project and we choose TI sitara because of its low power consumption and can work with other multiple OS as well.

    Regards

  • Nick King said:
    1) i hope this SDK that i have installed after make it would create a debian flavour of linux image to flash on the BBB am i correct ?

    The SDK creates MLO, u-boot.img and zImage, then you will create a SD card by <sdk install dir>/bin/create-sdcard.sh script and pass these files along the filesystem in <sdk install dir>/filesystem or choose the booting from targetNFS way, which is the most comfortable method.

    Nick King said:
    2) i have BBB so it boot from flash not SD card but your step 3 in the link given by biser says this:
    Create a SD Card using the SDK Create SD Card Script, or One-time Program EVM for K2H/K2K, K2E, and K2L

    You better prepare a SD card, just in case for recovery.

    Nick King said:
    3) before i run ./setup.sh do i need to have my BBB connected to the target Virtual machine

    This is recommended.

  • Thanks kemal looks like i am getting to understand

    i was able to do a make all which created MLO,boot.img and zImage.img

    i have additionally installed tftp using setup.sh as well

    1) now if i understand correctly the way this works is i flash all these images on sd card using sdcard script and once when i plug in
    the sd card on BBB these images will be copied from sd card to eMMC and board boots from eMMC flash am i correct? if so is there
    no way that i can directly flash image on eMMC.
    2) i want the display LCD on this one to be working as well so we got a LCD display with HDMI interface now micro HDMI will be interfaced with HDMI of the LCD display since this TDA19988BHN chip has i2c interface to the micro hdmi so i am wondering is touch screen feature supported by this TDA19988BHN chip.

    Regards
  • Nick King said:
    1) now if i understand correctly the way this works is i flash all these images on sd card using sdcard script and once when i plug in
    the sd card on BBB these images will be copied from sd card to eMMC and board boots from eMMC flash am i correct? if so is there
    no way that i can directly flash image on eMMC.

    No, when you plug the SD card and hold the boot switch pressed while powering on the device, the BBB will boot from the SD card, but the images won't be copied to the eMMC automatically. You will need to copy them manually, or you can automatize this work by creating a script. Directly flashing the eMMC can be achieved by Uniflash.

    Nick King said:
    2) i want the display LCD on this one to be working as well so we got a LCD display with HDMI interface now micro HDMI will be interfaced with HDMI of the LCD display since this TDA19988BHN chip has i2c interface to the micro hdmi so i am wondering is touch screen feature supported by this TDA19988BHN chip.

    Please start a new thread for this questions.

  • thanks kemal

    i think i got the flashing process now

    so basically the way i update the software by linux host is asking processor to boot via USB by holding boot key pressed and in my local /tftpboot  folder i have all the required images to boot which will call flasher.sh script this script will flash  boot_partition.tar.gz & tisdk-rootfs-image-am335x-evm.tar.gz  file on eMMC flash disk

    now i am wondering how will the update software happen when the devices are shipped to customer this hardware will be embedded in a large unit the only connection to this unit is via internet. the customer will not have physical access to this device but he can access the device remotely via internet 

    can you please let me know how to update the software on this board from a server which is remotely connected

    do you have any such implementation or script.

    Regards