Giter VIP home page Giter VIP logo

Comments (4)

fhunleth avatar fhunleth commented on August 26, 2024

The important message is buried in that text:

erlinit: The shell will be launched on tty 'ttyS0'
erlinit: If you would like the shell to be on this tty,
erlinit: configure erlinit with '-c tty1'

Your RPi4 isn't hung. It's just waiting for input on the Raspberry Pi 4's UART pins. This and connecting via ssh are the more convenient setups for development, but it shouldn't be the default for new projects. Do you have a rootfs_overlay/etc/erlinit.conf file that overrides the default tty?

from nerves_system_rpi4.

nicolafiorillo avatar nicolafiorillo commented on August 26, 2024

Thanks @fhunleth. No, I did not override anything.
I'm sorry, I expected iex console because of the documentation:

Now that you have your SD card burned, you can insert it into your device and boot it up. For Raspberry Pi, be sure to connect it to an HDMI display and USB keyboard so you can see it boot to the IEx console.

from nerves_system_rpi4.

fhunleth avatar fhunleth commented on August 26, 2024

You're right. The tty is set to the UART in this system. https://github.com/nerves-project/nerves_system_rpi4/blob/master/rootfs_overlay/etc/erlinit.config#L8. That's inconsistent with our other Raspberry Pi systems. I'll make a PR to fix that.

To get you working more quickly, create a rootfs_overlay/etc directory in your project and add it to your configuration. See https://hexdocs.pm/nerves/advanced-configuration.html#root-filesystem-overlays.

Then copy https://github.com/nerves-project/nerves_system_rpi4/blob/master/rootfs_overlay/etc/erlinit.config to rootfs_overlay/etc/erlinit.config and comment out -c ttyS0 and comment in -c tty1.

from nerves_system_rpi4.

nicolafiorillo avatar nicolafiorillo commented on August 26, 2024

Works fine, thanks.

from nerves_system_rpi4.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.