All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] Problem loading boot script from ext4 mmc on sunxi H3
@ 2016-06-29  7:30 Michal Suchanek
       [not found] ` <20160629084523.GA1911@excalibur.cnev.de>
  0 siblings, 1 reply; 4+ messages in thread
From: Michal Suchanek @ 2016-06-29  7:30 UTC (permalink / raw)
  To: u-boot

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/00000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/000000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/00000
No ethernet found.
missing environment variable: bootfile
Retrieving file: pxelinux.cfg/0000
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
<DIR>       4096 .
<DIR>       4096 ..
<DIR>      16384 lost+found
<DIR>       4096 scripts
<DIR>       4096 tmp
<DIR>       4096 scratch
<DIR>       4842 debug
<DIR>      18704 lib
<DIR>          0 run
<DIR>          0 etc
               0 Makefile
<DIR>          0 home
<DIR>          0 media
               0 config-4.4.0-rc5-00131-gce3f5ce-dirty
<DIR>          0 boot
<DIR>          0 srv
<DIR>          0 dev
<DIR>          0 proc
<DIR>          0 bin
<DIR>          0 mnt
<DIR>          0 sys
<DIR>          0 include
<SYM>      98629 source
<DIR>          0 var
<DIR>          0 sbin
<DIR>          0 root
<DIR>          0 usr
<DIR>        647 opt

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] Problem loading boot script from ext4 mmc on sunxi H3
       [not found] ` <20160629084523.GA1911@excalibur.cnev.de>
@ 2016-06-29 10:30   ` Michal Suchanek
  2016-06-30 17:13     ` Robert Nelson
  0 siblings, 1 reply; 4+ messages in thread
From: Michal Suchanek @ 2016-06-29 10:30 UTC (permalink / raw)
  To: u-boot

Hello,

On 29 June 2016 at 10:45, Karsten Merker <merker@debian.org> 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.

Thanks

Michal

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] Problem loading boot script from ext4 mmc on sunxi H3
  2016-06-29 10:30   ` Michal Suchanek
@ 2016-06-30 17:13     ` Robert Nelson
  2016-07-08 11:19       ` Michal Suchanek
  0 siblings, 1 reply; 4+ messages in thread
From: Robert Nelson @ 2016-06-30 17:13 UTC (permalink / raw)
  To: u-boot

On Wed, Jun 29, 2016 at 5:30 AM, Michal Suchanek <hramrach@gmail.com> wrote:
> Hello,
>
> On 29 June 2016 at 10:45, Karsten Merker <merker@debian.org> 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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [U-Boot] Problem loading boot script from ext4 mmc on sunxi H3
  2016-06-30 17:13     ` Robert Nelson
@ 2016-07-08 11:19       ` Michal Suchanek
  0 siblings, 0 replies; 4+ messages in thread
From: Michal Suchanek @ 2016-07-08 11:19 UTC (permalink / raw)
  To: u-boot

Hello,

On 30 June 2016 at 19:13, Robert Nelson <robertcnelson@gmail.com> wrote:
> On Wed, Jun 29, 2016 at 5:30 AM, Michal Suchanek <hramrach@gmail.com> wrote:
>> Hello,
>>
>> On 29 June 2016 at 10:45, Karsten Merker <merker@debian.org> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-07-08 11:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-29  7:30 [U-Boot] Problem loading boot script from ext4 mmc on sunxi H3 Michal Suchanek
     [not found] ` <20160629084523.GA1911@excalibur.cnev.de>
2016-06-29 10:30   ` Michal Suchanek
2016-06-30 17:13     ` Robert Nelson
2016-07-08 11:19       ` Michal Suchanek

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.