All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Andreas Färber" <afaerber@suse.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v4 0/6] Support for the Turris Omnia router
Date: Sun, 21 Jan 2018 13:39:15 +0100	[thread overview]
Message-ID: <cd82ba8b-1ca2-fd54-93d7-d2e1b26cea27@suse.de> (raw)
In-Reply-To: <724678A1-E801-4F67-B43F-8FAB58EE1911@prevas.dk>

Hi,

Am 20.01.2018 um 15:32 schrieb Sean Nyekjær:
> On 20 January 2018 10:07:57 CET, Stefan Roese <sr@denx.de> wrote:
>> On 20.01.2018 03:30, Andreas Färber wrote:
>>> Am 20.01.2018 um 02:40 schrieb Andreas Färber:
>>>> Am 18.01.2018 um 18:20 schrieb Stefan Roese:
>>>>> On 17.01.2018 16:52, Andreas Färber wrote:
>>>>>> Am 09.06.2017 um 19:28 schrieb Marek Behún:
>>>>>>> This is the fourth version of patches for adding support for the
>>>>>>> Turris Omnia board, a router developed by the CZ.NIC.
>>>>>>
>>>>>> I'm still facing trouble testing turris_omnia on latest v2018.01.
>>>>>>
>>>>>> First, that made me notice there's no README for how to test and
>> deploy.
>>>>>> I'm aware of temporary:
>>>>>> sendbeacon /dev/ttyUSBx
[...]
>>>>>> ./tools/kwboot -t -B 115200 /dev/ttyUSBx -b u-boot-spl.kwb -p
[...]
>>>>>> # or without -p when s/BOOT_FROM spi/BOOT_FROM uart/
>>>>>> and permanent:
>>>>>> tftpboot 0x1000000 u-boot-spl.kwb
>>>>>> sf probe
>>>>>> sf update 0x1000000 0 $filesize
>>>>>>
>>>>>> I used to have the original factory CZ.NIC U-Boot in SPI and
>> booted test
>>>>>> versions only via sendbeacon+kwboot.
>>>>>>
>>>>>> With mainline that appears to be broken - the CONFIG_ARMADA_38X
>> code in
>>>>>> arch/arm/mach-mvebu/spl.c seems to run into !boot_device and
>> instead of
>>>>>> UART tries to boot from SPI - nothing happens then and kwboot
>> complains.
>>>>>> I can force it to continue booting from UART by commenting out the
>> if.
>>>>>> So Stefan, it looks like your auto-detection is not working here
>> and the
>>>>>> Kconfig option to force it was dropped prematurely.
>>>>>
>>>>> Hmmm. Then some patch must have broken this UART boot-ability.
>> Could
>>>>> you by any chance git-bisect, to check which patch broke this
>>>>> functionality? Perhaps some of the newer patches from Sean
>> Nyekjaer?
>>>>
>>>> I've so far found that v2017.11 had UART boot working okay.
>>>
>>> git-bisect pointed to this commit:
>>>
>>> e83e2b390038c9075642cb243a6292241beb8d73 is the first bad commit
>>> commit e83e2b390038c9075642cb243a6292241beb8d73
>>> Author: Sean Nyekjaer <sean.nyekjaer@prevas.dk>
>>> Date:   Fri Nov 24 14:01:28 2017 +0100
>>>
>>>      arm: mvebu: fix boot from UART when in fallback mode
>>>
>>>      It's the first 8 bits of the bootrom error register that
>>>      contain the boot error/fallback error code. Let's check that
>>>      and continue to boot from UART.
>>>
>>>      Signed-off-by: Sean Nyekjaer <sean.nyekjaer@prevas.dk>
>>>      Signed-off-by: Stefan Roese <sr@denx.de>
>>>
>>> :040000 040000 c4c5cb4287ae8c3ced749a9734213a5844ddf1d9
>>> 772ec1e6401cbb2616b1337ff8757b72240458b3 M	arch
>>
>> Many thanks for digging into this. I'll try to check UART booting
>> with a A38x board sometime next week. Perhaps Sean already has
>> some ideas in the meantime...
> 
> What device are the Omnia booting from?

This is about UART boot not working. The regular boot device is SPI.

> I was fixing when booting from uart when the romloader does fallback from other devices.

I am testing UART boot forced by user via sendbeacon and kwboot tools,
as well as regular SPI based boot.

https://gitlab.labs.nic.cz/turris/misc/tree/master/sendbeacon

> What value does boot_device contain?

Since it's not taking the right return path for A38x, it must be zero.

Regards,
Andreas

-- 
SUSE Linux GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Felix Imendörffer, Jane Smithard, Graham Norton
HRB 21284 (AG Nürnberg)

  reply	other threads:[~2018-01-21 12:39 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-09 17:28 [U-Boot] [PATCH v4 0/6] Support for the Turris Omnia router Marek Behún
2017-06-09 17:28 ` [U-Boot] [PATCH v4 1/7] driver/ddr: Add support for setting timing in hws_topology_map Marek Behún
2018-01-10  2:49   ` Chris Packham
2017-06-09 17:28 ` [U-Boot] [PATCH v4 2/7] orion_wdt: Support for the Orion Watchdog Marek Behún
2017-06-09 17:28 ` [U-Boot] [PATCH v4 3/7] arch/arm/dts: Add Turris Omnia device tree Marek Behún
2017-07-07 11:58   ` Stefan Roese
2017-07-07 12:22     ` Marek Behún
2017-07-07 13:36       ` Stefan Roese
2017-06-09 17:28 ` [U-Boot] [PATCH v4 4/7] drivers/i2c/muxes/pca954x: Add pca9547 I2C mux support Marek Behún
2017-09-28 21:27   ` Chris Packham
2017-06-09 17:28 ` [U-Boot] [PATCH v4 5/7] drivers/misc: Add basic support for ATSHA204A Crypto module Marek Behún
2017-06-09 17:28 ` [U-Boot] [PATCH v4 6/7] marvell: armada385: Add the Turris Omnia board Marek Behún
2017-07-12  5:53 ` [U-Boot] [PATCH v4 0/6] Support for the Turris Omnia router Stefan Roese
2018-01-17 15:52 ` Andreas Färber
2018-01-18 17:20   ` Stefan Roese
2018-01-18 17:56     ` Andreas Färber
2018-01-20  1:40     ` Andreas Färber
2018-01-20  2:30       ` Andreas Färber
2018-01-20  9:07         ` Stefan Roese
2018-01-20 14:32           ` Sean Nyekjær
2018-01-21 12:39             ` Andreas Färber [this message]
2018-01-21 12:53               ` Sean Nyekjær
2018-01-22  7:57               ` Sean Nyekjær
2018-01-20  3:34       ` Andreas Färber
2018-01-20  9:48         ` [U-Boot] [EXT] " Kostya Porotchkin
2018-01-20 12:34           ` [U-Boot] mrvl_uart.sh and Turris Omnia (was: [EXT] Re: [PATCH v4 0/6] Support for the Turris Omnia router) Andreas Färber
2018-01-21  9:02             ` Kostya Porotchkin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cd82ba8b-1ca2-fd54-93d7-d2e1b26cea27@suse.de \
    --to=afaerber@suse.de \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.