LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Embedded & Single-board computer (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/)
-   -   raspberry PI boot problem: faile to start login service (https://www.linuxquestions.org/questions/linux-embedded-and-single-board-computer-78/raspberry-pi-boot-problem-faile-to-start-login-service-4175491590/)

golden_boy615 01-17-2014 05:48 AM

raspberry PI boot problem: faile to start login service
 
I am working with buildroot 2013.11 and I made an image for my PI but its startup fails with this message:
Quote:

Fails to start login service [FAILED]
see 'systemctl status systemd-logind.service' for details.
Dependency failed. Aborted start of Serial Getty on tty1 [ABORT]
what is wrong ? what should I do?

business_kid 01-18-2014 01:21 PM

Buildroot I would leave to you to figure out.

In your honour, I booted my Raspberry Pi with a debian image to get my facts straight. The word ĺogin'does not appear in the /etc/ directory of that. It does have a login, but nothing asks for that. X starts with no login.

To fix yours, try booting with
init=/bin/bash
as a kernel option on the command line. You will be root. I presume you know your partitions, and you can mount them. My / partition is no. 2, so the command to mount that would be

Code:

/sbin/mount -o remount,rw  /dev/mmcblk0p2    /
mount the / first, then change the end number to mount the others. Use 'swapon <partition> as above for the swap space.
set a PATH

export PATH=/usr/bin:/usr/sbin;

and hunt around. systemctl can surely shut off logins, or maybe a (HACK Warning!) symlink from /sbin/login to /bin/true would fool it.

golden_boy615 01-29-2014 01:06 AM

Oh you do not believe it I made my image from scratch again (I mean I did make clean first and then make )and everything goes fine now.


All times are GMT -5. The time now is 02:12 PM.