Hi,

I've also had problems with the password. I think that the problem is that when you add debug-tweaks, the core-image.bbclass doesn't zap the root password.

In yocto/poky/meta/classes/core-image.bbclass file,
# Zap the root password if debug-tweaks feature is not enabled
ROOTFS_POSTPROCESS_COMMAND += '${@base_contains("IMAGE_FEATURES", "debug-tweaks", "", "zap_root_password ; ",d)}'

To solve it, I added my own root password. In the image file, i.e. yocto/poky/meta-gumstix-extra/recipes-image/gumstix/gumstix-console-image.bb

add the following at the end:

set_root_passwd() {
sed 's%^root:[^:]*:%root:RYDWHehPODUSE:%' \
        < ${IMAGE_ROOTFS}/etc/shadow \
        > ${IMAGE_ROOTFS}/etc/shadow.new;\
    mv ${IMAGE_ROOTFS}/etc/shadow.new ${IMAGE_ROOTFS}/etc/shadow ;
sed 's%^root:[^:]*:%root:RYDWHehPODUSE:%' \
        < ${IMAGE_ROOTFS}/etc/passwd \
        > ${IMAGE_ROOTFS}/etc/passwd.new;\
    mv ${IMAGE_ROOTFS}/etc/passwd.new ${IMAGE_ROOTFS}/etc/passwd ;
}

ROOTFS_POSTPROCESS_COMMAND =+ "\
    remove_blacklist_files; \
    set_root_passwd; \
"


RYDWHehPODUSE is your password. In this case: gumstix
If you want another password, go to a linux machine, set the password that you want and check the /etc/shadow file to see its encrypted value. Only passwords with less than 8 characters are used.

I would also comment the zap_root_password call from yocto/poky/meta/classes/core-image.bbclass. If you don't do that, the password will be set to empty when you don't add "debug-tools" and it makes it inconsistent.

I think that the latest yocto dora has recently fixed problems with this function removing the password that the user sets with base-passwd.

I have the feeling that the first part of my set_root_passwd() is not necessary (setting the passwd to /etc/shadow). But I left it there because... if it works.... don't touch it! :)

I hope this works for you.

Regards,
Katu



2014-03-05 20:59 GMT+00:00 adam <adam@gumstix.com>:
Hmm what happens when you try to log in as root through the console? Does it prompt for password (it shouldn't)? 

Let me know!

Adam


On Wed, Mar 5, 2014 at 11:51 AM, abmadaan [via Gumstix] <[hidden email]> wrote:
Hi Adam,
                Thanks for your reply. 
/etc/shadow is empty and I am attaching my /etc/passwd file. Is there a default password for tools-sdk image?

Regards,
ABM



On Wednesday, March 5, 2014 12:05 PM, Adam Lee <[hidden email]> wrote:
Hi ABM, through a console session, username 'root' should get you in. 
Can you check /etc/passwd and /etc/shadow file to see if anything is out of ordinary? 

Adam


On Wed, Mar 5, 2014 at 8:45 AM, Abhishek Madaan <[hidden email]> wrote:
Hi,
       I able to compile gumstix duovero yocto image with tools-sdk feature instead of default debug-tweaks. But when i can't login to gumstix anymore. I tried lot of different passwords like root, overo, duovero, gumstix etc. but none of them seems to work. 

I can't find anywhere on gumstix website for the username and password. If someone help me on this matter that would be really appreciated.

Regards,
ABM

------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users





------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
gumstix-users mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gumstix-users

passwd (1K) Download Attachment



If you reply to this email, your message will be added to the discussion below:
http://gumstix.8.x6.nabble.com/Duovero-EXTRA-IMAGE-FEATURES-tools-sdk-password-tp4968867p4968870.html
To start a new topic under Gumstix, email [hidden email]
To unsubscribe from Gumstix, click here.
NAML



View this message in context: Re: Duovero EXTRA_IMAGE_FEATURES tools-sdk password
Sent from the Gumstix mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce.
With Perforce, you get hassle-free workflows. Merge that actually works.
Faster operations. Version large binaries.  Built-in WAN optimization and the
freedom to use Git, Perforce or both. Make the move to Perforce.
http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________
gumstix-users mailing list
gumstix-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gumstix-users