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

Re: [microblaze-uclinux] telnetd login fails



Hi Falk, Thomas

Brettschneider Falk wrote:

it seems /etc/group does not exist in your romfs. The manual creation of it helps.
Does anybody know how to tell the romfs build mechanism that it should generate a file /etc/group in case telnetd is chosen in 'make menuconfig'?

This is done automatically, but only if the 'flatfsd' daemon is built. You can see it in petalinux-dist/lib/Makefile, under the romfs: target.

It creates symlinks from /etc/* (group, passwd etc) to /etc/config/*

This permits these config files to reside on flash-backed (and flatfsd-managed) storage.

The dependence on flatfsd is not ideal, the build more or less requires it. A fallback to create hard /etc/group and friends would be easy, you could add it in vendors/MyVendor/MyPlatform/Makefile, under the romfs:: target. Here you can add any custom platform settings you like, so something like

romfs::
[TAB]$(ROMFSINST} -a "root:x:0" /etc/group

would add the text "root:x:0" to the /etc/group file in the romfs.

Testing for the absence of flatfsd, and doing this automagically in the common romfs build target vendors/PetaLogic/common/common.mak would not be difficult - patches welcome! :)

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/