RetroBSD

2.11BSD operating system for microcontrollers
It is currently Sat Apr 20, 2019 8:22 am

All times are UTC




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: MZ DA Starter Kit
PostPosted: Sun Jul 15, 2018 11:54 pm 

Joined: Sun Jul 15, 2018 1:17 am
Posts: 1
Hello everyone!

I purchased an MZ DA started kit with stacked DRAM a couple weeks ago to get familiar with some of Microchip's higher-end parts and because I thought it would be educational to try to get LiteBSD to use its internal DRAM and SDHC peripheral.

So far, I've added an SD breakout board to an SPI port (just to get things running) and have gotten the system to boot with a few minimal code changes. My working code is here: https://github.com/BenLaskowski/LiteBSD/tree/mzda-starter-kit

My rough plan is to use the onboard DRAM for something, then work with the SDHC. I'm torn with how to use the DRAM. Should I edit the linker script and initialization code to use exclusively the DRAM - thus reducing the need for swap - OR should I create a new driver (called dram, perhaps) that can be the block device that LiteBSD wants for swap?

I notice that the default config uses a 32 MB swap partition, and the onboard DRAM is 32 MB, so it seems like the second option is a natural fit. Something like cc would still swap a bunch, but copies between internal memories would be a lot faster than accessing the SD card, and there would be no SD lifing concerns. I presume this way is also preferable since we'd still get zero wait state execution from SRAM.

Thoughts?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC


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

Search for:
cron




Powered by phpBB® Forum Software © phpBB Group

BSD Daemon used with permission