OpenNuvoton / NUC980-linux-4.4.y

Linux 4.4 Kernel Source Code for NUC980 Series Microprocessor
Other
48 stars 58 forks source link

mmc not working: nuc980-fmi: no support for card's volts #23

Closed tonyho closed 4 years ago

tonyho commented 4 years ago

I have design a board refering the NUC980 reference board shematic, but the TF/MMC is not working. My schematic is: SD

When I insert the mmc/TF, the log is:

mmc0: error -110 whilst initialising SD card

I guess this is caused by no Pull-up in CLK signal line, so I added a 5.1KΩ Resistor to pull up the CLK , but:

I tried 3 cards, still failed:

With the 4G Panasonic TF card:

[ 518.470033] SD time-out cmd=51 blksz=8 [ 518.473774] mmc0: unrecognised SCR structure version 12 [ 518.478958] mmc0: error -22 whilst initialising SD card

While the SanDisk 8GB TF card:

# [  316.900049] SD time-out cmd=51 blksz=8
[  316.903791] mmc0: invalid bus width
[  316.907249] mmc0: error -22 whilst initialising SD card

Also I tried a SanDisk Ultra Micro HC I, Class 10 A1, 16GB, which is not working with logs:

[  719.830049] SD time-out cmd=51 blksz=8
[  719.833791] mmc0: unrecognised SCR structure version 2
[  719.838891] mmc0: error -22 whilst initialising SD card

All the cards can be probe OK as sda device when inserted into NUC980 USB Host with a SD Card Reader.

Question:

yachen commented 4 years ago

Hi,

Try remove 100R and short circuit. No need to pull up CLK.

Sincerely,

Yi-An Chen

tonyho commented 4 years ago

Hi,

Try remove 100R and short circuit. No need to pull up CLK.

Sincerely,

Yi-An Chen

Thanks for the quickly reply. I tried to remove the 100R, and short circuit. And add some extra log information :

[   81.050000] mmc0: card aaaa removed

[   83.510000] mmc0: SD Status: Invalid Allocation Unit size
[   83.540000] mmc_sd_setup_card: mdelay 20 before mmc_read_switch
[   83.560000] mmc_sd_init_card: mdelay 20 before mmc_sd_switch_hs
[   83.590000] mmc_sd_init_card: mdelay 20 before mmc_sd_get_max_clock
[   83.600000] mmc0: new SDHC card at address aaaa
[   83.600000] mmcblk0: mmc0:aaaa SU08G 7.40 GiB 

The kernel not detect the mmcblk partition with mmc0: SD Status: Invalid Allocation Unit size, but it does detect the size of SD card correctly, is any further suggestion?
Should I remove the pull up 5.1K resistor of the CLK line?

yachen commented 4 years ago

Yes, please test again with the 5.1k removed. Thanks.

tonyho commented 4 years ago

Yes, please test again with the 5.1k removed. Thanks.

I removed the 5.1K but stille not working:

# [   21.680000] mmc0: card aaaa removed
[   23.890000] mmc0: SD Status: Invalid Allocation Unit size
[   23.920000] mmc_sd_setup_card: mdelay 20 before mmc_read_switch
[   23.940000] mmc_sd_init_card: mdelay 20 before mmc_sd_switch_hs
[   23.970000] mmc_sd_init_card: mdelay 20 before mmc_sd_get_max_clock
[   23.980000] mmc0: new SDHC card at address aaaa
[   23.980000] mmcblk0: mmc0:aaaa SU08G 7.40 GiB 

# 
# [   39.840000] mmc0: card aaaa removed
[   56.770000] mmc0: problem reading SD Status register
[   56.800000] mmc_sd_setup_card: mdelay 20 before mmc_read_switch
[   56.830000] mmc_sd_init_card: mdelay 20 before mmc_sd_switch_hs
[   56.850000] mmc_sd_init_card: mdelay 20 before mmc_sd_get_max_clock
[   56.860000] mmc0: new SDHC card at address aaaa
[   56.870000] mmcblk0: mmc0:aaaa SC16G 14.8 GiB 

# 
# [   77.370000] mmc0: card aaaa removed
[   85.190000] mmc0: SD Status: Invalid Allocation Unit size
[   85.220000] mmc_sd_setup_card: mdelay 20 before mmc_read_switch
[   85.240000] mmc_sd_init_card: mdelay 20 before mmc_sd_switch_hs
[   85.270000] mmc_sd_init_card: mdelay 20 before mmc_sd_get_max_clock
[   85.280000] mmc0: new SDHC card at address 26da
[   85.280000] mmcblk0: mmc0:26da B04GK 3.69 GiB 
yachen commented 4 years ago

Does the SD PC pins share with other function on your board? Can you replace C21 with a 10uF capacitor and test again?

tonyho commented 4 years ago

Does the SD PC pins share with other function on your board? Can you replace C21 with a 10uF capacitor and test again?

  1. Can you replace C21 with a 10uF capacitor and test again? --> I tried, same result. Except adding a 10uF, I also tried to add a 220uF capacitor, but still the same result.
    
    [   23.960000] mmc0: SD Status: Invalid Allocation Unit size
    [   23.990000] mmc_sd_setup_card: mdelay 20 before mmc_read_switch
    [   24.010000] mmc_sd_init_card: mdelay 20 before mmc_sd_switch_hs
    [   24.040000] mmc_sd_init_card: mdelay 20 before mmc_sd_get_max_clock
    [   24.050000] mmc0: new SDHC card at address 0ad9
    [   24.050000] mmcblk0: mmc0:0ad9 B04GK 3.69 GiB 

[ 27.950000] mmc0: card 0ad9 removed

[ 34.150000] mmc0: SD Status: Invalid Allocation Unit size [ 34.180000] mmc_sd_setup_card: mdelay 20 before mmc_read_switch [ 34.200000] mmc_sd_init_card: mdelay 20 before mmc_sd_switch_hs [ 34.230000] mmc_sd_init_card: mdelay 20 before mmc_sd_get_max_clock [ 34.240000] mmc0: new SDHC card at address aaaa [ 34.240000] mmcblk0: mmc0:aaaa SU08G 7.40 GiB


1. Does the SD PC pins share with other function on your board?
--> You mean the CD pin?  No.

