<div dir="ltr"><div>Thanks. I synced the uboot code from upstream source tree[1] and applied the config changes[2] into include/configs/rpi.h, as I am trying to use Raspberry Pi2 as reference board. Now, I wanted to see if my custom generated uboot.bin works on the board. So, I downloaded the rpi2 snap source from [3], replaced the u-boot.bin into /snappy-systems/pi2.moved/boot-assets/ and renamed it uboot.bin. Ran snappy build in main pi2.moved directory to generate the .snap file. Using this snap file and the device tar ball from [4], created the image file using below command.<br>sudo ubuntu-device-flash core 15.04 --oem mycustom_2.1_all.snap --developer-mode --device-part=device-pi2-0.16.tar.xz -o pi2.img. Flashing this image, goes to u-boot, but doesn't boot the kernel. Also, don't see the environment variables being loaded due to below error:<br></div>reading uboot.env
<br>*** Warning - bad CRC, using default environment<br><div><br></div><div>printenv shows the default environment and not the ones in uboot.env/<a href="http://uboot.env.in">uboot.env.in</a>, which I didn't modify either. Can you help understand which part I am missing here or doing something wrong, so I can get the uboot.env loaded correctly and in turn boot to the already existing kernel?<br></div><div>I am using gcc-arm-linux-gnueabihf for compiling the u-boot from [1] and using 'make all' command.<br></div><div><br></div><div>Is there a place where I should change the checksum of the uboot.env, even though I didn't change any?<br><br>[1] git clone git://<a href="http://git.denx.de/u-boot.git">git.denx.de/u-boot.git</a><br>[2] <a href="http://paste.ubuntu.com/15793824/">http://paste.ubuntu.com/15793824/</a><br>[3] <a href="https://code.launchpad.net/~snappy-dev/snappy-hub/snappy-systems">https://code.launchpad.net/~snappy-dev/snappy-hub/snappy-systems</a><br>[4] <a href="http://people.canonical.com/~platform/snappy/raspberrypi2/">http://people.canonical.com/~platform/snappy/raspberrypi2/</a><br><br></div><div>_Swami<br></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Apr 12, 2016 at 2:07 PM, Oliver Grawert <span dir="ltr"><<a href="mailto:ogra@ubuntu.com" target="_blank">ogra@ubuntu.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">hi,<br>
<span class="">Am Dienstag, den 12.04.2016, 13:11 -0700 schrieb Swami:<br>
> Oliver, But, where can I find the entire source tree for files such<br>
> as mentioned in your snippet below? like:<br>
>  include/configs/am335x_evm.h. Something like a git tree of all the<br>
> source code, including this boot systems (either grub or uboot)<br>
><br>
</span>as i said, we use the upstream source tree and only apply the config<br>
changes shown in the pastebin ...<br>
<br>
<a href="http://www.denx.de/wiki/U-Boot/SourceCode" rel="noreferrer" target="_blank">http://www.denx.de/wiki/U-Boot/SourceCode</a><br>
<br>
ciao<br>
        oli</blockquote></div><br></div>