LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 11-14-2019, 06:43 PM   #1
redacted
LQ Newbie
 
Registered: Nov 2019
Posts: 4

Rep: Reputation: Disabled
Failed to execute /init (error -7)


kernel version 4.18.20

I am porting a 4.15 custom kernel to 4.18. It compiles cleanly. It fails early in the boot process with:

Failed to execute /init (error -7)
Starting init: /bin/sh exists but couldn't execute it (error -7)


A kernel built from the same source code without my modifications boots and runs.

According to "errno" error -7 is "E2BIG 7 Argument list too long"

Any ideas what might cause this failure mode?
 
Old 11-15-2019, 07:15 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Are we 32/64 bit? X86_64 or something else? OS? Anything else odd?

One thing to check is /lib/of.so, and /lib/ld-lsb.so. They should be symlonks pointing at /lib/ld-<version>.so. On slackware and other systems, it's not /lib, but /lib64.

It it's using ld-lsb.so and that symlonk it throws a soutrious error.
 
Old 11-15-2019, 11:51 AM   #3
redacted
LQ Newbie
 
Registered: Nov 2019
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by business_kid View Post
Are we 32/64 bit? X86_64 or something else? OS? Anything else odd?
x86_64. Ubuntu 18.04.2 LTS.

The unmodified 4.18.20 kernel boots and runs on the same system, so I don't think /lib/of.so is the problem.
 
Old 11-16-2019, 02:07 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,289

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Just check that you have /lib/ld.so & /lib/ld-lsb.so as symlinks.

The boot sequence is: The kernel boots, United is loaded, it mounts / and runs init. Check the logs and see what's going on.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Failed to Execute Init. No Init found. ihjaz Linux - Server 4 11-20-2012 03:02 AM
INIT : cannot execute /etc/init.d/rc blink182 Debian 3 05-08-2011 03:56 AM
What is the exact diff between init 1,init S and init s challavijay Linux - Newbie 1 08-05-2010 06:51 AM
exec of init (/sbin/init) failed!!! 2 raklo Linux - Kernel 1 05-28-2007 09:02 AM
exec of init (/sbin/init) failed!! raklo Linux - Kernel 2 01-03-2007 11:57 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 12:57 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration