public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Brüns, Stefan" <Stefan.Bruens@rwth-aachen.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] ext4: crash when writing a file
Date: Mon, 23 Jan 2017 16:38:17 +0000	[thread overview]
Message-ID: <1913709.keHlVjZkVL@sbruens-linux> (raw)
In-Reply-To: <90bd01f1-165d-6fbb-3328-97b497c439d9@armadeus.com>

On Freitag, 20. Januar 2017 18:32:49 CET S?bastien Szymanski wrote:
[...]
> Then under the sandbox I do the following:
> 
> U-Boot 2017.01-00002-g558e41e-dirty (Jan 20 2017 - 16:19:47 +0100)
> 
> DRAM:  256 MiB
> MMC:
> Using default environment
> 
> In:    serial
> Out:   serial
> Err:   serial
> SCSI:  Net:   No ethernet found.
> IDE:   Bus 0: not available
> 
> => host bind 0 /tftproot/rootfs.raw
> 
> => ls host 0:2
> <DIR>       1024 .
> <DIR>       1024 ..
> <DIR>      16384 lost+found
> <DIR>       1024 var
> <DIR>       1024 run
> <DIR>       1024 root
> <DIR>       1024 media
> <DIR>       1024 mnt
> <DIR>       1024 tmp
> <SYM>          3 lib32
> <DIR>       1024 usr
> <DIR>       1024 proc
> <DIR>       1024 dev
> <DIR>       1024 boot
> <DIR>       1024 sys
> <DIR>       3072 sbin
> <DIR>       3072 bin
> <SYM>         11 linuxrc
> <DIR>       1024 etc
> <DIR>       1024 opt
> <DIR>       3072 lib
> 
> => ls host 0:2 /boot
> <DIR>       1024 .
> <DIR>       1024 ..
>            26909 imx6ul-opos6uldev.dtb
> <SYM>          1 dtbs
>          5359984 opos6ul-linux.bin
> 
> => host load hostfs - 0 /tftproot/opos6ul-linux.bin
> 5359984 bytes read in 2 ms (2.5 GiB/s)
> 
> => printenv filesize
> filesize=51c970
> 
> => ext4write host 0:2 0 /boot/opos6ul-linux.bin ${filesize}
> File System is consistent
> file found, deleting
> update journal finished
> File System is consistent
> update journal finished
> Segmentation fault

As you can repeat this under sandbox, the next step would be to run sandbox 
under gdb, e.g.:
$> gdb --args sandbox -c "host bind 0 /tftproot/rootfs.raw ; host load hostfs 
- 0 /tftproot/opos6ul-linux.bin ; ext4write host 0:2 0 /boot/opos6ul-linux.bin 
${filesize}"

Kind regards,

Stefan

  reply	other threads:[~2017-01-23 16:38 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-29  9:50 [U-Boot] ext4: crash when writing a file Sébastien Szymanski
2016-11-29 12:14 ` Brüns, Stefan
2016-11-29 13:10   ` Sébastien Szymanski
2016-11-29 14:38     ` Brüns, Stefan
2016-11-29 15:23       ` Sébastien Szymanski
2016-12-11 17:10         ` Stefan Bruens
2017-01-20 17:32   ` Sébastien Szymanski
2017-01-23 16:38     ` Brüns, Stefan [this message]
2017-01-24  9:58       ` Sébastien Szymanski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1913709.keHlVjZkVL@sbruens-linux \
    --to=stefan.bruens@rwth-aachen.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox