[U-Boot] Problem with mounting a jffs2 partition on flash.

Marek Vasut marex at denx.de
Thu Feb 11 12:56:20 CET 2016


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.



More information about the U-Boot mailing list