WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Cannot start diskless - "No working init found"  (Read 3179 times)

Offline as

  • Newbie
  • *
  • Posts: 30
Cannot start diskless - "No working init found"
« on: October 12, 2015, 08:02:49 AM »
Hello

I am having a problem getting TinyCore to start up. The problem is that I do not know how to tell the kernel where to find init when running purely from RAM.

I am using grub to load ipxe and then ipxe to load kernel from network.

I am trying to get my system to run purely from RAM, not using file persistence.

This is my grub2.cfg:

serial --speed=115200 --unit=0 --word=8 --parity=no --stop=1
terminal_input --append  serial
terminal_output --append serial
set timeout=1
play 480 440 1

menuentry 'ipxe' {
    insmod part_msdos
    insmod ext2
    set root='hd0,msdos1'
    linux16 /boot/ipxe/ipxe.lkrn
    initrd16 /boot/ipxe/custompxescript.pxe
    echo   'Loading ipxe...'
}


This is my ipxe configuration file.

#!ipxe
echo Booting start.....
:retry_dhcp
dhcp || goto retry_dhcp
ifstat
route
sleep 1
set base-url http://192.168.1.2/
imgfree  # Discard any already-downloaded images
kernel ${base-url}vmlinuz64 tce=/opt/tce modules=ext4 console=ttyS0,115200 root=/dev/xvda1 embed || exit
initrd ${base-url}corepure64.gz http://192.168.1.2/ug_initramfs.gz || exit
boot || exit

Here's the last few lines the startup messages:


rtc_cmos 00:02: setting system clock to 2015-10-12 11:54:45 UTC (1444650885)
tsc: Refined TSC clocksource calibration: 2095.154 MHz
input: ImExPS/2 Generic Explorer Mouse as /devices/platform/i8042/serio1/input/input4
EXT4-fs (xvda1): couldn't mount as ext3 due to feature incompatibilities
EXT4-fs (xvda1): mounting ext2 file system using the ext4 subsystem
EXT4-fs (xvda1): mounted filesystem without journal. Opts: (null)
VFS: Mounted root (ext2 filesystem) readonly on device 202:1.
Freeing unused kernel memory: 928K (ffffffff818aa000 - ffffffff81992000)
Write protecting the kernel read-only data: 8192k
Freeing unused kernel memory: 1224K (ffff8800014ce000 - ffff880001600000)
Freeing unused kernel memory: 720K (ffff88000174c000 - ffff880001800000)
Kernel panic - not syncing: No working init found.  Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
Kernel Offset: 0x0 from 0xffffffff81000000 (relocation range: 0xffffffff80000000-0xffffffff9fffffff)
(venv3.4)root@buildserver:/home/ubuntu/ubuntucore#


how do I tell the kernel where init is when I am wanting to run purely from RAM?

thanks!
 :o

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: Cannot start diskless - "No working init found"
« Reply #1 on: October 12, 2015, 08:14:14 AM »
The corepure64.gz initrd runs entirely from ram - what is ug_initramfs.gz for?

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11050
Re: Cannot start diskless - "No working init found"
« Reply #2 on: October 12, 2015, 03:52:10 PM »
Yep, not finding init means there was an error loading the initrd, or the initrd is faulty.
The only barriers that can stop you are the ones you create yourself.