On Wed, Dec 13, 2017 at 2:19 PM, Robert Nelson <[email protected]> wrote:
> On Wed, Dec 13, 2017 at 2:11 PM, Robert Nelson <[email protected]> 
> wrote:
>> Got it!
>>
>> u-boot just needs:
>>
>> CONFIG_FS_BTRFS=y
>>
>> and we need to pass:
>>
>> mmcrootfstype=btrfs rootwait
>>
>> thru /boot/uEnv.txt
>>
>> and it just works:
>>
>> https://gist.github.com/RobertCNelson/d2ba5d74c8bc7407ce7bd8a521424b20
>>
>> I'll add that config to u-boot by default...
>
> Uhoh..
>
> Running uname_boot ...
> Failed to mount ext2 filesystem...
> loading /boot/vmlinuz-4.14.5-bone8 ...
> Failed to mount ext2 filesystem...
> data abort
> pc : [<9ff6fa90>]    lr : [<00000000>]
> reloc pc : [<80825a90>]    lr : [<e08b6000>]
> sp : 9df29148  ip : 82020000 fp : 0001f000
> r10: 000000cf  r9 : 9df29ed8 r8 : 82001000
> r7 : 0001d62f  r6 : 00001000 r5 : 0001df29  r4 : 9df542b7
> r3 : 00001000  r2 : 82000000 r1 : 00001000  r0 : 00000000
> Flags: nzCv  IRQs off  FIQs on  Mode SVC_32
> Resetting CPU ...
>
> resetting ...
>
> Don't compress files under /boot/*....

So btrfs in u-boot should handle both zlib and lzo

So while lzo has a bug at the moment, zlib works!

btrfs filesystem defragment -r -v -czlib /

root@beaglebone:~# df -h | grep mmc
/dev/mmcblk0p1   15G  956M   13G   8% /

(originally 1.7G)

I'm going to submit a bug to u-boot for lzo..

Regards,

-- 
Robert Nelson
https://rcn-ee.com/

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/CAOCHtYhEdxpx6Q3H7OMBWJ4O42uA%2BrCs%3Dxovs-20pHqtVNTA6A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to