[FS#192] mips kernel patch problem

LEDE Bugs lede-bugs at lists.infradead.org
Thu Sep 29 12:15:11 PDT 2016


The following task has a new comment added:

FS#192 - mips kernel patch problem
User who did this - Giuseppe Lippolis (fidodido)

----------
Dear John,
thanks for your answer.
Here is the dts file I used:


/dts-v1/;

/include/ "rt5350.dtsi"

/ {
        compatible = "ralink,rt5350-soc";
        model = "D-Link DWR-512";

        memory at 0 {
                device_type = "memory";
                reg = ;
        };

        palmbus at 10000000 {
                spi at b00 {
                        status = "okay";
                        mx25l6405d at 0 {
                                #address-cells = ;
                                #size-cells = ;
                                compatible = "macronix,mx25l6405d", "jedec,spi-nor";
                                reg = ;                                
                                spi-max-frequency = ;
								fast-read;

                                partition at 0 {
                                        label = "bootloader";
                                        reg = ;
                                        read-only;
                                };

                                partition at 10000 {
                                        label = "Kernel";
                                        reg = ;
                                        read-only;
                                };

                                partition at 150000 {
                                        label = "rootfs";
                                        reg = ;
                                        read-only;
                                };

                                partition at 710010 {
                                        label = "ui";
                                        reg = ;
                                };

                                partition at 7f0000 {
                                        label = "config";
                                        reg = ;
                                };

                        };
                };
                gpio1: gpio at 660 {
                        status = "okay";
                };
        };
};


I derived (modified by myself) this file from a similar one.
It includes the rt5350.dtsi that I found in the following position:
openwrt-15.05/target/linux/ramips/dts/rt5350.dtsi

Currently I'm using a dirty way to point to this .dts because I'm not able to properly modify the Kbuild structure.

I'm configuring the kernel with make kernel_menuconfig and in the Machine Selection menu I set these value:
System type (Ralink based machines)  --->
     [ ] illegal access irq
     Ralink SoC selection (RT305x)  --->
     Devicetree selection (RT305x eval kit)  --->

Then I name my .dts as rt3052_eval.dts and overwrite the file in
openwrt-15.05/build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_rt305x/linux-3.18.36/arch/mips/boot/dts/

In this directory I also copy the rt5350.dtsi.

Let me know where I'm wrong, so I will try to fix it.

Bye.
----------

More information can be found at the following URL:
https://bugs.lede-project.org/index.php?do=details&task_id=192#comment514



More information about the lede-bugs mailing list