How to boot Layerscape board using an empty DPL file

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

How to boot Layerscape board using an empty DPL file

How to boot Layerscape board using an empty DPL file

To boot a Layerscape board with an empty DPL file:

  1. Create an empty DPL file, content.dts. For example:

    /dts-v1/;
    / {
    		     
    	   dpl-version = <0x0000000a>;
            containers {
                    dprc@1 {
                            compatible = "fsl,dprc";
                            parent = "none";
                            options = "DPRC_CFG_OPT_SPAWN_ALLOWED", "DPRC_CFG_OPT_ALLOC_ALLOWED", "DPRC_CFG_OPT_IRQ_CFG_ALLOWED";
                            objects {
                                    obj_set@dpmcp {
                                            type = "dpmcp";
                                             ids = <0x1 0x2 0x3 0x4 0x5 0x6 0x7 0x8 0x9 0xa 0xb 0xc 0xd>; 
                                    };
                            };
                    };
            };
            objects {
                    dpmcp@1 {
                            compatible = "fsl,dpmcp";
                    };
                    dpmcp@2 {
                            compatible = "fsl,dpmcp";
                    };
                    dpmcp@3 {
                            compatible = "fsl,dpmcp";
                    };
                    dpmcp@4 {
                            compatible = "fsl,dpmcp";
                    };
                    dpmcp@5 {
                            compatible = "fsl,dpmcp";
                 };
                    dpmcp@6 {
                            compatible = "fsl,dpmcp";
                    };
                    dpmcp@7 {
                            compatible = "fsl,dpmcp";
                    };
                    dpmcp@8 {
                            compatible = "fsl,dpmcp";
                    };
                    dpmcp@9 {
                            compatible = "fsl,dpmcp";
                    };
                    dpmcp@10 {
                            compatible = "fsl,dpmcp";
                    };
                    dpmcp@11 {
                            compatible = "fsl,dpmcp";
                    };
                    dpmcp@12 {
                            compatible = "fsl,dpmcp";
                    };
                    dpmcp@13 {
                            compatible = "fsl,dpmcp";
                    };
                    dpmcp@14 {
                            compatible = "fsl,dpmcp";
                    };
                    dpmcp@15 {
                            compatible = "fsl,dpmcp";
                    };
                    dpmcp@16 {
                            compatible = "fsl,dpmcp";
                    };
                    dpmcp@17 {
                            compatible = "fsl,dpmcp";
                    };
                    dpmcp@18 {
                            compatible = "fsl,dpmcp";
                    };
                   dpmcp@19 {
                            compatible = "fsl,dpmcp";
                    };
            };
    };
    ​

    Note: There is no network object capable of receiving Ethernet frames in the DPL file. You can create more dpmcps if the number of objects that will be created dynamically is high.

  2. Generate the DPL file using content.dts.
    dtc -I dts -O dtb -o dpl.dtb content.dts​
  3. Flash the DPL file, dpl.dtb to the alternate bank. 
    tftp 0x80000000 dpl.dtb; i2c mw 66 50 20;sf probe; sf erase 0x00D00000  +$filesize && sf write 0x80000000 0x00D00000 $filesize​
  4. Boot the board. After the board boots, create a dpmac. (Make sure you create a DPMAC that is valid based on the selected SERDES protocol configured by the RCW).
    restool dpmac create --mac-id=3​
  5. Probe the dpmac driver.
    restool dprc assign dprc.1 --object=dpmac.3 --plugged=1​
  6. Create a network interface.
    ls-addni dpmac.3​
  7. Save contents as content_new.dts.
    restool dprc generate-dpl dprc.1 > content_new.dts​

 

 

%3CLINGO-SUB%20id%3D%22lingo-sub-1170977%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EHow%20to%20boot%20Layerscape%20board%20using%20an%20empty%20DPL%20file%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1170977%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3ETo%20boot%20a%20Layerscape%20board%20with%20an%20empty%20DPL%20file%3A%3C%2FP%3E%0A%3COL%3E%0A%3CLI%20class%3D%22lia-message-template-content-zone%22%3E%0A%3CP%3ECreate%20an%20empty%20DPL%20file%2C%20%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3Econtent.dts.%3C%2FFONT%3E%20For%20example%3A%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3E%2Fdts-v1%2F%3B%0A%2F%20%7B%0A%09%09%20%20%20%20%20%0A%09%20%20%20dpl-version%20%3D%20%26lt%3B0x0000000a%26gt%3B%3B%0A%20%20%20%20%20%20%20%20containers%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20dprc%401%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20compatible%20%3D%20%22fsl%2Cdprc%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20parent%20%3D%20%22none%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20options%20%3D%20%22DPRC_CFG_OPT_SPAWN_ALLOWED%22%2C%20%22DPRC_CFG_OPT_ALLOC_ALLOWED%22%2C%20%22DPRC_CFG_OPT_IRQ_CFG_ALLOWED%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20objects%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20obj_set%40dpmcp%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20type%20%3D%20%22dpmcp%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ids%20%3D%20%26lt%3B0x1%200x2%200x3%200x4%200x5%200x6%200x7%200x8%200x9%200xa%200xb%200xc%200xd%26gt%3B%3B%20%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20objects%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20dpmcp%401%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20compatible%20%3D%20%22fsl%2Cdpmcp%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20dpmcp%402%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20compatible%20%3D%20%22fsl%2Cdpmcp%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20dpmcp%403%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20compatible%20%3D%20%22fsl%2Cdpmcp%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20dpmcp%404%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20compatible%20%3D%20%22fsl%2Cdpmcp%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20dpmcp%405%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20compatible%20%3D%20%22fsl%2Cdpmcp%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20dpmcp%406%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20compatible%20%3D%20%22fsl%2Cdpmcp%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20dpmcp%407%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20compatible%20%3D%20%22fsl%2Cdpmcp%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20dpmcp%408%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20compatible%20%3D%20%22fsl%2Cdpmcp%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20dpmcp%409%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20compatible%20%3D%20%22fsl%2Cdpmcp%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20dpmcp%4010%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20compatible%20%3D%20%22fsl%2Cdpmcp%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20dpmcp%4011%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20compatible%20%3D%20%22fsl%2Cdpmcp%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20dpmcp%4012%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20compatible%20%3D%20%22fsl%2Cdpmcp%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20dpmcp%4013%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20compatible%20%3D%20%22fsl%2Cdpmcp%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20dpmcp%4014%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20compatible%20%3D%20%22fsl%2Cdpmcp%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20dpmcp%4015%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20compatible%20%3D%20%22fsl%2Cdpmcp%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20dpmcp%4016%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20compatible%20%3D%20%22fsl%2Cdpmcp%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20dpmcp%4017%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20compatible%20%3D%20%22fsl%2Cdpmcp%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20dpmcp%4018%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20compatible%20%3D%20%22fsl%2Cdpmcp%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20dpmcp%4019%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20compatible%20%3D%20%22fsl%2Cdpmcp%22%3B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%3B%0A%20%20%20%20%20%20%20%20%7D%3B%0A%7D%3B%0A%E2%80%8B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%3CSTRONG%3ENote%3A%3C%2FSTRONG%3E%26nbsp%3BThere%20is%20no%20network%20object%20capable%20of%20receiving%20Ethernet%20frames%20in%20the%20DPL%20file.%20You%20can%20create%20more%20%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3Edpmcps%3C%2FFONT%3E%26nbsp%3Bif%20the%20number%20of%20objects%20that%20will%20be%20created%20dynamically%20is%20high.%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%20class%3D%22lia-message-template-content-zone%22%3EGenerate%20the%20DPL%20file%20using%20%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3Econtent.dts.%3C%2FFONT%3E%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Edtc%20-I%20dts%20-O%20dtb%20-o%20dpl.dtb%20content.dts%E2%80%8B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLI%3E%0A%3CLI%20class%3D%22lia-message-template-content-zone%22%3EFlash%20the%20DPL%20file%2C%20%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3Edpl.dtb%3C%2FFONT%3E%20to%20the%20alternate%20bank.%26nbsp%3B%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Etftp%200x80000000%20dpl.dtb%3B%20i2c%20mw%2066%2050%2020%3Bsf%20probe%3B%20sf%20erase%200x00D00000%20%20%2B%24filesize%20%26amp%3B%26amp%3B%20sf%20write%200x80000000%200x00D00000%20%24filesize%E2%80%8B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLI%3E%0A%3CLI%20class%3D%22lia-message-template-content-zone%22%3EBoot%20the%20board.%26nbsp%3BAfter%20the%20board%20boots%2C%20create%20a%20dpmac.%20(Make%20sure%20you%20create%20a%20DPMAC%20that%20is%20valid%20based%20on%20the%20selected%20SERDES%20protocol%20configured%20by%20the%20RCW).%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Erestool%20dpmac%20create%20--mac-id%3D3%E2%80%8B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLI%3E%0A%3CLI%20class%3D%22lia-message-template-content-zone%22%3EProbe%20the%20dpmac%20driver.%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Erestool%20dprc%20assign%20dprc.1%20--object%3Ddpmac.3%20--plugged%3D1%E2%80%8B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLI%3E%0A%3CLI%20class%3D%22lia-message-template-content-zone%22%3ECreate%20a%20network%20interface.%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Els-addni%20dpmac.3%E2%80%8B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLI%3E%0A%3CLI%3ESave%20contents%20as%20%3CFONT%20face%3D%22courier%20new%2Ccourier%22%3Econtent_new.dts%3C%2FFONT%3E.%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Erestool%20dprc%20generate-dpl%20dprc.1%20%26gt%3B%20content_new.dts%E2%80%8B%3C%2FCODE%3E%3C%2FPRE%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CBR%20%2F%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E
No ratings
Version history
Last update:
‎02-18-2021 04:00 AM
Updated by: