You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I poked at this some more this evening, since I was wondering if I could verify whether this was a FAT12-specific issue, perhaps by mucking around with the block/cluster sizes to change the number of clusters on disk (I didn't get that far).
I see the same "erase/rename drive" behavior with PyPortal, with it's 8MB of storage. It shows up on my Mac (via diskutil info) as File System Personality: FAT16 drive, vs FAT12 for Circuit Playground Express. They both show up as Partition Type: DOS_FAT_12 🤷♂️. So I suspect it's still a FAT12-ish drive, but I'm not positive.
Fixed f_fdisk() and f_mkfs() create the partition table with wrong CHS parameters. (appeared at R0.09)
It looks like CircuitPython uses a version that'd include this problem. I'm seeing R0.12b.
I think this is the fix: abbrev/fatfs@5c7915f I tried applying it & seeing if it made a difference, but I got the same "erase/rename drive" & crash iPad behavior (assuming I did it correctly).
Finally, I pulled a panic log ("incident_id":"E764F68C-1BFA-4244-98BD-5743A32672A7" for any Apple lurkers) from my iPad, and it included:
panic(cpu 1 caller 0xfffffff015b6e624): Unaligned kernel data abort
And unaligned accesses seem very plausibly related to 12 bit data.
The text was updated successfully, but these errors were encountered:
e28eta
changed the title
Some investigation?
Some investigation
Jun 26, 2019
@e28eta please check out the latest iOS beta, i think it's fixed, maybe, i need to test more, but so far i was able to open code.py in the files app and nothing deleted itself or crashed.
Thanks for the blog post & videos @ptorrone! TIL about FAT12, and found @dhalbert's excellent info in adafruit/circuitpython#111
I poked at this some more this evening, since I was wondering if I could verify whether this was a FAT12-specific issue, perhaps by mucking around with the block/cluster sizes to change the number of clusters on disk (I didn't get that far).
I see the same "erase/rename drive" behavior with PyPortal, with it's 8MB of storage. It shows up on my Mac (via
diskutil info
) asFile System Personality: FAT16
drive, vsFAT12
for Circuit Playground Express. They both show up asPartition Type: DOS_FAT_12
🤷♂️. So I suspect it's still a FAT12-ish drive, but I'm not positive.I also found the release notes for fatfs R0.13a, which include:
It looks like CircuitPython uses a version that'd include this problem. I'm seeing R0.12b.
I think this is the fix: abbrev/fatfs@5c7915f I tried applying it & seeing if it made a difference, but I got the same "erase/rename drive" & crash iPad behavior (assuming I did it correctly).
Finally, I pulled a panic log (
"incident_id":"E764F68C-1BFA-4244-98BD-5743A32672A7"
for any Apple lurkers) from my iPad, and it included:And unaligned accesses seem very plausibly related to 12 bit data.
The text was updated successfully, but these errors were encountered: