* [Buildroot] Microblaze - UBoot Bootloader Support
@ 2012-03-19 21:55 Spenser Gilliland
2012-03-20 20:48 ` Arnout Vandecappelle
0 siblings, 1 reply; 3+ messages in thread
From: Spenser Gilliland @ 2012-03-19 21:55 UTC (permalink / raw)
To: buildroot
Hey Everyone,
I finished a paper today that was holding me up from working on the
Microblaze patches. It seems like there has been a lot of work and
there is a pretty good solution now.
I'm looking into a boot loader and will be testing u-boot over the
next few days. The Xilinx u-boot repo appears stagnant, so I'm going
to try to use the upstream u-boot support. It looks like the
following will be necessary to support u-boot in Microblaze.
1. Copy a xparameters.h file.
Would be similar to the kernels dts copy routine.
2. Update the CONFIG_SYS_BASE_ADDR variable.
Can be pulled from the kernel configuration, based on DTS or manual?
(I'll produce a manual patch for now but automating this in the future
seems appropriate)
We could go so far as to produce an ACE file and a PROM file for
booting standalone but I think we need to get base u-boot support in
first.
I'll be working on this today and hope to have a patch by the end of the night.
Thanks,
Spenser
--
Spenser Gilliland
Computer Engineer
Doctoral Candidate
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] Microblaze - UBoot Bootloader Support
2012-03-19 21:55 [Buildroot] Microblaze - UBoot Bootloader Support Spenser Gilliland
@ 2012-03-20 20:48 ` Arnout Vandecappelle
2012-03-20 22:33 ` Spenser Gilliland
0 siblings, 1 reply; 3+ messages in thread
From: Arnout Vandecappelle @ 2012-03-20 20:48 UTC (permalink / raw)
To: buildroot
On Monday 19 March 2012 22:55:14 Spenser Gilliland wrote:
> I'm looking into a boot loader and will be testing u-boot over the
> next few days. The Xilinx u-boot repo appears stagnant, so I'm going
> to try to use the upstream u-boot support. It looks like the
> following will be necessary to support u-boot in Microblaze.
>
> 1. Copy a xparameters.h file.
> Would be similar to the kernels dts copy routine.
I would prefer to see this as a patch (configured with
BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR) rather than modifications to the
uboot.mk file. The dts copy is something that should be useable
by other architectures as well in the long term. But copying
random files into the u-boot source tree isn't.
> 2. Update the CONFIG_SYS_BASE_ADDR variable.
> Can be pulled from the kernel configuration, based on DTS or manual?
> (I'll produce a manual patch for now but automating this in the future
> seems appropriate)
Up to now, buildroot doesn't do anything to automagically derive
U-boot configurations from kernel configurations and vice versa. I
also don't see a driving reason to do that. So here as well, I would
prefer a patch.
A separate patch file for each 'feature' is probably the best.
Regards,
Arnout
--
Arnout Vandecappelle arnout at mind be
Senior Embedded Software Architect +32-16-286540
Essensium/Mind http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint: 7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] Microblaze - UBoot Bootloader Support
2012-03-20 20:48 ` Arnout Vandecappelle
@ 2012-03-20 22:33 ` Spenser Gilliland
0 siblings, 0 replies; 3+ messages in thread
From: Spenser Gilliland @ 2012-03-20 22:33 UTC (permalink / raw)
To: buildroot
On Tue, Mar 20, 2012 at 3:48 PM, Arnout Vandecappelle <arnout@mind.be> wrote:
> On Monday 19 March 2012 22:55:14 Spenser Gilliland wrote:
>> I'm looking into a boot loader and will be testing u-boot over the
>> next few days. ?The Xilinx u-boot repo appears stagnant, so I'm going
>> to try to use the upstream u-boot support. ?It looks like the
>> following will be necessary to support u-boot in Microblaze.
>>
>> 1. Copy a xparameters.h file.
>> Would be similar to the kernels dts copy routine.
>
> ?I would prefer to see this as a patch (configured with
> BR2_TARGET_UBOOT_CUSTOM_PATCH_DIR) rather than modifications to the
> uboot.mk file. ?The dts copy is something that should be usable
> by other architectures as well in the long term. ?But copying
> random files into the u-boot source tree isn't.
I think this is not necessarily a good approach because of how
Microblaze based systems work. The peripherals are almost never
constant between two different designs and anyone who used Microblaze
would be required to patch this for there specific design. IE. There
is no single patch that could be applied.
However, after further investigation there is another option. In
newer versions of u-boot, some arches support dts based configuration
(see u-boot's doc/README.fdt-control). If a patch can be created
against u-boot to add "fdt-control" to Microblaze we could support all
common configurations by utilizing the DTS copy mechanism.
Additionally, this support should be generalized for supporting the
Arm chips which already support "fdt-control" in u-boot.
>
>> 2. Update the ?CONFIG_SYS_BASE_ADDR variable.
>> Can be pulled from the kernel configuration, based on DTS or manual?
>> (I'll produce a manual patch for now but automating this in the future
>> seems appropriate)
>
> ?Up to now, buildroot doesn't do anything to automagically derive
> U-boot configurations from kernel configurations and vice versa. ?I
> also don't see a driving reason to do that. ?So here as well, I would
> prefer a patch.
> ?A separate patch file for each 'feature' is probably the best.
I've already created a program which extracts cflags from the DTS.
Adding support for finding the CONFIG_SYS_TEXT_BASE (wrong var in
original post) variable could be completely external to Buildroot if
the option was available. IE. To build now I do make
TARGET_CFLAGS="$(xilcflags /path/to/my.dts)" could be make
TARGET_CFLAGS="$(xilcflags /path/to/my.dts)"
UBOOT_TEXT_BASE="$(xiltxtbase /path/to/my.dts)".
> ?Regards,
> ?Arnout
>
>
> --
> Arnout Vandecappelle ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? arnout at mind be
> Senior Embedded Software Architect ? ? ? ? ? ? ? ? +32-16-286540
> Essensium/Mind ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? http://www.mind.be
> G.Geenslaan 9, 3001 Leuven, Belgium ? ? ? ? ? ? ? ?BE 872 984 063 RPR Leuven
> LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
> GPG fingerprint: ?7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F
--
Spenser Gilliland
Computer Engineer
Doctoral Candidate
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-03-20 22:33 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-19 21:55 [Buildroot] Microblaze - UBoot Bootloader Support Spenser Gilliland
2012-03-20 20:48 ` Arnout Vandecappelle
2012-03-20 22:33 ` Spenser Gilliland
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox