sdk upgade from 1.5 to 2.0(sdk2.0) and kernel from 3.12 to 4.1.8

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

sdk upgade from 1.5 to 2.0(sdk2.0) and kernel from 3.12 to 4.1.8

1,820 Views
girramsivakrish
Contributor II

Hi , was trying to upgade sdk to 2.0(sdk2.0) and kernel from 3.12 to 4.1.8 . During kernel boot was facing below issue related to fman .

[ 1.294574] libphy: Freescale XGMAC MDIO Bus: probed
[ 1.299598] libphy: Freescale XGMAC MDIO Bus: probed
[ 1.304819] fsl-fman ffe400000.fman: ReadFmDevTreeNode: Failed to determine FM clock rate
[ 1.313007] fsl-fman: probe of ffe400000.fman failed with error -5
[ 1.319295] Freescale FM module, FMD API version 21.1.0
[ 1.324756] fsl-fman-port: probe of ffe482000.port failed with error -5
[ 1.331416] fsl-fman-port: probe of ffe483000.port failed with error -5
[ 1.338076] fsl-fman-port: probe of ffe484000.port failed with error -5
[ 1.344736] fsl-fman-port: probe of ffe485000.port failed with error -5
[ 1.351396] fsl-fman-port: probe of ffe486000.port failed with error -5
[ 1.358056] fsl-fman-port: probe of ffe487000.port failed with error -5
[ 1.364731] fsl-fman-port: probe of ffe488000.port failed with error -5
[ 1.371391] fsl-fman-port: probe of ffe4a8000.port failed with error -5
[ 1.378054] fsl-fman-port: probe of ffe489000.port failed with error -5
[ 1.384714] fsl-fman-port: probe of ffe4a9000.port failed with error -5
[ 1.391376] fsl-fman-port: probe of ffe48a000.port failed with error -5
[ 1.398036] fsl-fman-port: probe of ffe4aa000.port failed with error -5
[ 1.404699] fsl-fman-port: probe of ffe48b000.port failed with error -5
[ 1.411359] fsl-fman-port: probe of ffe4ab000.port failed with error -5
[ 1.418021] fsl-fman-port: probe of ffe48c000.port failed with error -5
[ 1.424681] fsl-fman-port: probe of ffe4ac000.port failed with error -5
[ 1.431344] fsl-fman-port: probe of ffe48d000.port failed with error -5
[ 1.438004] fsl-fman-port: probe of ffe4ad000.port failed with error -5
[ 1.444666] fsl-fman-port: probe of ffe490000.port failed with error -5
[ 1.451326] fsl-fman-port: probe of ffe4b0000.port failed with error -5
[ 1.457990] fsl-fman-port: probe of ffe491000.port failed with error -5
[ 1.464650] fsl-fman-port: probe of ffe4b1000.port failed with error -5
[ 1.471377] Freescale FM Ports module
 

Note : i included  CONFIG_CLK_QORIQ in config file as suggested still i was facing above issue

.

How to resolve above issue ?

Tags (1)
8 Replies

1,668 Views
Pavel
NXP Employee
NXP Employee

Use Ubuntu 12 or Ubuntu 14. Do not use Ubuntu 16 or Ubuntu 18.

Usually the following command sequence is used for SDK 2.0 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. Change directory to SDK Yocto. Usually is the following:

/QorIQ-SDK-V2.0-20160527-yocto

  1. . fsl-setup-env -m b4860qds
  2. bitbake fsl-image-minimal

Have a great day,
Pavel Chubakov

0 Kudos
Reply

1,668 Views
girramsivakrish
Contributor II

Hi Pavel Chubakov ,

No, i'm trying to upgrade only kernel as of now .

can you please share steps fhow to use sdk 2.0 on board ?

Thanks ,

Siva Krishna Girram

0 Kudos
Reply

1,668 Views
Pavel
NXP Employee
NXP Employee

Do you use SDK 2.0 on your board?

This SDK provides kernel 4.1.8 and was tested on the B4860QDS board.

Have a great day,
Pavel Chubakov

1,668 Views
Pavel
NXP Employee
NXP Employee

Yes, it can be reason of this incorrect behavior.

Use microcode version 108.


Have a great day,
Pavel Chubakov

-------------------------------------------------------------------------------
Note:

This thread is continued as a private discussion with the submitter,
NXP support is not following the thread anymore.
-------------------------------------------------------------------------------

0 Kudos
Reply

1,668 Views
girramsivakrish
Contributor II

after updating fman micro code also i am facing the issue 

0 Kudos
Reply

1,668 Views
girramsivakrish
Contributor II

