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

Some investigation #1

Open
e28eta opened this issue Jun 26, 2019 · 3 comments
Open

Some investigation #1

e28eta opened this issue Jun 26, 2019 · 3 comments

Comments

@e28eta
Copy link

e28eta commented Jun 26, 2019

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) 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.

I also found the release notes for fatfs R0.13a, which include:

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.

@e28eta e28eta changed the title Some investigation? Some investigation Jun 26, 2019
@ptorrone
Copy link
Member

thanks @e28eta for checking this out!

@ptorrone
Copy link
Member

@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.

codepy
version

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

2 participants