(precompiled) Kernels for BPI-R2


(xbgmsharp) #21

Hello please use the latest, there was some build issue. bananapi-r2-image_4.14.33-b4301e0dcba8_armhf.deb


(victors) #22

The new deb package works but it does have a bug. After installation, use the dpkg -i command. The kernel image file uImage_4.14.33-4.14_main-00137-gb4301e0dcba8 is copied to the boot partition but not renamed to uImage. After renaming manually, everything works fine.


(victors) #23

CPU in BPI-R2 has armv7l architecture . So you can install the kernel built for architecture armv7l . just need to add to drkg armv7l architecture with command:

dpkg --add-architecture armv7l


(xbgmsharp) #24

That is correct, the kernel image file uImage is copied to the boot partition but not renamed to uImage. I did not want to overwrite the current kernel. In regards to the architecture, most package come from the arch armhf. I will see how to change it.

# dpkg -l | grep linux
ii  bananapi-r2-image                    4.14.33-b4301e0dcba8           armhf        BPI-R2 linux image 4.14.33-4.14_main-00137-gb4301e0dcba8
# uname -a
Linux bpi-r2-emmc 4.14.33-4.14_main-00137-gb4301e0dcba8 #33 SMP Thu Apr 5 02:37:21 CEST 2018 armv7l GNU/Linux

(Frank W.) #25

imho you can set filename of kernel in uenv.txt…

seems to work…(had it overridden before):

/boot/bananapi/bpi-r2/linux/uEnv.txt (part of it)

#kernel=uImage
#kernel=uImage_4.14.33
kernel=uImage_4.9.92

loads correctly my 4.9.92 :wink:


(xbgmsharp) #26

I re-work the deb package to include branch, revision, and update the arch. You can now have multiple package installed so you can switch kernel easily.

  • bananapi-r2-image-4.14_4.14.33-1_armv7l.deb
  • bananapi-r2-image-4.4_4.4.70-1_armv7l.deb
  • bananapi-r2-image-4.9_4.9.44-1_armv7l.deb

(Frank W.) #27

i had changed the branches (currently keeping main because there are some depencies in other branches), but default is now the 4.14-main


(victors) #28

xbgmsharp do you plan to create a package repository for BPI-R2 ?


(xbgmsharp) #29

no sure yet, but why not.


(xbgmsharp) #30

How do you find that? I have the exact opposite error.

package architecture (armv7l) does not match system (armhf)

(victors) #31

when i install bananapi-r2-image-4.9_4.9.44-1_armv7l.deb or bananapi-r2-image-4.9_4.9.92-1_armhf.deb from admin.julmay.eu does not load, why?


(Frank W.) #32

imho deb-packages from @xbgmsharp do not replace uImage…you you have to do this manually (or set kernel-param in uenv.txt to the filename).

thats why i’m testing with uboot to have multiple kernels installed and selecting one of them (maybe the last one installed)

i did not find the link to test it


(victors) #33

Yes i rename uImage, but there is another problem, when loading, the kernel gives errors. if need I can put a log. I compiled kernel 4.9.44-bpi-r2-4.9_main it loaded normally, but it does not seem to work hwnat. Maybe hwnat need to somehow turn it or adjustment of some parameters. LEDE throughput 750-800 Mbit , but debian on 4.9.44 kernel only 300-350 Mbit.


(Frank W.) #34

for giving you an answer you have to post the errors…else nobody can help you here. as for hwnat…the 4.9-branch is simply 4.9 with the patches from lede…we have not modified anything for hwnat yet. therer is an init_warning, but we have no idea how to fix it…lede should have the same compile-warning…

maybe @garywang can tell us, whats the difference between lede hnat and that one from my repo


(gary) #35

Hi Mifvi

In LEDE, below patch is to fix a few issue for HNAT:

How to check if HNAT is working: When lots of packets are forward from one interface to another, please check if there are lots of interrupts of ethernet controllers, if there just a bit of ethernet controllers, that means HNAT is working, also we can get the HNAT forward table via kernel debugfs.

Thanks Gary


(Frank W.) #36

These patches i have applied…


(Paweł Kalemba) #37

Maybe you not load hwnat module?


(victors) #38

it is kenel 4.9.92-4.9-main-00063-g45712f3558b9 boot log with an error