Any other suggestions 

0 Kudos
Reply

1,668 Views
girramsivakrish
Contributor II

Hi Pavel  ,

Thanks for the reply . 

from below boot logs i understand that fman micro code is loaded properly . But sdk2.0 says fman microcode version should be 108 but in my case it is 106  so could this be the reason?

But  from above log  there was some issue in reading device tree file and error is code also 5 which is I/O error.

so am i missing anything in device tree (dts) ? or do i need to add any extra properties to add in fman device node ?

CPU0: B4860E, Version: 2.1, (0x86880021)
Core: E6500, Version: 2.0, (0x80400020)
Clock Configuration:
CPU0:1600 MHz, CPU1:1600 MHz, CPU2:1600 MHz, CPU3:1600 MHz,
CCB:666.667 MHz,
DDR:800 MHz (1600 MT/s data rate) (Asynchronous), IFC:166.667 MHz
FMAN1: 666.667 MHz
QMAN: 333.333 MHz
L1: D-cache 32 kB enabled
I-cache 32 kB enabled
Board: B4860QDS, Sys ID: TBD, Sys Ver: TBD, NAND
Reset Configuration Word (RCW):
00000000: 14180018 0f001218 00000000 00000000
00000010: ba740000 00508700 e8915000 a9000000
00000020: 00c00000 00000019 00000000 0002dffc
00000030: 00000105 04000020 00000000 00006011
I2C: ready
SPI: ready
DRAM: Initializing....using SPD
Detected RDIMM 18KSF1G72PDZ-1G6E1
Detected RDIMM 18KSF1G72PDZ-1G6E1
hw_config:fsl_ddr:ctlr_intlv=page,bank_intlv=cs0_cs1;usb1:dr_mode=host,phy_type=ulpi
hw_config:fsl_ddr:ctlr_intlv=page,bank_intlv=cs0_cs1;usb1:dr_mode=host,phy_type=ulpi
hw_config:fsl_ddr:ctlr_intlv=page,bank_intlv=cs0_cs1;usb1:dr_mode=host,phy_type=ulpi
hw_config:fsl_ddr:ctlr_intlv=page,bank_intlv=cs0_cs1;usb1:dr_mode=host,phy_type=ulpi
hw_config:fsl_ddr:ctlr_intlv=page,bank_intlv=cs0_cs1;usb1:dr_mode=host,phy_type=ulpi
hw_config:fsl_ddr:ctlr_intlv=page,bank_intlv=cs0_cs1;usb1:dr_mode=host,phy_type=ulpi
hw_config:fsl_ddr:ctlr_intlv=page,bank_intlv=cs0_cs1;usb1:dr_mode=host,phy_type=ulpi
hw_config:fsl_ddr:ctlr_intlv=page,bank_intlv=cs0_cs1;usb1:dr_mode=host,phy_type=ulpi
14 GiB left unmapped
DDR: 16 GiB (DDR3, 64-bit, CL=10.5, ECC on)
DDR Controller Interleaving Mode: page
DDR Chip-Select Interleaving Mode: CS0+CS1
Now running in RAM - U-Boot at: 7ff70000
L2: 2048 KB enabled
enable l2 for cluster 1 fec60000
enable l2 for cluster 2 feca0000
enable l2 for cluster 3 fece0000
Corenet Platform Cache: 1024 KB enabled
Using SERDES1 Protocol: 93 (0x5d)
Using SERDES2 Protocol: 116 (0x74)
SRIO1: enabled
SRIO2: disabled
NAND: nand_get_flash_type: first ID read 2c,48
ONFI flash detected
NAND device: Manufacturer ID: 0x2c, Chip ID: 0x48 (Micron MT29F32G08AFABAWP)
nand_get_flash_type: first ID read 2c,48
ONFI flash detected
NAND device: Manufacturer ID: 0x2c, Chip ID: 0x48 (Micron MT29F32G08AFABAWP)
4096 MiB
Reading VPD from EEPROM
dir_init : current_dir_index 93
In: serial
Out: serial
Err: serial
Net: Initializing Fman
Fman1: Uploading microcode version 106.4.14
FM1@DTSEC1 [PRIME], FM1@DTSEC2, FM1@DTSEC3, FM1@DTSEC4

0 Kudos
Reply

1,668 Views
Pavel
NXP Employee
NXP Employee

NXP SDK 2.0 provides Linux kernel 4.1.35.

It looks like that fman microcode is not loaded or is incorrect.

See the Section 3.2.5 of SDK 2.0-1703 documentation:

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


Have a great day,
Pavel Chubakov

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

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos
Reply