* [U-Boot] FEL mode broken since "sunxi: Move all boards to the driver-model"
@ 2015-06-26 19:50 Ian Campbell
2015-06-28 15:28 ` Hans de Goede
0 siblings, 1 reply; 6+ messages in thread
From: Ian Campbell @ 2015-06-26 19:50 UTC (permalink / raw)
To: u-boot
Hi Hans,
Sorry for only just noticing this, but it looks like FEL mode doesn't
work on my cubietruck since this commit. I get the SPL output:
U-Boot SPL 2015.04-00665-gb6006ba (Jun 26 2015 - 20:38:50)
DRAM: 2048 MiB
CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
But then nothing.
Or have I missed some change in how I should be using it?
Later versions (with CONFIG_FEL gone) exhibit similar behaviour when
using the new "spl fel" method too, so I got that memo at least...
u-boot-sunxi.git#next has the issue too.
Do you know what this is likely to be or shall I try and find some time
to investigate?
Ian.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot] FEL mode broken since "sunxi: Move all boards to the driver-model"
2015-06-26 19:50 [U-Boot] FEL mode broken since "sunxi: Move all boards to the driver-model" Ian Campbell
@ 2015-06-28 15:28 ` Hans de Goede
2015-06-29 9:59 ` Ian Campbell
2015-06-30 7:33 ` [U-Boot] FEL mode broken since "sunxi: Move all boards to the driver-model" Ian Campbell
0 siblings, 2 replies; 6+ messages in thread
From: Hans de Goede @ 2015-06-28 15:28 UTC (permalink / raw)
To: u-boot
Hi,
On 26-06-15 21:50, Ian Campbell wrote:
> Hi Hans,
>
> Sorry for only just noticing this, but it looks like FEL mode doesn't
> work on my cubietruck since this commit. I get the SPL output:
>
> U-Boot SPL 2015.04-00665-gb6006ba (Jun 26 2015 - 20:38:50)
> DRAM: 2048 MiB
> CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
>
> But then nothing.
Right, that is expected, all the "fel spl" command does is load the
spl, you need to do something like this to fel boot:
sudo ~hans/bin/fel version
echo Write SPL
sudo ~hans/bin/fel spl u-boot-sunxi-with-spl.bin
echo Exec SPL
sudo ~hans/bin/fel exe 0x2000
sleep 0.5
echo Write u-boot
sudo ~hans/bin/fel write 0x4a000000 u-boot-dtb.bin
echo Exec u-boot
sudo ~hans/bin/fel exe 0x4a000000
Are you doing that ? Also note that you now need to use
u-boot-dtb.bin not u-boot.bin .
> Or have I missed some change in how I should be using it?
>
> Later versions (with CONFIG_FEL gone) exhibit similar behaviour when
> using the new "spl fel" method too, so I got that memo at least...
>
> u-boot-sunxi.git#next has the issue too.
>
> Do you know what this is likely to be
See above.
> or shall I try and find some time
> to investigate?
If that is not it it would be greay if you can find some time to
investigate this.
Regards,
Hans
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot] FEL mode broken since "sunxi: Move all boards to the driver-model"
2015-06-28 15:28 ` Hans de Goede
@ 2015-06-29 9:59 ` Ian Campbell
2015-07-01 7:52 ` [U-Boot] FEL mode broken since Bernhard Nortmann
2015-06-30 7:33 ` [U-Boot] FEL mode broken since "sunxi: Move all boards to the driver-model" Ian Campbell
1 sibling, 1 reply; 6+ messages in thread
From: Ian Campbell @ 2015-06-29 9:59 UTC (permalink / raw)
To: u-boot
On Sun, 2015-06-28 at 17:28 +0200, Hans de Goede wrote:
> Hi,
>
> On 26-06-15 21:50, Ian Campbell wrote:
> > Hi Hans,
> >
> > Sorry for only just noticing this, but it looks like FEL mode doesn't
> > work on my cubietruck since this commit. I get the SPL output:
> >
> > U-Boot SPL 2015.04-00665-gb6006ba (Jun 26 2015 - 20:38:50)
> > DRAM: 2048 MiB
> > CPU: 912000000Hz, AXI/AHB/APB: 3/2/2
> >
> > But then nothing.
>
> Right, that is expected, all the "fel spl" command does is load the
> spl,
Ah, I had (na?vely?) expected that since it took
u-boot-sunxi-with-spl.bin as an argument it would do the second half
too.
I would have expected this to become necessary at with "sunxi: Support
the FEL boot mode in the regular u-boot build" rather than at "sunxi:
Move all boards to the driver-model".
Anyway, I'll try your suggested path tonight. I'm pretty certain that'll
end up being it.
> Also note that you now need to use
> u-boot-dtb.bin not u-boot.bin .
Noted, I probably would have got that wrong too, so thanks.
Ian.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot] FEL mode broken since
2015-06-29 9:59 ` Ian Campbell
@ 2015-07-01 7:52 ` Bernhard Nortmann
0 siblings, 0 replies; 6+ messages in thread
From: Bernhard Nortmann @ 2015-07-01 7:52 UTC (permalink / raw)
To: u-boot
Ian Campbell <ijc+uboot <at> hellion.org.uk> writes:
>
> I would have expected this to become necessary at with "sunxi: Support
> the FEL boot mode in the regular u-boot build" rather than at "sunxi:
> Move all boards to the driver-model".
>
> Anyway, I'll try your suggested path tonight. I'm pretty certain that'll
> end up being it.
>
> > Also note that you now need to use
> > u-boot-dtb.bin not u-boot.bin .
>
> Noted, I probably would have got that wrong too, so thanks.
>
> Ian.
>
I've fooled myself on this too - and thought it to be a problem in the SPL
-> main U-Boot transition. Of course I had not adapted my FEL script, and
missed the u-boot-dtb.bin requirement.
After the necessary adjustments U-Boot (v2015.07-rc2) starts just fine via
FEL. This should probably be improved in sunxi-tools, so the 'fel' utility
gracefully handles both parts of the u-boot-sunxi-with-spl.bin.
Regards, B. Nortmann
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot] FEL mode broken since "sunxi: Move all boards to the driver-model"
2015-06-28 15:28 ` Hans de Goede
2015-06-29 9:59 ` Ian Campbell
@ 2015-06-30 7:33 ` Ian Campbell
2015-07-03 23:06 ` Simon Glass
1 sibling, 1 reply; 6+ messages in thread
From: Ian Campbell @ 2015-06-30 7:33 UTC (permalink / raw)
To: u-boot
On Sun, 2015-06-28 at 17:28 +0200, Hans de Goede wrote:
> Right, that is expected, all the "fel spl" command does is load the
> spl, you need to do something like this to fel boot:
This worked, thanks. Couple of notes:
>
> sudo ~hans/bin/fel version
> echo Write SPL
> sudo ~hans/bin/fel spl u-boot-sunxi-with-spl.bin
FWIW also works with spl/sunxi-spl.bin.
> echo Exec SPL
> sudo ~hans/bin/fel exe 0x2000
Doesn't seem to be needed, it's done part of the above the above spl
command.
> sleep 0.5
> echo Write u-boot
> sudo ~hans/bin/fel write 0x4a000000 u-boot-dtb.bin
> echo Exec u-boot
> sudo ~hans/bin/fel exe 0x4a000000
I think it ought to be possible to update the usb-boot script to use
"fel spl" and relax the SPL size restriction in that script accordingly,
I'll take a look.
Ian.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [U-Boot] FEL mode broken since "sunxi: Move all boards to the driver-model"
2015-06-30 7:33 ` [U-Boot] FEL mode broken since "sunxi: Move all boards to the driver-model" Ian Campbell
@ 2015-07-03 23:06 ` Simon Glass
0 siblings, 0 replies; 6+ messages in thread
From: Simon Glass @ 2015-07-03 23:06 UTC (permalink / raw)
To: u-boot
Hi Ian / Hans,
On 30 June 2015 at 01:33, Ian Campbell <ijc+uboot@hellion.org.uk> wrote:
> On Sun, 2015-06-28 at 17:28 +0200, Hans de Goede wrote:
>> Right, that is expected, all the "fel spl" command does is load the
>> spl, you need to do something like this to fel boot:
>
> This worked, thanks. Couple of notes:
>
>>
>> sudo ~hans/bin/fel version
>> echo Write SPL
>> sudo ~hans/bin/fel spl u-boot-sunxi-with-spl.bin
>
> FWIW also works with spl/sunxi-spl.bin.
>
>> echo Exec SPL
>> sudo ~hans/bin/fel exe 0x2000
>
> Doesn't seem to be needed, it's done part of the above the above spl
> command.
>
>> sleep 0.5
>> echo Write u-boot
>> sudo ~hans/bin/fel write 0x4a000000 u-boot-dtb.bin
>> echo Exec u-boot
>> sudo ~hans/bin/fel exe 0x4a000000
>
> I think it ought to be possible to update the usb-boot script to use
> "fel spl" and relax the SPL size restriction in that script accordingly,
> I'll take a look.
>
> Ian.
It would be nice to have a doc/README.sunxi or similar which describes
how to use FEL and how to create a bootable SD card.
Regards,
Simon
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2015-07-03 23:06 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-26 19:50 [U-Boot] FEL mode broken since "sunxi: Move all boards to the driver-model" Ian Campbell
2015-06-28 15:28 ` Hans de Goede
2015-06-29 9:59 ` Ian Campbell
2015-07-01 7:52 ` [U-Boot] FEL mode broken since Bernhard Nortmann
2015-06-30 7:33 ` [U-Boot] FEL mode broken since "sunxi: Move all boards to the driver-model" Ian Campbell
2015-07-03 23:06 ` Simon Glass
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox