Rockpro64 SBC not booting anymore after "gnu: shepherd@0.10: Use guile-fibers 1.3.1."

  • Done
  • quality assurance status badge
Details
3 participants
  • Denis 'GNUtoo' Carikli
  • Julien Lepiller
  • Ludovic Courtès
Owner
unassigned
Submitted by
Denis 'GNUtoo' Carikli
Severity
important
D
D
Denis 'GNUtoo' Carikli wrote on 31 Jul 2023 02:31
(address . bug-guix@gnu.org)
20230731023122.17fd0146@primary_laptop
Hi,

With the commit right before c219c22cbd[1], my rockpro64 (ARM 64bit
SBC) boots fine and I get a login prompt both on the attached display
and serial port.

With c219c22cbd[1] instead it blocks here (see the attached boot.log
file for the full boot log):
Toggle quote (2 lines)
> [ 33.762050] avdd: disabling

I've attached the system.scm file I used for the test. It's being
reused by a machine configuration in another file (rockpro64.scm) and
I deploys the configuration with:
Toggle quote (2 lines)
> guix time-machine --commit=$(GUIX_COMMIT) -- deploy -L . rockpro64.scm

References:
-----------
[1] commit c219c22cbdb62ba52b50ec8fb12bebce0b1dd459
gnu: shepherd@0.10: Use guile-fibers 1.3.1.
* gnu/packages/admin.scm (shepherd-0.10)[native-inputs, inputs]:
Replace GUILE-FIBERS-1.1 with GUILE-FIBERS-1.3.

Denis.
Attachment: system.scm
Attachment: boot.log
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEeC+d2+Nrp/PU3kkGX138wUF34mMFAmTHANoACgkQX138wUF3
4mOjCBAAgc6GCUw0H9mq7fa86RF9RiAsjSNZMEDufuK0qwbou20ungOG9SRi/+AG
KqOypv4NgdnyONCWz6yDZr0uOYdDcuoW+1esYzGeiCkKoLFsQgFiobKkx8yQjxyk
w1Wiwb0im/9jeR6rEmwZiuLSy7rOvhKOCW8/iaa2YMJPjq0Foyvf0F91kVzzQrhr
+Wfpnp0at0IdqSO8tFfnXYrQRbEnrGGdT8+uP66niGDG70KP08i9XP690gYFvzCB
l6hqHgxFz93rg/4tZZfagUcRETXW0ARGQwN5lt9Bqlq1mGIoGWvem9hByYPXzsSc
nykZKpL9huDspIVCImGBz9CT2uLNzcqTTZ6doTvb/9xEErDWnKmCiNGup6jsixaI
bDO8CphzMSKuN2eB7F/bAcrFpdHvbhbpyIbUQmlZEU+WDvdd0ykeGXeuFNW/9l7T
RFLgCPwM2ddCLGhzzG6AfuVgz7S+mFt/+4oU3D31WLZ8MxnoDjgLXTvLg1BWOBxu
SnbpPLb3lDw1W8xXXAzhUiO7YZ+69uemvQYDcFmg1iXPoRCHqN6ZVLhdOqXWD0WF
+3CqMJZG68Su1Y9JJo5NE8wnd0aUc0RJ2yaxDkV9nVMO6qB4wEXJCpPFa7C1kJ7i
nPlMF62FiSuT4AlVFsPC80GoBdd2+7GFsvwkKKNGCYIX8JGVd6M=
=osow
-----END PGP SIGNATURE-----


L
L
Ludovic Courtès wrote on 21 Aug 2023 16:55
control message for bug #64966
(address . control@debbugs.gnu.org)
87r0nw8my1.fsf@gnu.org
severity 64966 important
quit
L
L
Ludovic Courtès wrote on 21 Aug 2023 17:00
Re: bug#64966: Rockpro64 SBC not booting anymore after "gnu: shepherd@0.10: Use guile-fibers 1.3.1."
(name . Denis 'GNUtoo' Carikli)(address . GNUtoo@cyberdimension.org)(address . 64966@debbugs.gnu.org)
87lee48mph.fsf@gnu.org
Hi Denis,

Apologies for the delay.

Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> skribis:

Toggle quote (20 lines)
> With the commit right before c219c22cbd[1], my rockpro64 (ARM 64bit
> SBC) boots fine and I get a login prompt both on the attached display
> and serial port.
>
> With c219c22cbd[1] instead it blocks here (see the attached boot.log
> file for the full boot log):
>> [ 33.762050] avdd: disabling
>
> I've attached the system.scm file I used for the test. It's being
> reused by a machine configuration in another file (rockpro64.scm) and
> I deploys the configuration with:
>> guix time-machine --commit=$(GUIX_COMMIT) -- deploy -L . rockpro64.scm
>
> References:
> -----------
> [1] commit c219c22cbdb62ba52b50ec8fb12bebce0b1dd459
> gnu: shepherd@0.10: Use guile-fibers 1.3.1.
> * gnu/packages/admin.scm (shepherd-0.10)[native-inputs, inputs]:
> Replace GUILE-FIBERS-1.1 with GUILE-FIBERS-1.3.

I believe this is due to this bug:


How about this patch:
Toggle diff (21 lines)
diff --git a/gnu/packages/admin.scm b/gnu/packages/admin.scm
index 65d2e387b5..cb698e82b8 100644
--- a/gnu/packages/admin.scm
+++ b/gnu/packages/admin.scm
@@ -385,9 +385,15 @@ (define-public shepherd-0.10
(base32
"0v9ld9gbqdp5ya380fbkdsxa0iqr90gi6yk004ccz3n792nq6wlj"))))
(native-inputs (modify-inputs (package-native-inputs shepherd-0.9)
- (replace "guile-fibers" guile-fibers-1.3)))
+ (replace "guile-fibers"
+ ;; Work around
+ ;; <https://github.com/wingo/fibers/issues/89>.
+ (if (target-aarch64?)
+ guile-fibers-1.1
+ guile-fibers-1.3))))
(inputs (modify-inputs (package-inputs shepherd-0.9)
- (replace "guile-fibers" guile-fibers-1.3)))))
+ (replace "guile-fibers"
+ (this-package-native-input "guile-fibers"))))))
(define-public shepherd shepherd-0.9)
?

Thanks,
Ludo’.
D
D
Denis 'GNUtoo' Carikli wrote on 25 Aug 2023 20:24
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 64966@debbugs.gnu.org)
20230825202428.17b7951a@primary_laptop
On Mon, 21 Aug 2023 17:00:26 +0200
Ludovic Courtès <ludo@gnu.org> wrote:

Toggle quote (1 lines)
> Hi Denis,
Hi,

[...]
Toggle quote (2 lines)
> How about this patch:

I've some issue testing the patch. With guix
1c916c167b7eb1f2f8af2cf621aa1512b00b1033 ("gnu: Add thunarx-python.")
I've the following:
Toggle quote (31 lines)
> LD [M] net/nsh/nsh.ko
> LD [M] net/qrtr/qrtr.ko
> LD [M] net/qrtr/qrtr-smd.ko
> LD [M] net/qrtr/qrtr-tun.ko
> LD [M] net/qrtr/qrtr-mhi.ko
> error: in phase 'build': uncaught exception:
> %exception #<&invoke-error program: "make" arguments: ("-j" "6")
> exit-status: 2 term-signal: #f stop-signal: #f> phase `build' failed
> after 15717.1 seconds command "make" "-j" "6" failed with status 2
> builder for
> `/gnu/store/969v8chaxmh1b6abr202y2myl0npb6zh-linux-libre-6.4.11.drv'
> failed with exit code 1 cannot build derivation
> `/gnu/store/lky0cr3p0y9lgzarcnrl2aq4y4389ygq-linux-modules.drv': 1
> dependencies couldn't be built building path(s)
> `/gnu/store/n2jk40lhr395jnpi5nr6dhdc536ngrsd-mcron-job' cannot build
> derivation
> `/gnu/store/6f0x8bkmalkrx3n24f9jfvxpd6cvs7sk-parameters.drv': 1
> dependencies couldn't be built cannot build derivation
> `/gnu/store/m5j1961vjyrk1s48i864lcp0h4a0v2sk-profile.drv': 1
> dependencies couldn't be built building path(s)
> `/gnu/store/bhyhl6gw0gkawykb6k0ziyim0wpfnbk6-module-import-compiled'
> cannot build derivation
> `/gnu/store/m7mw72finn57b0j5f66x4dcwgm22k2xj-system.drv': 1
> dependencies couldn't be built cannot build derivation
> `/gnu/store/gbwsrrvlfw2v3cdgxnmi31bz38x5xhgc-switch-to-system.scm.drv':
> 1 dependencies couldn't be built cannot build derivation
> `/gnu/store/ynn503gdm4r6azqa8wa0sjakshx0pcgz-remote-exp.scm.drv': 1
> dependencies couldn't be built guix deploy: error: build of
> `/gnu/store/ynn503gdm4r6azqa8wa0sjakshx0pcgz-remote-exp.scm.drv'
> failed

And here I tried without the patch, in a guix checkout built with make
and with the following command: './pre-inst-env guix deploy -L
rockpro64/ rockpro64/rockpro64.scm'.

I'm unsure of what is wrong with the kernel build, but since it's not
downloading substitutes for it, the issue is probably more general.

Denis.
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEeC+d2+Nrp/PU3kkGX138wUF34mMFAmTo8dwACgkQX138wUF3
4mPD6Q/+PRVAfPpV11yge+jY4PiMYdIACW5IPXhb268441Ul7m/VM+AX1uAKGPt2
BX6lHWeaLdTZTYC3rkNs+WNiRSR4NTUVs8BWICt0D28aRPa8hGqElw0JwlDG1HSH
yoETxh/Si7Zx+YUmQ384tA4zMnMaYcJEJbnRT0hy6glvc+jDgQ76Yo3PiP1FY21y
aEvinPYLI97VF+6KlM5sdgqylZ5OBG4ln5I9YHVdGXtS1diAbcrx09pegbUGzKtr
umYT94NT4YegBqfiWYLgsJxBj7iz45dR3uWYM3AM5E+cG6i/rjeB8V5p8bHkKXU0
crsTlO2NtQRAIrW9ipKQjsgLJmHlOtYWEqK+1qfWBdtm2oqHsuTIzUnCydAeI2EQ
DYmjXgm1Ul97Uf7TyAC2M+13s4NdgWb31NEAe47/l9JMq5jNeRXj58cF1xy1DdSF
k+3MytphLw3s4pNM/grexJLoc1fbI8hxO3y2Pa0RZ9cMqC+js73g0BiUQ0juHAZw
qsfDmjR+VuGZlLSyQ8BUq2h+ywt8sWPB6e8MqOTX1PWK7LZ2nLtPbg6wQDk+Jlgv
0qwEisKNaXT508Kd6chADIUK13w+IJR9S+IMgh3RKGiCIcBd8DxFxGq2Ruea7EYR
Jp3LSnovbqFTOfD1JTt4BDcx/x1aU2H1B65A5liRSyuUEATnAbU=
=pqxT
-----END PGP SIGNATURE-----


J
J
Julien Lepiller wrote on 25 Aug 2023 21:45
(address . 64966@debbugs.gnu.org)
20230825214547.03c00ca2@lepiller.eu
Le Fri, 25 Aug 2023 20:24:28 +0200,
Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> a écrit :

Toggle quote (3 lines)
> ./pre-inst-env guix deploy -L
> rockpro64/ rockpro64/rockpro64.scm

