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++

Error booting linux-kernel.

Altera_Forum
Honored Contributor II
1,214 Views

I have built Linux from the sources available at sopc.et.ntust.edu.tw, including the toolchain. The kernel starts to boot, but gives me this error.  

 

does anyone know where to start debugging this? 

 

I should probably add that I've tested the setup with the 'memory-test' application in NIOS IDE, and works without any problems. 

 

Also, I am not getting any initramfs-files either when compiling the kernel. i get only zimage, could someone hint me on why? 

 

Please let me know if I can improve the question, add some info that is needed etc. Attached is my dts. 

 

nios2-download -g /path/to/zImage && nios2-terminal Using cable "USB-Blaster ", device 1, instance 0x00 Pausing target processor: OK Initializing CPU cache (if present) OK Downloaded 1491KB in 8.6s (173.3KB/s) Verified OK Starting processor at address 0xC8500000 nios2-terminal: connected to hardware target using JTAG UART on cable nios2-terminal: "USB-Blaster ", device 1, instance 0 nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate) Linux version 3.7.0+ () (gcc version 3.4.6)# 16 Fri Feb 1 17:40:38 CET 2013 bootconsole enabled early_console initialized at 0xf0003020 On node 0 totalpages: 32768 free_area_init_node: node 0, pgdat c82b2c5c, node_mem_map c82c87a0 DMA zone: 256 pages used for memmap DMA zone: 0 pages reserved DMA zone: 32512 pages, LIFO batch:7 pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 pcpu-alloc: 0 Built 1 zonelists in Zone order, mobility grouping off. Total pages: 32512 Kernel command line: PID hash table entries: 512 (order: -1, 2048 bytes) Dentry cache hash table entries: 16384 (order: 4, 65536 bytes) Inode-cache hash table entries: 8192 (order: 3, 32768 bytes) Memory available: 127064k/2840k RAM (2019k kernel code, 820k data) NR_IRQS:64 Calibrating delay loop... 24.32 BogoMIPS (lpj=121600) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 512 NET: Registered protocol family 16 bio: create slab <bio-0> at 0 Unable to handle kernel NULL pointer dereference at virtual address 00000000 ea = c815e7d4, ra = c8184894, cause = 14 Kernel panic - not syncing: Oops  

 

Edit: It boots, what I did was remove network support. However I still get no initramfs, I've checked with nios2-linux-readelf and zImage doesn't contain any section with initramfs. Subsequently I get this error. 

 

Kernel panic - not syncing: No init found. Try passing init= option to kernel.  

 

Any hints on why?
0 Kudos
0 Replies
Reply