xref: /OK3568_Linux_fs/u-boot/doc/README.zfs (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunThis patch series adds support for ZFS listing and load to u-boot.
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunTo Enable zfs ls and load commands, modify the board specific config file with
4*4882a593Smuzhiyun#define CONFIG_CMD_ZFS
5*4882a593Smuzhiyun
6*4882a593SmuzhiyunSteps to test:
7*4882a593Smuzhiyun
8*4882a593Smuzhiyun1. After applying the patch, zfs specific commands can be seen
9*4882a593Smuzhiyun   in the boot loader prompt using
10*4882a593Smuzhiyun	UBOOT #help
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun	zfsload- load binary file from a ZFS file system
13*4882a593Smuzhiyun	zfsls  - list files in a directory (default /)
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun2. To list the files in zfs pool, device or partition, execute
16*4882a593Smuzhiyun	zfsls <interface> <dev[:part]> [POOL/@/dir/file]
17*4882a593Smuzhiyun	For example:
18*4882a593Smuzhiyun	UBOOT #zfsls mmc 0:5 /rpool/@/usr/bin/
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun3. To read and load a file from an ZFS formatted partition to RAM, execute
21*4882a593Smuzhiyun	zfsload <interface> <dev[:part]> [addr] [filename] [bytes]
22*4882a593Smuzhiyun	For example:
23*4882a593Smuzhiyun	UBOOT #zfsload mmc 2:2 0x30007fc0 /rpool/@/boot/uImage
24*4882a593Smuzhiyun
25*4882a593SmuzhiyunReferences :
26*4882a593Smuzhiyun	-- ZFS GRUB sources from Solaris GRUB-0.97
27*4882a593Smuzhiyun	-- GRUB Bazaar repository
28*4882a593Smuzhiyun
29*4882a593SmuzhiyunJorgen Lundman <lundman at lundman.net> 2012.
30