diff -Nru u-boot-nezha-2024.01~rc1-190-g2e89b706f5/debian/changelog u-boot-nezha-2024.01~rc1-190-g2e89b706f5/debian/changelog --- u-boot-nezha-2024.01~rc1-190-g2e89b706f5/debian/changelog 2023-11-27 16:20:46.000000000 +0100 +++ u-boot-nezha-2024.01~rc1-190-g2e89b706f5/debian/changelog 2023-12-01 16:09:18.000000000 +0100 @@ -1,3 +1,11 @@ +u-boot-nezha (2024.01~rc1-190-g2e89b706f5-0ubuntu2) noble; urgency=medium + + * Correct manual installation instructions in debian/README.Debian to + reflect that we don't use a separate U-Boot SPL package (nezha-boot0) + anymore. (LP: #2020692) + + -- Heinrich Schuchardt Fri, 01 Dec 2023 16:09:18 +0100 + u-boot-nezha (2024.01~rc1-190-g2e89b706f5-0ubuntu1) noble; urgency=medium * New upstream release based on v2024.01-rc1 (LP: #2043687) diff -Nru u-boot-nezha-2024.01~rc1-190-g2e89b706f5/debian/README.Debian u-boot-nezha-2024.01~rc1-190-g2e89b706f5/debian/README.Debian --- u-boot-nezha-2024.01~rc1-190-g2e89b706f5/debian/README.Debian 2023-11-27 16:20:30.000000000 +0100 +++ u-boot-nezha-2024.01~rc1-190-g2e89b706f5/debian/README.Debian 2023-12-01 16:09:18.000000000 +0100 @@ -1,23 +1,20 @@ -The boot0 SPL used by the Nezha and the LicheeRV boards expects to load a TOC1 -image containing OpenSBI, U-Boot, and a DTB from sector 32800. If loading fails, -it tries to read a backup from sector 24576. +The postinst script of the u-boot-nezha package takes care of writing +U-Boot to the 'loader1' partition on the SD card that is provided by +Ubuntu's pre-installed images. -To install to the first position use: +If you use a deviating partitioning scheme, you may follow these +instructions to copy U-Boot to the SD card. - sudo dd if=/usr/lib/u-boot/[nezha|licheerv]/u-boot.toc1 of=/dev/sdX bs=8192 \ - seek=2050 conv=fsync,notrunc +The D1 boot ROM can read the bootloader from two different locations: -To install to the backup position use: +* starting at sector 16 +* starting at sector 256 - sudo dd if=/usr/lib/u-boot/[nezha|licheerv]/u-boot.toc1 of=/dev/sdX bs=8192 \ - seek=1536 conv=fsync,notrunc +The location in sector 16 is incompatible with GPT partitioning which +by default uses 34 sectors. Therefore we should write U-Boot starting +at sector 256 instead. -Also worth mentioning: currently this package is based on a forked version of -the original fork for u-boot allwinner, mainly because the required commit that -the package requires got lost by a force-push by the original maintainers. + sudo dd if=/usr/lib/u-boot//u-boot-sunxi-with-spl.bin \ + of=/dev/sdX bs=8192 seek=16 conv=fsync,notrunc -The actual repository that eventually should be used is here: -https://github.com/smaeul/u-boot - -Also, the u-boot fork above does not tag any releases, which is the reason why -there is no debian/watch file provided. +Please, replace /dev/sdX by the relevant block device.