Sunxi mmc 1c10000 mmc data error sending stop command

Hello, Sometimes, i have following errors on main syslog-ng server : Spoiler 2020-03-07T12:59:50+01:00 s_dev_kernel_kmsg@srv-orangepir1-140-user kernel: 3,996,16878692493,-;mmc0: Card stuck in programming state! mmc_do_erase 2020-03-07T12:59:50+01:00 s_dev_kernel_kmsg@srv-orangepir1-140-user kern...

Hello,

Sometimes, i have following errors on main syslog-ng server :

Spoiler

2020-03-07T12:59:50+01:00 s_dev_kernel_kmsg@srv-orangepir1-140-user kernel: 3,996,16878692493,-;mmc0: Card stuck in programming state! mmc_do_erase
2020-03-07T12:59:50+01:00 s_dev_kernel_kmsg@srv-orangepir1-140-user kernel: 3,997,16878692530,-;blk_update_request: I/O error, dev mmcblk0, sector 10335392 op 0x3:(DISCARD) flags 0x0 phys_seg 1 prio class 0
2020-03-07T12:59:50+01:00 s_dev_kernel_kmsg@srv-orangepir1-140-user kernel: 3,998,16878692736,-;mmc_erase: group start error -110, status 0x0
2020-03-07T12:59:50+01:00 s_dev_kernel_kmsg@srv-orangepir1-140-user kernel: 3,999,16878692755,-;blk_update_request: I/O error, dev mmcblk0, sector 10466560 op 0x3:(DISCARD) flags 0x0 phys_seg 1 prio class 0
2020-03-07T12:59:50+01:00 s_dev_kernel_kmsg@srv-orangepir1-140-user kernel: 3,1000,16878692885,-;sunxi-mmc 1c0f000.mmc: data error, sending stop command
2020-03-07T12:59:50+01:00 srv-orangepir1-140-service/srv-orangepir1-140-service SUBSYSTEM=platform
2020-03-07T12:59:50+01:00 srv-orangepir1-140-service/srv-orangepir1-140-service DEVICE=+platform:1c0f000.mmc
2020-03-07T12:59:50+01:00 s_dev_kernel_kmsg@srv-orangepir1-140-user kernel: 3,1001,16878692905,-;sunxi-mmc 1c0f000.mmc: send stop command failed
2020-03-07T12:59:50+01:00 srv-orangepir1-140-service/srv-orangepir1-140-service SUBSYSTEM=platform
2020-03-07T12:59:50+01:00 srv-orangepir1-140-service/srv-orangepir1-140-service DEVICE=+platform:1c0f000.mmc

After this  error, not possible  to connect via  ssh  on target ..

When trying to connect on local tty, then following error in loop…

Port /dev/tty-target-srv-orangepir1-140-position-1.2.4.4.3

Press CTRL-A Z for help on special keys

êRead-error on swap-device (179:0:918360)
[18207.712698] Kernel panic — not syncing: Attempted to kill init! exitcode=0x00000007
[18207.720401] CPU: 1 PID: 1 Comm: init Not tainted 5.5.0-sunxi #trunk.034
[18207.727030] Hardware name: Allwinner sun8i Family
[18207.731774] [<c010db0d>] (unwind_backtrace) from [<c010a139>] (show_stack+0x11/0x14)
[18207.739997] [<c010a139>] (show_stack) from [<c0962e6b>] (dump_stack+0x6f/0x7c)
[18207.747329] [<c0962e6b>] (dump_stack) from [<c011b99d>] (panic+0xcd/0x24c)
[18207.754210] [<c011b99d>] (panic) from [<c011fc39>] (do_exit+0x86d/0x884)
[18207.760914] [<c011fc39>] (do_exit) from [<c011fcab>] (do_group_exit+0x2f/0x84)
[18207.768142] [<c011fcab>] (do_group_exit) from [<c01288e7>] (get_signal+0x127/0x740)
[18207.775804] [<c01288e7>] (get_signal) from [<c0109a5f>] (do_work_pending+0xc3/0x42c)
[18207.783552] [<c0109a5f>] (do_work_pending) from [<c0101077>] (slow_work_pending+0x9/0x16)
[18207.791729] Exception stack(0xcf8f9fb0 to 0xcf8f9ff8)
[18207.796783] 9fa0:                00d3f8a4 004d833c b6e94000 0000015c
[18207.804964] 9fc0: 00d3f8a4 bec257ec 004d8324 004e921c 00d3f880 004e9000 00d3f8a4 0000004e
[18207.813143] 9fe0: 004e918c bec256b0 b6df990d b6df91f6 00010030 ffffffff
[18207.819766] CPU3: stopping
[18207.822484] CPU: 3 PID: 0 Comm: swapper/3 Not tainted 5.5.0-sunxi #trunk.034
[18207.829530] Hardware name: Allwinner sun8i Family
[18207.834243] [<c010db0d>] (unwind_backtrace) from [<c010a139>] (show_stack+0x11/0x14)
[18207.841992] [<c010a139>] (show_stack) from [<c0962e6b>] (dump_stack+0x6f/0x7c)
[18207.849221] [<c0962e6b>] (dump_stack) from [<c010ca33>] (handle_IPI+0x293/0x2bc)
[18207.856626] [<c010ca33>] (handle_IPI) from [<c05e3345>] (gic_handle_irq+0x69/0x6c)
[18207.864203] [<c05e3345>] (gic_handle_irq) from [<c0101ae5>] (__irq_svc+0x65/0x94)
[18207.871685] Exception stack(0xcf923f58 to 0xcf923fa0)
[18207.876737] 3f40:                      00000000 00a95dd8
[18207.884918] 3f60: cfd71fb4 c0116341 ffffe000 c0f04f68 c0f04fb0 00000008 c0f04f48 00000000
[18207.893099] 3f80: c0ec88f0 00000000 c0f03d00 cf923fa8 c01079bf c01079c0 400f0033 ffffffff
[18207.901282] [<c0101ae5>] (__irq_svc) from [<c01079c0>] (arch_cpu_idle+0x28/0x2c)
[18207.908687] [<c01079c0>] (arch_cpu_idle) from [<c014033f>] (do_idle+0x16b/0x1e8)

U-Boot SPL 2019.04-armbian (Jul 06 2019 — 00:26:54 +0200)


As a result, the only solution to this issue is the physical on/off on
target (remove then insert power cable (!))

Configuration is … (after reboot)

root@srv-orangepir1-140:~# uname -a                                                 
Linux srv-orangepir1-140 5.5.0-sunxi #trunk.034 SMP Mon Feb 3 08:38:40 CET 2020 armv7l GNU/Linux                        
root@srv-orangepir1-140:~# cat /etc/debian_version                                           
10.3                                                              
root@srv-orangepir1-140:~# grep -iR ^Deb /etc/apt                                            
/etc/apt/sources.list.d/debian_apt_v_10_buster_backports.list:deb http://ftp.fr.debian.org/debian buster-backports main contrib non-free        
/etc/apt/sources.list.d/debian_apt_v_10_buster_previous.list:deb http://ftp.debian.org/debian/ stretch main contrib non-free              
/etc/apt/sources.list.d/debian_apt_v_10_buster_update_security.list:deb http://security.debian.org buster/updates main contrib non-free         
/etc/apt/sources.list.d/armbian_apt_v_10_buster.list:deb http://apt.armbian.com buster main buster-utils buster-desktop                
/etc/apt/sources.list.d/debian_apt_v_10_buster_current.list:deb http://ftp.debian.org/debian/ buster main contrib non-free             
/etc/apt/sources.list.d/debian_apt_v_10_buster_updates.list:deb http://ftp.fr.debian.org/debian buster-updates main contrib non-free         

