Hi,
we are working on i.mx6 custom designed board. We have power it up for the first time and want port OS to the board. We are working on a host system with Ubuntu 14.04 and i.mx6 board is connected to host system through USB. We are bringing up the board (Os porting) by using Yocto training material as given below:
Yocto Training - HOME (https://community.freescale.com/docs/DOC-94849)
here in task #2, it is been suggested to change the machine name based on our board by using command :
$vi conf/local.conf
Your default local.conf file can looks like:
MACHINE ??= 'imx6qsabresd'
DISTRO ?= 'poky'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES = "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS = "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
ABORT,${TMPDIR},100M,1K \
ABORT,${DL_DIR},100M,1K \
ABORT,${SSTATE_DIR},100M,1K"
CONF_VERSION = "1"
BB_NUMBER_THREADS = '4'
PARALLEL_MAKE = '-j 4'
ACCEPT_FSL_EULA = ""
what if my board is mixture of sabrelite and wand boards. where we are looking for the pins of the board (i think that should be considered). what are all the files which are to be referred while porting the OS.
Hi Poram,
You should create machine configuration file for your custom hardware.
You can refer config file from following path.
sources\meta-fsl-arm\conf\machine\
Prepare custom dtb file for your board. And use KERNEL_DEVICETREE to select your dtb file in build.
Thanks
Saurabh
Hi Saurabh,
Thnks for the reply. I have used my machine as sabresd and run all commands as per the training document. and deployed sdcard image to sd card. When iam booting the board with the sd card connected, then display is not coming (which is conncted through HDMI cable).
in task #4 , we are doing the following steps:
Deploy the sdcard image:
$ sudo dd if=fsl-image-gui-imx6qsabresd.sdcard of=/dev/sdX bs=1M
Or, deploy the ext3 rootfs
$ sudo dd if=fsl-image-gui-imx6qsabresd.ext3 of=/dev/sdX2 bs=1M
Or deploy only the tar.bz rootfs
$ sudo mount /dev/sdX2 /mnt/card
$ sudo tar xf imagename-imx53qsb.tar.bz2 -C /mnt/card
In order to deploy only kernel
$ sudo cp uImage-3.0.35-r32.10-imx6qsabresd-20130505174618.bin /media/Boot
In order to deploy only u-boot
$ sudo dd if=u-boot-imx6qsabresd-v2012.10-r3.imx of=/dev/sdX bs=512 seek=2
We have deployed sdcard image.
If using HDMI please, modify u-boot environment arguments:
setenv mmcargs "setenv bootargs console=${console},${baudrate} root=${mmcroot} rootwait rw video=mxcfb0:dev=hdmi,1920x1080M@60,if=RGB24"
how can i set environment variables in u-boot. which file i should work on and do i need to use some tools to set environment variables in u-boot???