Bug 172301 - [libstand] [patch] add CRC32 feature to FreeBSD's boot loader
Summary: [libstand] [patch] add CRC32 feature to FreeBSD's boot loader
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 10.0-CURRENT
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-03 12:00 UTC by boris.astardzhiev
Modified: 2021-07-08 23:28 UTC (History)
1 user (show)

See Also:


Attachments
file.diff (5.10 KB, patch)
2012-10-03 12:00 UTC, boris.astardzhiev
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description boris.astardzhiev 2012-10-03 12:00:23 UTC
I would like to contribute a new feature for the FreeBSD boot loader - a
command that calculates the CRC32 of a specified file name. It uses libz's CRC32
implementation.

While attempting to make libstand's nandfs to work adequately I've
experienced NAND flash page/block misreadings from U-Boot's API side. Therefore I was in a need of a tool that could prove that a file had been read correctly in this very stage of the FreeBSD boot process. So here it is.

In addition to the CRC calculation the size of the stipulated file is
printed as well.

Any comments will be appreciated - http://lists.freebsd.org/pipermail/freebsd-fs/2012-October/015288.html

Fix: See patch.

Patch attached with submission follows:
How-To-Repeat: -
Comment 1 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 08:00:47 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 2 Warner Losh freebsd_committer freebsd_triage 2021-07-08 23:28:34 UTC
ad6f5f9ab52eeedca8cbdb325e78b33381bd0e2f created a crc for libsa, so this is now OBE as fixed. Thanks for anticipating our later need, and sorry we dropped it on the floor.