From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jorgen Lundman Date: Thu, 10 May 2012 14:43:47 +0900 Subject: [U-Boot] [PATCH] uboot and ZFS In-Reply-To: <4FAA736D.3030404@gmail.com> References: <4FA0A7F3.8010803@lundman.net> <201205030213.35048.marex@denx.de> <4FA2172D.9080106@lundman.net> <201205051526.52499.marex@denx.de> <4FA7761D.90704@lundman.net> <20120507123650.7EAFB202DCA@gemini.denx.de> <4FA7C809.5050602@lundman.net> <4FAA736D.3030404@gmail.com> Message-ID: <4FAB5593.5060509@lundman.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de > > Technically, U-Boot is GPLv2+ so GPLv2 only code _may_ not be accepted That > is for Wolfgang to decide, but you have been warned :) > Naturally, he is king after all. There will be a thousand reasons to reject it, but hopefully not due to license. I based my GITHUB after the CuBox fork of u-boot. I will leave it up to those guys to submit their patches separately. My fork of u-boot is here: ** https://github.com/lundman/u-boot To see only the change set for adding ZFS: ** https://github.com/lundman/u-boot/compare/zfs Since I merged in EXT4 patches to get a feel for u-boot, they are here: ** https://github.com/lundman/u-boot/compare/ext4 Only minor strings changes of "ext2" -> "ext4", otherwise the Samsung patch V4 posted in here. Lund Useless sample output: CuBox>> zfsls usb 0:2 /ROOT/@/ zfs reading label 0 at sector 0 (byte 0) ZFS Pool GUID: 8349310002080761692 (73deb535d9a3c75c) Label: GUID: 1229383784885 2426185 (aa9c7c635319edc9), txg: 1348, SPA v28, ashift: 9 ZPOOL label 'rpool' zfs fsname = '/ROOT/' snapname='' filename = '/' lib sbin var bin dev selinux usr root home srv ttt proc tmp mnt etc media boot opt sys .old-root src rootfile.txt rpool CuBox>> zfsload usb 0:2 0x00200000 /ROOT/@/boot/uImage Loading file "/ROOT/@/boot/uImage" from usb device 0:2 usbda2 zfs reading label 0 at sector 0 (byte 0) ........... ZFS Pool GUID: 8349310002080761692 (73deb535d9a3c75c) Label: GUID: 12293837848852426185 (aa9c7c635319edc9), txg: 1348, SPA v28, ashift: 9 zfs endian set to little zfs fsname = '/ROOT/' snapname='' filename = '/boot/uImage' 3623192 bytes read CuBox>> bootm ## Booting kernel from Legacy Image at 00200000 ... Image Name: Linux-2.6.32.9-dove-5.4.2 Created: 2012-01-07 10:23:53 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 3623128 Bytes = 3.5 MB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK Loading Kernel Image ... OK OK Starting kernel ... [ 0.000000] Linux version 2.6.32.9-dove-5.4.2 (rabeeh at kossay-desktop) (gcc version 4.3.2 (sdk3.2rc1-ct-ng-1.4.1) ) #46 PREEMPT Sat Jan 7 12:23:38 IST 2012