Page MenuHomeFreeBSD

RK3399 clk update problem - reproduction

Authored By
kjopek_gmail.com
Jan 6 2021, 4:49 PM
Size
758 B
Referenced Files
None
Subscribers
None

RK3399 clk update problem - reproduction

#include <sys/param.h>
#include <sys/mount.h>
#include <ufs/ufs/ufsmount.h>
#include <ufs/ufs/dinode.h>
#include <ufs/ffs/fs.h>
#include <err.h>
#include <libufs.h>
#include <stdint.h>
#include <stdio.h>
int
main(int argc, char **argv)
{
struct uufsd disk;
uint8_t block[1024 * 1024];
int ii = 0;
const ufs2_daddr_t block_no = 17664;
if (argc != 2) {
fprintf(stderr, "Usage: test_ffs <mountpoint|device>\n");
return (1);
}
if (ufs_disk_fillout(&disk, argv[1]) != 0)
err(1, "ufs_disk_fillout failed");
if (bread(&disk, block_no, block, sizeof(block)) == -1)
err(1, "bread failed");
for (ii = 0; ii < sizeof(block); ii++)
printf("%02hhx%c", block[ii], ii % 16 == 0 ? '\n' : ' ');
printf("\n");
ufs_disk_close(&disk);
return (0);
}

File Metadata

Mime Type
text/plain; charset=utf-8
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3359378
Default Alt Text
RK3399 clk update problem - reproduction (758 B)

Event Timeline