root@srv-orangepir1-140:~# grep -iR ^P /etc/apt/preferences.d/
/etc/apt/preferences.d/preferences_debian_v_10_buster.pref:Package: *
/etc/apt/preferences.d/preferences_debian_v_10_buster.pref:Pin: release o=Debian,l=Debian,n=buster/updates
/etc/apt/preferences.d/preferences_debian_v_10_buster.pref:Pin-Priority: 920
/etc/apt/preferences.d/preferences_debian_v_10_buster.pref:Package: *
/etc/apt/preferences.d/preferences_debian_v_10_buster.pref:Pin: release o=Debian,l=Debian,n=buster-update
/etc/apt/preferences.d/preferences_debian_v_10_buster.pref:Pin-Priority: 910
/etc/apt/preferences.d/preferences_debian_v_10_buster.pref:Package: *
/etc/apt/preferences.d/preferences_debian_v_10_buster.pref:Pin: release o=Debian,l=Debian,n=buster
/etc/apt/preferences.d/preferences_debian_v_10_buster.pref:Pin-Priority: 900
/etc/apt/preferences.d/preferences_debian_v_10_buster.pref:Package: *
/etc/apt/preferences.d/preferences_debian_v_10_buster.pref:Pin: release o=Debian,l=Debian,n=buster-backports
/etc/apt/preferences.d/preferences_debian_v_10_buster.pref:Pin-Priority: -1
/etc/apt/preferences.d/preferences_debian_v_10_buster.pref:Package: *
/etc/apt/preferences.d/preferences_debian_v_10_buster.pref:Pin: release o=Debian,l=Debian,n=stretch
/etc/apt/preferences.d/preferences_debian_v_10_buster.pref:Pin-Priority: 400
/etc/apt/preferences.d/preferences_debian_v_10_buster.pref:Package: *
/etc/apt/preferences.d/preferences_debian_v_10_buster.pref:Pin: release o=Debian,l=Debian,n=testing
/etc/apt/preferences.d/preferences_debian_v_10_buster.pref:Pin-Priority: -1
/etc/apt/preferences.d/preferences_debian_v_10_buster.pref:Package: *
/etc/apt/preferences.d/preferences_debian_v_10_buster.pref:Pin: release o=Debian,l=Debian,n=unstable
/etc/apt/preferences.d/preferences_debian_v_10_buster.pref:Pin-Priority: -1
/etc/apt/preferences.d/preferences_debian_v_10_buster_no_elogind.pref:Package: elogind
/etc/apt/preferences.d/preferences_debian_v_10_buster_no_elogind.pref:Pin: release *
/etc/apt/preferences.d/preferences_debian_v_10_buster_no_elogind.pref:Pin-Priority: -1
/etc/apt/preferences.d/preferences_debian_v_10_buster_no_dhcpcd5.pref:Package: dhcpcd5
/etc/apt/preferences.d/preferences_debian_v_10_buster_no_dhcpcd5.pref:Pin: release *
/etc/apt/preferences.d/preferences_debian_v_10_buster_no_dhcpcd5.pref:Pin-Priority: -1
/etc/apt/preferences.d/preferences_debian_v_10_buster_no_systemd.pref:Package: systemd
/etc/apt/preferences.d/preferences_debian_v_10_buster_no_systemd.pref:Pin: release *
/etc/apt/preferences.d/preferences_debian_v_10_buster_no_systemd.pref:Pin-Priority: -1
/etc/apt/preferences.d/preferences_armbian_buster.pref:Package: hostapd
/etc/apt/preferences.d/preferences_armbian_buster.pref:Pin: origin «apt.armbian.com»
/etc/apt/preferences.d/preferences_armbian_buster.pref:Pin-Priority: -1
/etc/apt/preferences.d/preferences_armbian_buster.pref:Package: *
/etc/apt/preferences.d/preferences_armbian_buster.pref:Pin: origin «apt.armbian.com»
/etc/apt/preferences.d/preferences_armbian_buster.pref:Pin-Priority: 500
root@srv-orangepir1-140:~#


root@srv-orangepir1-140:~# dpkg -l |grep linux-image
ii  linux-image-dev-sunxi        20.05.0-trunk.034 armhf     Linux kernel, version 5.5.0-sunxi
ii  linux-image-next-sunxi       5.92              armhf     Linux kernel, version 4.19.62-sunxi
root@srv-orangepir1-140:~#

Hi everyone, every time i try to boot the system from the emmc, I always get the same error:
[2.538703] sunxi-mmc 1c11000.mmc: data error, sending stop command
[3.541959] sunxi-mmc 1c11000.mmc: send stop command failed

does anyone know how to solve this problem?

U-Boot 2021.01+olimex-2-20210317.105620 (Mar 17 2021 - 10:57:18 +0000) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
ID:    T2-OLinuXino-MICRO-e8Gs16M-IND Rev.M
SN:    FFFFFFFF
MAC:   02:16:05:02:D3:84
I2C:   ready
DRAM:  1 GiB
SF: Detected w25q128 with page size 256 Bytes, erase size 4 KiB, total 16 MiB
MMC:   mmc@1c0f000: 0, mmc@1c11000: 1, mmc@1c12000: 2
Loading Environment from EXT4... OK
In:    serial
Out:   serial
Err:   serial
## Error: Can't overwrite "ethaddr"
## Error inserting "ethaddr" variable, errno=1
## Error: Can't overwrite "serial#"
## Error inserting "serial#" variable, errno=1
Allwinner mUSB OTG (Peripheral)
Net:   eth0: ethernet@1c50000, eth1: usb_ether
Hit any key to stop autoboot:  0
switch to partitions #0, OK
mmc1(part 0) is current device
Scanning mmc 1:1...
Found U-Boot script /boot/boot.scr
2287 bytes read in 2 ms (1.1 MiB/s)
## Executing script at 43100000
gpio: pin 128 (gpio 128) value is 1
Boot script loaded from mmc
Checking for /uEnv.txt...
Checking for /boot/uEnv.txt...
494 bytes read in 2 ms (241.2 KiB/s)
Loaded environment from /boot/uEnv.txt
Loading FIT image...
15952091 bytes read in 871 ms (17.5 MiB/s)
## Loading kernel from FIT Image at 58000000 ...
   Using 'config-9789' configuration
   Trying 'kernel-1' kernel subimage
     Description:  Linux kernel 5.10.23-olimex
     Type:         Kernel Image
     Compression:  uncompressed
     Data Start:   0x580000d0
     Data Size:    6474528 Bytes = 6.2 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x40080000
     Entry Point:  0x40080000
     Hash algo:    crc32
     Hash value:   c3a7077e
     Hash algo:    sha1
     Hash value:   1785e13f643a6ad9df3f4f3bb4274c6477053b52
   Verifying Hash Integrity ... crc32+ sha1+ OK
## Loading ramdisk from FIT Image at 58000000 ...
   Using 'config-9789' configuration
   Trying 'ramdisk-1' ramdisk subimage
     Description:  Ramdisk for kernel 5.10.23-olimex
     Type:         RAMDisk Image
     Compression:  Unknown Compression
     Data Start:   0x5862cd24
     Data Size:    9022808 Bytes = 8.6 MiB
     Architecture: ARM
     OS:           Linux
     Load Address: 0x4fe00000
     Entry Point:  0x4fe00000
     Hash algo:    crc32
     Hash value:   341e2d70
     Hash algo:    sha1
     Hash value:   acedf355fe3f257ba55cd7332a1211085ed87d29
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Loading ramdisk from 0x5862cd24 to 0x4fe00000
WARNING: 'compression' nodes for ramdisks are deprecated, please fix your .its file!
## Loading fdt from FIT Image at 58000000 ...
   Using 'config-9789' configuration
   Trying 'fdt-6' fdt subimage
     Description:  unavailable
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x58efd088
     Data Size:    44458 Bytes = 43.4 KiB
     Architecture: ARM
     Load Address: 0x4fa00000
     Hash algo:    crc32
     Hash value:   ad3cdfd4
     Hash algo:    sha1
     Hash value:   aa8d951112cfb80d18935ffd3aaeebe459136908
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Loading fdt from 0x58efd088 to 0x4fa00000
## Loading fdt from FIT Image at 58000000 ...
   Trying 'overlay-1' fdt subimage
     Description:  unavailable
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x58f33278
     Data Size:    1001 Bytes = 1001 Bytes
     Architecture: ARM
     Load Address: 0x4fa10000
     Hash algo:    crc32
     Hash value:   d1d51f29
     Hash algo:    sha1
     Hash value:   fa0c14efb55dbe4bdf8aa7241a3e600b486e3ef6
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Loading fdt from 0x58f33278 to 0x4fa10000
## Loading fdt from FIT Image at 58000000 ...
   Trying 'overlay-2' fdt subimage
     Description:  unavailable
     Type:         Flat Device Tree
     Compression:  uncompressed
     Data Start:   0x58f33744
     Data Size:    436 Bytes = 436 Bytes
     Architecture: ARM
     Load Address: 0x4fa20000
     Hash algo:    crc32
     Hash value:   00f3a93c
     Hash algo:    sha1
     Hash value:   efa518e1ffcc7c09a7d8010de6a7b363f1345b30
   Verifying Hash Integrity ... crc32+ sha1+ OK
   Loading fdt from 0x58f33744 to 0x4fa20000
   Booting using the fdt blob at 0x4fa00000
   Loading Kernel Image
   Loading Ramdisk to 49765000, end 49fffd58 ... OK
   Loading Device Tree to 49757000, end 49764f68 ... OK
