OpenWrt Forum Archive

Topic: Device tree help

The content of this topic has been archived on 13 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

Dear All,
I'm trying to port openwrt to the dwr-512.
Currently I experiment a reboot after this call of_scan_flat_dt(early_init_dt_find_chosen, NULL); in linux-3.18.36/arch/mips/ralink/of.c

here the console dump:

Starting kernel @80000000...
[    0.000000] Linux version 3.18.36 (lippo@nice) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r49404) ) #11 Tue Sep 27 22:56:37 CEST 2016
[    0.000000] SoC Type: Ralink RT5350 id:1 rev:3
[    0.000000] prom: fw_arg0=00000000 fw_arg1=00000000 fw_arg2=00000000 fw_arg3=00000008
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001964c (MIPS 24KEc)
[    0.000000] Check0
[    0.000000] Check1
[    0.000000] Check2
[    0.000000] Check 2.1
[    0.000000] Check 2.1.1
[    0.000000] Check 2.1.2
[    0.000000] Check 2.1.3
[    0.000000] Linux version 3.18.36 (lippo@nice) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r49404) ) #11 Tue Sep 27 22:56:37 CEST 2016
[    0.000000] SoC Type: Ralink RT5350 id:1 rev:3
[    0.000000] prom: fw_arg0=00000000 fw_arg1=00000000 fw_arg2=00000004 fw_arg3=00000000
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001964c (MIPS 24KEc)
[    0.000000] Check0
[    0.000000] Check1
[    0.000000] Check2
[    0.000000] Check 2.1
[    0.000000] Check 2.1.1
[    0.000000] Check 2.1.2
[    0.000000] Check 2.1.3
[    0.000000] Linux version 3.18.36 (lippo@nice) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r49404) ) #11 Tue Sep 27 22:56:37 CEST 2016
[    0.000000] SoC Type: Ralink RT5350 id:1 rev:3

Currently I'm using an embedded device tree not in line with the real HW (I will modify it).
But to better debug the problem, can someone help my in understand hw the kernel process the embedded device tree starting from the boot?

here my modified of.c code:

void __init plat_mem_setup(void)
{
        pr_info("Check 2.1.1\n");
        set_io_port_base(KSEG1);
        pr_info("Check 2.1.2\n");

        /*
         * Load the builtin devicetree. This causes the chosen node to be
         * parsed resulting in our memory appearing
         */
        __dt_setup_arch(&__image_dtb);
        pr_info("Check 2.1.3\n");

        of_scan_flat_dt(early_init_dt_find_chosen, NULL);
        pr_info("Check 2.1.4\n");
        if (chosen_dtb)
                strlcpy(arcs_cmdline, boot_command_line, COMMAND_LINE_SIZE);
        pr_info("Check 2.1.5\n");

        of_scan_flat_dt(early_init_dt_find_memory, NULL);
        if (memory_dtb)
                of_scan_flat_dt(early_init_dt_scan_memory, NULL);
        else if (soc_info.mem_size)
                add_memory_region(soc_info.mem_base, soc_info.mem_size * SZ_1M,
                                  BOOT_MEM_RAM);
        else
                detect_memory_region(soc_info.mem_base,
                                     soc_info.mem_size_min * SZ_1M,
                                     soc_info.mem_size_max * SZ_1M);
}

Thanks.
Bye.

My 2 guesses:
1) Your DTB wasn't added to the image correctly
2) Your DTS doesn't contain root entry:

/ {
(...)
};

Dear Zajec,
thanks for your answer.
Currently I selected the device tree I found in the make kernel_menuconfig in the Machine Selection menu:
System type (Ralink based machines)  --->
     [ ] illegal access irq
     Ralink SoC selection (RT305x)  --->
     Devicetree selection (RT305x eval kit)  --->       

If I understood well the Kbuild system the dts file I'm pointing is the linux-3.18.36/arch/mips/boot/dts/rt3052_eval.dts:

/dts-v1/;

#include "rt3050.dtsi"

/ {
        compatible = "ralink,rt3052-eval-board", "ralink,rt3052-soc";
        model = "Ralink RT3052 evaluation board";

        memory@0 {
                device_type = "memory";
                reg = <0x0 0x2000000>;
        };

        chosen {
                bootargs = "console=ttyS0,57600";
        };

        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;

                bank-width = <2>;
                device-width = <2>;
                #address-cells = <1>;
                #size-cells = <1>;

                partition@0 {
                        label = "uboot";
                        reg = <0x0 0x30000>;
                        read-only;
                };
                partition@30000 {
                        label = "uboot-env";
                        reg = <0x30000 0x10000>;
                        read-only;
                };
                partition@40000 {
                        label = "calibration";
                        reg = <0x40000 0x10000>;
                        read-only;
                };
                partition@50000 {
                        label = "linux";
                        reg = <0x50000 0x7b0000>;
                };
        };

        usb@101c0000 {
                status = "ok";
        };
};

including the rt3050.dtsi