Kernel boot log
Starting kernel ...
[    0.000000] Booting Linux on physical CPU 0x0
[    0.000000] Linux version 4.9.92-4.9-main-00063-g45712f3558b9 (francois@debian-dev) (gcc version 6.3.0 20170516 (Debian 6.3.0-18) ) #37 SMP Sat Apr 14 238
[    0.000000] CPU: ARMv7 Processor [410fc073] revision 3 (ARMv7), cr=10c5387d
[    0.000000] CPU: div instructions available: patching division code
[    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[    0.000000] OF: fdt:Machine model: Bananapi BPI-R2
[    0.000000] [WMT-CONSYS-HW][W]reserve_memory_consys_fn: name: consys-reserve-memory, base: 0xffe00000, size: 0x100000
[    0.000000] OF: reserved mem: initialized node consys-reserve-memory, compatible id mediatek,consys-reserve-memory
[    0.000000] cma: Reserved 64 MiB at 0xfb800000
[    0.000000] Memory policy: Data cache writealloc
[    0.000000] On node 0 totalpages: 524031
[    0.000000] free_area_init_node: node 0, pgdat c0e81980, node_mem_map df5f8000
[    0.000000]   Normal zone: 1170 pages used for memmap
[    0.000000]   Normal zone: 0 pages reserved
[    0.000000]   Normal zone: 133120 pages, LIFO batch:31
[    0.000000]   HighMem zone: 390911 pages, LIFO batch:31
[    0.000000] percpu: Embedded 15 pages/cpu @df5a4000 s29132 r8192 d24116 u61440
[    0.000000] pcpu-alloc: s29132 r8192 d24116 u61440 alloc=15*4096
[    0.000000] pcpu-alloc: [0] 0 [0] 1 [0] 2 [0] 3 
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 522861
[    0.000000] Kernel command line: board=bpi-r2 console=earlyprintk console=tty1 fbcon=map:0 console=ttyS0,115200 root=/dev/mmcblk0p2 rootfstype=ext4 rootw0
[    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
[    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
[    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Memory: 1996728K/2096124K available (8192K kernel code, 719K rwdata, 2624K rodata, 1024K init, 589K bss, 33860K reserved, 65536K cma-reserved)
[    0.000000] Virtual kernel memory layout:
[    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
[    0.000000]     fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
[    0.000000]     vmalloc : 0xe1000000 - 0xff800000   ( 488 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xe0800000   ( 520 MB)
[    0.000000]     pkmap   : 0xbfe00000 - 0xc0000000   (   2 MB)
[    0.000000]     modules : 0xbf000000 - 0xbfe00000   (  14 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0900000   (9184 kB)
[    0.000000]       .init : 0xc0d00000 - 0xc0e00000   (1024 kB)
[    0.000000]       .data : 0xc0e00000 - 0xc0eb3c44   ( 720 kB)
[    0.000000]        .bss : 0xc0eb5000 - 0xc0f48594   ( 590 kB)
[    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=4, Nodes=1
[    0.000000] Hierarchical RCU implementation.
[    0.000000]  Build-time adjustment of leaf fanout to 32.
[    0.000000]  RCU restricting CPUs from NR_CPUS=16 to nr_cpu_ids=4.
[    0.000000] RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=4
[    0.000000] NR_IRQS:16 nr_irqs:16 16
[    0.000000] arm_arch_timer: Architected cp15 timer(s) running at 13.00MHz (phys).
[    0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2ff89eacb, max_idle_ns: 440795202429 ns
[    0.000006] sched_clock: 56 bits at 13MHz, resolution 76ns, wraps every 4398046511101ns
[    0.000018] Switching to timer-based delay loop, resolution 76ns
[    0.000196] clocksource: timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 147020034397 ns
[    0.000213] sched_clock: 32 bits at 13MHz, resolution 76ns, wraps every 165191050201ns
[    0.000621] Console: colour dummy device 80x30
[    0.001473] console [tty1] enabled
[    0.001514] Calibrating delay loop (skipped), value calculated using timer frequency.. 26.00 BogoMIPS (lpj=130000)
[    0.001557] pid_max: default: 32768 minimum: 301
[    0.001729] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.001756] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    0.002472] CPU: Testing write buffer coherency: ok
[    0.002533] ftrace: allocating 25783 entries in 76 pages
[    0.040413] CPU0: update cpu_capacity 1024
[    0.040452] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[    0.040516] Setting up static identity map for 0x80100000 - 0x80100058
[    0.047017] CPU1: update cpu_capacity 1024
[    0.047025] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[    0.047504] CPU2: update cpu_capacity 1024
[    0.047509] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[    0.047975] CPU3: update cpu_capacity 1024
[    0.047980] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[    0.048055] Brought up 4 CPUs
[    0.048175] SMP: Total of 4 processors activated (104.00 BogoMIPS).
[    0.048194] CPU: All CPU(s) started in SVC mode.
[    0.049121] devtmpfs: initialized
[    0.056966] VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 3
[    0.057321] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    0.057368] futex hash table entries: 1024 (order: 4, 65536 bytes)
[    0.060183] pinctrl core: initialized pinctrl subsystem
[    0.061125] NET: Registered protocol family 16
[    0.062798] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    0.064276] No ATAGs?
[    0.064314] hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
[    0.064347] hw-breakpoint: maximum watchpoint size is 8 bytes.
[    0.065750] gpiochip_find_base: found new base at 233
[    0.066037] gpio gpiochip0: (1000b000.pinctrl): added GPIO chardev (254:0)
[    0.066399] gpiochip_setup_dev: registered GPIOs 233 to 511 on device: gpiochip0 (1000b000.pinctrl)
[    0.066442] gpio gpiochip0: (1000b000.pinctrl): created GPIO range 0->278 ==> 1000b000.pinctrl PIN 0->278
[    0.111584] vgaarb: loaded
[    0.111895] SCSI subsystem initialized
[    0.112115] libata version 3.00 loaded.
[    0.112369] usbcore: registered new interface driver usbfs
[    0.112443] usbcore: registered new interface driver hub
[    0.112516] usbcore: registered new device driver usb
[    0.113085] Advanced Linux Sound Architecture Driver Initialized.
[    0.113761] Bluetooth: Core ver 2.22
[    0.113821] NET: Registered protocol family 31
[    0.113842] Bluetooth: HCI device and connection manager initialized
[    0.113869] Bluetooth: HCI socket layer initialized
[    0.113893] Bluetooth: L2CAP socket layer initialized
[    0.113933] Bluetooth: SCO socket layer initialized
[    0.114722] clocksource: Switched to clocksource arch_sys_counter
[    0.169262] NET: Registered protocol family 2
[    0.169885] TCP established hash table entries: 4096 (order: 2, 16384 bytes)
[    0.169953] TCP bind hash table entries: 4096 (order: 3, 32768 bytes)
[    0.170029] TCP: Hash tables configured (established 4096 bind 4096)
[    0.170116] UDP hash table entries: 256 (order: 1, 8192 bytes)
[    0.170160] UDP-Lite hash table entries: 256 (order: 1, 8192 bytes)
[    0.170333] NET: Registered protocol family 1
[    0.170382] PCI: CLS 0 bytes, default 64
[    0.174074] workingset: timestamp_bits=14 max_order=19 bucket_order=5
[    0.187336] bounce: pool size: 64 pages
[    0.187579] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    0.187614] io scheduler noop registered
[    0.187632] io scheduler deadline registered
[    0.187820] io scheduler cfq registered (default)
[    0.257808] Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled
[    0.259886] console [ttyS0] disabled
[    0.280078] 11004000.serial: ttyS0 at MMIO 0x11004000 (irq = 195, base_baud = 1625000) is a ST16650V2
[    0.961364] console [ttyS0] enabled
[    0.965850] mtk_rng 1020f000.rng: registered RNG driver
[    0.977719] loop: module loaded
[    0.981036] [WMT-DETECT][I]wmt_detect_driver_init:driver(major 154) installed success
[    0.988911] [SDIO-DETECT][I]sdio_detect_init:sdio_register_driver() ret=0
[    0.995825] MTK-BTIF[E]hal_btif_clk_get_and_prepare(286):[CCF]clk_btif=dee431c0
[    1.003110] MTK-BTIF[E]hal_btif_clk_get_and_prepare(292):[CCF]clk_btif_apdma=dee43240
[    1.012278] mt6323-regulator mt6323-regulator: Chip ID = 0x2023
[    1.027788] libphy: Fixed MDIO Bus: probed
[    1.032105] 2.mt7530 supply core not found, using dummy regulator
[    1.038265] 2.mt7530 supply io not found, using dummy regulator
[    1.044188] mt7530 2.mt7530: GPIO lookup for consumer reset
[    1.049746] mt7530 2.mt7530: using device tree for GPIO lookup
[    1.055561] of_get_named_gpiod_flags: can't parse 'reset-gpios' property of node '/mt7530@0[0]'
[    1.064211] of_get_named_gpiod_flags: can't parse 'reset-gpio' property of node '/mt7530@0[0]'
[    1.072787] mt7530 2.mt7530: using lookup tables for GPIO lookup
[    1.078771] mt7530 2.mt7530: lookup for GPIO reset failed
[    1.084240] mt7530: probe of 2.mt7530 failed with error -22
[    1.089985] mt7530 3.switch: GPIO lookup for consumer reset
[    1.095552] mt7530 3.switch: using device tree for GPIO lookup
[    1.101360] of_get_named_gpiod_flags: parsed 'reset-gpios' property of node '/switch[0]' - status (0)
[    1.133399] mtk_soc_eth 1b100000.ethernet: chip id = 7623
[    1.139035] libphy: mdio: probed
[    1.142279] mtk_soc_eth 1b100000.ethernet: generated random MAC address 2a:a6:a6:f6:49:86
[    1.150448] of_get_named_gpiod_flags: can't parse 'link-gpios' property of node '/ethernet@1b100000/mac@0/fixed-link[0]'
[    1.161989] mtk_soc_eth 1b100000.ethernet: connected mac 0 to PHY at fixed-0:00 [uid=00000000, driver=Generic PHY]
[    1.172889] mtk_soc_eth 1b100000.ethernet eth0: mediatek frame engine at 0xe10a0000, irq 211
[    1.181337] mtk_soc_eth 1b100000.ethernet: generated random MAC address 8a:f5:85:d7:74:1b
[    1.189498] of_get_named_gpiod_flags: can't parse 'link-gpios' property of node '/ethernet@1b100000/mac@1/fixed-link[0]'
[    1.200657] mtk_soc_eth 1b100000.ethernet: connected mac 1 to PHY at fixed-0:01 [uid=00000000, driver=Generic PHY]
[    1.211454] mtk_soc_eth 1b100000.ethernet eth1: mediatek frame engine at 0xe10a0000, irq 211
[    1.220192] xhci-mtk 1a1c0000.usb: fail to get vbus
[    1.225155] xhci-mtk 1a240000.usb: fail to get vbus
[    1.230135] usbcore: registered new interface driver usb-storage
[    1.236233] usbcore: registered new interface driver usbserial
[    1.242411] mousedev: PS/2 mouse device common for all mice
[    1.248895] mediatek-mt7623-pinctrl 1000b000.pinctrl: invalid function 1 on pin 57 .
[    1.256633] i2c-mt65xx: probe of 11008000.i2c failed with error -22
[    1.263161] MTK_WDT_NONRST_REG(0)
[    1.267180] mtk-wdt 10007000.watchdog: Watchdog enabled (timeout=31 sec, nowayout=0)
[    1.276247] cpu cpu0: dummy supplies not allowed
[    1.282297] mtk-msdc 11240000.mmc: GPIO lookup for consumer cd
[    1.288128] mtk-msdc 11240000.mmc: using device tree for GPIO lookup
[    1.294455] of_get_named_gpiod_flags: parsed 'cd-gpios' property of node '/mmc@11240000[0]' - status (0)
[    1.303918] mtk-msdc 11240000.mmc: Got CD GPIO
[    1.308351] mtk-msdc 11240000.mmc: GPIO lookup for consumer wp
[    1.314148] mtk-msdc 11240000.mmc: using device tree for GPIO lookup
[    1.320474] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/mmc@11240000[0]'
[    1.329220] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/mmc@11240000[0]'
[    1.337881] mtk-msdc 11240000.mmc: using lookup tables for GPIO lookup
[    1.344367] mtk-msdc 11240000.mmc: lookup for GPIO wp failed
[    1.405619] mtk-msdc 11230000.mmc: GPIO lookup for consumer wp
[    1.411427] mtk-msdc 11230000.mmc: using device tree for GPIO lookup
[    1.417772] of_get_named_gpiod_flags: can't parse 'wp-gpios' property of node '/mmc@11230000[0]'
[    1.426530] of_get_named_gpiod_flags: can't parse 'wp-gpio' property of node '/mmc@11230000[0]'
[    1.435195] mtk-msdc 11230000.mmc: using lookup tables for GPIO lookup
[    1.441683] mtk-msdc 11230000.mmc: lookup for GPIO wp failed
[    1.492877] mmc0: host does not support reading read-only switch, assuming write-enable
[    1.504193] mmc0: new high speed SDHC card at address aaaa
[    1.510374] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/blue[0]' - status (0)
[    1.519479] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/green[0]' - status (0)
[    1.528637] of_get_named_gpiod_flags: parsed 'gpios' property of node '/leds/red[0]' - status (0)
[    1.538008] mmcblk0: mmc0:aaaa SL08G 7.40 GiB 
[    1.544373]  mmcblk0: p1 p2
[    1.551499] hidraw: raw HID events driver (C) Jiri Kosina
[    1.557073] usbcore: registered new interface driver usbhid
[    1.562614] usbhid: USB HID core driver
[    1.567321] NET: Registered protocol family 17
[    1.571888] 8021q: 802.1Q VLAN Support v1.8
[    1.576289] ThumbEE CPU extension supported.
[    1.580543] Registering SWP/SWPB emulation handler
[    1.599578] mmc1: new high speed MMC card at address 0001
[    1.605643] mmcblk1: mmc1:0001 8WPD3R 7.28 GiB 
[    1.610391] mmcblk1boot0: mmc1:0001 8WPD3R partition 1 4.00 MiB
[    1.616525] mmcblk1boot1: mmc1:0001 8WPD3R partition 2 4.00 MiB
[    1.622621] mmcblk1rpmb: mmc1:0001 8WPD3R partition 3 512 KiB
[    1.698215] mtk-pcie 1a140000.pcie-controller: Port0 link down
[    1.734529] mtk-pcie 1a140000.pcie-controller: PCI host bridge to bus 0000:00
[    1.741661] pci_bus 0000:00: root bus resource [io  0x0000-0xffff] (bus address [0x1a160000-0x1a16ffff])
[    1.751113] pci_bus 0000:00: root bus resource [mem 0x60000000-0x6fffffff]
[    1.757964] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.763458] pci 0000:00:01.0: [14c3:0801] type 01 class 0x060400
[    1.769471] pci 0000:00:01.0: reg 0x14: [mem 0x00000000-0x0000ffff]
[    1.775784] pci 0000:00:01.0: supports D1
[    1.779772] pci 0000:00:01.0: PME# supported from D0 D1 D3hot
[    1.785767] PCI: bus0: Fast back to back transfers disabled
[    1.791312] pci 0000:00:01.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[    1.799461] pci 0000:01:00.0: [1b21:0611] type 00 class 0x010185
[    1.805470] pci 0000:01:00.0: reg 0x10: initial BAR value 0x00000000 invalid
[    1.812475] pci 0000:01:00.0: reg 0x10: [io  size 0x0008]
[    1.817864] pci 0000:01:00.0: reg 0x14: initial BAR value 0x00000000 invalid
[    1.824883] pci 0000:01:00.0: reg 0x14: [io  size 0x0004]
[    1.830257] pci 0000:01:00.0: reg 0x18: initial BAR value 0x00000000 invalid
[    1.837275] pci 0000:01:00.0: reg 0x18: [io  size 0x0008]
[    1.842649] pci 0000:01:00.0: reg 0x1c: initial BAR value 0x00000000 invalid
[    1.849667] pci 0000:01:00.0: reg 0x1c: [io  size 0x0004]
[    1.855054] pci 0000:01:00.0: reg 0x20: initial BAR value 0x00000000 invalid
[    1.862060] pci 0000:01:00.0: reg 0x20: [io  size 0x0010]
[    1.867448] pci 0000:01:00.0: reg 0x24: [mem 0x00000000-0x000001ff]
[    1.873685] pci 0000:01:00.0: reg 0x30: [mem 0x00000000-0x0000ffff pref]
[    1.904763] PCI: bus1: Fast back to back transfers disabled
[    1.910310] pci_bus 0000:01: busn_res: [bus 01-ff] end is updated to 01
[    1.917086] pci 0000:00:01.0: BAR 8: assigned [mem 0x60000000-0x600fffff]
[    1.923839] pci 0000:00:01.0: BAR 9: assigned [mem 0x60100000-0x601fffff pref]
[    1.931046] pci 0000:00:01.0: BAR 1: assigned [mem 0x60200000-0x6020ffff]
[    1.937813] pci 0000:00:01.0: BAR 7: assigned [io  0x1000-0x1fff]
[    1.943878] pci 0000:01:00.0: BAR 6: assigned [mem 0x60100000-0x6010ffff pref]
[    1.951080] pci 0000:01:00.0: BAR 5: assigned [mem 0x60000000-0x600001ff]
[    1.957845] pci 0000:01:00.0: BAR 4: assigned [io  0x1000-0x100f]
[    1.963906] pci 0000:01:00.0: BAR 0: assigned [io  0x1010-0x1017]
[    1.969981] pci 0000:01:00.0: BAR 2: assigned [io  0x1018-0x101f]
[    1.976055] pci 0000:01:00.0: BAR 1: assigned [io  0x1020-0x1023]
[    1.982118] pci 0000:01:00.0: BAR 3: assigned [io  0x1024-0x1027]
[    1.988194] pci 0000:00:01.0: PCI bridge to [bus 01]
[    1.993131] pci 0000:00:01.0:   bridge window [io  0x1000-0x1fff]
[    1.999204] pci 0000:00:01.0:   bridge window [mem 0x60000000-0x600fffff]
[    2.005966] pci 0000:00:01.0:   bridge window [mem 0x60100000-0x601fffff pref]
[    2.013250] pcieport 0000:00:01.0: enabling device (0140 -> 0143)
[    2.019515] pcieport 0000:00:01.0: Signaling PME through PCIe PME interrupt
[    2.026456] pci 0000:01:00.0: Signaling PME through PCIe PME interrupt
[    2.032948] pcie_pme 0000:00:01.0:pcie001: service driver pcie_pme loaded
[    2.039993] ahci 0000:01:00.0: version 3.0
[    2.044079] ahci 0000:01:00.0: enabling device (0140 -> 0143)
[    2.049889] ahci 0000:01:00.0: SSS flag set, parallel bus scan disabled
[    2.056528] ahci 0000:01:00.0: AHCI 0001.0200 32 slots 2 ports 6 Gbps 0x3 impl IDE mode
[    2.064493] ahci 0000:01:00.0: flags: 64bit ncq sntf stag led clo pmp pio slum part ccc sxs 
[    2.074613] scsi host0: ahci
[    2.078035] scsi host1: ahci
[    2.081215] ata1: SATA max UDMA/133 abar m512@0x60000000 port 0x60000100 irq 219
[    2.088612] ata2: SATA max UDMA/133 abar m512@0x60000000 port 0x60000180 irq 219
[    2.096303] mt7530 3.switch: GPIO lookup for consumer reset
[    2.101849] mt7530 3.switch: using device tree for GPIO lookup
[    2.107683] of_get_named_gpiod_flags: parsed 'reset-gpios' property of node '/switch[0]' - status (0)
[    2.117020] DSA: switch 0 0 parsed
[    2.120402] DSA: tree 0 parsed
[    2.164766] mtk_soc_eth 1b100000.ethernet eth0: rx pause enabled, tx pause enabled
[    2.244743] mtk_soc_eth 1b100000.ethernet eth1: rx pause enabled, tx pause enabled
[    2.279035] libphy: dsa slave smi: probed
[    2.283216] Generic PHY dsa-0.0:00: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0.0:00, irq=-1)
[    2.293705] Generic PHY dsa-0.0:01: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0.0:01, irq=-1)
[    2.304068] Generic PHY dsa-0.0:02: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0.0:02, irq=-1)
[    2.314418] Generic PHY dsa-0.0:03: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0.0:03, irq=-1)
[    2.324764] Generic PHY dsa-0.0:04: attached PHY driver [Generic PHY] (mii_bus:phy_addr=dsa-0.0:04, irq=-1)
[    2.334975] of_get_named_gpiod_flags: can't parse 'link-gpios' property of node '/switch/ports/port@5/fixed-link[0]'
[    2.347717] of_get_named_gpiod_flags: can't parse 'link-gpios' property of node '/switch/ports/port@6/fixed-link[0]'
[    2.360598] xhci-mtk 1a1c0000.usb: fail to get vbus
[    2.365674] xhci-mtk 1a240000.usb: fail to get vbus
[    2.370620] hctosys: unable to open rtc device (rtc0)
[    2.375862] clk: Not disabling unused clocks
[    2.380149] vusb: disabling
[    2.382938] vmc: disabling
[    2.385664] vgp1: disabling
[    2.388471] vcamaf: disabling
[    2.391443] ALSA device list:
[    2.394390]   No soundcards found.
[    2.426194] ata1: SATA link down (SStatus 0 SControl 300)
[    2.756193] ata2: SATA link down (SStatus 0 SControl 300)
[    2.766758] EXT4-fs (mmcblk0p2): mounted filesystem without journal. Opts: (null)
[    2.774255] VFS: Mounted root (ext4 filesystem) readonly on device 179:2.
[    2.788689] devtmpfs: mounted
[    2.792761] Freeing unused kernel memory: 1024K
[    2.896471] random: fast init done
[    3.125818] systemd[1]: System time before build time, advancing clock.
[    3.617669] NET: Registered protocol family 10
[    3.659759] ip_tables: (C) 2000-2006 Netfilter Core Team
[    3.676600] systemd[1]: systemd 232 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +A)
[    3.695256] systemd[1]: Detected architecture arm.

Welcome to Debian GNU/Linux 9 (stretch)!

[    3.735753] systemd[1]: Set hostname to <bpi-r2>.
[    4.062008] systemd[1]: Listening on fsck to fsckd communication Socket.
[  OK  ] Listening on fsck to fsckd communication Socket.
[    4.104934] systemd[1]: Reached target Remote File Systems.
[  OK  ] Reached target Remote File Systems.
[    4.145504] systemd[1]: Created slice System Slice.
[  OK  ] Created slice System Slice.
[    4.175078] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[    4.215342] systemd[1]: Reached target Swap.
[  OK  ] Reached target Swap.
[    4.245100] systemd[1]: Listening on Syslog Socket.
[  OK  ] Listening on Syslog Socket.
[    4.274973] systemd[1]: Listening on udev Kernel Socket.
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Listening on udev Control Socket.
[  OK  ] Created slice system-getty.slice.
[  OK  ] Created slice system-serial\x2dgetty.slice.
[  OK  ] Listening on Journal Socket.
     Starting File System Check on Root Device...
     Starting Create list of required st��…ce nodes for the current kernel...
     Starting Load Kernel Modules...
[  OK  ] Started Dispatch Password Requests to Console Directory Watch.
[  OK  ] Listening on Journal Socket (/dev/log).
         Starting Journal Service...
[  OK  ] Started Forward Password Requests to Wall Directory Watch.
[  OK  ] Reached target Paths.
[  OK  ] Reached target Encrypted Volumes.
         Mounting Debug File System...
[  OK  ] Created slice User and Session Slice.
[  OK  ] Reached target Slices.
[  OK  ] Mounted Debug File System.
[  OK  ] Started Journal Service.
[  OK  ] Started Create list of required sta��…vice nodes for the current kernel.
[  OK  ] Started Load Kernel Modules.
[  OK  ] Started File System Check Daemon to report status.
         Starting Apply Kernel Variables...
         Starting Create Static Device Nodes in /dev...
[  OK  ] Started Apply Kernel Variables.mplete)
[  OK  ] Started Create Static Device Nodes in /dev.
         Starting udev Kernel Device Manager...
[  OK  ] Started udev Kernel Device Manager.te)
[  OK  ] Started File System Check on Root Device.
[    6.333561] EXT4-fs (mmcblk0p2): re-mounted. Opts: errors=remount-ro
         Starting Remount Root and Kernel File Systems...
[  OK  ] Started Remount Root and Kernel File Systems.
[  OK  ] Reached target Local File Systems (Pre).
         Starting Load/Save Random Seed...
         Starting udev Coldplug all Devices...
         Starting Flush Journal to Persistent Storage...
