AnsweredAssumed Answered

IMX6ULL: Problem when transfer files > 50MB with lighttpd

Question asked by crcn on Jan 17, 2018


I have an IMX6ULL EVK and a custom board with IMX6ULL processor.

With the same uboot, dtb, kernel and rootfs in both equipments, when I try upload a file > 50MB with lighttpd (crcn.html and crcn.php attachments), in my custom board, when doing move_uploaded_file api in php, in the terminal I have this debug:

root@imx6ull14x14evk:~# fec 20b4000.ethernet eth0: rcv is not +last
fec 20b4000.ethernet eth0: MDIO read timeout
fec 20b4000.ethernet eth0: MDIO read timeout
fec 20b4000.ethernet eth0: MDIO read timeout
fec 20b4000.ethernet eth0: MDIO write timeout
IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
fec 20b4000.ethernet eth0: MDIO read timeout


After that I can't access to my board through Ethernet.

If I try reconfigured networking I have kernel panic:

--->>>Start debug

root@imx6ull14x14evk:~# /etc/init.d/networking restart
Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces
Reconfiguring network interfaces...
Unable to handle kernel NULL pointer dereference at virtual address 00000100
pgd = 88bc0000
[00000100] *pgd=88bb5831, *pte=00000000, *ppte=00000000
Internal error: Oops: 2817 [#1] PREEMPT SMP ARM
Modules linked in:
CPU: 0 PID: 627 Comm: ifconfig Not tainted 4.1.15-2.0.1-svn85 #11
Hardware name: Freescale i.MX6 Ultralite (Device Tree)
task: 8810f900 ti: 88bbe000 task.ti: 88bbe000
PC is at v7_dma_inv_range+0x24/0x4c
LR is at __dma_page_dev_to_cpu+0x80/0x110
pc : [<8001eac0>] lr : [<8001ac14>] psr: 00070013
sp : 88bbfdf8 ip : 8bb57000 fp : 8802f000
r10: 8819ed0c r9 : 8001bb14 r8 : 8ab57000
r7 : 000007f1 r6 : 8802f004 r5 : 00000002 r4 : 00000101
r3 : 0000003f r2 : 00000040 r1 : 000008f2 r0 : 00000100
Flags: nzcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user
Control: 10c53c7d Table: 88bc006a DAC: 00000015
Process ifconfig (pid: 627, stack limit = 0x88bbe210)
Stack: (0x88bbfdf8 to 0x88bc0000)
fde0: 8001eb68 80384818
fe00: 8c048000 00000000 8802f004 88555000 8819e800 8042b3b4 00000000 00000004
fe20: 80b78a34 00000000 8836da00 00000000 8819e800 00000140 00000001 8835c440
fe40: 00000000 8819ecc0 8836da00 8042f774 8819e800 88bbfe88 00001002 00001003
fe60: 00000000 00000000 00008914 8069e008 00001002 8819e800 00000201 8819e800
fe80: 00000001 8069e160 8819e84c 8819e84c 00001002 806a5644 8819e800 8819e938
fea0: 00001003 7ef90c68 00000000 806a570c 884ee900 884ee900 8836da0c 7ef90c68
fec0: 00000000 807059c0 7ef90c68 00000000 88bbfef0 8819e800 00000014 8836da0c
fee0: 30687465 00000000 00000000 00000000 00001002 00000000 00092d04 000000ae
ff00: 00001003 00008914 862137a0 7ef90c68 00000003 7ef90c68 88bbe000 00000000
ff20: 00000003 8068c43c 7ef90c68 862137a0 885ad6c0 800f236c 808cbec0 800e35c0
ff40: 80b75138 00000000 88b94440 00000003 00000000 807ffed0 88b94400 800fc060
ff60: 00000000 00000003 00000000 80800154 885ad6c0 00000003 885ad6c0 00008914
ff80: 7ef90c68 88bbe000 00000000 800f25c0 00087cf4 7ef90e4c 7ef90f41 00000036
ffa0: 8000f544 8000f3c0 00087cf4 7ef90e4c 00000003 00008914 7ef90c68 00087cf4
ffc0: 00087cf4 7ef90e4c 7ef90f41 00000036 00087c94 7ef90e4c 7ef90c68 00000003
ffe0: 000a62c4 7ef90c04 0001a7b0 76eccfec 60070010 00000003 00000000 00000000
[<8001eac0>] (v7_dma_inv_range) from [<8001ac14>] (__dma_page_dev_to_cpu+0x80/0x110)
[<8001ac14>] (__dma_page_dev_to_cpu) from [<8042b3b4>] (fec_enet_free_buffers+0x8c/0x1b4)
[<8042b3b4>] (fec_enet_free_buffers) from [<8042f774>] (fec_enet_close+0x70/0x134)
[<8042f774>] (fec_enet_close) from [<8069e008>] (__dev_close_many+0x88/0xd0)
[<8069e008>] (__dev_close_many) from [<8069e160>] (__dev_close+0x24/0x38)
[<8069e160>] (__dev_close) from [<806a5644>] (__dev_change_flags+0x94/0x144)
[<806a5644>] (__dev_change_flags) from [<806a570c>] (dev_change_flags+0x18/0x48)
[<806a570c>] (dev_change_flags) from [<807059c0>] (devinet_ioctl+0x664/0x738)
[<807059c0>] (devinet_ioctl) from [<8068c43c>] (sock_ioctl+0x1bc/0x290)
[<8068c43c>] (sock_ioctl) from [<800f236c>] (do_vfs_ioctl+0x3e8/0x608)
[<800f236c>] (do_vfs_ioctl) from [<800f25c0>] (SyS_ioctl+0x34/0x5c)
[<800f25c0>] (SyS_ioctl) from [<8000f3c0>] (ret_fast_syscall+0x0/0x3c)
Code: e2423001 e1100003 e1c00003 f57ff04f (1e070f3e)
---[ end trace 4ffcb27d1d55ad2a ]---
ifdown: interface eth1 not configured

Bus freq set to 24000000 start...
Bus freq set to 24000000 done!




Only resetting the board I can access my board through Ethernet.

If I upload files < 50MB once I don't have problems, but if upload successive files < 50MB at the second/third upload have the same problem.


Some information more:

root@imx6ull14x14evk:~# df
Filesystem 1K-blocks Used Available Use% Mounted on
ubi0:rootfs 201480 50632 150848 25% /
devtmpfs 89380 0 89380 0% /dev
tmpfs 253376 76 253300 0% /run
tmpfs 253376 52 253324 0% /var/volatile
root@imx6ull14x14evk:~# free
total used free shared buffers cached
Mem: 506752 59380 447372 128 0 12888
-/+ buffers/cache: 46492 460260
Swap: 0 0 0

In attachments, I put my device tree, lighttpd.conf, php.ini configuration files.


Does anyone have any idea what's going on?


P.S- I my board I have the same Ethernet hardware configuration that in IMX6ULL EVK.





Original Attachment has been moved to: