Comments (2)
yes, the SD driver takes around a second to react, I use rootwait
myself.
from linux-sunxi.
I modified the mmc driver (drivers/mmc/sunxi-host/host_op.c) so that the initial timer function which detects the presence of an sd card runs immediately instead of with the default delay of 1 second.
changing where the timer is defined within sunximmc_probe to:
smc_host->cd_timer.expires = jiffies;
This does work, I was able to boot my system without the rootwait argument passed to the kernel, though, perhaps (as this is essentially a race) I was just lucky.
However, this then causes some warnings on boot (tested on mele A1000)
[ 2.990000] [mmc_pm]: no sdio card used in configuration
[ 3.000000] [mmc]: sunximmc_init
[ 3.010000] [mmc]: sunxi mmc controller using config : 0xb
[ 3.020000] [mmc]: sunxi-mmc.0: pdev->name: sunxi-mmc, pdev->id: 0
[ 3.030000] [mmc]: mmc 0 power off !!
[ 3.030000] [mmc]: mmc0 Probe: base:0xdc8de000 irq:32 dma:0 pdes:0xd9a6c000, ret 0.
[ 3.050000] [mmc]: mmc 0 detect change, present 1
[ 3.060000] [mmc]: mmc 0 power on !!
[ 3.060000] [mmc]: sunxi-mmc.1: pdev->name: sunxi-mmc, pdev->id: 1
[ 3.070000] [mmc]: mmc 1 power off !!
[ 3.080000] [mmc]: mmc1 Probe: base:0xdc8e0000 irq:33 dma:0 pdes:0xd9a74000, ret 0.
[ 3.090000] [mmc]: sunxi-mmc.3: pdev->name: sunxi-mmc, pdev->id: 3
[ 3.110000] [mmc]: mmc 3 power off !!
[ 3.110000] [mmc]: sdxc_request_done(L1113): smc 0 err, cmd 52, RTO !!
[ 3.120000] [mmc]: mmc3 Probe: base:0xdc8e2000 irq:35 dma:0 pdes:0xd9a78000, ret 0.
[ 3.140000] [mmc]: sdxc_request_done(L1113): smc 0 err, cmd 52, RTO !!
[ 3.160000] [mmc]: sdxc_request_done(L1113): smc 0 err, cmd 5, RTO !!
[ 3.180000] [mmc]: sdxc_request_done(L1113): smc 0 err, cmd 5, RTO !!
[ 3.200000] [mmc]: sdxc_request_done(L1113): smc 0 err, cmd 5, RTO !!
[ 3.220000] [mmc]: sdxc_request_done(L1113): smc 0 err, cmd 5, RTO !!
Looking into drivers/mmc/sunxi-host/sdxc.c the RTO message indicates that there was a Response Timeout.
Based on the series of timeouts (possibly because we're still probing other (not used?) ports) I think that specifying the rootwait kernel argument is the right option for the moment.
from linux-sunxi.
Related Issues (20)
- GC2035 camera driver is unavailable at sunxi-next ? HOT 1
- sunxi-mmc 1c0f000.mmc: reset err -524 HOT 1
- Allwinner A33 -4.15.0-rc2-ga615204e7 - Logitech mouse - musb_hdrc error
- Best WiFi and Bluetooth IC for Sunxi
- thermal zone failes
- Ethernet and the h3-orangepi dts file HOT 1
- Can't get HDMI out on OrangePi One on sunxi-next HOT 2
- sunxi-next drm can't set unusual resolutions HOT 4
- Mainline: MMC-Error -110 on Vacuum HOT 4
- mainline 5.3-rc3: usb not working in otg mode
- FEL mode repeatedly connects and disconnects. Is this normal? HOT 3
- sunxi-mail seems to be down / unavailable HOT 1
- system can not login( 3.4.113-sun8i #6 )
- fbtft spi lcd not working after update to from 5.10.43 to 5.10.60 HOT 1
- Cedrus on A23
- sunxi-v3s uart1's reg can't operate HOT 2
- Error with toolchain compilation
- Include module kernel/drivers/iio/humidity/dht11.ko
- [Website] Website is down HOT 1
- sun8i-H3 NanoPi Neo Unable to wake from suspend with Power Button
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from linux-sunxi.