RetroBSD

2.11BSD operating system for microcontrollers
It is currently Thu Nov 14, 2019 1:55 am

All times are UTC




Post new topic Reply to topic  [ 205 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11  Next
Author Message
PostPosted: Fri Dec 28, 2012 1:09 am 
Committer

Joined: Thu Nov 08, 2012 3:55 am
Posts: 177
Try using dd to copy a large file to the device (rd1). Then copy it back to a new file and compare the results.

Also, does it crash if you just let it sit after running the disktool test that was within bounds?

Email sent.


Top
 Profile  
 
PostPosted: Thu Jan 03, 2013 11:18 am 
User avatar

Joined: Mon Nov 12, 2012 3:17 pm
Posts: 164
Location: Bratislava, Slovakia
Boards for madscifi will left my hands today.
For all others - this is what populated board looks like https://picasaweb.google.com/1118907411 ... SDRAMBoard

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


Top
 Profile  
 
PostPosted: Thu Jan 03, 2013 2:49 pm 
Contributor

Joined: Mon Nov 12, 2012 1:34 pm
Posts: 1092
Hi Jaromir,

Looks very nice :).

Wiz


Top
 Profile  
 
PostPosted: Thu Jan 03, 2013 4:13 pm 
Contributor

Joined: Mon Nov 12, 2012 1:34 pm
Posts: 1092
Hi jaromir,

Can I get one? Built or bare?

Wiz


Top
 Profile  
 
PostPosted: Fri Jan 04, 2013 9:41 am 
User avatar

Joined: Mon Nov 12, 2012 3:17 pm
Posts: 164
Location: Bratislava, Slovakia
wiz: whatever you want - I can send you bare PCB, bare PCB + components or populated PCB. I planned to assembly more boards, but this one has quite small pads for SDRAM and it makes soldering a bit difficult.
I planned to make second revision (and fix SD card driver to support two cards), but you can have this revision too.

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


Top
 Profile  
 
PostPosted: Sun Jan 27, 2013 8:17 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
It seems the new RetroBoard is gathering dust on someone's shelf.. :(

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Mon Jan 28, 2013 2:21 am 
Contributor

Joined: Mon Nov 12, 2012 1:34 pm
Posts: 1092
Hi Pito,

Yawwwwwwwwwwn.

Wiz


Top
 Profile  
 
PostPosted: Mon Jan 28, 2013 3:00 pm 
Contributor

Joined: Mon Nov 12, 2012 1:34 pm
Posts: 1092
Hi All,

Anyone playing with CC3000?

Just need a driver :).

Could be most cool.

Wiz


Top
 Profile  
 
PostPosted: Sun Feb 03, 2013 7:01 am 
Committer

Joined: Thu Nov 08, 2012 3:55 am
Posts: 177
Jaromir - I've finally started assembling the "kit" that you sent and I have a couple of questions:

1) What is the expected color of each of the leds (left to right, assuming the leds are on the upper edge of the board facing up)?

2) Since only one of the sdcard sockets is to be used at this point which one should I install? The one on the side with the PIC?

Nice packaging, by the way. Thanks for labeling things.


Top
 Profile  
 
PostPosted: Sun Feb 03, 2013 5:17 pm 
User avatar

Joined: Mon Nov 12, 2012 3:17 pm
Posts: 164
Location: Bratislava, Slovakia
1, Just like Pink Floyd - any colour you like :) I put them randomly, but if you want to be consistent, look here https://picasaweb.google.com/1118907411 ... 9626404226

2, Yes, that's right. https://picasaweb.google.com/1118907411 ... 9375353154

I'm planning to make small tweak to support two SD cards on existing board, though.

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


Top
 Profile  
 
PostPosted: Tue Feb 05, 2013 2:13 pm 
Contributor

Joined: Mon Nov 12, 2012 1:34 pm
Posts: 1092
Hi Jaromir and All,

VERY IMPRESSIVE. Glad to see some REAL action :).

Now a few drivers and all should be running!

