cancel
Showing results for 
Search instead for 
Did you mean: 

Drivers & Software

Vibin_t
Journeyman III

ERROR : unable to load JFFS2 on Zynq 7000

Hi,

I am using a Zynq 7000 board with QSPI NOR FLASH (MT25QL01GBBB8ESF), and I am using petalinux2019p2 for my project creation

I have created 5 mtd flash partitions as follows:
5 fixed-partitions partitions found on MTD device spi0.0
Creating 5 MTD partitions on "spi0.0":
0x000000000000-0x000001000000 : "boot"
0x000001000000-0x000001020000 : "bootenv"
0x000001020000-0x000002020000 : "kernel"
0x000002020000-0x000003020000 : "spare"
0x000003020000-0x000003920000 : "jffs2"

Able to successfully load and boot kernel with INITRAMFS filesystem

Now I want to change my filesystem to JFFS2 and i have did the following

  1. Enabled JFFS filesystem in petalinux config
  2. Created an mtd partition for JFFS2
  3. In Petalinux config -c kernel JFFS2 has been enabled
  4. From NOR datasheet found the erase size to be 64 KiB and configured the same in petalinux config JFFS2 erase size 
  5. Executed petalinux-build command and generated uboot (u-boot.elf), kernel(image.ub) and jffs2(rootfs.jffs2) images

Loaded the uboot image and set the bootargs as setenv bootargs root=/dev/mtdblock4 rw rootfstype=jffs2
At uboot flashed the rootfs.jffs2 to mtd partition 4 (flash offset 0x3020000) and loaded kernel image.

Unable to boot and we were getting the below error: 
jffs2: Node at 0x00800d28 with length 0x000007f3 would run over the end of the erase block
jffs2: Perhaps the file system was created with the wrong erase size?
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00800d2c: 0x07f3 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00800d30: 0x9bbb instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00800d34: 0x04b8 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00800d38: 0x0005 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00800d3c: 0x81a4 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00800d44: 0x44cb instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00800d54: 0x3000 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00800d58: 0x07af instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00800d5c: 0x1000 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00800d60: 0x0006 instead
jffs2: Further such events for this erase block will not be printed
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00801000: 0x6d94 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00801004: 0x31fb instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00801008: 0xac50 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0080100c: 0x5cd9 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00801010: 0x6789 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00801014: 0x4a92 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00801018: 0x1942 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0080101c: 0xd342 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00801020: 0xa78a instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00801024: 0x3245 instead
jffs2: Further such events for this erase block will not be printed
jffs2: Node at 0x00801f7c with length 0x00000754 would run over the end of the erase block
jffs2: Perhaps the file system was created with the wrong erase size?
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00802000: 0x626f instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00802004: 0xdea1 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00802008: 0xee82 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0080200c: 0xe9bc instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00802010: 0xdbde instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00802014: 0xd468 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00802018: 0xe33a instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0080201c: 0x7ad5 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00802020: 0xab8f instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00802024: 0x7c10 instead
jffs2: Further such events for this erase block will not be printed
jffs2: Node at 0x00802da0 with length 0x000006b4 would run over the end of the erase block
jffs2: Perhaps the file system was created with the wrong erase size?
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00803000: 0x2108 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00803004: 0x92ee instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00803008: 0xb51a instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0080300c: 0x6468 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00803010: 0x80eb instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00803014: 0x50e4 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00803018: 0x49b0 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0080301c: 0x7c08 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00803020: 0x73d5 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00803024: 0x34b9 instead
jffs2: Further such events for this erase block will not be printed
jffs2: Node at 0x00803b28 with length 0x000007fd would run over the end of the erase block
jffs2: Perhaps the file system was created with the wrong erase size?
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00804000: 0x8f67 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00804004: 0x2907 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00804008: 0xb7a6 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0080400c: 0x1bc4 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00804010: 0xe051 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00804014: 0x9de8 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00804018: 0xd9a3 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x0080401c: 0x42be instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00804020: 0x9d63 instead
jffs2: jffs2_scan_eraseblock(): Magic bitmask 0x1985 not found at 0x00804024: 0x87c3 instead
jffs2: Further such events for this erase block will not be printed
VFS: Mounted root (jffs2 filesystem) on device 31:4.
devtmpfs: mounted
Freeing unused kernel memory: 1024K
Run /sbin/init as init process
jffs2: warning: (1) jffs2_do_read_inode_internal: Truncating ino #529 to 26560 bytes failed because it only had 24576 bytes to start with!
request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
jffs2: warning: (717) jffs2_do_read_inode_internal: Truncating ino #640 to 56328 bytes failed because it only had 53248 bytes to start with!
jffs2: warning: (717) jffs2_do_read_inode_internal: Truncating ino #513 to 58864 bytes failed because it only had 57344 bytes to start with!
jffs2: warning: (717) jffs2_do_read_inode_internal: Truncating ino #130 to 19199 bytes failed because it only had 16384 bytes to start with!
jffs2: warning: (717) jffs2_do_read_inode_internal: Truncating ino #1029 to 78640 bytes failed because it only had 77824 bytes to start with!
jffs2: warning: (717) jffs2_do_read_inode_internal: Truncating ino #390 to 13860 bytes failed because it only had 12288 bytes to start with!
jffs2: warning: (717) jffs2_do_read_inode_internal: Truncating ino #392 to 30324 bytes failed because it only had 28672 bytes to start with!
request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
Starting init: /sbin/init exists but couldn't execute it (error -8)
Run /etc/init as init process
Run /bin/init as init process
Run /bin/sh as init process
request_module: kmod_concurrent_max (0) close to 0 (max_modprobes: 50), for module binfmt-0000, throttling...
jffs2: warning: (717) jffs2_do_read_inode_internal: Truncating ino #1164 to 5727 bytes failed because it only had 4096 bytes to start with!
request_module: modprobe binfmt-0000 cannot be processed, kmod busy with 50 threads for more than 5 seconds now
Starting init: /bin/sh exists but couldn't execute it (error -8)
Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/admin-guide/init.rst for guidance.
CPU1: stopping
CPU: 1 PID: 0 Comm: swapper/1 Not tainted 4.19.0-xilinx #1
Hardware name: Xilinx Zynq Platform
[<c010f0cc>] (unwind_backtrace) from [<c010ae68>] (show_stack+0x10/0x14)
[<c010ae68>] (show_stack) from [<c068180c>] (dump_stack+0x80/0xa0)
[<c068180c>] (dump_stack) from [<c010d6d4>] (ipi_cpu_stop+0x3c/0x70)
[<c010d6d4>] (ipi_cpu_stop) from [<c010df04>] (handle_IPI+0x6c/0x90)
[<c010df04>] (handle_IPI) from [<c032621c>] (gic_handle_irq+0x84/0x90)
[<c032621c>] (gic_handle_irq) from [<c0101a0c>] (__irq_svc+0x6c/0xa8)
Exception stack(0xef085f30 to 0xef085f78)
5f20: 00000000 00000033 2eec1000 00000000
5f40: ef806478 ffffe000 ef806478 00000000 a13e4699 a1628f2f 00000033 00000033
5f60: fffffff5 ef085f80 c0509070 c0509098 60000113 ffffffff
[<c0101a0c>] (__irq_svc) from [<c0509098>] (cpuidle_enter_state+0xf8/0x1d8)
[<c0509098>] (cpuidle_enter_state) from [<c013f3f0>] (do_idle+0x1ac/0x23c)
[<c013f3f0>] (do_idle) from [<c013f5dc>] (cpu_startup_entry+0x18/0x1c)
[<c013f5dc>] (cpu_startup_entry) from [<001023ac>] (0x1023ac)
---[ end Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Doc

 

Please do help us resolve this issue

Thanks and Regards,
Vibin

0 Likes
1 Reply

Best to open and copy your question at AMD Xilinx Forum: https://support.xilinx.com/s/topiccatalog?language=en_US

The Xilinx Forum deals with everything to do with AMD/Xilinx hardware and software issues.

0 Likes