Code Monkey home page Code Monkey logo

Comments (5)

ranch-verdin avatar ranch-verdin commented on August 21, 2024

tried bumping up the cairotest service up the queue using DefaultDependencies=no, managed to soft-brick the device!

So it'd be quite handy to get those instructions on usb-disk-mode...

another stupid question - anyone know how to manually remove the cairotest service once my laptop manages to mount the eMMC root partition?

from norns-image.

tehn avatar tehn commented on August 21, 2024

from norns-image.

tehn avatar tehn commented on August 21, 2024

@ranch-verdin here it is!

this needs to be put into the repo, i'll do that later.

img_4186

to open the cm3's emmc in usb disk mode:

  • plug the usb boot in, connect to laptop (linux)
  • change the power stay-on switch to the left (ON)
  • power up the device by plugging in USB power (if the battery is unattached, otherwise it'll power-on when you change the switch)

software

https://www.raspberrypi.org/documentation/hardware/computemodule/cm-emmc-flashing.md

summary:

sudo apt-get install libusb-1.0-0-dev
git clone --depth=1 https://github.com/raspberrypi/usbboot
cd usbboot
make
sudo ./rpiboot

you'll then get a new disk in /dev/sd?

you can go modify the files of your emmc then, to fix the boot process.

the instructions are also there to do a full disk write, but i don't have a disk image online that i'd suggest using at the moment-- also no need to start over, just fix your error to get it booting.

from norns-image.

ranch-verdin avatar ranch-verdin commented on August 21, 2024

appending systemd.unit=rescue.target to /boot/cmdline.txt got me out of trouble this time.

as a sidenote, sudo sulogin is broken on this install. We should fix it because systemd fails when trying to execute this command for systemd.unit=rescue.target & systemd.unit=emergency.target

Only managed to get out of trouble because systemd somehow went around the faulty service after failing to give a root shell

EDIT: sudo sulogin can be fixed by setting the root password:

sudo su
passwd

also here is an informative link for systemd recovery https://freedesktop.org/wiki/Software/systemd/Debugging/

from norns-image.

tehn avatar tehn commented on August 21, 2024

https://github.com/tehn/norns-image/blob/master/readme-usbdisk.md

from norns-image.

Related Issues (20)

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.