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

Bakhvalov, Denis (Nokia - PL/Wroclaw) denis.bakhvalov at nokia.com
Thu Feb 11 11:01:34 CET 2016


Hi Marek,

> 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.

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?

>>> 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?

Best regards,
Denis Bakhvalov


More information about the U-Boot mailing list