Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12605 Discussions

Upgrade sdram chip to 16MB for DE2 dev...

Altera_Forum
Honored Contributor II
1,589 Views

Hi hippo 

 

My sdram memory is 8MB that not enough free memory to run some app program on uClinux,and i want to replace it .Recently ,I already find IS42S16800B sdram chip(16MB) that match all pins of IS42S16400 for DE2 board. I can know the pin 36 don't connect to FPGA chip from sdram PCB schematic . So, i only select 16MB for sdram chip, but I have not to buy it yet . 

 

This is diference between the IS42S16400 chip and the IS42S16800B chip,as following: 

 

IS42S16400 sdram chip(1Mx16x4bnaks): ==>8MB 

1.Row addr input :A0~A11 (12 bit) 

2.Column addr input: A0~A7 (8 bit) 

 

IS42S16800B sdram chip(2Mx16x4banks): ==>16MB 

1.Row addr input :A0~A11 (12 bit) 

2.Column addr input: A0~A8 (9 bit) 

 

Do you think that i can directly replace it ? 

or give me some advices . 

 

Thx !
0 Kudos
22 Replies
Altera_Forum
Honored Contributor II
654 Views

Yes, you can replace it. 

You need to update your sdram component in sopc builder. 

 

Use the new uClinux-dist-test approach can save around 1-2MB , compared to old buildroot guide.
0 Kudos
Altera_Forum
Honored Contributor II
654 Views

 

--- Quote Start ---  

originally posted by hippo@Jun 3 2006, 06:56 PM 

yes, you can replace it. 

you need to update your sdram component in sopc builder. 

 

use the new uclinux-dist-test approach can save around 1-2mb , compared to old buildroot guide. 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15846) 

--- quote end ---  

 

--- Quote End ---  

 

 

hi hippo 

 

Thank you ! 

 

I have add new user accounton linux platform that use the uClinux-dist-test. 

and i got error info about ncurses. 

 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

[faye@localhost uClinux-dist-test]$ ls 

bin        Documentation  linux-2.0.x  openswan  uClibc 

config  freeswan    linux-2.4.x  README    uClinux-dist.diff.gz 

config.in  include        linux-2.6.x  SOURCE    user 

COPYING    lib            Makefile  tools  vendors 

[faye@localhost uClinux-dist-test]$ make menuconfig 

config/mkconfig > config.in 

make -C /home/faye/uClinux-dist-test/config/scripts/lxdialog all 

make[1]: Entering directory `/home/faye/uClinux-dist-test/config/scripts/lxdialog&#39; 

/bin/sh: cc: command not found 

 

>> Unable to find the Ncurses libraries. 

>> 

>> You must have Ncurses installed in order 

>> to use &#39;make menuconfig&#39; 

 

make[1]: *** [ncurses] Error 1 

make[1]: Leaving directory `/home/faye/uClinux-dist-test/config/scripts/lxdialog&#39; 

make: *** [menuconfig] Error 2 

[faye@localhost uClinux-dist-test]$ su 

Password: 

[root@localhost uClinux-dist-test]# yum install ncurses 

Setting up Install Process 

Setting up repositories 

updates-released          100% |=========================|  951 B    00:00 

extras                    100% |=========================| 1.1 kB    00:00 

base                      100% |=========================| 1.1 kB    00:00 

Reading repository metadata in from local files 

primary.xml.gz            100% |=========================| 384 kB    00:22 

updates-re:# ################################################# 1073/1073 

Added 5 new packages, deleted 1 old in 5.99 seconds 

primary.xml.gz            100% |=========================| 921 kB    00:05 

extras    :# ################################################# 2680/2680 

Added 108 new packages, deleted 7 old in 17.57 seconds 

Parsing package install arguments 

Nothing to do 

[root@localhost uClinux-dist-test]# exit 

exit 

[faye@localhost uClinux-dist-test]$ make menuconfig 

config/mkconfig > config.in 

make -C /home/faye/uClinux-dist-test/config/scripts/lxdialog all 

make[1]: Entering directory `/home/faye/uClinux-dist-test/config/scripts/lxdialog&#39; 

/bin/sh: cc: command not found 

 

>> Unable to find the Ncurses libraries. 

>> 

>> You must have Ncurses installed in order 

>> to use &#39;make menuconfig&#39; 

 

make[1]: *** [ncurses] Error 1 

make[1]: Leaving directory `/home/faye/uClinux-dist-test/config/scripts/lxdialog&#39; 

