Differences

This shows you the differences between two versions of the page.

Link to this comparison view

tools:retrobsd [2015/03/09 07:21]
darron [Install]
tools:retrobsd [2015/03/22 21:55]
Line 1: Line 1:
-==== RetroBSD ==== 
-<wrap right> 
-{{:tools:2.11bsd.jpg?100}} 
-</wrap> 
  
-RetroBSD is an embedded version of 2.11BSD for PIC32 micro-controllers. 
- 
-=== Setup === 
-First we need to fetch a working cross-compiler. RetroBSD supports this one in Linux. 
- 
-<code> 
-cd /usr/local 
-wget https://github.com/downloads/jasonkajita/chipKIT-cxx/pic32-tools-chipKIT-cxx-master-Linux32-image-20120720.zip 
-unzip pic32-tools-chipKIT-cxx-master-Linux32-image-20120720.zip 
-</code> 
- 
-=== Checkout === 
-Now we fetch the RetroBSD source from GitHUB.  
-<code> 
-mkdir -p /embedded 
-cd /embedded 
-git clone https://github.com/RetroBSD/retrobsd.git 
-cd retrobsd 
-</code> 
-=== Configure === 
-In this example we will configure RetroBSD for the [[:boards:sdxl|SDXL]] board. 
- 
-First select the SDXL. 
-<code> 
-sed -i 's/(MAX32)/(SDXL)/' Makefile 
-</code> 
- 
-Now we will enable two UARTS. Edit the following file, 
-<code> 
-vi sys/pic32/sdxl/Makefile 
-</code> 
- 
-and add the following within the DEFS section, save the file. 
-<code> 
-DEFS += -DUART1_BAUD=115200 
-DEFS += -DUART1_ENABLED=YES 
-DEFS += -DUART2_BAUD=115200 
-DEFS += -DUART2_ENABLED=YES 
-</code> 
- 
-Now edit the kernel configuration to enable the devices. 
-<code> 
-vi sys/pic32/sdxl/SDXL 
-</code> 
- 
-Add the following options to enable the UARTS. 
-<code> 
-# tty0 
-device uart1 baud=115200 
-# tty1 
-device uart2 baud=115200 
-</code> 
- 
- 
-=== Build === 
-Building will create the unix boot image and the SDcard image for the system. 
-<code> 
-make cleanall 
-make 
-</code> 
- 
-=== Install === 
- 
-First we create the file system image on a micro SD card. 4GB is ample. 
-<code> 
-dd if=sdcard.img of=/dev/sdc bs=4M 
-</code> 
- 
-Next, Hold the PROG button and toggle RESET on the SDXL board to enter the boot laoder. We will use [[:projects:pickle|Pickle]] pload to install the kernel. 
-<code> 
-pload program /dev/ttyACM0 sys/pic32/sdxl/unix.hex 24 
-Total: 157004 
-Time: 0:08.45s 
-</code>