## Error: Can't overwrite "ethaddr"
## Error inserting "ethaddr" variable, errno=1
## Error: Can't overwrite "serial#"
## Error inserting "serial#" variable, errno=1
Applying overlay: '/usr/lib/olinuxino-overlays/sun7i-a20/micro-lcd-olinuxino-7ts.dtbo'...
2317 bytes read in 5 ms (452.1 KiB/s)

Starting kernel ...

[    0.003941] /cpus/cpu@0 missing clock-frequency property
[    0.003986] /cpus/cpu@1 missing clock-frequency property
[    0.949881] sun4i-usb-phy 1c13400.phy: Couldn't request ID GPIO
Loading, please wait...
Starting version 241
[    2.521041] sunxi-mmc 1c11000.mmc: data error, sending stop command
[    2.527473] sunxi-mmc 1c11000.mmc: send stop command failed
[    2.538703] sunxi-mmc 1c11000.mmc: data error, sending stop command
[    3.541959] sunxi-mmc 1c11000.mmc: send stop command failed

@dariox86

  • Device: PinePhone
  • Kernel Version : 5.17.6-1-danctnix
  • UI: Phosh

Steps to reproduce

Perform eMMC VCCQ mod as described here and copy pinephone-vccq-mod.dtbo and user.scr to /boot.

Expected behavior

I expect the device to work with no stability issues.

Actual behavior

I performed the hardware modification in January 2022. Since then I have been experiencing frequent freezing and crashing as if the eMMC becomes unreadable and unwritable all of sudden during normal operation. Sometimes the device does not freeze as long as everything you need in that specific moment runs from RAM. As soon as I do something connected to internal storage, like launching a new application that is not already in the RAM, the device freezes. A sufficiently long eMMC I/O activity is enough to reproduce the issue. This is bound to happen about ten times a day on average during normal operation.

Logfiles and additional information

I don’t know what log could be useful. Suggestions are welcome.

@Danct12

As this is a hardware mod, any problem occurred by the mod is outside of my support. But it’s possible that the eMMC used in your device is not compatible with the mod.

You may want to reach out to dsimic in the PinePhone chat.

On Thu, 02 Jun 2022 12:22:58 -0700 Dario ***@***.***> wrote:
— Device: PinePhone
— Kernel Version : 5.17.6-1-danctnix
— UI: Phosh

### Steps to reproduce
Perform eMMC VCCQ mod as described [here](https://izzo.pro/pinephone-vccq-mod/) and copy pinephone-vccq-mod.dtbo and user.scr to /boot.

### Expected behavior
I expect the device to work with no stability issues.

### Actual behavior
I performed the hardware modification in January 2022. Since then I have been experiencing frequent freezing and crashing as if the eMMC becomes unreadable and unwritable all of sudden during normal operation. Sometimes the device does not freeze as long as everything you need in that specific moment runs from RAM. As soon as I do something connected to internal storage, like launching a new application that is not already in the RAM, the device freezes. A sufficiently long eMMC I/O activity is enough to reproduce the issue. This is bound to happen about ten times a day on average during normal operation.

### Logfiles and additional information
I don’t know what log could be useful. Suggestions are welcome.


Reply to this email directly or view it on GitHub:
#404
You are receiving this because you are subscribed to this thread.

Message ID: ***@***.***>

@dariox86

Update: I tried to pinpoint the issue and I concluded that this is something specific to Arch Linux ARM DanctNIX. I connected a USB stick to the PinePhone through the hub and launched archlinux-pinephone-phosh-20220502 from a microSD. From the live system I launched a copy operation of my /home/alarm in the eMMC to the USB stick. Eventually the copy operation would freeze before finishing the copy operation. I tried it four times just to be sure.

Then I tried doing the same with 20220601-0442-postmarketOS-v21.12-phosh-17-pine64-pinephone. It took literally hours but in the end it worked on first try.

Of course, in both cases I had to copy pinephone-vccq-mod.dtbo and user.scr to the boot partition.

@Danct12

Does the whole system hangs when copy operating hangs? Can you please post dmesg?

@dariox86

When running from microSD I can still manage to get hold of the system by killing the copy process. When the same problem occurs when running from eMMC, the system operates erratically. It may or may not freeze, though even when the system is not completely frozen I can not launch any new application or load a file because it is unable to communicate with eMMC. I will try again and post my dmesg for you to check.

@dariox86

I launched the copy command and when the copy froze I dumped dmesg output. The only relevant lines I see are:

[  710.656872] sunxi-mmc 1c11000.mmc: data error, sending stop command
[  711.661903] sunxi-mmc 1c11000.mmc: send stop command failed

Attached full dmesg log
dmesg.txt
.

@Danct12

That looks like the eMMC driver tried to read/write some data, but failed.

Are you sure the VCCQ patch files are installed? Non-VCCQ images do not work properly on a modded device.

@dariox86

pinephone-vccq-mod.dtbo and user.scr are in the boot partition. It would not boot without these files in place.

@bfra2373

@dariox86

A while ago something changed. It does not freeze anymore as long as the screen is turned on. It only happens when the device is idle and the screen is turned off. Turning off the screen with the power button even for a second can be sufficient to trigger the issue. If I am unlucky, it can happen up to four times in a row. If I am lucky, it will stay at rest for a night and it will still be operating at morning. It is very random. On average, it happens a dozen times in the span of a day. It seems less frequent when the device is plugged to the power via USB. On a side note, I have been experiencing a bunch of unrelated regressions. I did not have the time to pinpoint the respective causes.

@dariox86

When a new release is out I may try to reinstall everything from scratch.

@bfra2373

Does it run fine on Mobian or pmOS?

@dariox86

Back then Arch Linux ARM DanctNIX ran fine when booted from a microSD. I could reproduce the problem by issuing a long copy command from the eMMC. Eventually the eMMC would not respond. Doing the same from postmarketOS did not cause problems. At the moment I can not reinstall another operating system on the eMMC because I use my device as my daily driver. I would need to copy a whole bunch of data out and back on the device.

@bfra2373

I understand!
I had a bit of the same issue with data management but know I use syncthing to sync /home to my home computer.
So no more headache when I need to replace the OS!

@dariox86

I do the same with my computer, I can afford to lose everything at any time, but I have yet to set up a similar feature for my smartphone.



  • roel

  • Jul 9th 2020

  • Thread is Unresolved
    • #1

    Jernej,

    I have a problem with odroid emmc on the pineH64. It gives this message during boot: sunxi-mmc 4022000.mmc: data error, sending stop command

    I see you fixed it for the Tanix T6 with this patch:

    Content embedded from external sources will not be displayed without your consent.

    Through the activation of external content, you agree that personal data may be transferred to third party platforms. We have provided more information on this in our privacy policy.

    But I don’t find this patch in your LibreElec patches for Allwinner H6, only this one: LibreELEC.tv/13-Tanix-TX6.patch at master · LibreELEC/LibreELEC.tv · GitHub

    The LE patches are only patches for the dts of the Tanix TX6, does this mean if I apply these patches in the pineH64 dts, the board will boot from emmc? Probably it’s a better fix that enables the HS DDR mode?

    • Official Post
    • #2

    I see you fixed it for the Tanix T6 with this patch:

    This is not a fix but workaround. Consequently, it was later removed when I found a proper solution for Tanix TX6.

    The LE patches are only patches for the dts of the Tanix TX6, does this mean if I apply these patches in the pineH64 dts, the board will boot from emmc? Probably it’s a better fix that enables the HS DDR mode?

    Yes, same approach should work for PineH64 too, just make sure that you properly specify regulators. This was main issue with Tanix TX6.

    • #3

    Can I find somewhere some documentation how to properly specify regulators? Is it related to the type of eemc or the size or the board?

    • Official Post
    • #4

    Documentation for device tree files is in Documentation/devicetree/bindings/regulator/ in Linux source. You should also consult PneH64 schematic.

    • #5

    Can I find somewhere some documentation how to properly specify regulators? Is it related to the type of eemc or the size or the board?

    Dear Roel,

    Could you apply below in your DTS file then convert it to DTB

    [email protected] {

    …….

    mmc-hs200-1_8v;

    mmc-hs400-1_8v;

    mmc-hs400-enhanced-strobe;

    }

    * Ready DTS and DTB in attachments.

    • #6

    genidy.m

    Thanks for the DTS patch. I was invetsigating the pind-H64 regulators, but it seems everything was already implemented in the dts. So the patch of Jernej for the Tanix-tx6 was not necesaary for the pine-h64.

    I implemented your patch in the sun50i-h6.dtsi; but for some reason I get a error message when I try to compile my dtb. It has nothing to do with the patch, probably there are some packages missing in my build environment. This evening I give it another try.

    Edit: Managed to build the dtb and it boots fine now. Thanks a lot for the patch!

    • Official Post
    • #7

    roel can you share diff between mainline and modified DT? You or genidy.m can send patch to upstream Linux for inclusion.

    • #8

    Jernej,

    herewith the diff.

    • Official Post
    • #9

    roel Are you using actual Odroid emmc module or that from Pine64. If it is that from Pine64 (ncembsf9-16g) then mmc-hs200-1_8v; should be enough. Can you test that? If it has some other eMMC chip, can you please post markings here?

    • #10

    jernej,

    it’s orange odroid 64GB emmc for odroid_N2. I just checked the odroid N2 dtb and indeed mmc-hs200-1_8v; should be enough. I can’t read what’s on the chip, the kids took my magnifier and I don’t find it. I will ask them tomorrow because they are already sleeping.

    • Official Post
    • #11

    roel No need to read markings, I got info that I need from Odroid page. In your case mmc-hs400-1_8v; would be more correct.

    Can you make read speed test with hdparm? I forgot exact command but I know you should make non-buffered test, otherwise read speed will be much too high.

    • #12

    jernej,

    No problem, will do it this evening.

    • #13

    jernej

    See attachement,

    I tested a 32GB Pine64 emmc and the 64GB odroid emmc. The result is really disappointing. The pine64 emmc is slightly faster but it’s not even 44MB/sec.

    • Official Post
    • #14

    ha, on Tanix TX6 I get without mmc-hs400-1_8v

    /dev/mmcblk1:
     HDIO_DRIVE_CMD(identify) failed: Invalid argument
     Timing buffered disk reads: 244 MB in  3.01 seconds =  81.15 MB/sec

    and with mmc-hs400-1_8v

    /dev/mmcblk1:
     HDIO_DRIVE_CMD(identify) failed: Invalid argument
     Timing buffered disk reads: 132 MB in  3.01 seconds =  43.92 MB/sec

    so this for some reason halves access read speed…

    • Official Post
    • #15

    I played a bit with various flags in DT but nothing helps to restore speed. I have a feeling that H6 mmc driver is not optimized but I have no idea about it. Since it works for you I won’t spend much time on it for now. Anyway, PR for PineH64 eMMC support would be welcome. If you don’t want to do it, I can take a shoot sometime in future.

    EDIT: So I did same speed on Android where I got ~130 MiB/s so definitely driver issue.

    • #16

    jernej

    I want to do a PR; I only never done it before, so I have to find out how to do it first.

    • #17

    genidy.m

    Thanks for the DTS patch. I was invetsigating the pind-H64 regulators, but it seems everything was already implemented in the dts. So the patch of Jernej for the Tanix-tx6 was not necesaary for the pine-h64.

    I implemented your patch in the sun50i-h6.dtsi; but for some reason I get a error message when I try to compile my dtb. It has nothing to do with the patch, probably there are some packages missing in my build environment. This evening I give it another try.

    Edit: Managed to build the dtb and it boots fine now. Thanks a lot for the patch!

    Display More

    roel

    You are welcome, i faced this issue before and found the solution in armbian forum for your board, worked for me too, for my box «mmc-hs200-1_8v» is enough as «sunvell Q+» had slow emmc, also extracted the DTB from original android OS and found that it use same entries for emmc.

    *posted here:

    How helpful will this be to getting LibreELEC on allwinner android boxes?


Comment 1


Justin M. Forbes



2020-03-03 16:26:06 UTC

*********** MASS BUG UPDATE **************

We apologize for the inconvenience.  There are a large number of bugs to go through and several of them have gone stale.  Due to this, we are doing a mass bug update across all of the Fedora 30 kernel bugs.

Fedora 30 has now been rebased to 5.5.7-100.fc30.  Please test this kernel update (or newer) and let us know if you issue has been resolved or if it is still present with the newer kernel.

If you have moved on to Fedora 31, and are still experiencing this issue, please change the version to Fedora 31.

If you experience different issues, please open a new bug report for those.


Comment 2


Daniel Riek



2020-03-16 14:22:12 UTC

(In reply to Justin M. Forbes from comment #1)
> *********** MASS BUG UPDATE **************
> 
> We apologize for the inconvenience.  There are a large number of bugs to go
> through and several of them have gone stale.  Due to this, we are doing a
> mass bug update across all of the Fedora 30 kernel bugs.
> 
> Fedora 30 has now been rebased to 5.5.7-100.fc30.  Please test this kernel
> update (or newer) and let us know if you issue has been resolved or if it is
> still present with the newer kernel.
> 
> If you have moved on to Fedora 31, and are still experiencing this issue,
> please change the version to Fedora 31.
> 
> If you experience different issues, please open a new bug report for those.

This still happens in F31 today:

[  923.254753] sunxi-mmc 1c11000.mmc: data error, sending stop command
[  923.261885] sunxi-mmc 1c11000.mmc: data error, sending stop command
[  923.268879] sunxi-mmc 1c11000.mmc: data error, sending stop command
[  923.275921] sunxi-mmc 1c11000.mmc: data error, sending stop command
[  923.283090] sunxi-mmc 1c11000.mmc: data error, sending stop command
[  923.290110] sunxi-mmc 1c11000.mmc: data error, sending stop command
[  923.296634] blk_update_request: I/O error, dev mmcblk1, sector 0 op 0x0:(READ) flags 0x80700 phys_seg 1 prio class 0
[  923.308214] sunxi-mmc 1c11000.mmc: data error, sending stop command
[  923.315309] sunxi-mmc 1c11000.mmc: data error, sending stop command
[  923.322441] sunxi-mmc 1c11000.mmc: data error, sending stop command
[  923.329443] sunxi-mmc 1c11000.mmc: data error, sending stop command
[  923.336463] sunxi-mmc 1c11000.mmc: data error, sending stop command
[  923.343603] sunxi-mmc 1c11000.mmc: data error, sending stop command
[  923.350100] blk_update_request: I/O error, dev mmcblk1, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[  923.360570] Buffer I/O error on dev mmcblk1, logical block 0, async page read
[  923.368686] sunxi-mmc 1c11000.mmc: data error, sending stop command
[  923.375774] sunxi-mmc 1c11000.mmc: data error, sending stop command
[  923.382903] sunxi-mmc 1c11000.mmc: data error, sending stop command
[  923.389902] sunxi-mmc 1c11000.mmc: data error, sending stop command
[  923.396947] sunxi-mmc 1c11000.mmc: data error, sending stop command
[  923.404195] sunxi-mmc 1c11000.mmc: data error, sending stop command
[  923.410699] blk_update_request: I/O error, dev mmcblk1, sector 0 op 0x0:(READ) flags 0x0 phys_seg 1 prio class 0
[  923.421171] Buffer I/O error on dev mmcblk1, logical block 0, async page read
[  928.517563] sunxi-mmc 1c11000.mmc: data error, sending stop command
[  928.525443] sunxi-mmc 1c11000.mmc: data error, sending stop command
[  929.531289] sunxi-mmc 1c11000.mmc: send stop command failed

# uname -a
Linux hendrix 5.5.5-200.fc31.aarch64 #1 SMP Wed Feb 19 23:14:55 UTC 2020 aarch64 aarch64 aarch64 GNU/Linux


Comment 3


Ben Cotton



2020-04-30 20:20:45 UTC

This message is a reminder that Fedora 30 is nearing its end of life.
Fedora will stop maintaining and issuing updates for Fedora 30 on 2020-05-26.
It is Fedora's policy to close all bug reports from releases that are no longer
maintained. At that time this bug will be closed as EOL if it remains open with a
Fedora 'version' of '30'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 30 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.


Comment 4


Ben Cotton



2020-05-26 18:27:23 UTC

Fedora 30 changed to end-of-life (EOL) status on 2020-05-26. Fedora 30 is
no longer maintained, which means that it will not receive any further
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of
Fedora please feel free to reopen this bug against that version. If you
are unable to reopen this bug, please file a new report against the
current release. If you experience problems, please add a comment to this
bug.

Thank you for reporting this bug and we are sorry it could not be fixed.

Понравилась статья? Поделить с друзьями:
  • Sunbay city fatal error
  • Sun ошибка на стиральной машине самсунг
  • Summer memories loading error
  • Summer camp exe ошибка приложения
  • Sum of squares of error