If you're doing this on a non aarch64 system, you'll need to add
--system=aarch64-linux.
D
D
Denis 'GNUtoo' Carikli wrote on 13 Sep 2023 16:37
(name . Ludovic Courtès)(address . ludo@gnu.org)(address . 64966@debbugs.gnu.org)
20230913163730.79d1bf32@primary_laptop
Hi again,

For some reasons I didn't receive your last mail.

In the machine definition I have (system "aarch64-linux"). I've now
also added -s aarch64-linux as well just to be safe.

As for the patch, it is now in Guix (4dd33fc628 gnu: shepherd: Switch
back to Fibers 1.1 on Arm machines.), and after bisecting the kernel
issue I had (I sent a bug report for that), I simply modified the system
definition to use linux-libre-lts instead.

I used this guix revision:
Toggle quote (7 lines)
> $ guix describe
> Generation 71 Sep 13 2023 16:03:04 (current)
> guix 4f933f9
> repository URL: https://git.savannah.gnu.org/git/guix.git
> branch: master
> commit: 4f933f977dd8aa61ca3e50b194d3b56e298a3e30

And it booted fine. Thanks a lot.

Denis.
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEeC+d2+Nrp/PU3kkGX138wUF34mMFAmUBySoACgkQX138wUF3
4mMC7A/8DsYUpJzwHkQ1hVFf7nx5sI6kvqqOAquO5vU5hJlRmHy3KE+VcbjE8W4K
SXkrRi0WgJr9B1fxgR90zE0VU7KUrrxfycRqMykJERu9ty4L5mm+8qkM7wc9Fuo+
FtW+bxtI4E3+rSsH9627xSzVKcCHm4zn41aPwouYgY1+1L+/RA/iux94elF9H9LN
JvWYqkepOLxlVTbfMIBnCAyDCG8raMaZo+38rXO7DCYoiHdB7wEZPPIY9rgwUaGR
tOFr2gx7I0LxM8mXtpNdQkklljRZCifyuqRt2E74mVvZxpCLr+wd/yIO4CohmWpz
is0hYuHHCqotCWgBwdOtxcb95pGzE6eJop9/mGbPOo+5/MwyYBcBO7YRbPXGKmh9
jEgt9lYQxJXNcGYYf1fCuYBCwkn6VhQ1WhOrkUc96Pb7VcFOxzzStu+jw6f/EgZy
zrfOGBJ9eYcwQQz0XfYWPKFtiMNchspKbmKQfEJVL//6RYvGR24eUHatMEdcS8Cy
7J6o9+jXqmlJrF/RkXP6cFWb39ogQF9GnCuIGvkhPDsBbwmzssOLEpQWgyt4o3sJ
eidXyWyuq8XqRsHFzkdlpqOt/B9Em57td4tGCYCM2LQPkeGdj55nHc2Sv/YWpfiC
x4GR1cQvE7X9p5F4IpAGzDC8txKvEANkp4V+nrAQVXqP2WLteKA=
=vGiw
-----END PGP SIGNATURE-----


L
L
Ludovic Courtès wrote on 13 Sep 2023 22:40
(name . Denis 'GNUtoo' Carikli)(address . GNUtoo@cyberdimension.org)(address . 64966-done@debbugs.gnu.org)
878r99kdrw.fsf@gnu.org
Hi Denis,

Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> skribis:

Toggle quote (2 lines)
> And it booted fine. Thanks a lot.

Awesome, thanks for checking!

Ludo’.
Closed
?
Your comment

This issue is archived.

To comment on this conversation send an email to 64966@debbugs.gnu.org

To respond to this issue using the mumi CLI, first switch to it
mumi current 64966
Then, you may apply the latest patchset in this issue (with sign off)
mumi am -- -s
Or, compose a reply to this issue
mumi compose
Or, send patches to this issue
mumi send-email *.patch