unofficial mirror of bug-guix@gnu.org 
 help / color / mirror / code / Atom feed
* bug#47723: Boot failure with u-boot on cubietruck
@ 2021-04-12 11:18 Julien Lepiller
  2021-04-13 19:14 ` Danny Milosavljevic
  0 siblings, 1 reply; 3+ messages in thread
From: Julien Lepiller @ 2021-04-12 11:18 UTC (permalink / raw)
  To: 47723

Hi Guix!

This week-end, I had to reboot my server and it couldn't boot anymore.
It's a Cubietruck, an armhf machine that's in my parents' basement.
They helped me debug the issue (though that was not easy, since they
only have windows machines and not a lot of knowledge about Linux).

At boot, the machine loads the kernel and initramfs, and gets stuck at
"Starting kernel...". We tried booting various generations, including
the very firts generation (as I never had to run guix gc on the
machine, I kept all the generations around, that's 129 of them!). None
of them worked, and they all get stuck at the same message.

I suspect something might have changed in u-boot recently (maybe the
upgrade to 2021.01, since I didn't have to reboot this year yet). The
board might not be initialized as expected and all kernels from 4.19 to
the latest 5.11 fail to boot.

In the end, I reinstalled a foreign distribution (that uses u-boot
2017.01) and can SSH to the machine, but I haven't reinstalled Guix
yet. Guix was installed on an external disk, so I haven't lost anything
other that the bootloader it installed. I can chroot to the Guix system:

  mount -v --bind /dev /mnt/dev
  mount -v --bind /dev/pts /mnt/dev/pts
  mount -vt proc proc /mnt/proc
  mount -vt sysfs sysfs /mnt/sys
  chroot /mnt /run/current-system/profile/bin/bash
  . /etc/profile

What should be my next step?

I tried running guix from inside the chroot:
  /root/.config/current/bin/guix-daemon --build-users-group=guixbuild &

But when I try to use it:

  guix system build /etc/config.scm
  guix system: error: while setting up the build environment: cannot
  pivot old root directory onto
  '/gnu/store/brkm5bb59w9i4kmyznk0k4ndsz6dzq95-system.drv.chroot/real-root':
  Invalid argument

My hope was to run "guix system reconfigure" from the chroot, so I
would not loose my previous generations, and would not have to build
too much, since there are almost no substitutes for armhf.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-04-17 18:24 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-12 11:18 bug#47723: Boot failure with u-boot on cubietruck Julien Lepiller
2021-04-13 19:14 ` Danny Milosavljevic
2021-04-17 18:22   ` Julien Lepiller

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).