Re: [U-Boot] U-boot-2012.04 compilation for qemu-mips board

2013-07-01 Thread krishna dwivedi
Hi Wolfgang,

Thanks for yours valuable time and support.U-boot got compiled for
qemu-mips board.

Regards,
Krishna


On Mon, Jul 1, 2013 at 5:19 PM, Wolfgang Denk  wrote:

> Dear krishna dwivedi,
>
> please stop top posting / full quoting.
>
> In message  agan2ilvqknsojcnchp3qk...@mail.gmail.com> you wrote:
> >
> > I knew i have to run make qemu_mips_config before make allI am using ELDK
> > 5.3 toolchain and compiling u-boot recipe came as a part of ELDK..But in
> > yocto environment,we use bitbake instead of make.I already tried make:
> > [unknown@h229 build]$ make qemu_mips_config
> > make: *** No rule to make target `qemu_mips_config'.  Stop.
> >
> > I guess i need command analogous to make qemu_mips_config to run before
> > bitbake u-boot.
>
> No.  You must make sure that your u-boot recipe contains the correct
> commands to run make qemu_mips_config first.
>
> But this is actually a bitbake / Yocto issue, and as such off topic
> here.
>
> Best regards,
>
> Wolfgang Denk
>
> --
> DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
> Quantum Mechanics is God's version of "Trust me."
>
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] U-boot2013:07-Recompile with -fPIC error for mips64 board

2013-07-01 Thread krishna dwivedi
Hi Amit,

Sure.But i am trying to compile U-boot for default board qemu-mips without
any changes  that is supported in boards.cfg.

Regards,
Krishna




On Mon, Jul 1, 2013 at 4:24 PM, Amit Virdi  wrote:

> Krishna,
>
>
> On 7/1/2013 4:15 PM, krishna dwivedi wrote:
>
>> Hi Wolfgang,
>>
>> Can you please let me know on which mips board you have compiled this
>> u-boot now.
>>
>>
> Please understand that the u-boot community supports only those platforms
> whose support has been mainlined. If you are making changes to the u-boot
> for your custom board, then the community may not be of much help. For your
> case, you must contact your hardware provider (Cavium or whatever it is).
>
> You can see all the MIPS boards supported by the community by looking at
> boards.cfg file.
>
> And please follow the community rules strictly (such as avoiding top
> posting etc.) if you want a genuine response. Otherwise, your messages
> would be considered simply as noise and no one would bother to respond.
>
> Regards
> Amit Virdi
>
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] U-boot2013:07-Recompile with -fPIC error for mips64 board

2013-07-01 Thread krishna dwivedi
Hi Wolfgang,

Can you please let me know on which mips board you have compiled this
u-boot now.

Regards,
Krishna


On Mon, Jul 1, 2013 at 3:28 PM, Wolfgang Denk  wrote:

> Dear krishna dwivedi,
>
> please don't top post / full quote!!
>
> In message  m1evpjpkmmib0yvnmvqjnca5wznv...@mail.gmail.com> you wrote:
> >
> > Can you please reply on this.
>
> I can reply, but I cannot help you.
>
> > > I am using xlp832 mips64  netlogic board.I referred these steps from
> > > u-boot README file.
> > > Configuration:
> > > TARGET  archCPU
> > > BoardName
> > > brcm8xx  mipsmips64  brcm8xx
> > > -  -
> > > Options
> > > brcm8xx:SYS_BIG_ENDIAN
>
> This board is not part of the mainline distribution, so we have never
> seen the actual code for it.  we cannot help you with unknown
> out-of-tree code.  Also, you don't follow the recommended way to build
> the code, as I've pointed out before.
>
> With out-of-tree code you're basically on your own.
>
> Best regards,
>
> Wolfgang Denk
>
> --
> DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
> That said, there may be good reasons for what you did beyond obsequi-
> ous sycophantic parody. Perhaps you might be so kind as to elucidate.
>  -- Tom Christiansen in <5ldjbm$jtk$1...@csnews.cs.colorado.edu>
>
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] U-boot-2012.04 compilation for qemu-mips board

2013-07-01 Thread krishna dwivedi
Hi Wolfgang,

I knew i have to run make qemu_mips_config before make allI am using ELDK
5.3 toolchain and compiling u-boot recipe came as a part of ELDK..But in
yocto environment,we use bitbake instead of make.I already tried make:
[unknown@h229 build]$ make qemu_mips_config
make: *** No rule to make target `qemu_mips_config'.  Stop.

I guess i need command analogous to make qemu_mips_config to run before
bitbake u-boot.

Regards,
Krishna


On Mon, Jul 1, 2013 at 3:31 PM, Wolfgang Denk  wrote:

> Dear krishna dwivedi,
>
> In message  x3c0...@mail.gmail.com> you wrote:
> >
> > Board Configuration:
> >
> > TargetArch CPU
> > BoardName
> > qemu_mipsmipsmips32  qemu-mips
>
> This builds fine for me:
>
> + MAKEALL_LOGDIR=/work/wd/tmp-mips-LOG
> + BUILD_DIR=/work/wd/tmp-mips
> + ./MAKEALL qemu_mips
> Configuring for qemu_mips - Board: qemu-mips, Options: SYS_BIG_ENDIAN
>textdata bss dec hex filename
>  2055207482  217512  430514   691b2 /work/wd/tmp-mips/u-boot
>
> - SUMMARY 
> Boards compiled: 1
> --
>
> > While bitbake u-boot:
> >
> > Log data follows:
> > | DEBUG: Executing shell function do_compile
> > | NOTE: make -j 4 CROSS_COMPILE=mips-poky-linux- CC=mips-poky-linux-gcc
> > --sysroot=/home/netlogic/eldk/build/tmp/sysroots/qemumips all
> > | awk '(NF && $1 !~ /^#/) { print $1 ": " $1 "_config; $(MAKE)" }'
> > boards.cfg > .boards.depend
> > | System not configured - see README
> > | make: *** [all] Error 1
> > | ERROR: oe_runmake failed
> >
> > Anyone please let me know what could be issue here.
>
> You must run "make qemu_mips_config" before you can run "make all".
>
> Best regards,
>
> Wolfgang Denk
>
> --
> DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
> "The fundamental principle of  science,  the  definition  almost,  is
> this: the sole test of the validity of any idea is experiment."
> - Richard P. Feynman
>
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] U-boot-2012.04 compilation for qemu-mips board

2013-07-01 Thread krishna dwivedi
Hi All,

Board Configuration:

TargetArch CPU
BoardName
qemu_mipsmipsmips32  qemu-mips
-
-
Options
 qemu-mips

While bitbake u-boot:

Log data follows:
| DEBUG: Executing shell function do_compile
| NOTE: make -j 4 CROSS_COMPILE=mips-poky-linux- CC=mips-poky-linux-gcc
--sysroot=/home/netlogic/eldk/build/tmp/sysroots/qemumips all
| awk '(NF && $1 !~ /^#/) { print $1 ": " $1 "_config; $(MAKE)" }'
boards.cfg > .boards.depend
| System not configured - see README
| make: *** [all] Error 1
| ERROR: oe_runmake failed

Anyone please let me know what could be issue here.

Regards,
Krishna
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] U-boot2013:07-Recompile with -fPIC error for mips64 board

2013-06-30 Thread krishna dwivedi
Gentle Reminder!!

Hi Wolfgang,

Can you please reply on this.

Regards,
Krishna


On Fri, Jun 28, 2013 at 10:20 AM, krishna dwivedi <
krishna.dwived...@gmail.com> wrote:

> Hi Wolfgang,
>
> I am using xlp832 mips64  netlogic board.I referred these steps from
> u-boot README file.
> Configuration:
> TARGET  archCPU
> BoardName
> brcm8xx  mipsmips64  brcm8xx
> -  -
> Options
> brcm8xx:SYS_BIG_ENDIAN
>
>
> Regards,
> Krishna
>
>
> On Thu, Jun 27, 2013 at 11:19 PM, Wolfgang Denk  wrote:
>
>> Dear krishna dwivedi,
>>
>> In message > d...@mail.gmail.com> you wrote:
>> > --===1781805000==
>> > Content-Type: multipart/alternative;
>> boundary=047d7bd6c6425eb96b04e02592ae
>> >
>> > --047d7bd6c6425eb96b04e02592ae
>> > Content-Type: text/plain; charset=ISO-8859-1
>> >
>> > Hi All,
>> >
>> > I am cross-compiling u-boot2013-07 for mips64 board.These steps i have
>> > followed:
>> > 1)I have exported envionment variables CC,LD,AS,CCAS,AR and
>> LD_LIBRARY_PATH.
>> > 2)export CROSS_COMPILE=mips64-unknown-elf-
>> > 3)make tools
>> > 4)make board_config
>> > 5)make all
>>
>> This is NOT the noral order of steps.  There is no need to build
>> "tools" manually, and in no way this should be done before the config
>> target.
>>
>> I think I asked this before:  which _exact_ machine configuration are
>> you using, i. e. what is your board name?
>>
>> Best regards,
>>
>> Wolfgang Denk
>>
>> --
>> DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
>> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
>> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
>> The optimum committee has no members.
>>- Norman Augustine
>>
>
>
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] U-boot2013:07-Recompile with -fPIC error for mips64 board

2013-06-27 Thread krishna dwivedi
Hi Wolfgang,

I am using xlp832 mips64  netlogic board.I referred these steps from u-boot
README file.
Configuration:
TARGET  archCPU
BoardName
brcm8xx  mipsmips64  brcm8xx
-  -
Options
brcm8xx:SYS_BIG_ENDIAN


Regards,
Krishna


On Thu, Jun 27, 2013 at 11:19 PM, Wolfgang Denk  wrote:

> Dear krishna dwivedi,
>
> In message  d...@mail.gmail.com> you wrote:
> > --===1781805000==
> > Content-Type: multipart/alternative;
> boundary=047d7bd6c6425eb96b04e02592ae
> >
> > --047d7bd6c6425eb96b04e02592ae
> > Content-Type: text/plain; charset=ISO-8859-1
> >
> > Hi All,
> >
> > I am cross-compiling u-boot2013-07 for mips64 board.These steps i have
> > followed:
> > 1)I have exported envionment variables CC,LD,AS,CCAS,AR and
> LD_LIBRARY_PATH.
> > 2)export CROSS_COMPILE=mips64-unknown-elf-
> > 3)make tools
> > 4)make board_config
> > 5)make all
>
> This is NOT the noral order of steps.  There is no need to build
> "tools" manually, and in no way this should be done before the config
> target.
>
> I think I asked this before:  which _exact_ machine configuration are
> you using, i. e. what is your board name?
>
> Best regards,
>
> Wolfgang Denk
>
> --
> DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: w...@denx.de
> The optimum committee has no members.
>- Norman Augustine
>
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] U-boot2013:07-Recompile with -fPIC error for mips64 board

2013-06-27 Thread krishna dwivedi
Hi All,

I am cross-compiling u-boot2013-07 for mips64 board.These steps i have
followed:
1)I have exported envionment variables CC,LD,AS,CCAS,AR and LD_LIBRARY_PATH.
2)export CROSS_COMPILE=mips64-unknown-elf-
3)make tools
4)make board_config
5)make all
 Linking error:relocation R_X86_64_32 against `board_init_f' can not be
used when making a shared object; recompile with -fPIC
/arch/mips/cpu.mips64./../../../lib/start.o: could not read symbols: Bad
value.Please provide me pointer to resolve this.

Regards,
Krishna
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] U-Boot Digest, Vol 61, Issue 36

2013-06-26 Thread krishna dwivedi
Hi All,

Can anyone please provide me poinet on this.

Regards,
Krishna


On Wed, Jun 26, 2013 at 12:54 PM, krishna dwivedi <
krishna.dwived...@gmail.com> wrote:

> Hi All,
>
>
>
> I am trying to build U-boot:2013-04.But running into this error:
> mips64-nlm-elf-ld: arch/mips/cpu/mips64/start.o: relocation (null) against
> `board_init_f' can not be used when making a shared object; recompile with
> -fPIC
> arch/mips/cpu/mips64/start.o: could not read symbols: Bad value.
> Can ayone please provide me pointer what could be issue here.
>
> Regards,
> krishna
>
>
> On Wed, Jun 26, 2013 at 11:52 AM, krishna dwivedi <
> krishna.dwived...@gmail.com> wrote:
>
>> Hi All,
>>
>> Hope everyone is doing great:)
>>
>> I am trying to build U-boot:2013-04.But running into this error:
>> mips64-nlm-elf-ld: arch/mips/cpu/mips64/start.o: relocation (null)
>> against `board_init_f' can not be used when making a shared object;
>> recompile with -fPIC
>> arch/mips/cpu/mips64/start.o: could not read symbols: Bad value.
>>
>>
>> Initially,In file arch/mips/config.mk,I commented the flag:
>> #LDFLAGS_FINAL   +=  -pie
>> This error resolved.But after relocation of u-boot code,we need this
>> flag.So i need to uncomment this flag.and again i am running into this
>> error agian.
>>
>> Anyone faced this issue earlier.Anyone please provide pointers to resolve
>> this.
>>
>> Thanks in advance!!
>>
>> Regards,
>> Krishna
>>
>>
>>
>>
>>
>> On Tue, Jun 25, 2013 at 3:30 PM,  wrote:
>>
>>> Send U-Boot mailing list submissions to
>>> u-boot@lists.denx.de
>>>
>>> To subscribe or unsubscribe via the World Wide Web, visit
>>> http://lists.denx.de/mailman/listinfo/u-boot
>>> or, via email, send a message with subject or body 'help' to
>>> u-boot-requ...@lists.denx.de
>>>
>>> You can reach the person managing the list at
>>> u-boot-ow...@lists.denx.de
>>>
>>> When replying, please edit your Subject line so it is more specific
>>> than "Re: Contents of U-Boot digest..."
>>>
>>>
>>> Today's Topics:
>>>
>>>1. Re: [PATCH v2 6/7] ARM: extend non-secure switch to also go
>>>   into HYP mode (Andre Przywara)
>>>2. Re: dfu: using dfu-util -l shows different output
>>>   (Lukasz Majewski)
>>>3. Re: dfu: using dfu-util -l shows different output (Heiko Schocher)
>>>4. Re: [PATCH] OpenRD: relocate environment to 640kB (Sascha Silbe)
>>>
>>>
>>> --
>>>
>>> Message: 1
>>> Date: Tue, 25 Jun 2013 10:27:30 +0200
>>> From: Andre Przywara 
>>> Subject: Re: [U-Boot] [PATCH v2 6/7] ARM: extend non-secure switch to
>>> also go into HYP mode
>>> To: Nikolay Nikolaev 
>>> Cc: geoff.lev...@linaro.org, u-boot@lists.denx.de, tr...@ti.com,
>>> kvm...@lists.cs.columbia.edu
>>> Message-ID: <51c95472.9030...@linaro.org>
>>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>>
>>> On 06/21/2013 04:38 PM, Nikolay Nikolaev wrote:
>>> > Hello,
>>> >
>>> >
>>> > On Thu, Jun 13, 2013 at 2:01 PM, Andre Przywara
>>> > mailto:andre.przyw...@linaro.org>> wrote:
>>> >
>>> > For the KVM and XEN hypervisors to be usable, we need to enter the
>>> > kernel in HYP mode. Now that we already are in non-secure state,
>>> > HYP mode switching is within short reach.
>>> >
>>> > While doing the non-secure switch, we have to enable the HVC
>>> > instruction and setup the HYP mode HVBAR (while still secure).
>>> >
>>> > The actual switch is done by dropping back from a HYP mode handler
>>> > without actually leaving HYP mode, so we introduce a new handler
>>> > routine in our new secure exception vector table.
>>> >
>>> > In the assembly switching routine we save and restore the banked LR
>>> > and SP registers around the hypercall to do the actual HYP mode
>>> > switch.
>>> >
>>> > The C routine first checks whether we are in HYP mode already and
>>> > also whether the virtualization extensions are available. It also
>>> > checks whether the HYP mode switch was

Re: [U-Boot] U-Boot Digest, Vol 61, Issue 36

2013-06-26 Thread krishna dwivedi
Hi All,


I am trying to build U-boot:2013-04.But running into this error:
mips64-nlm-elf-ld: arch/mips/cpu/mips64/start.o: relocation (null) against
`board_init_f' can not be used when making a shared object; recompile with
-fPIC
arch/mips/cpu/mips64/start.o: could not read symbols: Bad value.
Can ayone please provide me pointer what could be issue here.

Regards,
krishna


On Wed, Jun 26, 2013 at 11:52 AM, krishna dwivedi <
krishna.dwived...@gmail.com> wrote:

> Hi All,
>
> Hope everyone is doing great:)
>
> I am trying to build U-boot:2013-04.But running into this error:
> mips64-nlm-elf-ld: arch/mips/cpu/mips64/start.o: relocation (null) against
> `board_init_f' can not be used when making a shared object; recompile with
> -fPIC
> arch/mips/cpu/mips64/start.o: could not read symbols: Bad value.
>
>
> Initially,In file arch/mips/config.mk,I commented the flag:
> #LDFLAGS_FINAL   +=  -pie
> This error resolved.But after relocation of u-boot code,we need this
> flag.So i need to uncomment this flag.and again i am running into this
> error agian.
>
> Anyone faced this issue earlier.Anyone please provide pointers to resolve
> this.
>
> Thanks in advance!!
>
> Regards,
> Krishna
>
>
>
>
>
> On Tue, Jun 25, 2013 at 3:30 PM,  wrote:
>
>> Send U-Boot mailing list submissions to
>> u-boot@lists.denx.de
>>
>> To subscribe or unsubscribe via the World Wide Web, visit
>> http://lists.denx.de/mailman/listinfo/u-boot
>> or, via email, send a message with subject or body 'help' to
>> u-boot-requ...@lists.denx.de
>>
>> You can reach the person managing the list at
>> u-boot-ow...@lists.denx.de
>>
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of U-Boot digest..."
>>
>>
>> Today's Topics:
>>
>>1. Re: [PATCH v2 6/7] ARM: extend non-secure switch to also go
>>   into HYP mode (Andre Przywara)
>>2. Re: dfu: using dfu-util -l shows different output
>>   (Lukasz Majewski)
>>3. Re: dfu: using dfu-util -l shows different output (Heiko Schocher)
>>4. Re: [PATCH] OpenRD: relocate environment to 640kB (Sascha Silbe)
>>
>>
>> --
>>
>> Message: 1
>> Date: Tue, 25 Jun 2013 10:27:30 +0200
>> From: Andre Przywara 
>> Subject: Re: [U-Boot] [PATCH v2 6/7] ARM: extend non-secure switch to
>> also go into HYP mode
>> To: Nikolay Nikolaev 
>> Cc: geoff.lev...@linaro.org, u-boot@lists.denx.de, tr...@ti.com,
>> kvm...@lists.cs.columbia.edu
>> Message-ID: <51c95472.9030...@linaro.org>
>> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>>
>> On 06/21/2013 04:38 PM, Nikolay Nikolaev wrote:
>> > Hello,
>> >
>> >
>> > On Thu, Jun 13, 2013 at 2:01 PM, Andre Przywara
>> > mailto:andre.przyw...@linaro.org>> wrote:
>> >
>> > For the KVM and XEN hypervisors to be usable, we need to enter the
>> > kernel in HYP mode. Now that we already are in non-secure state,
>> > HYP mode switching is within short reach.
>> >
>> > While doing the non-secure switch, we have to enable the HVC
>> > instruction and setup the HYP mode HVBAR (while still secure).
>> >
>> > The actual switch is done by dropping back from a HYP mode handler
>> > without actually leaving HYP mode, so we introduce a new handler
>> > routine in our new secure exception vector table.
>> >
>> > In the assembly switching routine we save and restore the banked LR
>> > and SP registers around the hypercall to do the actual HYP mode
>> > switch.
>> >
>> > The C routine first checks whether we are in HYP mode already and
>> > also whether the virtualization extensions are available. It also
>> > checks whether the HYP mode switch was finally successful.
>> > The bootm command part only adds and adjusts some error reporting.
>> >
>> > Signed-off-by: Andre Przywara > > <mailto:andre.przyw...@linaro.org>>
>> > ---
>> >   arch/arm/cpu/armv7/nonsec_virt.S | 31
>> ---
>> >   arch/arm/include/asm/armv7.h |  7 +--
>> >   arch/arm/lib/bootm.c | 14 ++
>> >   arch/arm/lib/virt-v7.c   | 27 ++-
>> >   4 files changed, 65 insertions(+

Re: [U-Boot] U-Boot Digest, Vol 61, Issue 36

2013-06-25 Thread krishna dwivedi
Hi All,

Hope everyone is doing great:)

I am trying to build U-boot:2013-04.But running into this error:
mips64-nlm-elf-ld: arch/mips/cpu/mips64/start.o: relocation (null) against
`board_init_f' can not be used when making a shared object; recompile with
-fPIC
arch/mips/cpu/mips64/start.o: could not read symbols: Bad value.


Initially,In file arch/mips/config.mk,I commented the flag:
#LDFLAGS_FINAL   +=  -pie
This error resolved.But after relocation of u-boot code,we need this
flag.So i need to uncomment this flag.and again i am running into this
error agian.

Anyone faced this issue earlier.Anyone please provide pointers to resolve
this.

Thanks in advance!!

Regards,
Krishna





On Tue, Jun 25, 2013 at 3:30 PM,  wrote:

> Send U-Boot mailing list submissions to
> u-boot@lists.denx.de
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.denx.de/mailman/listinfo/u-boot
> or, via email, send a message with subject or body 'help' to
> u-boot-requ...@lists.denx.de
>
> You can reach the person managing the list at
> u-boot-ow...@lists.denx.de
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of U-Boot digest..."
>
>
> Today's Topics:
>
>1. Re: [PATCH v2 6/7] ARM: extend non-secure switch to also go
>   into HYP mode (Andre Przywara)
>2. Re: dfu: using dfu-util -l shows different output
>   (Lukasz Majewski)
>3. Re: dfu: using dfu-util -l shows different output (Heiko Schocher)
>4. Re: [PATCH] OpenRD: relocate environment to 640kB (Sascha Silbe)
>
>
> --
>
> Message: 1
> Date: Tue, 25 Jun 2013 10:27:30 +0200
> From: Andre Przywara 
> Subject: Re: [U-Boot] [PATCH v2 6/7] ARM: extend non-secure switch to
> also go into HYP mode
> To: Nikolay Nikolaev 
> Cc: geoff.lev...@linaro.org, u-boot@lists.denx.de, tr...@ti.com,
> kvm...@lists.cs.columbia.edu
> Message-ID: <51c95472.9030...@linaro.org>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> On 06/21/2013 04:38 PM, Nikolay Nikolaev wrote:
> > Hello,
> >
> >
> > On Thu, Jun 13, 2013 at 2:01 PM, Andre Przywara
> > mailto:andre.przyw...@linaro.org>> wrote:
> >
> > For the KVM and XEN hypervisors to be usable, we need to enter the
> > kernel in HYP mode. Now that we already are in non-secure state,
> > HYP mode switching is within short reach.
> >
> > While doing the non-secure switch, we have to enable the HVC
> > instruction and setup the HYP mode HVBAR (while still secure).
> >
> > The actual switch is done by dropping back from a HYP mode handler
> > without actually leaving HYP mode, so we introduce a new handler
> > routine in our new secure exception vector table.
> >
> > In the assembly switching routine we save and restore the banked LR
> > and SP registers around the hypercall to do the actual HYP mode
> > switch.
> >
> > The C routine first checks whether we are in HYP mode already and
> > also whether the virtualization extensions are available. It also
> > checks whether the HYP mode switch was finally successful.
> > The bootm command part only adds and adjusts some error reporting.
> >
> > Signed-off-by: Andre Przywara  > >
> > ---
> >   arch/arm/cpu/armv7/nonsec_virt.S | 31
> ---
> >   arch/arm/include/asm/armv7.h |  7 +--
> >   arch/arm/lib/bootm.c | 14 ++
> >   arch/arm/lib/virt-v7.c   | 27 ++-
> >   4 files changed, 65 insertions(+), 14 deletions(-)
> >
> > diff --git a/arch/arm/cpu/armv7/nonsec_virt.S
> > b/arch/arm/cpu/armv7/nonsec_virt.S
> > index 919f6e9..950da6f 100644
> > --- a/arch/arm/cpu/armv7/nonsec_virt.S
> > +++ b/arch/arm/cpu/armv7/nonsec_virt.S
> > @@ -1,5 +1,5 @@
> >   /*
> > - * code for switching cores into non-secure state
> > + * code for switching cores into non-secure state and into HYP mode
> >*
> >* Copyright (c) 2013  Andre Przywara  > >
> >*
> > @@ -26,14 +26,14 @@
> >   #include 
> >   #include 
> >
> > -/* the vector table for secure state */
> > +/* the vector table for secure state and HYP mode */
> >   _secure_vectors:
> >  .word 0 /* reset */
> >  .word 0 /* undef */
> >  adr pc, _secure_monitor
> >  .word 0
> >  .word 0
> > -   .word 0
> > +   adr pc, _hyp_trap
> >  .word 0
> >  .word 0
> >  .word 0 /* pad */
> > @@ -50,10 +50,23 @@ _secure_monitor:
> >  bic r1, r1, #0x4e   @ clear IRQ, FIQ,
> > EA, nET bits
> >  orr r1, r1, #0x31   @ enable NS, AW, FW
> > bits
> 

Re: [U-Boot] Porting U-boot-2013-04 to sdk for mips board

2013-06-16 Thread krishna dwivedi
Hi Alll,

Can anyone please reply on this.

Regards,
krishna


On Fri, Jun 14, 2013 at 10:14 AM, krishna dwivedi <
krishna.dwived...@gmail.com> wrote:

>
> Hi All,
>
> In mips,i dont see the .reloc section in u-boot.lds.But in other
> architechtures(like ppc),I see in u-boot.lds:
>
> .reloc   :
>   {
> PROVIDE(_GOT2_TABLE_ = .);
> KEEP(*(.got2))
>
> KEEP(*(.got))
> PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
> _FIXUP_TABLE_ = .;
> KEEP(*(.fixup))
>   }
>   __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
>   __fixup_entries = (. - _FIXUP_TABLE_) >> 2;
>
>
> 1)Can anyone please let me know,if we dont need to add .reloc section in
> u-boot.lds for MIPS processor?
>
> 2)I am newbie to u-boot,Please anyone provide me pointers what are the
> things i need to do lowlevel_init for my mips processor.
>
>
>
> Regards,
> Krishna
>
>
>
> On Thu, Jun 13, 2013 at 5:49 PM, krishna dwivedi <
> krishna.dwived...@gmail.com> wrote:
>
>> Hi,
>>
>> I am trying to port the u-boot2013:04 to sdk.During compilation,I am
>> running into error:*Undefined reference to _GLOBAL_OFFSET_TABLE*.I
>> checked in u-boot.lds file thr is no definition of _GLOBAL_OFFSET_TABLE.I
>> have added this piece of code in u-boot.lds:
>> .reloc :
>> {
>>   KEEP(*(.got))
>>PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
>> }
>>
>> In addition,i see reference of GLOBAL_OFFSET_TABLE.But it is not defined
>> in any file and even linker script.
>> Can anyone please confirm,if this is common issue in u-boot version
>> 2013:04.
>>
>> Regards,
>> krishna
>>
>
>
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


Re: [U-Boot] Porting U-boot-2013-04 to sdk for mips board

2013-06-13 Thread krishna dwivedi
Hi All,

In mips,i dont see the .reloc section in u-boot.lds.But in other
architechtures(like ppc),I see in u-boot.lds:

.reloc   :
  {
PROVIDE(_GOT2_TABLE_ = .);
KEEP(*(.got2))
KEEP(*(.got))
PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
_FIXUP_TABLE_ = .;
KEEP(*(.fixup))
  }
  __got2_entries = ((_GLOBAL_OFFSET_TABLE_ - _GOT2_TABLE_) >> 2) - 1;
  __fixup_entries = (. - _FIXUP_TABLE_) >> 2;


1)Can anyone please let me know,if we dont need to add .reloc section in
u-boot.lds for MIPS processor?

2)I am newbie to u-boot,Please anyone provide me pointers what are the
things i need to do lowlevel_init for my mips processor.



Regards,
Krishna



On Thu, Jun 13, 2013 at 5:49 PM, krishna dwivedi <
krishna.dwived...@gmail.com> wrote:

> Hi,
>
> I am trying to port the u-boot2013:04 to sdk.During compilation,I am
> running into error:*Undefined reference to _GLOBAL_OFFSET_TABLE*.I
> checked in u-boot.lds file thr is no definition of _GLOBAL_OFFSET_TABLE.I
> have added this piece of code in u-boot.lds:
> .reloc :
> {
>   KEEP(*(.got))
>PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
> }
>
> In addition,i see reference of GLOBAL_OFFSET_TABLE.But it is not defined
> in any file and even linker script.
> Can anyone please confirm,if this is common issue in u-boot version
> 2013:04.
>
> Regards,
> krishna
>
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot


[U-Boot] Porting U-boot-2013-04 to sdk for mips board

2013-06-13 Thread krishna dwivedi
Hi,

I am trying to port the u-boot2013:04 to sdk.During compilation,I am
running into error:*Undefined reference to _GLOBAL_OFFSET_TABLE*.I checked
in u-boot.lds file thr is no definition of _GLOBAL_OFFSET_TABLE.I have
added this piece of code in u-boot.lds:
.reloc :
{
  KEEP(*(.got))
   PROVIDE(_GLOBAL_OFFSET_TABLE_ = . + 4);
}

In addition,i see reference of GLOBAL_OFFSET_TABLE.But it is not defined in
any file and even linker script.
Can anyone please confirm,if this is common issue in u-boot version 2013:04.

Regards,
krishna
___
U-Boot mailing list
U-Boot@lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot