* [U-Boot-Users] TQM860L and JFFS2???
@ 2003-06-02 16:43 Steven Scholz
2003-06-02 19:59 ` Wolfgang Denk
2003-06-04 8:34 ` Steven Scholz
0 siblings, 2 replies; 4+ messages in thread
From: Steven Scholz @ 2003-06-02 16:43 UTC (permalink / raw)
To: u-boot
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot-Users] TQM860L and JFFS2???
2003-06-02 16:43 [U-Boot-Users] TQM860L and JFFS2??? Steven Scholz
@ 2003-06-02 19:59 ` Wolfgang Denk
2003-06-04 8:33 ` Steven Scholz
2003-06-04 8:34 ` Steven Scholz
1 sibling, 1 reply; 4+ messages in thread
From: Wolfgang Denk @ 2003-06-02 19:59 UTC (permalink / raw)
To: u-boot
In message <3EDB7EB4.8080305@imc-berlin.de> you wrote:
>
> I want to use JFFS2 as root fs on a TQM860L board (with u-boot-0.3.0)
...
> I added a "CFG_CMD_JFFS2" to the CONFIG_COMMANDS and the lines
...
> /home/scholz/Projekte/u-boot/board/tqm8xx/u-boot.lds:137 cannot move
> location counter backwards (from 40008124 to 40008000)
You have to adjust the linker script (board/tqm8xx/u-boot.lds); one
of the early sections grows because of youyr change, so it would
overlap the location with the environment sectors.
Best regards,
Wolfgang Denk
--
Software Engineering: Embedded and Realtime Systems, Embedded Linux
Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd at denx.de
Harrison's Postulate:
For every action, there is an equal and opposite criticism.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot-Users] TQM860L and JFFS2???
2003-06-02 19:59 ` Wolfgang Denk
@ 2003-06-04 8:33 ` Steven Scholz
0 siblings, 0 replies; 4+ messages in thread
From: Steven Scholz @ 2003-06-04 8:33 UTC (permalink / raw)
To: u-boot
Wolfgang Denk schrieb:
> In message <3EDB7EB4.8080305@imc-berlin.de> you wrote:
>
>>I want to use JFFS2 as root fs on a TQM860L board (with u-boot-0.3.0)
>
> ...
>
>>I added a "CFG_CMD_JFFS2" to the CONFIG_COMMANDS and the lines
>
> ...
>
>>/home/scholz/Projekte/u-boot/board/tqm8xx/u-boot.lds:137 cannot move
>>location counter backwards (from 40008124 to 40008000)
>
>
> You have to adjust the linker script (board/tqm8xx/u-boot.lds); one
> of the early sections grows because of youyr change, so it would
> overlap the location with the environment sectors.
>
Thanks for that hint! It's fine now.
Steven
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot-Users] TQM860L and JFFS2???
2003-06-02 16:43 [U-Boot-Users] TQM860L and JFFS2??? Steven Scholz
2003-06-02 19:59 ` Wolfgang Denk
@ 2003-06-04 8:34 ` Steven Scholz
1 sibling, 0 replies; 4+ messages in thread
From: Steven Scholz @ 2003-06-04 8:34 UTC (permalink / raw)
To: u-boot
It works now, but please again:
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?
How does the code find the JFFS partition? Just scanning the flash for
a bit of magic? (0x1985?)
Thanks,
Steven
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-06-04 8:34 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-02 16:43 [U-Boot-Users] TQM860L and JFFS2??? Steven Scholz
2003-06-02 19:59 ` Wolfgang Denk
2003-06-04 8:33 ` Steven Scholz
2003-06-04 8:34 ` Steven Scholz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox