Hi Alec,
My BPI flash contains:
- bit file, containing FS-boot
- uboot
- os image, kernel & file system
Below is copied my documentation on how to boot from my BPI prom flash.
Flashing the FPGA Board
Indirectly programming of BPI PROM Flash with impact
====================================================
Generate MCS from BIT for BPI PROM flash
-----------------------------------------------
Start impact
Browse
File name: impact_bpi_prom_bit_to_mcs
Save
OK
Action: Prepare a PROM file
Next
I want to target a: Virtex 5 MultiBoot
PROM File format: MCS
Checksum Fill value: FF
PROM File Name: download
Next
Using BPI Mode: Direction: UP
Select a Parallel PROM Density (Bytes): 32M
Add
PROM data-width: x16 [16-bit]
Select RS[1:0]b Pin Address Bits: 23:22
Deta Stream (Revision): "Default or 0", Enable, 00, 0
Next
Finish
OK
Add Device: download.bit
OK
Would you like to add another design file: NO
You have completed the device file entry: OK
Menu->Operations->Generate File
After this a MCS file should be created
File->SaveProject
Program MCS to BPI PROM via JTAG
-----------------------------------------------
Start impact
Browse
File name: impact_bpi_prom_program_mcs
Save
OK
Configure devices using Boundary-Scan (JTAG):
Automatically connect to cable and identify Boundary-Scan chain
Finish
Enable Programming of BPI Flash Device Attached to this FPGA
File name: download.bit (it will also program the fpga directly)
Open
File name: download.mcs (will be stored in flash)
Open
BPI Flash: INTEL23F256P30
OK
Select "FLASH" device in Boundary Scan window
Operations->Program
Take a break: 4 min.
Booting the FPGA
================
When the FPGA is powered on it automatically loads it's configuration from
Flash (the board has several options, make sure the correct jumpers are set
to load from the BPI PROM flash (connect pins 1-2 of JP1). This will
instantiate the microBlaze, which will start running FS-Boot (a small boot
program).
FS-Boot will try to load U-Boot. The first time we load U-Boot through the
serial line. When U-Boot is loaded, we use U-Boot to program it's own image
in Flash. The next time the FPGA powers on, FS-Boot will find this U-Boot
image and load it automatically.
(See http://developer.petalogix.com/wiki/UserGuide/Bootloaders for more
information)
No after uboot has been writen to flash using:
U-boot> run update_uboot
You can now write the kernel to flash using:
U-boot> run update_kernel
Then make sure your U-boot 'bootcmd' is set to boot from flash
and you should have a standalone boot process.
Cheers,
Tijs.
--
On Friday 21 August 2009 02:03:19 Alec Dibble wrote:
> Hello,
>
> Does anyone know how I would go about creating a .mcs file containing the 2
> bootloaders and linux image? I am using the Xilinx embedded Linux tutorial
> as a reference, and am also using the Spartan 1800DSP board that those
> tutorials use. In the tutorial, a .mcs file is included that the board can
> boot off of. What I am trying to do is create my own with some device
> drivers added, so that I can boot the linux without ftp or jtag.
>
>
> Any help would be appreciated,
>
> Alec
Tijs van den Bogaard, Software Engineer
Topic Embedded Systems
Eindhovenseweg 32-C, 5683 KH Best, Netherlands
Phone: +31-499-336979, Mobile: +31-6-14117650
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/