[  OK  ] Started Load/Save Random Seed.
[    6.597168] systemd-journald[166]: Received request to flush runtime journal from PID 1
[  OK  ] Started Flush Journal to Persistent Storage.
[  OK  ] Started udev[    6.969396] xhci-mtk 1a1c0000.usb: fail to get vbus
 Coldplug all De[    6.975215] xhci-mtk 1a240000.usb: fail to get vbus
vices.
[    6.981343] xhci-mtk 1a1c0000.usb: fail to get vbus
[    6.987224] xhci-mtk 1a240000.usb: fail to get vbus
[  OK  ] Found device /dev/ttyS0.
[    7.016016] xhci-mtk 1a1c0000.usb: fail to get vbus
[    7.021229] xhci-mtk 1a240000.usb: fail to get vbus
[    7.071941] xhci-mtk 1a1c0000.usb: fail to get vbus
[    7.077271] xhci-mtk 1a240000.usb: fail to get vbus
[    7.086237] Unable to handle kernel NULL pointer dereference at virtual address 00000000
[    7.094343] pgd = dc3dc000
[    7.097178] [00000000] *pgd=00000000
[    7.100799] Internal error: Oops: 5 [#1] SMP ARM
[    7.105418] Modules linked in: snd_soc_mt2701_afe(+) mtk_thermal thermal_sys snd_soc_mtk_common spi_mt65xx pwm_mediatek mt6577_auxadc ip_tables x_tables 6
[    7.119659] CPU: 1 PID: 206 Comm: systemd-udevd Not tainted 4.9.92-4.9-main-00063-g45712f3558b9 #37
[    7.128656] Hardware name: Mediatek Cortex-A7 (Device Tree)
[    7.134219] task: dc3d0000 task.stack: dc3d8000
[    7.138755] PC is at clk_hw_round_rate+0x28/0x54
[    7.143381] LR is at clk_divider_bestdiv+0x188/0x27c
[    7.148344] pc : [<c041e35c>]    lr : [<c04244c4>]    psr: 60010013
[    7.148344] sp : dc3d9940  ip : dc3d9970  fp : dc3d996c
[    7.159781] r10: de886040  r9 : 00000000  r8 : 00000000
[    7.165001] r7 : 00000000  r6 : 02ee0000  r5 : 02ee0000  r4 : 00000000
[    7.171518] r3 : de885d80  r2 : dc3d994c  r1 : dc3d9948  r0 : 00000000
[    7.178039] Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA ARM  Segment none
[    7.185165] Control: 10c5387d  Table: 9c3dc06a  DAC: 00000051
[    7.190907] Process systemd-udevd (pid: 206, stack limit = 0xdc3d8218)
[    7.197418] Stack: (0xdc3d9940 to 0xdc3da000)
[    7.201782] 9940: dc3d9964 dc3d9950 c041fe54 c03bbb4c de88c200 c0ad1b78 02ee0000 00000001
[    7.209950] 9960: dc3d99c4 dc3d9970 c04244c4 c041e340 00000008 dc3d9a38 00000000 00000000
[    7.218111] 9980: 00000057 00000000 00000000 00000000 c041fe7c c041fe38 de880f00 dc3d9a38
[    7.226269] 99a0: dc3d9a2c 02ee0000 00000000 dc3d9adc de83d380 00000006 dc3d99ec dc3d99c8
[    7.234430] 99c0: c04245ec c0424348 00000008 00000000 dc3d99fc 00000000 02ee0000 de885500
[    7.242590] 99e0: dc3d9a04 dc3d99f0 c04248b4 c04245c4 00000008 00000000 dc3d9a1c dc3d9a08
[    7.250731] 9a00: c041e2cc c042487c 00000004 de885d80 dc3d9a6c dc3d9a20 c04200c0 c041e260
[    7.258866] 9a20: e100200c 00000000 e1002000 02ee0000 00000000 ffffffff 00000000 00000000
[    7.267000] 9a40: c08a5f9c de8845c0 dc3d9adc dc3d9adc 00000000 00000000 00000000 de886240
[    7.275135] 9a60: dc3d9a7c dc3d9a70 c04201fc c041ffe4 dc3d9abc dc3d9a80 c0425d54 c04201ec
[    7.283270] 9a80: 00000000 bf0c073c bf0bfd30 dea82500 dc3d9ad0 c0425ce0 dc3d9adc 02ee0000
[    7.291405] 9aa0: 00000000 00000000 00000000 de886240 dc3d9ad4 dc3d9ac0 c041e2ac c0425cec
[    7.299542] 9ac0: de885480 02ee0000 dc3d9b04 dc3d9ad8 c041e374 c041e260 dc3d9b0c 02ee0000
[    7.307676] 9ae0: 00000000 ffffffff 05dc0000 de83e5c0 02ee0000 00000001 dc3d9b5c dc3d9b08
[    7.315811] 9b00: c04244c4 c041e340 00000008 dc3d9ba8 00000000 00000000 00000057 00000000
[    7.323946] 9b20: 05dc0000 00000000 00000121 c0424708 dc3d9b5c dc3d9ba8 02ee0000 de885500
[    7.332082] 9b40: 00000000 dea8f800 bf0bd6dc bf0c1880 dc3d9b84 dc3d9b60 c04245ec c0424348
[    7.340216] 9b60: 00000008 00000000 de887380 de885e80 de885500 c0424870 dc3d9b9c dc3d9b88
[    7.348351] 9b80: c04248b4 c04245c4 00000008 00000000 dc3d9bec dc3d9ba0 c042046c c042487c
[    7.356485] 9ba0: de885f80 de83d380 05dc0000 00000000 ffffffff c041e394 de885800 c0420b44
[    7.364620] 9bc0: de885e80 a0010013 de885e80 02ee0000 02ee0000 02ee0000 dea8f800 bf0bd6dc
[    7.372755] 9be0: dc3d9c0c dc3d9bf0 c0422534 c0420298 dc4d6200 02ee0000 dc4bf690 02ee0000
[    7.380890] 9c00: dc3d9c24 dc3d9c10 c0422604 c04224e4 dc363a10 00000000 dc3d9c4c dc3d9c28
[    7.389025] 9c20: bf0bc4d0 c04225e0 dc3d9c4c dc3d9c38 dc4bf690 dc4bf690 dea8f810 dc363a10
[    7.397160] 9c40: dc3d9c74 dc3d9c50 bf0bcc74 bf0bc3a4 dc4bf690 00000000 dea8f810 dc363a10
[    7.405296] 9c60: dc4bf690 00000000 dc3d9cac dc3d9c78 bf0bc23c bf0bcc60 00000000 00000000
[    7.413431] 9c80: dc4bf690 bf0c1144 dea8f810 00000000 bf0c1144 fffffdfb bf0c1144 00000011
[    7.421566] 9ca0: dc3d9ccc dc3d9cb0 c0478dc0 bf0bbee4 c0ef2540 dea8f810 c0e8ce08 00000000
[    7.429700] 9cc0: dc3d9cfc dc3d9cd0 c0476ba8 c0478d6c dc3d9cfc dc3d9ce0 dea8f810 dea8f844
[    7.437836] 9ce0: bf0c1144 c0e8cd30 00000000 dc3d9ec4 dc3d9d1c dc3d9d00 c0476ea8 c0476968
[    7.445971] 9d00: 00000000 bf0c1144 c0476d9c c0e8cd30 dc3d9d44 dc3d9d20 c04746a8 c0476da8
[    7.454106] 9d20: de9a105c dea80334 dc4bf5b8 bf0c1144 dc4bf580 c0e56150 dc3d9d54 dc3d9d48
[    7.462242] 9d40: c047627c c047463c dc3d9d84 dc3d9d58 c0475cfc c047625c bf0bffa4 dc4d0c00
[    7.470378] 9d60: dc3d9d84 bf0c1144 ffffe000 00000000 dc4d0c00 00000000 dc3d9d9c dc3d9d88
[    7.478514] 9d80: c04779e0 c0475b50 bf0c5000 ffffe000 dc3d9dac dc3d9da0 c0478d0c c0477964
[    7.486649] 9da0: dc3d9dbc dc3d9db0 bf0c501c c0478cc8 dc3d9e34 dc3d9dc0 c0101c28 bf0c500c
[    7.494784] 9dc0: 1e824000 c0229abc ddab8200 0000005d 1e824000 c024a95c dc4c56c0 00000000
[    7.502918] 9de0: dc3d9ec4 bf0c1880 dc3d9e24 dc3d9df8 c025a570 c0208344 00000001 c024a95c
[    7.511054] 9e00: dc4d0c40 de801e40 e1e6a000 bf0c1880 dc3d9f44 bf0c1880 dc3d9f44 00000000
[    7.519189] 9e20: dc4d0c00 00000000 dc3d9e5c dc3d9e38 c0208380 c0101be0 dc3d9e5c dc3d9e48
[    7.527347] 9e40: bf0c188c dc3d9f44 00000000 00000000 dc3d9f1c dc3d9e60 c01b9670 c0208318
[    7.535488] 9e60: ffff8000 00007fff bf0c1880 c01b7018 bf000000 c0aa366c c0aa3624 c09033a4
[    7.543625] 9e80: bf0c188c dc3d9eb4 e1ec62a8 bf0c188c bf0c1994 bf0c1884 b6f26bb8 bf0c1a80      
[    7.551761] 9ea0: dc3d9eec dc3d9eb0 c0270d80 c0270bec e1e6a000 00000000 00000000 00000000      
[    7.559896] 9ec0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000      
[    7.568031] 9ee0: 00000000 00000000 00000000 00000000 7fffffff 00000000 0000000f b6f26bb8      
[    7.576166] 9f00: 0000017b c0108f84 dc3d8000 00000000 dc3d9fa4 dc3d9f20 c01b9ad4 c01b8660      
[    7.584301] 9f20: 7fffffff 00000000 00000003 dc3d9f38 c0229c68 e1e6a000 0005c320 00000000
[    7.592437] 9f40: 00000000 e1e6a000 0005c320 e1ec5ba0 e1ec59c8 e1eafe90 00006a80 00007740
[    7.600572] 9f60: 00000000 00000000 00000000 0000215c 0000002d 0000002e 00000017 00000000
[    7.608707] 9f80: 00000010 00000000 00000000 004ef5d8 00000000 40dcfb00 00000000 dc3d9fa8
[    7.616841] 9fa0: c0108dc0 c01b9a1c 004ef5d8 00000000 0000000f b6f26bb8 00000000 b6f27398
[    7.624976] 9fc0: 004ef5d8 00000000 40dcfb00 0000017b 00020000 004de6c4 00000000 004f9af0
[    7.633111] 9fe0: bec328a8 bec32898 b6f20aeb b6e30fc2 600b0030 0000000f a4f78ea8 2c7e3a91
[    7.641291] [<c041e35c>] (clk_hw_round_rate) from [<c04244c4>] (clk_divider_bestdiv+0x188/0x27c)
[    7.650070] [<c04244c4>] (clk_divider_bestdiv) from [<c04245ec>] (divider_round_rate+0x34/0x84)
[    7.658764] [<c04245ec>] (divider_round_rate) from [<c04248b4>] (clk_divider_round_rate+0x44/0x4c)
[    7.667711] [<c04248b4>] (clk_divider_round_rate) from [<c041e2cc>] (clk_core_round_rate_nolock+0x78/0xb0)
[    7.677329] [<c041e2cc>] (clk_core_round_rate_nolock) from [<c04200c0>] (clk_mux_determine_rate_flags+0xe8/0x208)
[    7.687571] [<c04200c0>] (clk_mux_determine_rate_flags) from [<c04201fc>] (__clk_mux_determine_rate+0x1c/0x20)
[    7.697552] [<c04201fc>] (__clk_mux_determine_rate) from [<c0425d54>] (clk_composite_determine_rate+0x74/0x1f4)
[    7.707597] [<c0425d54>] (clk_composite_determine_rate) from [<c041e2ac>] (clk_core_round_rate_nolock+0x58/0xb0)
[    7.717721] [<c041e2ac>] (clk_core_round_rate_nolock) from [<c041e374>] (clk_hw_round_rate+0x40/0x54)
[    7.726898] [<c041e374>] (clk_hw_round_rate) from [<c04244c4>] (clk_divider_bestdiv+0x188/0x27c)
[    7.735643] [<c04244c4>] (clk_divider_bestdiv) from [<c04245ec>] (divider_round_rate+0x34/0x84)
[    7.744299] [<c04245ec>] (divider_round_rate) from [<c04248b4>] (clk_divider_round_rate+0x44/0x4c)
[    7.753215] [<c04248b4>] (clk_divider_round_rate) from [<c042046c>] (clk_calc_new_rates+0x1e0/0x2d0)
[    7.762303] [<c042046c>] (clk_calc_new_rates) from [<c0422534>] (clk_core_set_rate_nolock+0x5c/0xfc)
[    7.771392] [<c0422534>] (clk_core_set_rate_nolock) from [<c0422604>] (clk_set_rate+0x30/0x40)
[    7.779992] [<c0422604>] (clk_set_rate) from [<bf0bc4d0>] (mt2701_turn_on_a1sys_clock+0x138/0x254     [snd_soc_mt2701_afe])
[    7.790778] [<bf0bc4d0>] (mt2701_turn_on_a1sys_clock [snd_soc_mt2701_afe]) from [<bf0bcc74>] (mt2701_afe_enable_clock+0x20/0x150 [snd_soc_mt2701_afe])
[    7.804235] [<bf0bcc74>] (mt2701_afe_enable_clock [snd_soc_mt2701_afe]) from [<bf0bc23c>] (mt2701_afe_pcm_dev_probe+0x364/0x3a0 [snd_soc_mt2701_afe])
[    7.817594] [<bf0bc23c>] (mt2701_afe_pcm_dev_probe [snd_soc_mt2701_afe]) from [<c0478dc0>] (platform_drv_probe+0x60/0xc0)
[    7.828531] [<c0478dc0>] (platform_drv_probe) from [<c0476ba8>] (driver_probe_device+0x24c/0x440)
[    7.837369] [<c0476ba8>] (driver_probe_device) from [<c0476ea8>] (__driver_attach+0x10c/0x128)
[    7.845942] [<c0476ea8>] (__driver_attach) from [<c04746a8>] (bus_for_each_dev+0x78/0xac)
[    7.854080] [<c04746a8>] (bus_for_each_dev) from [<c047627c>] (driver_attach+0x2c/0x30)
[    7.862047] [<c047627c>] (driver_attach) from [<c0475cfc>] (bus_add_driver+0x1b8/0x278)
[    7.870013] [<c0475cfc>] (bus_add_driver) from [<c04779e0>] (driver_register+0x88/0x104)
[    7.878066] [<c04779e0>] (driver_register) from [<c0478d0c>] (__platform_driver_register+0x50/0x58)
[    7.887084] [<c0478d0c>] (__platform_driver_register) from [<bf0c501c>] (mt2701_afe_pcm_driver_init+0x1c/0x24 [snd_soc_mt2701_afe])
[    7.898867] [<bf0c501c>] (mt2701_afe_pcm_driver_init [snd_soc_mt2701_afe]) from [<c0101c28>] (do_one_initcall+0x54/0x17c)
[    7.909771] [<c0101c28>] (do_one_initcall) from [<c0208380>] (do_init_module+0x74/0x3c4)
[    7.917856] [<c0208380>] (do_init_module) from [<c01b9670>] (load_module+0x101c/0x1208)
[    7.925853] [<c01b9670>] (load_module) from [<c01b9ad4>] (SyS_finit_module+0xc4/0x100)
[    7.933743] [<c01b9ad4>] (SyS_finit_module) from [<c0108dc0>] (ret_fast_syscall+0x0/0x48)
[    7.941902] Code: e1a04000 e1a05001 e24b2020 e24b1024 (e5900000) 
[    7.948077] ---[ end trace 1d07f909f052b223 ]---
[  OK  ] Found device /dev/mmcblk0p1.
         Mounting /boot...
[[  215.158378] random: crng init done
[FAILED] Failed to mount /boot.
See 'systemctl status boot.mount' for details.
[DEPEND] Dependency failed for Local File Systems.

(victors) #39

in my compiled kernel 4.9.44-bpi-r2-4.9_main hw nat works good

root@bpi-r2:~# modprobe mtkhnat
[  131.197503] mediatek_soc_hnat 1b100000.hnat: wan = wan
[  131.204055] mediatek_soc_hnat 1b100000.hnat: hwnat start
[  131.209862] xhci-mtk 1a1c0000.usb: fail to get vbus
[  131.215122] xhci-mtk 1a240000.usb: fail to get vbus
root@bpi-r2:~# lsmod
Module                  Size  Used by
mtkhnat                14800  0

[victor@WCESM0031062 ~]$ iperf3 -c 192.168.76.1
Connecting to host 192.168.76.1, port 5201
[  5] local 192.168.0.148 port 57096 connected to 192.168.76.1 port 5201
[ ID] Interval           Transfer     Bitrate         Retr  Cwnd
[  5]   0.00-1.00   sec   112 MBytes   937 Mbits/sec    0    154 KBytes       
[  5]   1.00-2.00   sec   111 MBytes   932 Mbits/sec    0    173 KBytes       
[  5]   2.00-3.00   sec   111 MBytes   935 Mbits/sec    0    181 KBytes       
[  5]   3.00-4.00   sec   112 MBytes   935 Mbits/sec    0    181 KBytes       
[  5]   4.00-5.00   sec   111 MBytes   934 Mbits/sec    0    191 KBytes       
[  5]   5.00-6.00   sec   111 MBytes   932 Mbits/sec    0    191 KBytes       
[  5]   6.00-7.00   sec   112 MBytes   939 Mbits/sec    0    211 KBytes       
[  5]   7.00-8.00   sec   111 MBytes   935 Mbits/sec    0    272 KBytes       
[  5]   8.00-9.00   sec   112 MBytes   937 Mbits/sec    0    272 KBytes       
[  5]   9.00-10.00  sec   112 MBytes   938 Mbits/sec    0    272 KBytes       
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval           Transfer     Bitrate         Retr
[  5]   0.00-10.00  sec  1.09 GBytes   936 Mbits/sec    0             sender
[  5]   0.00-10.00  sec  1.09 GBytes   935 Mbits/sec                  receiver

I added a module mtkhnat to the file /etc/modules for upload at startup

And I have a question. Will hwnat work with the ppoe connection?


(Frank W.) #40

maybe you have to set wan=ppp0 anyhow :slight_smile: @garywang, are there any options for hnat-module? because hnat-module is triggered by kernels netfilter-nat-chain hnat should work for the interface you have setup masquerading/nat

can you please show “cat /proc/interrupts” and try with 4.9.92 from 4.9-main (dash instead of underscore)