[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[microblaze-uclinux] Booting design from flash then FS-Boot, U-Boot, Kernel



Hi,
I'm about to port Petalinux to the Spartan 3A Starter Kit (Rev D) Board.

I followed the Petalinux documentation closely and created a Microblaze design with fs-boot and also flashed u-boot and the kernel image fine. I can now boot
Petalinux when I freshly download the Microblaze design via the JTAG
interface (USB-Cable).

What I would like to have is a Microblaze configuration that loads into the
FPGA from SPI flash at reset time.

I used IMPACT to put the bitstream in the ATMEL AT45DB161D serial
flash. On reset it indeeds downloads Microblaze and fs-boot so that I can
see its boot message:

 =================================================
FS-BOOT First Stage Bootloader (c) 2006 PetaLogix
=================================================
FS-BOOT: System initialisation completed.
FS-BOOT: Booting from FLASH. Press 's' for image download.
FS-BOOT: Booting image...

then nothing happens.

If I interrupt the boot process and press 's'. I can download
the u-boot.srec-file, but this hangs as soon as u-boot is trying to
display the flash statistics and then resets strangely into fs-boot again:

=================================================
FS-BOOT First Stage Bootloader (c) 2006 PetaLogix
=================================================
FS-BOOT: System initialisation completed.
FS-BOOT: Booting from FLASH. Press 's' for image download.
FS-BOOT: Waiting for SREC image....
FS-BOOT: Image download successful.
FS-BOOT: Warning image location differ from default boot location. Image will no
t boot automatically after POR.
FS-BOOT: Press 'n' to boot old image.
FS-BOOT: Use new image.
FS-BOOT: Booting image...
SDRAM :
        Enabling caches :
                Icache:OK
                Dcache:OK
        U-Boot Start:0x8ffa0000
        Malloc Start:0x8ff60000
        Board Info Start:0x8ff5ffd0
=================================================
FS-BOOT First Stage Bootloader (c) 2006 PetaLogix
=================================================
FS-BOOT: System initialisation completed.
FS-BOOT: No existing ima


Maybe the parallel flash is not available when loading the configuration via SPI flash?

Any hints are very welcome.

Regards,
		Ulrich

Here is a successful boot, when downloading the bitstream via JTAG:

=================================================
FS-BOOT First Stage Bootloader (c) 2006 PetaLogix
=================================================
FS-BOOT: System initialisation completed.
FS-BOOT: Booting from FLASH. Press 's' for image download.
FS-BOOT: Booting image...
SDRAM :
        Enabling caches :
                Icache:OK
                Dcache:OK
        U-Boot Start:0x8ffa0000
        Malloc Start:0x8ff60000
        Board Info Start:0x8ff5ffd0
        Boot Parameters Start:0x8ff4ffd0
FLASH:  4 MB
ETHERNET: MAC:00:0a:35:00:22:01

Hit any key to stop autoboot:  0
## Booting image at 884a0000 ...
   Image Name:   PetaLinux Kernel 2.6
   Image Type:   Microblaze Linux Kernel Image (uncompressed)
   Data Size:    2687018 Bytes =  2.6 MB
   Load Address: 8c000000
   Entry Point:  8c000000
   Verifying Checksum ... OK
OK
Linux version 2.6.20-uc0 (root@xxxxxxxxxxxxxxxxxxxxx) (gcc version 3.4.1 ( PetaL
inux 0.20 Build -rc1 050607 )) #0 Sun Feb 1 23:21:12 CET 2009
setup_cpuinfo: initialising
setup_cpuinfo: No PVR support in CPU.  Using static compile-time info
set_cpuinfo_static: Using static CPU info.
setup_memory: max_mapnr: 0x8ffff
setup_memory: min_low_pfn: 0x8c000
setup_memory: max_low_pfn: 0xMounting proc:
Mounting var:
Populating /var:
Running local start scripts.
Mounting /etc/config:
Populating /etc/config:
flatfsd: Nonexistent or bad flatfs (-48), creating new one...
flatfsd: Failed to write flatfs (-48): No such device
flatfsd: Created 5 configuration files (185 bytes)
Mounting sysfs:
Setting hostname:
Setting up interface lo:
Setting up interface eth0:
Starting thttpd:

spartan login:


___________________________
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/