Jump to content

Log to root account


Go to solution Solved by zador.blood.stained,

Recommended Posts

Posted

I'm using Mainline 4.9.5 for cubieboard2 (Armbian_5.24_Cubieboard2_Debian_jessie_next_4.9.5.7z).

I boot without LAN or WIFI dongle using TTL port to get console interface.

When I try to log how root ( root / 1234 ) the log system throw me always in error:

 

cubieboard2 login: root

Login incorrect
cubieboard2 login:
 

 

When I confirm root username the system don't ask me to insert the default password (1234) but after

a while send me a 'Login incorrect'.

 

LOG from sudo screen /dev/ttyUSB0 115200:

 

U-Boot SPL 2017.01-armbian (Jan 20 2017 - 22:22:43)
DRAM: 1024 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
Trying to boot from MMC1

U-Boot 2017.01-armbian (Jan 20 2017 - 22:22:43 +0100) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
Model: Cubietech Cubieboard2
I2C:   ready
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
SCSI:  SATA link 0 timeout.
AHCI 0001.0100 32 slots 1 ports 3 Gbps 0x1 impl SATA mode
flags: ncq stag pm led clo only pmp pio slum part ccc apst
Net:   eth0: ethernet@01c50000
Hit any key to stop autoboot:  0
6944 bytes read in 155 ms (43 KiB/s)
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Found U-Boot script /boot/boot.scr
2352 bytes read in 189 ms (11.7 KiB/s)
## Executing script at 43100000
U-boot loaded from SD
Boot script loaded from mmc
114 bytes read in 167 ms (0 Bytes/s)
4057093 bytes read in 497 ms (7.8 MiB/s)
6218152 bytes read in 632 ms (9.4 MiB/s)
0 bytes read in 138 ms (0 Bytes/s)
55793 bytes read in 702 ms (77.1 KiB/s)
## Loading init Ramdisk from Legacy Image at 43300000 ...
   Image Name:   uInitrd
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    4057029 Bytes = 3.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 43000000
   Booting using the fdt blob at 0x43000000
   Loading Ramdisk to 49c21000, end 49fff7c5 ... OK
   Loading Device Tree to 49c10000, end 49c209f0 ... OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Loading, please wait...
Begin: Loading essential drivers ... done.
Begin: Running /scripts/init-premount ... done.
Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done.
Begin: Running /scripts/local-premount ... Scanning for Btrfs filesystems
done.
Begin: Will now check root file system ... fsck from util-linux 2.25.2
[/sbin/fsck.ext4 (1) -- /dev/mmcblk0p1] fsck.ext4 -a -C0 /dev/mmcblk0p1
/dev/mmcblk0p1: clean, 56960/934720 files, 316459/3760936 blocks
done.
done.
Begin: Running /scripts/local-bottom ... done.
Begin: Running /scripts/init-bottom ... done.

Welcome to Debian GNU/Linux 8 (jessie)!

         Expecting device dev-ttyS0.device...
[  OK  ] Reached target Remote File Systems (Pre).
[  OK  ] Reached target Paths.
[  OK  ] Reached target Encrypted Volumes.
[  OK  ] Set up automount Arbitrary Executable File Formats F...utomount Point.
[  OK  ] Reached target Swap.
[  OK  ] Created slice Root Slice.
[  OK  ] Listening on Delayed Shutdown Socket.
[  OK  ] Listening on /dev/initctl Compatibility Named Pipe.
[  OK  ] Listening on Journal Socket (/dev/log).
[  OK  ] Created slice User and Session Slice.
[  OK  ] Listening on udev Control Socket.
[  OK  ] Listening on udev Kernel Socket.
[  OK  ] Listening on Journal Socket.
[  OK  ] Created slice System Slice.
         Starting Increase datagram queue length...
         Starting Restore / save the current clock...
         Starting udev Coldplug all Devices...
         Mounting POSIX Message Queue File System...
         Mounting Debug File System...
         Starting Create list of required static device nodes...rrent kernel...
[  OK  ] Created slice system-serial\x2dgetty.slice.
[  OK  ] Created slice system-getty.slice.
         Starting Load Kernel Modules...
         Starting LSB: Set keymap...
[  OK  ] Reached target Slices.
[  OK  ] Mounted Debug File System.
[  OK  ] Mounted POSIX Message Queue File System.
[  OK  ] Started Increase datagram queue length.
[  OK  ] Started Restore / save the current clock.
[  OK  ] Started Create list of required static device nodes ...current kernel.
[  OK  ] Started Load Kernel Modules.
[  OK  ] Started LSB: Set keymap.
[  OK  ] Started udev Coldplug all Devices.
         Mounting FUSE Control File System...
         Mounting Configuration File System...
         Starting Apply Kernel Variables...
         Starting Create Static Device Nodes in /dev...
[  OK  ] Listening on Syslog Socket.
         Starting Journal Service...
[  OK  ] Started Journal Service.
[  OK  ] Mounted Configuration File System.
[  OK  ] Mounted FUSE Control File System.
[FAILED] Failed to start Apply Kernel Variables.
See 'systemctl status systemd-sysctl.service' for details.
[  OK  ] Started Create Static Device Nodes in /dev.
         Starting udev Kernel Device Manager...
[  OK  ] Started udev Kernel Device Manager.
         Starting Copy rules generated while the root was ro...
         Starting LSB: Set preliminary keymap...
         Starting LSB: Tune IDE hard disks...
[  OK  ] Started Copy rules generated while the root was ro.
[  OK  ] Started LSB: Tune IDE hard disks.
[  OK  ] Found device /dev/ttyS0.
[  OK  ] Created slice system-ifup.slice.
[  OK  ] Started LSB: Set preliminary keymap.
         Starting Remount Root and Kernel File Systems...
[  OK  ] Started Remount Root and Kernel File Systems.
         Starting Load/Save Random Seed...
[  OK  ] Reached target Local File Systems (Pre).
         Mounting /tmp...
[  OK  ] Started Load/Save Random Seed.
[  OK  ] Mounted /tmp.
[  OK  ] Reached target Sound Card.
[  OK  ] Reached target Local File Systems.
         Starting Armbian enhanced Log2Ram...
         Starting Create Volatile Files and Directories...
[  OK  ] Reached target Remote File Systems.
         Starting Trigger Flushing of Journal to Persistent Storage...
         Starting LSB: Prepare console...
         Starting LSB: Raise network interfaces....
[  OK  ] Started Armbian enhanced Log2Ram.
[  OK  ] Started Create Volatile Files and Directories.
[  OK  ] Started Trigger Flushing of Journal to Persistent Storage.
[  OK  ] Started LSB: Prepare console.
         Starting LSB: Set console font and keymap...
         Starting Update UTMP about System Boot/Shutdown...
[  OK  ] Started Update UTMP about System Boot/Shutdown.
[  OK  ] Started LSB: Raise network interfaces..
         Starting ifup for eth0...
[  OK  ] Started ifup for eth0.
[  OK  ] Reached target Network.
[  OK  ] Reached target Network is Online.
[  OK  ] Started LSB: Set console font and keymap.
[  OK  ] Reached target System Initialization.
[  OK  ] Listening on D-Bus System Message Bus Socket.
[  OK  ] Reached target Sockets.
[  OK  ] Reached target Timers.
         Starting Restore Sound Card State...
[  OK  ] Reached target Basic System.
         Starting Entropy daemon using the HAVEGE algorithm...
[  OK  ] Started Entropy daemon using the HAVEGE algorithm.
         Starting OpenBSD Secure Shell server...
[  OK  ] Started OpenBSD Secure Shell server.
         Starting Regular background program processing daemon...
[  OK  ] Started Regular background program processing daemon.
         Starting System Logging Service...
         Starting Network Manager...
         Starting /etc/rc.local Compatibility...
         Starting D-Bus System Message Bus...
[  OK  ] Started D-Bus System Message Bus.
         Starting Login Service...
         Starting Permit User Sessions...
         Starting LSB: Load kernel modules needed to enable cpufreq scaling...
         Starting LSB: Armbian gathering hardware information...
         Starting LSB: Advanced IEEE 802.11 management daemon...
         Starting LSB: Starts LIRC daemon....
         Starting LSB: Start NTP daemon...
         Starting LSB: disk temperature monitoring daemon...
         Starting LSB: Start/stop sysstat's sadc...
[  OK  ] Started Restore Sound Card State.
[FAILED] Failed to start System Logging Service.
See 'systemctl status rsyslog.service' for details.
[FAILED] Failed to start /etc/rc.local Compatibility.
See 'systemctl status rc-local.service' for details.
[  OK  ] Started Permit User Sessions.
[  OK  ] Started LSB: Advanced IEEE 802.11 management daemon.
[  OK  ] Started LSB: Start NTP daemon.
[  OK  ] Started LSB: disk temperature monitoring daemon.
[  OK  ] Started LSB: Start/stop sysstat's sadc.
[  OK  ] Started LSB: Starts LIRC daemon..
[  OK  ] Started LSB: Load kernel modules needed to enable cpufreq scaling.
[  OK  ] Started Login Service.
         Starting Authenticate and Authorize Users to Run Privileged Tasks...
         Starting LSB: set CPUFreq kernel parameters...
         Stopping System Logging Service...
[  OK  ] Stopped System Logging Service.
         Starting System Logging Service...
         Starting Serial Getty on ttyS0...
[  OK  ] Started Serial Getty on ttyS0.
         Starting Getty on tty1...
[  OK  ] Started Getty on tty1.
[  OK  ] Reached target Login Prompts.
[  OK  ] Started LSB: set CPUFreq kernel parameters.
[FAILED] Failed to start System Logging Service.
See 'systemctl status rsyslog.service' for details.
[  OK  ] Started Authenticate and Authorize Users to Run Privileged Tasks.
         Stopping System Logging Service...
[  OK  ] Stopped System Logging Service.
         Starting System Logging Service...
         Starting LSB: Set sysfs variables from /etc/sysfs.conf...
[  OK  ] Started Network Manager.
[FAILED] Failed to start System Logging Service.
See 'systemctl status rsyslog.service' for details.
[  OK  ] Started LSB: Set sysfs variables from /etc/sysfs.conf.
         Stopping System Logging Service...
[  OK  ] Stopped System Logging Service.
         Starting System Logging Service...
[FAILED] Failed to start System Logging Service.
See 'systemctl status rsyslog.service' for details.
[  OK  ] Started LSB: Armbian gathering hardware information.
[  OK  ] Reached target Multi-User System.
[  OK  ] Reached target Graphical Interface.
         Starting Update UTMP about System Runlevel Changes...
[  OK  ] Started Update UTMP about System Runlevel Changes.
         Stopping System Logging Service...
[  OK  ] Stopped System Logging Service.
         Starting System Logging Service...
[FAILED] Failed to start System Logging Service.
See 'systemctl status rsyslog.service' for details.

Debian GNU/Linux 8 cubieboard2 ttyS0

cubieboard2 login: root

Login incorrect
cubieboard2 login:
 

  • Solution
Posted

Your serial port name should be present in /etc/securetty in order to allow root login, but ttyS0 should already be there. Based on other errors in the log that should not normally happen I can assume that either this image is broken in general or you have some issues on your end like a bad SD card.

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines