Forum Discussion
about memory problem for uclinux....
hi all
I have upload a music file(xxx.wav,about 700kB ) to uclinux from my PC ,and I got very long error messages on uClinux . such as following:
it seems memory not enough..............
anyone have met the same problem ?
Have any ways to solve it ?
<0> [<00003ef8>]<0> [<00000000>]<0> [<00000005>]<0> [<00000044>]<0>
<0> [<000200d2>]<0> [<00000044>]<0> [<00000000>]<0> [<00000001>]<0>
<0> [<00000000>]<0> [<00000014>]<0> [<00000001>]<0> [<00018c88>]<0>
<0> [<0001d35c>]<0> [<000035ae>]<0> [<00000008>]<0> [<00060000>]<0>
<0> [<000000b8>]<0> [<00080000>]<0> [<00090000>]<0> [<00003e00>]<0>
<0> [<00000080>]<0> [<000a2098>]<0> [<0001fff4>]<0> [<0000d6b8>]<0>
<0> [<00000008>]<0> [<00000000>]<0> [<00077410>]<0> [<0005371c>]<0>
<0> [<00000000>]<0> [<00000000>]<0> [<00000000>]<0> [<00053a28>]<0>
<0> [<00000000>]<0> [<00002400>]<0> [<00000f00>]<0> [<00000000>]<0>
<0> [<00000000>]<0> [<00000000>]<0> [<00000938>]<0> [<00000006>]<0>
<0> [<00000000>]<0> [<00000008>]<0> [<00000018>]<0> [<00000000>]<0>
<0> [<0000000b>]<0> [<00000000>]<0> [<00000000>]<0> [<00000001>]<0>
<0> [<00000000>]<0>
oom-killer: gfp_mask=0xd0, order=8
Stack from 0020fd80:<0>
<0> 00000008<0> 00033600<0> 00000000<0> 00000042<0> 001935f0<0> 001935f0<
0> 00000008<0> 00000000<0>
<0> 000000d0<0> 00452080<0> 00000000<0> 00034bc0<0> 00000000<0> 00000001<
0> 000000d0<0> 000000d0<0>
<0> 00000000<0> 00220d80<0> 00000008<0> 000000d0<0> 00000000<0> 00239920<
0> 0003f640<0> 00000010<0>
<0> 00000002<0> 00000000<0> 000a2098<0> 0045dc20<0> 00000000<0> 00000077<
0> 00205480<0> 00000001<0>
<0> 001e1800<0> 0003fa58<0> 00000004<0> 0003d4dc<0> 00000000<0> 00000004<
0> 002b06e4<0> 002b06a0<0>
<0> 00000007<0> ffffe000<0> 00003ef8<0> 00000040<0> 00000004<0> 00000001<
0> 00000000<0> 000681b8<0>
Call Trace:<0>
<0> [<00021254>]<0> [<00077b74>]<0> [<00000002>]<0> [<00000000>]<0>
<0> [<0003235c>]<0> [<00000000>]<0> [<00000000>]<0> [<00000000>]<0>
<0> [<00000000>]<0> [<00000000>]<0> [<00000000>]<0> [<00000000>]<0>
<0> [<00003ef8>]<0> [<00000000>]<0> [<00000005>]<0> [<00000044>]<0>
<0> [<000200d2>]<0> [<00000044>]<0> [<00000000>]<0> [<00000001>]<0>
<0> [<00000000>]<0> [<00000014>]<0> [<00000001>]<0> [<00018c88>]<0>
<0> [<0001d35c>]<0> [<000035ae>]<0> [<00000008>]<0> [<00060000>]<0>
<0> [<000000b8>]<0> [<00080000>]<0> [<00090000>]<0> [<00003e00>]<0>
<0> [<00000080>]<0> [<000a2098>]<0> [<0001fff4>]<0> [<0000d6b8>]<0>
<0> [<00000008>]<0> [<00000000>]<0> [<00077410>]<0> [<0005371c>]<0>
<0> [<00000000>]<0> [<00000000>]<0> [<00000000>]<0> [<00053a28>]<0>
<0> [<00000000>]<0> [<00002400>]<0> [<00000f00>]<0> [<00000000>]<0>
<0> [<00000000>]<0> [<00000000>]<0> [<00000938>]<0> [<00000006>]<0>
<0> [<00000000>]<0> [<00000008>]<0> [<00000018>]<0> [<00000000>]<0>
<0> [<0000000b>]<0> [<00000000>]<0> [<00000000>]<0> [<00000001>]<0>
<0> [<00000000>]<0>
Mem-info:
DMA per-cpu:
cpu 0 hot: high 0, batch 1 used:0
cpu 0 cold: high 0, batch 1 used:0
DMA32 per-cpu: empty
Normal per-cpu: empty
HighMem per-cpu: empty
Free pages: 752kB (0kB HighMem)
Active:255 inactive:278 dirty:0 writeback:0 unstable:0 free:188 slab:826 mapped:
0 pagetables:0
DMA free:752kB min:360kB low:448kB high:540kB active:1020kB inactive:1112kB pres
ent:8192kB pages_scanned:2382 all_unreclaimable? yes
lowmem_reserve[]: 0 0 0 0
DMA32 free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB page
s_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0 0
Normal free:0kB min:0kB low:0kB high:0kB active:0kB inactive:0kB present:0kB pag
es_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0 0
HighMem free:0kB min:128kB low:128kB high:128kB active:0kB inactive:0kB present:
0kB pages_scanned:0 all_unreclaimable? no
lowmem_reserve[]: 0 0 0 0
DMA: 0*4kB 0*8kB 1*16kB 1*32kB 1*64kB 1*128kB 0*256kB 1*512kB 0*1024kB 0*2048kB
0*4096kB = 752kB
DMA32: empty
Normal: empty
HighMem: empty
2048 pages of RAM
188 free pages
458 reserved pages
0 pages shared
0 pages swap cached
scheduling while atomic: ls/0x0000000b/40
Stack from 0020fd14:<0>
<0> 0000000b<0> 001797d0<0> ffffffff<0> 00000006<0> 0000000a<0> 0000000d<
0> 0031a001<0> 00192c80<0>
<0> 00000010<0> 00000042<0> 00000000<0> 00190d48<0> 0020fd88<0> 00452340<
0> 00192c80<0> ffffe2a6<0>
<0> 00000001<0> 0017ad90<0> 00000000<0> 00200200<0> ffffe2a6<0> 000195d0<
0> 00452080<0> 00217b84<0>
<0> 001adba0<0> ffffe000<0> 000200d0<0> 0017ae44<0> 00033610<0> 0000000a<
0> 000000e0<0> 32a9f880<0>
<0> 001935f0<0> 00000008<0> 00000000<0> 000000d0<0> 00452080<0> 00000000<
0> 00034bc0<0> 00000000<0>
<0> 00000001<0> 000000d0<0> 000000d0<0> 00000000<0> 00220d80<0> 00000008<
0> 000000d0<0> 00000000<0>
Call Trace:<0>
<0> [<0003f640>]<0> [<00000010>]<0> [<00000002>]<0> [<00000000>]<0>
<0> [<000a2098>]<0> [<00000000>]<0> [<00000077>]<0> [<00000001>]<0>
<0> [<0003fa58>]<0> [<00000004>]<0> [<0003d4dc>]<0> [<00000000>]<0>
<0> [<00000004>]<0> [<00000007>]<0> [<00003ef8>]<0> [<00000040>]<0>
<0> [<00000004>]<0> [<00000001>]<0> [<00000000>]<0> [<000681b8>]<0>
<0> [<00021254>]<0> [<00077b74>]<0> [<00000002>]<0> [<00000000>]<0>
<0> [<0003235c>]<0> [<00000000>]<0> [<00000000>]<0> [<00000000>]<0>
<0> [<00000000>]<0> [<00000000>]<0> [<00000000>]<0> [<00000000>]<0>
<0> [<00003ef8>]<0> [<00000000>]<0> [<00000005>]<0> [<00000044>]<0>
<0> [<000200d2>]<0> [<00000044>]<0> [<00000000>]<0> [<00000001>]<0>
<0> [<00000000>]<0> [<00000014>]<0> [<00000001>]<0> [<00018c88>]<0>
<0> [<0001d35c>]<0> [<000035ae>]<0> [<00000008>]<0> [<00060000>]<0>
<0> [<000000b8>]<0> [<00080000>]<0> [<00090000>]<0> [<00003e00>]<0>
.
.
thx in advance !
jay
31 Replies
- Altera_Forum
Honored Contributor
<div class='quotetop'>QUOTE </div>
--- Quote Start --- There is new option, In kernel config for higher than 2.6.11, General setup --> [*] Configure standard kernel features (for small systems) ---> [ ] Enable full-sized data structures for core No in this option will reduce kernel data structure size.[/b] --- Quote End --- hi hippo i have cancelled this option in kernel menuconfig,but i don't feel free space of memory that has increased.such as following # free total used free shared buffers Mem: 6320 5744 576 0 0 Do you have other ways to add free memory up to 1M in the sdram? first step,because i want to plasy music (.wav) that acces files from usb flash disk on DE2 board. if i can do it , next step,i want to process music files under sdram, so i must need bigger buffer to run algorithm .such as sound-effect processing (pitch-shifting)==> male sound become female sound eg... thx in advance jay - Altera_Forum
Honored Contributor
<div class='quotetop'>QUOTE </div>
--- Quote Start --- You should do it in two steps. First, with normal initramfs, and no kernel command line. Edit drivers/mtd/maps/altera.c , to the offset and size of your cfi flash. Remove unused mtd parts. Rebuild zImage, and check if mtd is detected correctly. If mtdblock0 is correct, then try mount it as jffs2, copy the rootfs. And then reboot again, to verify if all the data is correct. If all work without problems, then do the step2, rootfs to your mtd.[/b] --- Quote End --- hi hippo i have modified the driver in /mtd/maps/altera.c and canceled some options in the kernel munuconfig, then has removed some apps in ~/rootfs/bin dir and rebuilt kernel finally..... my booting info as following : 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: 6444k/8192k RAM, 0k/0k ROM (1184k kernel code, 467k data) Mount-cache hash table entries: 512 SCSI subsystem initialized usbcore: registered new driver usbfs usbcore: registered new driver hub JFFS2 version 2.2. (NAND) © 2001-2003 Red Hat, Inc. io scheduler noop registered io scheduler deadline registered (default) Serial: JTAG UART driver $Revision: 1.4 $ ttyJ0 at MMIO 0x80c81120 (irq = 1) is a jtag_uart Altera NDK flash (AMD): Found 1 x16 devices at 0x0 in 8-bit bank Amd/Fujitsu Extended Query Table at 0x0040 number of CFI chips: 1 cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness. cmdlinepart partition parsing not available RedBoot partition parsing not available Using Altera NDK partition definition Creating 1 MTD partitions on "Altera NDK flash (AMD)": 0x00800000-0x00c00000 : "romfs/jffs2" mtd: partition "romfs/jffs2" is out of reach -- disabled http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif usbmon: debugfs is not available driver isp1362-hcd, 2005-04-04 isp1362-hcd isp1362-hcd: ISP1362 Host Controller isp1362_hc_reset: isp1362-hcd isp1362-hcd: new USB bus registered, assigned bus number 1 isp1362-hcd isp1362-hcd: irq 4, io mem 0x80c810d0 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. Freeing unused kernel memory: 368k freed (0x138000 - 0x193000) init started: BusyBox v1.1.1-pre0 (2006.04.20-12:52+0000) multi-call binary usb 1-2: new full speed USB device using isp1362-hcd and address 2 BusyBox v1.1.1-pre0 (2006.04.20-12:52+0000) Built-in shell (musb 1-2: configurat ion# 1 chosen from 1 choice sh) Enter 'help' for a list of built-in commands. # 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 # ls bin etc init mnt proc sbin tmp var dev home lib opt root sys usr# free total used free shared buffers Mem: 6812 5904 908 0 0 why the partition "romfs/jffs2" is out of reach ? How should I go to solve these problems ? thanks in advance ! - Altera_Forum
Honored Contributor
If i'm right, you try create a partition on your flashrange which doesn't exist (from 8MB to 12,5MB). You have only 4 MB !?!
Nothing to worry about. You'll have to modify altera.c again, if you to remove this notification -> remove this entry in the partition structure. - Altera_Forum
Honored Contributor
hi Helmchen
thanks for your reply yor are right. because my flash only have 4MB that range is from 0x000000 to 0x400000 correctly,before it was my mistake .... <div class='quotetop'>QUOTE </div> --- Quote Start --- Altera NDK flash (AMD): Found 1 x16 devices at 0x0 in 8-bit bank Amd/Fujitsu Extended Query Table at 0x0040 number of CFI chips: 1 cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness. cmdlinepartlable parsing not available RedBoot partition parsing not available Using Altera NDK partition definition Creating 1 MTD partitions on "Altera NDK flash (AMD)": 0x00000000-0x00400000 : "romfs/jffs2"[/b] --- Quote End --- Is it important for red lines ? thx - Altera_Forum
Honored Contributor
hi all
when i have excuted command "mount -t jffs2 /dev/mtdblock0 /mnt" then got so long messages for JFFS2 ................. http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif uClinux/Nios II Altera Nios II support © 2004 Microtronix Datacom Ltd. Built 1 zonelists Kernel command line: root=/dev/mtdblock0 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: 6444k/8192k RAM, 0k/0k ROM (1184k kernel code, 467k data) Mount-cache hash table entries: 512 SCSI subsystem initialized usbcore: registered new driver usbfs usbcore: registered new driver hub JFFS2 version 2.2. (NAND) © 2001-2003 Red Hat, Inc. io scheduler noop registered io scheduler deadline registered (default) Serial: JTAG UART driver $Revision: 1.4 $ ttyJ0 at MMIO 0x80c81120 (irq = 1) is a jtag_uart Altera NDK flash (AMD): Found 1 x16 devices at 0x0 in 8-bit bank Amd/Fujitsu Extended Query Table at 0x0040 number of CFI chips: 1 cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness. cmdlinepart partition parsing not available RedBoot partition parsing not available Using Altera NDK partition definition Creating 1 MTD partitions on "Altera NDK flash (AMD)": 0x00000000-0x00400000 : "romfs/jffs2" usbmon: debugfs is not available driver isp1362-hcd, 2005-04-04 isp1362-hcd isp1362-hcd: ISP1362 Host Controller isp1362_hc_reset: isp1362-hcd isp1362-hcd: new USB bus registered, assigned bus number 1 isp1362-hcd isp1362-hcd: irq 4, io mem 0x80c810d0 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. Freeing unused kernel memory: 368k freed (0x138000 - 0x193000) init started: BusyBox v1.1.1-pre0 (2006.04.20-12:52+0000) multi-call binary BusyBox v1.1.1-pre0 (2006.04.20-12:52+0000) Built-in shell (msh) Enter 'help' for a list of built-in commands. # mount -t jffs2 /dev/mtdblock0 /mnt jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x0100 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0xff04 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 0x0908 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000000c: 0x0d0c in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000010: 0x1110 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000014: 0x1514 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018: 0x1918 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000001c: 0x1d1c in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020: 0x2120 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000024: 0x2524 in stead . . . Further such events for this erase block will not be printed jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f0000: 0x0100 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f0004: 0xff04 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f0008: 0x0908 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f000c: 0xff0c in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f0010: 0x1110 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f0014: 0xff14 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f0018: 0x1918 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f001c: 0xff1c in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f0020: 0x2120 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f0024: 0xff24 in stead Further such events for this erase block will not be printed Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes empty_blocks 0, bad_blocks 0, c->nr_blocks 64 mount: Mounting /dev/mtdblock0 on /mnt failed: Input/output error# how to set can be mounted JFFS2 filesystem successfully ? Thx in anvance ! - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by jay_1025@May 4 2006, 02:22 AM hi allwhen i have excuted command "mount -t jffs2 /dev/mtdblock0 /mnt" then got so long messages for jffs2 ................. http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/sad.gif
uclinux/nios ii
altera nios ii support © 2004 microtronix datacom ltd.
built 1 zonelists
kernel command line: root=/dev/mtdblock0
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: 6444k/8192k ram, 0k/0k rom (1184k kernel code, 467k data)
mount-cache hash table entries: 512
scsi subsystem initialized
usbcore: registered new driver usbfs
usbcore: registered new driver hub
jffs2 version 2.2. (nand) © 2001-2003 red hat, inc.
io scheduler noop registered
io scheduler deadline registered (default)
serial: jtag uart driver $revision: 1.4 $
ttyj0 at mmio 0x80c81120 (irq = 1) is a jtag_uart
altera ndk flash (amd): found 1 x16 devices at 0x0 in 8-bit bank
amd/fujitsu extended query table at 0x0040
number of cfi chips: 1
cfi_cmdset_0002: disabling erase-suspend-program due to code brokenness.
cmdlinepart partition parsing not available
redboot partition parsing not available
using altera ndk partition definition
creating 1 mtd partitions on "altera ndk flash (amd)":
0x00000000-0x00400000 : "romfs/jffs2"
usbmon: debugfs is not available
driver isp1362-hcd, 2005-04-04
isp1362-hcd isp1362-hcd: isp1362 host controller
isp1362_hc_reset:
isp1362-hcd isp1362-hcd: new usb bus registered, assigned bus number 1
isp1362-hcd isp1362-hcd: irq 4, io mem 0x80c810d0
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.
freeing unused kernel memory: 368k freed (0x138000 - 0x193000)
init started: busybox v1.1.1-pre0 (2006.04.20-12:52+0000) multi-call binary
busybox v1.1.1-pre0 (2006.04.20-12:52+0000) built-in shell (msh)
enter 'help' for a list of built-in commands.
# mount -t jffs2 /dev/mtdblock0 /mnt
jffs2_scan_eraseblock(): magic bitmask 0x1985 not found at 0x00000000: 0x0100 in
stead
jffs2_scan_eraseblock(): magic bitmask 0x1985 not found at 0x00000004: 0xff04 in
stead
jffs2_scan_eraseblock(): magic bitmask 0x1985 not found at 0x00000008: 0x0908 in
stead
jffs2_scan_eraseblock(): magic bitmask 0x1985 not found at 0x0000000c: 0x0d0c in
stead
jffs2_scan_eraseblock(): magic bitmask 0x1985 not found at 0x00000010: 0x1110 in
stead
jffs2_scan_eraseblock(): magic bitmask 0x1985 not found at 0x00000014: 0x1514 in
stead
jffs2_scan_eraseblock(): magic bitmask 0x1985 not found at 0x00000018: 0x1918 in
stead
jffs2_scan_eraseblock(): magic bitmask 0x1985 not found at 0x0000001c: 0x1d1c in
stead
jffs2_scan_eraseblock(): magic bitmask 0x1985 not found at 0x00000020: 0x2120 in
stead
jffs2_scan_eraseblock(): magic bitmask 0x1985 not found at 0x00000024: 0x2524 in
stead
.
.
.
further such events for this erase block will not be printed
jffs2_scan_eraseblock(): magic bitmask 0x1985 not found at 0x003f0000: 0x0100 in
stead
jffs2_scan_eraseblock(): magic bitmask 0x1985 not found at 0x003f0004: 0xff04 in
stead
jffs2_scan_eraseblock(): magic bitmask 0x1985 not found at 0x003f0008: 0x0908 in
stead
jffs2_scan_eraseblock(): magic bitmask 0x1985 not found at 0x003f000c: 0xff0c in
stead
jffs2_scan_eraseblock(): magic bitmask 0x1985 not found at 0x003f0010: 0x1110 in
stead
jffs2_scan_eraseblock(): magic bitmask 0x1985 not found at 0x003f0014: 0xff14 in
stead
jffs2_scan_eraseblock(): magic bitmask 0x1985 not found at 0x003f0018: 0x1918 in
stead
jffs2_scan_eraseblock(): magic bitmask 0x1985 not found at 0x003f001c: 0xff1c in
stead
jffs2_scan_eraseblock(): magic bitmask 0x1985 not found at 0x003f0020: 0x2120 in
stead
jffs2_scan_eraseblock(): magic bitmask 0x1985 not found at 0x003f0024: 0xff24 in
stead
further such events for this erase block will not be printed
cowardly refusing to erase blocks on filesystem with no valid jffs2 nodes
empty_blocks 0, bad_blocks 0, c->nr_blocks 64
mount: mounting /dev/mtdblock0 on /mnt failed: input/output error#
how to set can be mounted jffs2 filesystem successfully ?
thx in anvance !
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15011)
--- quote end ---
--- Quote End --- try erase the flash once with nios2-flash-programmer . Or later you can try to build a jffs2 image , read the epcs guide of Jdhar. jffs2 wants it blank or have a valid jffs2 image.
- Altera_Forum
Honored Contributor
<div class='quotetop'>QUOTE </div>
--- Quote Start --- [SOPC Builder]$ nios2-flash-programmer --sof=UP4_API.sof --base=0x00000000 --erase WARNING: Default charset MS950 not supported, using ISO-8859-1 instead May 4, 2006 10:07:46 PM - (??) nios2-flash-programmer: Launching Quartus Progra mer to download: UP4_API.sof Send (64) failed. Unable to synchronize with target. May 4, 2006 10:08:12 PM - (???) nios2-flash-programmer: Error opening target ha dware May 4, 2006 10:08:12 PM - (???) nios2-flash-programmer: In order to program flash, you must first create a purpose-built flash-programming design (i.e. FPGA configuration) and associate it with your particular board. The Nios development kit is delivered with purpose-bu lt flash-programming designs pre-built for several development boards. If you w sh to program flash on your own board, you must first create a flash-programming design. The process of creating a flash-programming design for your board is mostly automated. From a bash-shell, execute this script: mk_target_board --help The help-message includes references to other documentation on programming flash and targeting Nios systems to custom board designs. - exiting. /cygdrive/c/zImage_dir [SOPC Builder]$[/b] --- Quote End --- hi all i don't erase flash under SDK shell with using "nios2-flash-programmer ". how to use should be erased my flash memory? Thx in advance ! - Altera_Forum
Honored Contributor
<div class='quotetop'>QUOTE </div>
--- Quote Start --- QUOTE [SOPC Builder]$ nios2-flash-programmer --sof=UP4_API.sof --base=0x00000000 --erase WARNING: Default charset MS950 not supported, using ISO-8859-1 instead May 4, 2006 10:07:46 PM - (??) nios2-flash-programmer: Launching Quartus Progra mer to download: UP4_API.sof Send (64) failed. Unable to synchronize with target. May 4, 2006 10:08:12 PM - (???) nios2-flash-programmer: Error opening target ha dware May 4, 2006 10:08:12 PM - (???) nios2-flash-programmer: In order to program flash, you must first create a purpose-built flash-programming design (i.e. FPGA configuration) and associate it with your particular board. The Nios development kit is delivered with purpose-bu lt flash-programming designs pre-built for several development boards. If you w sh to program flash on your own board, you must first create a flash-programming design. The process of creating a flash-programming design for your board is mostly automated. From a bash-shell, execute this script: mk_target_board --help The help-message includes references to other documentation on programming flash and targeting Nios systems to custom board designs. - exiting. /cygdrive/c/zImage_dir [SOPC Builder]$ hi all i don't erase flash under SDK shell with using "nios2-flash-programmer ". how to use should be erased my flash memory? Thx in advance ! hippo Posted May 4 2006, 10:26 AM QUOTE(jay_1025 @ May 4 2006, 02:22 AM) hi all when i have excuted command "mount -t jffs2 /dev/mtdblock0 /mnt" then got so long messages for JFFS2 ................. sad.gif uClinux/Nios II Altera Nios II support © 2004 Microtronix Datacom Ltd. Built 1 zonelists Kernel command line: root=/dev/mtdblock0 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: 6444k/8192k RAM, 0k/0k ROM (1184k kernel code, 467k data) Mount-cache hash table entries: 512 SCSI subsystem initialized usbcore: registered new driver usbfs usbcore: registered new driver hub JFFS2 version 2.2. (NAND) © 2001-2003 Red Hat, Inc. io scheduler noop registered io scheduler deadline registered (default) Serial: JTAG UART driver $Revision: 1.4 $ ttyJ0 at MMIO 0x80c81120 (irq = 1) is a jtag_uart Altera NDK flash (AMD): Found 1 x16 devices at 0x0 in 8-bit bank Amd/Fujitsu Extended Query Table at 0x0040 number of CFI chips: 1 cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness. cmdlinepart partition parsing not available RedBoot partition parsing not available Using Altera NDK partition definition Creating 1 MTD partitions on "Altera NDK flash (AMD)": 0x00000000-0x00400000 : "romfs/jffs2" usbmon: debugfs is not available driver isp1362-hcd, 2005-04-04 isp1362-hcd isp1362-hcd: ISP1362 Host Controller isp1362_hc_reset: isp1362-hcd isp1362-hcd: new USB bus registered, assigned bus number 1 isp1362-hcd isp1362-hcd: irq 4, io mem 0x80c810d0 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. Freeing unused kernel memory: 368k freed (0x138000 - 0x193000) init started: BusyBox v1.1.1-pre0 (2006.04.20-12:52+0000) multi-call binary BusyBox v1.1.1-pre0 (2006.04.20-12:52+0000) Built-in shell (msh) Enter 'help' for a list of built-in commands. # mount -t jffs2 /dev/mtdblock0 /mnt jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000000: 0x0100 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000004: 0xff04 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000008: 0x0908 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000000c: 0x0d0c in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000010: 0x1110 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000014: 0x1514 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000018: 0x1918 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0000001c: 0x1d1c in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000020: 0x2120 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00000024: 0x2524 in stead . . . Further such events for this erase block will not be printed jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f0000: 0x0100 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f0004: 0xff04 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f0008: 0x0908 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f000c: 0xff0c in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f0010: 0x1110 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f0014: 0xff14 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f0018: 0x1918 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f001c: 0xff1c in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f0020: 0x2120 in stead jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x003f0024: 0xff24 in stead Further such events for this erase block will not be printed Cowardly refusing to erase blocks on filesystem with no valid JFFS2 nodes empty_blocks 0, bad_blocks 0, c->nr_blocks 64 mount: Mounting /dev/mtdblock0 on /mnt failed: Input/output error# how to set can be mounted JFFS2 filesystem successfully ? Thx in anvance ! try erase the flash once with nios2-flash-programmer . Or later you can try to build a jffs2 image , read the epcs guide of Jdhar. jffs2 wants it blank or have a valid jffs2 image.[/b] --- Quote End --- Hi jay_1025: Have you solve these problem now? My lab have been stolen before two weeks ago, our cpu and memory all lost,so I couldn't do it about three weeks, when I run my program, I get the same message as you, could you help me? THX! Regards! Goral - Altera_Forum
Honored Contributor
hi qoral
sorry,i have not solved this problem yet . so i don't know how to help you. I only disable some kernel configure options and remove some apps to increase memory space under uClinux OS(about 1.7M is free). and i think it not enough to run algorithm,but my algorithm program have some problems and haven't slove it yet .... http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif - Altera_Forum
Honored Contributor
--- Quote Start --- originally posted by jay_1025@May 26 2006, 04:10 AM hi qoralsorry,i have not solved this problem yet . so i don't know how to help you.
i only disable some kernel configure options and remove some apps to increase memory space under uclinux os(about 1.7m is free).
and i think it not enough to run algorithm,but my algorithm program have some problems and haven't slove it yet .... http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/sad.gif
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=15580)
--- quote end ---
--- Quote End --- Hi: But My Program is so large now, when I run the self-check program successful.When I run it to get the video stream, I got the same error message as you, I couldn't reduce my remove the nessary apps, if you have time, let's solve it quickly.I 've got two new DE II boards now, I can do it more effective now! THX! Regards!