[Bug 1944741] Re: HiFive Unmatched partitions are named "Unleashed"

Launchpad Bug Tracker 1944741 at bugs.launchpad.net
Tue Nov 9 08:05:42 UTC 2021


This bug was fixed in the package util-linux - 2.37.2-4ubuntu1

---------------
util-linux (2.37.2-4ubuntu1) jammy; urgency=low

  * Merge from Debian unstable. Remaining changes:
    - Build hwclock with audit support.
    - Drop debian/hwclock.rules and debian/util-linux.hwclock.default, recent
      kernels sync the RTC automatically.
    - Add sulogin-fallback-static-sh.patch: Add support for /bin/static-sh as
      fallback if the regular shell fails to execute. Patch ported from
      sysvinit. (see LP #505887)
    - Add sulogin-lockedpwd.patch: Make sure file systems can be fixed on
      machines with locked root accounts (as Ubuntu does by default). Don't
      require --force for sulogin.
    - Clean up weekly fstrim cron file, now a systemd timer unit.
    - Allow to build without udeb packages.
    - Update translations after changes to HiFive partition names

 -- Mario Limonciello <superm1 at gmail.com>  Wed, 27 Oct 2021 00:35:24
-0500

** Changed in: util-linux (Ubuntu Jammy)
       Status: New => Fix Released

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to util-linux in Ubuntu.
https://bugs.launchpad.net/bugs/1944741

Title:
  HiFive Unmatched partitions are named "Unleashed"

Status in util-linux package in Ubuntu:
  Fix Released
Status in util-linux source package in Impish:
  Fix Released
Status in util-linux source package in Jammy:
  Fix Released
Status in util-linux package in Debian:
  Fix Released

Bug description:
  [Impact]                                                                         
                                                                                   
  Both HiFive Unleashed and HiFive Unmatched bootloaders seek for the same         
  UUIDs to load the next stage bootloader: the current name makes partitions       
  on Unmatched board appear as 'Unleashed'.                                        
                                                                                   
  This issue gives the feeling that the Ubuntu RISC-V images made specifically     
  for those 2 boards were assembled in a rushed manner.                            
                                                                                   
  The attached patch fixes this by removing the 'Unleashed' part of the current    
  name so that it fits both, it was build againt all architectures here:           
  https://launchpad.net/~alexghiti/+archive/ubuntu/riscv/+sourcepub/12783067/+listing-archive-extra
                                                                                   
  [Test Plan]                                                                      
                                                                                   
  1. Download the SiFive Unmatched image here: https://cdimage.ubuntu.com/ubuntu-server/daily-preinstalled/pending/impish-preinstalled-server-riscv64+unmatched.img.xz
  2. Follow instructions here to launch a riscv64 VM: https://wiki.ubuntu.com/RISC-V
  3. Execute the following command:                                                
          ubuntu at ubuntu:~$ sudo fdisk -l                                           
          Disk /dev/vda: 40 GiB, 42949672960 bytes, 83886080 sectors               
          Units: sectors of 1 * 512 = 512 bytes                                    
          Sector size (logical/physical): 512 bytes / 512 bytes                    
          I/O size (minimum/optimal): 512 bytes / 512 bytes                        
          Disklabel type: gpt                                                      
          Disk identifier: 0F66C0C3-A5E4-439B-907E-ABAD106FE4A7                    
                                                                                   
          Device      Start      End  Sectors  Size Type                           
          /dev/vda1  235554 83886046 83650493 39.9G Linux filesystem               
          /dev/vda12 227362   235553     8192    4M Linux filesystem               
          /dev/vda13     34     2081     2048    1M HiFive Unleashed FSBL          
          /dev/vda14   2082    10273     8192    4M HiFive Unleashed BBL           
          /dev/vda15  10274   227361   217088  106M EFI System                     
                                                                                   
          Partition table entries are not in disk order.                           
  4. Download and install the new packages that contain the fix here:              
          https://launchpad.net/~alexghiti/+archive/ubuntu/riscv/+files/libfdisk1_2.36.1-8ubuntu4_riscv64.deb
          https://launchpad.net/~alexghiti/+archive/ubuntu/riscv/+files/libfdisk-dev_2.36.1-8ubuntu4_riscv64.deb
          https://launchpad.net/~alexghiti/+archive/ubuntu/riscv/+files/fdisk_2.36.1-8ubuntu4_riscv64.deb
  5. Re-execute the same command as above:                                         
          ubuntu at ubuntu:~$ sudo fdisk -l                                           
          Disk /dev/vda: 40 GiB, 42949672960 bytes, 83886080 sectors               
          Units: sectors of 1 * 512 = 512 bytes                                    
          Sector size (logical/physical): 512 bytes / 512 bytes                    
          I/O size (minimum/optimal): 512 bytes / 512 bytes                        
          Disklabel type: gpt                                                      
          Disk identifier: 0F66C0C3-A5E4-439B-907E-ABAD106FE4A7                    
                                                                                   
          Device      Start      End  Sectors  Size Type                           
          /dev/vda1  235554 83886046 83650493 39.9G Linux filesystem               
          /dev/vda12 227362   235553     8192    4M Linux filesystem               
          /dev/vda13     34     2081     2048    1M HiFive FSBL                    
          /dev/vda14   2082    10273     8192    4M HiFive BBL                     
          /dev/vda15  10274   227361   217088  106M EFI System                     
                                                                                   
          Partition table entries are not in disk order.                           
                                                                                   
  [Where problems could occur]                                                     
                                                                                   
  We may expect regressions if one uses fdisk output (ie the partition names       
  instead of the UUIDs) in her software: this risk is mitigated by the fact the    
  upstream accepted the patch and then does not expect this interface to be        
  immutable and that RISC-V is not widely used yet.                                
                                                                                   
  [Other Info]                                                                     
                                                                                   
  None.                                                                            
                                                                                   
  === old bug description ===                                                      
  Both HiFive Unleashed and HiFive Unmatched bootloaders seek for the same         
  UUIDs to load the next stage bootloader: the current name makes partitions       
  on Unmatched board appear as 'Unleashed'.                                        
                                                                                   
  Fix that by removing the 'Unleashed' part of the current name so that it         
  fits both.                                                                       
                                                                                   
  The attached debdiff contains the patch that was merged upstream (https://github.com/karelzak/util-linux/commit/10fd91d389497d8be435cc66abbdeb2eb6ea2f07).
  ~

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/util-linux/+bug/1944741/+subscriptions




More information about the foundations-bugs mailing list