public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] U-Boot 2009.11.1 USB Issue and Building U-Boot 2013.07
@ 2013-09-03 20:53 Chuck Wical
  2013-09-03 22:45 ` Wolfgang Denk
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Chuck Wical @ 2013-09-03 20:53 UTC (permalink / raw)
  To: u-boot

First I am fairly new to U-Boot but over the last 2 weeks I have been going
through the README files and anything else I can find that would help
resolve the issue I have.  Here is a recap:

 

Currently the project I am working on was setup with U-Boot 2009-11-01 and
works just fine with one exception.  I was asked to find a solution where
our field support engineers could recover if a firmware update failed
causing our board to no longer boot.  Basically it cycles through RomBOOT
and U-Boot.  As I looked through the environment variables and commands I
came across the USB subsystem and found I could use fatload.  With our
system there are three files I need to load from USB, these are uImage,
etc.jff2 and rootfs.ext2.gz.uboot.  

 

I found if I used tftp these files transferred correctly and the board would
boot with the new files.  I thought the solution was found and I could
simply setup the same files using USB through environment variables.  The
script worked but the problem was when it tried to load rootfs into RAM it
would cause a CPU reset and RomBOOT to start.  At first I thought there was
something wrong with the script so I tried to load the file by typing it the
command but got the same result.

 

Command:

usb start

fatload usb 0 $(loadaddr) rootfs.ext2.gz.uboot  where loadaddr is the same
address used by tftp.

 

My first question is, is there a solution for this issue using U-Boot
2009.11.1? This version builds currently within our project.

Second question is I downloaded U-Boot 2013.07 but noticed huge change in
the build process.  I figured out the patches I need along with the AT91
configuration for our board.  We are using the arm926ej6 processor with a
board similar to at91sam9260ek.  When I try to build I get the
hardware.h:49:3 error: #error "Unsupported AT91 processor" message.  When I
look at the header file I see where it fails but I don't understand why
since I do have a matching define.  For some reason hardware.h is not seeing
this define and I am stumped as to why.  So any suggestions on how to solve
or figure this out would be appreciated.

 

Thanks!

 

Chuck 

 

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

* [U-Boot] U-Boot 2009.11.1 USB Issue and Building U-Boot 2013.07
  2013-09-03 20:53 [U-Boot] U-Boot 2009.11.1 USB Issue and Building U-Boot 2013.07 Chuck Wical
@ 2013-09-03 22:45 ` Wolfgang Denk
       [not found]   ` <005001cea968$9eaa58e0$dbff0aa0$@amanomcgann.com>
  2013-09-04  9:37 ` Jens Scharsig
  2013-09-05 10:09 ` Andreas Bießmann
  2 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Denk @ 2013-09-03 22:45 UTC (permalink / raw)
  To: u-boot

Dear Chuck,

In message <002b01cea8e7$b14fc5b0$13ef5110$@amanomcgann.com> you wrote:
>
> I found if I used tftp these files transferred correctly and the board would
> boot with the new files.  I thought the solution was found and I could
> simply setup the same files using USB through environment variables.  The
> script worked but the problem was when it tried to load rootfs into RAM it
> would cause a CPU reset and RomBOOT to start.  At first I thought there was
> something wrong with the script so I tried to load the file by typing it the
> command but got the same result.

Are you using the same load address in RAM with both the tftp and the
fatload commands?  Can you provide a complete console log of both the
working and the crashing cases?

> Command:
> 
> usb start
> 
> fatload usb 0 $(loadaddr) rootfs.ext2.gz.uboot  where loadaddr is the same
> address used by tftp.

Please show the complete commands, and all output.

> My first question is, is there a solution for this issue using U-Boot
> 2009.11.1? This version builds currently within our project.

We need to understand the problem beforeanybody could answer that...

> Second question is I downloaded U-Boot 2013.07 but noticed huge change in
> the build process.  I figured out the patches I need along with the AT91
> configuration for our board.  We are using the arm926ej6 processor with a
> board similar to at91sam9260ek.  When I try to build I get the
> hardware.h:49:3 error: #error "Unsupported AT91 processor" message.  When I
> look at the header file I see where it fails but I don't understand why
> since I do have a matching define.  For some reason hardware.h is not seeing
> this define and I am stumped as to why.  So any suggestions on how to solve
> or figure this out would be appreciated.

Well, 2009.11 is indeed extremely old.  With such an out-of-tree port
you are essentially lost.  Adapting the old patches to current
mainline is more or less the same effort as starting from scratch (and
probably even more so).

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Crash programs fail because they are based on the theory  that,  with
nine women pregnant, you can get a baby a month.  - Wernher von Braun

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

* [U-Boot] U-Boot 2009.11.1 USB Issue and Building U-Boot 2013.07
  2013-09-03 20:53 [U-Boot] U-Boot 2009.11.1 USB Issue and Building U-Boot 2013.07 Chuck Wical
  2013-09-03 22:45 ` Wolfgang Denk
@ 2013-09-04  9:37 ` Jens Scharsig
  2013-09-05 10:09 ` Andreas Bießmann
  2 siblings, 0 replies; 7+ messages in thread
From: Jens Scharsig @ 2013-09-04  9:37 UTC (permalink / raw)
  To: u-boot

Dear Chuck Wical

> usb start
> 
> fatload usb 0 $(loadaddr) rootfs.ext2.gz.uboot  where loadaddr is the same
> address used by tftp.
> 

Your load address 0 is wrong. On AT91 systems addresses greater than
0x20100000 should be used (RAM location).

Regards

jens

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

* [U-Boot] U-Boot 2009.11.1 USB Issue and Building U-Boot 2013.07
       [not found]   ` <005001cea968$9eaa58e0$dbff0aa0$@amanomcgann.com>
@ 2013-09-04 15:36     ` Wolfgang Denk
  2013-09-04 16:23       ` Chuck Wical
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Denk @ 2013-09-04 15:36 UTC (permalink / raw)
  To: u-boot

Dear Chuck,

please always keep the mailing list on Cc:

And please don't top post / full quote.  Thanks.

In message <005001cea968$9eaa58e0$dbff0aa0$@amanomcgann.com> you wrote:
> 
> Thank you for the reply!  Yes the same loadaddr is used for both tftp
> and fatload as follows:  loadaddr=0x21000000

OK.

> I'm not sure what you mean by a complete console log so a little
> direction would be helpful so I can provide what you are asking for.  I

Please copy all input and all output of your system into a file and
include this with your posting.  For example, you coul use the
"script" command, or your terminal emulator may have a logging
feature, or you could simply use copy & paste.

> can tell you when I run the commands manually I get the same result each
> time.  I have attached a txt file that shows what happens when I run the
> command.  At the bottom of the file I included the environment
> variables. If you look at the variable usbgetrootfs this is the command
> being run.

I cannot see any such attachment.


Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
When the bosses talk about improving  productivity,  they  are  never
talking about themselves.

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

* [U-Boot] U-Boot 2009.11.1 USB Issue and Building U-Boot 2013.07
  2013-09-04 15:36     ` Wolfgang Denk
