RetroBSD

2.11BSD operating system for microcontrollers
It is currently Tue Oct 15, 2019 12:21 pm

All times are UTC




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Fubarino - r891 setup
PostPosted: Thu Oct 03, 2013 7:38 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
I am trying to install the newest on the Fubarino (fubarino with uart2 console, no ramdisk):
Code:
# Fubarino configuration file
# UART2 = tty1

core pic32mx7
mapping fubarino
linker bootloader

device kernel led=21 cpu_khz=80000 bus_khz=80000
device console device=tty1
device uart2 baud=115200
device sd0 port=2 cs=SS mhz=13

option nproc=20
option hz=200

device adc
#device glcd
device oc
device gpio

# set=pin means the pin will be set high during bootloading
device bootloader button=23 led=21 crystal=8


With above config I see no sign of life (kernel led does not blink, console no welcome), bootloader flashes the unix ok. Any hint?
PS: with user=0x1d005000 I get errors when flashing unix.

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Thu Oct 03, 2013 8:10 pm 
Committer
User avatar

Joined: Wed Oct 10, 2012 11:01 pm
Posts: 1081
Location: Sunnyvale, CA
It works fine for me on a bare Fubarino-SD (with USB console).
Code:
2.11 BSD Unix for PIC32, revision 891 build 1:
     Compiled 2013-10-03 by sergev@ubuntu-sergev:
     /local/retrobsd/current/sys/pic32/fubarino
cpu: 795F512H 80 MHz, bus 80 MHz
oscillator: HS crystal, PLL div 1:2 mult x20
console: ttyUSB0 (5,0)
sd0: port SPI2, select pin G9
sd0: type SDHC, size 3914752 kbytes, speed 13 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
temp0: allocated 47 blocks
/dev/rd0a: 576 files, 8708 used, 154491 free
temp0: released allocation
Starting daemons: update cron


2.11 BSD UNIX (pic32) (console)

login: root
Password:
Welcome to RetroBSD!
erase, kill ^U, intr ^C
# ps alx
  F S   UID   PID  PPID CPU PRI NICE  ADDR  SZ WCHAN    TTY TIME COMMAND
  3 S     0     0     0  15   0   0 0x6800   3 runout   ?   0:02 swapper
200 S     0     1     0   0  30   0   0x75  49 proc     ?   0:00 init -
200 S     0    11     1   2  40   0    0xd   7 u        ?   0:00 update
200 S     0    13     1  10  26   0   0x40  78 selwait  ?   0:00 cron
200 S     0    14     1   0  30   0   0x19  56 proc     US  0:00 -sh
  1 R     0    17    14  19  51   0 0x7400  54          US  0:00 ps alx
# _

Looke like a "jump" option for bootloader is missing in your configuration:
Quote:
device bootloader led=21 button=23 crystal=8 jump=0x9d000000


Top
 Profile  
 
PostPosted: Thu Oct 03, 2013 8:12 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
jump=0x9d000000 - :shock: never heard about it - I will try..

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
PostPosted: Thu Oct 03, 2013 8:20 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2401
Location: Rapa Nui
ok, it boots now, thanks..

Code:
2.11 BSD Unix for PIC32, revision 891M build 15:
     Compiled 2013-10-03 by pito@ubuntu:
     /home/pito/RETROCURRENT/retrobsd/sys/pic32/fubarino
cpu: 795F512H 80 MHz, bus 80 MHz
oscillator: HS crystal, PLL div 1:2 mult x20
console: tty1 (5,1)
sd0: port SPI2, select pin G9
sd0: type SDHC, size 3872256 kbytes, speed 13 Mbit/sec
phys mem  = 128 kbytes
user mem  = 96 kbytes
root dev  = rd0a (0,1)
root size = 64000 kbytes
swap dev  = rd0b (0,2)
swap size = 2048 kbytes
temp0: allocated 18 blocks
/dev/rd0a: 586 files, 9180 used, 54569 free
temp0: released allocation
/dev/rd0c: 12 files, 12 used, 19908 free
Getting disk size for /dev/rd1b
mkfs: cannot create /dev/rd1b
: Operation not supported by device
/dev/rd1b on /tmp: Operation not supported by device
Starting daemons: update /var/cron: No such file or directory
/var/cron: created
tabs: No such file or directory
tabs: created
cron


2.11 BSD UNIX (pic32) (console)

login:

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 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