So I am having quite a bit of trouble trying to figure out how to get the u-boot going for VxWorks 7 on Cyclone V. I have the Cyclone V devkit BSP from WindRiver’s site and have downloaded the files from Altera for booting VxWorks.How much of a difference between getting this done is there between VxWorks 6.9 and 7? Here are some questions or statements that I have: Section: Build a BootROM from a VxWorks Image Project
I have received an answer from the Wind River forum post I made:--- Quote Start --- I followed the steps from below and got the board up and running on u-boot. Step 1: Set up the board for SD/MMC boot: With the Altera Cyclone V SoC board oriented so that you can read the “Altera Cyclone V SoC” logo, set the following jumpers: Set jumper BootSEL0: Closed to the right: .[..] Set jumper BootSEL1: Closed to the right: .[..] Set jumper BootSEL2: Closed to the left: [..]. The sequence for boot selects 0..2 should look like: .[..] .[..] [..]. Step 2: Create an SD/MMC card Unzip the provided binary file for your development board and use the “Win32 Disk Imager” program to write the .img to an SD card. Use the correct image for your development board: sdmmc/av_131_fat_sdmmc.img for Arria V sdmmc/cv_131_fat_sdmmc.img for Cyclone V Step 3: Load the card into your development board and power up Connect a USB cable between the serial port on the Altera development board and a USB port on your Windows computer. Verify that you see a COM port on your Windows computer. Apply power to the development board and connect to the COM port at a baud rate of 115200. Verify that you see the COM port in the “Devices and Printers” control panel on your Windows computer. You should see the output of the preloader, followed by the output of u-boot. This verifies that you can boot your board with the pre-built image and see serial output. NOTE: I have used the VxWorks Instructions for SoC EDS 13.1. I have also gave it a try with the 14.0 version but it seems it has an error. I will try to contact the support that provides that installation kit. However I got u-boot output from both versions but only 13.1 versions works properly. NOTE_2: If you wish to use u-boot to load VxWorks please read the u-boot chapter from target.ref file (Section 3.3 U-Boot) EDIT: Section 3.3.1 - You are supposed to copy u-boot-dtb.img onto SD card as u-boot.img and u-boot-spl-dtb.bin onto SD card as bootloader.bin. Section 3.3.2, 3.3.3: Am I supposed to be obtaining and recompiling the U-Boot image provided with the BSP? No, those steps are there in case you intend to configure/use the latest u-boot. --- Quote End --- I followed up with checking v13.1; still did not see any u-boot output over UART. I did realize that something is happening because the HPS LEDs turned off after a short period of time.
It turns out that I wasn't reading carefully enough. The Altera files that come with the booting VxWorks guide (https://www.altera.com/support/support-resources/download/rtos_tools.html) are not for the Terasic Cyclone V development kit that I have and thus the preloader isn't going to do the job it's expected. Rocketboards has a software lab that goes through building the preloader for the Terasic CV dev kit. That preloader was then used with the Altera provided documentation to make the bootable image used to see the u-boot data over a serial stream in step 3.