Hi John,
Thank you for your so quickly reply.  I recompile the openwrt as what you
said in the email, but it doesn't work, did i miss something? The dts file
likes this:

/dts-v1/;

/include/ "rt5350.dtsi"

/ {
compatible = "HLKRM04", "ralink,rt5350-soc";
model = "HILINK HLK-RM04";

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

palmbus@10000000 {
sysc@0 {
ralink,pinmux = "i2c", "spi", "uartlite", "uart", "mdio", "sdram", "rgmii";
ralink,gpiomux = "jtag";
ralink,uartmux = "uartf";
ralink,wdtmux = <1>;
};

gpio0: gpio@600 {
status = "okay";
};

spi@b00 {
status = "okay";
m25p80@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "s25fl064k";
reg = <0 0>;
linux,modalias = "m25p80", "s25fl064k";
spi-max-frequency = <10000000>;

partition@0 {
label = "u-boot";
reg = <0x0 0x30000>;
read-only;
};

partition@30000 {
label = "u-boot-env";
reg = <0x30000 0x10000>;
read-only;
};

factory: partition@40000 {
label = "factory";
reg = <0x40000 0x10000>;
read-only;
};

partition@50000 {
label = "firmware";
reg = <0x50000 0x7b0000>;
};
};
};

*uart@500 {*
* status = "enabled";*
* };*
};

ethernet@10100000 {
status = "okay";
};

esw@10110000 {
status = "okay";
ralink,portmap = <0x2f>;
};

wmac@10180000 {
status = "okay";
};

ehci@101c0000 {
status = "okay";
};

ohci@101c1000 {
status = "okay";
};

gpio-keys-polled {
compatible = "gpio-keys-polled";
#address-cells = <1>;
#size-cells = <0>;
poll-interval = <20>;
wps {
label = "reset";
gpios = <&gpio0 0 1>;
linux,code = <0x198>;
};
};

};


And it seems the i can't set the uart node like this
*uart@500 {*
* status = "okay";*
*}; *
*when i set status = "okay", i got the kernel panic*

================================================================
   Uncompressing Kernel Image ... OK
No initrd
## Transferring control to Linux (at address 80000000) ...
## Giving linux memsize in MB, 32

Starting kernel ...

[    0.000000] Linux version 3.10.3 (lich@lich-pc) (gcc version 4.6.4
(OpenWrt/Linaro GCC 4.6-2012.12 r37551) ) #26 Sun Jul 28 00:51:46 CST 2013
[    0.000000] SoC Type: Ralink RT5350 id:1 rev:3
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU revision is: 0001964c (MIPS 24KEc)
[    0.000000] MIPS: machine is HILINK HLK-RM04
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    0.000000] User-defined physical RAM map:
[    0.000000]  memory: 02000000 @ 00000000 (usable)
[    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] 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] Built 1 zonelists in Zone order, mobility grouping on.
 Total pages: 8128
