public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Marek Vasut <marex@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] Problem with mounting a jffs2 partition on flash.
Date: Thu, 11 Feb 2016 12:56:20 +0100	[thread overview]
Message-ID: <56BC76E4.6040209@denx.de> (raw)
In-Reply-To: <BFEE4BD273371E48B6EB70F96CEC5B5403F6D63C@DEMUMBX007.nsn-intra.net>

On 02/11/2016 11:01 AM, Bakhvalov, Denis (Nokia - PL/Wroclaw) wrote:
> Hi Marek,

Hi Denis,

>> Please just use mainline everything. If you use Arria V SoCDK, you can
>> just grab 2016.01 , compile it and write u-boot-with-spl-dtb.sfp to
>> offset 0x0 of the QSPI and it should just magically work.
> 
> I haven't found the file with the name u-boot-with-spl-dtb.sfp.

How did you compile the U-Boot ? Make sure to clean up your sources
before the build. Try this method:

$ make socfpga_arria5_defconfig
$ make -j9

This will produce the file, I just tested it.

You can try make u-boot-with-spl-dtb.sfp in case you're desperate.

> denis at DendiMachine:~/WorkSpace/u-boot$ ls -l
> total 8544
> drwxrwxr-x   2 denis denis    4096 lut 10 22:46 api
> drwxrwxr-x  17 denis denis    4096 lut 10 22:46 arch
> drwxrwxr-x 201 denis denis    4096 lut 10 22:46 board
> drwxrwxr-x   2 denis denis    4096 sty 11 23:15 build
> drwxrwxr-x   2 denis denis   12288 lut 11 10:50 cmd
> drwxrwxr-x   4 denis denis   20480 lut 11 10:50 common
> -rw-rw-r--   1 denis denis    2260 sty 11 22:32 config.mk
> drwxrwxr-x   2 denis denis   61440 lut 10 22:46 configs
> drwxrwxr-x   2 denis denis    4096 lut 11 10:45 disk
> drwxrwxr-x   8 denis denis    4096 lut 10 22:46 doc
> drwxrwxr-x  46 denis denis    4096 lut 11 10:45 drivers
> drwxrwxr-x   2 denis denis    4096 lut 11 10:46 dts
> drwxrwxr-x   4 denis denis    4096 sty 11 22:32 examples
> drwxrwxr-x  12 denis denis    4096 lut 11 10:45 fs
> drwxrwxr-x  28 denis denis   12288 lut 11 10:45 include
> -rw-rw-r--   1 denis denis    1863 sty 11 22:32 Kbuild
> -rw-rw-r--   1 denis denis    7669 lut 10 22:46 Kconfig
> drwxrwxr-x  11 denis denis    4096 lut 11 10:50 lib
> drwxrwxr-x   2 denis denis    4096 lut 10 22:46 Licenses
> -rw-rw-r--   1 denis denis   10765 lut 10 22:46 MAINTAINERS
> -rwxrwxr-x   1 denis denis   23247 sty 11 22:32 MAKEALL
> -rw-rw-r--   1 denis denis   53021 lut 10 22:46 Makefile
> drwxrwxr-x   2 denis denis    4096 lut 11 10:46 net
> drwxrwxr-x   6 denis denis    4096 sty 11 22:32 post
> -rw-rw-r--   1 denis denis  235198 lut 10 22:46 README
> drwxrwxr-x   4 denis denis    4096 lut 10 22:46 scripts
> -rw-rw-r--   1 denis denis      17 sty 11 22:32 snapshot.commit
> drwxrwxr-x  11 denis denis    4096 lut 11 10:50 spl
> -rw-rw-r--   1 denis denis   75047 lut 11 10:46 System.map
> drwxrwxr-x  10 denis denis    4096 lut 11 10:46 test
> drwxrwxr-x  15 denis denis    4096 lut 11 10:50 tools
> -rwxrwxr-x   1 denis denis 3492298 lut 11 10:50 u-boot
> -rw-rw-r--   1 denis denis  431333 lut 11 10:50 u-boot.bin
> -rw-rw-r--   1 denis denis   26288 lut 11 10:46 u-boot.cfg
> -rw-rw-r--   1 denis denis   16301 lut 11 10:46 u-boot.dtb
> -rw-rw-r--   1 denis denis  431333 lut 11 10:50 u-boot-dtb.bin
> -rw-rw-r--   1 denis denis  431397 lut 11 10:46 u-boot-dtb.img
> -rw-rw-r--   1 denis denis  431397 lut 11 10:50 u-boot.img
> -rw-rw-r--   1 denis denis    1286 lut 11 10:46 u-boot.lds
> -rw-rw-r--   1 denis denis  561107 lut 11 10:50 u-boot.map
> -rw-rw-r--   1 denis denis  415032 lut 11 10:50 u-boot-nodtb.bin
> -rw-rw-r--   1 denis denis 1245202 lut 11 10:46 u-boot.srec
> -rw-rw-r--   1 denis denis  693541 lut 11 10:50 u-boot-with-spl.sfp
> 
> denis at DendiMachine:~/WorkSpace/u-boot$ ls ./spl/ -l
> total 1292
> drwxrwxr-x 3 denis denis   4096 lut 11 10:46 arch
> drwxrwxr-x 3 denis denis   4096 lut 11 10:46 board
> drwxrwxr-x 2 denis denis   4096 lut 11 10:46 cmd
> drwxrwxr-x 4 denis denis   4096 lut 11 10:46 common
> drwxrwxr-x 9 denis denis   4096 lut 11 10:46 drivers
> drwxrwxr-x 2 denis denis   4096 lut 11 10:46 dts
> drwxrwxr-x 2 denis denis   4096 lut 11 10:46 fs
> drwxrwxr-x 2 denis denis   4096 lut 11 10:45 include
> drwxrwxr-x 3 denis denis   4096 lut 11 10:50 lib
> -rwxrwxr-x 1 denis denis 932073 lut 11 10:50 u-boot-spl
> -rw-rw-r-- 1 denis denis  53943 lut 11 10:50 u-boot-spl.bin
> -rw-rw-r-- 1 denis denis  26129 lut 11 10:46 u-boot-spl.cfg
> -rw-rw-r-- 1 denis denis    903 lut 11 10:46 u-boot-spl.dtb
> -rw-rw-r-- 1 denis denis  53943 lut 11 10:50 u-boot-spl-dtb.bin
> -rw-rw-r-- 1 denis denis   1192 lut 11 10:46 u-boot-spl.lds
> -rw-rw-r-- 1 denis denis 137422 lut 11 10:50 u-boot-spl.map
> -rwxrwxr-x 1 denis denis  52880 lut 11 10:50 u-boot-spl-nodtb.bin
> -rw-rw-r-- 1 denis denis    160 lut 11 10:50 u-boot-spl-pad.bin
> -rw-rw-r-- 1 denis denis  65536 lut 11 10:50 u-boot-spl.sfp
> 
> There is only target "u-boot-with-spl.sfp".
> I'm a little bit confused which file is the proper one.
> Can I use u-boot-with-spl.sfp from the root folder?

You cannot, since it doesn't contain the DT blob, which describes the
arria5 socdk hardware. The board won't boot without it.

>>>> I was more interested in the procedure you used. I usually install mainline
>>>> U-Boot onto a board which boots from QSPI this way:
>>>
>>>> $ quartus_hps -c 1 -o PV -a 0x0 u-boot-with-spl-dtb.sfp
>>>
>>> Yes, exactly. But we have separated SPL and U-Boot images and put them separately (with two commands).
> 
>> Please don't :-)
> 
> Ok. Can you please briefly explain why?

Mixing and matching SPL versions is not supported ; it is well possible
the non-mainline SPL behaves differently or configures the hardware
differently than the mainline u-boot expects (it does), which might
result in odd behavior.

  reply	other threads:[~2016-02-11 11:56 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-08 10:56 [U-Boot] Problem with mounting a jffs2 partition on flash Bakhvalov, Denis
2016-02-08 11:41 ` Wolfgang Denk
2016-02-08 12:07   ` Bakhvalov, Denis
2016-02-08 12:22     ` Wolfgang Denk
2016-02-08 13:15       ` Calvin Johnson
2016-02-08 16:12       ` Marek Vasut
2016-02-09 15:36         ` Bakhvalov, Denis
2016-02-09 17:30           ` Marek Vasut
2016-02-10 13:18             ` Bakhvalov, Denis
2016-02-10 16:16               ` Marek Vasut
2016-02-11 10:01                 ` Bakhvalov, Denis
2016-02-11 11:56                   ` Marek Vasut [this message]
2016-02-11 12:45                     ` Bakhvalov, Denis
2016-02-11 12:53                       ` Marek Vasut
2016-02-11 14:02                         ` Bakhvalov, Denis
2016-02-11 14:56                           ` Marek Vasut
2016-02-11 15:29                             ` Bakhvalov, Denis
2016-02-11 15:45                               ` Marek Vasut
2016-02-12  8:44                                 ` Bakhvalov, Denis
2016-02-12 12:00                                   ` Marek Vasut
2016-02-12 13:15                                     ` Bakhvalov, Denis
2016-02-12 14:00                                     ` Bakhvalov, Denis
2016-02-12 15:09                                       ` Marek Vasut
2016-02-12 15:39                                         ` Bakhvalov, Denis
2016-02-12 15:44                                           ` Marek Vasut

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=56BC76E4.6040209@denx.de \
    --to=marex@denx.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