I am not sure exactly how you build your image. I essentially use the
M5272C3 make environment + my changes. After make menuconfig, I just type
'make' and it will build linux.bin and romfs and, like you say, concatenate
them into one chunk. (I do the mkimage step too for uboot, but .bin is good
for tftp directly to memory).

So in your vendors/<vendor>/<board> directory you can add a line in your
make file in the romfs target.
In vendors/<vendor>/<board>/Makefile, search for the following line

$(ROMFSINST) /etc/rc

It copies vendors/<vendor>/<board>/rc to romfs/etc/rc. So do this
- copy the passwd file to vendors/<vendor>/<board>
- add $(ROMFSINST) /etc/passwd to the Makefile (after the /etc/rc line)
- Make everything
- check that romfs/etc/passwd exists

Harry

On Fri, Feb 15, 2008 at 7:36 AM, <[EMAIL PROTECTED]> wrote:

> Citando Harry Gunnarsson <[EMAIL PROTECTED]>:
>
> > I ran into the exactly same thing. And if I remember correctly, I think
> the
> > ftpd port per default expects the presence of a /etc/passwd file in your
> > filesystem. To take that behavior out would require some hacking into
> the
> > ftpd sources.
> >
> > I ended up putting a pre-generated passwd file into my romfs. Since it
> is a
> > textfile containing the ciphertext of the password, I ended up
> configuring
> > uClinux with 'passwd' command, generate a password and put this into
> > /etc/passwd romfs. Then ftp works fine using the username/password you
> > picked.
> >
> > Harry
>
> You are right, I have solved the problem sending an /etc/passwd on
> ucLinux, only with a small modification.
>
> Now the file /etc/passwd don't contain the cypher of the password, only an
> X, I went to take it from the file /etc/shadow, make upload to ucLinux and
> everything is ok.
>
> One more thing, is there a way of put the file (/etc/passwd) on romfs ? I
> am generating the Linux.bin by hand, making an cat of linux.bin and
> romfs.img (generated by me), this is slow and boring :/
>
> Thanks for the help ;)
>
>
> --
>
_______________________________________________
uClinux-dev mailing list
[email protected]
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by [email protected]
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev

Reply via email to