blob: 7f237c4076ff2cf87379389d971c2864bd130561 [file] [log] [blame]
Jorgen Lundman9b4a1f92012-07-19 20:48:25 +00001This patch series adds support for ZFS listing and load to u-boot.
2
3To Enable zfs ls and load commands, modify the board specific config file with
4#define CONFIG_CMD_ZFS
5
6Steps to test:
7
81. After applying the patch, zfs specific commands can be seen
9 in the boot loader prompt using
Wolfgang Denkec7fbf52013-10-04 17:43:24 +020010 UBOOT #help
Jorgen Lundman9b4a1f92012-07-19 20:48:25 +000011
Wolfgang Denkec7fbf52013-10-04 17:43:24 +020012 zfsload- load binary file from a ZFS file system
13 zfsls - list files in a directory (default /)
Jorgen Lundman9b4a1f92012-07-19 20:48:25 +000014
152. To list the files in zfs pool, device or partition, execute
Wolfgang Denkec7fbf52013-10-04 17:43:24 +020016 zfsls <interface> <dev[:part]> [POOL/@/dir/file]
17 For example:
18 UBOOT #zfsls mmc 0:5 /rpool/@/usr/bin/
Jorgen Lundman9b4a1f92012-07-19 20:48:25 +000019
203. To read and load a file from an ZFS formatted partition to RAM, execute
Wolfgang Denkec7fbf52013-10-04 17:43:24 +020021 zfsload <interface> <dev[:part]> [addr] [filename] [bytes]
22 For example:
23 UBOOT #zfsload mmc 2:2 0x30007fc0 /rpool/@/boot/uImage
Jorgen Lundman9b4a1f92012-07-19 20:48:25 +000024
25References :
26 -- ZFS GRUB sources from Solaris GRUB-0.97
27 -- GRUB Bazaar repository
28
29Jorgen Lundman <lundman at lundman.net> 2012.