Bad inittab entry

Hey everyone

I am making a very small system that fits on a 128MB CF card, and think I have it in a almost bootable state. This morning was the first time I tried booting it on the SBC that I am using, and it starts loading up, but I get the following message:

Bad inittab entry: id:3:initdefault: Bad inittab entry: rc::bootwait:/sbin/rc boot

I am using busybox if that might have anything to do with it. Also, I couldnt figure out how to cross compile it, since I dont want to use uClibc. When I select cross compilation in the config, it defaults to uClibc. I do not know how to compile it for i386, so it is compiled for 686. So, i guess the problem could be that they are not compiled for the right architecture, but i know that some of the other busybox commands work. What does someone else think?

I dont know what this means and can't figure it out on google. If anyone can at least tell me what this means and point me in the right direction, I would be very grateful

Reply to
Luke Albers
Loading thread data ...

I think this has something to do with the problem as well:

when i do /sbin/rc sysinit in the chroot on my own system:

localhost / # /sbin/rc sysinit * ERROR: runlevel sysinit does not exist; exiting... localhost / #

/sbin/rc boot and default both do something, but whatever it is it doesnt work in the chroot and it messes up the Xterm.

BTW this system was based off of a Gentoo stage 1 tarball

Reply to
Luke Albers

I think that since I am using busybox init I need to have a different inittab since it works differently. However, I cant figure out how to make the inittab that works with busybox init and gentoo's scripts.

Does this sound right? Does anyone know how to do this?

Reply to
Luke Albers

It might very well be. The init command contained in busybox understands just a tiny subset of what is possible with the ordinary version. If you look into the comments of my inittab-file you see, that "initdefault" and "bootwait" are not in the list of supported actions. Where did you get your /etc/inittab file from?

Can you just post your /etc/inittab ?

Why not? uclibc allows for pretty small systems. In my case I have only

4Mb of memory and the system fits into just about 2MB. This already includes a webserver and the ability to communicate via tcp/ip.

In any case you need a properly configured gcc-toolchain with your desired target compiled in.

-----

PS: The /etc/inittab o my SBC looks like this:

--------------------------8

Reply to
kai-martin knaak

Have you tried booting the CF card on a PC? CF to IDE adaptors are nearly free.

In general, busybox stuff is less tolerant of errors/whitespace than others. Have you read the busybox init manpages again?

Reply to
Ian Stirling

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.