Files
mu300-linux/tools
421b5f966b UFS units on the 5.4 kernel: the make-room path on 4096-byte blocks (#396, step 2)
The vendor 5.4 kernel already brings the UFS host (ufs-sprd-qogirn6pro.ko is
in both module orders, CONFIG_SCSI_UFSHCD=y), and with step 1 init, the
systems and the installers find a UFS unit's sda. What was left is the only
way such a unit can be installed: userdata fills the disk (the 1 TB U30 Air of
issue #396 has no free space and no card slot), so room has to be made, and
that path read and wrote the partition table as 512-byte blocks.

- tools/resize-last-partition.py: the table in the disk's logical blocks
  (--sector-size, else found from where the primary header is); every number
  given and shown stays in 512-byte sectors, as sysfs and the installers
  count, and a new end must fall on a block.
- install.sh, uninstall.sh, tools/resume.sh, install.ps1, android-web.sh: the
  table is the first 48 and the last 40 sectors on 4096-byte blocks (34 and
  33 as before on 512), and the backup GPT's reserve follows it.
  tools/storage.sh's internal_disk and the Android-side lookup also give the
  logical block size.
- The make-room transaction's identity: a UFS has no CID, so the hash of its
  manufacturer and serial number (string descriptors) stands in for it, in
  the same 32 hex digits (the GPT disk GUID of these units is a placeholder).
- tests: fakegpt's and fakeemmc's ufs1t layout (the figures of issue #396),
  the tool on it, and the whole make-room path - prepare, reset, resume - on
  a fake UFS.

Mainline kernels still have no driver for the stock DT's sprd,ufshc node
(step 3).

Co-Authored-By: kanoqwq <kanoqwq@qq.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01VVN2zDgf76kMDVSuWhHPUE
2026-10-31 01:31:23 +03:00
..
2026-10-26 00:45:19 +03:00
2026-10-26 00:45:19 +03:00