Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Boot form SD and in emergency mode #205

Open
helloworld-zzt opened this issue Nov 2, 2021 · 5 comments
Open

Boot form SD and in emergency mode #205

helloworld-zzt opened this issue Nov 2, 2021 · 5 comments

Comments

@helloworld-zzt
Copy link

when i boot from SD with debian written in , it will enter emergency mode. what i used is genesys2_ariane_xilinx.new.mcs and rootfs.tar.xz download from https://github.com/lowRISC/lowrisc-chip/releases

the message is as flowed:

[ 132.544006] systemd[1]: Started Journal Service.
[ OK ] Started Journal Service.
[ 134.478956] EXT4-fs (rda2): re-mounted. Opts: (null)
[ OK ] Started Remount Root and Kernel File Systems.
Starting Flush Journal to Persistent Storage...
Starting Load/Save Random Seed...
Starting Create System Users...
[ 143.211178] systemd-journald[90]: Received client request to flush runtime journal.
[ OK ] Started Flush Journal to Persistent Storage.
[ OK ] Started Create System Users.
Starting Create Static Device Nodes in /dev...
[ OK ] Started Create Static Device Nodes in /dev.
[ OK ] Reached target Local File Systems (Pre).
Starting udev Kernel Device Manager...
[ OK ] Started udev Kernel Device Manager.
[ TIME ] Timed out waiting for device /dev/hvc0.
[DEPEND] Dependency failed for Serial Getty on hvc0.
[ TIME ] Timed out waiting for device /dev/rda1.
[DEPEND] Dependency failed for File System Check on /dev/rda1.
[DEPEND] Dependency failed for /mnt/dos.
[DEPEND] Dependency failed for Local File Systems.
[ TIME ] Timed out waiting for device /dev/rda4.
[DEPEND] Dependency failed for /home.
[DEPEND] Dependency failed for File System Check on /dev/rda4.
[ TIME ] Timed out waiting for device /dev/rda3.
[DEPEND] Dependency failed for /dev/rda3.
[DEPEND] Dependency failed for Swap.
[ OK ] Stopped Dispatch Password …ts to Console Directory Watch.
[ OK ] Stopped Forward Password R…uests to Wall Directory Watch.
[ OK ] Reached target Timers.
Starting Enable support fo…l executable binary formats...
[ OK ] Reached target Login Prompts.
Starting Preprocess NFS configuration...
[ OK ] Closed Syslog Socket.
[ OK ] Reached target Sockets.
[ OK ] Started Emergency Shell.
[ OK ] Reached target Emergency Mode.
Starting Create Volatile Files and Directories...
[ OK ] Started Enable support for…nal executable binary formats.
[ OK ] Started Preprocess NFS configuration.
You are in emergency mode. After logging in, type "journalctl -xb" to view
system logs, "systemctl reboot" to reboot, "systemctl default" or "exit"
to boot into default mode.
Give root password for maintenance
(or press Control-D to continue):
root@lowrisc:# ls
root@lowrisc:
# cd [ 395.732706] random: crng init done

@jrrk
Copy link
Member

jrrk commented Nov 2, 2021 via email

@helloworld-zzt
Copy link
Author

Hi, systemd is a bit CPU hungry to run on this hardware. The problem you are having could be starting many parallel tasks and not finishing them due to timeouts that are too short and/or lack of memory.

On 2 Nov 2021, at 16:44, helloworld-zzt @.> wrote: when i boot from SD with debian written in , it will enter emergency mode. what i used is genesys2_ariane_xilinx.new.mcs and rootfs.tar.xz download from https://github.com/lowRISC/lowrisc-chip/releases https://github.com/lowRISC/lowrisc-chip/releases the message is as flowed: [ 132.544006] systemd[1]: Started Journal Service. [ OK ] Started Journal Service. [ 134.478956] EXT4-fs (rda2): re-mounted. Opts: (null) [ OK ] Started Remount Root and Kernel File Systems. Starting Flush Journal to Persistent Storage... Starting Load/Save Random Seed... Starting Create System Users... [ 143.211178] systemd-journald[90]: Received client request to flush runtime journal. [ OK ] Started Flush Journal to Persistent Storage. [ OK ] Started Create System Users. Starting Create Static Device Nodes in /dev... [ OK ] Started Create Static Device Nodes in /dev. [ OK ] Reached target Local File Systems (Pre). Starting udev Kernel Device Manager... [ OK ] Started udev Kernel Device Manager. [ TIME ] Timed out waiting for device /dev/hvc0. [DEPEND] Dependency failed for Serial Getty on hvc0. [ TIME ] Timed out waiting for device /dev/rda1. [DEPEND] Dependency failed for File System Check on /dev/rda1. [DEPEND] Dependency failed for /mnt/dos. [DEPEND] Dependency failed for Local File Systems. [ TIME ] Timed out waiting for device /dev/rda4. [DEPEND] Dependency failed for /home. [DEPEND] Dependency failed for File System Check on /dev/rda4. [ TIME ] Timed out waiting for device /dev/rda3. [DEPEND] Dependency failed for /dev/rda3. [DEPEND] Dependency failed for Swap. [ OK ] Stopped Dispatch Password …ts to Console Directory Watch. [ OK ] Stopped Forward Password R…uests to Wall Directory Watch. [ OK ] Reached target Timers. Starting Enable support fo…l executable binary formats... [ OK ] Reached target Login Prompts. Starting Preprocess NFS configuration... [ OK ] Closed Syslog Socket. [ OK ] Reached target Sockets. [ OK ] Started Emergency Shell. [ OK ] Reached target Emergency Mode. Starting Create Volatile Files and Directories... [ OK ] Started Enable support for…nal executable binary formats. [ OK ] Started Preprocess NFS configuration. You are in emergency mode. After logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" or "exit" to boot into default mode. Give root password for maintenance (or press Control-D to continue): @.:# ls @.***:# cd [ 395.732706] random: crng init done — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#205>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEALVYIFXOFXHC7ZPNZTSLUKAIOTANCNFSM5HG5NN2Q. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Thanks for your suggestion!

@helloworld-zzt
Copy link
Author

Hi, systemd is a bit CPU hungry to run on this hardware. The problem you are having could be starting many parallel tasks and not finishing them due to timeouts that are too short and/or lack of memory.

On 2 Nov 2021, at 16:44, helloworld-zzt @.> wrote: when i boot from SD with debian written in , it will enter emergency mode. what i used is genesys2_ariane_xilinx.new.mcs and rootfs.tar.xz download from https://github.com/lowRISC/lowrisc-chip/releases https://github.com/lowRISC/lowrisc-chip/releases the message is as flowed: [ 132.544006] systemd[1]: Started Journal Service. [ OK ] Started Journal Service. [ 134.478956] EXT4-fs (rda2): re-mounted. Opts: (null) [ OK ] Started Remount Root and Kernel File Systems. Starting Flush Journal to Persistent Storage... Starting Load/Save Random Seed... Starting Create System Users... [ 143.211178] systemd-journald[90]: Received client request to flush runtime journal. [ OK ] Started Flush Journal to Persistent Storage. [ OK ] Started Create System Users. Starting Create Static Device Nodes in /dev... [ OK ] Started Create Static Device Nodes in /dev. [ OK ] Reached target Local File Systems (Pre). Starting udev Kernel Device Manager... [ OK ] Started udev Kernel Device Manager. [ TIME ] Timed out waiting for device /dev/hvc0. [DEPEND] Dependency failed for Serial Getty on hvc0. [ TIME ] Timed out waiting for device /dev/rda1. [DEPEND] Dependency failed for File System Check on /dev/rda1. [DEPEND] Dependency failed for /mnt/dos. [DEPEND] Dependency failed for Local File Systems. [ TIME ] Timed out waiting for device /dev/rda4. [DEPEND] Dependency failed for /home. [DEPEND] Dependency failed for File System Check on /dev/rda4. [ TIME ] Timed out waiting for device /dev/rda3. [DEPEND] Dependency failed for /dev/rda3. [DEPEND] Dependency failed for Swap. [ OK ] Stopped Dispatch Password …ts to Console Directory Watch. [ OK ] Stopped Forward Password R…uests to Wall Directory Watch. [ OK ] Reached target Timers. Starting Enable support fo…l executable binary formats... [ OK ] Reached target Login Prompts. Starting Preprocess NFS configuration... [ OK ] Closed Syslog Socket. [ OK ] Reached target Sockets. [ OK ] Started Emergency Shell. [ OK ] Reached target Emergency Mode. Starting Create Volatile Files and Directories... [ OK ] Started Enable support for…nal executable binary formats. [ OK ] Started Preprocess NFS configuration. You are in emergency mode. After logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" or "exit" to boot into default mode. Give root password for maintenance (or press Control-D to continue): @.:# ls @.***:# cd [ 395.732706] random: crng init done — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#205>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEALVYIFXOFXHC7ZPNZTSLUKAIOTANCNFSM5HG5NN2Q. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
The FPGA board I used is Genesys2, whose memeory is 1GiB 1800Mt/s on-board DDR3. I guess the memory is enough. I want to know how to modify the timeout,and in which file. Looking forward to your reply.

@jrrk
Copy link
Member

jrrk commented Nov 3, 2021 via email

@helloworld-zzt
Copy link
Author

Hi, You can consult generic systems documentation for timeout control, e.g.: https://newbedev.com/how-to-change-systemd-service-timeout-value https://newbedev.com/how-to-change-systemd-service-timeout-value Unfortunately, it is a bit painful going through the debug loop to see the effect. You can mount the SD-card locally to make these modifications. On the whole, I find it easier to use a light-weight system, which is why I went over to buildroot for this edition. Although the Genesis has plenty of memory, it will still be crippled for CPU performance by the continuous task switching that systemd requires. Furthermore, the Linux options to run with a slower tick rate are mostly disabled nowadays. The Ariane core is about 15% slower than Rocket for unknown reasons.

On 3 Nov 2021, at 08:46, helloworld-zzt @.> wrote: Hi, systemd is a bit CPU hungry to run on this hardware. The problem you are having could be starting many parallel tasks and not finishing them due to timeouts that are too short and/or lack of memory. … x-msg://4/# On 2 Nov 2021, at 16:44, helloworld-zzt @.> wrote: when i boot from SD with debian written in , it will enter emergency mode. what i used is genesys2_ariane_xilinx.new.mcs and rootfs.tar.xz download from https://github.com/lowRISC/lowrisc-chip/releases https://github.com/lowRISC/lowrisc-chip/releases https://github.com/lowRISC/lowrisc-chip/releases https://github.com/lowRISC/lowrisc-chip/releases the message is as flowed: [ 132.544006] systemd[1]: Started Journal Service. [ OK ] Started Journal Service. [ 134.478956] EXT4-fs (rda2): re-mounted. Opts: (null) [ OK ] Started Remount Root and Kernel File Systems. Starting Flush Journal to Persistent Storage... Starting Load/Save Random Seed... Starting Create System Users... [ 143.211178] systemd-journald[90]: Received client request to flush runtime journal. [ OK ] Started Flush Journal to Persistent Storage. [ OK ] Started Create System Users. Starting Create Static Device Nodes in /dev... [ OK ] Started Create Static Device Nodes in /dev. [ OK ] Reached target Local File Systems (Pre). Starting udev Kernel Device Manager... [ OK ] Started udev Kernel Device Manager. [ TIME ] Timed out waiting for device /dev/hvc0. [DEPEND] Dependency failed for Serial Getty on hvc0. [ TIME ] Timed out waiting for device /dev/rda1. [DEPEND] Dependency failed for File System Check on /dev/rda1. [DEPEND] Dependency failed for /mnt/dos. [DEPEND] Dependency failed for Local File Systems. [ TIME ] Timed out waiting for device /dev/rda4. [DEPEND] Dependency failed for /home. [DEPEND] Dependency failed for File System Check on /dev/rda4. [ TIME ] Timed out waiting for device /dev/rda3. [DEPEND] Dependency failed for /dev/rda3. [DEPEND] Dependency failed for Swap. [ OK ] Stopped Dispatch Password …ts to Console Directory Watch. [ OK ] Stopped Forward Password R…uests to Wall Directory Watch. [ OK ] Reached target Timers. Starting Enable support fo…l executable binary formats... [ OK ] Reached target Login Prompts. Starting Preprocess NFS configuration... [ OK ] Closed Syslog Socket. [ OK ] Reached target Sockets. [ OK ] Started Emergency Shell. [ OK ] Reached target Emergency Mode. Starting Create Volatile Files and Directories... [ OK ] Started Enable support for…nal executable binary formats. [ OK ] Started Preprocess NFS configuration. You are in emergency mode. After logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" or "exit" to boot into default mode. Give root password for maintenance (or press Control-D to continue): @.:# ls @.:# cd [ 395.732706] random: crng init done — You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub <#205 <#205>>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEALVYIFXOFXHC7ZPNZTSLUKAIOTANCNFSM5HG5NN2Q https://github.com/notifications/unsubscribe-auth/AAEALVYIFXOFXHC7ZPNZTSLUKAIOTANCNFSM5HG5NN2Q. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. The FPGA board I used is Genesys2, whose memeory is 1GiB 1800Mt/s on-board DDR3. I guess the memory is enough. I want to know how to modify the timeout,and in which file. Looking forward to your reply. — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#205 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEALV3BKKADO5HQ2BIUMC3UKDZFRANCNFSM5HG5NN2Q. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

Thanks very much for your answer! The Rocket core can work easily. I will have a try as your suggestion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants