LSDK tutorial

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

LSDK tutorial

1,036 Views
rashmikj
Contributor III

As LSDK for layerscape processor is very large body of software , NXP should include have some training on flow of code  as it is very difficult to understand the flow for beginners like me. LSDKUG is not very helpful as it only explains at top level.It does not explain on how to modify the device tree to suit our custom board and so on. Kindly help. 

Labels (1)
0 Kudos
1 Reply

984 Views
Pavel
NXP Employee
NXP Employee

Use the following command sequence for LSDK2004 installing:

Install Ubuntu 18.04.

Install all updates for this Ubuntu.

Install and build LSDK2004 using the following command sequence:

  1. sudo apt-get install git
  2. tar xvzf flexbuild_lsdk2004.tgz
  3. change folder and issue the following command: source setup.env
  4. flex-builder -i mkrfs -a arm64
  5. flex-builder -c linux -a arm64
  6. flex-builder -i mkfw -m ls1012afrwy -b qspi

 

Change .dts file and using the following commands for building:

flex-builder -c linux -a arm64

flex-builder -i mkfw -m ls1012afrwy -b qspi

 

See the AN5125 about Device Tree:

https://www.nxp.com/docs/en/application-note/AN5125.pdf

 

There is also information in internet about Device Tree:

https://elinux.org/Device_Tree_Reference

 

https://www.kernel.org/doc/Documentation/devicetree/usage-model.txt

 

https://www.devicetree.org/specifications/

Have a great day,
Pavel Chubakov

 

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

0 Kudos