20,290
edits
mNo edit summary |
mNo edit summary |
||
Line 7: | Line 7: | ||
== Modifying Bootscript == | == Modifying Bootscript == | ||
Nitrogen8M U-Boot is made to look for and execute a bootscript named boot.src. This script will load the device tree, kernel and setup bootargs. When you are developing, you may need to modify this script, following instructions will show you how to modify it from your yocto | Nitrogen8M U-Boot is made to look for and execute a bootscript named boot.src. This script will load the device tree, kernel, and setup bootargs. When you are developing, you may need to modify this script, the following instructions will show you how to modify it from your yocto environment. | ||
=== Custom meta layer === | === Custom meta layer === | ||
You will need your own meta layer, if you already have one, skip this and follow to the next section. | You will need your own meta-layer, if you already have one, skip this and follow to the next section. | ||
=== Adding U-Boot script recipe === | === Adding U-Boot script recipe === | ||
Line 35: | Line 35: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
These commands created an empty file u-boot-script-boundary_%.bbappend, the percentage allows the recipe to be used for the current package version. Open the file with your favorite editor and fill it as follows: | |||
<syntaxhighlight lang=makefile> | <syntaxhighlight lang=makefile> | ||
Line 52: | Line 52: | ||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
#Assuming your build directory name is build, otherwise you need to change the name "build" to your corresponding directory name | #Assuming your build directory name is build, otherwise, you need to change the name "build" to your corresponding directory name | ||
cd $YOCTO_BUILD_DIR | cd $YOCTO_BUILD_DIR | ||
Line 64: | Line 64: | ||
== Modifying Bootargs == | == Modifying Bootargs == | ||
If you just need a temporal change to the bootargs and don't want to build your own bootscript, you can use the '''cmd_custom''' u-boot | If you just need a temporal change to the bootargs and don't want to build your own bootscript, you can use the '''cmd_custom''' u-boot environment variable to set them as follows: | ||
1. Power ON the Nitrogen8M board, and stop the | 1. Power ON the Nitrogen8M board, and stop the bootup process on u-boot, (press a key during the bootup count down) | ||
2. While in u-boot set the cmd_custom variable | 2. While in u-boot set the cmd_custom variable |