Forum Discussion
Altera_Forum
Honored Contributor
20 years agoUpgrade sdram chip to 16MB for DE2 dev...
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 !22 Replies
- Altera_Forum
Honored Contributor
--- 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' /bin/sh: cc: command not found >> Unable to find the Ncurses libraries. >> >> You must have Ncurses installed in order >> to use 'make menuconfig' make[1]: *** [ncurses] Error 1 make[1]: Leaving directory `/home/faye/uClinux-dist-test/config/scripts/lxdialog' make: *** [menuconfig] Error 2[/b] --- Quote End ---
- Altera_Forum
Honored Contributor
Relax.
cd ~/uClinux-dist-test - Altera_Forum
Honored Contributor
--- 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' /bin/sh: cc: command not found >> Unable to find the Ncurses libraries. >> >> You must have Ncurses installed in order >> to use 'make menuconfig' make[1]: *** [ncurses] Error 1 make[1]: Leaving directory `/home/faye/uClinux-dist-test/config/scripts/lxdialog' make: *** [menuconfig] Error 2[/b] --- Quote End --- Thx !
- Altera_Forum
Honored Contributor
Add symlink for cc,
su - cd /usr/bin ln -s gcc cc - Altera_Forum
Honored Contributor
--- 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 !
- Altera_Forum
Honored Contributor
hi hippo
This version is so cool ! Thank you ! Why this version have more free memory can be used ? But i can'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 --- - Altera_Forum
Honored Contributor
cat /proc/meminfo
Or ps - Altera_Forum
Honored Contributor
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't run my app program under uClinux. How to compile my apps program under uClinux-dist-test that is correctlly ? Thx ! - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by jay_1025@Jun 5 2006, 08:10 PM hi hippoi 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'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
- Altera_Forum
Honored Contributor
--- 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'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'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 .