Forum Discussion
Altera_Forum
Honored Contributor
15 years agoWell, finally managed to store filesystem in Flash, now I've much more free memory in my DE1 board. here it is:
nios2-terminal: connected to hardware target using JTAG UART on cable nios2-terminal: "USB-Blaster [USB 6-1.1]", device 1, instance 0 nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate) Linux version 2.6.34-00693-ga32ca88-dirty (mcesar@mcesarpc4114c.sec.upm.es) (gcc version 4.1.2)# 331 PREEMPT Tue Jul 13 20:28:55 CEST 2010 Linux/Nios II-MMU init_bootmem_node(?,0x101bf, 0x10000, 0x10800) free_bootmem(0x101bf000, 0x641000) reserve_bootmem(0x101bf000, 0x100) Built 1 zonelists in Zone order, mobility grouping off. Total pages: 2032 Kernel command line: root=/dev/mtdblock0 rootfstype=jffs2 ro PID hash table entries: 32 (order: -5, 128 bytes) Dentry cache hash table entries: 1024 (order: 0, 4096 bytes) Inode-cache hash table entries: 1024 (order: 0, 4096 bytes) We have 67584 pages of RAM Memory available: 6316k/1785k RAM, 0k/0k ROM (1402k kernel code, 382k data) NR_IRQS:32 Calibrating delay loop... 49.15 BogoMIPS (lpj=245760) Mount-cache hash table entries: 512 init_BSP(): registering device resources bio: create slab <bio-0> at 0 Switching to clocksource timer JFFS2 version 2.2. (NAND) © 2001-2006 Red Hat, Inc. JFS: nTxBlock = 49, nTxLock = 394 io scheduler noop registered (default) ttyJ0 at MMIO 0x1801420 (irq = 1) is a Altera JTAG UART console [ttyJ0] enabled physmap platform flash device: 00400000 at 01400000 physmap-flash.0: Found 1 x16 devices at 0x0 in 8-bit bank Amd/Fujitsu Extended Query Table at 0x0040 number of CFI chips: 1 cmdlinepart partition parsing not available RedBoot partition parsing not available Using physmap partition information Creating 2 MTD partitions on "physmap-flash.0": 0x000000200000-0x000000400000 : "romfs/jffs2" 0x000000000000-0x000000200000 : "loader/kernel" VFS: Mounted root (jffs2 filesystem) readonly on device 31:0. Freeing unused kernel memory: 44k freed (0xd0160000 - 0xd016a000) ifconfig: socket: Function not implemented Welcome to ____ _ _ / __| ||_| _ _| | | | _ ____ _ _ _ _ | | | | | | || | _ \| | | |\ \/ / | |_| | |__| || | | | | |_| |/ | ___\____|_||_|_| |_|\____|\_/\_/ | | |_| For further information check: http://www.uclinux.org/ BusyBox v1.16.2 (2010-07-12 20:38:43 CEST) hush - the humble shell Enter 'help' for a list of built-in commands. root:/> free total used free shared buffers Mem: 6360 3124 3236 0 0 Swap: 0 0 0 Total: 6360 3124 3236 root:/> mount rootfs on / type rootfs (rw) /dev/root on / type jffs2 (ro,relatime) proc on /proc type proc (rw,nosuid,nodev,noexec,relatime) sysfs on /sys type sysfs (rw,nosuid,nodev,noexec,relatime) devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,mode=600) var on /var type ramfs (rw,relatime) tmp on /tmp type tmpfs (rw,nosuid,nodev,relatime) root:/>