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

[microblaze-uclinux] Generating BSP in V2MB1000 h/w port of uClinux



Hello,

I am extremely new to the concept of using an OS on an
FPGA, and have been trying to get a minimal uClinux up
and running on the Memec/Insight V2MB1000 board on
Windows platform. I found the hardware port in the
downloads section. This is the way I went about trying
to run an OS on V2MB1000 Microblaze board:

I unzipped the bsp package  and opened the system.xmp
file included in the hardware port in EDK 8.1.02

I ran "Generate netlist". I had to remove the ethernet
module from the design in order to skip over the
errors. After version updation changes and lots of
changes in .mhs file, I finally got to the "Generate
Libraries and BSPs" phase. However, I got the
following error that I am not able to understand (and
hence troubleshoot):

Running DRCs for OSes, Drivers and Libraries ... 
#--------------------------------------
# uClinux BSP DRC...!
#--------------------------------------

Running generate for OS'es, Drivers and Libraries ... 

#--------------------------------------
# uClinux BSP generate...
#--------------------------------------
ERROR:MDT - ERROR FROM TCL:- uclinux () - expected
integer but got ""
       while executing
   "format "0x%08x" $mem_start"
       (procedure "do_memory_setup" line 49)
       invoked from within
   "do_memory_setup $config_file $os_handle
"MAIN_MEMORY" CONFIG_XILINX_ERAM"
       (procedure "::sw_uclinux_v1_00_a::generate"
line 23)
       invoked from within
   "::sw_uclinux_v1_00_a::generate 39214080" 
ERROR:MDT - xget_handle  SUBPROPERTY BUS :  A NULL
handle was provided
ERROR:MDT - ERROR FROM TCL:- emc () - expected integer
but got ""
       while executing
   "xget_handle $baseaddr_handle "SUBPROPERTY" "BUS""
       (procedure "xget_addrparam_busif" line 3)
       invoked from within
   "xget_addrparam_busif $periph_handle $param_name"
       (procedure "xget_param_value" line 5)
       invoked from within
   "xget_param_value $periph $arg"
       (procedure "xdefine_include_file" line 37)
       invoked from within
   "xdefine_include_file $drv_handle "xparameters.h"
"XEmc" "NUM_INSTANCES"
   "C_BASEADDR" "C_HIGHADDR" "DEVICE_ID"
"C_NUM_BANKS_MEM""
       (procedure "::sw_emc_v1_00_a::generate" line 6)
       invoked from within
   "::sw_emc_v1_00_a::generate 39668180" 

ERROR:MDT - ERROR FROM TCL:- intc () - Internal error:
Num intr inputs 1 not the
   same as length of xget_interrupt_sources 0 

Copying Library Files ...

ERROR:MDT - Error while running "generate" for
processor microblaze_0...

make: *** [microblaze_0/lib/libxil.a] Error 2

Done!



I donot know how to program using TCL script, but I
suppose that we can over-ride the " "" found instead
of integer" error by putting an if statement that
says: if "" found, then return a 0. Will this work? If
so, can someone give me the code to replace the
following code in the uclinux_v2_1_0.tcl file:

proc do_memory_setup {config_file os_handle
param_prefix config_prefix} {
.
.
.
	# Process memory core parameters
	set mem_start [xget_sw_parameter_value $mem_handle
$base_param_name]
	set mem_end [xget_sw_parameter_value $mem_handle
$high_param_name]

	# remove any embedded underscore characters
	set mem_start [string map {"_" ""} $mem_start]
	set mem_end [string map {"_" ""} $mem_end]

	# Format start_addr and size as hex strings
	set mem_start [format "0x%08x" $mem_start]
	set mem_size [format "0x%08x" $mem_size]



If I am thinking wrong and there is a problem with
setting the integer, then in which parameter (is it
highaddr, base addr?) should I set the integer that is
required by $mem_start parameter?

As a starter, all I want is to do a basic uclinux OS
to run on V2MB1000. If I am doing something wrong,
kindly give me instructions. Or if a good tutorial is
available that steps me through the design of EDK
program that will run uclinux on the board, then
please send me a link.

Thank you.

Regards,
Shruti

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
___________________________
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/