User Tools

Site Tools


toh:gl.inet:gl.inet_gl-ar300m-lite

GL.iNet GL-AR300M-Lite

Under Construction!
This page is currently under construction. You can edit the article to help completing it.

Inexpensive (~US$20 or less), tiny, single-band travel router, ~57 x 57 x 25 mm (~2 1/4“ x 2 1/4” x 1“), 36 g.

This is a cost-reduced version of the GL-AR300M and does not include the second Ethernet or NAND memory of that model.

Vendor ships OpenWrt installed (17.01.4 for unit delivered in December, 2018) with overlay UI and extensive travel-router feature set. LuCI interface available under Advanced Settings.

Device supported by OEM OpenWrt builds, as well as ath79 GL-AR300M-Lite builds from master.

Only the ath79 GL-AR300M-Lite build is configured to come up with the Ethernet port as “LAN”.

Use of an OpenWrt build for the similar GL-AR300M (no -Lite) will likely result in loss of connectivity if settings are reset.

Supported Versions

Use of the ath79 GL-AR300M-Lite build is the preferred build for this device.

The OpenWrt ath79 (master) and ar71xx (18.06.1 or master) images for the GL-AR-300M will run on the device, but will not provide IPv4 connectivity in failsafe or first-boot configurations.

Hardware Highlights

ModelVersionSoCCPU MHzFlash MBRAM MBWLAN HardwareWLAN2.4WLAN5.0100M portsGbit portsModemUSB
GL-AR300M-Litev1Qualcomm Atheros QCA953165016128Qualcomm Atheros QCA9531b/g/n-1--1x 2.0

Installation

Install OpenWrt (generic explanation)

The easiest method for installing or upgrading OpenWrt is with your choice of the OpenWrt LuCI interface (available through the “Advanced Settings” of the OEM firmware), or through command-line use of sysupgrade.

It is also possible to flash the device using uboot and its graphical interface or command-line access through serial. Most users should not need to access the internals of the device for flashing or recovery, assuming that the uboot has not been overwritten.

Flash Layout

FIXME Find out flash layout, then add the flash layout table here (copy, paste, modify the example).

Please check out the article Flash layout. It contains examples and explanations that describe how to document the flash layout.

root@OpenWrt:~# cat /proc/mtd
dev:    size   erasesize  name
mtd0: 00040000 00010000 "u-boot"
mtd1: 00010000 00010000 "u-boot-env"
mtd2: 00fa0000 00010000 "firmware"
mtd3: 00190000 00010000 "kernel"
mtd4: 00e10000 00010000 "rootfs"
mtd5: 00610000 00010000 "rootfs_data"
mtd6: 00010000 00010000 "art"

As with any device that has valuable information in the “art” partition, taking a backup of each device and labeling it with the device's serial number is highly recommended.

There is a single MAC address present at offset 0x0 as well as repeated at 0x1002 on the device examined. There are ff bytes following that at the 0x6 offset indicated in the DTS for the second MAC. There are zeros following at 0x1008. An AR300M (two-Ethernet device) art partition did not appear to have a second MAC "burned into" the art.

OEM easy installation

These devices ship with current OpenWrt, including LuCI and can be configured and flashed by accessing the familiar LuCI interface via the OEM GUI's “Advanced Settings”.

As the current (December, 2018) OpenWrt-supplied AR-300M images are intended for the AR-300M units with two Ethernet interfaces, connectivity must be established prior to flashing “vanilla” OpenWrt and settings preserved through the flashing process.

If connectivity is not established prior to flashing, or is lost in the process, it may be possible to connect to the device using IPv6 and ssh to the WAN port. Use of the IPv6 neighbor table (ip neigh, ndp -a, or the like) can be used to reveal the link-local address.

OEM installation using the TFTP method

Specific values needed for tftp

FIXME Enter values for “FILL-IN” below

Bootloader tftp server IPv4 address FILL-IN
Bootloader MAC address (special) FILL-IN
Firmware tftp image Latest OpenWrt release (NOTE: Name must contain “tftp”)
TFTP transfer window FILL-IN seconds
TFTP window start approximately FILL-IN seconds after power on
TFTP client required IP address FILL-IN

Upgrading OpenWrt

generic.sysupgrade

FIXME These are still somewhat generic instructions.

LuCI Web Upgrade Process

  • Browse to the LuCI “Backup / Flash Firmware” screen, also titled “Flash operations”
  • Highly suggested to make a backup of your config with the “Generate archive” feature first
  • In the “Flash new firmware image” section, choose image file
  • Ensure that “Keep settings” is set at this time and “Flash image…”
  • Wait for reboot

Terminal Upgrade Process

If you don't have a GUI (LuCI) available or prefer command-line operation, you can alternatively upgrade via the sysupgrade command.

It is important that you put the firmware image into the ramdisk (/tmp/) before you start flashing. Get the image onto the /tmp/ file system by either

  • Use of scp or similar to copy a previously downloaded or built image to the router
 scp blah-blah-blah.img root@192.168.1.1:/tmp/
  • Use of wget from a known and trusted web server, such as:
cd /tmp
wget http://downloads.openwrt.org/snapshots/trunk/XXX/blah-blah-blah.img

Login as root via SSH on 192.168.1.1 (or otherwise configured address), backup your config as you see fit and run

sysupgrade /tmp/blah-blah-blah.img

Debricking

generic.debrick

Device ships with HTTP-based uboot recovery

To initiate the uboot recovery process

  1. While holding down the Reset button, apply power to the unit and continue to hold down the Reset button
  2. The lights will flash immediately at power on
  3. Third LED, counting the red as the first will flash approximately once per second
  4. On the fifth flash of that LED, release the Reset button

The uboot GUI should be available at http://192.168.1.1/
(manual configuration of 192.168.1.2/24 recommended for host)

See further:

Failsafe mode

failsafe_and_factory_reset

Failsafe mode or reset of configuration with the OpenWrt AR-300M image will result on loss of IPv4 connectivity

As of December, 2018, the AR-300M OpenWrt image does not provide connectivity by default for the single-Ethernet AR300M-Lite.

Basic configuration

Basic configuration After flashing, proceed with this.
Set up your Internet connection, configure wireless, configure USB port, etc.

Specific Configuration

Network interfaces

The default network configuration is:

Interface Name Description Default configuration
br-lan WiFi 192.168.1.1/24
wlan0 WiFi (Disabled)
eth0 WAN DHCP

Note that eth0 is the populated Ethernet connector, labeled “WAN” on the device. There is no socket for eth1, though it may appear in logs and enumeration of devices.

Switch Ports (for VLANs)

There is a single port on the device, connected to eth0

Though reported as the kernel loads, the switch does not appear to specially configured

mdio-bus.0:1f: Found an AR934X built-in switch

Buttons

hardware.button on howto use and configure the hardware button(s). Here, we merely name the buttons, so we can use them in the above Howto.

The GL.iNet GL-AR300M-Lite has the following buttons (polled GPIO):

BUTTON Event
Reset KEY_RESTART
Switch to Right BTN_0
Switch to Left BTN_1

TBD: If BTN_0 and BTN_1 both are activated, or if the case limits activation of only one of the two.

Additional detail may be found in the DTS files, presently at ./target/linux/ath79/dts/qca9531_glinet_ar300m* (December, 2018)

Hardware

Info

General
Brand GL.iNet
Model GL-AR300M-Lite
Versions v1
Device Type Travel Router
Availability Available 2019
Comments - general USB power can not be controlled via GPIO, see OEM website.
OpenWrt Support
Supported Since Revision
Supported Since Release
Supported Current Release snapshot
Unsupported
Hardware
Instruction set
Sub Instruction Set
Bootloader U-Boot
Target ath79
System-On-Chip
CPU MHz 650
Flash MB 16
RAM MB 128
Network
Ethernet 100M ports 1
Ethernet Gbit ports -
Switch Qualcomm Atheros QCA9531
Modem -
VLAN Yes
Comments - network ports
Wireless
WLAN 2.4GHz b/g/n
WLAN 5.0GHz -
WLAN Hardware Qualcomm Atheros QCA9531
Detachable Antennas -
Comments - WLAN 2x2
Interfaces
USB ports 1x 2.0
SATA ports -
Serial Yes
JTAG No
Comments - USB & SATA ports
Misc
LED count 3
Button count 2
Power supply 5 VDC, 1.0 A (µUSB)
Links
Forum Topic URL
WikiDevi URL https://wikidevi.com/wiki/GL.iNet_GL-AR300M
OEM device homepage URL https://docs.gl-inet.com/en/3/hardware/ar300m/
Firmware OEM Stock URL https://dl.gl-inet.com/firmware/ar300m/v1/
Firmware OpenWrt Install URL
Firmware OpenWrt Upgrade URL
Edit the underlying data View/Edit data

Photos

Front:
Insert photo of front of the casing

Back:
Insert photo of back of the casing

Backside label:
Insert photo of backside label

Opening the case

Note: This will void your warranty!

The bottom of the unit pries off easily with a small screwdriver. Once started, it can be lifted gently away from the top of the case. The PCB can be tilted and removed from the case without tools or force of any kind.

Main PCB

Annotated Connections of Populated GL-AR300M Board

Originally from https://docs.gl-inet.com/en/2/hardware/ar300m/

Serial

port.serial general information about the serial port, serial port cable, etc.

How to connect to the Serial Port of this specific device:

There is an unpopulated location for a three-pin serial-port header, 0.1” pitch, providing RX, TX, and ground.

The location of the lands for the header permit the use of Ez-Hook or similar leads without soldering.

Serial connection parameters 115,200, 8N1

JTAG

port.jtag general information about the JTAG port, JTAG cable, etc.

How to connect to the JTAG Port of this specific device:
Insert photo of PCB with markings for JTAG port

Bootloader mods

Hardware mods

None confirmed so far.

There is an unpopulated location for a four-pin I2C connection, 0.1“ pitch.

The switch feels to have three positions, though only two can be operated with the slider in the outer case.

The second Ethernet connector is unpopulated. The existing connector is approximately 0.607” wide, 0.807“ deep, and 0.503” high. There is blanking in the upper cover corresponding to this location that potentially could be removed along the molded-in grooves to allow a second Ethernet connector to be added, or a dual-socket connector to replace the existing single connector.

The (proprietary?) PCIe connector, shown in the AR300M annotated board illustration, is unpopulated.

Two connectors at the feed points of the antennas are test points, not connectors, per se.

Bootlogs

OEM bootlog

OEM firmware; logread (not serial) output at this time

kern.notice kernel: [ 0.000000] Linux version 4.4.92 (kyson@gl-inet) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3560-79f57e422d) ) #0 Tue Oct 17 17:46:20 2017 kern.debug kernel: [ 0.000000] MyLoader: sysp=cf83a73c, boardp=7f95dca6, parts=a97963ef kern.info kernel: [ 0.000000] bootconsole [early0] enabled kern.info kernel: [ 0.000000] CPU0 revision is: 00019374 (MIPS 24Kc) kern.info kernel: [ 0.000000] SoC: Qualcomm Atheros QCA9533 ver 2 rev 0 kern.info kernel: [ 0.000000] Determined physical RAM map: kern.info kernel: [ 0.000000] memory: 08000000 @ 00000000 (usable) kern.info kernel: [ 0.000000] Initrd not found or empty - disabling initrd kern.warn kernel: [ 0.000000] No valid device tree found, continuing without kern.info kernel: [ 0.000000] Zone ranges: kern.info kernel: [ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff] kern.info kernel: [ 0.000000] Movable zone start for each node kern.info kernel: [ 0.000000] Early memory node ranges kern.info kernel: [ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff] kern.info kernel: [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff] kern.debug kernel: [ 0.000000] On node 0 totalpages: 32768 kern.debug kernel: [ 0.000000] free_area_init_node: node 0, pgdat 804444d0, node_mem_map 81000000 kern.debug kernel: [ 0.000000] Normal zone: 256 pages used for memmap kern.debug kernel: [ 0.000000] Normal zone: 0 pages reserved kern.debug kernel: [ 0.000000] Normal zone: 32768 pages, LIFO batch:7 kern.warn kernel: [ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes. kern.warn kernel: [ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes kern.debug kernel: [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 kern.debug kernel: [ 0.000000] pcpu-alloc: [0] 0 kern.info kernel: [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512 kern.notice kernel: [ 0.000000] Kernel command line: board=GL-AR300M mtdparts=spi0.0:256k(u-boot)ro,64k(u-boot-env),16000k(firmware),64k(art)ro console=ttyS0,115200 rootfstype=squashfs,jffs2 noinitrd kern.info kernel: [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) kern.info kernel: [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) kern.info kernel: [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) kern.info kernel: [ 0.000000] Writing ErrCtl register=00000000 kern.info kernel: [ 0.000000] Readback ErrCtl register=00000000 kern.info kernel: [ 0.000000] Memory: 124816K/131072K available (3160K kernel code, 188K rwdata, 788K rodata, 336K init, 205K bss, 6256K reserved, 0K cma-reserved) kern.info kernel: [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 kern.info kernel: [ 0.000000] NR_IRQS:51 kern.info kernel: [ 0.000000] Clocks: CPU:650.000MHz, DDR:597.143MHz, AHB:216.666MHz, Ref:25.000MHz kern.info kernel: [ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5880801374 ns kern.info kernel: [ 0.000008] sched_clock: 32 bits at 325MHz, resolution 3ns, wraps every 6607641598ns kern.info kernel: [ 0.008220] Calibrating delay loop... 432.53 BogoMIPS (lpj=2162688) kern.info kernel: [ 0.071089] pid_max: default: 32768 minimum: 301 kern.info kernel: [ 0.076078] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) kern.info kernel: [ 0.083060] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) kern.info kernel: [ 0.093003] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns kern.info kernel: [ 0.103427] futex hash table entries: 256 (order: -1, 3072 bytes) kern.info kernel: [ 0.111117] NET: Registered protocol family 16 kern.info kernel: [ 0.117201] MIPS: machine is GL-AR300M kern.debug kernel: [ 0.336119] ar71xx: using random MAC address for eth1 kern.warn kernel: [ 0.562253] ar724x-pci ar724x-pci.0: PCIe link is down kern.warn kernel: [ 0.567713] registering PCI controller with io_map_base unset kern.info kernel: [ 0.582880] PCI host bridge to bus 0000:00 kern.info kernel: [ 0.587210] pci_bus 0000:00: root bus resource [mem 0x10000000-0x11ffffff] kern.info kernel: [ 0.594505] pci_bus 0000:00: root bus resource [io 0x0000] kern.info kernel: [ 0.600372] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0] kern.info kernel: [ 0.607536] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff] kern.debug kernel: [ 0.615903] pci_bus 0000:00: busn_res: [bus 00-ff] end is updated to 00 kern.info kernel: [ 0.616805] clocksource: Switched to clocksource MIPS kern.info kernel: [ 0.623427] NET: Registered protocol family 2 kern.info kernel: [ 0.628939] TCP established hash table entries: 1024 (order: 0, 4096 bytes) kern.info kernel: [ 0.636297] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) kern.info kernel: [ 0.643059] TCP: Hash tables configured (established 1024 bind 1024) kern.info kernel: [ 0.649861] UDP hash table entries: 256 (order: 0, 4096 bytes) kern.info kernel: [ 0.656026] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) kern.info kernel: [ 0.662930] NET: Registered protocol family 1 kern.debug kernel: [ 0.667617] PCI: CLS 0 bytes, default 32 kern.warn kernel: [ 0.671958] Crashlog allocated RAM at address 0x3f00000 kern.info kernel: [ 0.691667] squashfs: version 4.0 (2009/01/31) Phillip Lougher kern.info kernel: [ 0.697885] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. kern.info kernel: [ 0.710678] io scheduler noop registered kern.info kernel: [ 0.714821] io scheduler deadline registered (default) kern.info kernel: [ 0.720515] Serial: 8250/16550 driver, 16 ports, IRQ sharing enabled kern.info kernel: [ 0.729876] console [ttyS0] disabled kern.info kernel: [ 0.753783] serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11, base_baud = 1562500) is a 16550A kern.info kernel: [ 0.762888] console [ttyS0] enabled kern.info kernel: [ 0.770443] bootconsole [early0] disabled kern.warn kernel: [ 0.783945] m25p80 spi0.0: found w25q128, expected m25p80 kern.info kernel: [ 0.789593] m25p80 spi0.0: w25q128 (16384 Kbytes) kern.notice kernel: [ 0.794468] 4 cmdlinepart partitions found on MTD device spi0.0 kern.notice kernel: [ 0.800585] Creating 4 MTD partitions on "spi0.0": kern.notice kernel: [ 0.805543] 0x000000000000-0x000000040000 : "u-boot" kern.notice kernel: [ 0.812807] 0x000000040000-0x000000050000 : "u-boot-env" kern.notice kernel: [ 0.819864] 0x000000050000-0x000000ff0000 : "firmware" kern.notice kernel: [ 0.848882] 2 uimage-fw partitions found on MTD device firmware kern.notice kernel: [ 0.855016] 0x000000050000-0x0000001b0000 : "kernel" kern.notice kernel: [ 0.861463] 0x0000001b0000-0x000000ff0000 : "rootfs" kern.notice kernel: [ 0.868188] mtd: device 4 (rootfs) set to be root filesystem kern.notice kernel: [ 0.874070] 1 squashfs-split partitions found on MTD device rootfs kern.notice kernel: [ 0.880505] 0x0000009b0000-0x000000ff0000 : "rootfs_data" kern.notice kernel: [ 0.887715] 0x000000ff0000-0x000001000000 : "art" kern.info kernel: [ 0.915639] libphy: ag71xx_mdio: probed kern.info kernel: [ 1.509738] ag71xx ag71xx.0: connected to PHY at ag71xx-mdio.1:04 [uid=004dd042, driver=Generic PHY] kern.info kernel: [ 1.519833] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII kern.info kernel: [ 2.109348] ag71xx-mdio.1: Found an AR934X built-in switch kern.info kernel: [ 2.152623] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII kern.info kernel: [ 2.161033] NET: Registered protocol family 10 kern.info kernel: [ 2.169473] NET: Registered protocol family 17 kern.info kernel: [ 2.174138] bridge: automatic filtering via arp/ip/ip6tables has been deprecated. Update your scripts to load br_netfilter if you need this. kern.info kernel: [ 2.187330] 8021q: 802.1Q VLAN Support v1.8 kern.info kernel: [ 2.193225] hctosys: unable to open rtc device (rtc0) kern.info kernel: [ 2.202898] VFS: Mounted root (squashfs filesystem) readonly on device 31:4. kern.info kernel: [ 2.212067] Freeing unused kernel memory: 336K user.info kernel: [ 3.316297] init: Console is alive user.info kernel: [ 3.320091] init: - watchdog - user.info kernel: [ 5.467138] kmodloader: loading kernel modules from /etc/modules-boot.d/* kern.info kernel: [ 5.588777] usbcore: registered new interface driver usbfs kern.info kernel: [ 5.594534] usbcore: registered new interface driver hub kern.info kernel: [ 5.600195] usbcore: registered new device driver usb kern.info kernel: [ 5.611520] exFAT: Version 1.2.9 kern.notice kernel: [ 5.653747] SCSI subsystem initialized kern.info kernel: [ 5.663824] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver kern.info kernel: [ 5.672438] ehci-platform: EHCI generic platform driver kern.info kernel: [ 5.677993] ehci-platform ehci-platform: EHCI Host Controller kern.info kernel: [ 5.683970] ehci-platform ehci-platform: new USB bus registered, assigned bus number 1 kern.info kernel: [ 5.694256] ehci-platform ehci-platform: irq 3, io mem 0x1b000000 kern.info kernel: [ 5.716839] ehci-platform ehci-platform: USB 2.0 started, EHCI 1.00 kern.info kernel: [ 5.724164] hub 1-0:1.0: USB hub found kern.info kernel: [ 5.728400] hub 1-0:1.0: 1 port detected kern.info kernel: [ 5.735649] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver kern.info kernel: [ 5.743801] ohci-platform: OHCI generic platform driver kern.info kernel: [ 5.751865] uhci_hcd: USB Universal Host Controller Interface driver kern.info kernel: [ 5.762956] usbcore: registered new interface driver usb-storage user.info kernel: [ 5.769946] kmodloader: done loading kernel modules from /etc/modules-boot.d/* user.info kernel: [ 5.779997] init: - preinit - kern.info kernel: [ 6.415204] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready kern.info kernel: [ 8.630318] eth0: link up (100Mbps/Full duplex) kern.info kernel: [ 8.635033] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready kern.notice kernel: [ 9.656985] jffs2: notice: (415) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found. user.info kernel: [ 9.674553] mount_root: overlay filesystem has not been fully initialized yet user.info kernel: [ 9.684965] mount_root: switching to jffs2 overlay user.warn kernel: [ 9.698198] urandom-seed: Seed file not found (/etc/urandom.seed) kern.info kernel: [ 9.856473] eth0: link down user.info kernel: [ 9.870401] procd: - early - user.info kernel: [ 9.873478] procd: - watchdog - user.info kernel: [ 10.608936] procd: - watchdog - user.info kernel: [ 10.612445] procd: - ubus - kern.notice kernel: [ 10.946714] random: ubusd: uninitialized urandom read (4 bytes read, 18 bits of entropy available) kern.notice kernel: [ 10.956455] random: ubusd: uninitialized urandom read (4 bytes read, 18 bits of entropy available) kern.notice kernel: [ 10.965871] random: ubusd: uninitialized urandom read (4 bytes read, 18 bits of entropy available) kern.notice kernel: [ 10.978401] random: ubusd: uninitialized urandom read (4 bytes read, 18 bits of entropy available) kern.notice kernel: [ 10.995101] random: ubusd: uninitialized urandom read (4 bytes read, 18 bits of entropy available) kern.notice kernel: [ 11.017475] random: ubusd: uninitialized urandom read (4 bytes read, 18 bits of entropy available) kern.notice kernel: [ 11.037072] random: ubusd: uninitialized urandom read (4 bytes read, 18 bits of entropy available) user.info kernel: [ 11.108374] procd: - init - kern.notice kernel: [ 11.641514] random: jshn: uninitialized urandom read (4 bytes read, 19 bits of entropy available) kern.notice kernel: [ 11.795874] random: ubusd: uninitialized urandom read (4 bytes read, 20 bits of entropy available) kern.notice kernel: [ 11.817116] random: ubus: uninitialized urandom read (4 bytes read, 20 bits of entropy available) user.info kernel: [ 12.044655] kmodloader: loading kernel modules from /etc/modules.d/* kern.info kernel: [ 12.706654] ntfs: driver 2.1.32 [Flags: R/O MODULE]. kern.info kernel: [ 12.772885] Initializing XFRM netlink socket kern.info kernel: [ 12.799340] NET: Registered protocol family 15 kern.info kernel: [ 12.812058] tun: Universal TUN/TAP device driver, 1.6 kern.info kernel: [ 12.817348] tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com> kern.info kernel: [ 12.909325] l2tp_core: L2TP core driver, V2.0 kern.info kernel: [ 12.915956] l2tp_netlink: L2TP netlink interface kern.info kernel: [ 12.940090] gre: GRE over IPv4 demultiplexor driver kern.info kernel: [ 12.950836] ip_gre: GRE over IPv4 tunneling driver kern.info kernel: [ 12.982638] ip6_tables: (C) 2000-2006 Netfilter Core Team kern.info kernel: [ 13.007848] Netfilter messages via NETLINK v0.30. kern.info kernel: [ 13.030392] ip_set: protocol 6 kern.info kernel: [ 13.103704] i2c /dev entries driver kern.info kernel: [ 13.129105] Linux video capture interface: v2.00 kern.info kernel: [ 13.206241] u32 classifier kern.info kernel: [ 13.209103] input device check on kern.info kernel: [ 13.212877] Actions configured kern.info kernel: [ 13.238126] Mirror/redirect action on kern.info kernel: [ 13.257646] nf_conntrack version 0.5.0 (1955 buckets, 7820 max) kern.info kernel: [ 13.295443] fuse init (API version 7.23) kern.info kernel: [ 13.318237] usbcore: registered new interface driver cdc_acm kern.info kernel: [ 13.324091] cdc_acm: USB Abstract Control Model driver for USB modems and ISDN adapters kern.info kernel: [ 13.359106] usbcore: registered new interface driver cdc_wdm kern.info kernel: [ 13.373907] Loading modules backported from Linux version wt-2017-01-31-0-ge882dff19e7f kern.info kernel: [ 13.382235] Backport generated by backports.git backports-20160324-13-g24da7d3c kern.info kernel: [ 13.429473] ip_tables: (C) 2000-2006 Netfilter Core Team kern.info kernel: [ 13.449475] usbcore: registered new interface driver ipheth kern.info kernel: [ 13.591720] usbcore: registered new interface driver usbserial kern.info kernel: [ 13.597906] usbcore: registered new interface driver usbserial_generic kern.info kernel: [ 13.604739] usbserial: USB Serial support registered for generic kern.info kernel: [ 13.735497] xt_time: kernel timezone is -0000 kern.info kernel: [ 13.747344] usbcore: registered new interface driver cdc_ether kern.info kernel: [ 13.772014] usbcore: registered new interface driver cdc_ncm kern.info kernel: [ 13.858575] usbcore: registered new interface driver cp210x kern.info kernel: [ 13.864422] usbserial: USB Serial support registered for cp210x kern.info kernel: [ 13.893651] gspca_main: v2.14.0 registered kern.info kernel: [ 13.909197] usbcore: registered new interface driver sonixb kern.info kernel: [ 13.929875] usbcore: registered new interface driver sonixj kern.info kernel: [ 13.948989] usbcore: registered new interface driver gspca_zc3xx kern.info kernel: [ 13.968478] usbcore: registered new interface driver huawei_cdc_ncm kern.info kernel: [ 14.119497] PPP generic driver version 2.4.2 kern.info kernel: [ 14.137980] PPP MPPE Compression module registered kern.info kernel: [ 14.151265] NET: Registered protocol family 24 kern.info kernel: [ 14.168484] PPTP driver version 0.8.5 kern.info kernel: [ 14.176587] usbcore: registered new interface driver qmi_wwan kern.info kernel: [ 14.201088] usbcore: registered new interface driver rndis_host kern.info kernel: [ 14.216362] usbcore: registered new interface driver sierra kern.info kernel: [ 14.222303] usbserial: USB Serial support registered for Sierra USB modem kern.info kernel: [ 14.249123] usbcore: registered new interface driver sierra_net kern.info kernel: [ 14.325954] usbcore: registered new interface driver uvcvideo kern.info kernel: [ 14.331946] USB Video Class driver (1.1.1) kern.info kernel: [ 14.412812] l2tp_ppp: PPPoL2TP kernel driver, V2.0 kern.info kernel: [ 14.429291] usbcore: registered new interface driver option kern.info kernel: [ 14.435139] usbserial: USB Serial support registered for GSM modem (1-port) kern.debug kernel: [ 14.494339] ath: EEPROM regdomain: 0x0 kern.debug kernel: [ 14.494360] ath: EEPROM indicates default country code should be used kern.debug kernel: [ 14.494369] ath: doing EEPROM country->regdmn map search kern.debug kernel: [ 14.494388] ath: country maps to regdmn code: 0x3a kern.debug kernel: [ 14.494398] ath: Country alpha2 being used: US kern.debug kernel: [ 14.494406] ath: Regpair used: 0x3a kern.debug kernel: [ 14.505272] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht' kern.info kernel: [ 14.510705] ieee80211 phy0: Atheros AR9531 Rev:2 mem=0xb8100000, irq=47 user.info kernel: [ 14.635387] kmodloader: done loading kernel modules from /etc/modules.d/*


OpenWrt bootlog

Boot log from ath79 built from locally patched master

U-Boot 1.1.4-g36de7573-dirty (May 27 2017 - 10:55:06) DRAM: 128 MB Nor Flash: 16 MB, sector count = 256 *** Warning *** : PCIe WLAN Module not found !!! ath_spi_nand_ecc: Couldn't enable internal ECC Protect off 9F040000 ... 9F04FFFF Un-Protecting sectors 4..4 in bank 1 Un-Protected 1 sectors Erasing Flash...Erasing flash... First 0x4 last 0x4 sector size 0x10000 ^H^H^H^H 4 Erased 1 sectors Writing to Flash... write addr: 9f040000 done Protecting sectors 4..4 in bank 1 Protected 1 sectors Warning: Bootlimit (3) exceeded. Using altbootcmd. Hit any key to stop autoboot: -99 Device calibrated. Booting ... ## Booting image at 9f050000 ... Image Name: MIPS OpenWrt Linux-4.14.93 Created: 2019-01-20 22:22:20 UTC Image Type: MIPS Linux Kernel Image (lzma compressed) Data Size: 1609205 Bytes = 1.5 MB Load Address: 80060000 Entry Point: 80060000 Verifying Checksum at 0x9f050040 ...OK Uncompressing Kernel Image ... OK No initrd ## Transferring control to Linux (at address 80060000) ... ## Giving linux memsize in bytes, 134217728 Starting kernel ... [ 0.000000] Linux version 4.14.93 (jeff@deb-devel) (gcc version 7.4.0 (OpenWrt GCC 7.4.0 r8507+246-a0d5acfbe2)) #0 Sun Jan 20 22:22:20 2019 [ 0.000000] bootconsole [early0] enabled [ 0.000000] CPU0 revision is: 00019374 (MIPS 24Kc) [ 0.000000] MIPS: machine is GL.iNet GL-AR300M-Lite [ 0.000000] SoC: Qualcomm Atheros QCA9533 ver 2 rev 0 [ 0.000000] Determined physical RAM map: [ 0.000000] memory: 08000000 @ 00000000 (usable) [ 0.000000] Initrd not found or empty - disabling initrd [ 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] Zone ranges: [ 0.000000] Normal [mem 0x0000000000000000-0x0000000007ffffff] [ 0.000000] Movable zone start for each node [ 0.000000] Early memory node ranges [ 0.000000] node 0: [mem 0x0000000000000000-0x0000000007ffffff] [ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000007ffffff] [ 0.000000] random: get_random_bytes called from start_kernel+0x8c/0x474 with crng_init=0 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 32512 [ 0.000000] Kernel command line: console=ttyS0,115200n8 rootfstype=squashfs,jffs2 [ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes) [ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) [ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Writing ErrCtl register=00000000 [ 0.000000] Readback ErrCtl register=00000000 [ 0.000000] Memory: 123248K/131072K available (3757K kernel code, 150K rwdata, 908K rodata, 1192K init, 204K bss, 7824K 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] CPU clock: 650.000 MHz [ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 5880801374 ns [ 0.000008] sched_clock: 32 bits at 325MHz, resolution 3ns, wraps every 6607641598ns [ 0.008231] Calibrating delay loop... 432.53 BogoMIPS (lpj=2162688) [ 0.074858] pid_max: default: 32768 minimum: 301 [ 0.079919] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.086889] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.098197] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.108614] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.115115] pinctrl core: initialized pinctrl subsystem [ 0.121517] NET: Registered protocol family 16 [ 0.132197] PCI host bridge /ahb/apb/pcie-controller@180c0000 ranges: [ 0.139004] MEM 0x0000000010000000..0x0000000013ffffff [ 0.144552] IO 0x0000000000000000..0x0000000000000000 [ 0.150053] ar724x-pci 180c0000.pcie-controller: PCIe link is down [ 0.173299] PCI host bridge to bus 0000:00 [ 0.177685] pci_bus 0000:00: root bus resource [mem 0x10000000-0x13ffffff] [ 0.184927] pci_bus 0000:00: root bus resource [io 0x0000] [ 0.190804] pci_bus 0000:00: root bus resource [??? 0x00000000 flags 0x0] [ 0.197958] pci_bus 0000:00: No busn resource found for root bus, will use [bus 00-ff] [ 0.208652] clocksource: Switched to clocksource MIPS [ 0.214906] NET: Registered protocol family 2 [ 0.220288] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.227643] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.234398] TCP: Hash tables configured (established 1024 bind 1024) [ 0.241254] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.247423] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.254323] NET: Registered protocol family 1 [ 0.261747] Crashlog allocated RAM at address 0x3f00000 [ 0.268455] workingset: timestamp_bits=30 max_order=15 bucket_order=0 [ 0.279989] squashfs: version 4.0 (2009/01/31) Phillip Lougher [ 0.286136] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc. [ 0.305008] io scheduler noop registered [ 0.309194] io scheduler deadline registered (default) [ 0.314878] ar7200-usb-phy 18030000.usb-phy: phy reset is missing [ 0.323400] pinctrl-single 1804002c.pinmux: 576 pins at pa b804002c size 72 [ 0.331705] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled [ 0.339130] console [ttyS0] disabled [ 0.342935] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 8, base_baud = 1562500) is a 16550A [ 0.352075] console [ttyS0] enabled [ 0.352075] console [ttyS0] enabled [ 0.359628] bootconsole [early0] disabled [ 0.359628] bootconsole [early0] disabled [ 0.384840] m25p80 spi0.0: w25q128 (16384 Kbytes) [ 0.389764] 4 fixed-partitions partitions found on MTD device spi0.0 [ 0.396318] Creating 4 MTD partitions on "spi0.0": [ 0.401293] 0x000000000000-0x000000040000 : "u-boot" [ 0.407199] 0x000000040000-0x000000050000 : "u-boot-env" [ 0.413461] 0x000000050000-0x000000ff0000 : "firmware" [ 0.421357] 2 uimage-fw partitions found on MTD device firmware [ 0.427474] Creating 2 MTD partitions on "firmware": [ 0.432659] 0x000000000000-0x000000190000 : "kernel" [ 0.438493] 0x000000190000-0x000000fa0000 : "rootfs" [ 0.444335] mtd: device 4 (rootfs) set to be root filesystem [ 0.450269] 1 squashfs-split partitions found on MTD device rootfs [ 0.456657] 0x000000a30000-0x000000fa0000 : "rootfs_data" [ 0.462930] 0x000000ff0000-0x000001000000 : "art" [ 0.469557] libphy: Fixed MDIO Bus: probed [ 0.809048] libphy: ag71xx_mdio: probed [ 1.099116] mdio-bus.0:1f: Found an AR934X built-in switch [ 1.104937] libphy: ar7240sw_mdio: probed [ 1.500878] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:1f:04 [uid=004dd042, driver=Generic PHY] [ 1.511337] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII [ 1.517742] ag71xx 1a000000.eth: invalid MAC address, using random address [ 1.860350] ag71xx 1a000000.eth: connected to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY] [ 1.870253] eth1: Atheros AG71xx at 0xba000000, irq 5, mode:GMII [ 1.878396] NET: Registered protocol family 10 [ 1.887209] Segment Routing with IPv6 [ 1.891155] NET: Registered protocol family 17 [ 1.895796] 8021q: 802.1Q VLAN Support v1.8 [ 1.906258] VFS: Mounted root (squashfs filesystem) readonly on device 31:4. [ 1.920069] Freeing unused kernel memory: 1192K [ 1.924750] This architecture does not have kernel memory protection. [ 2.548661] random: fast init done [ 2.661054] init: Console is alive [ 2.664780] init: - watchdog - [ 3.736872] kmodloader: loading kernel modules from /etc/modules-boot.d/* [ 3.804932] usbcore: registered new interface driver usbfs [ 3.810720] usbcore: registered new interface driver hub [ 3.816302] usbcore: registered new device driver usb [ 3.826987] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 3.835432] ehci-platform: EHCI generic platform driver [ 3.841150] ehci-platform 1b000000.usb: EHCI Host Controller [ 3.847041] ehci-platform 1b000000.usb: new USB bus registered, assigned bus number 1 [ 3.855256] ehci-platform 1b000000.usb: irq 3, io mem 0x1b000000 [ 3.888688] ehci-platform 1b000000.usb: USB 2.0 started, EHCI 1.00 [ 3.895898] hub 1-0:1.0: USB hub found [ 3.900164] hub 1-0:1.0: 1 port detected [ 3.905420] kmodloader: done loading kernel modules from /etc/modules-boot.d/* [ 3.915645] init: - preinit - [ 4.901516] random: jshn: uninitialized urandom read (4 bytes read) [ 5.109112] random: jshn: uninitialized urandom read (4 bytes read) [ 5.156083] random: jshn: uninitialized urandom read (4 bytes read) [ 5.345342] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready 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 [ 8.594157] jffs2: notice: (442) jffs2_build_xattr_subsystem: complete building xattr subsystem, 5 of xdatum (2 unchecked, 2 orphan) and 17 of xref (2 dead, 0 orphan) found. [ 8.611577] mount_root: switching to jffs2 overlay [ 8.641184] overlayfs: upper fs does not support tmpfile. [ 8.652273] urandom-seed: Seeding with /etc/urandom.seed [ 8.871862] procd: - early - [ 8.874944] procd: - watchdog - [ 9.475801] procd: - watchdog - [ 9.479386] procd: - ubus - [ 9.552140] urandom_read: 5 callbacks suppressed [ 9.552148] random: ubusd: uninitialized urandom read (4 bytes read) [ 9.565956] random: ubusd: uninitialized urandom read (4 bytes read) [ 9.573845] procd: - init - Please press Enter to activate this console. [ 10.033407] kmodloader: loading kernel modules from /etc/modules.d/* [ 10.044762] ip6_tables: (C) 2000-2006 Netfilter Core Team [ 10.061520] Loading modules backported from Linux version v4.19.7-0-g61c68f2a2af0 [ 10.069312] Backport generated by backports.git v4.19.7-1-0-g148b072d [ 10.078943] ip_tables: (C) 2000-2006 Netfilter Core Team [ 10.092637] nf_conntrack version 0.5.0 (2048 buckets, 8192 max) [ 10.156777] xt_time: kernel timezone is -0000 [ 10.216569] PPP generic driver version 2.4.2 [ 10.223475] NET: Registered protocol family 24 [ 10.287576] ieee80211 phy0: Atheros AR9531 Rev:2 mem=0xb8100000, irq=12 [ 10.389804] kmodloader: done loading kernel modules from /etc/modules.d/* [ 22.779178] br-lan: port 1(eth0) entered blocking state [ 22.784584] br-lan: port 1(eth0) entered disabled state [ 22.790346] device eth0 entered promiscuous mode [ 22.830732] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready [ 22.906476] IPv6: ADDRCONF(NETDEV_UP): eth1: link is not ready [ 23.949988] eth1: link up (1000Mbps/Full duplex) [ 23.954798] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready [ 127.388700] random: crng init done


Notes

Tags

FIXME Add tags below, then remove this fixme.

How to add tags

toh/gl.inet/gl.inet_gl-ar300m-lite.txt · Last modified: 2019/03/14 18:22 by tmomas