How to boot Layerscape board using an empty DPL file

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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​

 

 

无评分
版本历史
最后更新:
‎02-18-2021 04:00 AM
更新人: