I have one of the AsiaRF boards described in this thread: https://forum.openwrt.org/viewtopic.php?id=42471
There is a patch to get it working, but this patch predates device trees. https://dev.openwrt.org/attachment/ticket/13088/Openwrt-rt5350-ayyari.patch When I boot I get a timeout in the Ethernet driver. So I probably have something not quite right in my DTS file. Which of the device tree settings might impact this? /dts-v1/; /include/ "rt5350.dtsi" / { compatible = "AWM002", "ralink,rt5350-soc"; model = "AsiaRF AWM002"; palmbus@10000000 { sysc@0 { ralink,pinmux = "spi", "uartlite", "jtag", "mdio", "sdram", "rgmii"; ralink,gpiomux = "i2c"; ralink,uartmux = "gpio"; ralink,wdtmux = <1>; }; gpio0: gpio@600 { status = "okay"; }; spi@b00 { status = "okay"; m25p80@0 { #address-cells = <1>; #size-cells = <1>; compatible = "mx25l6405d"; reg = <0 0>; linux,modalias = "m25p80", "mx25l6405d"; 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>; }; }; }; }; ethernet@10100000 { status = "okay"; }; esw@10110000 { status = "okay"; ralink,portmap = <0x3f>; }; wmac@10180000 { status = "okay"; }; ehci@101c0000 { status = "okay"; }; ohci@101c1000 { status = "okay"; }; i2c-gpio { compatible = "i2c-gpio"; gpios = <&gpio0 1 0 &gpio0 2 0>; i2c-gpio,delay-us = <10>; }; gpio-leds { compatible = "gpio-leds"; }; }; ======================================================================= Starting kernel ... [ 0.000000] Linux version 3.8.12 (jonsmirl@terra) (gcc version 4.7.2 (OpenWrt GCC 4.7.2 r36687) ) #15 Tue Jun 4 16:50:16 EDT 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 AsiaRF AWM002 [ 0.000000] Determined physical RAM map: [ 0.000000] memory: 01000000 @ 00000000 (usable) [ 0.000000] Initrd not found or empty - disabling initrd [ 0.000000] Zone ranges: [ 0.000000] Normal [mem 0x00000000-0x00ffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x00000000-0x00ffffff] [ 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 off. Total pages: 4064 [ 0.000000] Kernel command line: console=ttyS0,57600 rootfstype=squashfs,jffs2 [ 0.000000] PID hash table entries: 64 (order: -4, 256 bytes) [ 0.000000] Dentry cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000000] Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.000000] __ex_table already sorted, skipping sort [ 0.000000] Writing ErrCtl register=00055c12 [ 0.000000] Readback ErrCtl register=00055c12 [ 0.000000] Memory: 13184k/16384k available (2120k kernel code, 3200k reserved, 513k data, 180k init, 0k highmem) [ 0.000000] SLUB: Genslabs=9, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] NR_IRQS:128 [ 0.000000] CPU Clock: 360MHz [ 0.000000] Calibrating delay loop... 239.61 BogoMIPS (lpj=1198080) [ 0.070000] pid_max: default: 32768 minimum: 301 [ 0.070000] Mount-cache hash table entries: 512 [ 0.080000] NET: Registered protocol family 16 [ 0.130000] bio: create slab <bio-0> at 0 [ 0.130000] rt2880_gpio 10000600.gpio: registering 24 gpios [ 0.140000] Switching to clocksource MIPS [ 0.150000] NET: Registered protocol family 2 [ 0.160000] TCP established hash table entries: 512 (order: 0, 4096 bytes) [ 0.180000] TCP bind hash table entries: 512 (order: -1, 2048 bytes) [ 0.190000] TCP: Hash tables configured (established 512 bind 512) [ 0.200000] TCP: reno registered [ 0.210000] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.220000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.230000] NET: Registered protocol family 1 [ 0.240000] rt-timer 10000100.timer: maximum frequncy is 7324Hz [ 0.290000] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.300000] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.330000] msgmni has been set to 25 [ 0.330000] io scheduler noop registered [ 0.340000] io scheduler deadline registered (default) [ 0.350000] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 0.370000] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20) is a 16550A [ 0.390000] console [ttyS0] enabled, bootconsole disabled [ 0.390000] console [ttyS0] enabled, bootconsole disabled [ 0.420000] m25p80 spi0.0: mx25l6405d (8192 Kbytes) [ 0.430000] 4 ofpart partitions found on MTD device spi0.0 [ 0.440000] Creating 4 MTD partitions on "spi0.0": [ 0.450000] 0x000000000000-0x000000030000 : "u-boot" [ 0.460000] 0x000000030000-0x000000040000 : "u-boot-env" [ 0.470000] 0x000000040000-0x000000050000 : "factory" [ 0.490000] 0x000000050000-0x000000800000 : "firmware" [ 0.500000] found squashfs behind kernel [ 0.510000] Creating 2 MTD partitions on "spi0.0": [ 0.520000] 0x000000050000-0x00000013dfa9 : "kernel" [ 0.530000] mtd: partition "kernel" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only [ 0.560000] 0x00000013dfa9-0x000000800000 : "rootfs" [ 0.570000] mtd: partition "rootfs" must either start or end on erase block boundary or be smaller than an erase block -- forcing read-only [ 0.600000] mtd: partition "rootfs" set to be root filesystem [ 0.610000] mtd: partition "rootfs_data" created automatically, ofs=3A0000, len=460000 [ 0.630000] 0x0000003a0000-0x000000800000 : "rootfs_data" [ 0.640000] rt305x-esw 10110000.esw: link changed 0x02 [ 0.660000] eth0: done loading [ 0.670000] TCP: cubic registered [ 0.670000] NET: Registered protocol family 17 [ 0.680000] 8021q: 802.1Q VLAN Support v1.8 [ 0.710000] VFS: Mounted root (squashfs filesystem) readonly on device 31:5. [ 0.730000] Freeing unused kernel memory: 180k freed [ 6.000000] Button Hotplug driver version 0.4.1 - preinit - [ 6.230000] platform gpio-leds.2: Driver leds-gpio requests probe deferral Press the [f] key and hit [enter] to enter failsafe mode - regular preinit - jffs2 not ready yet; using ramdisk - init - Please press Enter to activate this console. [ 13.190000] compat-drivers backport release: compat-drivers-2013-03-28-5 [ 13.200000] Backport based on wireless-testing.git master-2013-04-16 [ 13.210000] compat.git: wireless-testing.git [ 13.270000] cfg80211: Calling CRDA to update world regulatory domain [ 13.280000] cfg80211: World regulatory domain updated: [ 13.290000] cfg80211: (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp) [ 13.310000] cfg80211: (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 13.320000] cfg80211: (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 13.340000] cfg80211: (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm) [ 13.360000] cfg80211: (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 13.370000] cfg80211: (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm) [ 14.010000] NET: Registered protocol family 10 [ 14.720000] SCSI subsystem initialized [ 14.910000] usbcore: registered new interface driver usbfs [ 14.920000] usbcore: registered new interface driver hub [ 14.930000] usbcore: registered new device driver usb [ 15.900000] rt2800_wmac 10180000.wmac: failed to load eeprom property [ 15.920000] phy0 -> rt2x00lib_request_eeprom_file: Info - Loading EEPROM data from 'soc_wmac.eeprom'. [ 16.220000] phy0 -> rt2x00_set_rt: Info - RT chipset 5350, rev 0500 detected [ 16.240000] phy0 -> rt2x00_set_rf: Info - RF chipset 5350 detected [ 16.260000] platform gpio-leds.2: Driver leds-gpio requests probe deferral [ 20.000000] PPP generic driver version 2.4.2 [ 20.680000] ip_tables: (C) 2000-2006 Netfilter Core Team [ 20.880000] xt_time: kernel timezone is -0000 [ 20.950000] NET: Registered protocol family 24 [ 21.220000] nf_conntrack version 0.5.0 (208 buckets, 832 max) [ 21.850000] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 22.420000] dwc_otg: version 2.72a 24-JUN-2008 [ 22.620000] Initializing USB Mass Storage driver... [ 22.630000] usbcore: registered new interface driver usb-storage [ 22.640000] USB Mass Storage support registered. [ 34.200000] device eth0.1 entered promiscuous mode [ 34.210000] device eth0 entered promiscuous mode [ 34.230000] br-lan: port 1(eth0.1) entered forwarding state [ 34.240000] br-lan: port 1(eth0.1) entered forwarding state [ 35.200000] IPv6: ADDRCONF(NETDEV_CHANGE): eth0.1: link becomes ready [ 36.040000] ------------[ cut here ]------------ [ 36.040000] WARNING: at net/sched/sch_generic.c:254 dev_watchdog+0x16c/0x290() [ 36.060000] NETDEV WATCHDOG: eth0 (): transmit queue 0 timed out [ 36.070000] Modules linked in: hid usb_storage evdev dwc_otg ledtrig_usbdev ip6t_REJECT ip6t_rt ip6t_hbh ip6t_mh ip6t_ipv6header ip6t_frag ip6t_eui64 ip6t_ah ip6table_raw ip6table_mangle ip6table_filter ip6_tables nf_conntrack_ipv6 nf_defrag_ipv6 nf_nat_irc nf_nat_ftp nf_conntrack_irc nf_conntrack_ftp xt_REDIRECT ipt_MASQUERADE iptable_nat xt_nat nf_nat_ipv4 nf_nat pppoe xt_conntrack xt_CT iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack sd_mod pppox xt_mark xt_time ipt_REJECT xt_TCPMSS xt_LOG xt_comment xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables ppp_async ppp_generic slhc ext4 jbd2 mbcache rt2800pci(O) rt2800lib(O) rt2x00soc(O) rt2x00pci(O) rt2x00mmio(O) rt2x00lib(O) mac80211(O) usbcore usb_common scsi_mod nls_base crc16 crc_itu_t crc_ccitt ipv6 eeprom_93cx6 cfg80211(O) compat(O) arc4 crypto_blkcipher aead crypto_hash leds_gpio button_hotplug(O) gpio_keys_polled input_polldev input_core [ 36.240000] Call Trace: [ 36.240000] [<8001051c>] dump_stack+0x8/0x34 [ 36.250000] [<80019728>] warn_slowpath_common+0x78/0xa4 [ 36.260000] [<800197dc>] warn_slowpath_fmt+0x2c/0x38 [ 36.270000] [<801a2b0c>] dev_watchdog+0x16c/0x290 [ 36.280000] [<80025024>] call_timer_fn.isra.37+0x24/0x80 [ 36.290000] [<800251f4>] run_timer_softirq+0x174/0x1d0 [ 36.300000] [<800204a0>] __do_softirq+0xb0/0x188 [ 36.310000] [<80020618>] do_softirq+0x48/0x68 [ 36.320000] [<8002084c>] irq_exit+0x4c/0x84 [ 36.330000] [<80004830>] ret_from_irq+0x0/0x4 [ 36.340000] [<80128c68>] lzma_main+0x99c/0xbb4 [ 36.350000] [<801293e4>] xz_dec_lzma2_run+0x564/0x864 [ 36.360000] [<801279e4>] xz_dec_run+0x310/0x8dc [ 36.370000] [<800da9f8>] squashfs_xz_uncompress+0x15c/0x260 [ 36.380000] [<800d71b0>] squashfs_read_data+0x4e4/0x694 [ 36.390000] [<800d7530>] squashfs_cache_get+0x1d0/0x34c [ 36.400000] [<800d8a38>] squashfs_readpage+0x56c/0x848 [ 36.410000] [<8005ff58>] __do_page_cache_readahead+0x1d0/0x24c [ 36.420000] [<800602ec>] ra_submit+0x28/0x34 [ 36.430000] [<80058b64>] filemap_fault+0x19c/0x3f4 [ 36.440000] [<8006f564>] __do_fault+0xd0/0x4f4 [ 36.450000] [<80072cec>] handle_pte_fault+0x450/0x944 [ 36.460000] [<80073280>] handle_mm_fault+0xa0/0xe0 [ 36.470000] [<80013c00>] do_page_fault+0x154/0x398 [ 36.480000] [<80004820>] ret_from_exception+0x0/0x10 [ 36.490000] [ 36.490000] ---[ end trace 1ac1b239b2135e9c ]--- [ 36.500000] br-lan: port 1(eth0.1) entered forwarding state [ 37.840000] ralink-wdt: timeout value 60 must be 0 < timeout <= 35, using 30 [ 132.950000] jffs2_scan_eraseblock(): End of filesystem marker found at 0x0 [ 132.960000] jffs2_build_filesystem(): unlocking the mtd device... done. [ 132.980000] jffs2_build_filesystem(): erasing all blocks after the end marker... done. [ 176.820000] jffs2: notice: (1124) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found. -- Jon Smirl jonsm...@gmail.com _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel