<div> </div>
<div>Iam using MIPS, Big Endian, with AMD/Fujitsu Spansion CFI flash.</div>
<div> </div>
<div>I have Rootfs(jffs2) in flash, Linux-2.6.15 in RAM. Trying to mount Rootfs (jffs2). but gives OOPS, and then kernel panic !!</div>
<div>I have traced the disassembled part of it. Got the location of OOPS but dont know why</div>
<div> </div>
<div>Please .. help me out.</div>
<div> </div>
<div> </div>
<div>MSP flash device "flash0": 0x00800000 at 0x1f800000<br>flash0: Found 1 x16 devices at 0x0 in 8-bit bank<br> Amd/Fujitsu Extended Query Table at 0x0040<br>Using buffer write method<br>flash0: CFI does not contain boot bank location. Assuming top.
<br>number of CFI chips: 1<br>cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.<br>Creating 6 MTD partitions on "flash0":<br>0x00480000-0x007f0000 : " General partition"<br>mtd: Giving out device 0 to General partition
<br>0x00400000-0x00470000 : " pmon"<br>mtd: Giving out device 1 to pmon<br>0x00470000-0x00480000 : " pmon script"<br>mtd: Giving out device 2 to pmon script<br>0x00010000-0x00400000 : " Linux"
<br>mtd: Giving out device 3 to Linux<br>0x007f0000-0x00800000 : " Copyprotected space end"<br>mtd: Giving out device 4 to Copyprotected space end<br>0x00000000-0x00010000 : " Copyprotected space start"
<br>mtd: Giving out device 5 to Copyprotected space start<br>MSP flash device "flash1": 0x00bf0000 at 0x1e000000<br>flash1: Found 1 x16 devices at 0x0 in 8-bit bank<br> Amd/Fujitsu Extended Query Table at 0x0040
<br>Using buffer write method<br>flash1: CFI does not contain boot bank location. Assuming top.<br>number of CFI chips: 1<br>cfi_cmdset_0002: Disabling erase-suspend-program due to code brokenness.<br>Creating 1 MTD partitions on "flash1":
<br>0x00000000-0x00bf0000 : " Root Filesystem jffs2"<br>mtd: Giving out device 6 to Root Filesystem jffs2</div>
<div> </div>
<div>...........</div>
<div>..........</div>
<div><skipped some statements here></div>
<div>..........</div>
<div>..........</div>
<div>
<p>CPU 0 Unable to handle kernel paging request at virtual address 00000000, epc == 80121f30, ra == 80121fe0<br>Oops[#1]:<br>Cpu 0<br>$ 0 : 00000000 00000000 00000003 00000000<br>$ 4 : 80490554 00000003 00000001 00000000
<br>$ 8 : ffffffff 87e02488 00000000 00000008<br>$12 : 8048bb80 87e02480 ffffffff 00000010<br>$16 : 00000001 0000fff8 00000001 80490554<br>$20 : 00000000 00000000 00000003 80490500<br>$24 : 00000000 80298d08<br>
$28 : 8048a000 8048ba98 8048ba98 80121fe0<br>Hi : 00000000<br>Lo : 000000bf<br>epc : 80121f30 __wake_up_common+0x44/0xb8 Not tainted<br>ra : 80121fe0 __wake_up+0x3c/0x98<br>Status: 11005802 KERNEL EXL<br>
Cause : 80800008<br>BadVA : 00000000<br>PrId : 00019522<br>Modules linked in:<br>Process swapper (pid: 1, threadinfo=8048a000, task=8049fbe8)<br>Stack : 00000000 00000000 80460000 87e04e00 00000001 0000fff8 00000000 811aa030
<br> 80490538 00000000 00000008 8048bad0 80121fe0 8049fbe8 80121ecc 00000000<br> 00000000 804659de 00000000 00000035 80490538 00000008 802988ec 0000fff8<br> 0000fff8 811aa030 80490538 00000000 00000008 80490500 000023d0 80298fa8
<br> 00000002 8048bc38 00000010 87fc8908 00000000 80490500 0000fff8 80490500<br> ...<br>Call Trace:<br> [<80121fe0>] __wake_up+0x3c/0x98<br> [<80121ecc>] default_wake_function+0x0/0x20<br> [<802988ec>] put_chip+0x7c/0x1fc
<br> [<80298fa8>] cfi_amdstd_read+0x2a0/0x3d8<br> [<80203eec>] jffs2_fill_scan_buf+0x3c/0xc8<br> [<801280d0>] printk+0x1c/0x28<br> [<80204280>] jffs2_scan_medium+0x16c/0x19a8<br> [<80170928>] __get_vm_area_node+0x25c/0x284
<br> [<80170de4>] __vmalloc_area_node+0x104/0x1bc<br> [<80208f5c>] jffs2_do_mount_fs+0x1fc/0x9b0<br> [<8020c578>] jffs2_do_fill_super+0x108/0x360<br> [<801280d0>] printk+0x1c/0x28<br> [<8020cd6c>] jffs2_get_sb_mtd+0x10c/0x1d4
<br> [<8020cc9c>] jffs2_get_sb_mtd+0x3c/0x1d4<br> [<8018fb00>] path_release+0x18/0x48<br> [<8020d084>] jffs2_get_sb+0x1a8/0x2a4<br> [<801a5688>] mntput_no_expire+0x2c/0x140<br> [<80191d98>] link_path_walk+0x114/0x2f4
<br> [<8012e9bc>] tasklet_action+0xa4/0x134<br> [<801a4e6c>] alloc_vfsmnt+0xcc/0x10c<br> [<801a4d58>] get_fs_type+0x220/0x268<br> [<80186748>] do_kern_mount+0x68/0x180<br> [<80186710>] do_kern_mount+0x30/0x180
<br> [<80192088>] path_lookup+0x110/0x3a0<br> [<801a7524>] do_mount+0x5c4/0x7ec<br> [<801a7068>] do_mount+0x108/0x7ec<br> [<8013fdc0>] rcu_process_callbacks+0x24/0x48<br> [<8012e9bc>] tasklet_action+0xa4/0x134
<br> [<80158420>] get_page_from_freelist+0x580/0x5a8<br> [<8012e444>] __do_softirq+0x84/0x130<br> [<80158420>] get_page_from_freelist+0x580/0x5a8<br> [<8012e558>] do_softirq+0x68/0x80<br> [<801584ac>] __alloc_pages+0x64/0x344
<br> [<8015d160>] cache_alloc_refill+0x27c/0x69c<br> [<801587c8>] __get_free_pages+0x3c/0x88<br> [<8015c918>] kmem_cache_alloc+0x6c/0x74<br> [<8019de08>] dput+0x34/0x398<br> [<801a6e78>] copy_mount_options+0x38/0x120
<br> [<8018f5b8>] getname+0x28/0x100<br> [<801a7ca8>] sys_mount+0xac/0x108<br> [<801a7c40>] sys_mount+0x44/0x108<br> [<80194000>] sys_mknod+0x188/0x2ac<br> [<80194e78>] sys_unlink+0x1cc/0x2c4
<br> [<8043ea10>] mount_block_root+0xe8/0x2dc<br> [<8043e96c>] mount_block_root+0x44/0x2dc<br> [<8013e65c>] flush_cpu_workqueue+0x388/0x390<br> [<801773ec>] sys_access+0x7c/0x15c<br> [<8043ee0c>] prepare_namespace+0x74/0x14c
<br> [<8013e690>] flush_workqueue+0x2c/0x38<br> [<801002c0>] init+0x230/0x2e0<br> [<80103dbc>] kernel_thread_helper+0x10/0x18<br> [<80103dac>] kernel_thread_helper+0x0/0x18</p>
<p>Code: 00a0b021 00c09021 00e0a821 <10730010> 8c710000 2464fff4 8c820008 8c70fff4 02c02821<br>Kernel panic - not syncing: Attempted to kill init!<br></p>
<p> </p>
<p>thanks,</p>
<p>pk</p></div>