Last visit was: Sun Sep 19, 2021 10:01 am
It is currently Sun Sep 19, 2021 10:01 am



 [ 3 posts ] 
 Question: removable storage for a hombrew CPU SBC 
Author Message

Joined: Wed May 15, 2019 1:17 am
Posts: 21
Hi all. Once I finish up on my 8-bit TTL CPU (https://github.com/DoctorWkt/CSCvon8/), I was thinking of looking at some of the existing minimal 68020 SBCs: the aim would be to port the xv6 system to the SBC. Link: https://pdos.csail.mit.edu/6.828/2018/xv6.html.

To do this, I'd want to add some form of removable storage, so I could build a filesystem on the storage with an existing system. Does anybody have any recommendations on suitable removable storage that could be, or has been, added to a homebrew SBC?

So far I was thinking of an SD card in SPI mode, with some shift registers to interface between the card and the CPU.

Any other ideas and suggestions most appreciated!


Wed May 15, 2019 1:32 am

Joined: Tue Dec 11, 2012 8:03 am
Posts: 285
Location: California
We had a similar discussion on the "Brad's Projects" forum:
super-simple file system for flash memory

_________________
http://WilsonMinesCo.com/ lots of 6502 resources


Wed May 15, 2019 1:47 am WWW

Joined: Wed Jan 09, 2013 6:54 pm
Posts: 1632
SD card would certainly be my first thought: you don't necessarily need any shift registers, because you're providing both clock and data, so you can proceed as slowly and irregularly as you like.

There is then the question of what you do with the blocks that you read or write: whether to do the normal but slightly complex thing of recognising partition tables and a FAT filesystem, or roll your own mini filesystem, or treat the SD card as sequential block storage, or something in between.

One of the standard SD Card approaches for Acorn's BBC Micro is to have a rather minimal FAT implementation which just reads one file in the root directory: that file contains a number of disk images and then the disk filing system accesses those in the usual way by reading and writing sectors. In this way there's a minimal but useful compatibility with updating or saving the one big file on a PC. However, this approach builds on top of an existing disk file system, which you don't - yet - have.


Wed May 15, 2019 7:47 am
 [ 3 posts ] 

Who is online

Users browsing this forum: CCBot and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group
Designed by ST Software