FRDM LS1012A

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

FRDM LS1012A

Jump to solution
2,586 Views
narendrakale
Contributor I

Hi,

We are developing a product using LS1012A processor and bought a development board (FRDM LS1012A) for same.
For firmware development, we are using UBUNTU 14.04 64 bit and referring QorIQ SDK V2.0-1703 document, Rev. 0, Mar 2017 
to install following images. We are able to install following images.
1. QorIQ Linux SDK v2.0 AARCH64 Yocto Cache.iso
2. QorIQ Linux SDK v2.0 SOURCE.iso
3. QorIQ Linux SDK v2.0-1703.tar.bz2
However, not able to install following
sudo apt-get install lib32z1 lib32ncurses5 lib32bz2-1.0 ia32-libs lib32ncurses5-dev
It fails at ia32-libs
and hence fail to do 
1. bitbake -c compile -f u-boot
2. bitbake u-boot
Please help urgently. Also, do let me know who can be FAE for my queries.
Best regards
Narendra
Labels (1)
Tags (1)
0 Kudos
Reply
1 Solution
1,743 Views
alexander_yakov
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

2 Replies
1,744 Views
alexander_yakov
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

1,743 Views
narendrakale
Contributor I

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.

Img1.png

Img2.png

Please help.

0 Kudos
Reply