Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SD card not available on T31N #1039

Open
Slusko88 opened this issue Oct 11, 2023 · 7 comments
Open

SD card not available on T31N #1039

Slusko88 opened this issue Oct 11, 2023 · 7 comments

Comments

@Slusko88
Copy link

Slusko88 commented Oct 11, 2023

Installed openIPC on my camera([Xiaomi MJSXJ03HL) but I am unable to access SD card.

I have tried gpio clear 54 procedure as well as rebooting with and without SD card inserted.

In dmesg output I have noticed that there is some problem with mmc initialization.

`

[ 1.440648] [resetd] GPIO undefined in /usr/sbin/resetd
[ 2.104820] mmc0: host doesn't support card's voltages
[ 2.104835] mmc0: error -22 whilst initialising SDIO card
[ 2.123575] mmc0: host doesn't support card's voltages
[ 2.123591] mmc0: error -22 whilst initialising MMC card
[ 2.245693] mmc0: host doesn't support card's voltages
[ 2.245709] mmc0: error -22 whilst initialising SDIO card
[ 2.264091] mmc0: host doesn't support card's voltages
[ 2.264109] mmc0: error -22 whilst initialising MMC card
[ 2.385695] mmc0: host doesn't support card's voltages
[ 2.385713] mmc0: error -22 whilst initialising SDIO card
[ 2.404029] mmc0: host doesn't support card's voltages
[ 2.404045] mmc0: error -22 whilst initialising MMC card

`
Here is complete dmesg output.
dmesg_output.txt

@themeadery
Copy link

I have similar errors on Wyze cam V3 which is T31X I believe.

image

@themeadery
Copy link

It seems getting into uboot by pressing ctrl-c quickly after power up, then issuing gpio set 57; gpio clear 57 then boot will fix the sd card reader (and also fixed my wlan).

@darkfuncat
Copy link

You can also refer to this issue : OpenIPC/device-mjsxj03hl#15 (comment)
The workaround to manualy do gpio commands at boot works but now it will be great to have this done automaticaly.
To be honest I dont know who could handle this and how (modifiy bootloader ? is it possible ?)
I tried to download and compile firmware (not bootloader) to test but it is very complicated for me.

@themeadery
Copy link

@gtxaspec Can you commit this to our uboot and trigger a compile/release?

@gtxaspec
Copy link
Contributor

@themeadery there are several issues regarding GPIOs on the Ingenic platform in OpenIPC as a whole, involving both u-boot and the linux kernel. I'm taking a look at them with some other devs, it will take some time to make some proper changes.

@themeadery
Copy link

Awesome. I kinda figured you were working on a cleaner fix. Thx

@Slusko88
Copy link
Author

Slusko88 commented Oct 19, 2023

I managed to get sd card to work by running these commands:

gpio clear 54

echo "INSERT" > /sys/devices/platform/jzmmc_v1.2.0/present

After this sd card should be mounted under /mnt dir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants