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

Unbricking a CID #79

Open
The-Synthax opened this issue Jan 13, 2023 · 18 comments
Open

Unbricking a CID #79

The-Synthax opened this issue Jan 13, 2023 · 18 comments

Comments

@The-Synthax
Copy link

I've been trying for a while now to pin down why I can't get a single Tegra card to boot properly. I've tried to DD whole disk images to them from working cards, or just partitions 3/4, that were on the same firmware version as the bricked card. I've tried leaving 3/4 blank, or just copying over the contents of /var/etc/. I've tried upgrading or downgrading from CID updater, both will successfully stage and swap updater to the version I'm trying to install. Firmware seems to install on the IC, as it'll still boot and display just fine when installed in the car. gostaged seems to fail every time, even with both staged_update: yes and gateway_needs_update: yes. Maps SD is inserted, same with gateway's card. Really don't understand why nothing I do will get these to stop booting to CID-recovery.

@The-Synthax
Copy link
Author

Is it possible Spansion is corrupt? Can someone send me a working dump of Spansion and the firmware that goes along with it?

@MrAzE
Copy link

MrAzE commented Jan 13, 2023

did you tru to view update log?

@The-Synthax
Copy link
Author

The-Synthax commented Jan 13, 2023

did you tru to view update log?

I haven't checked the log files, do they have any info in them that watch won't give me?

edit: cid-updater.log is empty.

@jeankalud
Copy link

Can you show what you have on watch after you issue the gostaged. The reason it fails is likely in there. Also, on the gateway SD card there are log files that could be useful to diag.

@The-Synthax
Copy link
Author

Can you show what you have on watch after you issue the gostaged. The reason it fails is likely in there. Also, on the gateway SD card there are log files that could be useful to diag.

I'll attach a serial log since I get disconnected from updater after it reboots gateway to update it. I sent it install http://192.168.90.125/2020.20.17.img and here's the log from that
cid serial log.txt
it sends noboot.img to gateway, then I get disconnected from cid-updater over ethernet. Just gets stuck repeating Gateway is not responding to pings, retrying in 60 seconds. for hours. Seems to not even be creating release.tgz, not sure why.

@jeankalud
Copy link

Probably unable to do the hwacq phase, is there a CAN module missing ? You probably can get the log from the gw

Connect to gw and do cat HWIDACQ.LOG

@The-Synthax
Copy link
Author

The-Synthax commented Jan 14, 2023

Haven't had a chance yet to go out to the car but uh, does the dimmable rearview mirror use CAN? And would that being disconnected cause an updater error? I've been running a lot of these installs on the bench with an IC connected, but it wasn't succeeding when installed in the car either.

Edit: Just realized it might be my airbag module it's unhappy about, I hadn't reinstalled it because I wanted to get this firmware issue sorted out, but might be preventing me from installing firmware. I'll get the mirror, airbags, and SRS module in before I try another firmware install.

@jeankalud
Copy link

HWIDACQ.LOG and UDSDEBUG.LOG would 100% tell you where it fails. Also, if rooted, grep gwmon on syslog you would see.

@tanzui
Copy link

tanzui commented Jan 28, 2023

timeout - BMS contactors did not close, ctr state SNA (4) cid-updater:17650: gwmon 326811: BMS contactor open request

I wonder if you solved the problem? From the log, it seems that your high voltage connector is not off, and some other hardware is not communicating, possibly because there is no high voltage.

@tanzui
Copy link

tanzui commented Jan 28, 2023

Can I have a copy of your emmc dump? I also had some trouble with my car. I would like to study it and not use it for other purposes. In exchange, I can share some other versions of offline firmware with you.

@The-Synthax
Copy link
Author

` timeout - BMS contactors did not close, ctr state SNA (4)

cid-updater:17650: gwmon 326811: BMS contactor open request`

I wonder if you solved the problem? From the log, it seems that your high voltage connector is not off, and some other hardware is not communicating, possibly because there is no high voltage.

That log was taken with the MCU on the bench, but I did record another log with it in the car. With Jeankalud's help we figured out that the disconnected radar module was preventing the hwidacq stage from completing, so the update would never stage. I'll go ahead and post updated logs tomorrow. I still have a no-boot situation, but I'll have to do some more troubleshooting when I have time (hopefully starting tomorrow.)

@The-Synthax
Copy link
Author

I was attempting (and may continue to) get U-boot and the open source kernel built to make modding and debugging easier. That should made it possible to obtain permanent root on even the latest firmware, and have complete control over the OS. For now, I just want to get my car working. If I were able to get access to Spansion flash, this would probably be a whole lot easier.

@The-Synthax
Copy link
Author

Can I have a copy of your emmc dump? I also had some trouble with my car. I would like to study it and not use it for other purposes. In exchange, I can share some other versions of offline firmware with you.

Sure, contact me on Discord @ Synthax#0001 I have various dumps I can share and plenty of research I can discuss if you'd like.

@stiffler-m
Copy link

hello, friends. I'm wondering about the u-boot loader, has anyone managed to make it work? if anyone needs dumps, write, I have a lot of dumps and firmware for tegra and intel.

@tanzui
Copy link

tanzui commented Jan 30, 2023

Can I have a copy of your emmc dump? I also had some trouble with my car. I would like to study it and not use it for other purposes. In exchange, I can share some other versions of offline firmware with you.

Sure, contact me on Discord @ Synthax#0001 I have various dumps I can share and plenty of research I can discuss if you'd like.

Ok,I added you.

@tanzui
Copy link

tanzui commented Jan 30, 2023

hello, friends. I'm wondering about the u-boot loader, has anyone managed to make it work? if anyone needs dumps, write, I have a lot of dumps and firmware for tegra and intel.

I would like a emmc dump. My email is [email protected]. I would like to look study it.

@The-Synthax
Copy link
Author

The-Synthax commented Jan 30, 2023

hello, friends. I'm wondering about the u-boot loader, has anyone managed to make it work? if anyone needs dumps, write, I have a lot of dumps and firmware for tegra and intel.

I have a partially working U-boot, it can't access the onboard eMMC or the NOR but is able to access the maps SD or the rear USB ports for loading a kernel (or the kernel can be loaded via serial)

@The-Synthax
Copy link
Author

hello, friends. I'm wondering about the u-boot loader, has anyone managed to make it work? if anyone needs dumps, write, I have a lot of dumps and firmware for tegra and intel.

I'd be interested in those dumps.

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

5 participants