mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* TX53: Not Bootable from next tree
@ 2012-11-05 11:08 Christian Kapeller
  2012-11-05 12:52 ` Sascha Hauer
  0 siblings, 1 reply; 8+ messages in thread
From: Christian Kapeller @ 2012-11-05 11:08 UTC (permalink / raw)
  To: barebox

Hi,

I've just flashed barebox from the next tree onto a TX53-8030 module,
and have to report, that the board won't boot.

Currently I've tried to run it with MMU off and setting the text-base
to 0x71000000, with no positive results.

I'll do further investigation, but meanwhile does anyone have barebox
running on a TX53 board?

Cheers,
Christian

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: TX53: Not Bootable from next tree
  2012-11-05 11:08 TX53: Not Bootable from next tree Christian Kapeller
@ 2012-11-05 12:52 ` Sascha Hauer
  2012-11-05 13:27   ` Christian Kapeller
  0 siblings, 1 reply; 8+ messages in thread
From: Sascha Hauer @ 2012-11-05 12:52 UTC (permalink / raw)
  To: Christian Kapeller; +Cc: barebox

On Mon, Nov 05, 2012 at 12:08:10PM +0100, Christian Kapeller wrote:
> Hi,
> 
> I've just flashed barebox from the next tree onto a TX53-8030 module,
> and have to report, that the board won't boot.
> 
> Currently I've tried to run it with MMU off and setting the text-base
> to 0x71000000, with no positive results.
> 
> I'll do further investigation, but meanwhile does anyone have barebox
> running on a TX53 board?

I just tested that it works for me as second stage. I can't test 1st
stage atm as I currently have no physical access to the board.

Some guesses: Have you checked the correct the correct board revision in
the config? It's the default, so I assume it's correct.

Are you using the barebox-flash-image link or barebox.bin? You have to
use the former because it's a compressed image.

You might want to disable compressed image support in
 General settings ->
  memory layout ->
   [ ] pre-bootoloader image

And see if that works.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: TX53: Not Bootable from next tree
  2012-11-05 12:52 ` Sascha Hauer
@ 2012-11-05 13:27   ` Christian Kapeller
  0 siblings, 0 replies; 8+ messages in thread
From: Christian Kapeller @ 2012-11-05 13:27 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox


>> I've just flashed barebox from the next tree onto a TX53-8030 module,
>> and have to report, that the board won't boot.
>>
>> Currently I've tried to run it with MMU off and setting the text-base
>> to 0x71000000, with no positive results.
>>
>> I'll do further investigation, but meanwhile does anyone have barebox
>> running on a TX53 board?
> 
> I just tested that it works for me as second stage. I can't test 1st
> stage atm as I currently have no physical access to the board.

Until now I've used bb in a 2nd stage configuration on top of the supplied
Redboot, and it worked without any problem.

Additionally I had CONFIG_MACH_DO_LOW_LEVEL_INIT disabled which skips
another pll setup step, that was already done by Redboot.

> Some guesses: Have you checked the correct the correct board revision in
> the config? It's the default, so I assume it's correct.

Yes, I did check for the correct board revision, and am using the
correct one: CONFIG_TX53_REV_XX30=y

> Are you using the barebox-flash-image link or barebox.bin? You have to
> use the former because it's a compressed image.

I've noticed, that the link target changes depending on build
configuration. So I've flashed the file pointed to by barebox-flash-image.

> You might want to disable compressed image support in
>  General settings ->
>   memory layout ->
>    [ ] pre-bootoloader image

Just tried that, but without changed result.

Currently I am trying to get my PEEDI JTAG probe working with the
board, but until then I stay in the dark.

Cheers,
Christian

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: TX53: Not Bootable from next tree
  2012-11-12  8:33 ` Sascha Hauer
  2012-11-12 11:22   ` Peter Wippich
@ 2012-11-12 13:02   ` Christian Kapeller
  1 sibling, 0 replies; 8+ messages in thread
From: Christian Kapeller @ 2012-11-12 13:02 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox, g, Peter Wippich

Hi,

> In the meantime, could you try removing the call to
> imx53_init_lowlevel() and try booting 2nd stage (from U-Boot or
> redboot)?

2nd stage booting TX83-8030 from redboot works with and without call to
imx53_init_lowlevel (boards/karo-tx53/lowlevel.c)

I've also looked at the DCD sequence at the beginning of the redboot and
bb (CONFIG_PBL=y) binaries and saw, that what set's them appart is:

flash_header.entry RB: 0x8FFC0000
flash_header.entry BB: 0x71000000

flash_header.boot_data_size = 0x1fd87;
flash_header.boot_data_size = 0x40000;


Barebox has an additional DCD Item compared to redboot:

arch/arm/boards/karo-tx53/dcd-data-xx30.h line 15:
DCD_NAME_XX30[] = {
	DCD_WR_CMD(0x21c),
	DCD_ITEM(0x53fd4068, 0xffcc0fff),
	DCD_ITEM(0x53fd406c, 0x000fffc3),


The DCD_WR_CMD(0x21c) duplicates the the last entries of the
flash_header_section structure:

arch/arm/boards/karo-tx53/flash_header.h line 68:
	.dcd.command.tag	= DCD_COMMAND_WRITE_TAG,
#ifdef CONFIG_TX53_REV_1011
	.dcd.command.length	= cpu_to_be16(sizeof(struct imx_dcd_command) +
sizeof(dcd_entry)),
#elif defined(CONFIG_TX53_REV_XX30)
	.dcd.command.length	= cpu_to_be16(0x21c),

So the DCD_WR_CMD(0x21c) seems to be superfluous.



I've adjusted entry address, the boot_data_size, and removed the
DCD_WR_CMD entry, to match the flash header to that of redboot, and
flashed that. That didn't show any improvement.

Also here the situation is the same with and without imx53_init_lowlevel.


Cheers,
Christian


-- 
Christian Kapeller
cmotion GmbH
Kriehubergasse 16
1050 Wien / Austria
http://www.cmotion.eu

christian.kapeller@cmotion.eu
Phone: +43 1 789 1096 38

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: TX53: Not Bootable from next tree
  2012-11-12  8:33 ` Sascha Hauer
@ 2012-11-12 11:22   ` Peter Wippich
  2012-11-12 13:02   ` Christian Kapeller
  1 sibling, 0 replies; 8+ messages in thread
From: Peter Wippich @ 2012-11-12 11:22 UTC (permalink / raw)
  To: Sascha Hauer; +Cc: barebox, g




On Mon, 12 Nov 2012, Sascha Hauer wrote:

> On Tue, Nov 06, 2012 at 02:49:06PM +0100, Peter Wippich wrote:
>>
>> Hi,
>>
>> got the same problem here. Double checked Board Version (8030) and
>> that I have the right binary (compressed with flash header). After
>> flashing and reset nothing happens....
>
> I'm back in the office now and realized that we have the 1011
> revision in our remotelab. That at least explains why I can't reproduce
> this issue. Unfortunately I can't find the 8030 revision anywhere in the
> office, I'll wait for my collegue.
> In the meantime, could you try removing the call to
> imx53_init_lowlevel() and try booting 2nd stage (from U-Boot or
> redboot)?
>
> Sascha


Hi Sascha,

bad enough my test board is out for some customer tests. I'll try a second 
stage boot as soon as it is back.

Best regards,

Peter


>
> -- 
> Pengutronix e.K.                           |                             |
> Industrial Linux Solutions                 | http://www.pengutronix.de/  |
> Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
> Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
>


|       Peter Wippich                   Voice: +49 30 46776411          |
|       G&W Instruments GmbH            fax:   +49 30 46776419          |
|       Gustav-Meyer-Allee 25, Geb. 12  Email: pewi@gw-instruments.de   |
|       D-13355 Berlin  / Germany                                       |


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: TX53: Not Bootable from next tree
  2012-11-06 13:49 Peter Wippich
  2012-11-07  8:04 ` Sascha Hauer
@ 2012-11-12  8:33 ` Sascha Hauer
  2012-11-12 11:22   ` Peter Wippich
  2012-11-12 13:02   ` Christian Kapeller
  1 sibling, 2 replies; 8+ messages in thread
From: Sascha Hauer @ 2012-11-12  8:33 UTC (permalink / raw)
  To: Peter Wippich, g; +Cc: barebox

On Tue, Nov 06, 2012 at 02:49:06PM +0100, Peter Wippich wrote:
> 
> Hi,
> 
> got the same problem here. Double checked Board Version (8030) and
> that I have the right binary (compressed with flash header). After
> flashing and reset nothing happens....

I'm back in the office now and realized that we have the 1011
revision in our remotelab. That at least explains why I can't reproduce
this issue. Unfortunately I can't find the 8030 revision anywhere in the
office, I'll wait for my collegue.
In the meantime, could you try removing the call to
imx53_init_lowlevel() and try booting 2nd stage (from U-Boot or
redboot)?

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: TX53: Not Bootable from next tree
  2012-11-06 13:49 Peter Wippich
@ 2012-11-07  8:04 ` Sascha Hauer
  2012-11-12  8:33 ` Sascha Hauer
  1 sibling, 0 replies; 8+ messages in thread
From: Sascha Hauer @ 2012-11-07  8:04 UTC (permalink / raw)
  To: Peter Wippich; +Cc: barebox

On Tue, Nov 06, 2012 at 02:49:06PM +0100, Peter Wippich wrote:
> 
> Hi,
> 
> got the same problem here. Double checked Board Version (8030) and
> that I have the right binary (compressed with flash header). After
> flashing and reset nothing happens....
> 

I'll recheck when I'm back in the office next week. I have no idea what
is going wrong atm.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: TX53: Not Bootable from next tree
@ 2012-11-06 13:49 Peter Wippich
  2012-11-07  8:04 ` Sascha Hauer
  2012-11-12  8:33 ` Sascha Hauer
  0 siblings, 2 replies; 8+ messages in thread
From: Peter Wippich @ 2012-11-06 13:49 UTC (permalink / raw)
  To: barebox


Hi,

got the same problem here. Double checked Board Version (8030) and
that I have the right binary (compressed with flash header). After 
flashing and reset nothing happens....

Used default config tx53stk5_defconfig.

Swiched back to old u-boot for now.

Regards,

Peter


|       Peter Wippich                   Voice: +49 30 46776411          |
|       G&W Instruments GmbH            fax:   +49 30 46776419          |
|       Gustav-Meyer-Allee 25, Geb. 12  Email: pewi@gw-instruments.de   |
|       D-13355 Berlin  / Germany                                       |


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2012-11-12 13:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-05 11:08 TX53: Not Bootable from next tree Christian Kapeller
2012-11-05 12:52 ` Sascha Hauer
2012-11-05 13:27   ` Christian Kapeller
2012-11-06 13:49 Peter Wippich
2012-11-07  8:04 ` Sascha Hauer
2012-11-12  8:33 ` Sascha Hauer
2012-11-12 11:22   ` Peter Wippich
2012-11-12 13:02   ` Christian Kapeller

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