Skip to content

Instantly share code, notes, and snippets.

View mcprat's full-sized avatar

Michael Pratt mcprat

  • Ohio
  • 16:15 (UTC -04:00)
View GitHub Profile
@mcprat
mcprat / boot.log
Created May 19, 2020 07:24
ENS202EXT factory.bin firstboot with OKLI and fakeroot (master)
Hit any key to stop autoboot: 0
Validating MD5Sum of 'vmlinux'... Passed!
Validating MD5Sum of 'rootfs'... Passed!
## Booting image at 9f0a0000 ...
Image Name: MIPS OpenWrt Linux-4.19.115
Created: 2020-05-11 21:16:18 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 3265 Bytes = 3.2 kB
Load Address: 80060000
Entry Point: 80060000
@mcprat
mcprat / uart-boot.log
Created May 20, 2020 17:58
ENS202EXT Openwrt ath79 UART issue
[ 0.355727] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.400919] io scheduler noop registered
[ 0.407733] io scheduler deadline registered (default)
[ 0.420653] pinctrl-single 1804002c.pinmux: 544 pins, size 68
[ 0.432443] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[ 0.444788] console [ttyS0] disabled
[ 0.451056] 18020000.uart: ttyS0 at MMIO 0x18020000 (irq = 9, base_baud = 1562500) is a 16550A
%!!-u▒1▒h~I▒Yh▒▒%)I▒Y▒ %▒(▒+▒▒▒.B▒▒▒▒*▒.ߕ▒(▒J▒_▒%!!-um1▒P▒~▒▒I▒YhƄ▒Ђ▒mpY▒ %▒(▒+▒▒▒,B▒▒▒▒▒+▒▒Z▒▒▒(ߵT▒▒▒%!!-E▒9)▒,15z-5)Х,19h=▒.▒▒▒▒ %!!-▒1▒11-▒v'lp▒nykPr▒z▒▒I▒▒▒*-A▒▒)▒▒Ћz- ▒(!-▒1▒1▒r▒▒P!▒d1▒▒Q▒q--Ai▒A+%[▒%!!-▒5▒91P11111)11119115%f%y. ▒%!!-▒1E▒1111911▒11119115%f%y▒X▒▒ %!!-▒=u▒1111911▒1111!115%▒r▒* ▒%!!-▒9▒=1P111▒11▒1111▒,1!▒▒y▒v▒"▒%!!-▒1▒▒1111▒,1)1111▒,1!▒▒▒▒y. ▒%!!-▒1E▒1111▒,1)1111▒,1!▒▒z▒▒▒"▒%!!-▒9E삋kq▒P/1▒▒Q▒q--Y▒▒q▒")▒▒P▒▒Y(▒ %!!-▒1E킨▒▒q+5 ▒(r▒z▒▒I▒q(-▒▒▒▒P[▒%!!-▒=▒11P11111)1111"P1!▒iY▒Y* ▒%!!-▒5E▒1111
@mcprat
mcprat / failsafe_boot.log
Created May 20, 2020 17:59
ENS202EXT failsafe mode
ar7240> run failsafe_boot
## Booting image at 9fdf0000 ...
Image Name: MIPS OpenWrt Linux-2.6.31
Created: 2012-09-17 14:43:47 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 1559991 Bytes = 1.5 MB
Load Address: 80060000
Entry Point: 80060000
Verifying Checksum at 0x9fdf0040 ...OK
Uncompressing Kernel Image ... OK
@mcprat
mcprat / boot.log
Created May 21, 2020 04:52
ENS202EXT Openwrt ath79 factory.bin firstboot (OKLI) (fakeroot) (virtual_flash)
Hit any key to stop autoboot: 0
Validating MD5Sum of 'vmlinux'... Passed!
Validating MD5Sum of 'rootfs'... Passed!
## Booting image at 9f0a0000 ...
Image Name: MIPS OpenWrt Linux-4.19.115
Created: 2020-05-11 21:16:18 UTC
Image Type: MIPS Linux Kernel Image (lzma compressed)
Data Size: 3265 Bytes = 3.2 kB
Load Address: 80060000
Entry Point: 80060000
@mcprat
mcprat / original-PR.patch
Created May 22, 2020 04:51
ath79: Add support ENS202EXT original PR
commit d402c93d880175b22d0fcbdc504caf111403d649
Author: Michael Pratt <[email protected]>
Date: Mon May 11 16:58:02 2020 -0400
ath79: add support for Senao Engenius ENS202EXT
Engenius ENS202EXT is an outdoor wireless access point with 2 10/100 ports,
with built-in ethernet switch, detachable antennas and proprietery PoE.
Specification:
@mcprat
mcprat / commands.mk
Created May 23, 2020 18:56
factory.bin common image commands idea
For device profile:
IMAGE/factory.bin := append-squashfs-fakeroot-be | pad-to $$$$(BLOCKSIZE) | \
$$(IMAGE/sysupgrade.bin) | tmpdir tmp | \
tmpdir-loader $(1) tmp/openwrt-senao-ens202ext-uImage-lzma.bin | \
tmpdir-cp tmp/openwrt-senao-ens202ext-root.squashfs | \
tmpdir-tar tmp | tmpdir-rm tmp | gzip
in include/image-commands.mk:
@mcprat
mcprat / dmesg.log
Created June 18, 2020 21:18
ENS202EXT Openwrt 5.4.46 ath79 factory.bin firstboot (OKLI) (fakeroot) (virtual_flash)
[ 0.000000] Linux version 5.4.46 (pi@SDDesk) (gcc version 8.4.0 (OpenWrt GCC 8.4.0 r13342+179-e35e40ad82)) #0 Thu Jun 18 00:11:55 2020
[ 0.000000] printk: bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 0001974c (MIPS 74Kc)
[ 0.000000] MIPS: machine is Engenius ENS202EXT
[ 0.000000] SoC: Atheros AR9341 rev 1
[ 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-0x0000000003ffffff]
@mcprat
mcprat / boot.log
Created June 21, 2020 22:19
Last section of kernel log, ENS202EXT ath79 master snapshot (uart good) (K5)
Press the [f] key and hit [enter] to enter failsafe e
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 6.121388] urandom_read: 4 callbacks suppressed
[ 6.121398] random: procd: uninitialized urandom read (4 bytes read)
[ 10.403665] jffs2_scan_eraseblock(): End of filesystem marker found at 0x10000
[ 10.411053] jffs2_build_filesystem(): unlocking the mtd device...
[ 10.411059] done.
[ 10.419285] jffs2_build_filesystem(): erasing all blocks after the end marker...
[ 44.530175] done.
[ 44.539781] jffs2: notice: (546) jffs2_build_xattr_subsystem: complete building xattr subsystem, 0 of xdatum (0 unchecked, 0 orphan) and 0 of xref (0 dead, 0 orphan) found.
@mcprat
mcprat / network-flash.config
Created June 21, 2020 22:21
Network config file after factory flash, ENS202EXT ar9341 ath79 master snapshot
config 'status' 'sys'
option 'opmode' 'ap'
option 'ManagementVLANID' '4096'
config 'interface' 'loopback'
option 'ifname' 'lo'
option 'proto' 'static'
option 'ipaddr' '127.0.0.1'
option 'netmask' '255.0.0.0'
@mcprat
mcprat / network-reset.config
Created June 21, 2020 22:25
Network config file after factory reset, ENS202EXT ar9341 ath79 master snapshot (K5)
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fdf9:4653:577d::/48'
config interface 'wan'