Yocto: Create custom MACHINE based on ls1028ardb

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

Yocto: Create custom MACHINE based on ls1028ardb

2,712 Views
mikelooijmans
Contributor IV

We're creating a custom board around an LS1027 chip. To experiment, we have a ls1028ardb board.

In preparation for supporting our custom board, I'm creating our own "machine" in Yocto (as I've done numerous times before for other vendor's layers). At this point, this machine should just be the same thing under a different name.

Made a copy of the ls1028ardb.conf into "my1028.conf".

Attempting to build fails on the RCW and ATF recipes. Which are sort of unique to this platform.

The RCW issues I could work around in s rcv_git.bbappend so it uses the same files:
BOARD_TARGETS:my1028 = "ls1028ardb"
RCW_FOLDER:my1028 = "ls1028ardb"

I tried the same trick with the ATF, so I created a qoriq-atf_%.bbappend with:
PLATFORM:my1028 = "ls1028ardb"

This doesn't get anywhere, it fails with:

| cp: cannot stat '*.pbl': No such file or directory
| WARNING: /.../qoriq-atf/2.6+AUTOINC+atf-r0/temp/run.do_install.30031:150 exit 1 from 'cp *.pbl /.../qoriq-atf/2.6+AUTOINC+atf-r0/image/boot/atf/'
| WARNING: Backtrace (BB generated script):

Apparently the compile step doesn't really output anything useful.

Do I really need to fork the ATF to get this to work? Is there some meta-freescale specific guide to create new boards? I assume dozens of developers have been down this path before...

Tags (2)
0 Kudos
Reply
5 Replies

1,905 Views
lukipedio
Contributor I

I am facing exactly the same issue now.

I am using the Yocto SDK from https://github.com/nxp-qoriq/yocto-sdk/tree/scarthgap.

I am reading LLDPUG Rev.6.1.55_2.2.0.

I am using scarthgap branch and YP 5.0-lf-6.6.52.

I see there is no LLDPUG aligned to 6.6.52 yet.

But there is no mention on how to build ATF when using a custom board.

My custom board is based on LS1028ARDB, so I have created a bbappend file for qoriq-atf_2.10 and added:
ATF_PLATFORM:dig2lite = "ls1028ardb"

But it doesn't help.

do-install task fails for missing pbl file.

What's the solution?

0 Kudos
Reply

1,890 Views
lukipedio
Contributor I
I only see the following paragraph inn LLDPUG :
3.5.12 Add a custom machine in Yocto bitbake based on Layerscape LDP release To add a custom machine, perform the steps given below: For example, LS1043AXX based on the LS1043A SoC. 1. Run repo init and repo sync to fetch all Git repositories of Layerscape LDP components for the first time. 2. Add configs in yocto bitbake for new machine: Add ls1043axx node in conf/machine/ls1043axx.conf.

I have copied the ls1028ardb.conf into a new conf file with my machine name and changed my conf/local.conf file accordingly, but I still get the exact same error.
0 Kudos
Reply

1,895 Views
lukipedio
Contributor I
Also, I notice there is no qoriq-composite-firmware image recipe anymore.
I used that recipe when working with Yocto mickeldore version of Yocto SDK.

Why has it been removed?
What is the equivalent recipe?
0 Kudos
Reply

2,678 Views
LFGP
NXP TechSupport
NXP TechSupport
Please review the section "4 Getting started with Layerscape LDP" at the LLDP User guide, you can download it from the NXP web page.
 
You can modify our BSP as your preference.
0 Kudos
Reply

1,871 Views
lukipedio
Contributor I

Dear @LFGP ,

  I have solved my issue with the attached bbappend file.

 

 

0 Kudos
Reply