View unanswered posts | View active topics It is currently Sun May 19, 2019 7:17 am



Reply to topic  [ 10 posts ] 
 Need some help with compiling. Ethernet download speed slow. 
Author Message

Joined: Fri Jul 28, 2017 5:37 am
Posts: 5
Post Need some help with compiling. Ethernet download speed slow.
Hi everyone!
I'm desperate with ethernet download speed and I need some help.

I have been using Utilite Pro (Debian + kernel 3.0.35) as a router/proxy for some years and everything have worked good. Now I want to update debian version and I need to upgrade the kernel but I cannot get the ethernet working properly, the download speed is low. My internet connection is 300Mbps and now I only reach 50Mbps.

I have tried to compile the kernel with many differents options but I cannot make it work as it should.

Has someone had the same problem? Do you have any idea what I'm doing wrong?

Thanks in advance.

PS: I have been trying with kernel v4.1.15 from http://git.freescale.com/git/cgit.cgi/i ... 6-imx.git/
and also with patches from http://www.compulab.com/wp-content/uplo ... -01-11.zip
PS2: I have been also trying other git branches searching in google (kernel v3 and v4) and it has failed too.
PS3: I have only made it working properly compiling kernel v3.0.35 from http://www.compulab.com/wp-content/uplo ... -11-12.zip


Fri Jul 28, 2017 6:19 am
Profile

Joined: Sat Jan 18, 2014 8:59 pm
Posts: 187
Location: Hamburg, Germany
Post Re: Need some help with compiling. Ethernet download speed s
You may try this kernel source tree here and this defconfig.


Fri Jul 28, 2017 12:03 pm
Profile

Joined: Fri Jul 28, 2017 5:37 am
Posts: 5
Post Re: Need some help with compiling. Ethernet download speed s
Thank you umiddelb.
I'll try it as soon as I can and I'll tell you.


Fri Jul 28, 2017 12:20 pm
Profile

Joined: Fri Jul 28, 2017 5:37 am
Posts: 5
Post Re: Need some help with compiling. Ethernet download speed s
Now eth1 doesn't exist.


Sat Jul 29, 2017 10:13 pm
Profile

Joined: Sat May 14, 2016 1:24 pm
Posts: 56
Post Re: Need some help with compiling. Ethernet download speed s
Hi,

rteap wrote:
Now eth1 doesn't exist.

Both ethernet interfaces are definitely supported by the kernel tree pointed out by umiddelb.

First, please make sure you load the correct devicetree blob: it's imx6q-utilite-pro.dtb in this tree (and in the mainline kernel). Of course, you can rename the file such that U-Boot can find it. I admit that this should be documented somewhere but, unfortuntely, it isn't...

You can verify that the correct devcetree blob is in place by looking at the "Machine model" reported by dmesg (either grep for that term or just look at it, it is one of the first lines in dmesg). It sould be similar to
Code:
[    0.000000] Machine model: CompuLab Utilite Pro

and neither contain "cm-fx6" nor "SBC-FX6m".

In case you load the correct blob, it would be nice to get a look at the dmesg output -- because then something is indeed wrong and we should fix it.

Cheers,
Christopher


Sat Jul 29, 2017 10:42 pm
Profile

Joined: Fri Jul 28, 2017 5:37 am
Posts: 5
Post Re: Need some help with compiling. Ethernet download speed s
Hi!!!
Thanks for your replay.

I don't know what I'm doing wrong, I still can not get eth1 works.

First of all I'm going to describe what I'm doing:

#export ARCH=arm
#export CROSS_COMPILE=arm-linux-gnueabihf-
#export DTB=$(ls -al arch/arm/boot/dts | awk '(/utilite-pro.*dts$/)&&($0=$NF)&&(gsub(/dts/,"dtb"))' ORS=" ")
or
#export DTB=imx6q-utilite-pro.dtb

#make im6x_defconfig
#make make zImage modules ${DTB} && INSTALL_MOD_PATH=/home/development/CM-FX6/rootfs make modules_install

My dmesg output:

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.12.0-utilite-pro (root@virtualdebian) (gcc version 4.9.2 ( 4.9.2-10) ) #2 SMP Sun Jul 30 10:33:26 CEST 2017
[ 0.000000] CPU: ARMv7 Processor [412fc09a] revision 10 (ARMv7), cr=50c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: CompuLab Utilite Pro
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] cma: Reserved 256 MiB at 0xb0000000
[ 0.000000] On node 0 totalpages: 524288
[ 0.000000] free_area_init_node: node 0, pgdat 80b70a00, node_mem_map be738000
[ 0.000000] Normal zone: 2304 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 262144 pages, LIFO batch:31
[ 0.000000] HighMem zone: 262144 pages, LIFO batch:31
[ 0.000000] percpu: Embedded 17 pages/cpu @be6d1000 s37120 r8192 d24320 u69632
[ 0.000000] pcpu-alloc: s37120 r8192 d24320 u69632 alloc=17*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: 521984
[ 0.000000] Kernel command line: root=/dev/sda3 rw rootwait video=mxcfb0:dev=dvi,1024x768M@60,if=RGB24
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 1796360K/2097152K available (5120K kernel code, 454K rwdata, 2924K rodata, 1024K init, 8236K bss, 38648K reserved, 262144K cma-reserved, 786432K highmem)
[ 0.000000] Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
vmalloc : 0xc0800000 - 0xff800000 (1008 MB)
lowmem : 0x80000000 - 0xc0000000 (1024 MB)
pkmap : 0x7fe00000 - 0x80000000 ( 2 MB)
modules : 0x7f800000 - 0x7fe00000 ( 6 MB)
.text : 0x80008000 - 0x80600000 (6112 kB)
.init : 0x80a00000 - 0x80b00000 (1024 kB)
.data : 0x80b00000 - 0x80b71860 ( 455 kB)
.bss : 0x80b73000 - 0x8137e3ac (8237 kB)
[ 0.000000] Running RCU self tests
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU debugfs-based tracing is enabled.
[ 0.000000] RCU lockdep checking is enabled.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] L2C-310 errata 752271 769419 enabled
[ 0.000000] L2C-310 enabling early BRESP for Cortex-A9
[ 0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[ 0.000000] L2C-310 ID prefetch enabled, offset 16 lines
[ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[ 0.000000] L2C-310 cache controller enabled, 16 ways, 1024 kB
[ 0.000000] L2C-310: CACHE_ID 0x410000c7, AUX_CTRL 0x76470001
[ 0.000000] Switching to timer-based delay loop, resolution 333ns
[ 0.000009] sched_clock: 32 bits at 3000kHz, resolution 333ns, wraps every 715827882841ns
[ 0.000040] clocksource: mxc_timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 637086815595 ns
[ 0.002698] Console: colour dummy device 80x30
[ 0.005247] console [tty0] enabled
[ 0.005302] Lock dependency validator: Copyright (c) 2006 Red Hat, Inc., Ingo Molnar
[ 0.005424] ... MAX_LOCKDEP_SUBCLASSES: 8
[ 0.005485] ... MAX_LOCK_DEPTH: 48
[ 0.005545] ... MAX_LOCKDEP_KEYS: 8191
[ 0.005605] ... CLASSHASH_SIZE: 4096
[ 0.005665] ... MAX_LOCKDEP_ENTRIES: 32768
[ 0.005725] ... MAX_LOCKDEP_CHAINS: 65536
[ 0.005785] ... CHAINHASH_SIZE: 32768
[ 0.005844] memory used by lock dependency info: 5167 kB
[ 0.005913] per task-struct memory footprint: 1536 bytes
[ 0.006006] Calibrating delay loop (skipped), value calculated using timer frequency.. 6.00 BogoMIPS (lpj=6000)
[ 0.006137] pid_max: default: 32768 minimum: 301
[ 0.006787] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.006880] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.010759] CPU: Testing write buffer coherency: ok
[ 0.012484] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.014053] Setting up static identity map for 0x10100000 - 0x10100054
[ 0.016957] smp: Bringing up secondary CPUs ...
[ 0.019966] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.022488] CPU2: thread -1, cpu 2, socket 0, mpidr 80000002
[ 0.024646] CPU3: thread -1, cpu 3, socket 0, mpidr 80000003
[ 0.024868] smp: Brought up 1 node, 4 CPUs
[ 0.025159] SMP: Total of 4 processors activated (24.00 BogoMIPS).
[ 0.025245] CPU: All CPU(s) started in SVC mode.
[ 0.028883] devtmpfs: initialized
[ 0.052713] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[ 0.056639] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 3822520892550000 ns
[ 0.056832] futex hash table entries: 1024 (order: 4, 65536 bytes)
[ 0.073848] pinctrl core: initialized pinctrl subsystem
[ 0.079108] NET: Registered protocol family 16
[ 0.096312] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.099941] cpuidle: using governor ladder
[ 0.100148] cpuidle: using governor menu
[ 0.100432] CPU identified as i.MX6Q, silicon rev 1.2
[ 0.117859] vdd1p1: supplied by regulator-dummy
[ 0.119336] vdd3p0: supplied by regulator-dummy
[ 0.120543] vdd2p5: supplied by regulator-dummy
[ 0.121788] vddarm: supplied by regulator-dummy
[ 0.123048] vddpu: supplied by regulator-dummy
[ 0.124289] vddsoc: supplied by regulator-dummy
[ 0.148844] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[ 0.148981] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.151756] imx6q-pinctrl 20e0000.iomuxc: initialized IMX pinctrl driver
[ 0.222006] mxs-dma 110000.dma-apbh: initialized
[ 0.227535] vgaarb: loaded
[ 0.228425] SCSI subsystem initialized
[ 0.229093] libata version 3.00 loaded.
[ 0.229780] usbcore: registered new interface driver usbfs
[ 0.229987] usbcore: registered new interface driver hub
[ 0.230304] usbcore: registered new device driver usb
[ 0.233258] i2c i2c-0: IMX I2C adapter registered
[ 0.233360] i2c i2c-0: can't use DMA, using PIO instead.
[ 0.234686] i2c i2c-1: IMX I2C adapter registered
[ 0.234786] i2c i2c-1: can't use DMA, using PIO instead.
[ 0.236275] i2c i2c-2: IMX I2C adapter registered
[ 0.236375] i2c i2c-2: can't use DMA, using PIO instead.
[ 0.236750] Linux video capture interface: v2.00
[ 0.237167] pps_core: LinuxPPS API ver. 1 registered
[ 0.237252] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 0.237409] PTP clock support registered
[ 0.238027] Advanced Linux Sound Architecture Driver Initialized.
[ 0.243170] clocksource: Switched to clocksource mxc_timer1
[ 0.245098] VFS: Disk quotas dquot_6.6.0
[ 0.245314] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 0.272188] NET: Registered protocol family 2
[ 0.274820] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.275127] TCP bind hash table entries: 8192 (order: 6, 294912 bytes)
[ 0.277626] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.278238] UDP hash table entries: 512 (order: 3, 40960 bytes)
[ 0.278677] UDP-Lite hash table entries: 512 (order: 3, 40960 bytes)
[ 0.279853] NET: Registered protocol family 1
[ 0.281876] RPC: Registered named UNIX socket transport module.
[ 0.282004] RPC: Registered udp transport module.
[ 0.282077] RPC: Registered tcp transport module.
[ 0.282151] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.282246] PCI: CLS 0 bytes, default 64
[ 0.284312] hw perfevents: no interrupt-affinity property for /soc/pmu, guessing.
[ 0.284984] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[ 0.288951] audit: initializing netlink subsys (disabled)
[ 0.289713] audit: type=2000 audit(0.288:1): state=initialized audit_enabled=0 res=1
[ 0.291613] workingset: timestamp_bits=14 max_order=19 bucket_order=5
[ 0.295583] NFS: Registering the id_resolver key type
[ 0.296119] Key type id_resolver registered
[ 0.296226] Key type id_legacy registered
[ 0.296314] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 0.309326] bounce: pool size: 64 pages
[ 0.309978] io scheduler noop registered
[ 0.310056] io scheduler deadline registered
[ 0.310322] io scheduler cfq registered (default)
[ 0.310407] io scheduler kyber registered
[ 0.314102] OF: PCI: host bridge /soc/pcie@1ffc000 ranges:
[ 0.314244] OF: PCI: IO 0x01f80000..0x01f8ffff -> 0x00000000
[ 0.314495] OF: PCI: MEM 0x01000000..0x01efffff -> 0x01000000
[ 0.521248] imx6q-pcie 1ffc000.pcie: link up
[ 0.521337] imx6q-pcie 1ffc000.pcie: Link: Gen2 disabled
[ 0.521419] imx6q-pcie 1ffc000.pcie: Link up, Gen1
[ 0.522166] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00
[ 0.522274] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 0.522361] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 0.522452] pci_bus 0000:00: root bus resource [mem 0x01000000-0x01efffff]
[ 0.522821] pci 0000:00:00.0: [16c3:abcd] type 01 class 0x060400
[ 0.522872] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff]
[ 0.522910] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[ 0.523234] pci 0000:00:00.0: supports D1
[ 0.523253] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold
[ 0.524253] PCI: bus0: Fast back to back transfers disabled
[ 0.524760] pci 0000:01:00.0: [8086:1539] type 00 class 0x020000
[ 0.524905] pci 0000:01:00.0: reg 0x10: [mem 0x00000000-0x0001ffff]
[ 0.525013] pci 0000:01:00.0: reg 0x18: [io 0x0000-0x001f]
[ 0.525134] pci 0000:01:00.0: reg 0x1c: [mem 0x00000000-0x00003fff]
[ 0.525760] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[ 0.531319] PCI: bus1: Fast back to back transfers disabled
[ 0.531734] pci 0000:00:00.0: BAR 0: assigned [mem 0x01000000-0x010fffff]
[ 0.531847] pci 0000:00:00.0: BAR 8: assigned [mem 0x01100000-0x011fffff]
[ 0.531949] pci 0000:00:00.0: BAR 6: assigned [mem 0x01200000-0x0120ffff pref]
[ 0.532062] pci 0000:00:00.0: BAR 7: assigned [io 0x1000-0x1fff]
[ 0.532160] pci 0000:01:00.0: BAR 0: assigned [mem 0x01100000-0x0111ffff]
[ 0.532278] pci 0000:01:00.0: BAR 3: assigned [mem 0x01120000-0x01123fff]
[ 0.532396] pci 0000:01:00.0: BAR 2: assigned [io 0x1000-0x101f]
[ 0.532509] pci 0000:00:00.0: PCI bridge to [bus 01]
[ 0.532591] pci 0000:00:00.0: bridge window [io 0x1000-0x1fff]
[ 0.532686] pci 0000:00:00.0: bridge window [mem 0x01100000-0x011fffff]
[ 0.533690] pcieport 0000:00:00.0: Signaling PME with IRQ 301
[ 0.534324] pcieport 0000:00:00.0: AER enabled with IRQ 301
[ 0.540513] imx-sdma 20ec000.sdma: Direct firmware load for imx/sdma/sdma-imx6q.bin failed with error -2
[ 0.540722] imx-sdma 20ec000.sdma: external firmware not found, using ROM firmware
[ 0.563212] 21e8000.serial: ttymxc1 at MMIO 0x21e8000 (irq = 69, base_baud = 5000000) is a IMX
[ 0.565308] 21f0000.serial: ttymxc3 at MMIO 0x21f0000 (irq = 70, base_baud = 5000000) is a IMX
[ 0.579271] etnaviv gpu-subsystem: bound 134000.gpu (ops gpu_ops)
[ 0.579672] etnaviv gpu-subsystem: bound 130000.gpu (ops gpu_ops)
[ 0.580002] etnaviv gpu-subsystem: bound 2204000.gpu (ops gpu_ops)
[ 0.580105] etnaviv-gpu 134000.gpu: model: GC320, revision: 5007
[ 0.612633] etnaviv-gpu 130000.gpu: model: GC2000, revision: 5108
[ 0.644223] etnaviv-gpu 2204000.gpu: model: GC355, revision: 1215
[ 0.644332] etnaviv-gpu 2204000.gpu: Ignoring GPU with VG and FE2.0
[ 0.647380] [drm] Initialized etnaviv 1.1.0 20151214 for gpu-subsystem on minor 0
[ 0.677016] brd: module loaded
[ 0.702267] loop: module loaded
[ 0.704202] ahci-imx 2200000.sata: fsl,transmit-level-mV not specified, using 00000024
[ 0.704335] ahci-imx 2200000.sata: fsl,transmit-boost-mdB not specified, using 00000480
[ 0.704453] ahci-imx 2200000.sata: fsl,transmit-atten-16ths not specified, using 00002000
[ 0.704571] ahci-imx 2200000.sata: fsl,receive-eq-mdB not specified, using 05000000
[ 0.707985] ahci-imx 2200000.sata: SSS flag set, parallel bus scan disabled
[ 0.708117] ahci-imx 2200000.sata: AHCI 0001.0300 32 slots 1 ports 3 Gbps 0x1 impl platform mode
[ 0.708247] ahci-imx 2200000.sata: flags: ncq sntf stag pm led clo only pmp pio slum part ccc apst
[ 0.711945] scsi host0: ahci-imx
[ 0.713175] ata1: SATA max UDMA/133 mmio [mem 0x02200000-0x02203fff] port 0x100 irq 73
[ 0.720401] nand: No NAND device found
[ 0.729971] m25p80 spi0.0: m25px16 (2048 Kbytes)
[ 0.736726] spi_imx 2008000.ecspi: probed
[ 0.739819] libphy: Fixed MDIO Bus: probed
[ 0.740683] CAN device driver interface
[ 0.743022] fec 2188000.ethernet: 2188000.ethernet supply phy not found, using dummy regulator
[ 0.744842] pps pps0: new PPS source ptp0
[ 0.755739] libphy: fec_enet_mii_bus: probed
[ 0.757158] fec 2188000.ethernet eth0: registered PHC device 0
[ 0.758726] usbcore: registered new interface driver asix
[ 0.758910] usbcore: registered new interface driver ax88179_178a
[ 0.759152] usbcore: registered new interface driver cdc_ether
[ 0.759327] usbcore: registered new interface driver net1080
[ 0.759501] usbcore: registered new interface driver cdc_subset
[ 0.759670] usbcore: registered new interface driver zaurus
[ 0.759877] usbcore: registered new interface driver cdc_ncm
[ 0.759983] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.760073] ehci-pci: EHCI PCI platform driver
[ 0.760240] ehci-platform: EHCI generic platform driver
[ 0.760797] ehci-mxc: Freescale On-Chip EHCI Host driver
[ 0.761738] usbcore: registered new interface driver usb-storage
[ 0.778617] ci_hdrc ci_hdrc.1: EHCI Host Controller
[ 0.779136] ci_hdrc ci_hdrc.1: new USB bus registered, assigned bus number 1
[ 0.789204] ci_hdrc ci_hdrc.1: USB 2.0 started, EHCI 1.00
[ 0.794206] hub 1-0:1.0: USB hub found
[ 0.794595] hub 1-0:1.0: 1 port detected
[ 0.799446] mousedev: PS/2 mouse device common for all mice
[ 0.804466] snvs_rtc 20cc000.snvs:snvs-rtc-lp: rtc core: registered 20cc000.snvs:snvs-r as rtc1
[ 0.804827] i2c /dev entries driver
[ 0.812570] rtc-em3027 3-0056: rtc core: registered rtc-em3027 as rtc0
[ 0.812770] i2c i2c-0: Added multiplexed i2c bus 3
[ 0.813746] i2c i2c-0: Added multiplexed i2c bus 4
[ 0.813831] i2c-mux-gpio i2cmux: 2 port mux on 21a0000.i2c adapter
[ 0.823633] imx2-wdt 20bc000.wdog: timeout 60 sec (nowayout=0)
[ 0.824262] sdhci: Secure Digital Host Controller Interface driver
[ 0.824353] sdhci: Copyright(c) Pierre Ossman
[ 0.824421] sdhci-pltfm: SDHCI platform and OF driver helper
[ 0.825885] sdhci-esdhc-imx 2190000.usdhc: could not get ultra high speed state, work on normal mode
[ 0.865179] mmc0: SDHCI controller on 2198000.usdhc [2198000.usdhc] using ADMA
[ 0.875381] ledtrig-cpu: registered to indicate activity on CPUs
[ 0.875627] hidraw: raw HID events driver (C) Jiri Kosina
[ 0.876116] usbcore: registered new interface driver usbhid
[ 0.876280] usbhid: USB HID core driver
[ 0.876554] usbcore: registered new interface driver r8712u
[ 0.886641] fsl-ssi-dai 202c000.ssi: No cache defaults, reading back from HW
[ 1.185215] usb 1-1: new high-speed USB device number 2 using ci_hdrc
[ 1.201200] ata1: SATA link up 3.0 Gbps (SStatus 123 SControl 300)
[ 1.202180] ata1.00: ATA-9: SanDisk SSD U110 32GB, U221000, max UDMA/133
[ 1.202288] ata1.00: 62533296 sectors, multi 1: LBA48 NCQ (depth 31/32)
[ 1.203363] ata1.00: configured for UDMA/133
[ 1.207368] scsi 0:0:0:0: Direct-Access ATA SanDisk SSD U110 000 PQ: 0 ANSI: 5
[ 1.225713] sd 0:0:0:0: [sda] 62533296 512-byte logical blocks: (32.0 GB/29.8 GiB)
[ 1.226024] sd 0:0:0:0: [sda] Write Protect is off
[ 1.226112] sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
[ 1.226394] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 1.232155] sda: sda1 sda2 sda3
[ 1.238531] sd 0:0:0:0: [sda] Attached SCSI disk
[ 1.314565] imx-spdif sound-spdif: snd-soc-dummy-dai <-> 2004000.spdif mapping ok
[ 1.320607] NET: Registered protocol family 10
[ 1.324565] Segment Routing with IPv6
[ 1.324749] NET: Registered protocol family 17
[ 1.324844] can: controller area network core (rev 20170425 abi 9)
[ 1.325053] NET: Registered protocol family 29
[ 1.325186] can: raw protocol (rev 20170425)
[ 1.325380] can: broadcast manager protocol (rev 20170425 t)
[ 1.325486] can: netlink gateway (rev 20170425) max_hops=1
[ 1.325958] Key type dns_resolver registered
[ 1.332247] Registering SWP/SWPB emulation handler
[ 1.334163] registered taskstats version 1
[ 1.336818] Key type encrypted registered
[ 1.376224] hub 1-1:1.0: USB hub found
[ 1.376587] hub 1-1:1.0: 4 ports detected
[ 1.386391] (NULL device *): hwmon_device_register() is deprecated. Please convert the driver to use hwmon_device_register_with_info().
[ 1.387907] imx_thermal 2000000.aips-bus:tempmon: Extended Commercial CPU temperature grade - max:105C critical:100C passive:95C
[ 1.388326] coda 2040000.vpu: Direct firmware load for vpu_fw_imx6q.bin failed with error -2
[ 1.389912] sdhci-esdhc-imx 2190000.usdhc: could not get ultra high speed state, work on normal mode
[ 1.391677] coda 2040000.vpu: Direct firmware load for vpu/vpu_fw_imx6q.bin failed with error -2
[ 1.391965] coda 2040000.vpu: Direct firmware load for v4l-coda960-imx6q.bin failed with error -2
[ 1.392073] coda 2040000.vpu: firmware request failed
[ 1.393497] input: gpio-keys as /devices/soc0/gpio-keys/input/input0
[ 1.396019] sdhci-esdhc-imx 2190000.usdhc: could not get ultra high speed state, work on normal mode
[ 1.399264] rtc-em3027 3-0056: setting system clock to 2017-07-30 09:35:20 UTC (1501407320)
[ 1.402001] OF: Duplicate name in testcase-data, renamed to "duplicate-name#1"
[ 1.408962] ### dt-test ### start of unittest - you will see error messages
[ 1.411001] OF: /testcase-data/phandle-tests/consumer-a: could not get #phandle-cells-missing for /testcase-data/phandle-tests/provider1
[ 1.411225] OF: /testcase-data/phandle-tests/consumer-a: could not get #phandle-cells-missing for /testcase-data/phandle-tests/provider1
[ 1.411394] OF: /testcase-data/phandle-tests/consumer-a: could not find phandle
[ 1.411511] OF: /testcase-data/phandle-tests/consumer-a: could not find phandle
[ 1.411619] OF: /testcase-data/phandle-tests/consumer-a: arguments longer than property
[ 1.411728] OF: /testcase-data/phandle-tests/consumer-a: arguments longer than property
[ 1.414191] irq: no irq domain found for /testcase-data/interrupts/intc0 !
[ 1.422564] sdhci-esdhc-imx 2190000.usdhc: could not get ultra high speed state, work on normal mode
[ 1.425665] sdhci-esdhc-imx 2190000.usdhc: could not get ultra high speed state, work on normal mode
[ 1.428588] sdhci-esdhc-imx 2190000.usdhc: could not get ultra high speed state, work on normal mode
[ 1.432931] sdhci-esdhc-imx 2190000.usdhc: could not get ultra high speed state, work on normal mode
[ 1.436737] sdhci-esdhc-imx 2190000.usdhc: could not get ultra high speed state, work on normal mode
[ 1.440931] sdhci-esdhc-imx 2190000.usdhc: could not get ultra high speed state, work on normal mode
[ 1.444367] sdhci-esdhc-imx 2190000.usdhc: could not get ultra high speed state, work on normal mode
[ 1.447403] sdhci-esdhc-imx 2190000.usdhc: could not get ultra high speed state, work on normal mode
[ 1.449537] OF: overlay: overlay_is_topmost: #5 clashes #6 @/testcase-data/overlay-node/test-bus/test-unittest8
[ 1.449684] OF: overlay: overlay #5 is not topmost
[ 1.450317] sdhci-esdhc-imx 2190000.usdhc: could not get ultra high speed state, work on normal mode
[ 1.453218] sdhci-esdhc-imx 2190000.usdhc: could not get ultra high speed state, work on normal mode
[ 1.456141] sdhci-esdhc-imx 2190000.usdhc: could not get ultra high speed state, work on normal mode
[ 1.458904] sdhci-esdhc-imx 2190000.usdhc: could not get ultra high speed state, work on normal mode
[ 1.463012] sdhci-esdhc-imx 2190000.usdhc: could not get ultra high speed state, work on normal mode
[ 1.466057] sdhci-esdhc-imx 2190000.usdhc: could not get ultra high speed state, work on normal mode
[ 1.466775] i2c i2c-5: Added multiplexed i2c bus 6
[ 1.472669] i2c i2c-5: Added multiplexed i2c bus 7
[ 1.474052] sdhci-esdhc-imx 2190000.usdhc: could not get ultra high speed state, work on normal mode
[ 1.485626] sdhci-esdhc-imx 2190000.usdhc: could not get ultra high speed state, work on normal mode
[ 1.490029] sdhci-esdhc-imx 2190000.usdhc: could not get ultra high speed state, work on normal mode
[ 1.496475] ### dt-test ### FAIL of_unittest_overlay_high_level():2234 Adding overlay 'overlay_bad_phandle' failed
[ 1.496624] ### dt-test ### end of unittest - 150 passed, 1 failed
[ 1.497444] regulator-pcie-power-on-gpio: disabling
[ 1.497580] usb_otg_vbus: disabling
[ 1.497647] ALSA device list:
[ 1.497704] #0: imx-spdif
[ 1.504390] EXT4-fs (sda3): couldn't mount as ext3 due to feature incompatibilities
[ 1.508280] EXT4-fs (sda3): couldn't mount as ext2 due to feature incompatibilities
[ 1.516947] random: fast init done
[ 1.530982] EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
[ 1.531335] VFS: Mounted root (ext4 filesystem) on device 8:3.
[ 1.542573] devtmpfs: mounted
[ 1.545061] Freeing unused kernel memory: 1024K
[ 1.665181] usb 1-1.2: new low-speed USB device number 3 using ci_hdrc
[ 1.790533] input: Lite-On Technology Corp. HP Basic USB Keyboard as /devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.2/1-1.2:1.0/0003:03F0:0324.0001/input/input1
[ 1.850259] hid-generic 0003:03F0:0324.0001: input,hidraw0: USB HID v1.10 Keyboard [Lite-On Technology Corp. HP Basic USB Keyboard] on usb-ci_hdrc.1-1.2/input0
[ 1.853829] sdhci-esdhc-imx 2190000.usdhc: could not get ultra high speed state, work on normal mode
[ 4.169252] Adding 730952k swap on /dev/sda2. Priority:-1 extents:1 across:730952k SSFS
[ 4.454096] EXT4-fs (sda3): re-mounted. Opts: (null)
[ 4.718588] EXT4-fs (sda3): re-mounted. Opts: errors=remount-ro
[ 6.869807] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 8.470412] Atheros 8031 ethernet 2188000.ethernet-1:00: attached PHY driver [Atheros 8031 ethernet] (mii_bus:phy_addr=2188000.ethernet-1:00, irq=-1)
[ 8.472030] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 10.483890] fec 2188000.ethernet eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 10.484386] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 46.770224] random: crng init done


Sun Jul 30, 2017 10:00 am
Profile

Joined: Sat May 14, 2016 1:24 pm
Posts: 56
Post Re: Need some help with compiling. Ethernet download speed s
Hi,

a quick comparison of the dmesg output and the defconfig suggests that *no* kernel modul was loaded. Your INSTALL_MOD_PATH seems to be fine ... can you double check that the modules are where they are supposed to be on the Utilite unit? What happens if you try to load them manually with insmod (you want to load the igb module for eth1)?

Out of curiosity I have done a bandwitdth test myself (iperf3). Note that the result is by no means credible.
There is a switch and a bridge in between the Utilite and the remote device used for testing. Furthermore, there are other devices on the same network doing stuff.

Upload FEC (eth0)
Code:
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-60.00  sec  2.84 GBytes   407 Mbits/sec    0             sender
[  4]   0.00-60.00  sec  2.84 GBytes   406 Mbits/sec                  receiver

Download FEC (eth0) (remote is sending)
Code:
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-60.00  sec  1.56 GBytes   224 Mbits/sec  114749             sender
[  4]   0.00-60.00  sec  1.56 GBytes   224 Mbits/sec                  receiver

Upload igb (eth1)
Code:
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-60.00  sec  6.50 GBytes   930 Mbits/sec  725             sender
[  4]   0.00-60.00  sec  6.49 GBytes   930 Mbits/sec                  receiver

Download igb (remote is sending)
Code:
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-60.00  sec  4.81 GBytes   689 Mbits/sec  20615             sender
[  4]   0.00-60.00  sec  4.81 GBytes   689 Mbits/sec                  receiver


I have no clue why the download rates are significantly lower than the upload rates. I double checked them with another remote device so its not the fault of the remote (but the my network topolgy may very well be responsible).

Lastly, the FEC interface is only rated for about 400-450Mbit, so the upload rate is expected.

EDIT: for the igb interface I can reduce the retries to 0 by setting the window size/payload size but the FEC interface seems to have trouble receiving data...

Cheers,
Christopher


Sun Jul 30, 2017 4:30 pm
Profile

Joined: Fri Jul 28, 2017 5:37 am
Posts: 5
Post Re: Need some help with compiling. Ethernet download speed s
Hi Chris and thanks!!
You are right! The problem was igb wasn't load on boot. The easiest thing is the last one you check :?

I was able to upgrad Debian version and download speed remains slow as you comment.


Sun Jul 30, 2017 7:09 pm
Profile

Joined: Sat May 14, 2016 1:24 pm
Posts: 56
Post Re: Need some help with compiling. Ethernet download speed s
Hi,

yes the download speed of the FEC interface is too slow, altough it's better than you mentioned (240Mbit/s vs. 50Mbit/s).

Dou you need 300Mbit/s in both directions? If eth1 (igb) is your upstream and eth0 (FEC) is connected to your LAN then you should gain 300Mbit/s for downloading, since the FEC interface can transmit 400Mbit/s.

But running the v4.12 kernel has another advantage: it is (currently) *the* Linux kernel; and Linux comes with support. In other words, running (in the kernel tree)
Code:
scripts/get_maintainer.pl drivers/net/ethernet/freescale/fec_main.c arch/arm/boot/dts/imx6q-utilite-pro.dts

gives you a bunch of email addresses/mailinglists where you can report your problem/bug (write a single email to all of them). You should also include our findings here, i.e. iperf3 reports a lot of retries.

The problem is still there in v4.13-rc1, so... probably it will not fix itself.

Can you check if iperf is happier with the 3.0 kernel (if you still have that setup ready)? It's quit simple: just start the iperf server with "iperf -s" on one machine and "iperf -c <serverip>" on the other. The server is the machine receiving data.

Cheers,
Christopher


Sun Jul 30, 2017 8:12 pm
Profile

Joined: Sat May 14, 2016 1:24 pm
Posts: 56
Post Re: Need some help with compiling. Ethernet download speed s
Hi again,

so, that looks way better, doesn't it?:

Download FEC (eth0) (remote is sending)
Code:
[ ID] Interval           Transfer     Bandwidth       Retr
[  4]   0.00-60.00  sec  3.94 GBytes   564 Mbits/sec  2008             sender
[  4]   0.00-60.00  sec  3.94 GBytes   564 Mbits/sec                  receiver


That's more than I would have expected, since the transmitting speed of the FEC interface is limited to roughly 400Mbits/sec.

Indeed, the reason was my network topology: the remote send all the data with ~960Mbits/sec to the switch between the devices -- and the switch accepted the packages at first. However, the FEC interface was not able to receive the packages that fast. Hence, the switch had to drop them eventually, and then, even worse, notify the remote about that fact. As a consequence, the remote had to resend the packages splitting the bandwidth by more than two (resend half of the old + current packages of which half get rejected again + tcp slow start semantics). That explains the high amount of resends in the absence of tx/rx errors on both sides.

The solution was to enable 802.3x Flow Control on the switch for the port the Utilite is connected to. That way the switch (or even the Utilite itself, I'm not sure, flow control works end to end) will inform the remote about the bandwidth limitations of the Utilite. The effect can nicely be observed because the iperf rate increases from 250Mbit/sec to >550Mbit/sec within the first two seconds.

@rteap: can you explain your network topology in a bit more detail? Maybe you have a similar issue. You could also check via ethtool whether some defaults (window size/mtu) are different in comparison of the 3.0 and later kernels? Also, you should check with iperf whether the problem is between your LAN and the Utilite or the Utilite and upstream.

Cheers,
Christopher


Sun Jul 30, 2017 9:40 pm
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 10 posts ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.