ar71xx / ath79 with devicetree

This is just a notepad / scratchpad for the code placed in
https://github.com/p-wassi/lede-source/tree/ath79_devicetree

Currently just for AR9331 SoCs!

Setup

LEDE r2461 + devicetree stuff

These are the logs which come from the serial console:

TP-Link MR3020

Bootlog:
[    0.000000] Linux version 4.4.36 (lede@debian-compiler) (gcc version 5.4.0 (LEDE GCC 5.4.0 r2455-6f7d8cb) ) #0 Thu Dec 8 22:39:18 2016
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] MIPS: machine is TP-LINK TL-MR3020
[    0.000000] SoC: Atheros AR9330 rev 1
[    0.000000] Determined 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 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] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: machtype=DTB console=ttyATH0,115200 rootfstype=squashfs,jffs2 noinitrd
[    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=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 27224K/32768K available (2869K kernel code, 123K rwdata, 372K rodata, 1236K init, 191K bss, 5544K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] IRQ: Set flush channel of IRQ2 to 3
[    0.000000] IRQ: Set flush channel of IRQ3 to 2
[    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000013] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.007875] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.089128] pid_max: default: 32768 minimum: 301
[    0.093925] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.100371] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.112888] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.122230] NET: Registered protocol family 16
[    0.146017] clocksource: Switched to clocksource MIPS
[    0.151015] NET: Registered protocol family 2
[    0.155211] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.161005] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.167336] TCP: Hash tables configured (established 1024 bind 1024)
[    0.173778] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.179521] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.186085] NET: Registered protocol family 1
[    0.225958] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.230761] Crashlog allocated RAM at address 0x1f00000
[    0.255491] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.259946] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.273059] io scheduler noop registered
[    0.275532] io scheduler deadline registered (default)
[    0.280947] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.287785] 18020000.uart: ttyATH0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a AR933X UART
[    0.296819] console [ttyATH0] enabled
[    0.296819] console [ttyATH0] enabled
[    0.303608] bootconsole [early0] disabled
[    0.303608] bootconsole [early0] disabled
[    0.315222] m25p80 spi32766.0: found s25sl032p, expected en25q32b
[    0.319967] m25p80 spi32766.0: s25sl032p (4096 Kbytes)
[    0.326509] 5 tp-link partitions found on MTD device spi32766.0
[    0.330971] Creating 5 MTD partitions on "spi32766.0":
[    0.336151] 0x000000000000-0x000000020000 : "u-boot"
[    0.343032] 0x000000020000-0x00000013acf8 : "kernel"
[    0.348864] 0x00000013acf8-0x0000003f0000 : "rootfs"
[    0.354506] mtd: device 2 (rootfs) set to be root filesystem
[    0.358844] 1 squashfs-split partitions found on MTD device rootfs
[    0.364891] 0x000000320000-0x0000003f0000 : "rootfs_data"
[    0.372534] 0x0000003f0000-0x000000400000 : "art"
[    0.378125] 0x000000020000-0x0000003f0000 : "firmware"
[    0.400774] libphy: ag71xx_mdio: probed
[    0.405946] NET: Registered protocol family 10
[    0.413761] NET: Registered protocol family 17
[    0.416941] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    0.429586] 8021q: 802.1Q VLAN Support v1.8
[    1.237728] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
[    1.246798] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    1.271653] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    1.286768] Freeing unused kernel memory: 1236K (803ab000 - 804e0000)
[    2.714192] init: Console is alive
[    4.033432] usbcore: registered new interface driver usbfs
[    4.037662] usbcore: registered new interface driver hub
[    4.042880] usbcore: registered new device driver usb
[    4.054640] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.061658] ehci-platform: EHCI generic platform driver
[    4.065631] ehci-platform ehci-platform: EHCI Host Controller
[    4.071293] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1
[    4.081223] ehci-platform ehci-platform: irq 3, io mem 0x1b000000
[    4.096068] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00
[    4.102150] hub 1-0:1.0: USB hub found
[    4.105027] hub 1-0:1.0: 1 port detected
[    4.111461] init: - preinit -
[    4.953869] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    4.985786] random: procd: uninitialized urandom read (4 bytes read, 8 bits of entropy available)
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    7.357501] eth0: link up (100Mbps/Full duplex)
[    7.360622] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    8.195467] jffs2: notice: (364) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[    8.211458] mount_root: switching to jffs2 overlay
[    8.226807] urandom-seed: Seeding with /etc/urandom.seed
[    8.504059] eth0: link down
[    8.521049] procd: - early -
[    9.182162] procd: - ubus -
[    9.234485] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[    9.242669] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[    9.251164] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[    9.260485] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[    9.269003] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[    9.279055] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[    9.287117] random: ubusd: uninitialized urandom read (4 bytes read, 15 bits of entropy available)
[    9.296251] procd: - init -
Please press Enter to activate this console.
[    9.721848] ip6_tables: (C) 2000-2006 Netfilter Core Team
[    9.743826] Loading modules backported from Linux version wt-2016-10-03-1-g6fcb1a6
[    9.750034] Backport generated by backports.git backports-20160324-9-g0e38f5c
[    9.761013] ip_tables: (C) 2000-2006 Netfilter Core Team
[    9.777350] nf_conntrack version 0.5.0 (444 buckets, 1776 max)
[    9.827398] xt_time: kernel timezone is -0000
[    9.905445] PPP generic driver version 2.4.2
[    9.911626] NET: Registered protocol family 24
[    9.993923] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[   11.592018] random: jshn: uninitialized urandom read (4 bytes read, 19 bits of entropy available)
[   11.714647] random: ubusd: uninitialized urandom read (4 bytes read, 19 bits of entropy available)
[   20.971102] device eth0 entered promiscuous mode
[   20.987615] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   23.887664] eth0: link up (100Mbps/Full duplex)
[   23.890809] br-lan: port 1(eth0) entered forwarding state
[   23.896250] br-lan: port 1(eth0) entered forwarding state
[   23.916322] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   25.896031] br-lan: port 1(eth0) entered forwarding state

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

     _________
    /        /\      _    ___ ___  ___
   /  LE    /  \    | |  | __|   \| __|
  /    DE  /    \   | |__| _|| |) | _|
 /________/  LE  \  |____|___|___/|___|                      lede-project.org
 \        \   DE /
  \    LE  \    /  -----------------------------------------------------------
   \  DE    \  /    Reboot (CURRENT, r2461-69ba44e)
    \________\/    -----------------------------------------------------------

=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@lede:/# ll /proc/device-tree/
-r--r--r--    1 root     root             4 Dec  8 23:56 #address-cells
-r--r--r--    1 root     root             4 Dec  8 23:56 #size-cells
drwxr-xr-x   16 root     root             0 Jan  1  1970 ./
drwxr-xr-x    3 root     root             0 Jan  1  1970 ../
drwxr-xr-x    3 root     root             0 Dec  8 23:56 ahb/
drwxr-xr-x    2 root     root             0 Dec  8 23:56 aliases/
drwxr-xr-x    2 root     root             0 Dec  8 23:56 chosen/
-r--r--r--    1 root     root            17 Dec  8 23:56 compatible
drwxr-xr-x    3 root     root             0 Dec  8 23:56 cpus/
drwxr-xr-x    2 root     root             0 Dec  8 23:56 ethernet@19000000/
drwxr-xr-x    2 root     root             0 Dec  8 23:56 ethernet@1a000000/
drwxr-xr-x    5 root     root             0 Dec  8 23:56 gpio-keys-polled/
drwxr-xr-x    2 root     root             0 Dec  8 23:56 interrupt-controller/
drwxr-xr-x    6 root     root             0 Dec  8 23:56 leds/
drwxr-xr-x    2 root     root             0 Dec  8 23:56 mdio-bus@1a000000/
drwxr-xr-x    2 root     root             0 Dec  8 23:56 memory@0/
-r--r--r--    1 root     root            18 Jan  1  1970 model
-r--r--r--    1 root     root             1 Dec  8 23:56 name
drwxr-xr-x    2 root     root             0 Dec  8 23:56 ref/
drwxr-xr-x    2 root     root             0 Dec  8 23:56 wdt@18060008/
drwxr-xr-x    2 root     root             0 Dec  8 23:56 wmac@1a000000/

root@lede:/# cat /proc/cpuinfo
system type		: Atheros AR9330 rev 1
machine			: TP-LINK TL-MR3020
processor		: 0
cpu model		: MIPS 24Kc V7.4
BogoMIPS		: 265.42
wait instruction	: yes
microsecond timers	: yes
tlb_entries		: 16
extra interrupt vector	: yes
hardware watchpoint	: yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa			: mips1 mips2 mips32r1 mips32r2
ASEs implemented	: mips16
shadow register sets	: 1
kscratch registers	: 0
package			: 0
core			: 0
VCED exceptions		: not available
VCEI exceptions		: not available

root@lede:/# . /lib/ar71xx.sh
root@lede:/# ar71xx_board_name
tl-mr3020
root@lede:/# 


TP-Link WR740N-v4

Bootlog:
[    0.000000] Linux version 4.4.36 (lede@debian-compiler) (gcc version 5.4.0 (LEDE GCC 5.4.0 r2455-6f7d8cb) ) #0 Thu Dec 8 22:39:18 2016
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] MIPS: machine is TP-Link TL-WR741ND v4
[    0.000000] SoC: Atheros AR9330 rev 1
[    0.000000] Determined 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 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] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[    0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
[    0.000000] Kernel command line: machtype=DTB console=ttyATH0,115200 rootfstype=squashfs,jffs2 noinitrd
[    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=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 27220K/32768K available (2869K kernel code, 123K rwdata, 372K rodata, 1236K init, 191K bss, 5548K reserved, 0K cma-reserved)
[    0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[    0.000000] NR_IRQS:51
[    0.000000] IRQ: Set flush channel of IRQ2 to 3
[    0.000000] IRQ: Set flush channel of IRQ3 to 2
[    0.000000] Clocks: CPU:400.000MHz, DDR:400.000MHz, AHB:200.000MHz, Ref:25.000MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    0.000013] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    0.007874] Calibrating delay loop... 265.42 BogoMIPS (lpj=1327104)
[    0.089128] pid_max: default: 32768 minimum: 301
[    0.093923] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.100371] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.113037] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.122371] NET: Registered protocol family 16
[    0.146171] clocksource: Switched to clocksource MIPS
[    0.151176] NET: Registered protocol family 2
[    0.155372] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.161162] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.167492] TCP: Hash tables configured (established 1024 bind 1024)
[    0.173936] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.179676] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.186240] NET: Registered protocol family 1
[    0.195995] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.200811] Crashlog allocated RAM at address 0x1f00000
[    0.225475] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.229933] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.243061] io scheduler noop registered
[    0.245527] io scheduler deadline registered (default)
[    0.250937] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.257787] 18020000.uart: ttyATH0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a AR933X UART
[    0.266812] console [ttyATH0] enabled
[    0.266812] console [ttyATH0] enabled
[    0.273601] bootconsole [early0] disabled
[    0.273601] bootconsole [early0] disabled
[    0.285191] m25p80 spi32766.0: en25q32b (4096 Kbytes)
[    0.290331] 5 tp-link partitions found on MTD device spi32766.0
[    0.294794] Creating 5 MTD partitions on "spi32766.0":
[    0.299988] 0x000000000000-0x000000020000 : "u-boot"
[    0.306924] 0x000000020000-0x00000013ad14 : "kernel"
[    0.312628] 0x00000013ad14-0x0000003f0000 : "rootfs"
[    0.318407] mtd: device 2 (rootfs) set to be root filesystem
[    0.322662] 1 squashfs-split partitions found on MTD device rootfs
[    0.328869] 0x000000320000-0x0000003f0000 : "rootfs_data"
[    0.336460] 0x0000003f0000-0x000000400000 : "art"
[    0.341967] 0x000000020000-0x0000003f0000 : "firmware"
[    0.364739] libphy: ag71xx_mdio: probed
[    0.370630] NET: Registered protocol family 10
[    0.379025] NET: Registered protocol family 17
[    0.382112] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this.
[    0.394889] 8021q: 802.1Q VLAN Support v1.8
[    1.207655] ag71xx-mdio.1: Found an AR7240/AR9330 built-in switch
[    1.240053] eth0: Atheros AG71xx at 0xba000000, irq 5, mode:GMII
[    2.047876] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd041, driver=Generic PHY]
[    2.056959] eth1: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    2.081727] VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
[    2.096832] Freeing unused kernel memory: 1236K (803ab000 - 804e0000)
[    3.523939] init: Console is alive
[    4.841854] usbcore: registered new interface driver usbfs
[    4.846003] usbcore: registered new interface driver hub
[    4.851401] usbcore: registered new device driver usb
[    4.863381] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    4.870401] ehci-platform: EHCI generic platform driver
[    4.879207] init: - preinit -
[    5.579764] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[    5.612176] random: procd: uninitialized urandom read (4 bytes read, 9 bits of entropy available)
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[    7.177362] eth0: link up (1000Mbps/Full duplex)
[    7.180563] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[    8.826881] jffs2: notice: (353) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
[    8.842831] mount_root: switching to jffs2 overlay
[    8.855082] urandom-seed: Seeding with /etc/urandom.seed
[    9.132797] eth0: link down
[    9.149693] procd: - early -
[    9.714550] procd: - ubus -
[    9.767026] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[    9.775138] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[    9.783639] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[    9.793076] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[    9.801511] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[    9.811178] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[    9.819602] random: ubusd: uninitialized urandom read (4 bytes read, 16 bits of entropy available)
[    9.828842] procd: - init -
Please press Enter to activate this console.
[   10.353187] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   10.375159] Loading modules backported from Linux version wt-2016-10-03-1-g6fcb1a6
[   10.381352] Backport generated by backports.git backports-20160324-9-g0e38f5c
[   10.392363] ip_tables: (C) 2000-2006 Netfilter Core Team
[   10.408657] nf_conntrack version 0.5.0 (444 buckets, 1776 max)
[   10.458477] xt_time: kernel timezone is -0000
[   10.536063] PPP generic driver version 2.4.2
[   10.542250] NET: Registered protocol family 24
[   10.624092] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[   12.023780] random: jshn: uninitialized urandom read (4 bytes read, 20 bits of entropy available)
[   12.146413] random: ubusd: uninitialized urandom read (4 bytes read, 20 bits of entropy available)
[   21.771383] device eth0 entered promiscuous mode
[   21.789149] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   21.880718] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready
[   23.367368] eth0: link up (1000Mbps/Full duplex)
[   23.370598] br-lan: port 1(eth0) entered forwarding state
[   23.375993] br-lan: port 1(eth0) entered forwarding state
[   23.426303] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
[   25.366185] br-lan: port 1(eth0) entered forwarding state
BusyBox v1.25.1 () built-in shell (ash)

     _________
    /        /\      _    ___ ___  ___
   /  LE    /  \    | |  | __|   \| __|
  /    DE  /    \   | |__| _|| |) | _|
 /________/  LE  \  |____|___|___/|___|                      lede-project.org
 \        \   DE /
  \    LE  \    /  -----------------------------------------------------------
   \  DE    \  /    Reboot (CURRENT, r2461-69ba44e)
    \________\/    -----------------------------------------------------------

=== WARNING! =====================================
There is no root password defined on this device!
Use the "passwd" command to set up a new password
in order to prevent unauthorized SSH logins.
--------------------------------------------------
root@lede:/# ll /proc/device-tree/
-r--r--r--    1 root     root             4 Dec  8 23:56 #address-cells
-r--r--r--    1 root     root             4 Dec  8 23:56 #size-cells
drwxr-xr-x   16 root     root             0 Jan  1  1970 ./
drwxr-xr-x    3 root     root             0 Jan  1  1970 ../
drwxr-xr-x    3 root     root             0 Dec  8 23:56 ahb/
drwxr-xr-x    2 root     root             0 Dec  8 23:56 aliases/
drwxr-xr-x    2 root     root             0 Dec  8 23:56 chosen/
-r--r--r--    1 root     root            17 Dec  8 23:56 compatible
drwxr-xr-x    3 root     root             0 Dec  8 23:56 cpus/
drwxr-xr-x    2 root     root             0 Dec  8 23:56 ethernet@19000000/
drwxr-xr-x    2 root     root             0 Dec  8 23:56 ethernet@1a000000/
drwxr-xr-x    4 root     root             0 Dec  8 23:56 gpio-keys-polled/
drwxr-xr-x    2 root     root             0 Dec  8 23:56 interrupt-controller/
drwxr-xr-x   10 root     root             0 Dec  8 23:56 leds/
drwxr-xr-x    2 root     root             0 Dec  8 23:56 mdio-bus@1a000000/
drwxr-xr-x    2 root     root             0 Dec  8 23:56 memory@0/
-r--r--r--    1 root     root            22 Jan  1  1970 model
-r--r--r--    1 root     root             1 Dec  8 23:56 name
drwxr-xr-x    2 root     root             0 Dec  8 23:56 ref/
drwxr-xr-x    2 root     root             0 Dec  8 23:56 wdt@18060008/
drwxr-xr-x    2 root     root             0 Dec  8 23:56 wmac@1a000000/
root@lede:/# cat /proc/cpuinfo
system type		: Atheros AR9330 rev 1
machine			: TP-Link TL-WR741ND v4
processor		: 0
cpu model		: MIPS 24Kc V7.4
BogoMIPS		: 265.42
wait instruction	: yes
microsecond timers	: yes
tlb_entries		: 16
extra interrupt vector	: yes
hardware watchpoint	: yes, count: 4, address/irw mask: [0x0ffc, 0x0ffc, 0x0ffb, 0x0ffb]
isa			: mips1 mips2 mips32r1 mips32r2
ASEs implemented	: mips16
shadow register sets	: 1
kscratch registers	: 0
package			: 0
core			: 0
VCED exceptions		: not available
VCEI exceptions		: not available

root@lede:/# . /lib/ar71xx.sh
root@lede:/# ar71xx_board_name
tl-wr741nd-v4
root@lede:/#