On Fri, 19 May 2017, Nicolas Dechesne wrote:
hi Robert,
On Fri, May 19, 2017 at 5:20 PM, Robert P. J. Day rpjday@crashcourse.ca wrote:
to add u-boot to the build process, i went back and added the following lines to my local.conf:
EXTRA_IMAGEDEPENDS += "u-boot" UBOOT_MACHINE = "dragonboard410c_config"
again, build appeared to work perfectly, and generated the new artifact:
u-boot-dragonboard-410c-2017.01-r0.bin
nice.. i never tried building uboot from OE for DB410c!
i have not verified the proper operation of this u-boot image yet, but since u-boot allegedly has support for the DB410C, it seemed reasonable to just ask my current poky layer to build it for me, and it did, no complaints ... if someone else wants to try it and see if the generated image is valid, let me know. otherwise, i'll be trying it soon enough.
at this point, it appears that the recipe for booting to u-boot is in the readme.txt file in the appropriate directory in the u-boot source:
http://git.denx.de/?p=u-boot.git%3Ba=blob%3Bf=board/qualcomm/dragonboard410c...
can anyone verify that that is still the correct set of instructions?
yes, the instructions are still correct. basically what we are doing is a 'chained' bootloader. u-boot is loaded by the LK bootloader, and it is not a full replacement for the QCOM bootloader. So we create a 'boot' image that can be loaded and started by LK.
still getting used to the terminology, i assume "LK" stands for "Little Kernel." whatever that is.
You have mkbootimg and dtbTool recipes in meta-qcom, i would happily take u-boot .bbappend patch that implement the instructions from the readme and build a 'working' u-boot image file.
i was literally *just* about to ask about this ... i see in my poky-based build for the DB410C that the native sysroot already has the following:
./sysroots-components/x86_64/skales-native/usr/bin/dtbTool ./sysroots-components/x86_64/skales-native/usr/bin/mkbootimg
which suggests i could ignore all that "git clone skales" stuff and just extend the u-boot recipe to finish things off, yes?
more later...
rday
p.s. technically, you don't have mkbootimg and dtbTool "recipes" in meta-qcom, you have the "skales" recipe which produces them. yes, i am that pedantic.
p.p.s. interestingly, the meta-oe layer has a recipes-devtools/android-tools/ directory, but that appears to be unnecessary as long as the skales recipe provides what's necessary.