<div dir="ltr">Hi Stefan,<div><br></div><div>I've tried using the uboot plugin (<span style="font-size:12.8px">RUN_OPT += --include image/uboot). I've been able to generate a uImage successfully. When I tried to flash it on to the board, it stops with following log (was observed in TeraTerm while using the MfgTool):</span></div><div><span style="font-size:12.8px"><br></span></div><div><div style="font-size:12.8px"><font color="#0000ff">U-Boot 2009.08 (Aug 16 2013 - 14:38:59)</font></div><div style="font-size:12.8px"><font color="#0000ff"><br></font></div><div style="font-size:12.8px"><font color="#0000ff">CPU: Freescale i.MX6 family TO1.5 at 792 MHz</font></div><div style="font-size:12.8px"><font color="#0000ff">Thermal sensor with ratio = 175</font></div><div style="font-size:12.8px"><font color="#0000ff">Temperature: 42 C, calibration data 0x5524cd69</font></div><div style="font-size:12.8px"><font color="#0000ff">mx6q pll1: 792MHz</font></div><div style="font-size:12.8px"><font color="#0000ff">mx6q pll2: 528MHz</font></div><div style="font-size:12.8px"><font color="#0000ff">mx6q pll3: 480MHz</font></div><div style="font-size:12.8px"><font color="#0000ff">mx6q pll8: 50MHz</font></div><div style="font-size:12.8px"><font color="#0000ff">ipg clock : 66000000Hz</font></div><div style="font-size:12.8px"><font color="#0000ff">ipg per clock : 66000000Hz</font></div><div style="font-size:12.8px"><font color="#0000ff">uart clock : 80000000Hz</font></div><div style="font-size:12.8px"><font color="#0000ff">cspi clock : 60000000Hz</font></div><div style="font-size:12.8px"><font color="#0000ff">ahb clock : 132000000Hz</font></div><div style="font-size:12.8px"><font color="#0000ff">axi clock : 264000000Hz</font></div><div style="font-size:12.8px"><font color="#0000ff">emi_slow clock: 132000000Hz</font></div><div style="font-size:12.8px"><font color="#0000ff">ddr clock : 528000000Hz</font></div><div style="font-size:12.8px"><font color="#0000ff">usdhc1 clock : 198000000Hz</font></div><div style="font-size:12.8px"><font color="#0000ff">usdhc2 clock : 198000000Hz</font></div><div style="font-size:12.8px"><font color="#0000ff">usdhc3 clock : 198000000Hz</font></div><div style="font-size:12.8px"><font color="#0000ff">usdhc4 clock : 198000000Hz</font></div><div style="font-size:12.8px"><font color="#0000ff">nfc clock : 24000000Hz</font></div><div style="font-size:12.8px"><font color="#0000ff">Board: i.MX6Q-SABRESD: unknown-board Board: 0x63015 [POR ]</font></div><div style="font-size:12.8px"><font color="#0000ff">Boot Device: MMC</font></div><div style="font-size:12.8px"><font color="#0000ff">I2C: ready</font></div><div style="font-size:12.8px"><font color="#0000ff">DRAM: 1 GB</font></div><div style="font-size:12.8px"><font color="#0000ff">MMC: FSL_USDHC: 0,FSL_USDHC: 1,FSL_USDHC: 2,FSL_USDHC: 3</font></div><div style="font-size:12.8px"><font color="#0000ff">Using default environment</font></div><div style="font-size:12.8px"><font color="#0000ff"><br></font></div><div style="font-size:12.8px"><font color="#0000ff">In: serial</font></div><div style="font-size:12.8px"><font color="#0000ff">Out: serial</font></div><div style="font-size:12.8px"><font color="#0000ff">Err: serial</font></div><div style="font-size:12.8px"><font color="#0000ff">Net: got MAC address from IIM: 00:00:00:00:00:00</font></div><div style="font-size:12.8px"><font color="#0000ff">FEC0 [PRIME]</font></div><div style="font-size:12.8px"><font color="#0000ff">Hit any key to stop autoboot: 0</font></div><div style="font-size:12.8px"><font color="#0000ff">## Booting kernel from Legacy Image at 10800000 ...</font></div><div style="font-size:12.8px"><font color="#0000ff"> Image Name:</font></div><div style="font-size:12.8px"><font color="#0000ff"> Image Type: ARM Linux Kernel Image (gzip compressed)</font></div><div style="font-size:12.8px"><font color="#0000ff"> Data Size: 2075251 Bytes = 2 MB</font></div><div style="font-size:12.8px"><font color="#0000ff"> Load Address: 10001000</font></div><div style="font-size:12.8px"><font color="#0000ff"> Entry Point: 10001000</font></div><div style="font-size:12.8px"><font color="#0000ff"> Verifying Checksum ... OK</font></div><div style="font-size:12.8px"><font color="#0000ff">## Loading init Ramdisk from Legacy Image at 10c00000 ...</font></div><div style="font-size:12.8px"><font color="#0000ff"> Image Name: uboot initramfs rootfs</font></div><div style="font-size:12.8px"><font color="#0000ff"> Image Type: ARM Linux RAMDisk Image (gzip compressed)</font></div><div style="font-size:12.8px"><font color="#0000ff"> Data Size: 4545326 Bytes = 4.3 MB</font></div><div style="font-size:12.8px"><font color="#0000ff"> Load Address: 00000000</font></div><div style="font-size:12.8px"><font color="#0000ff"> Entry Point: 00000000</font></div><div style="font-size:12.8px"><font color="#0000ff"> Verifying Checksum ... OK</font></div><div style="font-size:12.8px"><font color="#0000ff"> Uncompressing Kernel Image ... OK</font></div><div style="font-size:12.8px"><font color="#0000ff"><br></font></div><div style="font-size:12.8px"><font color="#0000ff">Starting kernel ...</font></div></div><div style="font-size:12.8px"><br></div><div style="font-size:12.8px">Also, I'm using the Android RAMDisk Image. Would that be a potential cause for the problem? I've used the following XML script to flash the image on to the board (UCL file for MfgTool):</div><div style="font-size:12.8px"><br></div><div><span style="font-size:12.8px"><font color="#0000ff"><UCL></font></span></div><div><span style="font-size:12.8px"><font color="#0000ff"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><CFG></font></span></div><div><span style="font-size:12.8px"><font color="#0000ff"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><STATE name="BootStrap" dev="MX6Q" vid="15A2" pid="0054"/></font></span></div><div><span style="font-size:12.8px"><font color="#0000ff"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><STATE name="Updater" dev="MSC" vid="066F" pid="37FF"/></font></span></div><div><span style="font-size:12.8px"><font color="#0000ff"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></CFG></font></span></div><div><span style="font-size:12.8px"><font color="#0000ff"><br></font></span></div><div><span style="font-size:12.8px"><font color="#0000ff"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><LIST name="SabreSD-eMMC" desc="Choose eMMC as media"></font></span></div><div><span style="font-size:12.8px"><font color="#0000ff"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><CMD state="BootStrap" type="boot" body="BootStrap" file ="u-boot-mx6q-sabresd.bin" >Loading U-boot</CMD></font></span></div><div><span style="font-size:12.8px"><font color="#0000ff"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><CMD state="BootStrap" type="load" file="files/demo/uimage" address="0x10800000"</font></span></div><div><span style="font-size:12.8px"><font color="#0000ff"> loadSection="OTH" setSection="OTH" HasFlashHeader="FALSE" >Loading Kernel.</CMD></font></span></div><div><span style="font-size:12.8px"><font color="#0000ff"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><CMD state="BootStrap" type="load" file="initramfs.cpio.gz.uboot" address="0x10C00000"</font></span></div><div><span style="font-size:12.8px"><font color="#0000ff"> loadSection="OTH" setSection="OTH" HasFlashHeader="FALSE" >Loading Initramfs.</CMD></font></span></div><div><span style="font-size:12.8px"><font color="#0000ff"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><CMD state="BootStrap" type="jump" > Jumping to OS image. </CMD></font></span></div><div><span style="font-size:12.8px"><font color="#0000ff"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><CMD state="Updater" type="push" body="$ dd if=/dev/zero of=/dev/mmcblk0 bs=512 seek=1536 count=16">clean up u-boot parameter</CMD></font></span></div><div><span style="font-size:12.8px"><font color="#0000ff"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><!--CMD state="Updater" type="push" body="$ echo 1 > /sys/devices/platform/sdhci-esdhc-imx.3/mmc_host/mmc0/mmc0:0001/boot_config">access boot partition 1</CMD--></font></span></div><div><span style="font-size:12.8px"><font color="#0000ff"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><CMD state="Updater" type="push" body="$ echo 0 > /sys/block/mmcblk0boot0/force_ro">access boot partition 1</CMD></font></span></div><div><span style="font-size:12.8px"><font color="#0000ff"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><CMD state="Updater" type="push" body="send" file="files/demo/mmc_img">Sending U-Boot</CMD></font></span></div><div><span style="font-size:12.8px"><font color="#0000ff"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><CMD state="Updater" type="push" body="$ dd if=$FILE of=/dev/mmcblk0 bs=512 seek=2 skip=2">write U-Boot to sd card</CMD></font></span></div><div><span style="font-size:12.8px"><font color="#0000ff"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><!-- <CMD state="Updater" type="push" body="$ dd if=$FILE of=/dev/mmcblk0p1 bs=1k seek=1 skip=1 conv=fsync">write U-Boot to sd card</CMD> --></font></span></div><div><span style="font-size:12.8px"><font color="#0000ff"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><CMD state="Updater" type="push" body="$ echo 8 > /sys/devices/platform/sdhci-esdhc-imx.3/mmc_host/mmc0/mmc0:0001/boot_config">access user partition and enable boot partion 1 to boot</CMD></font></span></div><div><span style="font-size:12.8px"><font color="#0000ff"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><CMD state="Updater" type="push" body="send" file="mksdcard-android.sh.tar">Sending partition shell</CMD></font></span></div><div><span style="font-size:12.8px"><font color="#0000ff"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><CMD state="Updater" type="push" body="$ tar xf $FILE "> Partitioning...</CMD></font></span></div><div><span style="font-size:12.8px"><font color="#0000ff"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><CMD state="Updater" type="push" body="$ sh mksdcard-android.sh /dev/mmcblk0"> Partitioning...</CMD></font></span></div><div><span style="font-size:12.8px"><font color="#0000ff"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><CMD state="Updater" type="push" body="$ ls -l /dev/mmc* ">Formatting sd partition</CMD></font></span></div><div><span style="font-size:12.8px"><font color="#0000ff"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><CMD state="Updater" type="push" body="pipe dd of=/dev/mmcblk0p5 bs=512" file="files/demo/demo.img">Sending and writting demo.img</CMD></font></span></div><div><span style="font-size:12.8px"><font color="#0000ff"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><CMD state="Updater" type="push" body="frf">Finishing rootfs write</CMD></font></span></div><div><span style="font-size:12.8px"><font color="#0000ff"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span><CMD state="Updater" type="push" body="$ echo Update Complete!">Done</CMD></font></span></div><div><span style="font-size:12.8px"><font color="#0000ff"><span class="gmail-Apple-tab-span" style="white-space:pre"> </span></LIST></font></span></div><div><span style="font-size:12.8px"><font color="#0000ff"></UCL></font> </span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">The script stops executing at "Jumping to OS image". Can you give me any leads as to where I'm going wrong?</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Note: I've generated the "mmc_img" file using the "create_uboot" tool provided in the genode tools.</span></div><div><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 28, 2017 at 3:16 PM, Stefan Kalkowski <span dir="ltr"><<a href="mailto:stefan.kalkowski@...1..." target="_blank">stefan.kalkowski@...1...</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=""><br>
On 03/27/2017 02:54 PM, Kranthi Tej wrote:<br>
> Hello,<br>
><br>
> We are using a i.MX6 based board. We have been able to run Android<br>
> successfully on the board. I've built the Genode demo image for the ARM<br>
> processor by using the Wandboard build configuration (hw_wand_quad). I<br>
> have successfully generated an image of Genode demo in the build<br>
> directory named "demo.img".<br>
><br>
> Can I load the generated Genode image onto the eMMC flash of the board<br>
> using MfgTool? If so, can you please guide me on how it can be done?<br>
<br>
</span>Probably, yes. I never used that tool. Once when writing a permanent<br>
Genode image to an i.MX53 eMMC I copied over an u-boot image via<br>
Linux/Android and booted it via the already installed u-boot loader.<br>
<br>
Anyway, I doubt that you should write an ext2 disk image to the eMMC,<br>
assuming that you produced that 'demo.img' image with Genode's run tool<br>
(by using something like RUN_OPT += --include image/disk).<br>
The run tool's 'disk' plugin does not produce a bootable disk image that<br>
can simply used by some ARM platform, because it does not contain a<br>
usable boot-loader for ARM.<br>
Instead you probably have to install boot-loader and Genode image<br>
separately. I you are using u-boot on the target platform already, you<br>
can use the u-boot image that gets generated when using Genode's<br>
run-tool 'uboot' plugin (RUN_OPT += --include image/uboot).<br>
<br>
Regards<br>
Stefan<br>
<br>
><br>
> Thanks in advance,<br>
> Kranthi<br>
><br>
><br>
> ------------------------------<wbr>------------------------------<wbr>------------------<br>
> Check out the vibrant tech community on one of the world's most<br>
> engaging tech sites, Slashdot.org! <a href="http://sdm.link/slashdot" rel="noreferrer" target="_blank">http://sdm.link/slashdot</a><br>
><br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> genode-main mailing list<br>
> <a href="mailto:genode-main@lists.sourceforge.net">genode-main@...449...2...<wbr>net</a><br>
> <a href="https://lists.sourceforge.net/lists/listinfo/genode-main" rel="noreferrer" target="_blank">https://lists.sourceforge.net/<wbr>lists/listinfo/genode-main</a><br>
><br>
<br>
--<br>
Stefan Kalkowski<br>
Genode Labs<br>
<br>
<a href="https://github.com/skalk" rel="noreferrer" target="_blank">https://github.com/skalk</a> · <a href="http://genode.org/" rel="noreferrer" target="_blank">http://genode.org/</a><br>
<br>
------------------------------<wbr>------------------------------<wbr>------------------<br>
Check out the vibrant tech community on one of the world's most<br>
engaging tech sites, Slashdot.org! <a href="http://sdm.link/slashdot" rel="noreferrer" target="_blank">http://sdm.link/slashdot</a><br>
______________________________<wbr>_________________<br>
genode-main mailing list<br>
<a href="mailto:genode-main@lists.sourceforge.net">genode-main@...172...<wbr>net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/genode-main" rel="noreferrer" target="_blank">https://lists.sourceforge.net/<wbr>lists/listinfo/genode-main</a><br>
</blockquote></div><br></div>