Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F14848849
RK3399 clk update problem - reproduction
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
kjopek_gmail.com
Jan 6 2021, 4:49 PM
2021-01-06 16:49:55 (UTC+0)
Size
758 B
Referenced Files
None
Subscribers
None
RK3399 clk update problem - reproduction
View Options
#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
Details
Attached
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)
Attached To
Mode
P473 RK3399 clk update problem - reproduction
Attached
Detach File
Event Timeline
Log In to Comment