Turris 1.0 (3.3 ver) reboots when copying from USB flash drive

Hello I have installed SDXC 64GB card to Turris 1.0. The card is formated with btrfs. When I try to copy large file from USB stick (ext4 formatted) router imediatelly reboots.

Any clue?

Thanks!

[ 5.250972] sdhci: Secure Digital Host Controller Interface driver
[ 5.257168] sdhci: Copyright© Pierre Ossman
[ 5.262756] sdhci-pltfm: SDHCI platform and OF driver helper
[ 5.268904] /soc@ffe00000/sdhc@2e000: voltage-ranges unspecified
[ 5.274941] sdhci-esdhc ffe2e000.sdhc: No vmmc regulator found
[ 5.280782] sdhci-esdhc ffe2e000.sdhc: No vqmmc regulator found
[ 5.309585] mmc0: SDHCI controller on ffe2e000.sdhc [ffe2e000.sdhc] using DMA
[ 5.335719] usbcore: registered new interface driver usb-storage
[ 5.354095] mmc0: new high speed SDXC card at address aaaa
[ 5.359870] mmcblk0: mmc0:aaaa ABLCE 59.4 GiB
[ 5.368407] mmcblk0: unknown partition table

[ 297.201218] BTRFS info (device mmcblk0): disk space caching is enabled
[ 297.201228] BTRFS: has skinny extents
[ 297.212031] BTRFS: detected SSD devices, enabling SSD mode
[
MOUNT:
/dev/sda1 on /mnt/flash type ext4 (rw,relatime,data=ordered)
nfsd on /proc/fs/nfsd type nfsd (rw,relatime)
/dev/mmcblk0 on /mnt/sd type btrfs (rw,relatime,ssd,noacl,space_cache)
root@turris:~# uname -a
Linux turris 3.18.44-93291736f4d5145ea9d62e8746031bf1-15 #1 SMP Wed Nov 30 15:33:28 CET 2016 ppc GNU/Linux
r

Have you checked whether the problem is in the SD card or in the USB flash? Try running cat /mnt/flash/large_file > /dev/null, if it triggers a reboot too.

you are right cat also caused turris to reboot:

root@turris:~# uptime
14:50:36 up 0 min, load average: 0.91, 0.24, 0.08

Can you try putting the USB flash into another USB port? And does it happen generally when you copy files or just with the large file you have on the flash drive?

hello it happens after a while reading file thus I think that its some buffer problem which resides in kernel. Can you reproduce it? BTW flash is fine - I can read files at my debian desktop. I will try change port later while I’ll reach router

Actually I had not problem with this flash before I have upgraded to 3.3

I’ve just tried it on two routers, one with the latest kernel in our test branch, one with the same you have. Running the cat command and copying a 1 GiB file from a Kingston DTSE9 G2 flash does not do anything nasty. How big is your file?

-rw-r–r-- 1 root root 2000056302 Nov 23 10:46 movie.avi

Bus 001 Device 003: ID 0204:6025 Chipsbank Microelectronics Co., Ltd CBM2080 Flash drive controller

Bus 001 Device 003: ID 0204:6025 Chipsbank Microelectronics Co., Ltd CBM2080 Flash drive controller
Device Descriptor:
bLength 18
bDescriptorType 1
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
idVendor 0x0204 Chipsbank Microelectronics Co., Ltd
idProduct 0x6025 CBM2080 Flash drive controller
bcdDevice 1.00
iManufacturer 1 CBM
iProduct 2 Flash Disk
iSerial 3 15215605FAC09E00
bNumConfigurations 1
Configuration Descriptor:
bLength 9
bDescriptorType 2
wTotalLength 32
bNumInterfaces 1
bConfigurationValue 1
iConfiguration 0
bmAttributes 0x80
(Bus Powered)
MaxPower 100mA
Interface Descriptor:
bLength 9
bDescriptorType 4
bInterfaceNumber 0
bAlternateSetting 0
bNumEndpoints 2
bInterfaceClass 8 Mass Storage
bInterfaceSubClass 6 SCSI
bInterfaceProtocol 80 Bulk-Only
iInterface 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x01 EP 1 OUT
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Endpoint Descriptor:
bLength 7
bDescriptorType 5
bEndpointAddress 0x81 EP 1 IN
bmAttributes 2
Transfer Type Bulk
Synch Type None
Usage Type Data
wMaxPacketSize 0x0200 1x 512 bytes
bInterval 0
Device Qualifier (for other device speed):
bLength 10
bDescriptorType 6
bcdUSB 2.00
bDeviceClass 0 (Defined at Interface level)
bDeviceSubClass 0
bDeviceProtocol 0
bMaxPacketSize0 64
bNumConfigurations 1
Device Status: 0x0000
(Bus Powered)

I moved flash drive from USB1 to USB2 but problem persists:

root@turris:~# uptime
10:27:08 up 1 min, load average: 0.55, 0.20, 0.07

and other observation:
Now I tried scp file from my laptop to SD card and router got frozen. After reboot file have 515899392 size

Sorry, but I can’t reproduce it on any of my routers - including one in the RC branch, which should have the same update history as your router. If there’s nobody else with this problem to pinpoint a common cause, I can recommend following:

  • Try connecting to the USB-serial console and trigger the bug, if something appears in the output
  • Force-reinstall kernel and all modules
  • Backup config and reset the router to factory defaults, ideally update it from SD card with latest image (the most brutal measure…)

I reinstalled the router a day before upgrade to 3.3 to get ubifs version. Is it really needed to reinstall again?

See USB3 is completely useless with latest update

musim reportovat, ze ani verze 3.5 neodstranila samovolny reboot pri cteni velkeho objemu dat z karty

Hello all if anybody have same problem it was caused by faulty memory chip. Thanks to CZ.NIC for a new RAM. Problem solved!