@ 2013-09-04 16:23       ` Chuck Wical
  0 siblings, 0 replies; 7+ messages in thread
From: Chuck Wical @ 2013-09-04 16:23 UTC (permalink / raw)
  To: u-boot

Wolfgang,

> please always keep the mailing list on Cc:
My apologies but in my line of work I have to be careful about reply all so there are times I hit reply automatically.

> And please don't top post / full quote.  Thanks.
Again, my apologies since I keep all emails in thread form here at work for reference.  I will do my best to not top post on these forms.

> I cannot see any such attachment.
I failed to attached the file.  It is now attached.  It is just a copy & paste but yes, GtkTerm does have a method to save the screen.  It's probably easier to just copy and paste.   And before anything is said about what is used for a console it simply works the best for my application.

Chuck Wical
Embedded Software Engineer

Amano McGann, Inc.
651 Taft Street, NE
Minneapolis, MN 55413
Tel:  612-331-2020
Fax:  612-331-5187
Chuck.Wical at AmanoMcGann.com


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: u-boot-2009-usb.txt
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20130904/eb2bbb5b/attachment.txt>

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

* [U-Boot] U-Boot 2009.11.1 USB Issue and Building U-Boot 2013.07
  2013-09-03 20:53 [U-Boot] U-Boot 2009.11.1 USB Issue and Building U-Boot 2013.07 Chuck Wical
  2013-09-03 22:45 ` Wolfgang Denk
  2013-09-04  9:37 ` Jens Scharsig
@ 2013-09-05 10:09 ` Andreas Bießmann
  2013-09-05 19:39   ` Chuck Wical
  2 siblings, 1 reply; 7+ messages in thread
From: Andreas Bießmann @ 2013-09-05 10:09 UTC (permalink / raw)
  To: u-boot

Dear Chuck Wical,

On 09/03/2013 10:53 PM, Chuck Wical wrote:
> First I am fairly new to U-Boot but over the last 2 weeks I have been going
> through the README files and anything else I can find that would help
> resolve the issue I have.  Here is a recap:
> 
> Currently the project I am working on was setup with U-Boot 2009-11-01 and
> works just fine with one exception.  I was asked to find a solution where
> our field support engineers could recover if a firmware update failed
> causing our board to no longer boot.  Basically it cycles through RomBOOT
> and U-Boot.  As I looked through the environment variables and commands I
> came across the USB subsystem and found I could use fatload.  With our
> system there are three files I need to load from USB, these are uImage,
> etc.jff2 and rootfs.ext2.gz.uboot.

you could also use fatload on mmc. Do you have some mmc in your device?

> I found if I used tftp these files transferred correctly and the board would
> boot with the new files.  I thought the solution was found and I could
> simply setup the same files using USB through environment variables.  The
> script worked but the problem was when it tried to load rootfs into RAM it
> would cause a CPU reset and RomBOOT to start.  At first I thought there was
> something wrong with the script so I tried to load the file by typing it the
> command but got the same result.

I tested the 2009.11.1 release on my 9263ek here and can confirm, that
the usb support there is really buggy. It doesn't support current
storage devices, seems to behave differently every time I access the
device (timeouts, ...).
I managed however to load a 16MiB file via usb storage successfully.

> Command:
> 
> usb start
> 
> fatload usb 0 $(loadaddr) rootfs.ext2.gz.uboot  where loadaddr is the same
> address used by tftp.

That's in general correct.

> My first question is, is there a solution for this issue using U-Boot
> 2009.11.1? This version builds currently within our project.

As these are my first steps with 2009.11.1 and usb storage I can't say
it. You could backport current usb stack to have better support. On the
other hand porting your board forward isn't that hard.

> Second question is I downloaded U-Boot 2013.07 but noticed huge change in
> the build process.  I figured out the patches I need along with the AT91
> configuration for our board.  We are using the arm926ej6 processor with a
> board similar to at91sam9260ek.  When I try to build I get the
> hardware.h:49:3 error: #error "Unsupported AT91 processor" message.  When I

HAve a look at 9260ek config, it is still in current releases and builds
at least. I rarely test the built on real hardware, at the moment I only
have an sam9263ek handy.

> look at the header file I see where it fails but I don't understand why
> since I do have a matching define.  For some reason hardware.h is not seeing
> this define and I am stumped as to why.  So any suggestions on how to solve
> or figure this out would be appreciated.

If you plan to integrate your patches into mainline, we could help to
adopt them where needed.

Best regards

Andreas Bie?mann

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

* [U-Boot] U-Boot 2009.11.1 USB Issue and Building U-Boot 2013.07
  2013-09-05 10:09 ` Andreas Bießmann
@ 2013-09-05 19:39   ` Chuck Wical
  0 siblings, 0 replies; 7+ messages in thread
From: Chuck Wical @ 2013-09-05 19:39 UTC (permalink / raw)
  To: u-boot

Hello Andreas,

Thanks for the reply!

> Dear Chuck Wical,
> 
> On 09/03/2013 10:53 PM, Chuck Wical wrote:
> > First I am fairly new to U-Boot but over the last 2 weeks I have been
> > going through the README files and anything else I can find that would
> > help resolve the issue I have.  Here is a recap:
> >
> > Currently the project I am working on was setup with U-Boot 2009-11-01
> > and works just fine with one exception.  I was asked to find a
> > solution where our field support engineers could recover if a firmware
> > update failed causing our board to no longer boot.  Basically it
> > cycles through RomBOOT and U-Boot.  As I looked through the
> > environment variables and commands I came across the USB subsystem
> and
> > found I could use fatload.  With our system there are three files I
> > need to load from USB, these are uImage,
> > etc.jff2 and rootfs.ext2.gz.uboot.
> 
> you could also use fatload on mmc. Do you have some mmc in your device?

We do have mmc slots available on the board but U-Boot is not configured to
use mmc.  I don't know why that is as it would have made perfect sense to do
so.  In the meantime,  I am trying to figure out how to enable mmc but
running into a little difficulty.  To put it simply, I just do not know
where to enable it or where to look.  I will keep trying but a little
guidance would be very much appreciated.

> 
> > I found if I used tftp these files transferred correctly and the board
> > would boot with the new files.  I thought the solution was found and I
> > could simply setup the same files using USB through environment
> > variables.  The script worked but the problem was when it tried to
> > load rootfs into RAM it would cause a CPU reset and RomBOOT to start.
> > At first I thought there was something wrong with the script so I
> > tried to load the file by typing it the command but got the same result.
> 
> I tested the 2009.11.1 release on my 9263ek here and can confirm, that the
> usb support there is really buggy. It doesn't support current storage
devices,
> seems to behave differently every time I access the device (timeouts,
...).
> I managed however to load a 16MiB file via usb storage successfully.

The size of file I am trying to load is <7MiB but with your comments above
it makes me wonder if a timeout is occurring thus forcing the reboot.

> 
> > Command:
> >
> > usb start
> >
> > fatload usb 0 $(loadaddr) rootfs.ext2.gz.uboot  where loadaddr is the
> > same address used by tftp.
> 
> That's in general correct.
> 
> > My first question is, is there a solution for this issue using U-Boot
> > 2009.11.1? This version builds currently within our project.
> 
> As these are my first steps with 2009.11.1 and usb storage I can't say it.
You
> could backport current usb stack to have better support. On the other hand
> porting your board forward isn't that hard.
> 
> > Second question is I downloaded U-Boot 2013.07 but noticed huge change
> > in the build process.  I figured out the patches I need along with the
> > AT91 configuration for our board.  We are using the arm926ej6
> > processor with a board similar to at91sam9260ek.  When I try to build
> > I get the
> > hardware.h:49:3 error: #error "Unsupported AT91 processor" message.
> > When I
> 
> HAve a look at 9260ek config, it is still in current releases and builds
at least. I
> rarely test the built on real hardware, at the moment I only have an
> sam9263ek handy.

I will take a look and yes, we are using real hardware and I do not have
access to a sam9263ek either.

> 
> > look at the header file I see where it fails but I don't understand
> > why since I do have a matching define.  For some reason hardware.h is
> > not seeing this define and I am stumped as to why.  So any suggestions
> > on how to solve or figure this out would be appreciated.
> 
> If you plan to integrate your patches into mainline, we could help to
adopt
> them where needed.

I have no plans to incorporate the patches into mainline as they seem very
specific to our board and configuration.

> 
> Best regards
> 
> Andreas Bie?mann

Cheers

Chuck Wical

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

end of thread, other threads:[~2013-09-05 19:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-03 20:53 [U-Boot] U-Boot 2009.11.1 USB Issue and Building U-Boot 2013.07 Chuck Wical
2013-09-03 22:45 ` Wolfgang Denk
     [not found]   ` <005001cea968$9eaa58e0$dbff0aa0$@amanomcgann.com>
2013-09-04 15:36     ` Wolfgang Denk
2013-09-04 16:23       ` Chuck Wical
2013-09-04  9:37 ` Jens Scharsig
2013-09-05 10:09 ` Andreas Bießmann
2013-09-05 19:39   ` Chuck Wical

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