ralph stickley wrote:
> 
> I was wondering if anyone has sucessfully "embedded" the 2.2.12 kernel
> from the RedHat 6.1 distro...
> 
> I am looking for a list of files that will allow the system to boot
> (from M-Systems DOC) and run Fvwm2 (or similiar).   Also, a minimum
> kernel .config file would be useful :-)
> 

I have.  I started out with yard, and took a look at lxa (go to
freshmeat for it), and ended up using yard's rootfs creation methods,
and built my own backend to move the kernel and root onto flash.

> Currently, I can boot to the M-Systems chip as single user .  With a
> normal boot, the login prompt shows but does not allow anyone, even
> root, to login (I've copied the passwd, shadow, tons of library files
> and pam.d stuff, but still no luck).

:)  Been there, done that!  I hope this helps:

Make your rootfs, then chroot into it.  Write a short little program
that uses getpwent(3), which I'll call pw_test.c:

Something like (not compiled):
        #include <pwd.h>
        #include <sys/types.h> 
        #include <stdio.h>        
                                                
        
        main()
        {
                struct passwd * entry;
                while (entry = getpwent())
                        printf("%s\n", entry->pw_name);
        }

I'll bet it doesn't work correctly on your rootfs, and does in your
normal rh install.

If not, then:

chroot rootfs
strace pw_test

This will dump the syscalls, and you can see which libraries are
missing.

As it happens, I ended up getting the login_utils RPM and rebuilding
login without shadow and pam, to avoid the libraries.

Hope this helps!

-Richard

-- 
[EMAIL PROTECTED]

--
To unsubscribe from this list, send a message to [EMAIL PROTECTED]
with the command "unsubscribe linux-embedded" in the message body.
For more information, see <http://waste.org/mail/linux-embedded>.

Reply via email to