Hi,
Solved! Go to Solution.
There is a number of topics in this community related to SDK installation, for example please use the following step-by-step instruction created by Pavel Chubakov:
Usually the following command sequence is used for SDK installing under Ubuntu 14:
1. sudo apt-get install ubuntu-minimal ubuntu-standard patch vim-common sed wget subversion git-core coreutils libbonobo2-common unzip texi2html texinfo libsdl1.2-dev docbook-utils gawk python-pysqlite2 diffstat make gcc build-essential xz-utils g++ desktop-file-utils chrpath libgl1-mesa-dev libglu1-mesa-dev autoconf automake groff libtool xterm libncurses5-dev cvs tofrodos
2. a) command: ls -l /bin/sh
Message: /bin/sh -> dash
b) command: sudo dpkg-reconfigure dash
Answer after password – No
Message:
Removing 'diversion of /bin/sh to /bin/sh.distrib by dash'
Adding 'diversion of /bin/sh to /bin/sh.distrib by bash'
Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash'
Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash'
c) command for checking: ls -l /bin/sh
Message: /bin/sh -> bash
3. mount SDK 2.0 .iso file
4. cd <sdk-install-dir>.
5. ./sources/meta-freescale/scripts/host-prepare.sh
Usually Linux recommends also run the following command: sudo usr/sbin/visudo
6. install update SDK 2.0-1703
7. bitbake fsl-image-minimal
Have a great day,
Alexander
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
There is a number of topics in this community related to SDK installation, for example please use the following step-by-step instruction created by Pavel Chubakov:
Usually the following command sequence is used for SDK installing under Ubuntu 14:
1. sudo apt-get install ubuntu-minimal ubuntu-standard patch vim-common sed wget subversion git-core coreutils libbonobo2-common unzip texi2html texinfo libsdl1.2-dev docbook-utils gawk python-pysqlite2 diffstat make gcc build-essential xz-utils g++ desktop-file-utils chrpath libgl1-mesa-dev libglu1-mesa-dev autoconf automake groff libtool xterm libncurses5-dev cvs tofrodos
2. a) command: ls -l /bin/sh
Message: /bin/sh -> dash
b) command: sudo dpkg-reconfigure dash
Answer after password – No
Message:
Removing 'diversion of /bin/sh to /bin/sh.distrib by dash'
Adding 'diversion of /bin/sh to /bin/sh.distrib by bash'
Removing 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by dash'
Adding 'diversion of /usr/share/man/man1/sh.1.gz to /usr/share/man/man1/sh.distrib.1.gz by bash'
c) command for checking: ls -l /bin/sh
Message: /bin/sh -> bash
3. mount SDK 2.0 .iso file
4. cd <sdk-install-dir>.
5. ./sources/meta-freescale/scripts/host-prepare.sh
Usually Linux recommends also run the following command: sudo usr/sbin/visudo
6. install update SDK 2.0-1703
7. bitbake fsl-image-minimal
Have a great day,
Alexander
TIC
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Alex,
Thank you for your response. This helped us to proceed further.
We were able to compile default uboot for qspi flash. We are planing to use LS1012A to design a board based on FRDM-LS1012A. I want to store uBoot and Linux OS file system in NAND FLASH and/or SD card.
We are referring "NXP SDK 2.0-1703 documentation" document and are using Ubuntu 14.04 on host PC.
As per your earlier suggestions, we have done following changes to configure SD boot.
Device Drivers ---> MMC host controller support ---> MMC/SD/SDIO card support (CONFIG_MMC=y)
and
Command line interface ---> Device access commands ---> mmc (CONFIG_CMD_MMC=y) to get mmc command support in u-boot.
Also modified following files
1. ls1012afrdm.conf (QorIQ-SDK-V2.0-20160527-yocto/sources/meta-nxp-npi-1703/conf/machine/ls1012afrdm.conf)
....
....
....
UBOOT_CONFIG ??= "qspi sdcard-ifc"
UBOOT_CONFIG[qspi] = "ls1012afrdm_qspi_config,,u-boot-dtb.bin"
UBOOT_CONFIG[sdcard-ifc] = "ls1012afrdm_sdcard_ifc_config,,u-boot-with-spl-pbl.bin"
2. fsl-ls1012a-frdm.dts i (build_ls1012afrdm/tmp/work/ls1012afrdm-fsl-linux/u-boot-qoriq/2016.09+fslgit-r0/git/dts/arch/arm/dts/fsl-ls1012a-frdm.dtsi)
I've activated the esdhc0 driver:
&esdhc0 {
status = "okay";
};
3. ls1012afrdm.h (include/configs/ls1012afrdm.h )
I've added:
/* MMC */
#ifdef CONFIG_MMC
#define CONFIG_FSL_ESDHC
#define CONFIG_SYS_FSL_MMC_HAS_CAPBLT_VS33
#endif
4. ls1012afrdm.c (board/freescale/ls1012afrdm/ls1012afrdm.c )
#include <mmc.h>
#include <fsl_esdhc.h>
(...)
#ifdef CONFIG_FSL_ESDHC
struct fsl_esdhc_cfg esdhc_cfg[1] = {
{CONFIG_SYS_FSL_ESDHC_ADDR},
};
int board_mmc_init(bd_t *bis)
{
esdhc_cfg[0].sdhc_clk = mxc_get_clock(MXC_ESDHC_CLK);
return fsl_esdhc_initialize(bis, &esdhc_cfg[0]);
}
#endif
5. Created ls1012afrdm_sdcard_ifc_defconfig
After execution of below command,
$ bitbake -c compile -f u-boot
We see following errors. So please suggest how to configure uboot for SD boot and for NAND boot.
Please help.