Hi,
I have implemented a simple APU design using ImpulseC which consists two processes one hardware and one software communicating through a shared memory and one 32-bit process (target board is ML410).
I have some basic questions:
1- How I should port the design to the Linux. I brought up a kernel 2.6 linux on PowerPC and I want to run my software process under this OS. Is some kind of device driver required? Or just simply cross-compile my sources for PowerPC.
2- When I want to compile software sources exported to EDK, the compiler complaining: expecting ':' or ')' before p_config_sys_status when calling HW_STREAM_WRITE(config,sys,&membase); macro. I think I've included almost all of the header files, but the problem still exists.
thanks in advanced
Hamed Khan
Porting APU design to linux 2.6 kernel
Started by hamedkhan, Mar 15 2009 09:25 AM
1 reply to this topic
#1
Posted 15 March 2009 - 09:25 AM
#2
Posted 16 March 2009 - 09:09 PM
Hi Hamed,
1. For porting your design to Linux, please refer to the Impulse C APU Linux documentation for details. No device driver is needed, but you need to hack the Linux kernel a little bit.
2. In order to use the macro "HW_STREAM_WRITE", the port name, in your case "p_config_sys_status", has to match the port name in the generated VHDL file xxx_top.vhd exactly. What PSP are you using in CoDeveloper? Please make sure that the option "Do not include co_ports in bus interface" is checked, if you don't use "co_port".
Hope these help.
Regards,
Mei
1. For porting your design to Linux, please refer to the Impulse C APU Linux documentation for details. No device driver is needed, but you need to hack the Linux kernel a little bit.
2. In order to use the macro "HW_STREAM_WRITE", the port name, in your case "p_config_sys_status", has to match the port name in the generated VHDL file xxx_top.vhd exactly. What PSP are you using in CoDeveloper? Please make sure that the option "Do not include co_ports in bus interface" is checked, if you don't use "co_port".
Hope these help.
Regards,
Mei
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











