Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12603 Discussions

Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00 on A2GX260

Altera_Forum
Honored Contributor II
4,345 Views

Hi, 

 I'm attempting to use U-Boot 2013.01.01 to boot a Linux-3.10.31 kernel on a Arria II GX development kit board that is running a Nios II soft-core processor (with a MMU) with a 1 MB JFFS2 partition as the root file system. The on-board flash appears to probe correctly by identifying to two unique erase regions and the view reduction from 65536KiB to 16384KiB is expected. Everything seems to be fine during the booting process until the very end when the system is unable to access the lib.so.6 shared libraries followed by a "Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00" error. The system appears to actually mound the JFFS2 file system before the panic occurs so it's not clear to me it's unable to access the proper directory for the shared library.  Some other relevant address information:  I have included a copy of the boot screen as a reference.CPU : Nios-II SYSID : 00000000, Mon Jul 06 13:50:05 2015 BOARD : 2agx260 *** Warning - bad CRC, using default environment  Net: No ethernet found. Hit any key to stop autoboot: 0 # # Booting kernel from Legacy Image at ce000000 ...  Image Name: Linux-3.10.31-ltsi-05131-g55fdf0  Image Type: NIOS II Linux Kernel Image (gzip compressed)  Data Size: 974773 Bytes = 951.9 KiB  Load Address: c8000000  Entry Point: c8000000  Verifying Checksum ... OK # # Flattened Device Tree blob at cd000000  Booting using the fdt blob at 0xcd000000  Uncompressing Kernel Image ... OK Linux version 3.10.31-ltsi-05131-g55fdf0e-dirty (bjs@bjs-VirtualBox) (gcc version 4.7.3 (Sourcery CodeBench Lite 2013.05-43) )# 16 Tue Jul 7 12:05:52 EDT 2015 bootconsole [early0] enabled early_console initialized at 0xe1001840 On node 0 totalpages: 65536 free_area_init_node: node 0, pgdat c81fa02c, node_mem_map c8212240  Normal zone: 512 pages used for memmap  Normal zone: 0 pages reserved  Normal zone: 65536 pages, LIFO batch:15 pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 pcpu-alloc: [0] 0 Built 1 zonelists in Zone order, mobility grouping on. Total pages: 65024 Kernel command line: console=ttyJ0,115200 root=/dev/mtdblock0 rootfstype=jffs2 rw PID hash table entries: 1024 (order: 0, 4096 bytes) Dentry cache hash table entries: 32768 (order: 5, 131072 bytes) Inode-cache hash table entries: 16384 (order: 4, 65536 bytes) Sorting __ex_table... Memory available: 126664k/2108k RAM (1560k kernel code, 548k data) NR_IRQS:64 nr_irqs:64 0 Calibrating delay loop... 49.08 BogoMIPS (lpj=98176) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 512 devtmpfs: initialized bio: create slab <bio-0> at 0 Switching to clocksource timer jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc. msgmni has been set to 247 Block layer SCSI generic (bsg) driver version 0.4 loaded (major 254) io scheduler noop registered io scheduler deadline registered io scheduler cfq registered (default) ttyJ0 at MMIO 0x1001840 (irq = 2) is a Altera JTAG UART console [ttyJ0] enabled, bootconsole disabled console [ttyJ0] enabled, bootconsole disabled loop: module loaded 0.flash: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000089 Chip ID 0x008961 NOR chip too large to fit in mapping. Attempting to cope... Intel/Sharp Extended Query Table at 0x010A Intel/Sharp Extended Query Table at 0x010A Intel/Sharp Extended Query Table at 0x010A Intel/Sharp Extended Query Table at 0x010A Intel/Sharp Extended Query Table at 0x010A Using buffer write method Using auto-unlock on power-up/resume cfi_cmdset_0001: Erase suspend on write enabled erase region 0: offset=0x0,size=0x8000,blocks=4 erase region 1: offset=0x20000,size=0x20000,blocks=511 Reducing visibility of 65536KiB chip to 16384KiB 1 ofpart partitions found on MTD device 0.flash Creating 1 MTD partitions on "0.flash": 0x000000460000-0x000000560000 : "JFFS2 Filesystem" mousedev: PS/2 mouse device common for all mice VFS: Mounted root (jffs2 filesystem) on device 31:0. devtmpfs: mounted Freeing unused kernel memory: 72K (c8187000 - c8199000) /bin/sh: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00  Has anyone run into this type of error before on a Nios II-based system? Any help would be appreciated.  - Brad  

0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
1,718 Views

Hi, 

 

 

--- Quote Start ---  

 

VFS: Mounted root (jffs2 filesystem) on device 31:0. 

devtmpfs: mounted 

Freeing unused kernel memory: 72K (c8187000 - c8199000) 

/bin/sh: error while loading shared libraries: libc.so.6: cannot open shared object file: No such file or directory 

Kernel panic - not syncing: Attempted to kill init! exitcode=0x00007f00 

 

 

--- Quote End ---  

 

 

Where did you install 'lib.so.6' in your root file system? 

 

Kazu
0 Kudos
Altera_Forum
Honored Contributor II
1,718 Views

Hi Kazu, 

 

I have since resolved the problem since my original post. It turns out that I didn't allocate enough space in the JFFS2 partition to for all of the file system. Once I increased the size of the partition, everything worked as expected.  

 

I assume one possible reason that libc.so.6 couldn't be found was that particular file/directory didn't make into the file system when the smaller partition was in place. 

 

However, I appreciate your reply. 

 

- Brad
0 Kudos
Reply