[    0.000000] Kernel command line: console=ttyS0,57600
rootfstype=squashfs,jffs2 mem=32M
[    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] Writing ErrCtl register=00018fa0
[    0.000000] Readback ErrCtl register=00018fa0
[    0.000000] Memory: 29420k/32768k available (2104k kernel code, 3348k
reserved, 525k data, 184k init, 0k highmem)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:128
[    0.000000] CPU Clock: 360MHz
[    0.000000] systick: runing - mult: 214748, shift: 32
[    0.000000] Calibrating delay loop... 479.23 BogoMIPS (lpj=2396160)
[    0.060000] pid_max: default: 32768 minimum: 301
[    0.060000] Mount-cache hash table entries: 512
[    0.070000] NET: Registered protocol family 16
[    0.080000] pinmux: failed to load group "uart"
[    0.090000] bio: create slab <bio-0> at 0
[    0.100000] rt2880_gpio 10000600.gpio: registering 24 gpios
[    0.100000] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[    0.110000] Switching to clocksource systick
[    0.120000] NET: Registered protocol family 2
[    0.120000] TCP established hash table entries: 512 (order: 0, 4096
bytes)
[    0.140000] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
[    0.140000] TCP: Hash tables configured (established 512 bind 512)
[    0.160000] TCP: reno registered
[    0.160000] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.180000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.190000] NET: Registered protocol family 1
[    0.200000] rt-timer 10000100.timer: maximum frequncy is 7324Hz
[    0.240000] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.260000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME)
(CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.280000] msgmni has been set to 57
[    0.290000] io scheduler noop registered
[    0.300000] io scheduler deadline registered (default)
[    0.310000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    0.330000] 10000500.uart: ttyS0 at MMIO 0x10000500 (irq = 13) is a
16550A
[    0.340000] CPU 0 Unable to handle kernel paging request at virtual
address 00000018, epc == 8013ecc0, ra == 8013c864
[    0.340000] Oops[#1]:
[    0.340000] CPU: 0 PID: 1 Comm: swapper Not tainted 3.10.3 #26
[    0.340000] task: 81828000 ti: 81822000 task.ti: 81822000
[    0.340000] $ 0   : 00000000 00000000 00000018 00000000
[    0.340000] $ 4   : 802e7a78 00000004 00000000 0000014a
[    0.340000] $ 8   : 00000041 28203030 20717269 3331203d
[    0.340000] $12   : 80200018 00000001 00000000 00000007
[    0.340000] $16   : 00000001 802e7a78 8028b1f0 81884800
[    0.340000] $20   : 80253168 80239ab0 81884858 00000000
[    0.340000] $24   : 00000001 8013eca0
[    0.340000] $28   : 81822000 81823b18 0000000d 8013c864
[    0.340000] Hi    : 00000ce4
[    0.340000] Lo    : 00003390
[    0.340000] epc   : 8013ecc0 au_serial_out+0x20/0x2c
[    0.340000]     Not tainted
[    0.340000] ra    : 8013c864 uart_add_one_port+0x26c/0x384
[    0.340000] Status: 11008402 KERNEL EXL
[    0.340000] Cause : 0080000c
[    0.340000] BadVA : 00000018
[    0.340000] PrId  : 0001964c (MIPS 24KEc)
[    0.340000] Modules linked in:
[    0.340000] Process swapper (pid: 1, threadinfo=81822000, task=81828000,
tls=00000000)
[    0.340000] Stack : 81882e00 8184ea80 80253168 80239ab0 00000000
81823b38 0000000d 802537b0
          4f494d4d 31783020 30303030 00303035 81884800 8028b1f0 80290000
8008aac0
          81803600 80290000 802e7a78 81884858 81884800 8013bca8 81823bb0
81001d44
          80290000 802e7a78 81823cac 80290000 000000e8 802e7a78 80290000
80292210
          802783b0 8014002c 0000001c 00000200 81823be0 80170d14 00000000
81001d44
          ...
[    0.340000] Call Trace:
[    0.340000] [<8013ecc0>] au_serial_out+0x20/0x2c
[    0.340000] [<8013c864>] uart_add_one_port+0x26c/0x384
[    0.340000] [<8014002c>] serial8250_register_8250_port+0x314/0x354
[    0.340000] [<80142e34>] of_platform_serial_probe+0x34c/0x3c4
[    0.340000] [<8014980c>] driver_probe_device+0xcc/0x1f0
[    0.340000] [<8014999c>] __driver_attach+0x6c/0xa4
[    0.340000] [<80147df8>] bus_for_each_dev+0x64/0xa8
[    0.340000] [<80148e14>] bus_add_driver+0xd0/0x250
[    0.340000] [<80149d48>] driver_register+0xc0/0x188
[    0.340000] [<8000bda4>] do_one_initcall+0xec/0x194
[    0.340000] [<80292a60>] kernel_init_freeable+0x138/0x1f8
[    0.340000] [<80008aa8>] kernel_init+0x10/0x10c
[    0.340000] [<80004870>] ret_from_kernel_thread+0x10/0x18
[    0.340000]
[    0.340000]
Code: 00431004  8c830004  00621021 <ac460000> 03e00008  00000000  8c820004
 8c420028  03e00008
[    0.790000] ---[ end trace 546e7de4cb3b1726 ]---
[    0.800000] Kernel panic - not syncing: Attempted to kill init!
exitcode=0x0000000b
[    0.800000]
========================================================================================
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to