All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Simek <monstr@monstr.eu>
To: u-boot@lists.denx.de
Subject: [U-Boot] Xilinx Zed Board resets with Master
Date: Tue, 01 Apr 2014 15:20:36 +0200	[thread overview]
Message-ID: <533ABD24.1020202@monstr.eu> (raw)
In-Reply-To: <1869748.2O04FD8Mds@dabox>

Hi Tim,

On 03/28/2014 04:20 PM, Tim Sander wrote:
> Hi Michal
>> On 03/27/2014 05:32 PM, Tim Sander wrote:
>>> Hi Michal
>>>
>>> Am Donnerstag, 27. M?rz 2014, 14:17:41 schrieb Michal Simek:
>>>>>>>> Please check and may be you can try u-boot-dtb.elf.
>>>>>>>
>>>>>>> Mh,  don't know how to create this kind of file?
>>>>>>
>>>>>> Jagan maybe knows more but I don't think u-boot-dtb.elf is generated.
>>>>>> Just u-boot-dtb.bin is generated which should be copied as data file
>>>>>> in xmd and not sure if binary file can be directly used for bootgen.
>>>
>>> If adding the dtb file in the boot.bif file is not the right way and no
>>> elf file with dtb is generated: What is the right way to generate an
>>> image for use with the SD-Card?
>>
>> you can just use static u-boot configuration.
> I assume you mean static configuration a config with OF_CONTROL disabled.
> Ok, i have tried to boot that with bootgen. That does not work.
> Loading that into memory and booting it from within the debugger works
> though. In both cases with or without OF_CONTROL enabled.

ok. I am not using bootgen that's why good that you have
at least one config which is working. Feel free to use xilinx
u-boot from github which is synchronized with mainline code.

>> I have never tried to add dtb as partition to boot.bin.
>> If you want to use this dtb driver u-boot I would suggest you
>> to look at u-boot SPL which should be able to handle binary formats
>> with dtbs.
> So my main focus is to test CONFIG_ARMV7_NONSEC to boot linux in 
> normal mode. I wanted to test recent mainline with that. So focusing on 
> u-boot SPL is to far off my targets. So i am happy with hardware debugger 
> loadeing for the time beeing.

ok.

> Getting back to CONFIG_ARMV7_NONSEC. This is unfortunatly not working with the 
> Zynq.  Currently the board switches to monitor mode but when the u-boot 
> switches to normal mode it jumps to PC:0xc  (LR:0x10) which seems like a data 
> abort exeption or some other secure mode violation exception?
> Is there a good way to find out what happened? I am currently stuck with this 
> and my local FAE has also no idea. Attached is a patch which at least works 
> until the return from the monitor mode.

yes I know. I have got an email from you some days ago but haven't answered it yet.
I haven't played with it but at least I am aware about the code which is working
on zynq.
Look at this repo
https://github.com/serngawy/OpenVirtualization
it is secure monitor code which does exactly what you have described
switching from monitor mode to normal mode.

Albert could know more about proper u-boot behaviour how this should be handled.

Thanks,
Michal



-- 
Michal Simek, Ing. (M.Eng), OpenPGP -> KeyID: FE3D1F91
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel - Microblaze cpu - http://www.monstr.eu/fdt/
Maintainer of Linux kernel - Xilinx Zynq ARM architecture
Microblaze U-BOOT custodian and responsible for u-boot arm zynq platform


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 263 bytes
Desc: OpenPGP digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20140401/769deb2a/attachment.pgp>

  reply	other threads:[~2014-04-01 13:20 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-27  8:08 [U-Boot] Xilinx Zed Board resets with Master Tim Sander
2014-03-27  8:21 ` Michal Simek
2014-03-27  8:50   ` Jagan Teki
2014-03-27 10:33     ` Tim Sander
2014-03-27 12:01       ` Michal Simek
2014-03-27 12:05         ` Michal Simek
2014-03-27 12:11         ` Jagan Teki
2014-03-27 13:17           ` Michal Simek
2014-03-27 16:32             ` Tim Sander
2014-03-27 16:46               ` Michal Simek
2014-03-28 15:20                 ` Tim Sander
2014-04-01 13:20                   ` Michal Simek [this message]
2014-04-03  9:27                   ` Tim Sander
2014-04-03  9:28                     ` Michal Simek

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=533ABD24.1020202@monstr.eu \
    --to=monstr@monstr.eu \
    --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.