Vagrant Cascadian writes: > [[PGP Signed Part:Undecided]] > On 2023-06-14, Z572 wrote: >> * gnu/packages/bootloaders.scm (u-boot-lichee-rv-dock): New variable. >> * gnu/packages/patches/u-boot-lichee-rv-dock-disable-openssl.patch: New file. >> * gnu/local.mk(dist_patch_DATA): register it. > > Thanks for the patches! > > This also reminds me that u-boot is falling a little behind (there is > 2023.01, 2023.04 and soon 2023.07)... and while I would not want to block > adding support for this board, I would be curious if it still works with > newer u-boot versions... for now is not upstreamed. > > >> +(define-public u-boot-lichee-rv-dock > ... >> + (search-patches >> + "u-boot-lichee-rv-dock-disable-openssl.patch") >> + ;;; rebase from %u-boot-allow-disabling-openssl-patch >> + (filter (negate (cut string-contains <> "openssl")) >> + (origin-patches (package-source base))))) > > This seems a little tricky and possibly error-prone if another patch > with openssl in the name is included at a later time, it could break > this package. I almost wonder if it wouldn't be better to merge the > functionality of the two patches disabling openssl than applying a > board-specific patch? this new patch is modified from the original patch, because original patch can't apply to smaeul/u-boot. I attach a new patch. > > > I have not had a chance to test that this package builds; I presume you > have tested that it actually boots? yes, u-boot can boot, but cann't boot guix system, i guess because initrd is too big(even though the board has 1GB of RAM), initrd.cpio is 60M. so i send this patch first, and try "remove initrd" or "make initrd small" in future . (I'm not familiar with u-boot) I attach some photo, scm file and boot log. https://wiki.sipeed.com/hardware/en/lichee/RV/Dock.html