make: *** [menuconfig] Error 2 

[faye@localhost uClinux-dist-test]$[/b] 

--- Quote End ---  

 

 

How to install ncurses that is correctly ? 

 

THX !
0 Kudos
Altera_Forum
Honored Contributor II
654 Views

hi hippo 

 

I have add new user accounton linux platform that use the uClinux-dist-test. 

and i got error info about ncurses. 

 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

[faye@localhost uClinux-dist-test]$ ls 

bin        Documentation  linux-2.0.x  openswan  uClibc 

config  freeswan    linux-2.4.x  README    uClinux-dist.diff.gz 

config.in  include        linux-2.6.x  SOURCE    user 

COPYING    lib            Makefile  tools  vendors 

[faye@localhost uClinux-dist-test]$ make menuconfig 

config/mkconfig > config.in 

make -C /home/faye/uClinux-dist-test/config/scripts/lxdialog all 

make[1]: Entering directory `/home/faye/uClinux-dist-test/config/scripts/lxdialog&#39; 

/bin/sh: cc: command not found 

 

>> Unable to find the Ncurses libraries. 

>> 

>> You must have Ncurses installed in order 

>> to use &#39;make menuconfig&#39; 

 

make[1]: *** [ncurses] Error 1 

make[1]: Leaving directory `/home/faye/uClinux-dist-test/config/scripts/lxdialog&#39; 

make: *** [menuconfig] Error 2 

[faye@localhost uClinux-dist-test]$ su 

Password: 

[root@localhost uClinux-dist-test]# yum install ncurses 

Setting up Install Process 

Setting up repositories 

updates-released          100% |=========================|  951 B    00:00 

extras                    100% |=========================| 1.1 kB    00:00 

base                      100% |=========================| 1.1 kB    00:00 

Reading repository metadata in from local files 

primary.xml.gz            100% |=========================| 384 kB    00:22 

updates-re:# ################################################# 1073/1073 

Added 5 new packages, deleted 1 old in 5.99 seconds 

primary.xml.gz            100% |=========================| 921 kB    00:05 

extras    :# ################################################# 2680/2680 

Added 108 new packages, deleted 7 old in 17.57 seconds 

Parsing package install arguments 

Nothing to do 

[root@localhost uClinux-dist-test]# exit 

exit 

[faye@localhost uClinux-dist-test]$ make menuconfig 

config/mkconfig > config.in 

make -C /home/faye/uClinux-dist-test/config/scripts/lxdialog all 

make[1]: Entering directory `/home/faye/uClinux-dist-test/config/scripts/lxdialog&#39; 

/bin/sh: cc: command not found 

 

>> Unable to find the Ncurses libraries. 

>> 

>> You must have Ncurses installed in order 

>> to use &#39;make menuconfig&#39; 

 

make[1]: *** [ncurses] Error 1 

make[1]: Leaving directory `/home/faye/uClinux-dist-test/config/scripts/lxdialog&#39; 

make: *** [menuconfig] Error 2 

[faye@localhost uClinux-dist-test]$[/b] 

--- Quote End ---  

 

 

How to install ncurses that is correctly ? 

 

THX !
0 Kudos
Altera_Forum
Honored Contributor II
654 Views

yum install ncurses-devel

0 Kudos
Altera_Forum
Honored Contributor II
654 Views

 

--- Quote Start ---  

originally posted by hippo@Jun 4 2006, 04:28 AM 

yum install ncurses-devel 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15862) 

--- quote end ---  

 

--- Quote End ---  

 

hi hippo 

 

I meet the same problem about installing ncurses, again. 

Why i can&#39;t install ncurses sucessfully ?  

Do you think what is problem ? 

 

Thx ! 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

[root@localhost uClinux-dist-test]# yum install ncurses-devel 

Setting up Install Process 

Setting up repositories 

updates-released          100% |=========================|  951 B    00:00 

extras                    100% |=========================| 1.1 kB    00:00 

base                      100% |=========================| 1.1 kB    00:00 

Reading repository metadata in from local files 

Parsing package install arguments 

Nothing to do 

[root@localhost uClinux-dist-test]# exit 

exit 

[faye@localhost uClinux-dist-test]$ make menuconfig 

config/mkconfig > config.in 

make -C /home/faye/uClinux-dist-test/config/scripts/lxdialog all 

make[1]: Entering directory `/home/faye/uClinux-dist-test/config/scripts/lxdialog&#39; 

/bin/sh: cc: command not found 

 

>> Unable to find the Ncurses libraries. 

>> 

>> You must have Ncurses installed in order 

>> to use &#39;make menuconfig&#39; 

 

make[1]: *** [ncurses] Error 1 

make[1]: Leaving directory `/home/faye/uClinux-dist-test/config/scripts/lxdialog&#39; 

make: *** [menuconfig] Error 2 

[faye@localhost uClinux-dist-test]$[/b] 

--- Quote End ---  

0 Kudos
Altera_Forum
Honored Contributor II
654 Views

Check if you have gcc, "gcc -v" 

if not, 

yum install gcc
0 Kudos
Altera_Forum
Honored Contributor II
654 Views

 

--- Quote Start ---  

originally posted by hippo@Jun 4 2006, 06:16 AM 

check if you have gcc, "gcc -v" 

if not, 

yum install gcc 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15867) 

--- quote end ---  

 

--- Quote End ---  

 

 

hi hippo 

 

I can see gcc info with using "gcc -v" command on linux. 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

[faye@localhost ~]$ gcc -v 

Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs 

Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --enable-languages=c,c++,f77 --disable-libgcj --host=i386-redhat-linux 

Thread model: posix 

gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-47.fc4)[/b] 

--- Quote End ---  

 

 

Have any ways to solve it ? 

THX !
0 Kudos
Altera_Forum
Honored Contributor II
654 Views

check "rpm -q ncurses" and "rpm -q ncurses-devel" .

0 Kudos
Altera_Forum
Honored Contributor II
654 Views

 

--- Quote Start ---  

originally posted by hippo@Jun 4 2006, 07:19 AM 

check "rpm -q ncurses" and "rpm -q ncurses-devel"  . 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15873) 

--- quote end ---  

 

--- Quote End ---  

 

 

hi hippo 

I can see ncurses and ncurses-devel info on linux terminal. 

 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

[faye@localhost ~]$ rpm -q ncurses 

ncurses-5.4-19.fc4 

[faye@localhost ~]$ rpm -q ncurses-devel 

ncurses-devel-5.4-19.fc4 

[faye@localhost ~]$[/b] 

--- Quote End ---  

 

 

Thx !
0 Kudos
Altera_Forum
Honored Contributor II
654 Views

try "unset CC" ,and run "make menuconfig" again.

0 Kudos
Altera_Forum
Honored Contributor II
654 Views

 

--- Quote Start ---  

originally posted by hippo@Jun 4 2006, 07:28 AM 

try "unset cc" ,and run "make menuconfig" again. 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15876) 

--- quote end ---  

 

--- Quote End ---  

 

 

I can"t execute "make menuconfig" comamnd on linux. 

 

Why ? 

 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

[faye@localhost uClinux-dist-test]$ unset CC 

[faye@localhost uClinux-dist-test]$ make menuconfig 

config/mkconfig > config.in 

make -C /home/faye/uClinux-dist-test/config/scripts/lxdialog all 

make[1]: Entering directory `/home/faye/uClinux-dist-test/config/scripts/lxdialog&#39; 

/bin/sh: cc: command not found 

 

>> Unable to find the Ncurses libraries. 

>> 

>> You must have Ncurses installed in order 

>> to use &#39;make menuconfig&#39; 

 

make[1]: *** [ncurses] Error 1 

make[1]: Leaving directory `/home/faye/uClinux-dist-test/config/scripts/lxdialog&#39; 

make: *** [menuconfig] Error 2[/b] 

--- Quote End ---  

0 Kudos
Altera_Forum
Honored Contributor II
654 Views

Relax. 

cd ~/uClinux-dist-test
0 Kudos
Altera_Forum
Honored Contributor II
654 Views

 

--- Quote Start ---  

originally posted by hippo@Jun 4 2006, 07:54 AM 

relax. 

cd ~/uclinux-dist-test 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15879) 

--- quote end ---  

 

--- Quote End ---  

 

hi hippo 

I meet the same problem again. 

 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

[faye@localhost uClinux-dist-test]$ unset CC 

[faye@localhost uClinux-dist-test]$ make menuconfig 

config/mkconfig > config.in 

make -C /home/faye/uClinux-dist-test/config/scripts/lxdialog all 

make[1]: Entering directory `/home/faye/uClinux-dist-test/config/scripts/lxdialog&#39; 

/bin/sh: cc: command not found 

 

>> Unable to find the Ncurses libraries. 

>> 

>> You must have Ncurses installed in order 

>> to use &#39;make menuconfig&#39; 

 

make[1]: *** [ncurses] Error 1 

make[1]: Leaving directory `/home/faye/uClinux-dist-test/config/scripts/lxdialog&#39; 

make: *** [menuconfig] Error 2[/b] 

--- Quote End ---  

 

 

Thx !
0 Kudos
Altera_Forum
Honored Contributor II
654 Views

Add symlink for cc, 

 

su - 

cd /usr/bin 

ln -s gcc cc
0 Kudos
Altera_Forum
Honored Contributor II
654 Views

 

--- Quote Start ---  

originally posted by hippo@Jun 4 2006, 10:20 AM 

add symlink for cc, 

 

su - 

cd /usr/bin 

ln -s gcc cc 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15889) 

--- quote end ---  

 

--- Quote End ---  

 

 

hi hippo 

I can execute "make menuconfig" into kernel config option. 

Thank you !
0 Kudos
Altera_Forum
Honored Contributor II
654 Views

hi hippo 

 

This version is so cool ! 

 

Thank you ! 

 

Why this version have more free memory can be used ? 

But i can&#39;t see it for used memory info . 

 

Thx ! 

 

<div class='quotetop'>QUOTE </div> 

--- Quote Start ---  

uClinux/Nios II 

Altera Nios II support © 2004 Microtronix Datacom Ltd. 

Built 1 zonelists 

Kernel command line: 

PID hash table entries: 64 (order: 6, 1024 bytes) 

Dentry cache hash table entries: 2048 (order: 1, 8192 bytes) 

Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) 

Memory available: 6340k/8192k RAM, 0k/0k ROM (1406k kernel code, 353k data) 

Mount-cache hash table entries: 512 

NET: Registered protocol family 16 

SCSI subsystem initialized 

usbcore: registered new driver usbfs 

usbcore: registered new driver hub 

io scheduler noop registered 

io scheduler deadline registered (default) 

Serial: JTAG UART driver $Revision: 1.4 $ 

ttyJ0 at MMIO 0x80481120 (irq = 1) is a jtag_uart 

usbmon: debugfs is not available 

driver isp1362-hcd, 2005-04-04 

isp1362-hcd isp1362-hcd: ISP1362 Host Controller 

isp1362_hc_reset: 

Clock not ready after 20ms 

isp1362-hcd isp1362-hcd: new USB bus registered, assigned bus number 1 

isp1362-hcd isp1362-hcd: irq 4, io mem 0x804810d0 

isp1362_hc_start: 

isp1362-hcd isp1362-hcd: ISP1362 Memory usage: 

isp1362-hcd isp1362-hcd: ISTL:    2 *  256:      512 @ $0000:$0100 

isp1362-hcd isp1362-hcd: INTL: 16 * ( 64+8):  1152 @ $0200 

isp1362-hcd isp1362-hcd: ATL : 32 * ( 64+8):  2304 @ $0680 

isp1362-hcd isp1362-hcd: USED/FREE: 3968    128 

usb usb1: configuration# 1 chosen from 1 choice 

hub 1-0:1.0: USB hub found 

hub 1-0:1.0: 2 ports detected 

ISP1362 Host Controller, irq 4 

Initializing USB Mass Storage driver... 

usbcore: registered new driver usb-storage 

USB Mass Storage support registered. 

NET: Registered protocol family 2 

IP route cache hash table entries: 128 (order: -3, 512 bytes) 

TCP established hash table entries: 512 (order: -1, 2048 bytes) 

TCP bind hash table entries: 512 (order: -1, 2048 bytes) 

TCP: Hash tables configured (established 512 bind 512) 

TCP reno registered 

TCP bic registered 

NET: Registered protocol family 1 

NET: Registered protocol family 17 

Freeing unused kernel memory: 228k freed (0x972000 - 0x9aa000) 

Shell invoked to run file: /etc/rcusb 1-2: new full speed USB device using isp13 

62-hcd and address 2 

 

Command: hostname uClinux 

Command: mount -t proc proc /proc 

Command: mount -t sysfs sysfs /sys 

Command: mount -t usbfs none /proc/bus/usb 

Command: mkdir /var/tmp 

Command: mkdir /var/log 

Command: mkdir /var/run 

Command: mkdir /var/lock 

Command: mkdir /var/empty 

Command: ifconfig lo 127.0.0.1 

Command: route add -net 127.0.0.0 netmask 255.0.0.0 lo 

Command: cat /etc/motd 

Welcome to 

          ____ _  _ 

      /  __| ||_| 

    _ _| |  | | _ ____  _ _  _  _ 

| | | | |  | || |  _ \| | | |\ \/ / 

| |_| | |__| || | | | | |_| |/     

|  ___\____|_||_|_| |_|\____|\_/\_/ 

| | 

|_| 

 

For further information check: 

http://www.uclinux.org/ (http://www.uclinux.org/

 

Execution Finished, Exiting 

 

Sash command shell (version usb 1-2: configuration# 1 chosen from 1 choice 

1.1.1) 

/> scsi0 : SCSI emulation for USB Mass Storage devices 

  Vendor: eUSB      Model: Compact Flash  Rev: 5.07 

  Type: Direct-Access                      ANSI SCSI revision: 02 

SCSI device sda: 250880 512-byte hdwr sectors (128 MB) 

sda: Write Protect is off 

sda: assuming drive cache: write through 

SCSI device sda: 250880 512-byte hdwr sectors (128 MB) 

sda: Write Protect is off 

sda: assuming drive cache: write through 

sda: sda1 

sd 0:0:0:0: Attached scsi removable disk sda 

 

/> free 

MemTotal:      6568 kB 

MemFree:          5092 kB 

Buffers:          0 kB 

/> cd /[/b] 

--- Quote End ---  

0 Kudos
Altera_Forum
Honored Contributor II
654 Views

cat /proc/meminfo 

 

Or 

 

ps
0 Kudos
Altera_Forum
Honored Contributor II
654 Views

hi hippo 

 

I have problem about compiling personal app program. 

 

This is procedure of my compiler, as following: 

 

1. Execute nios2-linux-uclibc-gcc 123.c -o 123 -elt2flt 

 

2. cp 123 to ~/uClinux-dist-test/romfs/bin 

 

3.make linux image 

 

But i can&#39;t run my app program under uClinux. 

 

How to compile my apps program under uClinux-dist-test that is correctlly ? 

 

Thx !
0 Kudos
Altera_Forum
Honored Contributor II
654 Views

 

--- Quote Start ---  

originally posted by jay_1025@Jun 5 2006, 08:10 PM 

hi hippo 

 

i have problem about compiling personal app program. 

 

this is procedure of my compiler, as following: 

 

1. execute  nios2-linux-uclibc-gcc 123.c -o  123 -elt2flt 

 

2. cp 123 to ~/uclinux-dist-test/romfs/bin 

 

3.make linux image 

 

but i can&#39;t run my app program under uclinux. 

 

how to compile my apps program under uclinux-dist-test that is correctlly ? 

 

thx ! 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15913) 

--- quote end ---  

 

--- Quote End ---  

 

Your steps are OK. 

Have you tried a simple hello? 

On nios2 uclinux, 

ls -l /bin
0 Kudos
Altera_Forum
Honored Contributor II
603 Views

 

--- Quote Start ---  

originally posted by hippo+jun 5 2006, 08:57 am--><div class='quotetop'>quote (hippo @ jun 5 2006, 08:57 am)</div> 

--- quote start ---  

<!--quotebegin-jay_1025@Jun 5 2006, 08:10 PM 

hi hippo 

 

i have problem about compiling personal app program. 

 

this is procedure of my compiler, as following: 

 

1. execute  nios2-linux-uclibc-gcc 123.c -o  123 -elt2flt 

 

2. cp 123 to ~/uclinux-dist-test/romfs/bin 

 

3.make linux image 

 

but i can&#39;t run my app program under uclinux. 

 

how to compile my apps program under uclinux-dist-test that is correctlly ? 

 

thx ! 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15913) 

--- quote end ---  

 

--- Quote End ---  

 

Your steps are OK. 

Have you tried a simple hello? 

On nios2 uclinux, 

ls -l /bin 

<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15919)</div> 

[/b] 

--- Quote End ---  

 

 

hi hippo 

 

I don&#39;t try hello simple.  

I think that I miss 2 steps with "make" and "make romfs". 

 

1. Execute nios2-linux-uclibc-gcc 123.c -o 123 -elt2flt 

 

2. cp 123 to ~/uClinux-dist-test/romfs/bin 

 

3.make  

 

4.make romfs 

 

5.make linux image 

 

I can run my app program under linux and have some problems. 

But this app program can run under linux-2.6.16.1 that is ok .
0 Kudos
Reply