SMOP (Old consultant's joke - Small Matter of Programming) :).

Gotta get one!

Wiz


Top
 Profile  
 
PostPosted: Fri Feb 08, 2013 6:51 am 
Committer

Joined: Thu Nov 08, 2012 3:55 am
Posts: 177
Jaromir - Thanks.

I almost finished putting the board together without loosing any of the parts. However, in the end I lost one of the IRML2246s. Fortunately I only need one at the moment and I've ordered some additional ones for later.
Attachment:
board-2.jpg
board-2.jpg [ 147.63 KiB | Viewed 14107 times ]

A couple more questions if you don't mind:

Just to confirm - U$12 controls power to the sdcard on the side with the pic, correct?

I noticed that your pictures showed some rework on the side of the board opposite the PIC. Is this something I need to do if at the moment? Anything else?

I cannot tell you how many times I've listened to that particular Pink Floyd album, but I did not know that phrase was the name of one of the songs on it. I know I would have read the liner notes when I first obtained a copy, but the fact that it had liner notes should tell you something about how long ago that was.

The next delay will be due to puff of electrical smoke that the computer that I have set up to do PIC32/Retrobsd work recently emitted. Sadly, it no longer boots.


Top
 Profile  
 
PostPosted: Fri Feb 08, 2013 9:57 am 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
@madscifi - nice clean work!
A pity you cannot proceed with testing because of the puff.. :lol:
PS: I would recommend to use different colors for the LEDs as the way how they blink tells you what is going on with the system ;) I am using following setup (with my old board):
Code:
blue - power on
red - kernel
yellow - SDcard access
green - aux/swap access
white - i/o (serial)