/ {
        #address-cells = <1>;
        #size-cells = <1>;
        compatible = "ralink,rt3050-soc", "ralink,rt3052-soc", "ralink,rt3350-soc";

        cpus {
                cpu@0 {
                        compatible = "mips,mips24KEc";
                };
        };

        cpuintc: cpuintc@0 {
                #address-cells = <0>;
                #interrupt-cells = <1>;
                interrupt-controller;
                compatible = "mti,cpu-interrupt-controller";
        };

        palmbus@10000000 {
                compatible = "palmbus";
                reg = <0x10000000 0x200000>;
                ranges = <0x0 0x10000000 0x1FFFFF>;

                #address-cells = <1>;
                #size-cells = <1>;

                sysc@0 {
                        compatible = "ralink,rt3052-sysc", "ralink,rt3050-sysc";
                        reg = <0x0 0x100>;
                };

                intc: intc@200 {
                        compatible = "ralink,rt3052-intc", "ralink,rt2880-intc";
                        reg = <0x200 0x100>;

                        interrupt-controller;
                        #interrupt-cells = <1>;

                        interrupt-parent = <&cpuintc>;
                        interrupts = <2>;
                };

                memc@300 {
                        compatible = "ralink,rt3052-memc", "ralink,rt3050-memc";
                        reg = <0x300 0x100>;
                };

                uartlite@c00 {
                        compatible = "ralink,rt3052-uart", "ralink,rt2880-uart", "ns16550a";
                        reg = <0xc00 0x100>;

                        interrupt-parent = <&intc>;
                        interrupts = <12>;

                        reg-shift = <2>;
                };
        };

Is there something wrong there?

Now I compiled a better dts reflecting the HW structure. How can I add this dts in the kernel compilation process?

Thanks.

Hm, there is /chosen in your DTS. I can't see why

of_scan_flat_dt(early_init_dt_find_chosen, NULL);

should crash/hang/whatever. It seems to be added by Kaloz with 0104-fix_bootargs_handling.patch, maybe you could try contacting Kaloz about this issue.

I try ro revert the patch from Kaloz and now I'm able to proceed:

               
Jboot B394
JRecovery Version R1.2 2011/05/26 09:53
=== 0xB0100004 = 00000000 
SPI FLASH: MX25l6405d 8M
CSID 6E20->6E24
................
Starting kernel @80000000...
[    0.000000] Linux version 3.18.36 (lippo@nice) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r49404) ) #15 Wed Sep 28 23:09:19 CEST 2016
[    0.000000] SoC Type: Ralink RT5350 id:1 rev:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001964c (MIPS 24KEc)
[    0.000000] Check0
[    0.000000] Check2
[    0.000000] Check 2.1
[    0.000000] Check 2.1.1
[    0.000000] Check 2.1.2
[    0.000000] Check 2.1.3
[    0.000000] Check 2.1.4
[    0.000000] Check 2.1.5
[    0.000000] Check 2.1.6
[    0.000000] Check 2.2
[    0.000000] Check 2.3
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] doing early options: dyndbg='file * +p'
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x00000000-0x01ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x00000000-0x01ffffff]
[    0.000000] Initmem setup node 0 [mem 0x00000000-0x01ffffff]
[    0.000000] On node 0 totalpages: 8192
[    0.000000] free_area_init_node: node 0, pgdat 802e20d0, node_mem_map 81000000
[    0.000000]   Normal zone: 64 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 8192 pages, LIFO batch:0
[    0.000000] Check3
[    0.000000] Check4
[    0.000000] Check5
[    0.000000] Check6
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
[    0.000000] Synthesized clear page handler (29 instructions).
[    0.000000]     .set push
[    0.000000]     .set noreorder
[    0.000000]     .word 0x34860f80
[    0.000000]     .word 0xcc9e0000
[    0.000000]     .word 0xcc9e0020
[    0.000000]     .word 0xcc9e0040
[    0.000000]     .word 0xcc9e0060
[    0.000000]     .word 0xcc9e0080
[    0.000000]     .word 0xac800000
[    0.000000]     .word 0xac800004
[    0.000000]     .word 0xac800008
[    0.000000]     .word 0xac80000c
[    0.000000]     .word 0x24840020
[    0.000000]     .word 0xac80fff0
[    0.000000]     .word 0xac80fff4
[    0.000000]     .word 0xac80fff8
[    0.000000]     .word 0x1486fff6
[    0.000000]     .word 0xac80fffc
[    0.000000]     .word 0x24860080
[    0.000000]     .word 0xac800000
[    0.000000]     .word 0xac800004
[    0.000000]     .word 0xac800008
[    0.000000]     .word 0xac80000c
[    0.000000]     .word 0x24840020
[    0.000000]     .word 0xac80fff0
[    0.000000]     .word 0xac80fff4
[    0.000000]     .word 0xac80fff8
[    0.000000]     .word 0x1486fff7
[    0.000000]     .word 0xac80fffc
[    0.000000]     .word 0x03e00008
[    0.000000]     .word 0x00000000
[    0.000000]     .set pop
[    0.000000] Synthesized copy page handler (77 instructions).
[    0.000000]     .set push
[    0.000000]     .set noreorder
[    0.000000]     .word 0x34860f00
[    0.000000]     .word 0xcca40000
[    0.000000]     .word 0xcca40020
[    0.000000]     .word 0xcca40040
[    0.000000]     .word 0xcca40060
[    0.000000]     .word 0xcca40080
[    0.000000]     .word 0xcca400a0
[    0.000000]     .word 0xcca400c0
[    0.000000]     .word 0xcca400e0
[    0.000000]     .word 0xcc9e0000
[    0.000000]     .word 0xcc9e0020
[    0.000000]     .word 0xcc9e0040
[    0.000000]     .word 0xcc9e0060
[    0.000000]     .word 0xcca40100
[    0.000000]     .word 0x8ca80000
[    0.000000]     .word 0x8ca90004
[    0.000000]     .word 0x8caa0008
[    0.000000]     .word 0x8cab000c
[    0.000000]     .word 0xcc9e0080
[    0.000000]     .word 0xac880000
[    0.000000]     .word 0xac890004
[    0.000000]     .word 0xac8a0008
[    0.000000]     .word 0xac8b000c
[    0.000000]     .word 0x24a50020
[    0.000000]     .word 0x24840020
[    0.000000]     .word 0x8ca8fff0
[    0.000000]     .word 0x8ca9fff4
[    0.000000]     .word 0x8caafff8
[    0.000000]     .word 0x8cabfffc
[    0.000000]     .word 0xac88fff0
[    0.000000]     .word 0xac89fff4
[    0.000000]     .word 0xac8afff8
[    0.000000]     .word 0x14c4ffec
[    0.000000]     .word 0xac8bfffc
[    0.000000]     .word 0x24860080
[    0.000000]     .word 0x8ca80000
[    0.000000]     .word 0x8ca90004
[    0.000000]     .word 0x8caa0008
[    0.000000]     .word 0x8cab000c
[    0.000000]     .word 0xcc9e0080
[    0.000000]     .word 0xac880000
[    0.000000]     .word 0xac890004
[    0.000000]     .word 0xac8a0008
[    0.000000]     .word 0xac8b000c
[    0.000000]     .word 0x24a50020
[    0.000000]     .word 0x24840020
[    0.000000]     .word 0x8ca8fff0
[    0.000000]     .word 0x8ca9fff4
[    0.000000]     .word 0x8caafff8
[    0.000000]     .word 0x8cabfffc
[    0.000000]     .word 0xac88fff0
[    0.000000]     .word 0xac89fff4
[    0.000000]     .word 0xac8afff8
[    0.000000]     .word 0x14c4ffed
[    0.000000]     .word 0xac8bfffc
[    0.000000]     .word 0x24860080
[    0.000000]     .word 0x8ca80000
[    0.000000]     .word 0x8ca90004
[    0.000000]     .word 0x8caa0008
[    0.000000]     .word 0x8cab000c
[    0.000000]     .word 0xac880000
[    0.000000]     .word 0xac890004
[    0.000000]     .word 0xac8a0008
[    0.000000]     .word 0xac8b000c
[    0.000000]     .word 0x24a50020
[    0.000000]     .word 0x24840020
[    0.000000]     .word 0x8ca8fff0
[    0.000000]     .word 0x8ca9fff4
[    0.000000]     .word 0x8caafff8
[    0.000000]     .word 0x8cabfffc
[    0.000000]     .word 0xac88fff0
[    0.000000]     .word 0xac89fff4
[    0.000000]     .word 0xac8afff8
[    0.000000]     .word 0x14c4ffee
[    0.000000]     .word 0xac8bfffc
[    0.000000]     .word 0x03e00008
[    0.000000]     .word 0x00000000
[    0.000000]     .set pop
[    0.000000] Using cache attribute 3
[    0.000000] No valid device tree found, continuing without
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: loglevel=8 dyndbg="file * +p"
[    0.000000] doing Booting kernel, parsing ARGS: 'loglevel=8 dyndbg="file * +p"'
[    0.000000] doing Booting kernel: loglevel='8'
[    0.000000] doing Booting kernel: dyndbg='file * +p'
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] #include <asm/asm.h>
[    0.000000] #include <asm/regdef.h>
[    0.000000] 
[    0.000000] #define _PAGE_PRESENT_SHIFT 0
[    0.000000] #define _PAGE_READ_SHIFT 1
[    0.000000] #define _PAGE_WRITE_SHIFT 2
[    0.000000] #define _PAGE_ACCESSED_SHIFT 3
[    0.000000] #define _PAGE_MODIFIED_SHIFT 4
[    0.000000] #define _PAGE_GLOBAL_SHIFT 5
[    0.000000] #define _PAGE_VALID_SHIFT 6
[    0.000000] #define _PAGE_DIRTY_SHIFT 7
[    0.000000] #define _PFN_SHIFT 11
[    0.000000] 
[    0.000000] Wrote tlbmiss_handler_setup_pgd (4 instructions).
[    0.000000] LEAF(tlbmiss_handler)
[    0.000000]     .set push
[    0.000000]     .set noreorder
[    0.000000]     .word    0x3c068032        # 80007700
[    0.000000]     .word    0xacc42600        # 80007704
[    0.000000]     .word    0x03e00008        # 80007708
[    0.000000]     .word    0x00000000        # 8000770c
[    0.000000]     .word    0x00000000        # 80007710
[    0.000000]     .word    0x00000000        # 80007714
[    0.000000]     .word    0x00000000        # 80007718
[    0.000000]     .word    0x00000000        # 8000771c
[    0.000000]     .word    0x00000000        # 80007720
[    0.000000]     .word    0x00000000        # 80007724
[    0.000000]     .word    0x00000000        # 80007728
[    0.000000]     .word    0x00000000        # 8000772c
[    0.000000]     .word    0x00000000        # 80007730
[    0.000000]     .word    0x00000000        # 80007734
[    0.000000]     .word    0x00000000        # 80007738
[    0.000000]     .word    0x00000000        # 8000773c
[    0.000000]     .word    0x00000000        # 80007740
[    0.000000]     .word    0x00000000        # 80007744
[    0.000000]     .set    pop
[    0.000000]     END(tlbmiss_handler)
[    0.000000] Wrote TLB load handler fastpath (39 instructions).
[    0.000000] LEAF(r4000_tlb_load)
[    0.000000]     .set push
[    0.000000]     .set noreorder
[    0.000000]     .word    0x3c1a8032        # 80007b48
[    0.000000]     .word    0x275a33b4        # 80007b4c
[    0.000000]     .word    0xaf410000        # 80007b50
[    0.000000]     .word    0xaf420004        # 80007b54
[    0.000000]     .word    0x3c018032        # 80007b58
[    0.000000]     .word    0x401b4000        # 80007b5c
[    0.000000]     .word    0x8c212600        # 80007b60
[    0.000000]     .word    0x001bdd82        # 80007b64
[    0.000000]     .word    0x001bd880        # 80007b68
[    0.000000]     .word    0x003b0821        # 80007b6c
[    0.000000]     .word    0x401b4000        # 80007b70
[    0.000000]     .word    0x8c210000        # 80007b74
[    0.000000]     .word    0x001bda82        # 80007b78
[    0.000000]     .word    0x337b0ffc        # 80007b7c
[    0.000000]     .word    0x003b0821        # 80007b80
[    0.000000]     .word    0x8c3b0000        # 80007b84
[    0.000000]     .word    0x42000008        # 80007b88
[    0.000000]     .word    0x33620003        # 80007b8c
[    0.000000]     .word    0x38420003        # 80007b90
[    0.000000]     .word    0x1440000f        # 80007b94
[    0.000000]     .word    0x377b0048        # 80007b98
[    0.000000]     .word    0xac3b0000        # 80007b9c
[    0.000000]     .word    0x34210004        # 80007ba0
[    0.000000]     .word    0x38210004        # 80007ba4
[    0.000000]     .word    0x8c3b0000        # 80007ba8
[    0.000000]     .word    0x8c210004        # 80007bac
[    0.000000]     .word    0x001bd942        # 80007bb0
[    0.000000]     .word    0x409b1000        # 80007bb4
[    0.000000]     .word    0x00010942        # 80007bb8
[    0.000000]     .word    0x40811800        # 80007bbc
[    0.000000]     .word    0x000000c0        # 80007bc0
[    0.000000]     .word    0x42000002        # 80007bc4
[    0.000000]     .word    0x8f410000        # 80007bc8
[    0.000000]     .word    0x8f420004        # 80007bcc
[    0.000000]     .word    0x42000018        # 80007bd0
[    0.000000]     .word    0x8f410000        # 80007bd4
[    0.000000]     .word    0x8f420004        # 80007bd8
[    0.000000]     .word    0x08001d3c        # 80007bdc
[    0.000000]     .word    0x00000000        # 80007be0
[    0.000000]     .word    0x00000000        # 80007be4
[    0.000000]     .word    0x00000000        # 80007be8
[    0.000000]     .word    0x00000000        # 80007bec
[    0.000000]     .word    0x00000000        # 80007bf0
[    0.000000]     .word    0x00000000        # 80007bf4
[    0.000000]     .word    0x00000000        # 80007bf8
[    0.000000]     .word    0x00000000        # 80007bfc
[    0.000000]     .word    0x00000000        # 80007c00
[    0.000000]     .word    0x00000000        # 80007c04
[    0.000000]     .word    0x00000000        # 80007c08
[    0.000000]     .word    0x00000000        # 80007c0c
[    0.000000]     .word    0x00000000        # 80007c10
[    0.000000]     .word    0x00000000        # 80007c14
[    0.000000]     .word    0x00000000        # 80007c18
[    0.000000]     .word    0x00000000        # 80007c1c
[    0.000000]     .word    0x00000000        # 80007c20
[    0.000000]     .word    0x00000000        # 80007c24
[    0.000000]     .word    0x00000000        # 80007c28
[    0.000000]     .word    0x00000000        # 80007c2c
[    0.000000]     .word    0x00000000        # 80007c30
[    0.000000]     .word    0x00000000        # 80007c34
[    0.000000]     .word    0x00000000        # 80007c38
[    0.000000]     .word    0x00000000        # 80007c3c
[    0.000000]     .word    0x00000000        # 80007c40
[    0.000000]     .word    0x00000000        # 80007c44
[    0.000000]     .word    0x00000000        # 80007c48
[    0.000000]     .word    0x00000000        # 80007c4c
[    0.000000]     .word    0x00000000        # 80007c50
[    0.000000]     .word    0x00000000        # 80007c54
[    0.000000]     .word    0x00000000        # 80007c58
[    0.000000]     .word    0x00000000        # 80007c5c
[    0.000000]     .word    0x00000000        # 80007c60
[    0.000000]     .word    0x00000000        # 80007c64
[    0.000000]     .word    0x00000000        # 80007c68
[    0.000000]     .word    0x00000000        # 80007c6c
[    0.000000]     .word    0x00000000        # 80007c70
[    0.000000]     .word    0x00000000        # 80007c74
[    0.000000]     .word    0x00000000        # 80007c78
[    0.000000]     .word    0x00000000        # 80007c7c
[    0.000000]     .word    0x00000000        # 80007c80
[    0.000000]     .word    0x00000000        # 80007c84
[    0.000000]     .word    0x00000000        # 80007c88
[    0.000000]     .word    0x00000000        # 80007c8c
[    0.000000]     .word    0x00000000        # 80007c90
[    0.000000]     .word    0x00000000        # 80007c94
[    0.000000]     .word    0x00000000        # 80007c98
[    0.000000]     .word    0x00000000        # 80007c9c
[    0.000000]     .word    0x00000000        # 80007ca0
[    0.000000]     .word    0x00000000        # 80007ca4
[    0.000000]     .word    0x00000000        # 80007ca8
[    0.000000]     .word    0x00000000        # 80007cac
[    0.000000]     .word    0x00000000        # 80007cb0
[    0.000000]     .word    0x00000000        # 80007cb4
[    0.000000]     .word    0x00000000        # 80007cb8
[    0.000000]     .word    0x00000000        # 80007cbc
[    0.000000]     .word    0x00000000        # 80007cc0
[    0.000000]     .word    0x00000000        # 80007cc4
[    0.000000]     .word    0x00000000        # 80007cc8
[    0.000000]     .word    0x00000000        # 80007ccc
[    0.000000]     .word    0x00000000        # 80007cd0
[    0.000000]     .word    0x00000000        # 80007cd4
[    0.000000]     .word    0x00000000        # 80007cd8
[    0.000000]     .word    0x00000000        # 80007cdc
[    0.000000]     .word    0x00000000        # 80007ce0
[    0.000000]     .word    0x00000000        # 80007ce4
[    0.000000]     .word    0x00000000        # 80007ce8
[    0.000000]     .word    0x00000000        # 80007cec
[    0.000000]     .word    0x00000000        # 80007cf0
[    0.000000]     .word    0x00000000        # 80007cf4
[    0.000000]     .word    0x00000000        # 80007cf8
[    0.000000]     .word    0x00000000        # 80007cfc
[    0.000000]     .word    0x00000000        # 80007d00
[    0.000000]     .word    0x00000000        # 80007d04
[    0.000000]     .word    0x00000000        # 80007d08
[    0.000000]     .word    0x00000000        # 80007d0c
[    0.000000]     .word    0x00000000        # 80007d10
[    0.000000]     .word    0x00000000        # 80007d14
[    0.000000]     .word    0x00000000        # 80007d18
[    0.000000]     .word    0x00000000        # 80007d1c
[    0.000000]     .word    0x00000000        # 80007d20
[    0.000000]     .word    0x00000000        # 80007d24
[    0.000000]     .word    0x00000000        # 80007d28
[    0.000000]     .word    0x00000000        # 80007d2c
[    0.000000]     .word    0x00000000        # 80007d30
[    0.000000]     .word    0x00000000        # 80007d34
[    0.000000]     .word    0x00000000        # 80007d38
[    0.000000]     .word    0x00000000        # 80007d3c
[    0.000000]     .word    0x00000000        # 80007d40
[    0.000000]     .word    0x00000000        # 80007d44
[    0.000000]     .set    pop
[    0.000000]     END(r4000_tlb_load)
[    0.000000] Wrote TLB store handler fastpath (40 instructions).
[    0.000000] LEAF(r4000_tlb_store)
[    0.000000]     .set push
[    0.000000]     .set noreorder
[    0.000000]     .word    0x3c1a8032        # 80007948
[    0.000000]     .word    0x275a33b4        # 8000794c
[    0.000000]     .word    0xaf410000        # 80007950
[    0.000000]     .word    0xaf420004        # 80007954
[    0.000000]     .word    0x3c018032        # 80007958
[    0.000000]     .word    0x401b4000        # 8000795c
[    0.000000]     .word    0x8c212600        # 80007960
[    0.000000]     .word    0x001bdd82        # 80007964
[    0.000000]     .word    0x001bd880        # 80007968
[    0.000000]     .word    0x003b0821        # 8000796c
[    0.000000]     .word    0x401b4000        # 80007970
[    0.000000]     .word    0x8c210000        # 80007974
[    0.000000]     .word    0x001bda82        # 80007978
[    0.000000]     .word    0x337b0ffc        # 8000797c
[    0.000000]     .word    0x003b0821        # 80007980
[    0.000000]     .word    0x8c3b0000        # 80007984
[    0.000000]     .word    0x42000008        # 80007988
[    0.000000]     .word    0x33620005        # 8000798c
[    0.000000]     .word    0x38420005        # 80007990
[    0.000000]     .word    0x14400010        # 80007994
[    0.000000]     .word    0x00000000        # 80007998
[    0.000000]     .word    0x377b00d8        # 8000799c
[    0.000000]     .word    0xac3b0000        # 800079a0
[    0.000000]     .word    0x34210004        # 800079a4
[    0.000000]     .word    0x38210004        # 800079a8
[    0.000000]     .word    0x8c3b0000        # 800079ac
[    0.000000]     .word    0x8c210004        # 800079b0
[    0.000000]     .word    0x001bd942        # 800079b4
[    0.000000]     .word    0x409b1000        # 800079b8
[    0.000000]     .word    0x00010942        # 800079bc
[    0.000000]     .word    0x40811800        # 800079c0
[    0.000000]     .word    0x000000c0        # 800079c4
[    0.000000]     .word    0x42000002        # 800079c8
[    0.000000]     .word    0x8f410000        # 800079cc
[    0.000000]     .word    0x8f420004        # 800079d0
[    0.000000]     .word    0x42000018        # 800079d4
[    0.000000]     .word    0x8f410000        # 800079d8
[    0.000000]     .word    0x8f420004        # 800079dc
[    0.000000]     .word    0x08001d7d        # 800079e0
[    0.000000]     .word    0x00000000        # 800079e4
[    0.000000]     .word    0x00000000        # 800079e8
[    0.000000]     .word    0x00000000        # 800079ec
[    0.000000]     .word    0x00000000        # 800079f0
[    0.000000]     .word    0x00000000        # 800079f4
[    0.000000]     .word    0x00000000        # 800079f8
[    0.000000]     .word    0x00000000        # 800079fc
[    0.000000]     .word    0x00000000        # 80007a00
[    0.000000]     .word    0x00000000        # 80007a04
[    0.000000]     .word    0x00000000        # 80007a08
[    0.000000]     .word    0x00000000        # 80007a0c
[    0.000000]     .word    0x00000000        # 80007a10
[    0.000000]     .word    0x00000000        # 80007a14
[    0.000000]     .word    0x00000000        # 80007a18
[    0.000000]     .word    0x00000000        # 80007a1c
[    0.000000]     .word    0x00000000        # 80007a20
[    0.000000]     .word    0x00000000        # 80007a24
[    0.000000]     .word    0x00000000        # 80007a28
[    0.000000]     .word    0x00000000        # 80007a2c
[    0.000000]     .word    0x00000000        # 80007a30
[    0.000000]     .word    0x00000000        # 80007a34
[    0.000000]     .word    0x00000000        # 80007a38
[    0.000000]     .word    0x00000000        # 80007a3c
[    0.000000]     .word    0x00000000        # 80007a40
[    0.000000]     .word    0x00000000        # 80007a44
[    0.000000]     .word    0x00000000        # 80007a48
[    0.000000]     .word    0x00000000        # 80007a4c
[    0.000000]     .word    0x00000000        # 80007a50
[    0.000000]     .word    0x00000000        # 80007a54
[    0.000000]     .word    0x00000000        # 80007a58
[    0.000000]     .word    0x00000000        # 80007a5c
[    0.000000]     .word    0x00000000        # 80007a60
[    0.000000]     .word    0x00000000        # 80007a64
[    0.000000]     .word    0x00000000        # 80007a68
[    0.000000]     .word    0x00000000        # 80007a6c
[    0.000000]     .word    0x00000000        # 80007a70
[    0.000000]     .word    0x00000000        # 80007a74
[    0.000000]     .word    0x00000000        # 80007a78
[    0.000000]     .word    0x00000000        # 80007a7c
[    0.000000]     .word    0x00000000        # 80007a80
[    0.000000]     .word    0x00000000        # 80007a84
[    0.000000]     .word    0x00000000        # 80007a88
[    0.000000]     .word    0x00000000        # 80007a8c
[    0.000000]     .word    0x00000000        # 80007a90
[    0.000000]     .word    0x00000000        # 80007a94
[    0.000000]     .word    0x00000000        # 80007a98
[    0.000000]     .word    0x00000000        # 80007a9c
[    0.000000]     .word    0x00000000        # 80007aa0
[    0.000000]     .word    0x00000000        # 80007aa4
[    0.000000]     .word    0x00000000        # 80007aa8
[    0.000000]     .word    0x00000000        # 80007aac
[    0.000000]     .word    0x00000000        # 80007ab0
[    0.000000]     .word    0x00000000        # 80007ab4
[    0.000000]     .word    0x00000000        # 80007ab8
[    0.000000]     .word    0x00000000        # 80007abc
[    0.000000]     .word    0x00000000        # 80007ac0
[    0.000000]     .word    0x00000000        # 80007ac4
[    0.000000]     .word    0x00000000        # 80007ac8
[    0.000000]     .word    0x00000000        # 80007acc
[    0.000000]     .word    0x00000000        # 80007ad0
[    0.000000]     .word    0x00000000        # 80007ad4
[    0.000000]     .word    0x00000000        # 80007ad8
[    0.000000]     .word    0x00000000        # 80007adc
[    0.000000]     .word    0x00000000        # 80007ae0
[    0.000000]     .word    0x00000000        # 80007ae4
[    0.000000]     .word    0x00000000        # 80007ae8
[    0.000000]     .word    0x00000000        # 80007aec
[    0.000000]     .word    0x00000000        # 80007af0
[    0.000000]     .word    0x00000000        # 80007af4
[    0.000000]     .word    0x00000000        # 80007af8
[    0.000000]     .word    0x00000000        # 80007afc
[    0.000000]     .word    0x00000000        # 80007b00
[    0.000000]     .word    0x00000000        # 80007b04
[    0.000000]     .word    0x00000000        # 80007b08
[    0.000000]     .word    0x00000000        # 80007b0c
[    0.000000]     .word    0x00000000        # 80007b10
[    0.000000]     .word    0x00000000        # 80007b14
[    0.000000]     .word    0x00000000        # 80007b18
[    0.000000]     .word    0x00000000        # 80007b1c
[    0.000000]     .word    0x00000000        # 80007b20
[    0.000000]     .word    0x00000000        # 80007b24
[    0.000000]     .word    0x00000000        # 80007b28
[    0.000000]     .word    0x00000000        # 80007b2c
[    0.000000]     .word    0x00000000        # 80007b30
[    0.000000]     .word    0x00000000        # 80007b34
[    0.000000]     .word    0x00000000        # 80007b38
[    0.000000]     .word    0x00000000        # 80007b3c
[    0.000000]     .word    0x00000000        # 80007b40
[    0.000000]     .word    0x00000000        # 80007b44
[    0.000000]     .set    pop
[    0.000000]     END(r4000_tlb_store)
[    0.000000] Wrote TLB modify handler fastpath (38 instructions).
[    0.000000] LEAF(r4000_tlb_modify)
[    0.000000]     .set push
[    0.000000]     .set noreorder
[    0.000000]     .word    0x3c1a8032        # 80007748
[    0.000000]     .word    0x275a33b4        # 8000774c
[    0.000000]     .word    0xaf410000        # 80007750
[    0.000000]     .word    0xaf420004        # 80007754
[    0.000000]     .word    0x3c018032        # 80007758
[    0.000000]     .word    0x401b4000        # 8000775c
[    0.000000]     .word    0x8c212600        # 80007760
[    0.000000]     .word    0x001bdd82        # 80007764
[    0.000000]     .word    0x001bd880        # 80007768
[    0.000000]     .word    0x003b0821        # 8000776c
[    0.000000]     .word    0x401b4000        # 80007770
[    0.000000]     .word    0x8c210000        # 80007774
[    0.000000]     .word    0x001bda82        # 80007778
[    0.000000]     .word    0x337b0ffc        # 8000777c
[    0.000000]     .word    0x003b0821        # 80007780
[    0.000000]     .word    0x8c3b0000        # 80007784
[    0.000000]     .word    0x42000008        # 80007788
[    0.000000]     .word    0x33620004        # 8000778c
[    0.000000]     .word    0x1040000f        # 80007790
[    0.000000]     .word    0x377b00d8        # 80007794
[    0.000000]     .word    0xac3b0000        # 80007798
[    0.000000]     .word    0x34210004        # 8000779c
[    0.000000]     .word    0x38210004        # 800077a0
[    0.000000]     .word    0x8c3b0000        # 800077a4
[    0.000000]     .word    0x8c210004        # 800077a8
[    0.000000]     .word    0x001bd942        # 800077ac
[    0.000000]     .word    0x409b1000        # 800077b0
[    0.000000]     .word    0x00010942        # 800077b4
[    0.000000]     .word    0x40811800        # 800077b8
[    0.000000]     .word    0x000000c0        # 800077bc
[    0.000000]     .word    0x42000002        # 800077c0
[    0.000000]     .word    0x8f410000        # 800077c4
[    0.000000]     .word    0x8f420004        # 800077c8
[    0.000000]     .word    0x42000018        # 800077cc
[    0.000000]     .word    0x8f410000        # 800077d0
[    0.000000]     .word    0x8f420004        # 800077d4
[    0.000000]     .word    0x08001d7d        # 800077d8
[    0.000000]     .word    0x00000000        # 800077dc
[    0.000000]     .word    0x00000000        # 800077e0
[    0.000000]     .word    0x00000000        # 800077e4
[    0.000000]     .word    0x00000000        # 800077e8
[    0.000000]     .word    0x00000000        # 800077ec
[    0.000000]     .word    0x00000000        # 800077f0
[    0.000000]     .word    0x00000000        # 800077f4
[    0.000000]     .word    0x00000000        # 800077f8
[    0.000000]     .word    0x00000000        # 800077fc
[    0.000000]     .word    0x00000000        # 80007800
[    0.000000]     .word    0x00000000        # 80007804
[    0.000000]     .word    0x00000000        # 80007808
[    0.000000]     .word    0x00000000        # 8000780c
[    0.000000]     .word    0x00000000        # 80007810
[    0.000000]     .word    0x00000000        # 80007814
[    0.000000]     .word    0x00000000        # 80007818
[    0.000000]     .word    0x00000000        # 8000781c
[    0.000000]     .word    0x00000000        # 80007820
[    0.000000]     .word    0x00000000        # 80007824
[    0.000000]     .word    0x00000000        # 80007828
[    0.000000]     .word    0x00000000        # 8000782c
[    0.000000]     .word    0x00000000        # 80007830
[    0.000000]     .word    0x00000000        # 80007834
[    0.000000]     .word    0x00000000        # 80007838
[    0.000000]     .word    0x00000000        # 8000783c
[    0.000000]     .word    0x00000000        # 80007840
[    0.000000]     .word    0x00000000        # 80007844
[    0.000000]     .word    0x00000000        # 80007848
[    0.000000]     .word    0x00000000        # 8000784c
[    0.000000]     .word    0x00000000        # 80007850
[    0.000000]     .word    0x00000000        # 80007854
[    0.000000]     .word    0x00000000        # 80007858
[    0.000000]     .word    0x00000000        # 8000785c
[    0.000000]     .word    0x00000000        # 80007860
[    0.000000]     .word    0x00000000        # 80007864
[    0.000000]     .word    0x00000000        # 80007868
[    0.000000]     .word    0x00000000        # 8000786c
[    0.000000]     .word    0x00000000        # 80007870
[    0.000000]     .word    0x00000000        # 80007874
[    0.000000]     .word    0x00000000        # 80007878
[    0.000000]     .word    0x00000000        # 8000787c
[    0.000000]     .word    0x00000000        # 80007880
[    0.000000]     .word    0x00000000        # 80007884
[    0.000000]     .word    0x00000000        # 80007888
[    0.000000]     .word    0x00000000        # 8000788c
[    0.000000]     .word    0x00000000        # 80007890
[    0.000000]     .word    0x00000000        # 80007894
[    0.000000]     .word    0x00000000        # 80007898
[    0.000000]     .word    0x00000000        # 8000789c
[    0.000000]     .word    0x00000000        # 800078a0
[    0.000000]     .word    0x00000000        # 800078a4
[    0.000000]     .word    0x00000000        # 800078a8
[    0.000000]     .word    0x00000000        # 800078ac
[    0.000000]     .word    0x00000000        # 800078b0
[    0.000000]     .word    0x00000000        # 800078b4
[    0.000000]     .word    0x00000000        # 800078b8
[    0.000000]     .word    0x00000000        # 800078bc
[    0.000000]     .word    0x00000000        # 800078c0
[    0.000000]     .word    0x00000000        # 800078c4
[    0.000000]     .word    0x00000000        # 800078c8
[    0.000000]     .word    0x00000000        # 800078cc
[    0.000000]     .word    0x00000000        # 800078d0
[    0.000000]     .word    0x00000000        # 800078d4
[    0.000000]     .word    0x00000000        # 800078d8
[    0.000000]     .word    0x00000000        # 800078dc
[    0.000000]     .word    0x00000000        # 800078e0
[    0.000000]     .word    0x00000000        # 800078e4
[    0.000000]     .word    0x00000000        # 800078e8
[    0.000000]     .word    0x00000000        # 800078ec
[    0.000000]     .word    0x00000000        # 800078f0
[    0.000000]     .word    0x00000000        # 800078f4
[    0.000000]     .word    0x00000000        # 800078f8
[    0.000000]     .word    0x00000000        # 800078fc
[    0.000000]     .word    0x00000000        # 80007900
[    0.000000]     .word    0x00000000        # 80007904
[    0.000000]     .word    0x00000000        # 80007908
[    0.000000]     .word    0x00000000        # 8000790c
[    0.000000]     .word    0x00000000        # 80007910
[    0.000000]     .word    0x00000000        # 80007914
[    0.000000]     .word    0x00000000        # 80007918
[    0.000000]     .word    0x00000000        # 8000791c
[    0.000000]     .word    0x00000000        # 80007920
[    0.000000]     .word    0x00000000        # 80007924
[    0.000000]     .word    0x00000000        # 80007928
[    0.000000]     .word    0x00000000        # 8000792c
[    0.000000]     .word    0x00000000        # 80007930
[    0.000000]     .word    0x00000000        # 80007934
[    0.000000]     .word    0x00000000        # 80007938
[    0.000000]     .word    0x00000000        # 8000793c
[    0.000000]     .word    0x00000000        # 80007940
[    0.000000]     .word    0x00000000        # 80007944
[    0.000000]     .set    pop
[    0.000000]     END(r4000_tlb_modify)
[    0.000000] Wrote TLB refill handler (20 instructions).
[    0.000000] LEAF(r4000_tlb_refill)
[    0.000000]     .set push
[    0.000000]     .set noreorder
[    0.000000]     .word    0x3c1b8032        # 80000000
[    0.000000]     .word    0x401a4000        # 80000004
[    0.000000]     .word    0x8f7b2600        # 80000008
[    0.000000]     .word    0x001ad582        # 8000000c
[    0.000000]     .word    0x001ad080        # 80000010
[    0.000000]     .word    0x037ad821        # 80000014
[    0.000000]     .word    0x401a2000        # 80000018
[    0.000000]     .word    0x8f7b0000        # 8000001c
[    0.000000]     .word    0x001ad042        # 80000020
[    0.000000]     .word    0x335a0ff8        # 80000024
[    0.000000]     .word    0x037ad821        # 80000028
[    0.000000]     .word    0x8f7a0000        # 8000002c
[    0.000000]     .word    0x8f7b0004        # 80000030
[    0.000000]     .word    0x001ad142        # 80000034
[    0.000000]     .word    0x409a1000        # 80000038
[    0.000000]     .word    0x001bd942        # 8000003c
[    0.000000]     .word    0x409b1800        # 80000040
[    0.000000]     .word    0x000000c0        # 80000044
[    0.000000]     .word    0x42000006        # 80000048
[    0.000000]     .word    0x42000018        # 8000004c
[    0.000000]     .word    0x00000000        # 80000050
[    0.000000]     .word    0x00000000        # 80000054
[    0.000000]     .word    0x00000000        # 80000058
[    0.000000]     .word    0x00000000        # 8000005c
[    0.000000]     .word    0x00000000        # 80000060
[    0.000000]     .word    0x00000000        # 80000064
[    0.000000]     .word    0x00000000        # 80000068
[    0.000000]     .word    0x00000000        # 8000006c
[    0.000000]     .word    0x00000000        # 80000070
[    0.000000]     .word    0x00000000        # 80000074
[    0.000000]     .word    0x00000000        # 80000078
[    0.000000]     .word    0x00000000        # 8000007c
[    0.000000]     .word    0x00000000        # 80000080
[    0.000000]     .word    0x00000000        # 80000084
[    0.000000]     .word    0x00000000        # 80000088
[    0.000000]     .word    0x00000000        # 8000008c
[    0.000000]     .word    0x00000000        # 80000090
[    0.000000]     .word    0x00000000        # 80000094
[    0.000000]     .word    0x00000000        # 80000098
[    0.000000]     .word    0x00000000        # 8000009c
[    0.000000]     .word    0x00000000        # 800000a0
[    0.000000]     .word    0x00000000        # 800000a4
[    0.000000]     .word    0x00000000        # 800000a8
[    0.000000]     .word    0x00000000        # 800000ac
[    0.000000]     .word    0x00000000        # 800000b0
[    0.000000]     .word    0x00000000        # 800000b4
[    0.000000]     .word    0x00000000        # 800000b8
[    0.000000]     .word    0x00000000        # 800000bc
[    0.000000]     .word    0x00000000        # 800000c0
[    0.000000]     .word    0x00000000        # 800000c4
[    0.000000]     .word    0x00000000        # 800000c8
[    0.000000]     .word    0x00000000        # 800000cc
[    0.000000]     .word    0x00000000        # 800000d0
[    0.000000]     .word    0x00000000        # 800000d4
[    0.000000]     .word    0x00000000        # 800000d8
[    0.000000]     .word    0x00000000        # 800000dc
[    0.000000]     .word    0x00000000        # 800000e0
[    0.000000]     .word    0x00000000        # 800000e4
[    0.000000]     .word    0x00000000        # 800000e8
[    0.000000]     .word    0x00000000        # 800000ec
[    0.000000]     .word    0x00000000        # 800000f0
[    0.000000]     .word    0x00000000        # 800000f4
[    0.000000]     .word    0x00000000        # 800000f8
[    0.000000]     .word    0x00000000        # 800000fc
[    0.000000]     .set    pop
[    0.000000]     END(r4000_tlb_refill)
[    0.000000] Writing ErrCtl register=0000891b
[    0.000000] Readback ErrCtl register=0000891b
[    0.000000] Memory: 29040K/32768K available (2414K kernel code, 120K rwdata, 500K rodata, 156K init, 181K bss, 3728K reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] Kernel panic - not syncing: Failed to find ralink,rt3050-sysc node
[    0.000000] ---[ end Kernel panic - not syncing: Failed to find ralink,rt3050-sysc node

Please pay attention:
1. Boot log

Starting kernel @80000000...
[    0.000000] Linux version 3.18.36 (lippo@nice) (gcc version 4.8.3 (OpenWrt/Linaro GCC 4.8-2014.04 r49404) ) #11 Tue Sep 27 22:56:37 CEST 2016
[    0.000000] SoC Type: Ralink RT5350 id:1 rev:3

2. Your dts-file

/dts-v1/;

#include "rt3050.dtsi"

/ {
        compatible = "ralink,rt3052-eval-board", "ralink,rt3052-soc";

But if you take look at any rt5350 based board dts-file (for example DIR-320 B1)

/dts-v1/;

/include/ "rt5350.dtsi"

/ {
        compatible = "DIR-320-B1", "ralink,rt5350-soc";

you can see that your board hardware incompatible with your device tree.
So correct your device tree as rt5350 based device.

Hi fidodido

please do work in
target/linux/ramips/
target/linux/ramips/dts
target/linux/ramips/image

for adding your device.
If you are using
make kernel_menuconfig
you *get* big problems.

OpenWRT (to my knowledge) uses a non standard way for using/adidng DTS to the kernel.
for ARCH=mips. Because upstream actually has
no code for this.
read here
https://www.linux-mips.org/archives/lin … 00172.html

(Last edited by elektroman on 29 Sep 2016, 20:45)

Hi elektroman,
I noticed this strange alternative directory with .dts but I didn't understand how can I poin a dts from there.

I will check it.

In the meantime I reviewd my .dts in order to better reflex the HW.
This is my current .dts file:

/dts-v1/;

/include/ "rt5350.dtsi"

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

        memory@0 {
                device_type = "memory";
                reg = <0x0 0x2000000>;
        };

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

                                partition@0 {
                                        label = "bootloader";
                                        reg = <0x0 0x10000>;
                                        read-only;
                                };

                                partition@10000 {
                                        label = "Kernel";
                                        reg = <0x10000 0x140000>;
                                        read-only;
                                };

                                partition@150000 {
                                        label = "rootfs";
                                        reg = <0x150000 0x5c0000>;
                                        read-only;
                                };

                                partition@710010 {
                                        label = "ui";
                                        reg = <0x710000 0xe0000>;
                                };

                                partition@7f0000 {
                                        label = "config";
                                        reg = <0x7f0000 0x10000>;
                                };

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

But the results are the same:
using the patch the kernel reboot soon.
restoring the original 3.18 kernel code I can proceed.

Bye.

in
target/linux/ramips/dts
goes the DTS file
and in
target/linux/ramips/image
are the Makefiles (*.mk) for creating the kernel/firmware images

Please note there is some "WR512-3GN" device

And you are using v3.18 as kernel version, current git notes about v4.4

(Last edited by elektroman on 30 Sep 2016, 16:47)

Actually the openwrt apply a patch to the kernel reserving an area at the begin of the kernel image referenced by __image_dtb. (check in build_dir/target-mipsel_24kc_musl-1.1.15/linux-ramips_rt305x/linux-4.4.23/arch/mips/kernel/head.S)
By the way there is another nice area to pass kernel parameters.

This area is not populated by the compiling process, but is populated during the image generation process of openwrt.
The script definition in target/linux/ramips/ define the rule how to generate the image and in case the patch-dtb tool can be used to fill the device tree in the __image_dtb.

This is what I do using lede (I found more clear and better structured the target/linux/ramips/ scripts in lede compared to owrt).
And now I can boot (unfortunately not yet to the end!):

Starting kernel @80000000...
[    0.000000] Linux version 4.4.23 (lippo@nice) (gcc version 5.4.0 (LEDE GCC 5.4.0 r1727) ) #0 Fri Sep 30 18:08:21 2016
[    0.000000] SoC Type: Ralink RT5350 id:1 rev:3
[    0.000000] prom: fw_arg0=00000000 fw_arg1=00000000 fw_arg2=00000000 fw_arg3=00000008
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 0001964c (MIPS 24KEc)
[    0.000000] search "chosen", depth: 0, uname: 
[    0.000000] search "chosen", depth: 1, uname: cpus
[    0.000000] search "chosen", depth: 2, uname: cpu@0
[    0.000000] search "chosen", depth: 1, uname: chosen
[    0.000000] Looking for initrd properties... 
[    0.000000] Command line is: console=ttyS0,57600
[    0.000000] dt_root_size_cells = 1
[    0.000000] dt_root_addr_cells = 1
[    0.000000] memory scan node memory@0, reg size 8,
[    0.000000]  - 0 ,  2000000
[    0.000000] MIPS: machine is D-Link DWR-512
[    0.000000] memory scan node memory@0, reg size 8,
[    0.000000]  - 0 ,  2000000
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] doing early options, parsing ARGS: 'console=ttyS0,57600 rootfstype=squashfs,jffs2'
[    0.000000] doing early options: console='ttyS0,57600'
[    0.000000] doing early options: rootfstype='squashfs,jffs2'
[    0.000000] Initrd not found or empty - disabling initrd
[    0.000000] Zone ranges:
[    0.000000]   Normal   [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000001ffffff]
[    0.000000] On node 0 totalpages: 8192
[    0.000000] free_area_init_node: node 0, pgdat 8036c3b0, node_mem_map 81000000
[    0.000000]   Normal zone: 64 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 8192 pages, LIFO batch:0
[    0.000000] Primary instruction cache 32kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 16kB, 4-way, VIPT, no aliases, linesize 32 bytes
[    0.000000] Synthesized clear page handler (29 instructions).
[    0.000000]     .set push
[    0.000000]     .set noreorder
[    0.000000]     .word 0x34860f80
[...]
[    0.000000] Using cache attribute 3
[    0.000000]  -> unflatten_device_tree()
[    0.000000] Unflattening device tree:
[    0.000000] magic: d00dfeed
[    0.000000] size: 000019bc
[    0.000000] version: 00000011
[    0.000000]   size is 51cc, allocating...
[    0.000000]   unflattening 81041afc...
[    0.000000] fixed up name for  -> 
[...]
[    0.000000] fixed up name for memory@0 -> memory
[    0.000000]  <- unflatten_device_tree()
[    0.000000] adding DT alias:spi0: stem=spi id=0 node=/palmbus@10000000/spi@b00
[    0.000000] adding DT alias:spi1: stem=spi id=1 node=/palmbus@10000000/spi@b40
[    0.000000] adding DT alias:serial0: stem=serial id=0 node=/palmbus@10000000/uartlite@c00
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2
[    0.000000] doing Booting kernel, parsing ARGS: 'console=ttyS0,57600 rootfstype=squashfs,jffs2'
[    0.000000] doing Booting kernel: console='ttyS0,57600'
[    0.000000] doing Booting kernel: rootfstype='squashfs,jffs2'
[    0.000000] PID hash table entries: 128 (order: -3, 512 bytes)
[    0.000000] Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] #include <asm/asm.h>
[    0.000000] #include <asm/regdef.h>
[...]
[    0.000000] 
[    0.000000] Wrote tlbmiss_handler_setup_pgd (4 instructions).
[    0.000000] LEAF(tlbmiss_handler)
[    0.000000]     .set push
[    0.000000]     .set noreorder
[    0.000000]     .word    0x3c06803b        # 80007520
[...]
[    0.000000]     END(r4000_tlb_refill)
[    0.000000] Writing ErrCtl register=00008918
[    0.000000] Readback ErrCtl register=00008918
[    0.000000] Memory: 28432K/32768K available (2794K kernel code, 130K rwdata, 672K rodata, 172K init, 191K bss, 4336K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:256
[    0.000000] of_irq_init: init mti,cpu-interrupt-controller @ 81041e9c, parent   (null)
[    0.000000] irq: Added domain (null)
[    0.000000] irq: irq_domain_associate_many(/cpuintc@0, irqbase=0, hwbase=0, count=8)
[    0.000000] of_irq_init: init ralink,rt2880-intc @ 810427e4, parent 81041e9c
[    0.000000] of_irq_parse_one: dev=/palmbus@10000000/intc@200, index=0
[    0.000000]  intspec=2 intlen=1
[    0.000000]  intsize=1 intlen=1
[    0.000000] of_irq_parse_raw:  /cpuintc@0:00000002
[    0.000000] of_irq_parse_raw: ipar=/cpuintc@0, size=1
[    0.000000]  -> addrsize=0
[    0.000000]  -> got it !
[    0.000000] irq: irq_create_mapping(0x81806100, 0x2)
[    0.000000] irq: -> using domain @81806100
[    0.000000] irq: -> existing mapping on virq 2
[    0.000000] OF: ** translation for device /palmbus@10000000/intc@200 **
[    0.000000] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    0.000000] OF: translating address: 00000200
[    0.000000] OF: parent bus is default (na=1, ns=1) on /
[    0.000000] OF: walking ranges...
[    0.000000] OF: default map, cp=0, s=1fffff, da=200
[    0.000000] OF: parent translation for: 10000000
[    0.000000] OF: with offset: 200
[    0.000000] OF: one level translation: 10000200
[    0.000000] OF: reached root node
[    0.000000] irq: Added domain (null)
[    0.000000] irq: irq_domain_associate_many(/palmbus@10000000/intc@200, irqbase=8, hwbase=0, count=32)
[    0.000000] irq: irq_create_mapping(0x81807000, 0x9)
[    0.000000] irq: -> using domain @81807000
[    0.000000] irq: -> existing mapping on virq 17
[    0.000000] OF: ** translation for device /palmbus@10000000/sysc@0 **
[    0.000000] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    0.000000] OF: translating address: 00000000
[    0.000000] OF: parent bus is default (na=1, ns=1) on /
[    0.000000] OF: walking ranges...
[    0.000000] OF: default map, cp=0, s=1fffff, da=0
[    0.000000] OF: parent translation for: 10000000
[    0.000000] OF: with offset: 0
[    0.000000] OF: one level translation: 10000000
[    0.000000] OF: reached root node
[    0.000000] OF: ** translation for device /palmbus@10000000/memc@300 **
[    0.000000] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    0.000000] OF: translating address: 00000300
[    0.000000] OF: parent bus is default (na=1, ns=1) on /
[    0.000000] OF: walking ranges...
[    0.000000] OF: default map, cp=0, s=1fffff, da=300
[    0.000000] OF: parent translation for: 10000000
[    0.000000] OF: with offset: 300
[    0.000000] OF: one level translation: 10000300
[    0.000000] OF: reached root node
[    0.000000] CPU Clock: 360MHz
[    0.000000] OF: ** translation for device /palmbus@10000000/systick@d00 **
[    0.000000] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    0.000000] OF: translating address: 00000d00
[    0.000000] OF: parent bus is default (na=1, ns=1) on /
[    0.000000] OF: walking ranges...
[    0.000000] OF: default map, cp=0, s=1fffff, da=d00
[    0.000000] OF: parent translation for: 10000000
[    0.000000] OF: with offset: d00
[    0.000000] OF: one level translation: 10000d00
[    0.000000] OF: reached root node
[    0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
[    0.000000] of_irq_parse_one: dev=/palmbus@10000000/systick@d00, index=0
[    0.000000]  intspec=7 intlen=1
[    0.000000]  intsize=1 intlen=1
[    0.000000] of_irq_parse_raw:  /cpuintc@0:00000007
[    0.000000] of_irq_parse_raw: ipar=/cpuintc@0, size=1
[    0.000000]  -> addrsize=0
[    0.000000]  -> got it !
[    0.000000] irq: irq_create_mapping(0x81806100, 0x7)
[    0.000000] irq: -> using domain @81806100
[    0.000000] irq: -> existing mapping on virq 7
[    0.000000] systick: running - mult: 214748, shift: 32
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 10618113593 ns
[    0.000016] sched_clock: 32 bits at 180MHz, resolution 5ns, wraps every 11930464253ns
[    0.015558] Registered r4k_read_sched_clock+0x0/0xc as sched_clock source
[    0.029170] Calibrating delay loop... 239.61 BogoMIPS (lpj=1198080)
[    0.104378] pid_max: default: 32768 minimum: 301
[    0.113833] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.126915] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.141180] kobject: 'fs' (81806b80): kobject_add_internal: parent: '<NULL>', set: '<NULL>'
[    0.162122] kobject: 'devices' (8182ed08): kobject_add_internal: parent: '<NULL>', set: '<NULL>'
[    0.179621] kobject: 'devices' (8182ed08): kobject_uevent_env
[    0.190952] kobject: 'devices' (8182ed08): kobject_uevent_env: attempted to send uevent without kset!
[    0.209303] kobject: 'dev' (8182ed80): kobject_add_internal: parent: '<NULL>', set: '<NULL>'
[    0.226106] kobject: 'block' (8182ee00): kobject_add_internal: parent: 'dev', set: '<NULL>'
[    0.242726] kobject: 'char' (8182ee80): kobject_add_internal: parent: 'dev', set: '<NULL>'
[    0.259169] kobject: 'bus' (8182ef08): kobject_add_internal: parent: '<NULL>', set: '<NULL>'
[    0.275947] kobject: 'bus' (8182ef08): kobject_uevent_env
[    0.286661] kobject: 'bus' (8182ef08): kobject_uevent_env: attempted to send uevent without kset!
[    0.304319] kobject: 'system' (8182ef88): kobject_add_internal: parent: 'devices', set: '<NULL>'
[    0.321803] kobject: 'system' (8182ef88): kobject_uevent_env
[    0.333044] kobject: 'system' (8182ef88): kobject_uevent_env: attempted to send uevent without kset!
[    0.351256] kobject: 'class' (81847008): kobject_add_internal: parent: '<NULL>', set: '<NULL>'
[    0.368374] kobject: 'class' (81847008): kobject_uevent_env
[    0.379431] kobject: 'class' (81847008): kobject_uevent_env: attempted to send uevent without kset!
[    0.397434] kobject: 'firmware' (81847080): kobject_add_internal: parent: '<NULL>', set: '<NULL>'
[    0.415104] device: 'platform': device_add
[    0.423177] kobject: 'platform' (8037c920): kobject_add_internal: parent: 'devices', set: 'devices'
[    0.441253] kobject: 'platform' (8037c920): kobject_uevent_env
[    0.452818] kobject: 'platform' (8037c920): kobject_uevent_env: filter function caused the event to drop!
[    0.471862] kobject: 'platform' (8182f308): kobject_add_internal: parent: 'bus', set: 'bus'
[    0.488482] kobject: 'platform' (8182f308): kobject_uevent_env
[    0.500110] kobject: 'platform' (8182f308): fill_kobj_path: path = '/bus/platform'
[    0.515179] kobject: 'devices' (81847188): kobject_add_internal: parent: 'platform', set: '<NULL>'
[    0.532971] kobject: 'devices' (81847188): kobject_uevent_env
[    0.544370] kobject: 'devices' (81847188): kobject_uevent_env: filter function caused the event to drop!
[    0.563238] kobject: 'drivers' (81847208): kobject_add_internal: parent: 'platform', set: '<NULL>'
[    0.581071] kobject: 'drivers' (81847208): kobject_uevent_env
[    0.592485] kobject: 'drivers' (81847208): kobject_uevent_env: filter function caused the event to drop!
[    0.611361] bus: 'platform': registered
[    0.618931] kobject: 'cpu' (8182f408): kobject_add_internal: parent: 'bus', set: 'bus'
[    0.634733] kobject: 'cpu' (8182f408): kobject_uevent_env
[    0.645461] kobject: 'cpu' (8182f408): fill_kobj_path: path = '/bus/cpu'
[    0.658823] kobject: 'devices' (81847288): kobject_add_internal: parent: 'cpu', set: '<NULL>'
[    0.675757] kobject: 'devices' (81847288): kobject_uevent_env
[    0.687157] kobject: 'devices' (81847288): kobject_uevent_env: filter function caused the event to drop!
[    0.706024] kobject: 'drivers' (81847308): kobject_add_internal: parent: 'cpu', set: '<NULL>'
[    0.722992] kobject: 'drivers' (81847308): kobject_uevent_env
[    0.734407] kobject: 'drivers' (81847308): kobject_uevent_env: filter function caused the event to drop!
[    0.753281] bus: 'cpu': registered
[    0.759982] device: 'cpu': device_add
[    0.767304] kobject: 'cpu' (8182f508): kobject_add_internal: parent: 'system', set: 'devices'
[    0.784315] kobject: 'cpu' (8182f508): kobject_uevent_env
[    0.794990] kobject: 'cpu' (8182f508): kobject_uevent_env: filter function caused the event to drop!
[    0.813167] kobject: 'container' (8182f608): kobject_add_internal: parent: 'bus', set: 'bus'
[    0.829960] kobject: 'container' (8182f608): kobject_uevent_env
[    0.841734] kobject: 'container' (8182f608): fill_kobj_path: path = '/bus/container'
[    0.857170] kobject: 'devices' (81847408): kobject_add_internal: parent: 'container', set: '<NULL>'
[    0.875140] kobject: 'devices' (81847408): kobject_uevent_env
[    0.886540] kobject: 'devices' (81847408): kobject_uevent_env: filter function caused the event to drop!
[    0.905407] kobject: 'drivers' (81847488): kobject_add_internal: parent: 'container', set: '<NULL>'
[    0.923413] kobject: 'drivers' (81847488): kobject_uevent_env
[    0.934828] kobject: 'drivers' (81847488): kobject_uevent_env: filter function caused the event to drop!
[    0.953703] bus: 'container': registered
[    0.961442] device: 'container': device_add
[    0.969801] kobject: 'container' (8182f708): kobject_add_internal: parent: 'system', set: 'devices'
[    0.987824] kobject: 'container' (8182f708): kobject_uevent_env
[    0.999563] kobject: 'container' (8182f708): kobject_uevent_env: filter function caused the event to drop!
[    1.018779] kobject: 'devicetree' (81847588): kobject_add_internal: parent: 'firmware', set: '<NULL>'
[    1.037130] kobject: 'devicetree' (81847588): kobject_uevent_env
[    1.049056] kobject: 'devicetree' (81847588): kobject_uevent_env: attempted to send uevent without kset!
[    1.067938] kobject: 'base' (81041b28): kobject_add_internal: parent: 'devicetree', set: 'devicetree'
[    1.086350] kobject: 'cpus' (81041c8c): kobject_add_internal: parent: 'base', set: 'devicetree'
[    1.103633] kobject: 'cpu@0' (81041d28): kobject_add_internal: parent: 'cpus', set: 'devicetree'
[    1.121179] kobject: 'chosen' (81041df8): kobject_add_internal: parent: 'base', set: 'devicetree'
[    1.138822] kobject: 'cpuintc@0' (81041ec8): kobject_add_internal: parent: 'base', set: 'devicetree'
[    1.157029] kobject: 'aliases' (810420a0): kobject_add_internal: parent: 'base', set: 'devicetree'
[    1.174879] kobject: 'palmbus@10000000' (810421dc): kobject_add_internal: parent: 'base', set: 'devicetree'
[    1.194286] kobject: 'sysc@0' (81042388): kobject_add_internal: parent: 'palmbus@10000000', set: 'devicetree'
[    1.214001] kobject: 'timer@100' (810424a0): kobject_add_internal: parent: 'palmbus@10000000', set: 'devicetree'
[    1.234302] kobject: 'watchdog@120' (81042620): kobject_add_internal: parent: 'palmbus@10000000', set: 'devicetree'
[    1.255103] kobject: 'intc@200' (81042810): kobject_add_internal: parent: 'palmbus@10000000', set: 'devicetree'
[    1.275289] kobject: 'memc@300' (81042ac8): kobject_add_internal: parent: 'palmbus@10000000', set: 'devicetree'
[    1.295403] kobject: 'uart@500' (81042cb0): kobject_add_internal: parent: 'palmbus@10000000', set: 'devicetree'
[    1.315550] kobject: 'gpio@600' (81042f00): kobject_add_internal: parent: 'palmbus@10000000', set: 'devicetree'
[    1.335739] kobject: 'gpio@660' (810431ec): kobject_add_internal: parent: 'palmbus@10000000', set: 'devicetree'
[    1.355924] kobject: 'i2c@900' (810434a4): kobject_add_internal: parent: 'palmbus@10000000', set: 'devicetree'
[    1.375928] kobject: 'i2s@a00' (81043724): kobject_add_internal: parent: 'palmbus@10000000', set: 'devicetree'
[    1.395941] kobject: 'spi@b00' (81043a0c): kobject_add_internal: parent: 'palmbus@10000000', set: 'devicetree'
[    1.415936] kobject: 'mx25l6405d@0' (81043c8c): kobject_add_internal: parent: 'spi@b00', set: 'devicetree'
[    1.435184] kobject: 'partition@0' (81043e84): kobject_add_internal: parent: 'mx25l6405d@0', set: 'devicetree'
[    1.455117] kobject: 'partition@10000' (81043fec): kobject_add_internal: parent: 'mx25l6405d@0', set: 'devicetree'
[    1.475720] kobject: 'partition@150000' (81044158): kobject_add_internal: parent: 'mx25l6405d@0', set: 'devicetree'
[    1.496523] kobject: 'partition@710010' (810442c4): kobject_add_internal: parent: 'mx25l6405d@0', set: 'devicetree'
[    1.517292] kobject: 'partition@7f0000' (810443fc): kobject_add_internal: parent: 'mx25l6405d@0', set: 'devicetree'
[    1.538090] kobject: 'spi@b40' (81044534): kobject_add_internal: parent: 'palmbus@10000000', set: 'devicetree'
[    1.558058] kobject: 'uartlite@c00' (810447b4): kobject_add_internal: parent: 'palmbus@10000000', set: 'devicetree'
[    1.578911] kobject: 'systick@d00' (81044a40): kobject_add_internal: parent: 'palmbus@10000000', set: 'devicetree'
[    1.599527] kobject: 'gdma@2800' (81044bc4): kobject_add_internal: parent: 'palmbus@10000000', set: 'devicetree'
[    1.619916] kobject: 'pinctrl' (81044ee4): kobject_add_internal: parent: 'base', set: 'devicetree'
[    1.637787] kobject: 'pinctrl0' (81045020): kobject_add_internal: parent: 'pinctrl', set: 'devicetree'
[    1.656303] kobject: 'i2c' (81045134): kobject_add_internal: parent: 'pinctrl', set: 'devicetree'
[    1.673953] kobject: 'i2c' (8104523c): kobject_add_internal: parent: 'i2c', set: 'devicetree'
[    1.690907] kobject: 'spi' (81045348): kobject_add_internal: parent: 'pinctrl', set: 'devicetree'
[    1.708590] kobject: 'spi' (81045450): kobject_add_internal: parent: 'spi', set: 'devicetree'
[    1.725549] kobject: 'phy_led' (8104555c): kobject_add_internal: parent: 'pinctrl', set: 'devicetree'
[    1.743864] kobject: 'phy_led' (81045604): kobject_add_internal: parent: 'phy_led', set: 'devicetree'
[    1.762230] kobject: 'uartlite' (8104571c): kobject_add_internal: parent: 'pinctrl', set: 'devicetree'
[    1.780778] kobject: 'uart' (81045830): kobject_add_internal: parent: 'uartlite', set: 'devicetree'
[    1.798782] kobject: 'uartf' (81045944): kobject_add_internal: parent: 'pinctrl', set: 'devicetree'
[    1.816750] kobject: 'uartf' (810459e8): kobject_add_internal: parent: 'uartf', set: 'devicetree'
[    1.834420] kobject: 'spi1' (81045afc): kobject_add_internal: parent: 'pinctrl', set: 'devicetree'
[    1.852247] kobject: 'spi1' (81045c08): kobject_add_internal: parent: 'spi1', set: 'devicetree'
[    1.869607] kobject: 'rstctrl' (81045d18): kobject_add_internal: parent: 'base', set: 'devicetree'
[    1.887454] kobject: 'clkctrl' (81045e88): kobject_add_internal: parent: 'base', set: 'devicetree'
[    1.905284] kobject: 'usbphy' (81045ff8): kobject_add_internal: parent: 'base', set: 'devicetree'
[    1.923012] kobject: 'ethernet@10100000' (81046234): kobject_add_internal: parent: 'base', set: 'devicetree'
[    1.942646] kobject: 'esw@10110000' (8104644c): kobject_add_internal: parent: 'base', set: 'devicetree'
[    1.961394] kobject: 'wmac@10180000' (8104668c): kobject_add_internal: parent: 'base', set: 'devicetree'
[    1.980307] kobject: 'ehci@101c0000' (81046834): kobject_add_internal: parent: 'base', set: 'devicetree'
[    1.999251] kobject: 'ohci@101c1000' (81046a10): kobject_add_internal: parent: 'base', set: 'devicetree'
[    2.018181] kobject: 'memory@0' (81046bec): kobject_add_internal: parent: 'base', set: 'devicetree'
[    2.036196] doing early, parsing ARGS: 'console=ttyS0,57600 rootfstype=squashfs,jffs2'
[    2.051893] doing early: console='ttyS0,57600'
[    2.060651] doing early: rootfstype='squashfs,jffs2'
[    2.070735] doing core, parsing ARGS: 'console=ttyS0,57600 rootfstype=squashfs,jffs2'
[    2.086263] doing core: console='ttyS0,57600'
[    2.094843] doing core: rootfstype='squashfs,jffs2'
[    2.104639] kobject: 'virtual' (81863780): kobject_add_internal: parent: 'devices', set: '<NULL>'
[    2.122276] kobject: 'workqueue' (8182f808): kobject_add_internal: parent: 'bus', set: 'bus'
[    2.139029] kobject: 'workqueue' (8182f808): kobject_uevent_env
[    2.150811] kobject: 'workqueue' (8182f808): fill_kobj_path: path = '/bus/workqueue'
[    2.166265] kobject: 'devices' (81863808): kobject_add_internal: parent: 'workqueue', set: '<NULL>'
[    2.184210] kobject: 'devices' (81863808): kobject_uevent_env
[    2.195607] kobject: 'devices' (81863808): kobject_uevent_env: filter function caused the event to drop!
[    2.214474] kobject: 'drivers' (81863908): kobject_add_internal: parent: 'workqueue', set: '<NULL>'
[    2.232480] kobject: 'drivers' (81863908): kobject_uevent_env
[    2.243895] kobject: 'drivers' (81863908): kobject_uevent_env: filter function caused the event to drop!
[    2.262771] bus: 'workqueue': registered
[    2.270510] device: 'workqueue': device_add
[    2.278871] kobject: 'workqueue' (8182f908): kobject_add_internal: parent: 'virtual', set: 'devices'
[    2.297053] kobject: 'workqueue' (8182f908): kobject_uevent_env
[    2.308801] kobject: 'workqueue' (8182f908): kobject_uevent_env: filter function caused the event to drop!
[    2.328093] kobject: 'kernel' (81863a00): kobject_add_internal: parent: '<NULL>', set: '<NULL>'
[    2.345447] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    2.365253] pinctrl core: initialized pinctrl subsystem
[    2.375572] debugfs: creating file 'pinctrl'
[    2.384115] debugfs: creating file 'pinctrl-devices'
[    2.393942] debugfs: creating file 'pinctrl-maps'
[    2.403205] debugfs: creating file 'pinctrl-handles'
[    2.414422] NET: Registered protocol family 16
[    2.423449] bus: 'platform': add driver rt2880-pinmux
[    2.433448] kobject: 'rt2880-pinmux' (81866380): kobject_add_internal: parent: 'drivers', set: 'drivers'
[    2.452336] kobject: 'rt2880-pinmux' (81866380): kobject_uevent_env
[    2.464772] kobject: 'rt2880-pinmux' (81866380): fill_kobj_path: path = '/bus/platform/drivers/rt2880-pinmux'
[    2.484497] doing postcore, parsing ARGS: 'console=ttyS0,57600 rootfstype=squashfs,jffs2'
[    2.500747] doing postcore: console='ttyS0,57600'
[    2.510039] doing postcore: rootfstype='squashfs,jffs2'
[    2.520504] debugfs: creating file 'bootrom'
[    2.528959] device class 'bdi': registering
[    2.537306] kobject: 'bdi' (81873008): kobject_add_internal: parent: 'class', set: 'class'
[    2.553728] kobject: 'bdi' (81873008): kobject_uevent_env
[    2.564457] kobject: 'bdi' (81873008): fill_kobj_path: path = '/class/bdi'
[    2.578121] debugfs: creating file 'bdi'
[    2.585926] kobject: 'mm' (81866500): kobject_add_internal: parent: 'kernel', set: '<NULL>'
[    2.602684] device class 'gpio': registering
[    2.611044] kobject: 'gpio' (81873108): kobject_add_internal: parent: 'class', set: 'class'
[    2.627748] kobject: 'gpio' (81873108): kobject_uevent_env
[    2.638633] kobject: 'gpio' (81873108): fill_kobj_path: path = '/class/gpio'
[    2.652731] device class 'tty': registering
[    2.660914] kobject: 'tty' (81873208): kobject_add_internal: parent: 'class', set: 'class'
[    2.677432] kobject: 'tty' (81873208): kobject_uevent_env
[    2.688163] kobject: 'tty' (81873208): fill_kobj_path: path = '/class/tty'
[    2.701873] kobject: 'spi' (81873308): kobject_add_internal: parent: 'bus', set: 'bus'
[    2.717577] kobject: 'spi' (81873308): kobject_uevent_env
[    2.728311] kobject: 'spi' (81873308): fill_kobj_path: path = '/bus/spi'
[    2.741663] kobject: 'devices' (81866988): kobject_add_internal: parent: 'spi', set: '<NULL>'
[    2.758587] kobject: 'devices' (81866988): kobject_uevent_env
[    2.769985] kobject: 'devices' (81866988): kobject_uevent_env: filter function caused the event to drop!
[    2.788852] kobject: 'drivers' (81866a88): kobject_add_internal: parent: 'spi', set: '<NULL>'
[    2.805821] kobject: 'drivers' (81866a88): kobject_uevent_env
[    2.817234] kobject: 'drivers' (81866a88): kobject_uevent_env: filter function caused the event to drop!
[    2.836161] bus: 'spi': registered
[    2.842798] device class 'spi_master': registering
[    2.852398] kobject: 'spi_master' (81873408): kobject_add_internal: parent: 'class', set: 'class'
[    2.870036] kobject: 'spi_master' (81873408): kobject_uevent_env
[    2.882011] kobject: 'spi_master' (81873408): fill_kobj_path: path = '/class/spi_master'
[    2.898101] doing arch, parsing ARGS: 'console=ttyS0,57600 rootfstype=squashfs,jffs2'
[    2.913659] doing arch: console='ttyS0,57600'
[    2.922257] doing arch: rootfstype='squashfs,jffs2'
[    2.932041] of_platform_bus_create() - skipping /cpus, no compatible prop
[    2.945485] of_platform_bus_create() - skipping /chosen, no compatible prop
[    2.959361] of_irq_parse_one: dev=/cpuintc@0, index=0
[    2.969389] of_dma_get_range: no dma-ranges found for node(/cpuintc@0)
[    2.982368] platform cpuintc@0: device is not dma coherent
[    2.993254] platform cpuintc@0: device is not behind an iommu
[    3.004675] device: 'cpuintc@0': device_add
[    3.012945] kobject: 'cpuintc@0' (81873518): kobject_add_internal: parent: 'platform', set: 'devices'
[    3.031387] bus: 'platform': add device cpuintc@0
[    3.040669] kobject: 'cpuintc@0' (81873518): kobject_uevent_env
[    3.052530] kobject: 'cpuintc@0' (81873518): fill_kobj_path: path = '/devices/platform/cpuintc@0'
[    3.070216] of_platform_bus_create() - skipping /aliases, no compatible prop
[    3.084181] OF: ** translation for device /palmbus@10000000 **
[    3.095739] OF: bus is default (na=1, ns=1) on /
[    3.104858] OF: translating address: 10000000
[    3.113511] OF: reached root node
[    3.120099] of_irq_parse_one: dev=/palmbus@10000000, index=0
[    3.131395] OF: ** translation for device /palmbus@10000000 **
[    3.142981] OF: bus is default (na=1, ns=1) on /
[    3.152106] OF: translating address: 10000000
[    3.160760] OF: reached root node
[    3.167344] OF: ** translation for device /palmbus@10000000 **
[    3.178998] OF: bus is default (na=1, ns=1) on /
[    3.188105] OF: translating address: 10000000
[    3.196759] OF: reached root node
[    3.203364] of_dma_get_range: no dma-ranges found for node(/palmbus@10000000)
[    3.217605] platform 10000000.palmbus: device is not dma coherent
[    3.229699] platform 10000000.palmbus: device is not behind an iommu
[    3.242330] device: '10000000.palmbus': device_add
[    3.251813] kobject: '10000000.palmbus' (81873618): kobject_add_internal: parent: 'platform', set: 'devices'
[    3.271472] bus: 'platform': add device 10000000.palmbus
[    3.282063] kobject: '10000000.palmbus' (81873618): kobject_uevent_env
[    3.295018] kobject: '10000000.palmbus' (81873618): fill_kobj_path: path = '/devices/platform/10000000.palmbus'
[    3.315138]    create child: /palmbus@10000000/sysc@0
[    3.325123] OF: ** translation for device /palmbus@10000000/sysc@0 **
[    3.337894] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    3.349818] OF: translating address: 00000000
[    3.358442] OF: parent bus is default (na=1, ns=1) on /
[    3.368861] OF: walking ranges...
[    3.375400] OF: default map, cp=0, s=1fffff, da=0
[    3.384781] OF: parent translation for: 10000000
[    3.393914] OF: with offset: 0
[    3.400016] OF: one level translation: 10000000
[    3.408970] OF: reached root node
[    3.415603] of_irq_parse_one: dev=/palmbus@10000000/sysc@0, index=0
[    3.428062] OF: ** translation for device /palmbus@10000000/sysc@0 **
[    3.440867] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    3.452797] OF: translating address: 00000000
[    3.461420] OF: parent bus is default (na=1, ns=1) on /
[    3.471840] OF: walking ranges...
[    3.478379] OF: default map, cp=0, s=1fffff, da=0
[    3.487759] OF: parent translation for: 10000000
[    3.496893] OF: with offset: 0
[    3.502994] OF: one level translation: 10000000
[    3.511950] OF: reached root node
[    3.518578] OF: ** translation for device /palmbus@10000000/sysc@0 **
[    3.531384] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    3.543315] OF: translating address: 00000000
[    3.551938] OF: parent bus is default (na=1, ns=1) on /
[    3.562358] OF: walking ranges...
[    3.568897] OF: default map, cp=0, s=1fffff, da=0
[    3.578277] OF: parent translation for: 10000000
[    3.587412] OF: with offset: 0
[    3.593512] OF: one level translation: 10000000
[    3.602468] OF: reached root node
[    3.609117] of_dma_get_range: no dma-ranges found for node(/palmbus@10000000/sysc@0)
[    3.624522] platform 10000000.sysc: device is not dma coherent
[    3.636100] platform 10000000.sysc: device is not behind an iommu
[    3.648212] device: '10000000.sysc': device_add
[    3.657176] kobject: '10000000.sysc' (81873718): kobject_add_internal: parent: '10000000.palmbus', set: 'devices'
[    3.677706] bus: 'platform': add device 10000000.sysc
[    3.687734] kobject: '10000000.sysc' (81873718): kobject_uevent_env
[    3.700193] kobject: '10000000.sysc' (81873718): fill_kobj_path: path = '/devices/platform/10000000.palmbus/10000000.sysc'
[    3.722226]    create child: /palmbus@10000000/timer@100
[    3.732733] OF: ** translation for device /palmbus@10000000/timer@100 **
[    3.746020] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    3.757944] OF: translating address: 00000100
[    3.766568] OF: parent bus is default (na=1, ns=1) on /
[    3.776987] OF: walking ranges...
[    3.783526] OF: default map, cp=0, s=1fffff, da=100
[    3.793253] OF: parent translation for: 10000000
[    3.802386] OF: with offset: 100
[    3.808834] OF: one level translation: 10000100
[    3.817788] OF: reached root node
[    3.824421] of_irq_parse_one: dev=/palmbus@10000000/timer@100, index=0
[    3.837392]  intspec=1 intlen=1
[    3.843589]  intsize=1 intlen=1
[    3.849851] of_irq_parse_raw:  /palmbus@10000000/intc@200:00000001
[    3.862105] of_irq_parse_raw: ipar=/palmbus@10000000/intc@200, size=1
[    3.874952]  -> addrsize=1
[    3.880270]  -> got it !
[    3.885333] of_irq_parse_one: dev=/palmbus@10000000/timer@100, index=1
[    3.898312]  intspec=1 intlen=1
[    3.904505]  intsize=1 intlen=1
[    3.910780] OF: ** translation for device /palmbus@10000000/timer@100 **
[    3.924107] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    3.936037] OF: translating address: 00000100
[    3.944660] OF: parent bus is default (na=1, ns=1) on /
[    3.955081] OF: walking ranges...
[    3.961620] OF: default map, cp=0, s=1fffff, da=100
[    3.971346] OF: parent translation for: 10000000
[    3.980480] OF: with offset: 100
[    3.986927] OF: one level translation: 10000100
[    3.995882] OF: reached root node
[    4.002512] of_irq_parse_one: dev=/palmbus@10000000/timer@100, index=0
[    4.015484]  intspec=1 intlen=1
[    4.021677]  intsize=1 intlen=1
[    4.027943] of_irq_parse_raw:  /palmbus@10000000/intc@200:00000001
[    4.040199] of_irq_parse_raw: ipar=/palmbus@10000000/intc@200, size=1
[    4.053046]  -> addrsize=1
[    4.058362]  -> got it !
[    4.063433] irq: irq_create_mapping(0x81807000, 0x1)
[    4.073249] irq: -> using domain @81807000
[    4.081425] irq: -> existing mapping on virq 9
[    4.090221] OF: ** translation for device /palmbus@10000000/timer@100 **
[    4.103588] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    4.115516] OF: translating address: 00000100
[    4.124140] OF: parent bus is default (na=1, ns=1) on /
[    4.134572] OF: walking ranges...
[    4.141098] OF: default map, cp=0, s=1fffff, da=100
[    4.150826] OF: parent translation for: 10000000
[    4.159959] OF: with offset: 100
[    4.166406] OF: one level translation: 10000100
[    4.175361] OF: reached root node
[    4.182011] of_dma_get_range: no dma-ranges found for node(/palmbus@10000000/timer@100)
[    4.197935] platform 10000100.timer: device is not dma coherent
[    4.209686] platform 10000100.timer: device is not behind an iommu
[    4.221972] device: '10000100.timer': device_add
[    4.231108] kobject: '10000100.timer' (81873818): kobject_add_internal: parent: '10000000.palmbus', set: 'devices'
[    4.251815] bus: 'platform': add device 10000100.timer
[    4.262015] kobject: '10000100.timer' (81873818): kobject_uevent_env
[    4.274646] kobject: '10000100.timer' (81873818): fill_kobj_path: path = '/devices/platform/10000000.palmbus/10000100.timer'
[    4.297027]    create child: /palmbus@10000000/watchdog@120
[    4.308059] OF: ** translation for device /palmbus@10000000/watchdog@120 **
[    4.321865] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    4.333788] OF: translating address: 00000120
[    4.342411] OF: parent bus is default (na=1, ns=1) on /
[    4.352831] OF: walking ranges...
[    4.359369] OF: default map, cp=0, s=1fffff, da=120
[    4.369097] OF: parent translation for: 10000000
[    4.378228] OF: with offset: 120
[    4.384678] OF: one level translation: 10000120
[    4.393630] OF: reached root node
[    4.400266] of_irq_parse_one: dev=/palmbus@10000000/watchdog@120, index=0
[    4.413755]  intspec=1 intlen=1
[    4.419951]  intsize=1 intlen=1
[    4.426213] of_irq_parse_raw:  /palmbus@10000000/intc@200:00000001
[    4.438467] of_irq_parse_raw: ipar=/palmbus@10000000/intc@200, size=1
[    4.451316]  -> addrsize=1
[    4.456631]  -> got it !
[    4.461696] of_irq_parse_one: dev=/palmbus@10000000/watchdog@120, index=1
[    4.475195]  intspec=1 intlen=1
[    4.481386]  intsize=1 intlen=1
[    4.487662] OF: ** translation for device /palmbus@10000000/watchdog@120 **
[    4.501508] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    4.513438] OF: translating address: 00000120
[    4.522061] OF: parent bus is default (na=1, ns=1) on /
[    4.532483] OF: walking ranges...
[    4.539019] OF: default map, cp=0, s=1fffff, da=120
[    4.548747] OF: parent translation for: 10000000
[    4.557880] OF: with offset: 120
[    4.564328] OF: one level translation: 10000120
[    4.573282] OF: reached root node
[    4.579914] of_irq_parse_one: dev=/palmbus@10000000/watchdog@120, index=0
[    4.593405]  intspec=1 intlen=1
[    4.599596]  intsize=1 intlen=1
[    4.605862] of_irq_parse_raw:  /palmbus@10000000/intc@200:00000001
[    4.618118] of_irq_parse_raw: ipar=/palmbus@10000000/intc@200, size=1
[    4.630966]  -> addrsize=1
[    4.636281]  -> got it !
[    4.641353] irq: irq_create_mapping(0x81807000, 0x1)
[    4.651168] irq: -> using domain @81807000
[    4.659345] irq: -> existing mapping on virq 9
[    4.668140] OF: ** translation for device /palmbus@10000000/watchdog@120 **
[    4.682028] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    4.693955] OF: translating address: 00000120
[    4.702578] OF: parent bus is default (na=1, ns=1) on /
[    4.713000] OF: walking ranges...
[    4.719536] OF: default map, cp=0, s=1fffff, da=120
[    4.729264] OF: parent translation for: 10000000
[    4.738397] OF: with offset: 120
[    4.744846] OF: one level translation: 10000120
[    4.753799] OF: reached root node
[    4.760451] of_dma_get_range: no dma-ranges found for node(/palmbus@10000000/watchdog@120)
[    4.776893] platform 10000120.watchdog: device is not dma coherent
[    4.789171] platform 10000120.watchdog: device is not behind an iommu
[    4.801969] device: '10000120.watchdog': device_add
[    4.811623] kobject: '10000120.watchdog' (81873918): kobject_add_internal: parent: '10000000.palmbus', set: 'devices'
[    4.832849] bus: 'platform': add device 10000120.watchdog
[    4.843572] kobject: '10000120.watchdog' (81873918): kobject_uevent_env
[    4.856718] kobject: '10000120.watchdog' (81873918): fill_kobj_path: path = '/devices/platform/10000000.palmbus/10000120.watchdog'
[    4.880141]    create child: /palmbus@10000000/intc@200
[    4.890483] OF: ** translation for device /palmbus@10000000/intc@200 **
[    4.903595] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    4.915517] OF: translating address: 00000200
[    4.924139] OF: parent bus is default (na=1, ns=1) on /
[    4.934560] OF: walking ranges...
[    4.941098] OF: default map, cp=0, s=1fffff, da=200
[    4.950825] OF: parent translation for: 10000000
[    4.959957] OF: with offset: 200
[    4.966407] OF: one level translation: 10000200
[    4.975359] OF: reached root node
[    4.981995] of_irq_parse_one: dev=/palmbus@10000000/intc@200, index=0
[    4.994795]  intspec=2 intlen=1
[    5.000984]  intsize=1 intlen=1
[    5.007249] of_irq_parse_raw:  /cpuintc@0:00000002
[    5.016730] of_irq_parse_raw: ipar=/cpuintc@0, size=1
[    5.026811]  -> addrsize=0
[    5.032129]  -> got it !
[    5.037194] of_irq_parse_one: dev=/palmbus@10000000/intc@200, index=1
[    5.050002]  intspec=2 intlen=1
[    5.056191]  intsize=1 intlen=1
[    5.062469] OF: ** translation for device /palmbus@10000000/intc@200 **
[    5.075623] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    5.087563] OF: translating address: 00000200
[    5.096174] OF: parent bus is default (na=1, ns=1) on /
[    5.106596] OF: walking ranges...
[    5.113133] OF: default map, cp=0, s=1fffff, da=200
[    5.122860] OF: parent translation for: 10000000
[    5.131993] OF: with offset: 200
[    5.138442] OF: one level translation: 10000200
[    5.147396] OF: reached root node
[    5.154026] of_irq_parse_one: dev=/palmbus@10000000/intc@200, index=0
[    5.166828]  intspec=2 intlen=1
[    5.173017]  intsize=1 intlen=1
[    5.179283] of_irq_parse_raw:  /cpuintc@0:00000002
[    5.188766] of_irq_parse_raw: ipar=/cpuintc@0, size=1
[    5.198847]  -> addrsize=0
[    5.204164]  -> got it !
[    5.209236] irq: irq_create_mapping(0x81806100, 0x2)
[    5.219051] irq: -> using domain @81806100
[    5.227228] irq: -> existing mapping on virq 2
[    5.236024] OF: ** translation for device /palmbus@10000000/intc@200 **
[    5.249219] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    5.261146] OF: translating address: 00000200
[    5.269768] OF: parent bus is default (na=1, ns=1) on /
[    5.280190] OF: walking ranges...
[    5.286727] OF: default map, cp=0, s=1fffff, da=200
[    5.296455] OF: parent translation for: 10000000
[    5.305588] OF: with offset: 200
[    5.312036] OF: one level translation: 10000200
[    5.320990] OF: reached root node
[    5.327643] of_dma_get_range: no dma-ranges found for node(/palmbus@10000000/intc@200)
[    5.343394] platform 10000200.intc: device is not dma coherent
[    5.354971] platform 10000200.intc: device is not behind an iommu
[    5.367084] device: '10000200.intc': device_add
[    5.376044] kobject: '10000200.intc' (81873a18): kobject_add_internal: parent: '10000000.palmbus', set: 'devices'
[    5.396576] bus: 'platform': add device 10000200.intc
[    5.406605] kobject: '10000200.intc' (81873a18): kobject_uevent_env
[    5.419064] kobject: '10000200.intc' (81873a18): fill_kobj_path: path = '/devices/platform/10000000.palmbus/10000200.intc'
[    5.441101]    create child: /palmbus@10000000/memc@300
[    5.451440] OF: ** translation for device /palmbus@10000000/memc@300 **
[    5.464554] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    5.476477] OF: translating address: 00000300
[    5.485100] OF: parent bus is default (na=1, ns=1) on /
[    5.495520] OF: walking ranges...
[    5.502058] OF: default map, cp=0, s=1fffff, da=300
[    5.511786] OF: parent translation for: 10000000
[    5.520918] OF: with offset: 300
[    5.527368] OF: one level translation: 10000300
[    5.536320] OF: reached root node
[    5.542955] of_irq_parse_one: dev=/palmbus@10000000/memc@300, index=0
[    5.555753]  intspec=3 intlen=1
[    5.561949]  intsize=1 intlen=1
[    5.568212] of_irq_parse_raw:  /palmbus@10000000/intc@200:00000003
[    5.580465] of_irq_parse_raw: ipar=/palmbus@10000000/intc@200, size=1
[    5.593314]  -> addrsize=1
[    5.598628]  -> got it !
[    5.603693] of_irq_parse_one: dev=/palmbus@10000000/memc@300, index=1
[    5.616500]  intspec=3 intlen=1
[    5.622691]  intsize=1 intlen=1
[    5.628967] OF: ** translation for device /palmbus@10000000/memc@300 **
[    5.642121] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    5.654051] OF: translating address: 00000300
[    5.662674] OF: parent bus is default (na=1, ns=1) on /
[    5.673095] OF: walking ranges...
[    5.679632] OF: default map, cp=0, s=1fffff, da=300
[    5.689360] OF: parent translation for: 10000000
[    5.698493] OF: with offset: 300
[    5.704941] OF: one level translation: 10000300
[    5.713895] OF: reached root node
[    5.720526] of_irq_parse_one: dev=/palmbus@10000000/memc@300, index=0
[    5.733327]  intspec=3 intlen=1
[    5.739517]  intsize=1 intlen=1
[    5.745783] of_irq_parse_raw:  /palmbus@10000000/intc@200:00000003
[    5.758038] of_irq_parse_raw: ipar=/palmbus@10000000/intc@200, size=1
[    5.770887]  -> addrsize=1
[    5.776202]  -> got it !
[    5.781273] irq: irq_create_mapping(0x81807000, 0x3)
[    5.791088] irq: -> using domain @81807000
[    5.799266] irq: -> existing mapping on virq 11
[    5.808234] OF: ** translation for device /palmbus@10000000/memc@300 **
[    5.821430] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    5.833357] OF: translating address: 00000300
[    5.841979] OF: parent bus is default (na=1, ns=1) on /
[    5.852401] OF: walking ranges...
[    5.858937] OF: default map, cp=0, s=1fffff, da=300
[    5.868665] OF: parent translation for: 10000000
[    5.877798] OF: with offset: 300
[    5.884247] OF: one level translation: 10000300
[    5.893200] OF: reached root node
[    5.899854] of_dma_get_range: no dma-ranges found for node(/palmbus@10000000/memc@300)
[    5.915604] platform 10000300.memc: device is not dma coherent
[    5.927181] platform 10000300.memc: device is not behind an iommu
[    5.939294] device: '10000300.memc': device_add
[    5.948255] kobject: '10000300.memc' (81873b18): kobject_add_internal: parent: '10000000.palmbus', set: 'devices'
[    5.968781] bus: 'platform': add device 10000300.memc
[    5.978859] kobject: '10000300.memc' (81873b18): kobject_uevent_env
[    5.991302] kobject: '10000300.memc' (81873b18): fill_kobj_path: path = '/devices/platform/10000000.palmbus/10000300.memc'
[    6.013362]    create child: /palmbus@10000000/uart@500
[    6.023720] OF: ** translation for device /palmbus@10000000/uart@500 **
[    6.036817] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    6.048752] OF: translating address: 00000500
[    6.057363] OF: parent bus is default (na=1, ns=1) on /
[    6.067784] OF: walking ranges...
[    6.074321] OF: default map, cp=0, s=1fffff, da=500
[    6.084049] OF: parent translation for: 10000000
[    6.093181] OF: with offset: 500
[    6.099631] OF: one level translation: 10000500
[    6.108583] OF: reached root node
[    6.115219] of_irq_parse_one: dev=/palmbus@10000000/uart@500, index=0
[    6.128015]  intspec=5 intlen=1
[    6.134212]  intsize=1 intlen=1
[    6.140474] of_irq_parse_raw:  /palmbus@10000000/intc@200:00000005
[    6.152728] of_irq_parse_raw: ipar=/palmbus@10000000/intc@200, size=1
[    6.165576]  -> addrsize=1
[    6.170891]  -> got it !
[    6.175956] of_irq_parse_one: dev=/palmbus@10000000/uart@500, index=1
[    6.188763]  intspec=5 intlen=1
[    6.194954]  intsize=1 intlen=1
[    6.201230] OF: ** translation for device /palmbus@10000000/uart@500 **
[    6.214384] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    6.226315] OF: translating address: 00000500
[    6.234937] OF: parent bus is default (na=1, ns=1) on /
[    6.245359] OF: walking ranges...
[    6.251895] OF: default map, cp=0, s=1fffff, da=500
[    6.261623] OF: parent translation for: 10000000
[    6.270756] OF: with offset: 500
[    6.277210] OF: one level translation: 10000500
[    6.286158] OF: reached root node
[    6.292790] of_irq_parse_one: dev=/palmbus@10000000/uart@500, index=0
[    6.305590]  intspec=5 intlen=1
[    6.311782]  intsize=1 intlen=1
[    6.318046] of_irq_parse_raw:  /palmbus@10000000/intc@200:00000005
[    6.330302] of_irq_parse_raw: ipar=/palmbus@10000000/intc@200, size=1
[    6.343151]  -> addrsize=1
[    6.348465]  -> got it !
[    6.353537] irq: irq_create_mapping(0x81807000, 0x5)
[    6.363352] irq: -> using domain @81807000
[    6.371529] irq: -> existing mapping on virq 13
[    6.380497] OF: ** translation for device /palmbus@10000000/uart@500 **
[    6.393693] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    6.405620] OF: translating address: 00000500
[    6.414242] OF: parent bus is default (na=1, ns=1) on /
[    6.424664] OF: walking ranges...
[    6.431201] OF: default map, cp=0, s=1fffff, da=500
[    6.440928] OF: parent translation for: 10000000
[    6.450062] OF: with offset: 500
[    6.456510] OF: one level translation: 10000500
[    6.465464] OF: reached root node
[    6.472117] of_dma_get_range: no dma-ranges found for node(/palmbus@10000000/uart@500)
[    6.487865] platform 10000500.uart: device is not dma coherent
[    6.499445] platform 10000500.uart: device is not behind an iommu
[    6.511558] device: '10000500.uart': device_add
[    6.520518] kobject: '10000500.uart' (81873c18): kobject_add_internal: parent: '10000000.palmbus', set: 'devices'
[    6.541048] bus: 'platform': add device 10000500.uart
[    6.551079] kobject: '10000500.uart' (81873c18): kobject_uevent_env
[    6.563536] kobject: '10000500.uart' (81873c18): fill_kobj_path: path = '/devices/platform/10000000.palmbus/10000500.uart'
[    6.585578]    create child: /palmbus@10000000/gpio@600
[    6.595920] OF: ** translation for device /palmbus@10000000/gpio@600 **
[    6.609031] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    6.620954] OF: translating address: 00000600
[    6.629577] OF: parent bus is default (na=1, ns=1) on /
[    6.639998] OF: walking ranges...
[    6.646535] OF: default map, cp=0, s=1fffff, da=600
[    6.656263] OF: parent translation for: 10000000
[    6.665395] OF: with offset: 600
[    6.671845] OF: one level translation: 10000600
[    6.680797] OF: reached root node
[    6.687432] of_irq_parse_one: dev=/palmbus@10000000/gpio@600, index=0
[    6.700229]  intspec=6 intlen=1
[    6.706425]  intsize=1 intlen=1
[    6.712688] of_irq_parse_raw:  /palmbus@10000000/intc@200:00000006
[    6.724941] of_irq_parse_raw: ipar=/palmbus@10000000/intc@200, size=1
[    6.737789]  -> addrsize=1
[    6.743105]  -> got it !
[    6.748170] of_irq_parse_one: dev=/palmbus@10000000/gpio@600, index=1
[    6.760977]  intspec=6 intlen=1
[    6.767168]  intsize=1 intlen=1
[    6.773445] OF: ** translation for device /palmbus@10000000/gpio@600 **
[    6.786598] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    6.798528] OF: translating address: 00000600
[    6.807151] OF: parent bus is default (na=1, ns=1) on /
[    6.817572] OF: walking ranges...
[    6.824109] OF: default map, cp=0, s=1fffff, da=600
[    6.833837] OF: parent translation for: 10000000
[    6.842970] OF: with offset: 600
[    6.849418] OF: one level translation: 10000600
[    6.858372] OF: reached root node
[    6.865003] of_irq_parse_one: dev=/palmbus@10000000/gpio@600, index=0
[    6.877803]  intspec=6 intlen=1
[    6.883995]  intsize=1 intlen=1
[    6.890261] of_irq_parse_raw:  /palmbus@10000000/intc@200:00000006
[    6.902516] of_irq_parse_raw: ipar=/palmbus@10000000/intc@200, size=1
[    6.915365]  -> addrsize=1
[    6.920679]  -> got it !
[    6.925750] irq: irq_create_mapping(0x81807000, 0x6)
[    6.935565] irq: -> using domain @81807000
[    6.943743] irq: -> existing mapping on virq 14
[    6.952711] OF: ** translation for device /palmbus@10000000/gpio@600 **
[    6.965908] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    6.977846] OF: translating address: 00000600
[    6.986456] OF: parent bus is default (na=1, ns=1) on /
[    6.996878] OF: walking ranges...
[    7.003415] OF: default map, cp=0, s=1fffff, da=600
[    7.013142] OF: parent translation for: 10000000
[    7.022275] OF: with offset: 600
[    7.028724] OF: one level translation: 10000600
[    7.037678] OF: reached root node
[    7.044329] of_dma_get_range: no dma-ranges found for node(/palmbus@10000000/gpio@600)
[    7.060079] platform 10000600.gpio: device is not dma coherent
[    7.071658] platform 10000600.gpio: device is not behind an iommu
[    7.083771] device: '10000600.gpio': device_add
[    7.092732] kobject: '10000600.gpio' (81873d18): kobject_add_internal: parent: '10000000.palmbus', set: 'devices'
[    7.113264] bus: 'platform': add device 10000600.gpio
[    7.123293] kobject: '10000600.gpio' (81873d18): kobject_uevent_env
[    7.135788] kobject: '10000600.gpio' (81873d18): fill_kobj_path: path = '/devices/platform/10000000.palmbus/10000600.gpio'
[    7.157805]    create child: /palmbus@10000000/gpio@660
[    7.168123]    create child: /palmbus@10000000/i2c@900
[    7.178320]    create child: /palmbus@10000000/i2s@a00
[    7.188531]    create child: /palmbus@10000000/spi@b00
[    7.198767] OF: ** translation for device /palmbus@10000000/spi@b00 **
[    7.211720] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    7.223643] OF: translating address: 00000b00
[    7.232266] OF: parent bus is default (na=1, ns=1) on /
[    7.242686] OF: walking ranges...
[    7.249223] OF: default map, cp=0, s=1fffff, da=b00
[    7.258951] OF: parent translation for: 10000000
[    7.268083] OF: with offset: b00
[    7.274533] OF: one level translation: 10000b00
[    7.283485] OF: reached root node
[    7.290122] of_irq_parse_one: dev=/palmbus@10000000/spi@b00, index=0
[    7.302754] OF: ** translation for device /palmbus@10000000/spi@b00 **
[    7.315731] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    7.327660] OF: translating address: 00000b00
[    7.336281] OF: parent bus is default (na=1, ns=1) on /
[    7.346703] OF: walking ranges...
[    7.353240] OF: default map, cp=0, s=1fffff, da=b00
[    7.362967] OF: parent translation for: 10000000
[    7.372101] OF: with offset: b00
[    7.378549] OF: one level translation: 10000b00
[    7.387503] OF: reached root node
[    7.394135] OF: ** translation for device /palmbus@10000000/spi@b00 **
[    7.407112] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    7.419043] OF: translating address: 00000b00
[    7.427665] OF: parent bus is default (na=1, ns=1) on /
[    7.438087] OF: walking ranges...
[    7.444624] OF: default map, cp=0, s=1fffff, da=b00
[    7.454351] OF: parent translation for: 10000000
[    7.463484] OF: with offset: b00
[    7.469933] OF: one level translation: 10000b00
[    7.478887] OF: reached root node
[    7.485537] of_dma_get_range: no dma-ranges found for node(/palmbus@10000000/spi@b00)
[    7.501116] platform 10000b00.spi: device is not dma coherent
[    7.512520] platform 10000b00.spi: device is not behind an iommu
[    7.524461] device: '10000b00.spi': device_add
[    7.533249] kobject: '10000b00.spi' (81873e18): kobject_add_internal: parent: '10000000.palmbus', set: 'devices'
[    7.553609] bus: 'platform': add device 10000b00.spi
[    7.563397] kobject: '10000b00.spi' (81873e18): kobject_uevent_env
[    7.575753] kobject: '10000b00.spi' (81873e18): fill_kobj_path: path = '/devices/platform/10000000.palmbus/10000b00.spi'
[    7.597440]    create child: /palmbus@10000000/spi@b40
[    7.607586]    create child: /palmbus@10000000/uartlite@c00
[    7.618672] OF: ** translation for device /palmbus@10000000/uartlite@c00 **
[    7.632489] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    7.644412] OF: translating address: 00000c00
[    7.653036] OF: parent bus is default (na=1, ns=1) on /
[    7.663456] OF: walking ranges...
[    7.669993] OF: default map, cp=0, s=1fffff, da=c00
[    7.679721] OF: parent translation for: 10000000
[    7.688853] OF: with offset: c00
[    7.695303] OF: one level translation: 10000c00
[    7.704255] OF: reached root node
[    7.710890] of_irq_parse_one: dev=/palmbus@10000000/uartlite@c00, index=0
[    7.724381]  intspec=12 intlen=1
[    7.730750]  intsize=1 intlen=1
[    7.737013] of_irq_parse_raw:  /palmbus@10000000/intc@200:0000000c
[    7.749265] of_irq_parse_raw: ipar=/palmbus@10000000/intc@200, size=1
[    7.762120]  -> addrsize=1
[    7.767429]  -> got it !
[    7.772494] of_irq_parse_one: dev=/palmbus@10000000/uartlite@c00, index=1
[    7.785995]  intspec=12 intlen=1
[    7.792358]  intsize=1 intlen=1
[    7.798637] OF: ** translation for device /palmbus@10000000/uartlite@c00 **
[    7.812480] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    7.824409] OF: translating address: 00000c00
[    7.833032] OF: parent bus is default (na=1, ns=1) on /
[    7.843453] OF: walking ranges...
[    7.849990] OF: default map, cp=0, s=1fffff, da=c00
[    7.859718] OF: parent translation for: 10000000
[    7.868851] OF: with offset: c00
[    7.875299] OF: one level translation: 10000c00
[    7.884253] OF: reached root node
[    7.890884] of_irq_parse_one: dev=/palmbus@10000000/uartlite@c00, index=0
[    7.904378]  intspec=12 intlen=1
[    7.910742]  intsize=1 intlen=1
[    7.917009] of_irq_parse_raw:  /palmbus@10000000/intc@200:0000000c
[    7.929262] of_irq_parse_raw: ipar=/palmbus@10000000/intc@200, size=1
[    7.942110]  -> addrsize=1
[    7.947425]  -> got it !
[    7.952498] irq: irq_create_mapping(0x81807000, 0xc)
[    7.962312] irq: -> using domain @81807000
[    7.970489] irq: -> existing mapping on virq 20
[    7.979459] OF: ** translation for device /palmbus@10000000/uartlite@c00 **
[    7.993346] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    8.005273] OF: translating address: 00000c00
[    8.013895] OF: parent bus is default (na=1, ns=1) on /
[    8.024317] OF: walking ranges...
[    8.030853] OF: default map, cp=0, s=1fffff, da=c00
[    8.040581] OF: parent translation for: 10000000
[    8.049714] OF: with offset: c00
[    8.056163] OF: one level translation: 10000c00
[    8.065116] OF: reached root node
[    8.071769] of_dma_get_range: no dma-ranges found for node(/palmbus@10000000/uartlite@c00)
[    8.088212] platform 10000c00.uartlite: device is not dma coherent
[    8.100482] platform 10000c00.uartlite: device is not behind an iommu
[    8.113288] device: '10000c00.uartlite': device_add
[    8.122940] kobject: '10000c00.uartlite' (81873f18): kobject_add_internal: parent: '10000000.palmbus', set: 'devices'
[    8.144165] bus: 'platform': add device 10000c00.uartlite
[    8.154886] kobject: '10000c00.uartlite' (81873f18): kobject_uevent_env
[    8.168034] kobject: '10000c00.uartlite' (81873f18): fill_kobj_path: path = '/devices/platform/10000000.palmbus/10000c00.uartlite'
[    8.191469]    create child: /palmbus@10000000/systick@d00
[    8.202364] OF: ** translation for device /palmbus@10000000/systick@d00 **
[    8.215972] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    8.227885] OF: translating address: 00000d00
[    8.236508] OF: parent bus is default (na=1, ns=1) on /
[    8.246929] OF: walking ranges...
[    8.253466] OF: default map, cp=0, s=1fffff, da=d00
[    8.263194] OF: parent translation for: 10000000
[    8.272325] OF: with offset: d00
[    8.278775] OF: one level translation: 10000d00
[    8.287728] OF: reached root node
[    8.294363] of_irq_parse_one: dev=/palmbus@10000000/systick@d00, index=0
[    8.307680]  intspec=7 intlen=1
[    8.313871]  intsize=1 intlen=1
[    8.320136] of_irq_parse_raw:  /cpuintc@0:00000007
[    8.329618] of_irq_parse_raw: ipar=/cpuintc@0, size=1
[    8.339699]  -> addrsize=0
[    8.345017]  -> got it !
[    8.350081] of_irq_parse_one: dev=/palmbus@10000000/systick@d00, index=1
[    8.363408]  intspec=7 intlen=1
[    8.369597]  intsize=1 intlen=1
[    8.375877] OF: ** translation for device /palmbus@10000000/systick@d00 **
[    8.389548] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    8.401478] OF: translating address: 00000d00
[    8.410100] OF: parent bus is default (na=1, ns=1) on /
[    8.420521] OF: walking ranges...
[    8.427059] OF: default map, cp=0, s=1fffff, da=d00
[    8.436786] OF: parent translation for: 10000000
[    8.445919] OF: with offset: d00
[    8.452368] OF: one level translation: 10000d00
[    8.461321] OF: reached root node
[    8.467953] of_irq_parse_one: dev=/palmbus@10000000/systick@d00, index=0
[    8.481272]  intspec=7 intlen=1
[    8.487461]  intsize=1 intlen=1
[    8.493729] of_irq_parse_raw:  /cpuintc@0:00000007
[    8.503211] of_irq_parse_raw: ipar=/cpuintc@0, size=1
[    8.513293]  -> addrsize=0
[    8.518609]  -> got it !
[    8.523682] irq: irq_create_mapping(0x81806100, 0x7)
[    8.533496] irq: -> using domain @81806100
[    8.541673] irq: -> existing mapping on virq 7
[    8.550468] OF: ** translation for device /palmbus@10000000/systick@d00 **
[    8.564183] OF: bus is default (na=1, ns=1) on /palmbus@10000000
[    8.576110] OF: translating address: 00000d00
[    8.584733] OF: parent bus is default (na=1, ns=1) on /
[    8.595154] OF: walking ranges...
[    8.601691] OF: default map, cp=0, s=1fffff, da=d00
[    8.611419] OF: parent translation for: 10000000
[    8.620552] OF: with offset: d00
[    8.627001] OF: one level translation: 10000d00
[    8.635954] OF: reached root node
[    8.642608] of_dma_get_range: no dma-ranges found for node(/palmbus@10000000/systick@d00)
[    8.658876] platform 10000d00.systick: device is not dma coherent
[    8.670973] platform 10000d00.systick: device is not behind an iommu
[    8.683607] device: '10000d00.systick': device_add
[    8.693086] kobject: '10000d00.systick' (81888018): kobject_add_internal: parent: '10000000.palmbus', set: 'devices'
[    8.714137] bus: 'platform': add device 10000d00.systick
[    8.724688] kobject: '10000d00.systick' (81888018): kobject_uevent_env
[    8.737664] kobject: '10000d00.systick' (81888018): fill_kobj_path: path = '/devices/platform/10000000.palmbus/10000d00.systick'
[    8.760738]    create child: /palmbus@10000000/gdma@2800
[    8.771258] of_irq_parse_one: dev=/pinctrl, index=0
[    8.780866] of_dma_get_range: no dma-ranges found for node(/pinctrl)
[    8.793559] platform pinctrl: device is not dma coherent
[    8.804092] platform pinctrl: device is not behind an iommu
[    8.815171] device: 'pinctrl': device_add
[    8.823089] kobject: 'pinctrl' (81888118): kobject_add_internal: parent: 'platform', set: 'devices'
[    8.841230] bus: 'platform': add device pinctrl
[    8.850139] kobject: 'pinctrl' (81888118): kobject_uevent_env
[    8.861635] kobject: 'pinctrl' (81888118): fill_kobj_path: path = '/devices/platform/pinctrl'
[    8.878618] bus: 'platform': driver_probe_device: matched device pinctrl with driver rt2880-pinmux
[    8.896361] bus: 'platform': really_probe: probing driver rt2880-pinmux with device pinctrl
[    8.913024] rt2880-pinmux pinctrl: no pinctrl handle
[    8.922834] devices_kset: Moving pinctrl to end of list
[    8.933455] rt2880-pinmux pinctrl: try to register 28 pins ...
[    8.945007] pinctrl core: registered pin 0 (io0) on rt2880-pinmux
[    8.957126] pinctrl core: registered pin 1 (io1) on rt2880-pinmux
[    8.969198] pinctrl core: registered pin 2 (io2) on rt2880-pinmux
[    8.981305] pinctrl core: registered pin 3 (io3) on rt2880-pinmux
[    8.993421] pinctrl core: registered pin 4 (io4) on rt2880-pinmux
[    9.005536] pinctrl core: registered pin 5 (io5) on rt2880-pinmux
[    9.017651] pinctrl core: registered pin 6 (io6) on rt2880-pinmux
[    9.029767] pinctrl core: registered pin 7 (io7) on rt2880-pinmux
[    9.041882] pinctrl core: registered pin 8 (io8) on rt2880-pinmux
[    9.053997] pinctrl core: registered pin 9 (io9) on rt2880-pinmux
[    9.066112] pinctrl core: registered pin 10 (io10) on rt2880-pinmux
[    9.078573] pinctrl core: registered pin 11 (io11) on rt2880-pinmux
[    9.091035] pinctrl core: registered pin 12 (io12) on rt2880-pinmux
[    9.103497] pinctrl core: registered pin 13 (io13) on rt2880-pinmux
[    9.115958] pinctrl core: registered pin 14 (io14) on rt2880-pinmux
[    9.128419] pinctrl core: registered pin 15 (io15) on rt2880-pinmux
[    9.140882] pinctrl core: registered pin 16 (io16) on rt2880-pinmux
[    9.153343] pinctrl core: registered pin 17 (io17) on rt2880-pinmux
[    9.165804] pinctrl core: registered pin 18 (io18) on rt2880-pinmux
[    9.178265] pinctrl core: registered pin 19 (io19) on rt2880-pinmux
[    9.190727] pinctrl core: registered pin 20 (io20) on rt2880-pinmux
[    9.203188] pinctrl core: registered pin 21 (io21) on rt2880-pinmux
[    9.215649] pinctrl core: registered pin 22 (io22) on rt2880-pinmux
[    9.228110] pinctrl core: registered pin 23 (io23) on rt2880-pinmux
[    9.240579] pinctrl core: registered pin 24 (io24) on rt2880-pinmux
[    9.253034] pinctrl core: registered pin 25 (io25) on rt2880-pinmux
[    9.265495] pinctrl core: registered pin 26 (io26) on rt2880-pinmux
[    9.277956] pinctrl core: registered pin 27 (io27) on rt2880-pinmux
[    9.290612] pinctrl core: add 55 pinctrl maps
[    9.299162] CPU 0 Unable to handle kernel paging request at virtual address 206c7274, epc == 80150700, ra == 801522f8
[    9.320239] Oops[#1]:
[    9.324749] CPU: 0 PID: 1 Comm: swapper Not tainted 4.4.23 #0
[    9.336167] task: 81828000 ti: 81822000 task.ti: 81822000
[    9.346888] $ 0   : 00000000 00000000 206c7274 8032bb78
[    9.357271] $ 4   : 206c7274 206c7273 206c7274 00000000
[    9.367655] $ 8   : 00000023 00000000 00000008 203a6572
[    9.378040] $12   : 6c696166 ffffff80 00000000 74206465
[    9.388425] $16   : 803b6207 ffffffff 206c7274 803b65c0
[    9.398809] $20   : 00000000 8032da2d 000003e0 00000002
[    9.409193] $24   : 00000018 00000000                  
[    9.419578] $28   : 81822000 81823980 80330000 801522f8
[    9.429964] Hi    : 0000001d
[    9.435675] Lo    : 0f5c296a
[    9.441444] epc   : 80150700 strnlen+0x10/0x2c
[    9.450233] ra    : 801522f8 string.isra.3+0x54/0x120
[    9.460251] Status: 11008402    KERNEL EXL 
[    9.468043] Cause : 00800008 (ExcCode 02)
[    9.476002] BadVA : 206c7274
[    9.481715] PrId  : 0001964c (MIPS 24KEc)
[    9.489673] Modules linked in:
[    9.495742] Process swapper (pid: 1, threadinfo=81822000, task=81828000, tls=00000000)
[    9.511481] Stack : 803d0000 803ce3c0 803d0000 803d0000 81823abc 803b6207 803b65c0 803b61e0
      8032da2b 801544c8 8032da2c 803ce378 803d0000 0000065e ffffffff ffffffff
      803ce3c0 803d0000 8032bb98 8032bb78 ff0a0004 ffffffff 000003e0 803b0000
      803b0000 00000000 ffffffff 00000000 00000000 81044eb8 00000000 80154698
      00000007 00000000 00000000 81044eb8 00000000 8004a9b4 00000000 00000007
      ...
[    9.582097] Call Trace:
[    9.586959] [<80150700>] strnlen+0x10/0x2c
[    9.595100] [<801522f8>] string.isra.3+0x54/0x120
[    9.604437] [<801544c8>] vsnprintf+0x1e4/0x3a0
[    9.613261] [<80154698>] vscnprintf+0x14/0x3c
[    9.621929] [<8004a9b4>] vprintk_emit+0x1b4/0x448
[    9.631265] [<8004adc8>] vprintk_default+0x24/0x30
[    9.640782] [<80048d34>] printk+0x2c/0x38
[    9.648746] [<8016f524>] pinctrl_register_map+0x104/0x1e4
[    9.659480] [<80171044>] pinctrl_dt_to_map+0x240/0x2e8
[    9.669684] [<8016e7e8>] pinctrl_get+0x170/0x45c
[    9.678858] [<8016ee60>] pinctrl_register+0x2f8/0x4b0
[    9.688901] [<80171974>] rt2880_pinmux_probe+0x46c/0x5d0
[    9.699477] [<801966fc>] platform_drv_probe+0x28/0x70
[    9.709495] [<80194bf4>] driver_probe_device+0x184/0x374
[    9.720051] [<80192f4c>] bus_for_each_drv+0xa0/0xb0
[    9.729743] [<801949b8>] __device_attach+0x90/0xfc
[    9.739263] [<80193eec>] bus_probe_device+0x3c/0xb0
[    9.748993] [<80191fa0>] device_add+0x470/0x568
[    9.757970] [<801c4250>] of_platform_device_create_pdata+0xac/0xf0
[    9.770244] [<801c43bc>] of_platform_bus_create+0x11c/0x1d8
[    9.781321] [<801c4608>] of_platform_populate+0x84/0xe8
[    9.791725] [<803888b8>] __dt_register_buses+0x6c/0x90
[    9.801918] [<80387b34>] plat_of_setup+0x1c/0x34
[    9.811105] [<8000d5c8>] do_one_initcall+0x1e8/0x214
[    9.820957] [<80385d58>] kernel_init_freeable+0x164/0x224
[    9.831703] [<80008c3c>] kernel_init+0x10/0x114
[    9.840684] [<80004478>] ret_from_kernel_thread+0x14/0x1c
[    9.851402] 
[    9.854342] 
Code: 00801021  10450006  00000000 <80430000> 10600003  00000000  1000fffa  24420001  03e00008 
[    9.874220] ---[ end trace 0b7d9e4c68c34a3b ]---
[    9.883251] Fatal exception: panic in 5 seconds
[   14.905487] Kernel panic - not syncing: Fatal exception
[   14.916071] Rebooting in 1 seconds..
[   16.919775] Reboot failed -- System halted

I've done it!!!
I'm able to compleate the boot.

#

BusyBox v1.25.0 () built-in shell (ash)

     _________
    /        /\      _    ___ ___  ___
   /  LE    /  \    | |  | __|   \| __|
  /    DE  /    \   | |__| _|| |) | _|
 /________/  LE  \  |____|___|___/|___|                      lede-project.org
 \        \   DE /
  \    LE  \    /  -----------------------------------------------------------
   \  DE    \  /    Reboot (HEAD, r1727)
    \________\/    -----------------------------------------------------------

root@lede:/# #

Currently I make the port in LEDE, but if someone clarify my how to translate this patch for OWRT I will try to contribute also for OWRT:

diff --git a/target/linux/ramips/image/rt305x.mk
b/target/linux/ramips/image/rt305x.mk
index be21ac4..529727a 100644
--- a/target/linux/ramips/image/rt305x.mk
+++ b/target/linux/ramips/image/rt305x.mk
@@ -168,6 +168,17 @@ endef
TARGET_DEVICES += dir-620-d1


+define Device/dwr-512-b
+  DTS := DWR-512-B
+  KERNEL := kernel-bin | patch-dtb | lzma
+  IMAGES := factory.bin
+  IMAGE/factory.bin := \
+       append-kernel
+  DEVICE_TITLE := D-Link DWR-512 B
+endef
+TARGET_DEVICES += dwr-512-b
+
+
define Device/esr-9753
   DTS := ESR-9753
   BLOCKSIZE := 64k

Bye.

The discussion might have continued from here.