Forum Discussion
Altera_Forum
Honored Contributor
20 years agoµCLinux in Stratix GX Development Board
Hi,
I am wondering if it is possible to implement a µCLinux in a Stratix GX Development Board? In fact, I have a Stratix GX Development Board in order to develop high speed applications. Don't worry, the Nios will not be used for high speed applications! Let me know your thoughts about that. Thanks a lot. Freechip.19 Replies
- Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by macio@May 18 2006, 04:25 AM hi,i use windows environment. now i have problems with sopc builder and system generating. i have on my board 256mb ddr 333mhz cl2.5, but i think you can buy even faster ddr ram 400mhz.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15439)
--- quote end ---
--- Quote End --- Ok, thanks but on the High Speed User Guide, it is mentioned that the frequency of the DDR must be 166Mhz or 200Mhz and Altera told me it is impossible to take higher frequency than 200Mhz. So I am surprised by your answer. Tell me what you think about that. Thanks. Freechip.
- Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by freechip+may 18 2006, 07:47 am--><div class='quotetop'>quote (freechip @ may 18 2006, 07:47 am)</div>--- quote start ---
<!--quotebegin-macio@May 18 2006, 04:25 AM hi,
i use windows environment. now i have problems with sopc builder and system generating. i have on my board 256mb ddr 333mhz cl2.5, but i think you can buy even faster ddr ram 400mhz.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15439)
--- quote end ---
--- Quote End --- Ok, thanks but on the High Speed User Guide, it is mentioned that the frequency of the DDR must be 166Mhz or 200Mhz and Altera told me it is impossible to take higher frequency than 200Mhz. So I am surprised by your answer. Tell me what you think about that. Thanks. Freechip. <div align='right'><{post_snapback}> (index.php?act=findpost&pid=15443)</div> [/b] --- Quote End --- I meant DDR 400. Its clock frequency is 200MHz but both edges are active. You can check it in "DDR & DDR2 SDRAM Controller Compiler User Guide" on page 3-49 there is hardware testing and there is shown in the table what type of memory was tested on that board.
- Altera_Forum
Honored Contributor
Ok for your answer.
What is the size of your DDR SDRAM (128 MB, 256 MB...)? Because it is very difficult to find DDR SDRAM 128 MB 200Mhz. I am wondering if I can connect DDR SDRAM 256 MB 200Mhz. Sorry for these details. Thanks - Altera_Forum
Honored Contributor
Macio,
I have found an answer to your problem. (DDR Controller error with Stratix GX Device). http://www.altera.com/support/kdb/solution...022005_688.html (http://www.altera.com/support/kdb/solutions/rd12022005_688.html) Freechip - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by freechip@May 19 2006, 04:49 AM macio,i have found an answer to your problem. (ddr controller error with stratix gx device).
http://www.altera.com/support/kdb/solution...022005_688.html (http://www.altera.com/support/kdb/solutions/rd12022005_688.html)
freechip
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15462)
--- quote end ---
--- Quote End --- Thanks a lot Freechip. It was solution of my problem. Unfortunately I have now compilation errors in Quartus, but I will try to solve this problem. As I wrote I have 256MB DDR SDRAM on my board. Nios can address only 256MB but you can change number of column address bits in DDR SDRAM Controller Megacore IP Toolbench from 10 bits to 9 bits. In that way only half of that memory will be used but you can add other peripherals to system and you won't have error "Address range of instruction master crosses 256-Mbyte".
- Altera_Forum
Honored Contributor
Hi,
I have build hardware for Stratix GX development board without any error, but now I have problem with building uCLinux kernel. When I try to generate system.h
it detects that I have 0 bytes ddr_sdram# generate nios2_system.h from ptf make ARCH=nios2nommu CROSS_COMPILE=nios2-linux-uclibc- hwselect SYSPTF=stratixGX.ptf
SOPC builder system consists of nios2 cpu, ddr sdram controller (Base address 0x00000000, end address 0x07ffffff == 128MB ??), uart, jtag uart, timer, sysid, avalon tri state bridge and dummy cfi flash (not connected to any fpga pin). Can anybody help me? Best Regards, Maciek--- Please select a device to execute kernel from: (1) ddr_sdram Class: ddr_sdram_component Size: 0 bytes - Altera_Forum
Honored Contributor
Please zip your ptf and post it as attachment file in the buildroot guide thread.
- Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by macio@May 24 2006, 10:53 PM hi,i have build hardware for stratix gx development board without any error, but now i have problem with building uclinux kernel. when i try to generate system.h
# generate nios2_system.h from ptf make arch=nios2nommu cross_compile=nios2-linux-uclibc- hwselect sysptf=stratixgx.ptfit detects that i have 0 bytes ddr_sdram
--- please select a device to execute kernel from: (1) ddr_sdram class: ddr_sdram_component size: 0 bytessopc builder system consists of nios2 cpu, ddr sdram controller (base address 0x00000000, end address 0x07ffffff == 128mb ??), uart, jtag uart, timer, sysid, avalon tri state bridge and dummy cfi flash (not connected to any fpga pin). can anybody help me?
best regards,
maciek
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15551)</div> --- Quote End --- I had similar problem before. Your ddr core avalon data bus width is greater than 32 bits, and the hwselect script can't handle. Please edit the ptf for hwselect only (not for hardware generation), reduce data bus width to 32 bits, and increase address bus width (up to the ddr memory capacity) .
- Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by hippo@May 25 2006, 10:07 AM i had similar problem before.your ddr core avalon data bus width is greater than 32 bits, and the hwselect script can't handle.
please edit the ptf for hwselect only (not for hardware generation), reduce data bus width to 32 bits, and increase address bus width (up to the ddr memory capacity) .
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15575)
--- quote end ---
--- Quote End --- Ok, that works. Thanks a lot Hippo!