As I changed colors with fubarino setup I got confused, not knowing what the system does ie. during the boot (Pavlov's reflex) :) ..

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Fri Feb 08, 2013 5:35 pm 
User avatar

Joined: Mon Nov 12, 2012 3:17 pm
Posts: 164
Location: Bratislava, Slovakia
madscifi: great!

Regarding U12 - yes (By the way, I need to rename some components)

The rework is because of early revision of SD card driver with improperly implemented power switch for SD card. Gate of FET was not grounded. I'm more into soldering iron than into programming, so I applied this hardware workaround to software problem.

In less than one month, it's going to be 40 years since DSOTM was released.

Pito: Yes, that's a good idea. Unfortunately I don't have any other colors than those basic ones in my drawer. I need to buy some.

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


Top
 Profile  
 
PostPosted: Sat Feb 09, 2013 10:06 pm 
Committer

Joined: Thu Nov 08, 2012 3:55 am
Posts: 177
Power to the board lights up the yellow led. Nothing smoked and nothing gets hot. I'm able to read the chip with a pickit2 and pic32prog, so next up is building some code and seeing what works.

Here is my best attempt at a config file based on what has been shown earlier in this thread:

# RETROBSD-PCB-1 board
# ===========
#
# Console on UART3

core pic32mx7
linker bootloader-sdram
mapping generic

device kernel led=A15
device console led=A14 device=tty2
device uart3
device rdisk led=C13 swap=C14
device sd0 port=4 cs=F3 power=D12
device sd1 port=4 cs=F8 power=D13
device sdramp

option PARTITION=sdramp0:sa@2048,fs@6000

device bootloader button=B1 user=0x1d005000 led=E3 led2=E2 set=E0 set2=E1

option crystal=12
option pllidiv=3
option pllmul=20
option upllidiv=1

Does anyone see anything obviously wrong?


Top
 Profile  
 
PostPosted: Sun Feb 10, 2013 12:39 am 
Committer

Joined: Thu Nov 08, 2012 3:55 am
Posts: 177
I'm afraid I cannot figure out how to get the bootloader to work. I built a system using the previous config and programmed the resulting boot loader onto the chip using pic32prog. Windows does not recognize the device when I plug the USB cable in. However, it does the same thing regardless of the value at pin B1, so I'm not certain if the boot loader code is even executing.

Anyone have any suggestions?

Edit: Found the problem with the bootloader.
Code:
option upllidiv=1

should read
Code:
option upllidiv=3

for a 12 MHz crystal.


Top
 Profile  
 
PostPosted: Sun Feb 10, 2013 12:57 pm 
User avatar

Joined: Mon Nov 12, 2012 3:17 pm
Posts: 164
Location: Bratislava, Slovakia
Glad to see you got bootloader to work.
Did you upload the code? Does the SDRAM work for you too?

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


Top
 Profile  
 
PostPosted: Sun Feb 10, 2013 6:44 pm 
Committer

Joined: Thu Nov 08, 2012 3:55 am
Posts: 177
I don't seem to be able to get past the bootloader. I can load unix.hex using USB Bootloader v2.90a, and I can verify the load really works using the pickit2, but the main code never appears to be entered and the bootloader connects to USB Bootloader on the windows box regardless of the state of the B1 pin. Certainly I'm doing something wrong, I just have not figured out what that is yet...

It may be that the boot loader code is not set up to handle port b correctly-looks like AD1PCFG needs to be set to do digital inputs. I'll try using a different pin to control the bootloader next (hopefully this evening).


Top
 Profile  
 
PostPosted: Mon Feb 11, 2013 7:14 am 
Committer

Joined: Thu Nov 08, 2012 3:55 am
Posts: 177
Using pin C1 as the boot loader button instead of B1 fixes the boot loader issue.

At this point I'm having failures reading/writing the sdcard. Boot looks like the following:
Code:
2.11 BSD Unix for PIC32, revision 860M build 13:                               
     Compiled 2013-02-10 by jmcgee@xubuntu-retrobsd:                           
     /home/jmcgee/@rbsd/rbsd/sys/pic32/retrobsd-pcb-1                           
cpu: 695F512L 80 MHz, bus 80 MHz                                               
oscillator: HS crystal, PLL div 1:3 mult x20                                   
console: tty2 (5,2)                                                             
sd0: port SPI4, select pin F3                                                   
sd1: port SPI4, select pin F8                                                   
sdramp_preinit                                                                 
PP Schema:                                                                     
sd1: no SD/MMC card detected                                                   
sd0: type II, size 1982464 kbytes, speed 8 Mbit/sec                             
phys mem  = 128 kbytes                                                         
user mem  = 96 kbytes                                                           
root dev  = rd0a (0,1)                                                         
root size = 163840 kbytes                                                       
swap dev  = rd0b (0,2)                                                         
swap size = 2048 kbytes                                                         
sd0: card_read: bad READ_MULTIPLE reply = 64, offset = 000a5000                 
/: bad dir I=19 off 0: mangled entry                                           
sd0: card_write: bad SET_WBECNT reply = 7a, count = 84                         
sd0: card_cmd timeout, cmd=37, addr=00000000, reply=ff                         
sd0: card_cmd timeout, cmd=17, addr=00000005, reply=ff                         
sd0: card_write: bad SET_WBECNT reply = ff, count = 5     
...                   

I've tried 3 different cards and they all show similar errors.

My config file looks like:
Code:
#
# RETROBSD-PCB-1 board
# ===========
#
# Console on UART3

core pic32mx7
linker bootloader-sdram
mapping generic

device kernel led=A15
device console led=A14 device=tty2
device uart3
device rdisk led=C13 swap=C14
device sd0 port=4 cs=F3 power=D12 mhz=8
device sd1 port=4 cs=F8 power=D13

device sdramp
#option PARTITION=sdramp0:sa@2048,fs@6000

device bootloader button=C1 user=0x1d005000 led=A15 led2=C13
option crystal=12
option pllidiv=3
option pllmul=20
option upllidiv=3


At this point the problem could caused by pretty much anything.


Top
 Profile  
 
PostPosted: Mon Feb 11, 2013 8:56 am 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
Maybe you have to try an earlier version, prior the merge. Try to run something it worked with your testbed in past. Do not set up for 2 cards.

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 205 posts ]  Go to page Previous  1 ... 7, 8, 9, 10, 11  Next

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