Commit 2daa813
authored
Add support for Transcend cards
Vendor provides code in Github but their code was not used for this patch.
Compiled and tested using a brand new 230I 32GB card on my T6 ARM board:
sudo ./sdmon /dev/mmcblk0
{
{
"version": "abc222",
"date": "2024-01-04T21:38:28.000Z",
"device":"/dev/mmcblk0",
"addTime": "false",
"signature":"0x54 0x72",
"Transcend":"true",
"Secured mode": 0,
"Bus width": 4 bits
"Speed mode": Class 10
"UHS speed grade": 30MB/s and higher
"New bad blocks cnt": 0x00,
"Runtime spare blocks cnt": 0x33,
"Abnormal power loss": 0,
"Minimum erase cnt": 0,
"Maximum erase cnt": 1,
"Average erase cnt": 0,
"Remaining card life": 100%,
"Total write CRC cnt": 0,
"Power cycle cnt": 0,
"NAND flash ID": 0x45,0x3c,0x98,0xb3,0x76,0x6b,
"IC": SM2707E,
"fw version": T0408 ,
"success":true
}
Cards below 8GB have different offsets for their data so they will not work properly.1 parent 2de4f03 commit 2daa813
1 file changed
Lines changed: 69 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
| 285 | + | |
| 286 | + | |
| 287 | + | |
| 288 | + | |
| 289 | + | |
| 290 | + | |
| 291 | + | |
| 292 | + | |
| 293 | + | |
| 294 | + | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
| 298 | + | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
255 | 324 | | |
256 | 325 | | |
257 | 326 | | |
| |||
0 commit comments