public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot-Users] the ppc405ep u-boot (with jffs2 configure)  failed
@ 2004-09-27 17:38 Tyler Jia
  0 siblings, 0 replies; 7+ messages in thread
From: Tyler Jia @ 2004-09-27 17:38 UTC (permalink / raw)
  To: u-boot

Hello,


   I am a new user, try to get the u-boot(with jffs2)
work on a ppc405ep board(32M Ram, 8M flash disk, one
serial port, one network port), it will has one
partition for u-boot(128k), the rest make one jffs2
partition, the kernel and initrd will locate in this
JFFS2 partition.
 
   First I build the u-boot.bin without configure
jffs2 support, installed it to 405ep board flash
memory, it works well, when turn on power, from serial
port, I could get the prompt => and excute the u-boot
command like setenv, saveenv. 

  But after I configure u-boot JFFS2 support in
include/configs/PPC405EPVV.h, add 4 lines:

#define CONFIG_COMMANDS		( CFG_CMD_JFFS2 )

#define CFG_JFFS2_FIRST_BANK    0    
#define CFG_JFFS2_FIRST_SECTOR  0
#define CFG_JFFS2_NUM_BANKS     1

(the 8M flash memery havs one bank, 64 sector.)

after make compile, I load this jffs2 configured 
 u-boot.bin to flash memory, turn on power, but
nothing happened on serial port, no display, no prompt
=>, could not type command, it seems u-boot crashed.

 I could not figure out how to fix the problem that
adding jffs2 support crashed the u-boot.


thanks


Tyler 

   

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot-Users] the ppc405ep u-boot (with jffs2 configure) failed
@ 2004-09-27 18:22 Tyler Jia
  2004-09-27 20:34 ` Wolfgang Denk
  0 siblings, 1 reply; 7+ messages in thread
From: Tyler Jia @ 2004-09-27 18:22 UTC (permalink / raw)
  To: u-boot

Hello,


   I am a new user, try to get the u-boot(with jffs2)
work on a ppc405ep board(32M Ram, 8M flash disk, one
serial port, one network port), it will has one
partition for u-boot(128k), the rest make one jffs2
partition, the kernel and initrd will locate in this
JFFS2 partition.
 
   First I build the u-boot.bin without configure
jffs2 support, installed it to 405ep board flash
memory, it works well, when turn on power, from serial
port, I could get the prompt => and excute the u-boot
command like setenv, saveenv. 

  But after I configure u-boot JFFS2 support in
include/configs/PPC405EPVV.h, add 4 lines:

#define CONFIG_COMMANDS		( CFG_CMD_JFFS2 )

#define CFG_JFFS2_FIRST_BANK    0    
#define CFG_JFFS2_FIRST_SECTOR  0
#define CFG_JFFS2_NUM_BANKS     1

(the 8M flash memery havs one bank, 64 sector.)

after make compile, I load this jffs2 configured 
 u-boot.bin to flash memory, turn on power, but
nothing happened on serial port, no display, no prompt
=>, could not type command, it seems u-boot crashed.

 I could not figure out how to fix the problem that
adding jffs2 support crashed the u-boot.


thanks


Tyler 



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot-Users] the ppc405ep u-boot (with jffs2 configure) failed
  2004-09-27 18:22 Tyler Jia
@ 2004-09-27 20:34 ` Wolfgang Denk
  0 siblings, 0 replies; 7+ messages in thread
From: Wolfgang Denk @ 2004-09-27 20:34 UTC (permalink / raw)
  To: u-boot

In message <20040927182244.23840.qmail@web53408.mail.yahoo.com> you wrote:
> 
>    I am a new user, try to get the u-boot(with jffs2)
> work on a ppc405ep board(32M Ram, 8M flash disk, one
> serial port, one network port), it will has one
> partition for u-boot(128k), the rest make one jffs2
> partition, the kernel and initrd will locate in this
> JFFS2 partition.

So you have at least these two partitions, right?

>   But after I configure u-boot JFFS2 support in
> include/configs/PPC405EPVV.h, add 4 lines:
> 
> #define CONFIG_COMMANDS		( CFG_CMD_JFFS2 )
> 
> #define CFG_JFFS2_FIRST_BANK    0    
> #define CFG_JFFS2_FIRST_SECTOR  0
> #define CFG_JFFS2_NUM_BANKS     1
> 
> (the 8M flash memery havs one bank, 64 sector.)

How many partitions did you configure here, and which sizes  do  they
have?

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
Prediction is very difficult, especially of the future.  - Niels Bohr

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot-Users] the ppc405ep u-boot (with jffs2 configure) failed
       [not found] <20040927213207.91645.qmail@web53408.mail.yahoo.com>
@ 2004-09-27 22:07 ` Wolfgang Denk
  0 siblings, 0 replies; 7+ messages in thread
From: Wolfgang Denk @ 2004-09-27 22:07 UTC (permalink / raw)
  To: u-boot

[Please keep the list on Cc:  so  everybodye  else  can  access  this
information, too.]

In message <20040927213207.91645.qmail@web53408.mail.yahoo.com> you wrote:
> 
> > How many partitions did you configure here, and
> > which sizes  do  they
> > have?
> 
> I just have two partitions: one for u-boot, one for
> jffs2,  for u-boot from 0xfffe0000 to 0xffff0000(on
> sector 63, 128k), for jffs2 from 0xfff80000 to
> 0xfffe000, (from sector 0 - 62  8064k).

How big is your U-Boot image?

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
The important thing about being a leader is not being right or wrong,
but being *certain*.                    - Terry Pratchett, _Truckers_

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot-Users] the ppc405ep u-boot (with jffs2 configure) failed
       [not found] <20040928134227.42956.qmail@web53405.mail.yahoo.com>
@ 2004-09-28 15:35 ` Wolfgang Denk
  0 siblings, 0 replies; 7+ messages in thread
From: Wolfgang Denk @ 2004-09-28 15:35 UTC (permalink / raw)
  To: u-boot

In message <20040928134227.42956.qmail@web53405.mail.yahoo.com> you wrote:
> 
> > How big is your U-Boot image?
> 
> after u-boot make, create  3 u-boot files, 
> 
>             no jffs2       with jffs2   
>                           
> u-boot.bin = 131071         131071  
> u-boot     = 185893         204816
> u-boot.srec= 395482         396146

Are you sure? Is this really 131071 bytes? That would mean  that  the
last byte of flash does not get written to - it should be exactly 128
kB  (also, this sounds too small to me; with a decent set of features
U-boot will not fit in this image). Check your u-boot.map file and/or
the output of objdump -h to make sure you don;t have any  overlapping
sections defined in your linker script.

And please keep the list Cc:ed.

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
"There is no distinctly American criminal class except Congress."
- Mark Twain

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot-Users] the ppc405ep u-boot (with jffs2 configure) failed
       [not found] <20040928171537.6055.qmail@web53410.mail.yahoo.com>
@ 2004-09-28 17:32 ` Wolfgang Denk
  2004-09-28 21:09   ` Tyler Jia
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Denk @ 2004-09-28 17:32 UTC (permalink / raw)
  To: u-boot

In message <20040928171537.6055.qmail@web53410.mail.yahoo.com> you wrote:
> 
> > > > How big is your U-Boot image?
...
> > >             no jffs2       with jffs2   
> > >                           
> > > u-boot.bin = 131071         131071  
>     so sorry ,   131072         131072  

Arghh... <It's really difficult to help when you come up with  random
numbers.

> > U-boot will not fit in this image). Check your
> > u-boot.map file and/or
> > the output of objdump -h to make sure you don;t have
> > any  overlapping
> > sections defined in your linker script.
...
> with jffs2 u-boot.map info:
> ............
>  .bss.NetArpWaitPacketBuf
>                 0xfffffb5c      0x620
> net/libnet.a(net.o)
>                 0xfffffb5c               
> NetArpWaitPacketBuf
>  
> .sbss.NetArpWaitTimerStart
>                 0x0000017c        0x4
>  .sbss.NetArpWaitTimerStart
>                 0x0000017c        0x4

Gotcha!!!

> it seems jffs2 u-boot go out of size.

Indeed. As I mentioned before: 128 kB seems too small to me.

>  I need redefine the size of u-boot.bin and the
> env-offset, env-addr in configure file
> /include/configs/PPC405EPVV.h,  could you give me 
> some info to do this correct? 

Reduce TEXT_BASE in your config.mk file.

> > And please keep the list Cc:ed.
> 
>     sorry,  Cc:ed ?

Add  a  "Cc:   <U-Boot-Users@lists.sourceforge.net>"   header   line,
probably  by  using  "reply  to  all" or whatever your MUA names this
function.

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
The price of curiosity is a terminal experience.
                         - Terry Pratchett, _The Dark Side of the Sun_

^ permalink raw reply	[flat|nested] 7+ messages in thread

* [U-Boot-Users] the ppc405ep u-boot (with jffs2 configure) failed
  2004-09-28 17:32 ` [U-Boot-Users] the ppc405ep u-boot (with jffs2 configure) failed Wolfgang Denk
@ 2004-09-28 21:09   ` Tyler Jia
  0 siblings, 0 replies; 7+ messages in thread
From: Tyler Jia @ 2004-09-28 21:09 UTC (permalink / raw)
  To: u-boot

thanks!!!  thanks!!!

as your said,
 
After add 128k to size of u-boot.bin, the u-boot with
JFFS2 configure comes up serial port.
I could run setenv and saveenv command.

in ../board/ppc405epvv/config.mk, 
changed from TEXT_BASE = 0xFFFE0000 to 0xFFFC0000  
add 128k.

also:
in ../include/configs/PPC405EPVV.h changed from:
#define CFG_MONITOR_BASE        0xFFFE0000      /*
last 128 kB */  
to 0xFFFC0000, /*last 256K */.

changed from
#define CFG_MONITOR_LEN         (128 * 1024) 
to 256*1024


Tyler Jia






--- Wolfgang Denk <wd@denx.de> wrote:

> In message
> <20040928171537.6055.qmail@web53410.mail.yahoo.com>
> you wrote:
> > 
> > > > > How big is your U-Boot image?
> ...
> > > >             no jffs2       with jffs2   
> > > >                           
> > > > u-boot.bin = 131071         131071  
> >     so sorry ,   131072         131072  
> 
> Arghh... <It's really difficult to help when you
> come up with  random
> numbers.
> 
> > > U-boot will not fit in this image). Check your
> > > u-boot.map file and/or
> > > the output of objdump -h to make sure you don;t
> have
> > > any  overlapping
> > > sections defined in your linker script.
> ...
> > with jffs2 u-boot.map info:
> > ............
> >  .bss.NetArpWaitPacketBuf
> >                 0xfffffb5c      0x620
> > net/libnet.a(net.o)
> >                 0xfffffb5c               
> > NetArpWaitPacketBuf
> >  
> > .sbss.NetArpWaitTimerStart
> >                 0x0000017c        0x4
> >  .sbss.NetArpWaitTimerStart
> >                 0x0000017c        0x4
> 
> Gotcha!!!
> 
> > it seems jffs2 u-boot go out of size.
> 
> Indeed. As I mentioned before: 128 kB seems too
> small to me.
> 
> >  I need redefine the size of u-boot.bin and the
> > env-offset, env-addr in configure file
> > /include/configs/PPC405EPVV.h,  could you give me 
> > some info to do this correct? 
> 
> Reduce TEXT_BASE in your config.mk file.
> 
> > > And please keep the list Cc:ed.
> > 
> >     sorry,  Cc:ed ?
> 
> Add  a  "Cc:   <U-Boot-Users@lists.sourceforge.net>"
>   header   line,
> probably  by  using  "reply  to  all" or whatever
> your MUA names this
> function.
> 
> 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
> The price of curiosity is a terminal experience.
>                          - Terry Pratchett, _The
> Dark Side of the Sun_
> 



		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2004-09-28 21:09 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20040928171537.6055.qmail@web53410.mail.yahoo.com>
2004-09-28 17:32 ` [U-Boot-Users] the ppc405ep u-boot (with jffs2 configure) failed Wolfgang Denk
2004-09-28 21:09   ` Tyler Jia
     [not found] <20040928134227.42956.qmail@web53405.mail.yahoo.com>
2004-09-28 15:35 ` Wolfgang Denk
     [not found] <20040927213207.91645.qmail@web53408.mail.yahoo.com>
2004-09-27 22:07 ` Wolfgang Denk
2004-09-27 18:22 Tyler Jia
2004-09-27 20:34 ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2004-09-27 17:38 Tyler Jia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox