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

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/