How do I mount the ISO image on the T4240RDB?

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

How do I mount the ISO image on the T4240RDB?

823件の閲覧回数
bipin_nair
Contributor II

Hi NXP

I am having trouble mounting the ISO image on my T4240RDB.

I was able to power on the board and through the UART port connected to my host's COM1, I am at a Linux prompt -

t4240rdb login: root
root@t4240rdb:~#

And now since I am at a Linux prompt that is completely barebones, and doesn't know what is "make" and does not have any GNU toolchain installed, I decided to load the ISO file that came on a thumb drive with the board.

Here are the steps I followed -

root@t4240rdb:/run/media/mmcblk0p1/work# cp /run/media/sda/SW\ image/QorIQ\ Linux\ SDK\ v2.0\ SOURCE.iso .

root@t4240rdb:/run/media/mmcblk0p1/work# mount -o loop /run/media/mmcblk0p1/work/QorIQ\ Linux\ SDK\ v2.0\ SOURCE.iso /mnt/QorIQ-SDK-v2.0
mount: /dev/loop0 is write-protected, mounting read-only

root@t4240rdb:/run/media/mmcblk0p1/work# cd /mnt/QorIQ-SDK-v2.0/
root@t4240rdb:/mnt/QorIQ-SDK-v2.0# ls -lart
total 3561957
-r--r--r-- 1 root root 3621997840 May 19  2016 yocto.tar.gz
-r-xr-xr-x 1 root root       3453 May 19  2016 install
-r--r--r-- 1 root root      32008 May 19  2016 EULA
-r--r--r-- 1 root root   25054847 May 26  2016 QorIQ-SDK-2.0-IC-Rev0.pdf
-r--r--r-- 1 root root     348996 May 26  2016 Software_Content_Register.pdf
dr-xr-xr-x 4 root root       2048 May 26  2016 ls1021a-oobe
dr-xr-xr-x 3 root root       2048 May 27  2016 .
drwxr-xr-x 3 root root       1024 Jul  2 06:13 ..

The instructions say that I am to open STARTHERE.html, but I dont see that file.

1. How do I go about installing the iso image?

2. Will the QorIQ_Linux_SDK_v2.0_SOURCE.iso, which shipped with the board have a fully functional Linux OS with gcc and make for PPC64 that will allow me to build and compile code on the T4240RDB?

ラベル(1)
0 件の賞賛
2 返答(返信)

597件の閲覧回数
Pavel
NXP Employee
NXP Employee

Use PC Linux for SDK building for the T4240. See the Section 3.2.2 of SDK 2.0-1703 documentation:

https://www.nxp.com/docs/en/supporting-information/QORIQ-SDK-2.0-IC-REV0.pdf

 

This SDK has been verified on following Linux distributions: Ubuntu 14.04, CentOS-7.1.1503,

Debian 8.2, Fedora 22 and OpenSUSE 13.2

 

1) Use Ubuntu 14. Do not use Ubuntu 16.

Usually the following command sequence is used for SDK installing under Ubuntu 14.04 64-bit:

  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

 

  1. a) command: ls -l /bin/sh

                Message:  /bin/sh -> dash

  1. 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'

  1. c) command for checking: ls -l /bin/sh

                Message: /bin/sh -> bash

 

  1. mount SDK source .iso file
  2. cd <sdk-install-dir>.
  3. ./sources/meta-freescale/scripts/host-prepare.sh

Usually Linux recommends also run the following command: sudo usr/sbin/visudo

  1. Download and unpack the QorIQ Linux SDK v2.0-1703.bz2

Install SDK v2.0-1703

  1. bitbake fsl-image-minimal

 

 

There are also prebuilt images in this SDK. See the Section 3.2.2.


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 件の賞賛

597件の閲覧回数
bipin_nair
Contributor II

Thank you Pavel,

I installed QorIQ Linux SDK v2.0 SOURCE.iso on a RHEL Linux machine.

I would like use the pre-built Linux image fsl-image-virt to bring up Linux on the board and I see that image in my SDK install directory.

Am I now supposed to copy that image over to my T4240RDB board using TFTP? And then program the board to boot from there?

I think I am able to get to the U-Boot prompt when I interrupt auto-boot on the board. Any direction on how to go about using this image (fsl-image-virt) is appreciated.

Board: T4240RDB, Board rev: 0x04 CPLD ver: 0x0700, vBank: 0
SERDES Reference Clocks:
       SERDES1=100MHz SERDES2=156.25MHz
       SERDES3=100MHz SERDES4=100MHz
SPI:   ready
DRAM:  Initializing....using SPD
Detected UDIMM 18JSF1G72AZ-1G9P1
Detected UDIMM 18JSF1G72AZ-1G9P1
Detected UDIMM 18JSF1G72AZ-1G9P1
22 GiB left unmapped
24 GiB (DDR3, 64-bit, CL=13, ECC on)
       DDR Controller Interleaving Mode: 3-way 4KB
       DDR Chip-Select Interleaving Mode: CS0+CS1
VID: Core voltage after adjustment is at 1023 mV
Flash: 128 MiB
L2:    2 MiB enabled
enable l2 for cluster 1 fec60000
enable l2 for cluster 2 feca0000
Corenet Platform Cache: 1.5 MiB enabled
Using SERDES1 Protocol: 27 (0x1b)
Using SERDES2 Protocol: 55 (0x37)
Using SERDES3 Protocol: 1 (0x1)
Using SERDES4 Protocol: 9 (0x9)
SEC0: RNG instantiated
NAND:  2048 MiB
MMC:   FSL_SDHC: 0
PCIe1: Root Complex, no link, regs @ 0xfe240000
PCIe1: Bus 00 - 00
PCIe2: disabled
PCIe3: Root Complex, no link, regs @ 0xfe260000
PCIe3: Bus 01 - 01
PCIe4: Root Complex, no link, regs @ 0xfe270000
PCIe4: Bus 02 - 02
In:    serial
Out:   serial
Err:   serial
Net:   Fman1: Uploading microcode version 108.4.5
Fman2: Uploading microcode version 108.4.5
FM1@DTSEC1 [PRIME], FM1@DTSEC2, FM1@DTSEC3, FM1@DTSEC4, FM1@TGEC1, FM1@TGEC2, FM2@DTSEC1, FM2@DTSEC2, FM2@DTSEC3, FM2@DTSEC4, FM2@TGEC1, FM2@TGEC2
Hit any key to stop autoboot:  0
=>

0 件の賞賛