1/1
Kernel panic - not syncing
by dinsh on Jul 1, 2011 |
dinsh
Posts: 39 Joined: Nov 20, 2008 Last seen: Aug 2, 2014 |
||
I download the linux kernel from http://git.openrisc.net/cgit.cgi/jonas/linux.
But when i boot the linux, it failed..The error is : Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance. Follow is the boot information: Compiled-in FDT at 0xc026cc80 Linux version 3.0.0-rc1-07746-ge4b8eb6 (dinsh@OpenRisc-Ubuntu) (gcc version 4.5.1-or32-1.0rc4 (OpenRISC 32-bit toolchain for or32-linux (built 20110630)) ) #1 Thu Jun 30 15:43:17 CST 2011 CPU: OpenRISC-12 (revision 8) @66 MHz -- dcache: 32768 bytes total, 32 bytes/line, 1 way(s) -- icache: 32768 bytes total, 32 bytes/line, 1 way(s) -- dmmu: 64 entries, 1 way(s) -- immu: 64 entries, 1 way(s) -- additional features: -- debug unit -- PIC -- timer setup_memory: Memory: 0x0-0x2000000 Reserved - 0x01ffd9e0-0x00002620 Setting up paging and PTEs. map_ram: Memory: 0x0-0x2000000 On node 0 totalpages: 4096 free_area_init_node: node 0, pgdat c0251f14, node_mem_map c0284000 Normal zone: 16 pages used for memmap Normal zone: 0 pages reserved Normal zone: 4080 pages, LIFO batch:0 dtlb_miss_handler c0002000 itlb_miss_handler c0002108 OpenRISC Linux -- http://openrisc.net pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 pcpu-alloc: [0] 0 Built 1 zonelists in Zone order, mobility grouping off. Total pages: 4080 Kernel command line: console=uart,mmio,0x90000000,115200 lpj=200000 debug Early serial console at MMIO 0x90000000 (options '115200') bootconsole [uart0] enabled PID hash table entries: 128 (order: -4, 512 bytes) Dentry cache hash table entries: 4096 (order: 1, 16384 bytes) Inode-cache hash table entries: 2048 (order: 0, 8192 bytes) Memory: 29960k/32768k available (2076k kernel code, 2808k reserved, 302k data, 104k init, 0k highmem) mem_init_done ........................................... NR_IRQS:32 Calibrating delay loop (skipped) preset value.. 40.00 BogoMIPS (lpj=200000) pid_max: default: 32768 minimum: 301 Mount-cache hash table entries: 1024 devtmpfs: initialized NET: Registered protocol family 16 Switching to clocksource openrisc_timer Switched to NOHz mode on CPU #0 NET: Registered protocol family 2 IP route cache hash table entries: 2048 (order: 0, 8192 bytes) TCP established hash table entries: 1024 (order: 0, 8192 bytes) TCP bind hash table entries: 1024 (order: -1, 4096 bytes) TCP: Hash tables configured (established 1024 bind 1024) TCP reno registered UDP hash table entries: 512 (order: 0, 8192 bytes) UDP-Lite hash table entries: 512 (order: 0, 8192 bytes) NET: Registered protocol family 1 RPC: Registered named UNIX socket transport module. RPC: Registered udp transport module. RPC: Registered tcp transport module. RPC: Registered tcp NFSv4.1 backchannel transport module. Unpacking initramfs Serial: 8250/16550 driver, 4 ports, IRQ sharing disabled 90000000.serial: ttyS0 at MMIO 0x90000000 (irq = 2) is a 16550A console [ttyS0] enabled, bootconsole disabled console [ttyS0] enabled, bootconsole disabled ethoc-mdio: probed NET: Registered protocol family 17 Kernel not built with RTC support, ALARM timers will not wake from suspend devtmpfs: mounted Freeing unused kernel memory: 104k freed Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance. |
RE: Kernel panic - not syncing
by nassim09 on Jul 1, 2011 |
nassim09
Posts: 32 Joined: Nov 13, 2008 Last seen: May 7, 2020 |
||
hi
i just read you email, and i think the problem is not in linux but in your project ise. i see that you have fixed ngc file for ise11.1 (it's tha same problem like me in ise 10.3) i think if you just do make arch=openrisc defconfig and then change to ml501.dts and finally make you fix the problem, because i have see this problem before i don't have many space to add thing to kernel but after this command i have fixed all. Memory: 29960k/32768k available (2076k kernel code, 2808k reserved, 302k data, 104k init you can see in photot that you have more than 104k maybe try this also in ml501.dts (it's not big thing but maybe) memory { device_type = "memory"; reg = ; }; you are so close to booting in ML501, don't panic :) finally if you have try i just add my branch for ML501 master if you want to try git clone git://openrisc.net/jonas/bakiri |
RE: Kernel panic - not syncing
by dinsh on Jul 4, 2011 |
dinsh
Posts: 39 Joined: Nov 20, 2008 Last seen: Aug 2, 2014 |
||
Thx a lot!
i just try your way, modify the file ml501.dts to memory { device_type = "memory"; reg = ; }; and type the command make clean -> make arch=openrisc defconfig -> make meunconfig -> make but the problem is still there. When i use the or32-sim with the command or32-elf-sim -f arch/openrisc/or1ksim.cfg vmlinux, there is the same situation: Freeing unused kernel memory: 104k freed Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance. And I cannt get resource from the link (git clone git://openrisc.net/jonas/bakiri) you gave me. that give me a error information $ git clone git://openrisc.net/jonas/bakiri Initialized empty Git repository in /home/dinsh/openrisc/bakiri/bakiri/.git/ fatal: The remote end hung up unexpectedly acctually, I dont know why.. Because i remember that i can boot the linux with or32-linux-sim early but now i cannt. |
RE: Kernel panic - not syncing
by nassim09 on Jul 4, 2011 |
nassim09
Posts: 32 Joined: Nov 13, 2008 Last seen: May 7, 2020 |
||
Thx a lot!
i just try your way, modify the file ml501.dts to memory { device_type = "memory"; reg = ; }; and type the command make clean -> make arch=openrisc defconfig -> make meunconfig -> make but the problem is still there. When i use the or32-sim with the command or32-elf-sim -f arch/openrisc/or1ksim.cfg vmlinux, there is the same situation: Freeing unused kernel memory: 104k freed Kernel panic - not syncing: No init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance. And I cannt get resource from the link (git clone git://openrisc.net/jonas/bakiri) you gave me. that give me a error information $ git clone git://openrisc.net/jonas/bakiri Initialized empty Git repository in /home/dinsh/openrisc/bakiri/bakiri/.git/ fatal: The remote end hung up unexpectedly acctually, I dont know why.. Because i remember that i can boot the linux with or32-linux-sim early but now i cannt. sorry you must add linux in the end, use git clone git://openrisc.net/jonas/bakiri/linux |
RE: Kernel panic - not syncing
by dinsh on Jul 4, 2011 |
dinsh
Posts: 39 Joined: Nov 20, 2008 Last seen: Aug 2, 2014 |
||
Hi nassim09!
Thx a lot! That's a good news! I see you update the linux and i git the clone of linux-3.0 repeat. Then I boot it successfully!! What a big day! I sincerely appreciate your help! Next step, i want to research the Linux kernel, especially the memory system. Actually, our team is committed to making a new memory just like FLASH, which is called Phase Change Memory (PCM). We want to use your ORPSOC platform as our evaluation platform. so our team is focused on OpenRisc1200 even OpenRisc2000 for a long time. And we are also willing to contribute to OpenRisc. Thx a lot! Really! |
RE: Kernel panic - not syncing
by olof on Jul 4, 2011 |
olof
Posts: 218 Joined: Feb 10, 2010 Last seen: Dec 17, 2018 |
||
It's good to hear that you got it working. I actually had the same problem a few days ago. We are always interested in people who wants to contribute to the OpenRISC platform. If you are using IRC, you can meet most of the active developers on #opencores on the freenode network
PSM is a very interesting topic. I hope you get good results from your research //Olof |
RE: Kernel panic - not syncing
by nassim09 on Jul 4, 2011 |
nassim09
Posts: 32 Joined: Nov 13, 2008 Last seen: May 7, 2020 |
||
this is great disnsh, do you have use my git branch of linux? and it will be nice to see you in IRC
|
RE: Kernel panic - not syncing
by Bakiri on Jul 4, 2011 |
Bakiri
Posts: 11 Joined: May 2, 2010 Last seen: Dec 31, 2013 |
||
ah now i know want the problem.
when you try to do "make arch=openrisc defconfig" then some things is will be missing next. so to fix that you must just add this thing to "menuconfig" General setup => add "(-or32)" in local version => add in initramfs source files this "arch/openrisc/support/initramfs arch/openrisc/support/initramfs.devnodes that will fix all the problems. |
RE: Kernel panic - not syncing
by dinsh on Jul 5, 2011 |
dinsh
Posts: 39 Joined: Nov 20, 2008 Last seen: Aug 2, 2014 |
||
Hi nassim09
I try your way, add "(-or32)" in local version and add in initramfs source files this "arch/openrisc/support/initramfs arch/openrisc/support/initramfs.devnodes. yes! that can be OK. but i use the new version of linux-3.0. and i still cannt download anything from your git branch. Thx a lot! |
1/1