RetroBSD

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

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Disk testing
PostPosted: Wed Dec 26, 2012 8:02 pm 
User avatar

Joined: Mon Nov 12, 2012 3:17 pm
Posts: 164
Location: Bratislava, Slovakia
Guys, as I have now the SDRAM protoype - hopefully - working, what would be correct way to test the disk from retrobsd system?

_________________
http://jaromir.xf.cz/
https://hackaday.io/jaromir/


Top
 Profile  
 
 Post subject: Re: Disk testing
PostPosted: Wed Dec 26, 2012 8:12 pm 
Committer
User avatar

Joined: Thu Oct 11, 2012 8:45 am
Posts: 1801
Location: Room 217, Floor 8, Arm 8, Wheel S7, Mars Base Alpha 3
You could try setting it up as a ramdisk and writing to it...

Use fdisk to partition it from within RetroBSD, and see if it retains the partition information:

Code:
# fdisk -w -n /dev/rd1
[displays a fresh partition table]
# fdisk -p /dev/rd1
[should display the same information]

If that works, then try:
Code:
# mkfs /dev/rd1a
...
# mount /dev/rd1a /u

Then play around reading and writing files to /u

_________________
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".


Top
 Profile  
 
 Post subject: Re: Disk testing
PostPosted: Wed Dec 26, 2012 8:44 pm 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
Disktool utility is good for testing RAM disks:
Code:
Usage:
    disktool [options] device [blocknum]
Options:
    -a              -- test a block with alternate pattern 55/AA
    -c              -- test a block with counter pattern 0-1-2...FF
    -b              -- test blocks 0-1-2-4-8...blocknum
    -f pattern      -- fill blocks 0...blocknum with given byte value
    -v              -- verbose mode


Top
 Profile  
 
 Post subject: Re: Disk testing
PostPosted: Thu Dec 27, 2012 8:25 am 
User avatar

Joined: Mon Nov 12, 2012 3:17 pm
Posts: 164
Location: Bratislava, Slovakia
Hm, seems like I have problem with SDRAM disk.
When I use disktool to test one block at time, everything runs smooth
Code:
# disktool -c rd1a    /dev/rd1a 0
Testing block 0 at address 000000.
Done.
# disktool -c /dev/rd1a 1
Testing block 1 at address 000400.
Done.
# disktool -c /dev/rd1a 4
Testing block 4 at address 001000.
Done.

But when I issue command for disktool to test blocks sequentially, I get
Code:
# disktool -b dev   /dev/rd1a 4
Writing block 0 at address 000000.
Writing block 1 at address 000400.
Writing block 2 at address 000800.
Writing block 4 at address 001000.
Reading block 0 at address 000000.
Data error: offset 1 written 01 read 00.
Data error: offset 2 written 02 read 00.
...
...
Data error: offset 1022 written FE read 00.
Data error: offset 1023 written FF read 00.
Reading block 1 at address 000400.
Data error: offset 0 written 01 read 7F.
Data error: offset 1 written 02 read 7F.
...
Data error: offset 1023 written 02 read 7F.
Done.
#

1023 errors for each block, indicating complete failure. I probably need to check signals on SDRAM pins and wiring, maybe short-circuit.
Seems like funny and entertaining way to spend a day :evil: :lol:

_________________
http://jaromir.xf.cz/
https://hackaday.io/jaromir/


Top
 Profile  
 
 Post subject: Re: Disk testing
PostPosted: Thu Dec 27, 2012 1:01 pm 
User avatar

Joined: Mon Nov 12, 2012 3:17 pm
Posts: 164
Location: Bratislava, Slovakia
I found a few unsoldered pins. Cheap shitty chinese soldering flux.
I got a bit further, though it is still a bit confusing.
Code:
# cd dev
# fdisk -p rd1
Partition table not valid.
rd1: 16384 blocks of 1KB
Nr    Start   Length Type
# mkfs rd1
Getting disk size for rd1
Size: 0 kbytes
Can't make zero length filesystem
#

_________________
http://jaromir.xf.cz/
https://hackaday.io/jaromir/


Top
 Profile  
 
 Post subject: Re: Disk testing
PostPosted: Thu Dec 27, 2012 1:50 pm 
Committer
User avatar

Joined: Thu Oct 11, 2012 8:45 am
Posts: 1801
Location: Room 217, Floor 8, Arm 8, Wheel S7, Mars Base Alpha 3
You need to create a partition first - read my earlier post. Do an fdisk -w -n /dev/rd1 first, then you can do mkfs /dev/rd1a (note the a to denote the first partition).

_________________
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".


Top
 Profile  
 
 Post subject: Re: Disk testing
PostPosted: Sat Jun 08, 2013 6:25 am 

Joined: Sat Jun 08, 2013 6:12 am
Posts: 1
Does anyone know if the fubarinos that seeed is currently selling are still using the 795 chip (that is, still capable of running retrobsd)?

_________________
Liza2


Top
 Profile  
 
 Post subject: Re: Disk testing
PostPosted: Thu Sep 26, 2013 10:22 am 
Committer
User avatar

Joined: Thu Oct 11, 2012 8:45 am
Posts: 1801
Location: Room 217, Floor 8, Arm 8, Wheel S7, Mars Base Alpha 3
I believe the Seeed Fubarino SD is the 1.4 version of the board that has the lower-spec (MX460 is it?) chip. You need the 1.5 version, which can be bought from Microchip Direct: http://www.microchipdirect.com/ProductSearch.aspx?Keywords=TCHIP010

_________________
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".


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

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