Stephen Wille Padnos wrote:
> paul_c wrote:
> 
>> Hi Seb
>>
>> On Wednesday 02 May 2007 11:39, Seb James wrote:
>>  
>>
>>> Mesa 5i20 board which provides 2 axes of servo/encoder control, 31
>>> channels of logic input and 29 channels of logic output.
>>>    
>>>
>> Nothing too dificult there - IO is currently defined as 24 bits in at most, 
>> half a dozen places. Mapping the internal connections to physical pins would 
>> be the bulk of any work.
>>  
>>
>>> I think this is a case of modifying the hostmot4 configuration, and then
>>> updating the hal_m5i20.c driver to suit the new fpga configuration.
>>>    
>>>
>> Applying a couple of new constraints in the driver would expose the extra 
>> IO, 
>> again, nothing too taxing there. The worst part is the notion that firmware 
>> *has* to be embedded in the module or some untrusted user space utility is 
>> required to preload the fpga - The kernel already provides a mechanism for 
>> firmware loading without resorting to NIMBY code.
>>  
>>
> Paul - do you know of any way to use the kernel firmware infrastructure 
> to load different firmware sets into multiple cards?  I know the current 
> method of embedding the firmware in the HAL driver doesn't support that 
> either, but that's one goal for these cardds, to allow a user with 
> multiple cards in the PC to use different personalities for each card.  
> (at least, that's a goal of mine)
> 

Both the existing and new FPGA loader programs allow you to specify a 
board number.  You can do:

bfload foo.bit 0
bfload bar.bit 1

Board 0 will be loaded with configuration foo, and board 1 loaded with
configuration bar.  The new driver will read information from the FPGA
before it exports HAL pins, so when you load the driver, both boards
will get the appropriate "stuff" exported to HAL.

The new system will not have an FPGA bitfile embedded in the driver.
Load what you want, where you want it, using a simple userspace program.
Then load the driver.  Thats it.

Regards,

John Kasunich


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Emc-users mailing list
Emc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-users

Reply via email to