[ 0.000000] CPU: ARM926EJ-S [41069265] revision 5 (ARMv5TEJ), cr=0005317f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] Machine: NUC980 [ 0.000000] debug: ignoring loglevel setting. [ 0.000000] Memory policy: Data cache writeback [ 0.000000] On node 0 totalpages: 16384 [ 0.000000] free_area_init_node: node 0, pgdat c094615c, node_mem_map c3f77000 [ 0.000000] Normal zone: 128 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 16384 pages, LIFO batch:3 [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 16256 [ 0.000000] Kernel command line: mem=64M console=ttyS0,115200 root=/dev/sda5 rootfstype=ext4 rootwait ignore_loglevel debug printk.time=1 [ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes) [ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes) [ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes) [ 0.000000] Memory: 55160K/65536K available (6818K kernel code, 354K rwdata, 2100K rodata, 192K init, 250K bss, 10376K reserved, 0K 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 : 0xc4800000 - 0xff800000 ( 944 MB) [ 0.000000] lowmem : 0xc0000000 - 0xc4000000 ( 64 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text : 0xc0008000 - 0xc08bdf64 (8920 kB) [ 0.000000] .init : 0xc08be000 - 0xc08ee000 ( 192 kB) [ 0.000000] .data : 0xc08ee000 - 0xc0946a20 ( 355 kB) [ 0.000000] .bss : 0xc0946a20 - 0xc09854ac ( 251 kB) [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1 [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] Build-time adjustment of leaf fanout to 32. [ 0.000000] NR_IRQS:545 [ 0.000000] clocksource: nuc980-timer5: mask: 0xffffff max_cycles: 0xffffff, max_idle_ns: 62215505635 ns [ 0.000000] sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 21474836475000000ns [ 0.000000] Console: colour dummy device 80x30 [ 0.160000] console [ttyS0] enabled [ 0.170000] Calibrating delay loop... 148.88 BogoMIPS (lpj=744448) [ 0.240000] pid_max: default: 32768 minimum: 301 [ 0.240000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.250000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 0.260000] CPU: Testing write buffer coherency: ok [ 0.260000] Setting up static identity map for 0x8400 - 0x843c [ 0.270000] devtmpfs: initialized [ 0.300000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.310000] futex hash table entries: 256 (order: -1, 3072 bytes) [ 0.320000] pinctrl core: initialized pinctrl subsystem [ 0.320000] NET: Registered protocol family 16 [ 0.330000] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.610000] SCSI subsystem initialized [ 0.620000] usbcore: registered new interface driver usbfs [ 0.630000] usbcore: registered new interface driver hub [ 0.640000] usbcore: registered new device driver usb [ 0.640000] Bluetooth: Core ver 2.21 [ 0.650000] NET: Registered protocol family 31 [ 0.660000] Bluetooth: HCI device and connection manager initialized [ 0.660000] Bluetooth: HCI socket layer initialized [ 0.670000] Bluetooth: L2CAP socket layer initialized [ 0.670000] Bluetooth: SCO socket layer initialized [ 0.680000] clocksource: Switched to clocksource nuc980-timer5 [ 0.780000] NET: Registered protocol family 2 [ 0.780000] TCP established hash table entries: 1024 (order: 0, 4096 bytes) [ 0.790000] TCP bind hash table entries: 1024 (order: 0, 4096 bytes) [ 0.800000] TCP: Hash tables configured (established 1024 bind 1024) [ 0.800000] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 0.810000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 0.820000] NET: Registered protocol family 1 [ 0.820000] RPC: Registered named UNIX socket transport module. [ 0.830000] RPC: Registered udp transport module. [ 0.830000] RPC: Registered tcp transport module. [ 0.840000] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.850000] NetWinder Floating Point Emulator V0.97 (double precision) [ 0.960000] NFS: Registering the id_resolver key type [ 0.970000] Key type id_resolver registered [ 0.970000] Key type id_legacy registered [ 0.980000] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 0.980000] ntfs: driver 2.1.32 [Flags: R/W]. [ 0.990000] yaffs: yaffs Installing. [ 3.260000] NET: Registered protocol family 38 [ 3.270000] Key type asymmetric registered [ 3.270000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 251) [ 3.280000] io scheduler noop registered (default) [ 3.290000] nuc980_gpio_probe - pdev = nuc980-gpio [ 3.310000] nuc980_dma_probe - pdev = nuc980-dma [ 3.340000] nuc980-dma nuc980-dma: NUC980 DMA ready [ 3.940000] nuc980-uart.0: ttyS0 at I/O 0x0 (irq = 36, base_baud = 750000) is a NUC980 [ 3.960000] nuc980-uart.1: ttyS1 at I/O 0x0 (irq = 37, base_baud = 9375000) is a NUC980 [ 3.970000] nuc980-uart.2: ttyS2 at I/O 0x0 (irq = 38, base_baud = 9375000) is a NUC980 [ 3.980000] nuc980-uart.6: ttyS6 at I/O 0x0 (irq = 40, base_baud = 9375000) is a NUC980 [ 3.990000] nuc980-uart.7: ttyS7 at I/O 0x0 (irq = 45, base_baud = 9375000) is a NUC980 [ 4.000000] nuc980-uart.9: ttyS9 at I/O 0x0 (irq = 46, base_baud = 9375000) is a NUC980 [ 4.010000] gpio button hotplug registed:config, gpio:47 [ 4.090000] brd: module loaded [ 4.100000] RX nuc980_qspi0_probe: dma0chan0 module removed [ 4.110000] TX nuc980_qspi0_probe: dma0chan1 module removed [ 4.130000] RX nuc980_spi0_probe: dma0chan2 module removed [ 4.130000] TX nuc980_spi0_probe: dma0chan3 module removed [ 4.140000] m25p80 spi1.1: unrecognized JEDEC id bytes: ff, ff, ff [ 4.150000] m25p80: probe of spi1.1 failed with error -2 [ 4.200000] libphy: nuc980_rmii0: probed [ 4.220000] libphy: nuc980_rmii1: probed [ 4.220000] Phy id is:508145 [ 4.230000] PPP generic driver version 2.4.2 [ 4.230000] PPP BSD Compression module registered [ 4.240000] PPP Deflate Compression module registered [ 4.240000] NET: Registered protocol family 24 [ 4.250000] usbcore: registered new interface driver rndis_wlan [ 4.260000] usbcore: registered new interface driver zd1201 [ 4.270000] usbcore: registered new interface driver usb8xxx [ 4.270000] usbcore: registered new interface driver ath6kl_usb [ 4.280000] usbcore: registered new interface driver mwifiex_usb [ 4.290000] usbcore: registered new interface driver brcmfmac [ 4.290000] usbcore: registered new interface driver catc [ 4.300000] usbcore: registered new interface driver kaweth [ 4.310000] pegasus: v0.9.3 (2013/04/25), Pegasus/Pegasus II USB Ethernet driver [ 4.310000] usbcore: registered new interface driver pegasus [ 4.320000] usbcore: registered new interface driver rtl8150 [ 4.330000] usbcore: registered new interface driver r8152 [ 4.330000] usbcore: registered new interface driver asix [ 4.340000] usbcore: registered new interface driver ax88179_178a [ 4.350000] usbcore: registered new interface driver cdc_ether [ 4.360000] usbcore: registered new interface driver smsc75xx [ 4.360000] usbcore: registered new interface driver smsc95xx [ 4.370000] usbcore: registered new interface driver gl620a [ 4.380000] usbcore: registered new interface driver net1080 [ 4.380000] usbcore: registered new interface driver rndis_host [ 4.390000] usbcore: registered new interface driver cdc_subset [ 4.400000] usbcore: registered new interface driver zaurus [ 4.400000] usbcore: registered new interface driver cdc_ncm [ 4.410000] usbcore: registered new interface driver qmi_wwan [ 4.420000] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 4.430000] nuc980-ehci nuc980-ehci: Nuvoton NUC980 EHCI Host Controller [ 4.430000] nuc980-ehci nuc980-ehci: new USB bus registered, assigned bus number 1 [ 4.440000] nuc980-ehci nuc980-ehci: irq 23, io mem 0xb0015000 [ 4.470000] nuc980-ehci nuc980-ehci: USB 2.0 started, EHCI 0.95 [ 4.480000] hub 1-0:1.0: USB hub found [ 4.480000] hub 1-0:1.0: 2 ports detected [ 4.490000] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver [ 4.490000] usb_hcd_nuc980_probe, id = 0, name: nuc980-ohci.0, 0 [ 4.500000] nuc980-ohci nuc980-ohci.0: Nuvoton NUC980 OHCI Host Controller [ 4.510000] nuc980-ohci nuc980-ohci.0: new USB bus registered, assigned bus number 2 [ 4.510000] nuc980-ohci nuc980-ohci.0: irq 24, io mem 0xb0017000 [ 4.580000] hub 2-0:1.0: USB hub found [ 4.590000] hub 2-0:1.0: 8 ports detected [ 4.590000] usb_hcd_nuc980_probe, id = 1, name: nuc980-ohci.1, 0 [ 4.600000] usb_hcd_nuc980_probe, id = 2, name: nuc980-ohci.2, 0 [ 4.610000] usb_hcd_nuc980_probe, id = 3, name: nuc980-ohci.3, 0 [ 4.610000] usb_hcd_nuc980_probe, id = 4, name: nuc980-ohci.4, 0 [ 4.620000] usb_hcd_nuc980_probe, id = 5, name: nuc980-ohci.5, 0 [ 4.630000] usb_hcd_nuc980_probe, id = 6, name: nuc980-ohci.6, 0 [ 4.630000] usbcore: registered new interface driver cdc_wdm [ 4.640000] usbcore: registered new interface driver usb-storage [ 4.650000] usbcore: registered new interface driver ums-realtek [ 4.660000] usbcore: registered new interface driver usbserial [ 4.660000] usbcore: registered new interface driver usbserial_generic [ 4.670000] usbserial: USB Serial support registered for generic [ 4.680000] usbcore: registered new interface driver ch341 [ 4.690000] usbserial: USB Serial support registered for ch341-uart [ 4.690000] usbcore: registered new interface driver cp210x [ 4.700000] usbserial: USB Serial support registered for cp210x [ 4.710000] usbcore: registered new interface driver ftdi_sio [ 4.720000] usbserial: USB Serial support registered for FTDI USB Serial Device [ 4.730000] usbcore: registered new interface driver option [ 4.730000] usbserial: USB Serial support registered for GSM modem (1-port) [ 4.740000] usbcore: registered new interface driver pl2303 [ 4.750000] usbserial: USB Serial support registered for pl2303 [ 4.750000] usbcore: registered new interface driver usb_serial_simple [ 4.760000] usbserial: USB Serial support registered for carelink [ 4.770000] usbserial: USB Serial support registered for zio [ 4.780000] usbserial: USB Serial support registered for funsoft [ 4.780000] usbserial: USB Serial support registered for flashloader [ 4.790000] usbserial: USB Serial support registered for google [ 4.800000] usb 1-2: new high-speed USB device number 2 using nuc980-ehci [ 4.810000] usbserial: USB Serial support registered for libtransistor [ 4.810000] usbserial: USB Serial support registered for vivopay [ 4.820000] usbserial: USB Serial support registered for moto_modem [ 4.830000] usbserial: USB Serial support registered for motorola_tetra [ 4.840000] usbserial: USB Serial support registered for novatel_gps [ 4.840000] usbserial: USB Serial support registered for hp4x [ 4.850000] usbserial: USB Serial support registered for suunto [ 4.860000] usbserial: USB Serial support registered for siemens_mpi [ 4.860000] usbip_core: USB/IP Core v1.0.0 [ 4.870000] vhci_hcd vhci_hcd: USB/IP Virtual Host Controller [ 4.880000] vhci_hcd vhci_hcd: new USB bus registered, assigned bus number 3 [ 4.890000] hub 3-0:1.0: USB hub found [ 4.890000] hub 3-0:1.0: 8 ports detected [ 4.900000] vhci_hcd: USB/IP 'Virtual' Host Controller (VHCI) Driver v1.0.0 [ 5.010000] usb-storage 1-2:1.0: USB Mass Storage device detected [ 5.020000] scsi host0: usb-storage 1-2:1.0 [ 5.030000] usbcore: registered new device driver usbip-host [ 5.030000] usbip_host: USB/IP Host Driver v1.0.0 [ 5.040000] nuc980-rtc nuc980-rtc: rtc core: registered nuc980-rtc as rtc0 [ 5.050000] i2c /dev entries driver [ 5.060000] nuc980-i2c3 nuc980-i2c3: i2c-3: nuc980 I2C adapter [ 5.070000] Bluetooth: HCI UART driver ver 2.3 [ 5.070000] Bluetooth: HCI UART protocol H4 registered [ 5.080000] Bluetooth: HCI UART protocol Three-wire (H5) registered [ 5.090000] usbcore: registered new interface driver btusb [ 5.090000] sdhci: Secure Digital Host Controller Interface driver [ 5.100000] sdhci: Copyright(c) Pierre Ossman [ 5.150000] usbcore: registered new interface driver ushc [ 5.160000] ledtrig-cpu: registered to indicate activity on CPUs [ 5.170000] alg: hash: Test 1 failed for nuc980-sha1 [ 5.170000] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 5.180000] 00000010: 00 00 00 00 [ 5.180000] alg: hash: Test 1 failed for nuc980-sha224 [ 5.190000] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 5.200000] 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 [ 5.200000] alg: hash: Test 1 failed for nuc980-sha256 [ 5.210000] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 5.210000] 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 5.220000] alg: hash: Test 1 failed for nuc980-sha384 [ 5.230000] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 5.230000] 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 5.240000] 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 5.250000] alg: hash: Test 1 failed for nuc980-sha512 [ 5.250000] 00000000: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 5.260000] 00000010: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 5.270000] 00000020: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 5.270000] 00000030: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 [ 5.280000] alg: No test for hmac-sha1 (nuc980-hmac-sha1) [ 5.290000] alg: No test for hmac-sha224 (nuc980-hmac-sha224) [ 5.290000] alg: No test for hmac-sha256 (nuc980-hmac-sha256) [ 5.300000] alg: No test for hmac-sha384 (nuc980-hmac-sha384) [ 5.300000] alg: No test for hmac-sha512 (nuc980-hmac-sha512) [ 5.310000] NUC980 Crypto engine enabled. [ 5.320000] hidraw: raw HID events driver (C) Jiri Kosina [ 5.340000] usbcore: registered new interface driver usbhid [ 5.350000] usbhid: USB HID core driver [ 5.350000] usbcore: registered new interface driver r8712u [ 5.360000] usbcore: registered new interface driver r8188eu [ 5.380000] nand: device found, Manufacturer ID: 0xef, Chip ID: 0xaa [ 5.380000] nand: Winbond W25N01GV 1G 3.3V [ 5.390000] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64 [ 5.400000] nand: WARNING: spi0.0: the ECC used on your system is too weak compared to the one required by the NAND chip [ 5.410000] Scanning device for bad blocks [ 5.750000] ftl_cs: FTL header not found. [ 5.770000] Netfilter messages via NETLINK v0.30. [ 5.770000] ip_set: protocol 6 [ 5.770000] IPVS: Registered protocols () [ 5.790000] IPVS: Connection hash table configured (size=4096, memory=32Kbytes) [ 5.790000] IPVS: Creating netns size=880 id=0 [ 5.810000] IPVS: ipvs loaded. [ 5.810000] NET: Registered protocol family 17 [ 5.810000] Bluetooth: RFCOMM TTY layer initialized [ 5.830000] Bluetooth: RFCOMM socket layer initialized [ 5.830000] Bluetooth: RFCOMM ver 1.11 [ 5.830000] Bluetooth: BNEP (Ethernet Emulation) ver 1.3 [ 5.850000] Bluetooth: BNEP filters: protocol multicast [ 5.850000] Bluetooth: BNEP socket layer initialized [ 5.870000] Bluetooth: HIDP (Human Interface Emulation) ver 1.2 [ 5.870000] Bluetooth: HIDP socket layer initialized [ 5.890000] l2tp_core: L2TP core driver, V2.0 [ 5.890000] DCCP: Activated CCID 2 (TCP-like) [ 5.910000] DCCP: Activated CCID 3 (TCP-Friendly Rate Control) [ 5.930000] sctp: Hash tables configured (established 512 bind 1024) [ 5.930000] lib80211: common routines for IEEE802.11 drivers [ 5.950000] lib80211_crypt: registered algorithm 'NULL' [ 5.950000] lib80211_crypt: registered algorithm 'WEP' [ 5.970000] lib80211_crypt: registered algorithm 'CCMP' [ 5.970000] lib80211_crypt: registered algorithm 'TKIP' [ 5.990000] tipc: Activated (version 2.0.0) [ 5.990000] NET: Registered protocol family 30 [ 5.990000] tipc: Started in single node mode [ 6.010000] Key type dns_resolver registered [ 6.020000] scsi 0:0:0:0: Direct-Access Generic- Multi-Card 1.00 PQ: 0 ANSI: 4 [ 6.060000] nuc980-rtc nuc980-rtc: setting system clock to 2020-06-08 14:33:16 UTC (1591626796) [ 6.860000] mmc_sd_setup_card: mdelay 20 before mmc_read_switch [ 6.890000] mmc_sd_init_card: mdelay 20 before mmc_sd_switch_hs [ 6.900000] mmc0: Problem switching card into high-speed mode! [ 6.920000] mmc_sd_init_card: mdelay 20 before mmc_sd_get_max_clock [ 6.930000] mmc0: new SDHC card at address aaaa [ 6.930000] mmcblk0: mmc0:aaaa SU08G 7.40 GiB [ 7.210000] sd 0:0:0:0: [sda] 61849600 512-byte logical blocks: (31.7 GB/29.5 GiB) [ 7.220000] sd 0:0:0:0: [sda] Write Protect is off [ 7.220000] sd 0:0:0:0: [sda] Mode Sense: 2f 00 00 00 [ 7.230000] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA [ 7.250000] sda: sda1 sda2 sda3 sda4 < sda5 sda6 > [ 7.270000] sd 0:0:0:0: [sda] Attached SCSI removable disk [ 7.470000] EXT4-fs (sda5): recovery complete [ 7.480000] EXT4-fs (sda5): mounted filesystem with ordered data mode. Opts: (null) [ 7.490000] VFS: Mounted root (ext4 filesystem) on device 8:5. [ 7.490000] devtmpfs: mounted [ 7.500000] Freeing unused kernel memory: 192K [ 7.870000] EXT4-fs (sda5): re-mounted. Opts: (null) Starting syslogd: OK Starting klogd: OK Running sysctl: OK Initializing random number generator: OK Saving random seed: [ 9.080000] random: dd: uninitialized urandom read (512 bytes read, 60 bits of entropy available) OK Starting system message bus: [ 9.270000] random: dbus-uuidgen: uninitialized urandom read (12 bytes read, 66 bits of entropy available) [ 9.280000] random: dbus-uuidgen: uninitialized urandom read (8 bytes read, 66 bits of entropy available) [ 9.350000] random: dbus-daemon: uninitialized urandom read (12 bytes read, 67 bits of entropy available) [ 9.400000] random: dbus-daemon: uninitialized urandom read (12 bytes read, 70 bits of entropy available) done Starting rpcbind: OK Starting network: OK Starting dhcpcd... no interfaces have a carrier [ 11.480000] nuc980-emac0 nuc980-emac0: eth0 is OPENED forked to background, child pid 1528 [ 11.500000] nuc980-emac1 nuc980-emac1: eth1 is OPENED Starting ntpd: [ 11.690000] random: dhcpcd: uninitialized urandom read (120 bytes read, 111 bits of entropy available) OK Starting dropbear sshd: [ 12.050000] random: dropbear: uninitialized urandom read (32 bytes read, 120 bits of entropy available) OK Starting ser2net: no configuration file Starting NFS statd: [ 12.400000] random: nonblocking pool is initialized OK Starting NFS services: OK Starting NFS daemon: rpc.nfsd: Unable to access /proc/fs/nfsd errno 2 (No such file or directory). Please try, as root, 'mount -t nfsd nfsd /proc/fs/nfsd' and then restart rpc.nfsd to correct the problem FAIL Starting NFS mountd: rpc.mountd: svc_tli_create: could not open connection for udp6 rpc.mountd: svc_tli_create: could not open connection for tcp6 rpc.mountd: svc_tli_create: could not open connection for udp6 rpc.mountd: svc_tli_create: could not open connection for tcp6 rpc.mountd: svc_tli_create: could not open connection for udp6 rpc.mountd: svc_tli_create: could not open connection for tcp6 OK atd: created missing .SEQ file (atjobs will be lost on reboot) Starting atd: OK

