Re: [U-Boot] Problem loading boot script from ext4 mmc on sunxi H3
Hello, On 30 June 2016 at 19:13, Robert Nelsonwrote: > On Wed, Jun 29, 2016 at 5:30 AM, Michal Suchanek wrote: >> Hello, >> >> On 29 June 2016 at 10:45, Karsten Merker wrote: >>> On Wed, Jun 29, 2016 at 09:30:33AM +0200, Michal Suchanek wrote: >>> I tried loading system with recent u-boot but it does not work. Trying some ext4ls shows there is some problem accessing the filesystem. Not sure if this should be attributed to the ext driver or to the mmc driver or something else entirely. >>> >>> I haven't tested that myself, but I have seen reports on other >>> platforms that the u-boot ext4 driver has problems with ext4 >>> filesystems which use the "flex_bg" filesystem feature, as that >>> causes certain changes to the on-disk layout compared to ext4 >>> without this feature. From what people have reported, it appears >>> that "flex_bg" is enabled by default on ext4 filesystems created >>> with a recent mkfs.ext4 version. >>> >> >> Reformatting without flex_bg does not seem to have any effect. >> >> However, ls seems to give some random stuff for directories other than >> / so some similar remapping feature could cause this. > > it's csum/64bit, disable it: > > mkfs.ext4 -O ^metadata_csum,^64bit > This works for me. If a fix is too difficult to roll out immediately at least an error message when trying to mount filesystem with unsupported features would be nice. Thanks Michal Cool cooler btw ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] Problem loading boot script from ext4 mmc on sunxi H3
On Wed, Jun 29, 2016 at 5:30 AM, Michal Suchanekwrote: > Hello, > > On 29 June 2016 at 10:45, Karsten Merker wrote: >> On Wed, Jun 29, 2016 at 09:30:33AM +0200, Michal Suchanek wrote: >> >>> I tried loading system with recent u-boot but it does not work. >>> >>> Trying some ext4ls shows there is some problem accessing the filesystem. >>> >>> Not sure if this should be attributed to the ext driver or to the mmc >>> driver or something else entirely. >> >> I haven't tested that myself, but I have seen reports on other >> platforms that the u-boot ext4 driver has problems with ext4 >> filesystems which use the "flex_bg" filesystem feature, as that >> causes certain changes to the on-disk layout compared to ext4 >> without this feature. From what people have reported, it appears >> that "flex_bg" is enabled by default on ext4 filesystems created >> with a recent mkfs.ext4 version. >> > > Reformatting without flex_bg does not seem to have any effect. > > However, ls seems to give some random stuff for directories other than > / so some similar remapping feature could cause this. it's csum/64bit, disable it: mkfs.ext4 -O ^metadata_csum,^64bit Regards, -- Robert Nelson https://rcn-ee.com/ ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] Problem loading boot script from ext4 mmc on sunxi H3
Hello, On 29 June 2016 at 10:45, Karsten Merkerwrote: > On Wed, Jun 29, 2016 at 09:30:33AM +0200, Michal Suchanek wrote: > >> I tried loading system with recent u-boot but it does not work. >> >> Trying some ext4ls shows there is some problem accessing the filesystem. >> >> Not sure if this should be attributed to the ext driver or to the mmc >> driver or something else entirely. > > I haven't tested that myself, but I have seen reports on other > platforms that the u-boot ext4 driver has problems with ext4 > filesystems which use the "flex_bg" filesystem feature, as that > causes certain changes to the on-disk layout compared to ext4 > without this feature. From what people have reported, it appears > that "flex_bg" is enabled by default on ext4 filesystems created > with a recent mkfs.ext4 version. > Reformatting without flex_bg does not seem to have any effect. However, ls seems to give some random stuff for directories other than / so some similar remapping feature could cause this. Thanks Michal ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
[U-Boot] Problem loading boot script from ext4 mmc on sunxi H3
Hello, I tried loading system with recent u-boot but it does not work. Trying some ext4ls shows there is some problem accessing the filesystem. Not sure if this should be attributed to the ext driver or to the mmc driver or something else entirely. Does this work for anybody? Any debug option to turn on? Thanks Michal U-Boot SPL 2016.07-rc2-00071-gc4ba89e (Jun 28 2016 - 16:53:32) DRAM: u MiB Trying to boot from MMC1 U-Boot 2016.07-rc2-00071-gc4ba89e (Jun 28 2016 - 16:53:32 +0200) Allwinner Technology CPU: Allwinner H3 (SUN8I 1680) Model: Xunlong Orange Pi One DRAM: 512 MiB MMC: SUNXI SD/MMC: 0 In:serial Out: serial Err: serial Net: No ethernet found. starting USB... USB0: USB EHCI 1.00 USB1: USB OHCI 1.0 scanning bus 0 for devices... 1 USB Device(s) found Hit any key to stop autoboot: 0 switch to partitions #0, OK mmc0 is current device Scanning mmc 0:1... USB device 0: unknown device No ethernet found. missing environment variable: pxeuuid missing environment variable: bootfile Retrieving file: pxelinux.cfg/ No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/000 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/00 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/0 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/ No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/000 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/00 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/0 No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/default-arm-sunxi No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/default-arm No ethernet found. missing environment variable: bootfile Retrieving file: pxelinux.cfg/default No ethernet found. Config file not found No ethernet found. No ethernet found. => ext4ls mmc 0:1 boot => ext4ls mmc 0:1 opt < ? > 0 nux/drivers/mmc/core/sdio_cis.h * * Author:Nicolas Pitre * Created:June 11, 2007 * Copyright:MontaVis => ext4ls mmc 0:1 var => ext4ls mmc 0:1 4096 . 4096 .. 16384 lost+found 4096 scripts 4096 tmp 4096 scratch 4842 debug 18704 lib 0 run 0 etc 0 Makefile 0 home 0 media 0 config-4.4.0-rc5-00131-gce3f5ce-dirty 0 boot 0 srv 0 dev 0 proc 0 bin 0 mnt 0 sys 0 include 98629 source 0 var 0 sbin 0 root 0 usr 647 opt ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot