Hello,
I have a custom imx6q board which is based on the 'sabreauto' reference board.
I have a spansion CFI NOR flash on board for booting.
How do i generate the uboot with eimnor config?
I am using Yocto and fsl-community-bsp with 3.10.17 kernel
I tried changing the
UBOOT_CONFIG ??= sd"
UBOOT_CONFIG[sd] = "mx6qsabreauto_config,sdcard"
UBOOT_CONFIG[eimnor] = "mx6qsabreauto_eimnor_config"
UBOOT_CONFIG[nand] = "mx6qsabreauto_nand_config,ubifs"
UBOOT_CONFIG[spinor] = "mx6qsabreauto_spinor_config"
UBOOT_CONFIG[sata] = "mx6qsabreauto_sata_config"
UBOOT_CONFIG[mfgtool] = "mx6qsabreauto_config"
in imx6qsabreauto.conf
to
UBOOT_CONFIG ??= eimnor"
UBOOT_CONFIG[sd] = "mx6qsabreauto_config,sdcard"
UBOOT_CONFIG[eimnor] = "mx6qsabreauto_eimnor_config"
UBOOT_CONFIG[nand] = "mx6qsabreauto_nand_config,ubifs"
UBOOT_CONFIG[spinor] = "mx6qsabreauto_spinor_config"
UBOOT_CONFIG[sata] = "mx6qsabreauto_sata_config"
UBOOT_CONFIG[mfgtool] = "mx6qsabreauto_config"
but i get the following error
make: *** No rule to make target `mx6qsabreauto_sata_config'. Stop.
| make: *** [mx6qsabreauto_sata_config] Error 1
| ERROR: oe_runmake failed
| WARNING: exit code 1 from a shell command.
| ERROR: Function failed: do_compile (log file is located at /home/nishad/fsl-community-bsp/build/tmp/work/imx6qsabreauto-poky-linux-gnueabi/u-boot-fslc/v2014.01-r0/temp/log.do_compile.6573)
What should i do to boot from eimnor?
Thank your for your time,
regards,
Nishad kamdar
Solved! Go to Solution.
Hi,
I was able to solve the issue. I am able to build the eimnor u-boot using bitbake now.
The fsl-default-providers.inc file had the following contents:
# Freescale BSP default providers
PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
PREFERRED_PROVIDER_virtual/kernel ??= "linux-imx"
PREFERRED_PROVIDER_u-boot ??= "u-boot-fslc"
PREFERRED_PROVIDER_virtual/bootloader ??= "u-boot-fslc"
So my BSP was by default using u-bot-fslc image which does not support "mx6qsabreauto_eimnor_config."
After reading the "Freescale_Yocto_Project_User's_Guide" i found out that it uses u-boot-imx as the default bootloader.
So i modified the fsl-default-providers.inc file to:
# Freescale BSP default providers
PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
PREFERRED_PROVIDER_virtual/kernel ??= "linux-imx"
#PREFERRED_PROVIDER_u-boot ??= "u-boot-fslc"
#PREFERRED_PROVIDER_virtual/bootloader ??= "u-boot-fslc"
PREFERRED_PROVIDER_u-boot ??= "u-boot-imx"
PREFERRED_PROVIDER_virtual/bootloader ??= "u-boot-imx"
and changed the imx6qsabreauto.conf to
UBOOT_CONFIG ??= "eimnor"
UBOOT_CONFIG[sd] = "mx6qsabreauto_config,sdcard"
UBOOT_CONFIG[eimnor] = "mx6qsabreauto_eimnor_config"
UBOOT_CONFIG[nand] = "mx6qsabreauto_nand_config,ubifs"
UBOOT_CONFIG[spinor] = "mx6qsabreauto_spinor_config"
UBOOT_CONFIG[sata] = "mx6qsabreauto_sata_config"
UBOOT_CONFIG[mfgtool] = "mx6qsabreauto_config"
Now the bitbake does not yield any error as it did before.
Still need to test the u-boot on hardware though.
Thanks for your time,
Best regards,
Nishad
Have you tried to compile it not using bitbake?
export ARCH=arm
export CROSS_COMPILE=/opt/poky/1.7/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-
make distclean;
make mx6qsabreauto_eimnor_config
make
I tried it using BSP 3.14.28 and compiled with not issues.
Best Regards,
Alejandro
Hi,
Thanks for the reply.
I tried using 1.6.2 toolchain to compile the u-boot-fslc.
I still get the same error.
My BSP is 3.10.17.
How do i switch to the new BSP?
I manually downloaded the u-boot from 3.14.28,
from the following link:
Freescale/u-boot-fslc at v2014.04 · GitHub
and tried compiling it
It gave the error
nishad@nishad-VPCEB34EN:~/fsl-community-bsp/u-boot-fslc$ make mx6qsabreauto_eimnor_config
***
*** Can't find default configuration "arch/../configs/mx6qsabreauto_eimnor_defconfig"!
***
make[1]: *** [mx6qsabreauto_eimnor_defconfig] Error 1
make: *** [mx6qsabreauto_eimnor_config] Error 2
regards,
Nishad
Hi,
I was able to solve the issue. I am able to build the eimnor u-boot using bitbake now.
The fsl-default-providers.inc file had the following contents:
# Freescale BSP default providers
PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
PREFERRED_PROVIDER_virtual/kernel ??= "linux-imx"
PREFERRED_PROVIDER_u-boot ??= "u-boot-fslc"
PREFERRED_PROVIDER_virtual/bootloader ??= "u-boot-fslc"
So my BSP was by default using u-bot-fslc image which does not support "mx6qsabreauto_eimnor_config."
After reading the "Freescale_Yocto_Project_User's_Guide" i found out that it uses u-boot-imx as the default bootloader.
So i modified the fsl-default-providers.inc file to:
# Freescale BSP default providers
PREFERRED_PROVIDER_virtual/xserver = "xserver-xorg"
PREFERRED_PROVIDER_virtual/kernel ??= "linux-imx"
#PREFERRED_PROVIDER_u-boot ??= "u-boot-fslc"
#PREFERRED_PROVIDER_virtual/bootloader ??= "u-boot-fslc"
PREFERRED_PROVIDER_u-boot ??= "u-boot-imx"
PREFERRED_PROVIDER_virtual/bootloader ??= "u-boot-imx"
and changed the imx6qsabreauto.conf to
UBOOT_CONFIG ??= "eimnor"
UBOOT_CONFIG[sd] = "mx6qsabreauto_config,sdcard"
UBOOT_CONFIG[eimnor] = "mx6qsabreauto_eimnor_config"
UBOOT_CONFIG[nand] = "mx6qsabreauto_nand_config,ubifs"
UBOOT_CONFIG[spinor] = "mx6qsabreauto_spinor_config"
UBOOT_CONFIG[sata] = "mx6qsabreauto_sata_config"
UBOOT_CONFIG[mfgtool] = "mx6qsabreauto_config"
Now the bitbake does not yield any error as it did before.
Still need to test the u-boot on hardware though.
Thanks for your time,
Best regards,
Nishad