Welcome to Buildroot buildroot login: root

[ 24.080000] mmc0: card aaaa removed

[ 30.680000] mmc0: SD Status: Invalid Allocation Unit size [ 30.710000] mmc_sd_setup_card: mdelay 20 before mmc_read_switch [ 30.730000] mmc_sd_init_card: mdelay 20 before mmc_sd_switch_hs [ 30.760000] mmc_sd_init_card: mdelay 20 before mmc_sd_get_max_clock [ 30.770000] mmc0: new SDHC card at address e773 [ 30.770000] mmcblk0: mmc0:e773 B04GK 3.69 GiB

yachen commented 4 years ago

Hi, Can you check the voltage level of PC12? Wonder why there's always a card remove message before kernel trying to detect the card type.

tonyho commented 4 years ago

Hi, Can you check the voltage level of PC12? Wonder why there's always a card remove message before kernel trying to detect the card type.

The card remove message is printed when I remove the mmc card.

yachen commented 4 years ago

What about other Port C pins (such as SD DATx/CMD/CLK), are they shared with other function on your board? It's difficult for us to check this issue remotely without your hardware. Who's your distributor in ShangHai? Can you ask them to check your hardware?

Does the SD PC pins share with other function on your board? --> You mean the CD pin? No.

tonyho commented 4 years ago

What about other Port C pins (such as SD DATx/CMD/CLK), are they shared with other function on your board? It's difficult for us to check this issue remotely without your hardware. Who's your distributor in ShangHai? Can you ask them to check your hardware?

Does the SD PC pins share with other function on your board? --> You mean the CD pin? No.

Thanks for such a long support in Github issue, I think the root case for this is caused by the hardware. We tried to manufact 2 more board, and both of them without this issue. So thanks all your reply, and I will close this issue.

We buy the NUC980 for a remote distributor in ShenZhen not in Shanghai. Also hope that the NUC would have a wiki or discussion forum for customers.

yachen commented 4 years ago

Below are URLs for our forums. Post issues here are always welcome. http://forum.nuvoton.com/ http://www.nuvoton-mcu.com/forum.php?mod=forumdisplay&fid=77 https://bbs.21ic.com/iclist-187-1.html

Sincerely,

Yi-An Chen

redworlf007 commented 4 years ago

以下是我们论坛的URL。始终欢迎在此处发布问题。 http://forum.nuvoton.com/ http://www.nuvoton-mcu.com/forum.php?mod=forumdisplay&fid=77 https://bbs.21ic.com/iclist-187-1.html

真诚的

陈宜安

nuc980 SD有两个SD0_nCD,一个PB8 一个PC12,怎么配置用哪一个引脚呢?