LS1046ARDB SD Image

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

LS1046ARDB SD Image

1,182 Views
pavel_meld
Contributor II

Hello, everybody !

Can anybody create SD image with DPDK examples running on it ?

I met the same problem as described here but still have same problems.

SD image could be a good support for beginners here and those who want to evaluate this board.

This would be also helpful to put it in HOW-TOs.

0 Kudos
2 Replies

914 Views
ufedor
NXP Employee
NXP Employee

The instruction provided in the ls1043 run dpdk l2fwd sample error  is fully correct.

Possible variant of the fsl-ls1046a-rdb-usdpaa.dtb insertion into the SD card firmware image is as follows:

Override dtb used with the usdpaa one

# cd /boot

# mv ./fsl-ls1046a-rdb-sdk.dtb ./fsl-ls1046a-rdb-sdk.dtb.sav

# ln -s fsl-ls1046a-rdb-usdpaa.dtb fsl-ls1046a-rdb-sdk.dtb

0 Kudos

914 Views
pavel_meld
Contributor II

Thank you !
I have checked latest LSDK (1909), it makes SD image like a charm!

Moreover, U-BOOT checks /boot partition and finds ls1046ardb_boot.scr file there and evaluates it's contents!

According to this file it's enough to set following U-BOOT variables:

  1. set `dtb` to fsl-ls1046a-rdb-usdpaa.dtb
  2. set `othbootargs` to default_hugepagesz=2MB hugepagesz=2MB hugepages=448 isolcpus=1-3 bportals=s0 qportals=s0 iommu.passthrough=1

Following is the contents of /boot/ls1046ardb_boot.scr that is loaded by U-BOOT:

setenv secureboot_validate 'load $devtype $devnum:$devpart_boot $kernelheader_addr_r /secboot_hdrs/ls1046ardb/hdr_linux.out;  \
    load $devtype $devnum:$devpart_boot $fdtheader_addr_r /secboot_hdrs/ls1046ardb/hdr_dtb.out; \
    esbc_validate $kernelhe ader_addr_r; esbc_validate $fdtheader_addr_r'
env exists dtb || setenv dtb fsl-ls1046a-rdb-sdk.dtb; \
    env exists kernel_image || setenv kernel_image Image; \
    env exists devpart_boot || setenv devpart_boot 2; \
    env exists devpart_root || setenv devpart_root 4; \
    part uuid $devtype $devnum:$devpart_root partuuidr; \
    setenv bootargs console=ttyS0,115200 earlycon=uart8250,mmio,0x21c 0500 root=PARTUUID=$partuuidr rw rootwait $othbootargs; \
    load $devtype $devnum:$devpart_boot $kernel_addr_r $kernel_image; \
    load $devtype $devnum:$devpart_boot $fdt_addr_r $dtb; \
    env exists secureboot && echo validating secureboot && run secureboot_validate;\
    booti $kernel_addr_r - $fdt_addr_r

0 Kudos