
#U boot source update
In case you have updated Kernel and uploaded changes to github, you have to update also meta-openrex. #SRCREV is the commit number, must be always changed for a new version Run set_ethernet run update_set_filename sata init tftp $" In case you boot from SATA, you can use these commands: In case you run OpenRex from SD card, switch on your OpenRex board, go to uBoot and run following commands: Gedit arch/arm/boot/dts/im圆qdl-openrex.dtsiĬp arch/arm/boot/zImage /tftp/im圆/zImage-im圆q-openrexĬp arch/arm/boot/dts/im圆q-openrex.dtb /tftp/im圆/im圆q-openrex.dtb The path may look like this:Ĭd ~/fsl-community-bsp/build-openrex/tmp/work/im圆q_openrex-poky-linux-gnueabi/linux-openrex/3.14-r0/git

#U boot source code
Usualy the Kernel source code is located inside your build directory. Option 2: Find Kernel source code located inside your YOCTO project Option 1: Get the Kernel source code from github
#U boot source download
You can download it directly from github or you can edit the Kernel files in your YOCTO OpenRex project. You have two options to get the source code.

Git commit -m 'Fixed SD card: CD and RW pin definition' //use a comment describing the changes if you are happy with the differences, upload the changes to github in case differences are not what you expected or you find a mistake, you can use "git reset". Git diff origin/jethro //check if it shows correct differences " wants to upload also files which you have not changed, that's why I use "git add filename" based on the status command, add the files you would like to upload to github Git status //have a look what files were changed Git branch //check if you are on jethro branch Git checkout jethro //set the current active branch to jethro git remote set-url origin //run this if you get error, that "git://" is read only git remote add origin //run this if you get error about no origin Git remote -v //check the origin, should point to your github When you are happy with the new uBoot, run following commands to update uBoot github: Setenv serverip 192.168.0.37 //use your Linux host IP *Note: If you have updated environmental variables inside uBoot source code, after you reboot uBoot, you may want to run:

In case you would like to update it manually, here are the commands: Switch on your OpenRex board, go to uBoot and run following command: *Note: If you get error like "lib/asm-offsets.c:1:0: error: bad value (armv5) for -march= switch", then run the "Select cross compiler" again (these are the commands "export CROSS_COMPILE=." and "export ARCH=arm") Reflash uBoot Gedit board/fedevel/m圆openrex/m圆q_4x_mt41j256.cfgĬp u-boot.imx /tftp/im圆/u-boot-im圆q-openrex.imx Gedit board/fedevel/m圆openrex/m圆openrex.c Here are the files what we normally edit: If you do not have any compiler installed (or you are not sure)Įxport CROSS_COMPILE=arm-linux-gnueabihf-Įxport CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-none-linux-gnueabi. The path may look like this:Ĭd ~/fsl-community-bsp/build-openrex/tmp/work/im圆q_openrex-poky-linux-gnueabi/u-boot-openrex/v2015.10+gitAUTOINC+d542ed07a4-r0/git Usualy the uBoot source code is located inside your build directory. Option 2: Find uBoot source code located inside your YOCTO project Option 1: Get the uBoot source code from github You can download it directly from github or you can edit the uBoot files in your YOCTO OpenRex project.

