follow me

PQI Air Penのath79対応

以前、OpenWrtに対応させたのですが、ar71xxはath79に移行される事になったので、どこかで書き直さないといけないわけですがサボってました。
ar71xxは、今のkernelバージョンで終了の様子なので、ath79移行は今後OpenWrtで使えるようにするには必要なことになります。
とりあえず少し古いけど、手元の開発環境でパッチを書いてみた。
r7995-967d646_ath79_pqi-air-pen.patch


ath79対応してみたものの、恩恵を受けないですね。ar9330では正直あまりメリット無いですね。
Kernelでかくなってしまったし、Flash小さいからますますメリット無いですね。


起動ログ貼り付けておきますね。
とりあえず動作問題なさそうなので、最新にパッチ作って送りますかね。
root@OpenWrt:/# dmesg
[    0.000000] Linux version 4.14.67 (dev@dev.srchack.org) (gcc version 7.3.0 (OpenWrt GCC 7.3.0 r7995-967d646)) #0 Mon Sep 3 19:51:06 2018
[    0.000000] bootconsole [early0] enabled
[    0.000000] CPU0 revision is: 00019374 (MIPS 24Kc)
[    0.000000] MIPS: machine is PQI Air-Pen
[    0.000000] SoC: Atheros AR9330 rev 1
[    0.000000] Determined physical RAM map:
[    0.000000]  memory: 04000000 @ 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-0x0000000003ffffff]
[    0.000000] Movable zone start for each node
[    0.000000] Early memory node ranges
[    0.000000]   node   0: [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[    0.000000] On node 0 totalpages: 16384
[    0.000000] free_area_init_node: node 0, pgdat 8044a020, node_mem_map 810061c0
[    0.000000]   Normal zone: 128 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 16384 pages, LIFO batch:3
[    0.000000] random: get_random_bytes called from 0x8044d72c with crng_init=0
[    0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[    0.000000] pcpu-alloc: [0] 0 
[    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 16256
[    0.000000] Kernel command line: console=ttyATH0,115200 rootfstype=squashfs,jffs2
[    0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[    0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[    0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[    0.000000] Writing ErrCtl register=00000000
[    0.000000] Readback ErrCtl register=00000000
[    0.000000] Memory: 59052K/65536K available (3408K kernel code, 139K rwdata, 464K rodata, 1228K init, 203K bss, 6484K 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: 350.000 MHz
[    0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 10921488265 ns
[    0.000015] sched_clock: 32 bits at 175MHz, resolution 5ns, wraps every 12271335421ns
[    0.007558] Calibrating delay loop... 232.24 BogoMIPS (lpj=1161216)
[    0.092121] pid_max: default: 32768 minimum: 301
[    0.096894] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.102886] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.116077] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.124172] futex hash table entries: 256 (order: -1, 3072 bytes)
[    0.130070] pinctrl core: initialized pinctrl subsystem
[    0.136503] NET: Registered protocol family 16
[    0.140526] Can't analyze schedule() prologue at 803aff34
[    0.174136] clocksource: Switched to clocksource MIPS
[    0.179371] NET: Registered protocol family 2
[    0.183470] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[    0.188909] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[    0.194956] TCP: Hash tables configured (established 1024 bind 1024)
[    0.201210] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    0.206636] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    0.212957] NET: Registered protocol family 1
[    0.216786] PCI: CLS 0 bytes, default 32
[    0.223114] Crashlog allocated RAM at address 0x3f00000
[    0.228821] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[    0.242053] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[    0.246319] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[    0.269144] io scheduler noop registered
[    0.271518] io scheduler deadline registered (default)
[    0.277051] ar7200-usb-phy usb-phy: phy reset is missing
[    0.282190] pinctrl-single 18040028.pinmux: 64 pins at pa b8040028 size 8
[    0.289593] Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
[    0.295588] 18020000.uart: ttyATH0 at MMIO 0x18020000 (irq = 8, base_baud = 1562500) is a AR933X UART
[    0.303594] console [ttyATH0] enabled
[    0.310459] bootconsole [early0] disabled
[    0.338572] m25p80 spi0.0: s25fl064k (8192 Kbytes)
[    0.341994] 6 fixed-partitions partitions found on MTD device spi0.0
[    0.348287] Creating 6 MTD partitions on "spi0.0":
[    0.353048] 0x000000000000-0x000000040000 : "u-boot"
[    0.359403] 0x000000040000-0x000000050000 : "u-boot-env"
[    0.364669] 0x000000050000-0x000000060000 : "art"
[    0.369203] 0x000000060000-0x000000070000 : "NVRAM"
[    0.374027] 0x000000070000-0x0000007f0000 : "firmware"
[    0.394940] 2 uimage-fw partitions found on MTD device firmware
[    0.399431] 0x000000070000-0x0000001c0000 : "kernel"
[    0.405686] 0x0000001c0000-0x0000007f0000 : "rootfs"
[    0.410454] mtd: device 6 (rootfs) set to be root filesystem
[    0.415079] 1 squashfs-split partitions found on MTD device rootfs
[    0.421127] 0x0000003b0000-0x0000007f0000 : "rootfs_data"
[    0.427765] 0x0000007f0000-0x000000800000 : "CONF"
[    0.433357] libphy: Fixed MDIO Bus: probed
[    0.774643] libphy: ag71xx_mdio: probed
[    1.064213] mdio-bus.0:1f: Found an AR7240/AR9330 built-in switch
[    1.069116] libphy: ar7240sw_mdio: probed
[    1.455866] ag71xx 19000000.eth: connected to PHY at mdio-bus.0:1f:04 [uid=004dd041, driver=Generic PHY]
[    1.465040] eth0: Atheros AG71xx at 0xb9000000, irq 4, mode:MII
[    1.472708] NET: Registered protocol family 10
[    1.481907] Segment Routing with IPv6
[    1.484376] NET: Registered protocol family 17
[    1.489578] 8021q: 802.1Q VLAN Support v1.8
[    1.503363] VFS: Mounted root (squashfs filesystem) readonly on device 31:6.
[    1.519827] Freeing unused kernel memory: 1228K
[    1.522903] This architecture does not have kernel memory protection.
[    2.544150] random: fast init done
[    3.369909] init: Console is alive
[    5.909372] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[    6.286270] usbcore: registered new interface driver usbfs
[    6.290400] usbcore: registered new interface driver hub
[    6.295884] usbcore: registered new device driver usb
[    6.309506] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    6.327879] SCSI subsystem initialized
[    6.337634] ehci-platform: EHCI generic platform driver
[    6.347727] usbcore: registered new interface driver usb-storage
[    6.353325] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[    6.363255] init: - preinit -
[    7.620636] random: jshn: uninitialized urandom read (4 bytes read)
[    8.118415] random: jshn: uninitialized urandom read (4 bytes read)
[    8.200922] random: jshn: uninitialized urandom read (4 bytes read)
[    8.437034] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[   10.495981] eth0: link up (100Mbps/Full duplex)
[   10.499111] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[   13.167170] jffs2: notice: (384) jffs2_build_xattr_subsystem: complete building xattr subsystem, 1 of xdatum (0 unchecked, 1 orphan) and 1 of xref (1 dead, 0 orphan) found.
[   13.183303] mount_root: switching to jffs2 overlay
[   13.236935] overlayfs: upper fs does not support tmpfile.
[   13.248052] urandom-seed: Seeding with /etc/urandom.seed
[   13.792568] procd: - early -
[   14.734870] procd: - ubus -
[   14.739413] eth0: link down
[   15.044226] urandom_read: 3 callbacks suppressed
[   15.044239] random: ubusd: uninitialized urandom read (4 bytes read)
[   15.055187] random: ubusd: uninitialized urandom read (4 bytes read)
[   15.060814] random: ubusd: uninitialized urandom read (4 bytes read)
[   15.068029] procd: - init -
[   16.810970] kmodloader: loading kernel modules from /etc/modules.d/*
[   16.823917] ip6_tables: (C) 2000-2006 Netfilter Core Team
[   16.845514] Loading modules backported from Linux version wt-2017-11-01-0-gfe248fc2c180
[   16.852074] Backport generated by backports.git v4.14-rc2-1-31-g86cf0e5d
[   16.863386] ip_tables: (C) 2000-2006 Netfilter Core Team
[   16.880888] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[   16.983895] xt_time: kernel timezone is -0000
[   17.071821] PPP generic driver version 2.4.2
[   17.078661] NET: Registered protocol family 24
[   17.198104] ath: EEPROM regdomain: 0x0
[   17.198120] ath: EEPROM indicates default country code should be used
[   17.198126] ath: doing EEPROM country->regdmn map search
[   17.198149] ath: country maps to regdmn code: 0x3a
[   17.198158] ath: Country alpha2 being used: US
[   17.198165] ath: Regpair used: 0x3a
[   17.210672] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
[   17.217235] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
[   18.077590] kmodloader: done loading kernel modules from /etc/modules.d/*
[   35.450051] br-lan: port 1(eth0) entered blocking state
[   35.453837] br-lan: port 1(eth0) entered disabled state
[   35.459643] device eth0 entered promiscuous mode
[   35.486571] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[   37.665752] eth0: link up (100Mbps/Full duplex)
[   37.668899] br-lan: port 1(eth0) entered blocking state
[   37.674053] br-lan: port 1(eth0) entered forwarding state
[   37.744261] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
PQI Air Penのath79対応 | 0 件のコメント | アカウント登録
サイト管理者はコメントに関する責任を負いません。