From: Steven Scholz <steven.scholz@imc-berlin.de>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] TQM860L and JFFS2???
Date: Mon, 02 Jun 2003 18:43:32 +0200 [thread overview]
Message-ID: <3EDB7EB4.8080305@imc-berlin.de> (raw)
Hi there,
I want to use JFFS2 as root fs on a TQM860L board (with u-boot-0.3.0)
It has to flash banks:
Bank # 1: FUJITSU AM29LV160B (16 Mbit, bottom boot sect)
Size: 4 MB in 35 Sectors
Bank # 2: FUJITSU AM29LV160B (16 Mbit, bottom boot sect)
Size: 4 MB in 35 Sectors
I added a "CFG_CMD_JFFS2" to the CONFIG_COMMANDS and the lines
#define CFG_JFFS2_FIRST_BANK 1
#define CFG_JFFS2_FIRST_SECTOR 0
#define CFG_JFFS2_NUM_BANKS 1
in ./include/configs/TQM860L.h.
But when building the binary I always get :
ppc_8xx-ld -Bstatic -T
/home/scholz/Projekte/u-boot/board/tqm8xx/u-boot.lds -Ttext 0x40000000
-n cpu/mpc8xx/start.o \
--start-group board/tqm8xx/libtqm8xx.a
cpu/mpc8xx/libmpc8xx.a lib_ppc/libppc.a fs/jffs2/libjffs2.a
fs/fdos/libfdos.a net/libnet.a disk/libdisk.a rtc/librtc.a
dtt/libdtt.a drivers/libdrivers.a post/libpost.a post/cpu/libcpu.a
common/libcommon.a lib_generic/libgeneric.a --end-group \
-Map u-boot.map -o u-boot
/home/scholz/Projekte/u-boot/board/tqm8xx/u-boot.lds:137 cannot move
location counter backwards (from 40008124 to 40008000)
I tried different values for CFG_JFFS2_FIRST_BANK et.al.
But I have to admit I am not sure about their meanings! ;-)
Is CFG_JFFS2_FIRST_BANK=1 the second bank?
Is CFG_JFFS2_NUM_BANKS the number of banks used only for JFFS? Or the
total number of flash banks?
On a different board (DAB4K, with only one big flash bank) I just had
#define CFG_JFFS2_FIRST_BANK 0
#define CFG_JFFS2_FIRST_SECTOR 0
#define CFG_JFFS2_NUM_BANKS 1
and it worked.
How does the code find the JFFS partition? Just scanning the flash for
a bit of magic? (0x1985?)
Thanks a million in advance!
Steven
next reply other threads:[~2003-06-02 16:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-06-02 16:43 Steven Scholz [this message]
2003-06-02 19:59 ` [U-Boot-Users] TQM860L and JFFS2??? Wolfgang Denk
2003-06-04 8:33 ` Steven Scholz
2003-06-04 8:34 ` Steven Scholz
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=3EDB7EB4.8080305@imc-berlin.de \
--to=steven.scholz@imc-berlin.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