U-Boot Archive on 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] arm: sunxi: initial support for NanoPi Neo2
Date: Wed, 24 May 2017 16:27:27 +0200	[thread overview]
Message-ID: <e06a7c82-8d45-c76f-00a2-2b50c1c52f0f@suse.de> (raw)
In-Reply-To: <b3772783-fa97-b59a-cc6a-ed614af99f12@arm.com>

Am 24.05.2017 um 14:44 schrieb Andre Przywara:
> On 24/05/17 12:50, Andreas Färber wrote:
>> Am 09.05.2017 um 14:43 schrieb Patrick Wildt:
>>> The NanoPi Neo2 is basically the same as the NanoPi Neo, but that they
>>> replaced the SoC with the 64-bit Allwinner H5 SoC.  Add a (64-bit only)
>>> defconfig defining the required options to build the U-Boot proper.
>>>
>>> Create a new .dts file for it by including the (32-bit) H3 SoC .dtsi
>>> and changing the differing components accordingly, like it's been
>>> done for the OrangePi PC 2.
>>>
>>> Signed-off-by: Patrick Wildt <patrick@blueri.se>
>>
>> I've tested this patch on top of yesterday's master branch
>> (4c78028737c3185f49f5691183aeac3478b5f699 "mksunxi_fit_atf.sh: Allow for
>> this to complete when bl31.bin is missing").
>>
>> Considering Tom's unanswered question, is there any diff to the upstream
>> kernel .dts? Expected would be to just copy the Linux .dts file here and
>> to state which tree and commit/tag it was taken from.
> 
> I think we have a similar diversion between Linux and U-Boot .dts here,
> given that the U-Boot support was merged earlier.
> Updating the DTs for H5 and the board(s) was on my plan, but it's a bit
> more involved since it affects the H3 .dts as well (H3 and H5 use a
> shared stub .dtsi now). Also the H5 .dtsi just got into Linux
> (4.12-rc1), so it hasn't been in an officially released kernel yet.
> 
>> Using this dtb here via UEFI distro boot, my openSUSE kernel image that
>> booted okay on orangepi_pc2 fails to find the MMC devices on Neo2,
>> although it obviously succeeded to boot from SD in U-Boot and GRUB...

Hmm, this may be related to my initrd being too big for 512 MB RAM:

[    0.298393] Unpacking initramfs...
[    3.619116] Initramfs unpacking failed: write error
[    3.671293] Freeing initrd memory: 72888K

>> Also, if I "reset" from the downstream or patched mainline U-Boot
>> prompt, SPL gets stuck:
>>
>> => reset
>> resetting ...
>> INFO:    PSCI Affinity Map:
>> INFO:      AffInst: Level 0, MPID 0x0, State ON
>> INFO:      AffInst: Level 0, MPID 0x1, State OFF
>> INFO:      AffInst: Level 0, MPID 0x2, State OFF
>> INFO:      AffInst: Level 0, MPID 0x3, State OFF
>>
>> U-Boot SPL 2017.05-00660-g4bffee2792 (May 24 2017 - 00:43:24)
>> DRAM: 512 MiB
>> Trying to boot from MMC1
>>
>>
>> If instead I unpower it (by plugging Micro USB), it boots okay:
>>
>> U-Boot SPL 2017.05-00660-g4bffee2792 (May 24 2017 - 00:43:24)
>> DRAM: 512 MiB
>> Trying to boot from MMC1
>> NOTICE:  BL3-1: Running in SRAM A2 (@0x44000)
>> NOTICE:  Configuring SPC Controller
>> NOTICE:  BL3-1: v1.0(debug):1.0~20160809T000419~45ab97e
>> NOTICE:  BL3-1: Built : 01:01:56, Nov 15 2016
> 
> Your ATF build is quite old, it doesn't really support the H5.
> Please you the latest HEAD[1], it should print the SoC name at the
> beginning, and then won't try to configure an AXP on the H5.

Switching from allwinner-scpi to allwinner branch I now see H5:

NOTICE:  BL3-1: Running on H5 (1718) in SRAM A2 (@0x44000)
NOTICE:  Configuring SPC Controller
NOTICE:  BL3-1: v1.0(debug):1.0~20170220T001539�aa75c8da
NOTICE:  BL3-1: Built : 12:54:47, May 24 2017
INFO:    BL3-1: Initializing runtime services
INFO:    BL3-1: Preparing for EL3 exit to normal world
INFO:    BL3-1: Next image address: 0x4a000000, SPSR: 0x3c9

but the reset issue persists. It appears to be a works-sometimes type
problem - could it depend on SRAM contents or something? (1 out of ~5)

Cheers,
Andreas

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

  parent reply	other threads:[~2017-05-24 14:27 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-09 12:43 [U-Boot] [PATCH] arm: sunxi: initial support for NanoPi Neo2 Patrick Wildt
2017-05-09 13:13 ` Tom Rini
2017-05-24 11:50 ` Andreas Färber
2017-05-24 12:44   ` Andre Przywara
2017-05-24 12:52     ` Tom Rini
2017-05-24 14:27     ` Andreas Färber [this message]
2017-06-01 12:45     ` Patrick Wildt
2017-06-01 12:57       ` Tom Rini
2017-06-01 14:04         ` Patrick Wildt
2017-06-01 14:53           ` Andreas Färber
2017-06-01 14:57             ` Jagan Teki
2017-06-01 15:56               ` Patrick Wildt
2017-06-01 15:57                 ` Tom Rini
2017-06-01 15:59                   ` Patrick Wildt
2017-06-01 16:03                     ` Tom Rini

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=e06a7c82-8d45-c76f-00a2-2b50c1c52f0f@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox