Changes

Jump to: navigation, search
no edit summary
The following configuration required to run Linux OS on first Cortex®-A9 core and FreeRTOS on second Cortex®-A9 core of the Freescale i.MX6 SOC.
'''N.B.''' For the sake of simplicity, in this application note, we are going to utilize two of the four core inside the iMX6q cpu. Other configuration are possible but are not relevant for this demo.
The latencystat demo is a RPMsg-based application that exploits sophisticated techniques to handle inter-processors communication and synchronization.
Move the device tree binary load address (the default 0x18000000 conflicts the AMP kernel loadaddr, it must be moved to a higher address) by changing u-boot environment for example as:
<pre>
=U-Boot > setenv fdtaddr 0x1c000000=U-Boot > setenv addmisc 'setenv bootargs ${bootargs} vmalloc=400M ${mtdparts}\;${mtdparts_spi} maxcpus=2'
</pre>
For a complete uboot enviroment refer to
<pre class="mw-collapsible mw-collapsed wikitable">U-Boot > printenvaddcons=setenv bootargs ${bootargs} console=ttymxc2,115200n8adddisp0=setenv bootargs ${bootargs} video=mxcfb0:dev=lcd,LCD-AM-800480STMQW-TA1,if=RGB666addhdmi=setenv bootargs ${bootargs} video=mxcfb0:dev=hdmi,1920x1080M@60,bpp=32addip=setenv bootargs ${bootargs} ip=${ipaddr}:${serverip}:${gatewayip}:${netmask}:${hostname}:${netdev}:off panic=1 fec_mac=${ethaddr}addlvds0=setenv bootargs ${bootargs}video=mxcfb0:dev=ldb,LDB-AM-800480STMQW-TA1,if=RGB666 ldb=sin0addlvds1=setenv bootargs ${bootargs}video=mxcfb0:dev=ldb,LDB-AM-800480STMQW-TA1,if=RGB666 ldb=sin1addmisc=setenv bootargs ${bootargs} vmalloc=400M ${mtdparts}\\;${mtdparts_spi} maxcpus=2baudrate=115200bootcmd=mmc dev 0;mmc rescan;if run loadbootscript; then run bootscript; else run mmcboot ; fi; run net_nfsbootdelay=3bootfile=xelk/axel-lite/linux-compiledbootscript=echo Running bootscript from mmc ...; sourcedisable_giga=1ethact=FECethaddr=00:50:c2:1e:af:ccethprime=FEC0fdt_high=FFFFFFFFfdtaddr=0x1c000000fdtfile=xelk/axel-lite/compiled.dtbhostname=xelkipaddr=192.168.0.154load=tftp ${loadaddr} ${uboot}loadaddr=0x12000000loadbootscript=fatload mmc 0:1 ${loadaddr} ${script};loadfdt=tftpboot ${fdtaddr} ${serverip}:${fdtfile}loadk=tftpboot ${loadaddr} ${serverip}:${bootfile}mmcargs=setenv bootargs root=${mmcroot}mmcboot=run mmcargs addcons addmisc adddisp0 mmcloadk; bootm ${loadaddr}mmcloadk=fatload mmc 0:1 ${loadaddr} uImagemmcroot=/dev/mmcblk0p2 rootwait rwmodule_id#=0x3mtdids=nand0=gpmi-nandmtdparts=mtdparts=gpmi-nand:8M(nand-uboot),1M(nand-env1),1M(nand-env2),1M(nand-dtb),1M(nand-spare),8M(nand-kernel),-(nand-ubi)mtdparts_spi=spi32766.0:1M(spi-uboot),256k(spi-env1),256k(spi-env2),512k(spi-dtb),6M(spi-kernel),-(spi-free)net_nfs=run loadk loadfdt nfsargs addip addcons addmisc adddisp0; bootm ${loadaddr} - ${fdtaddr}netdev=eth0netmask=255.255.255.0nfsargs=setenv bootargs root=/dev/nfs rw nfsroot=${serverip}:${rootpath},v3,tcprootpath=/home/dvdk/xelk/rfs/axel-basescript=boot.scrserverip=192.168.0.153spi_update=sf probe; sf erase 0 80000;sf write ${loadaddr} 400 80000stderr=serialstdin=serialstdout=serialuboot=axel/u-boot.imxver=U-Boot 2013.04 (Nov 21 2014 - 16:21:37)-xelk-2.0.0 Environment size: 2303/262139 bytesU-Boot ></pre>
Once all the components are built, please boot the system and launch the following commands:./
170
edits

Navigation menu