Jorgen Lundman | 9b4a1f9 | 2012-07-19 20:48:25 +0000 | [diff] [blame] | 1 | This patch series adds support for ZFS listing and load to u-boot. |
| 2 | |
| 3 | To Enable zfs ls and load commands, modify the board specific config file with |
| 4 | #define CONFIG_CMD_ZFS |
| 5 | |
| 6 | Steps to test: |
| 7 | |
| 8 | 1. After applying the patch, zfs specific commands can be seen |
| 9 | in the boot loader prompt using |
Wolfgang Denk | ec7fbf5 | 2013-10-04 17:43:24 +0200 | [diff] [blame] | 10 | UBOOT #help |
Jorgen Lundman | 9b4a1f9 | 2012-07-19 20:48:25 +0000 | [diff] [blame] | 11 | |
Wolfgang Denk | ec7fbf5 | 2013-10-04 17:43:24 +0200 | [diff] [blame] | 12 | zfsload- load binary file from a ZFS file system |
| 13 | zfsls - list files in a directory (default /) |
Jorgen Lundman | 9b4a1f9 | 2012-07-19 20:48:25 +0000 | [diff] [blame] | 14 | |
| 15 | 2. To list the files in zfs pool, device or partition, execute |
Wolfgang Denk | ec7fbf5 | 2013-10-04 17:43:24 +0200 | [diff] [blame] | 16 | zfsls <interface> <dev[:part]> [POOL/@/dir/file] |
| 17 | For example: |
| 18 | UBOOT #zfsls mmc 0:5 /rpool/@/usr/bin/ |
Jorgen Lundman | 9b4a1f9 | 2012-07-19 20:48:25 +0000 | [diff] [blame] | 19 | |
| 20 | 3. To read and load a file from an ZFS formatted partition to RAM, execute |
Wolfgang Denk | ec7fbf5 | 2013-10-04 17:43:24 +0200 | [diff] [blame] | 21 | zfsload <interface> <dev[:part]> [addr] [filename] [bytes] |
| 22 | For example: |
| 23 | UBOOT #zfsload mmc 2:2 0x30007fc0 /rpool/@/boot/uImage |
Jorgen Lundman | 9b4a1f9 | 2012-07-19 20:48:25 +0000 | [diff] [blame] | 24 | |
| 25 | References : |
| 26 | -- ZFS GRUB sources from Solaris GRUB-0.97 |
| 27 | -- GRUB Bazaar repository |
| 28 | |
| 29 | Jorgen Lundman <lundman at lundman.net> 2012. |