[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [microblaze-uclinux] Disable login



Well, I have disabled agetty and now I have not shell, but that is not a problem. Then I have added $(ROMFSINST) -a "myapp::/bin/myapp" /etc/inittab and I get the following lines:

init: Missing PROCESS field in inittab

I have modified the lines as:
$(ROMFSINST) -a "myapp:unknown:/bin/myapp" /etc/inittab

but I get an error like "respawing too fast".

Have I done anything wrong?

Thanks again.

----- Original Message ----- From: "John Williams" <jwilliams@xxxxxxxxxxxxxx>
To: <microblaze-uclinux@xxxxxxxxxxxxxx>
Sent: Monday, April 16, 2007 4:36 AM
Subject: Re: [microblaze-uclinux] Disable login


Hi Pablo,

Pablo Antúnez Gómez wrote:
Hi, I have not RS232 in my custom board, so I don't know how can I login in my uclinux (petalinux). Could I disable login so uClinux could init automatically and could run my app (which I suppose I have to include in init.d/rc or initab) without login.

That's exactly what you can do.  There are some things to keep in mind
if you launch your app from inittab (e.g. init will execute it again
each time it exits), but people are doing it successfully.

You can add a line to the Makefile of your user app, under the romfs:
target, something like this:

romfs:
       $(ROMFSINST) /bin/myapp
       $(ROMFSINST) -a "myapp::/bin/myapp" /etc/inittab

This will add the inittab line automatically during the "make romfs" phase.

Also disable building agetty (in menuconfig -> vendor/user settings ->
Core Applications).

Regards,

John

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/

___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/