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

PI SD Card #138

Open
borsosgy opened this issue Aug 14, 2024 · 9 comments
Open

PI SD Card #138

borsosgy opened this issue Aug 14, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@borsosgy
Copy link

hello nisargjhaveri
I use the image with PI ZERO 2W.
The PI is powered via USB.
If I turn off the car, the power to the PI is switched off.
Because of this power outage, the SD image is broken every month and I have to create it again.
Do you have a suggestion as to what kind of SD I could use?
Thanks in advance

@borsosgy
Copy link
Author

@EgorkillerUA
Copy link

I can also confirm this. Only for me it breaks even more often, about once every day or two, which makes it impossible to use.

@nisargjhaveri
Copy link
Owner

#109 has some details and discussion on how to prevent it.

@borsosgy
Copy link
Author

#109 has some details and discussion on how to prevent it.

Hi nisarghaveri,

do you mean log2ram?

@nisargjhaveri
Copy link
Owner

We already log to RAM, the logs are not written on the SD card. But the SD card itself is not made readonly as we do need to write the bluetooth pairing information occasionally.

#109 contains some instructions on making the SD card readonly after initially pairing bluetooth, which might help if your SD card is getting corrupt frequently.

@sud007
Copy link

sud007 commented Sep 12, 2024

I too am facing this same issue with my Suzuki car. I have a Samsung SDXC card. I have to reformat and flash it every time, and then it works.

It breaks every day on first turnoff. I think this happens when music was playing and car was turned off.

@sud007
Copy link

sud007 commented Sep 12, 2024

We already log to RAM, the logs are not written on the SD card. But the SD card itself is not made readonly as we do need to write the bluetooth pairing information occasionally.

#109 contains some instructions on making the SD card readonly after initially pairing bluetooth, which might help if your SD card is getting corrupt frequently.

When are we planning to merge this PR?

@nisargjhaveri
Copy link
Owner

@sud007 you can try out builds from #159 and see if it helps? I'm waiting for someone try out and see if it actually helps.

@sud007
Copy link

sud007 commented Sep 21, 2024

OK so thanks @nisargjhaveri for replying. Here is one thing that I did as mentioned on #109

edit the cmdline.txt file and add ro at the end of the line

  1. Burned the image to SD card.
  2. I edited the file as mentioned and nothing else.
  3. No image code building, just added ro at the end of command.
  4. Used the SD card in piZero2W

And have tested this to be working for last 9 days (since my last comment).
What is working

  1. Perfectly connects to my S24 Ultra.
  2. Also added other devices without doing anything after the changes made in cmdline.txt. (Pixel 6 and S23 Ultra).

Been 9 days since no issues!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants