Skip to contentSkip to conversation

barebox on i.MX53 in serial downloader boot mode

DISCUSSION Wjatscheslaw Stoljarski (Slawa) 3 participants 10 messages Nov 4, 2013 – Nov 6, 2013

lore
Share & tools
lore
#0 lore raw

Hi,

has anyone tried to start barebox on i.MX53 in 11 boot mode (serial downloader)? I've tried on Freescale Loco board with pmic da9053, but without success. In 00 boot mode (internal boot) works perfectly. U-Boot works in both modes. DCD in u-boot and in barebox is the same. Even I can turn on LEDs with DCD in 11 boot mode on Loco.

Regards,
Wjatscheslaw Stoljarski

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#1 lore raw

Hi,

Quoted 6 lines · Wjatscheslaw Stoljarski (Slawa)

has anyone tried to start barebox on i.MX53 in 11 boot mode (serial downloader)? I've tried on Freescale Loco board with pmic da9053, but without success. In 00 boot mode (internal boot) works perfectly. U-Boot works in both modes. DCD in u-boot and in barebox is the same. Even I can turn on LEDs with DCD in 11 boot mode on Loco.

works fine here, what are you using to download barebox ?

Eric

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#2 lore raw
Quoted 8 lines · Eric Bénard

Hi,

Quoted 6 lines

has anyone tried to start barebox on i.MX53 in 11 boot mode (serial downloader)? I've tried on Freescale Loco board with pmic da9053, but without success. In 00 boot mode (internal boot) works perfectly. U-Boot works in both modes. DCD in u-boot and in barebox is the same. Even I can turn on LEDs with DCD in 11 boot mode on Loco.

works fine here, what are you using to download barebox ?

I'm using imx-usb-loader. But I've tried MfgTool from Freescale too with the same result.

Wjatscheslaw

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#3 lore raw

Hi Wjatscheslaw,

Quoted 8 lines · Wjatscheslaw Stoljarski (Slawa)
Quoted 7 lines · Eric Bénard

Hi,

Quoted 6 lines

has anyone tried to start barebox on i.MX53 in 11 boot mode (serial downloader)? I've tried on Freescale Loco board with pmic da9053, but without success. In 00 boot mode (internal boot) works perfectly. U-Boot works in both modes. DCD in u-boot and in barebox is the same. Even I can turn on LEDs with DCD in 11 boot mode on Loco.

Quoted 4 lines
Quoted 1 line

works fine here, what are you using to download barebox ?

I'm using imx-usb-loader. But I've tried MfgTool from Freescale too with the same result.

ok sorry it's working here (on a custom board) in 11 boot mode but using serial port to load it. IIRC USB was only tested in 00 as a fallback when NAND flash is blank.

Eric

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#4 lore raw
Quoted 15 lines · Eric Bénard

Hi Wjatscheslaw,

Quoted 9 lines · Wjatscheslaw Stoljarski (Slawa)
Quoted 8 lines · Eric Bénard

Hi,

Quoted 6 lines

has anyone tried to start barebox on i.MX53 in 11 boot mode (serial downloader)? I've tried on Freescale Loco board with pmic da9053, but without success. In 00 boot mode (internal boot) works perfectly. U-Boot works in both modes. DCD in u-boot and in barebox is the same. Even I can turn on LEDs with DCD in 11 boot mode on Loco.

works fine here, what are you using to download barebox ?

Quoted 8 lines
Quoted 3 lines

I'm using imx-usb-loader. But I've tried MfgTool from Freescale too with the same result.

ok sorry it's working here (on a custom board) in 11 boot mode but using serial port to load it. IIRC USB was only tested in 00 as a fallback when NAND flash is blank.

Eric

Sorry, I forget to mention that I'm using serial downloader via USB.

Hm... I've just tried to boot u-boot image in 11 mode, and from u-boot start barebox. And it's works. Why then can I not boot barebox directly?

Wjatscheslaw

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#5 lore raw
Quoted 23 lines · Wjatscheslaw Stoljarski (Slawa)
Quoted 22 lines · Eric Bénard

Hi Wjatscheslaw,

Quoted 8 lines · Wjatscheslaw Stoljarski (Slawa)
Quoted 7 lines · Eric Bénard

Hi,

Quoted 6 lines

has anyone tried to start barebox on i.MX53 in 11 boot mode (serial downloader)? I've tried on Freescale Loco board with pmic da9053, but without success. In 00 boot mode (internal boot) works perfectly. U-Boot works in both modes. DCD in u-boot and in barebox is the same. Even I can turn on LEDs with DCD in 11 boot mode on Loco.

Quoted 4 lines
Quoted 1 line

works fine here, what are you using to download barebox ?

I'm using imx-usb-loader. But I've tried MfgTool from Freescale too with the same result.

ok sorry it's working here (on a custom board) in 11 boot mode but using serial port to load it. IIRC USB was only tested in 00 as a fallback when NAND flash is blank.

Quoted 6 lines
Quoted 1 line

Eric

Sorry, I forget to mention that I'm using serial downloader via USB.

Hm... I've just tried to boot u-boot image in 11 mode, and from u-boot start barebox. And it's works. Why then can I not boot barebox directly?

maybe a clock which is left unitialized (or an IOMUX).

Eric

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#6 lore raw
Quoted 28 lines · Eric Bénard
Quoted 24 lines · Wjatscheslaw Stoljarski (Slawa)
Quoted 23 lines · Eric Bénard

Hi Wjatscheslaw,

Quoted 8 lines · Wjatscheslaw Stoljarski (Slawa)
Quoted 7 lines · Eric Bénard

Hi,

Quoted 6 lines

has anyone tried to start barebox on i.MX53 in 11 boot mode (serial downloader)? I've tried on Freescale Loco board with pmic da9053, but without success. In 00 boot mode (internal boot) works perfectly. U-Boot works in both modes. DCD in u-boot and in barebox is the same. Even I can turn on LEDs with DCD in 11 boot mode on Loco.

Quoted 4 lines
Quoted 1 line

works fine here, what are you using to download barebox ?

I'm using imx-usb-loader. But I've tried MfgTool from Freescale too with the same result.

ok sorry it's working here (on a custom board) in 11 boot mode but using serial port to load it. IIRC USB was only tested in 00 as a fallback when NAND flash is blank.

Eric

Quoted 8 lines
Quoted 5 lines

Sorry, I forget to mention that I'm using serial downloader via USB.

Hm... I've just tried to boot u-boot image in 11 mode, and from u-boot start barebox. And it's works. Why then can I not boot barebox directly?

maybe a clock which is left unitialized (or an IOMUX).

Eric

I've already tried to turn on all clocks

mww 32 0x53FD4068 0xffffffff
mww 32 0x53FD406c 0xffffffff
mww 32 0x53FD4070 0xffffffff
mww 32 0x53FD4074 0xffffffff
mww 32 0x53FD4078 0xffffffff
mww 32 0x53FD407c 0xffffffff
mww 32 0x53FD4080 0xffffffff
mww 32 0x53FD4084 0xffffffff

but without success.

Wjatscheslaw

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#7 lore raw
In reply to Wjatscheslaw Stoljarski (Slawa)

Hi Wjatscheslaw,

Quoted 8 lines · Wjatscheslaw Stoljarski (Slawa)

Hi,

has anyone tried to start barebox on i.MX53 in 11 boot mode (serial downloader)? I've tried on Freescale Loco board with pmic da9053, but without success. In 00 boot mode (internal boot) works perfectly. U-Boot works in both modes. DCD in u-boot and in barebox is the same. Even I can turn on LEDs with DCD in 11 boot mode on Loco.

The imx-usb-loader tool generally works here. I don't have a DA9053 based Loco here. It may be that there is some bug in the code preventing this board to run.

I just did a quick:

git checkout master
make imx_v7_defconfig
cat images/barebox-freescale-imx53-loco.img > /dev/sde

The resulting SD card works here.

Could you try booting from SD card? Does that work?

Sascha

Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#8 lore raw

Hi Sascha,

Quoted 5 lines · Sascha Hauer

Hi Wjatscheslaw,

Quoted 2 lines · Wjatscheslaw Stoljarski (Slawa)

Hi,

Quoted 7 lines
Quoted 6 lines

has anyone tried to start barebox on i.MX53 in 11 boot mode (serial downloader)? I've tried on Freescale Loco board with pmic da9053, but without success. In 00 boot mode (internal boot) works perfectly. U-Boot works in both modes. DCD in u-boot and in barebox is the same. Even I can turn on LEDs with DCD in 11 boot mode on Loco.

The imx-usb-loader tool generally works here.

Yes, I can with the imx-usb-loader boot a u-boot image, but not barebox.

Quoted 3 lines

I don't have a DA9053
based Loco here. It may be that there is some bug in the code preventing this board to run.

May be. But I have the exact same result with a custom board that uses the MC34709VK PMIC.

Quoted 9 lines

I just did a quick:

git checkout master
make imx_v7_defconfig
cat images/barebox-freescale-imx53-loco.img > /dev/sde

The resulting SD card works here.

Could you try booting from SD card? Does that work?

In 00 boot mode it boots fine from SD and from USB. I just checked again. I have trouble with the 11 boot mode.

Wjatscheslaw

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#9 lore raw
Quoted 27 lines · Wjatscheslaw Stoljarski (Slawa)

Hi Sascha,

Quoted 5 lines · Sascha Hauer

Hi Wjatscheslaw,

Quoted 2 lines · Wjatscheslaw Stoljarski (Slawa)

Hi,

Quoted 7 lines
Quoted 6 lines

has anyone tried to start barebox on i.MX53 in 11 boot mode (serial downloader)? I've tried on Freescale Loco board with pmic da9053, but without success. In 00 boot mode (internal boot) works perfectly. U-Boot works in both modes. DCD in u-boot and in barebox is the same. Even I can turn on LEDs with DCD in 11 boot mode on Loco.

The imx-usb-loader tool generally works here.

Yes, I can with the imx-usb-loader boot a u-boot image, but not barebox.

Quoted 3 lines

I don't have a DA9053
based Loco here. It may be that there is some bug in the code preventing this board to run.

May be. But I have the exact same result with a custom board that uses the MC34709VK PMIC.

Quoted 6 lines

I just did a quick:

git checkout master
make imx_v7_defconfig
cat images/barebox-freescale-imx53-loco.img > /dev/sde

Quoted 5 lines
Quoted 3 lines

The resulting SD card works here.

Could you try booting from SD card? Does that work?

In 00 boot mode it boots fine from SD and from USB. I just checked again. I have trouble with the 11 boot mode.

Hm, sorry, I'm out of ideas. Does the output of imx-usb-loader give a clue? Are the output messages different between '00' and '11' bootmode? (try the -v option to imx-usb-loader)

Sascha

Signature · 9 lines
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
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox