Merge dtc
This very large patch incorporates a copy of dtc into the kernel source, in arch/powerpc/boot/dtc-src. This means that dtc is no longer an external dependency to build kernels with configurations which need a dtb file.
Too big for the list, full patch at
http://ozlabs.org/~dgibson/home/merge-dtc.patch
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
Quoted 9 lines · David Gibson
This very large patch incorporates a copy of dtc into the kernel source, in
arch/powerpc/boot/dtc-src. This means that dtc is no longer an external dependency to build kernels with configurations which need a dtb file.Signed-off-by David Gibson <[email protected]>Too big for the list, full patch at
http://ozlabs.org/~dgibson/home/merge-dtc.patch
Dare I ask why we are including dtc in the kernel source tree? We don't really have precedence for this and there are users outside of linux for dtc.
- k
Quoted 8 lines · Kumar Gala
Quoted 5 lines · David Gibson
This very large patch incorporates a copy of dtc into the kernel source, in
arch/powerpc/boot/dtc-src. This means that dtc is no longer an external dependency to build kernels with configurations which need a dtb file.
Quoted 6 lines
Quoted 4 lines
Signed-off-by David Gibson <[email protected]>Too big for the list, full patch at
http://ozlabs.org/~dgibson/home/merge-dtc.patchDare I ask why we are including dtc in the kernel source tree? We
Well, we aren't unless Paul merges it..
Quoted 2 lines
don't really have precedence for this and there are users outside of linux for dtc.
Because having dtc as an external dependency is inconvenient. This is supposed to remain an embedded copy of dtc, not become the main dtc repository.
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
Quoted 3 lines · Kumar Gala
Dare I ask why we are including dtc in the kernel source tree? We don't really have precedence for this and there are users outside of linux for dtc.
You must have missed the thread where various people where complaining about how powerpc is the only architecture where they can't build kernels without some external tool that they don't have, etc., etc.
We thought about shipping compiled DTBs for various platforms, but the problem there is that they can't be updated with a patch, so whoever commits a patch to the relevant .dts would have to remember to run dtc and commit the updated .dtb as well, which seems a bit error-prone.
In the end, dtc isn't all that much code. We already have several other programs that run on the host in the process of making a zImage, such as wrapper, hack-coff, and addnote, not to mention the various C programs that are part of Kbuild, and unifdef, kallsyms, etc.
So I think there definitely is a precedent for including dtc.
Paul.
Quoted 9 lines · Paul Mackerras
Quoted 3 lines · Kumar Gala
Dare I ask why we are including dtc in the kernel source tree? We don't really have precedence for this and there are users outside of linux for dtc.
You must have missed the thread where various people where complaining about how powerpc is the only architecture where they can't build kernels without some external tool that they don't have, etc., etc.
I must have missed this thread.
Quoted 4 lines
We thought about shipping compiled DTBs for various platforms, but the problem there is that they can't be updated with a patch, so whoever commits a patch to the relevant .dts would have to remember to run dtc and commit the updated .dtb as well, which seems a bit error-prone.
agreed, would seem .S would have been a better choice than .dtb, but I agree the keeping a .dts and .S form insync would be a bit of a pain.
Quoted 6 lines
In the end, dtc isn't all that much code. We already have several other programs that run on the host in the process of making a zImage, such as wrapper, hack-coff, and addnote, not to mention the various C programs that are part of
Kbuild, and unifdef, kallsyms, etc.So I think there definitely is a precedent for including dtc.
Just out of interest who's complaining? We don't include mkimage for u-boot related builds and I haven't seen any gripes related to that.
- k
Quoted 10 lines
You must have missed the thread where various people where complaining about how powerpc is the only architecture where they can't build kernels without some external tool that they don't have, etc., etc.
We thought about shipping compiled DTBs for various platforms, but the problem there is that they can't be updated with a patch, so whoever commits a patch to the relevant .dts would have to remember to run dtc and commit the updated .dtb as well, which seems a bit error-prone.
Quoted 6 lines
In the end, dtc isn't all that much code. We already have several other programs that run on the host in the process of making a zImage, such as wrapper, hack-coff, and addnote, not to mention the various C programs that are part of
Kbuild, and unifdef, kallsyms, etc.So I think there definitely is a precedent for including dtc.
Note that I just tried to build a 4xx kernel today ... and failed due to the lack of mkimage ..
Another one that we need to either add to the kernel or make the building of cuImage's optional.
Ben.
Quoted 3 lines · Kumar Gala
Just out of interest who's complaining? We don't include mkimage for
u-boot related builds and I haven't seen any gripes related to that.
It's a pain in the neck since those are built even for things that don't need them (such as 4xx where I use the treeboot images).
Ben.
Quoted 8 lines · Benjamin Herrenschmidt
Quoted 3 lines · Kumar Gala
Just out of interest who's complaining? We don't include mkimage for
u-boot related builds and I haven't seen any gripes related to that.It's a pain in the neck since those are built even for things that don't need them (such as 4xx where I use the treeboot images).
That was Paul's decision :)
- k
Quoted 15 lines · Benjamin Herrenschmidt
Quoted 15 lines
You must have missed the thread where various people where complaining about how powerpc is the only architecture where they can't build kernels without some external tool that they don't have, etc., etc.
We thought about shipping compiled DTBs for various platforms, but the problem there is that they can't be updated with a patch, so whoever commits a patch to the relevant .dts would have to remember to run dtc and commit the updated .dtb as well, which seems a bit error-prone.
In the end, dtc isn't all that much code. We already have several other programs that run on the host in the process of making a zImage, such as wrapper, hack-coff, and addnote, not to mention the various C programs that are part of
Kbuild, and unifdef, kallsyms, etc.
Quoted 7 lines
Quoted 1 line
So I think there definitely is a precedent for including dtc.
Note that I just tried to build a 4xx kernel today ... and failed due to the lack of mkimage ..
Another one that we need to either add to the kernel or make the building of cuImage's optional.
I think if we add dtc we add mkimage since its even smaller.
- k
Quoted 7 lines · Benjamin Herrenschmidt
Quoted 3 lines · Kumar Gala
Just out of interest who's complaining? We don't include mkimage for
u-boot related builds and I haven't seen any gripes related to that.It's a pain in the neck since those are built even for things that don't need them (such as 4xx where I use the treeboot images).
You might not need them, but others with 4xx boards do. Boards like Sequoia, etc don't use OpenBIOS. And your compile didn't fail. It just didn't create the cuImage.
Anyway, I said a couple months ago we should include mkimage in the kernel and I never got around to doing it. I'll add it to the list.
josh
Quoted 4 lines · David Gibson
This very large patch incorporates a copy of dtc into the kernel source, in
arch/powerpc/boot/dtc-src. This means that dtc is no longer an external dependency to build kernels with configurations which need a dtb file.
Powerpc is probably not going to be the only user of dtc. Microblaze will be using it too. Can it be put somewhere more common?
Cheers,
g.
Signature · 4 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. [email protected] (403) 399-0195
Quoted 8 lines · Grant Likely
Quoted 4 lines · David Gibson
This very large patch incorporates a copy of dtc into the kernel source, in
arch/powerpc/boot/dtc-src. This means that dtc is no longer an external dependency to build kernels with configurations which need a dtb file.Powerpc is probably not going to be the only user of dtc. Microblaze will be using it too. Can it be put somewhere more common?
mkimage should also be put somewhere common since other archs use it.
- k
Quoted 8 lines · Grant Likely
Quoted 4 lines · David Gibson
This very large patch incorporates a copy of dtc into the kernel source, in
arch/powerpc/boot/dtc-src. This means that dtc is no longer an external dependency to build kernels with configurations which need a dtb file.Powerpc is probably not going to be the only user of dtc. Microblaze will be using it too. Can it be put somewhere more common?
Well, I guess we can move it to scripts/ when microblaze starts using it.
Also, tell me more about this microblaze, I'm certainly interested in new users of dtc...
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
Quoted 7 lines · David Gibson
Quoted 6 lines · Grant Likely
Quoted 4 lines · David Gibson
This very large patch incorporates a copy of dtc into the kernel source, in
arch/powerpc/boot/dtc-src. This means that dtc is no longer an external dependency to build kernels with configurations which need a dtb file.
Quoted 8 lines
Quoted 2 lines
Powerpc is probably not going to be the only user of dtc. Microblaze will be using it too. Can it be put somewhere more common?
Well, I guess we can move it to
scripts/when microblaze starts using it.Also, tell me more about this microblaze, I'm certainly interested in new users of dtc...
It's a 'soft processor'. Implemented in the fabric of an FPGA. It's a ucLinux target. Xilinx Virtex and Xilinx MicroBlaze targets share a lot of common devices.
Cheers,
g.
Signature · 4 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. [email protected] (403) 399-0195
=20
Quoted 5 lines
-----Original Message-----
From:=20 [email protected] g=20 [mailto:linuxppc-dev-bounces+stephen.neuendorffer=3Dxilinx.com@o
zlabs.org] On Behalf Of Grant Likely
Quoted 23 lines
Sent: Wednesday, October 17, 2007 6:15 AM
To: Grant Likely; Paul Mackerras; Josh Boyer; [email protected]
Subject: Re: Merge dtc
=20Quoted 5 lines · David Gibson
Quoted 4 lines · Grant Likely
Quoted 3 lines · David Gibson
This very large patch incorporates a copy of dtc into the kernel source, in
arch/powerpc/boot/dtc-src. This means that dtc is no longer an external dependency to build kernels with=20configurations
Quoted 3 lines
Quoted 3 lines
Quoted 1 line
which need a dtb file.
Powerpc is probably not going to be the only user of dtc.=20
Microblaze
Quoted 3 lines
Quoted 1 line
will be using it too. Can it be put somewhere more common?
Well, I guess we can move it to
scripts/when microblaze=20starts using
Quoted 3 lines
it.
Also, tell me more about this microblaze, I'm certainly=20
interested in
Quoted 8 lines
Quoted 1 line
new users of dtc...
=20
It's a 'soft processor'. Implemented in the fabric of an FPGA. It's a ucLinux target. Xilinx Virtex and Xilinx MicroBlaze targets share a lot of common devices.
=20
Cheers,
g.
Basically, this partially works today. Most of the device information
can come out of a flat device tree, with most of the kernel code copied straight from arch/powerpc. I'm still trying to sort out how some of the architecture specific stuff can be extracted in a smart way. For instance, the microblaze has configurable cache sizes, and may or may not be available. Currently, this is #defined in the kernel, but I'd like to get to the point where the same information is pulled out of a device tree. My main quandry at the moment is that I'm not wild about self-modifying code and I'm not sure if the extra overhead of implementing it with conditionals is significant.
In any event, my plan is to get this into a reasonable state and then post it here for review. The main reason why we went with flat device trees for this was to get as much symmettry as possible between the soft microblaze and the embedded ppc405 hard core in some FPGAs.
Steve
Quoted 1 line · Kumar Gala
Just out of interest who's complaining? We don't include mkimage for u-boot related builds and I haven't seen any gripes related to that.
I think we should include mkimage *and* dtc. But then, I'm not sure how much weight my opinion has. :-)
Signature · 2 lines
Timur Tabi Linux Kernel Developer @ Freescale
Quoted 7 lines · On Wed, 17 Oct 2007 14:59:04 -0500 Timur Tabi <[email protected]> wrote:
Quoted 2 lines · Kumar Gala
Just out of interest who's complaining? We don't include mkimage for u-boot related builds and I haven't seen any gripes related to that.
I think we should include mkimage *and* dtc. But then, I'm not sure how much weight my opinion has. :-)
Either way, if we're going to include DTC we need to do it soon. mkimage I'm less worried about because it should be a much smaller patch.
josh
Quoted 8 lines · Josh Boyer
Quoted 5 lines · On Wed, 17 Oct 2007 14:59:04 -0500 Timur Tabi <[email protected]> wrote:
Quoted 2 lines · Kumar Gala
Just out of interest who's complaining? We don't include mkimage for u-boot related builds and I haven't seen any gripes related to that.
Quoted 6 lines
Quoted 2 lines
I think we should include mkimage *and* dtc. But then, I'm not sure how much weight my opinion has. :-)
Either way, if we're going to include DTC we need to do it soon. mkimage I'm less worried about because it should be a much smaller patch.
Cast my vote on the 'no' side. I don't like this approach.
g.
Signature · 4 lines
Grant Likely, B.Sc., P.Eng. Secret Lab Technologies Ltd. [email protected] (403) 399-0195
Quoted 7 lines · Timur Tabi
Quoted 2 lines · Kumar Gala
Just out of interest who's complaining? We don't include mkimage for u-boot related builds and I haven't seen any gripes related to that.
I think we should include mkimage *and* dtc. But then, I'm not sure how much weight my opinion has. :-)
Isn't anyone concerned about the defacto fork-of-source-code that this causes? Which will be the official version? How will the code baes be kept in sync?
--linas
So, like, the other day Linas Vepstas mumbled:
Quoted 3 lines
Isn't anyone concerned about the defacto fork-of-source-code that this causes?
You betcha. That's why I'm negative on the notion, but I won't stand in front of _that_ train either.
Quoted 1 line
Which will be the official version?
The one I am maintaining here on jdl.com.
Quoted 1 line
How will the code baes be kept in sync?
I heard Gibson volunteer. :-)
jdl
Quoted 9 lines · David Gibson
This very large patch incorporates a copy of dtc into the kernel source, in
arch/powerpc/boot/dtc-src. This means that dtc is no longer an external dependency to build kernels with configurations which need a dtb file.Signed-off-by David Gibson <[email protected]>Too big for the list, full patch at
http://ozlabs.org/~dgibson/home/merge-dtc.patch
I think this is a bad idea -- it's hardly a difficult for those people who _do_ need dts to obtain it separately.
It's bad enough that I have to separate out the bootwrapper code, which probably ought to live outside the kernel. We shouldn't be merging _more_ stuff in.
Signature · 1 line
dwmw2
Quoted 12 lines · David Woodhouse
Quoted 9 lines · David Gibson
This very large patch incorporates a copy of dtc into the kernel source, in
arch/powerpc/boot/dtc-src. This means that dtc is no longer an external dependency to build kernels with configurations which need a dtb file.Signed-off-by David Gibson <[email protected]>Too big for the list, full patch at
http://ozlabs.org/~dgibson/home/merge-dtc.patch
Quoted 6 lines
I think this is a bad idea -- it's hardly a difficult for those people who _do_ need dts to obtain it separately.
It's bad enough that I have to separate out the bootwrapper code, which probably ought to live outside the kernel. We shouldn't be merging _more_ stuff in.
We've been back and forth on this several times, Paul and I finally concluded this was the better option.
It means we can feel free to use dtc for whatever new platforms we wish to without people whinging about having to install a new tool. And it means as dtc evolves to have new useful features, we just need to ensure that the dts files in the kernel are buildable with the dtc in the kernel, rather than requireing people to keep updating their dtc to match what the kernel build needs.
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
So, like, the other day David Woodhouse mumbled:
Quoted 5 lines
I think this is a bad idea -- it's hardly a difficult for those people who _do_ need dts to obtain it separately.
We shouldn't be merging _more_ stuff in.
Thanks for chiming in here, David W. As far as I can tell so far, the only two people who have voiced an opinion on this issue are Dave G, submitting patches, and me disagreeing with the approach. :-)
Anyone else?
jdl
Quoted 5 lines · On Tue, 04 Dec 2007 07:25:57 -0600 Jon Loeliger <[email protected]> wrote:
So, like, the other day David Woodhouse mumbled:
Quoted 4 lines
I think this is a bad idea -- it's hardly a difficult for those people who _do_ need dts to obtain it separately.
Quoted 8 lines
Quoted 1 line
We shouldn't be merging _more_ stuff in.
Thanks for chiming in here, David W. As far as I can tell so far, the only two people who have voiced an opinion on this issue are Dave G, submitting patches, and me disagreeing with the approach. :-)
Anyone else?
I don't see an overwhelmingly great reason to merge it. It might help test people who do automated rebuilds, etc and aren't used to dealing with powerpc and it's requirements. Outside of that, I see it as dual-maintenance.
But I'm not doing the maintenance, and it doesn't effect me too much. I only ask that a decision is made and executed on soon so we can move on.
josh
Quoted 17 lines · Josh Boyer
Quoted 5 lines · On Tue, 04 Dec 2007 07:25:57 -0600 Jon Loeliger <[email protected]> wrote:
So, like, the other day David Woodhouse mumbled:
Quoted 4 lines
I think this is a bad idea -- it's hardly a difficult for those people who _do_ need dts to obtain it separately.
Quoted 8 lines
Quoted 1 line
We shouldn't be merging _more_ stuff in.
Thanks for chiming in here, David W. As far as I can tell so far, the only two people who have voiced an opinion on this issue are Dave G, submitting patches, and me disagreeing with the approach. :-)
Anyone else?
Quoted 8 lines
I don't see an overwhelmingly great reason to merge it. It might help test people who do automated rebuilds, etc and aren't used to dealing with powerpc and it's requirements. Outside of that, I see it as dual-maintenance.
But I'm not doing the maintenance, and it doesn't effect me too much. I only ask that a decision is made and executed on soon so we can move on.
I'm also in disagreement of duplicating dtc in the kernel.
However, if we are going to do this we should make the path expansion for labels work before we do it.
- k
Quoted 2 lines · David Gibson
We've been back and forth on this several times, Paul and I finally concluded this was the better option.
As long as I can just ignore it and use the separately-shipped dtc, I suppose it doesn't have to bother me too much.
Quoted 2 lines
It means we can feel free to use dtc for whatever new platforms we wish to without people whinging about having to install a new tool.
I think we're overestimating this 'problem'; really.
But anyway, if we have to go ahead with it, can we make sure we keep in sync with the 'real' dtc? One way of doing that is as follows...
It's not hard to make a git repository which is a simple 'transform' of another tree -- I have a couple, at
http://git.infradead.org/?p=users/dwmw2/jffs2-ecos-core.git and
http://git.kernel.org/?p=linux/kernel/git/dwmw2/kernel-headers.git
The scripts to generate those are at
http://david.woodhou.se/extract-jffs2-git.sh
http://david.woodhou.se/extract-khdrs-git.sh
http://david.woodhou.se/extract-khdrs-stage2.sh
(The kernel headers one is in two stages because it has to mangle the files through unifdef too).
I'm sure there are better ways of doing it, but the scripts I have work, and should hopefully serve as a vaguely useful example.
I'd recommend making such a 'transform' which tracks the upstream dtc tree but with the files you want moved into the correct places. Then all we have to do to update the kernel's copy is pull from that transformed tree.
Of course, it's possible that git has matured to the point where it can handle the 'renames' and you can just pull from the upstream dtc repository directly. I don't think that's the case though.
Signature · 1 line
dwmw2
Quoted 5 lines · Jon Loeliger
So, like, the other day David Woodhouse mumbled:
Quoted 4 lines
I think this is a bad idea -- it's hardly a difficult for those people who _do_ need dts to obtain it separately.
Quoted 8 lines
Quoted 1 line
We shouldn't be merging _more_ stuff in.
Thanks for chiming in here, David W. As far as I can tell so far, the only two people who have voiced an opinion on this issue are Dave G, submitting patches, and me disagreeing with the approach. :-)
Anyone else?
I vote for keeping it separate.
-Scott
Quoted 26 lines · Kumar Gala
Quoted 23 lines · Josh Boyer
Quoted 6 lines · On Tue, 04 Dec 2007 07:25:57 -0600 Jon Loeliger <[email protected]> wrote:
So, like, the other day David Woodhouse mumbled:
Quoted 5 lines
I think this is a bad idea -- it's hardly a difficult for those people
who _do_ need dts to obtain it separately.Quoted 8 lines
Quoted 1 line
We shouldn't be merging _more_ stuff in.
Thanks for chiming in here, David W. As far as I can tell so far, the only two people who have voiced an opinion on this issue are Dave G, submitting patches, and me disagreeing with the approach. :-)
Anyone else?
I don't see an overwhelmingly great reason to merge it. It might help test people who do automated rebuilds, etc and aren't used to dealing with powerpc and it's requirements. Outside of that, I see it as dual-maintenance.
Quoted 8 lines
Quoted 3 lines
But I'm not doing the maintenance, and it doesn't effect me too much. I only ask that a decision is made and executed on soon so we can move on.
I'm also in disagreement of duplicating dtc in the kernel.
However, if we are going to do this we should make the path expansion for labels work before we do it.
Since we're going to have to update the in-kernel copy reasonably frequently anyway, I don't see that there's much point in waiting for particular features to be implemented.
Signature · 4 lines
David Gibson | I'll have my music baroque, and my code david AT gibson.dropbear.id.au | minimalist, thank you. NOT _the_ _other_ | _way_ _around_! http://www.ozlabs.org/~dgibson
Quoted 2 lines · David Woodhouse
I think this is a bad idea -- it's hardly a difficult for those people who _do_ need dts to obtain it separately.
The trouble is that it's not just people who are making a kernel for a specific embedded board that need dtc. These days anyone who wants to try cross-compiling a powerpc kernel and does a make allyesconfig, or who picks cell_defconfig or ps3_defconfig to try, needs dtc if their kernel build is to go all the way through and give them an exit status of 0. I can see that for people who are trying to do the right thing and compile-test their patch across architectures, it's annoying that powerpc has an extra external requirement when no other architecture does, and it usually just means they don't compile-test on powerpc.
Of the various options for solving this, including dtc in the kernel sources seems best to me.
Paul.
Quoted 15 lines · Paul Mackerras
Quoted 2 lines · David Woodhouse
I think this is a bad idea -- it's hardly a difficult for those people who _do_ need dts to obtain it separately.
The trouble is that it's not just people who are making a kernel for a specific embedded board that need dtc. These days anyone who wants to try cross-compiling a powerpc kernel and does a make allyesconfig, or who picks
cell_defconfigorps3_defconfigto try, needs dtc if their kernel build is to go all the way through and give them an exit status of 0. I can see that for people who are trying to do the right thing and compile-test their patch across architectures, it's annoying that powerpc has an extra external requirement when no other architecture does, and it usually just means they don't compile-test on powerpc.
Quoted 2 lines
Of the various options for solving this, including dtc in the kernel sources seems best to me.
Make vmlinux the default target instead of zImage would seem like a better answer. I'm surprised that it isn't like that already, in fact -- and I'm only inferring that it isn't from your message. I always thought that if I typed 'make' I got the vmlinux and not a zImage.
Signature · 1 line
dwmw2
Quoted 15 lines · On Wed, 5 Dec 2007 09:21:21 +1100 Paul Mackerras <[email protected]> wrote:
Quoted 2 lines · David Woodhouse
I think this is a bad idea -- it's hardly a difficult for those people who _do_ need dts to obtain it separately.
The trouble is that it's not just people who are making a kernel for a specific embedded board that need dtc. These days anyone who wants to try cross-compiling a powerpc kernel and does a make allyesconfig, or who picks
cell_defconfigorps3_defconfigto try, needs dtc if their kernel build is to go all the way through and give them an exit status of 0. I can see that for people who are trying to do the right thing and compile-test their patch across architectures, it's annoying that powerpc has an extra external requirement when no other architecture does, and it usually just means they don't compile-test on powerpc.
Quoted 2 lines
Of the various options for solving this, including dtc in the kernel sources seems best to me.
Using that same reasoning, should we merge a mkimage patch for the boards that use U-Boot?
(That's a serious question, not a smart-ass response)
josh
Quoted 4 lines · David Woodhouse
Make vmlinux the default target instead of zImage would seem like a better answer. I'm surprised that it isn't like that already, in fact -- and I'm only inferring that it isn't from your message. I always thought that if I typed 'make' I got the vmlinux and not a zImage.
Ooh, no -- I don't. I get an error, and I never even noticed...
WRAP arch/powerpc/boot/zImage.chrp WRAP arch/powerpc/boot/zImage.pmac WRAP arch/powerpc/boot/cuImage.52xx
/pmac/git/libertas-2.6/arch/powerpc/boot/wrapper: line 257: mkimage: command not found make[1]: *** [arch/powerpc/boot/cuImage.52xx] Error 127
I'd be perfectly happy with 'make vmlinux then' as a response to anyone who complains. And in fact since it'll correctly make the vmlinux and _then_ fail to create the zImage, I would have thought that anyone with even a modicum of common sense will _notice_ that, and start using 'make vmlinux' all by themselves without prompting.
Signature · 1 line
dwmw2
Quoted 4 lines · David Woodhouse
Make vmlinux the default target instead of zImage would seem like a better answer. I'm surprised that it isn't like that already, in fact -- and I'm only inferring that it isn't from your message. I always thought that if I typed 'make' I got the vmlinux and not a zImage.
You're obviously an old-timer. :) Plain "make" has made the zImage since at least 2002 in 32-bit and since January 2004 in 64-bit.
The alternative to including dtc is to include compiled versions of all the .dts files. The difficulty with that is that .dtb files are binary blobs which can't be updated with a patch. The shipped versions could possibly be shipped as .S versions, or I (and everyone else who has a tree that I pull from) could have something in my/their patch-applying scripts that updates the .dtbs if necessary, but in both cases things could get out of sync for one reason or another without it being obvious.
In contrast, if the version of dtc in the kernel tree gets out of date, it will become obvious pretty quickly because compiles will start failing. And anyway, the kernel dtc only needs to be recent enough to compile the .dts files in the kernel tree.
Paul.
Quoted 16 lines · On Wed, 05 Dec 2007 00:54:38 +0000 David Woodhouse <[email protected]> wrote:
Quoted 4 lines · David Woodhouse
Make vmlinux the default target instead of zImage would seem like a better answer. I'm surprised that it isn't like that already, in fact -- and I'm only inferring that it isn't from your message. I always thought that if I typed 'make' I got the vmlinux and not a zImage.
Ooh, no -- I don't. I get an error, and I never even noticed...
WRAP arch/powerpc/boot/zImage.chrp WRAP arch/powerpc/boot/zImage.pmac WRAP arch/powerpc/boot/cuImage.52xx/pmac/git/libertas-2.6/arch/powerpc/boot/wrapper: line 257: mkimage: command not found make[1]: *** [
arch/powerpc/boot/cuImage.52xx] Error 127
Quoted 5 lines
I'd be perfectly happy with 'make vmlinux then' as a response to anyone who complains. And in fact since it'll correctly make the vmlinux and _then_ fail to create the zImage, I would have thought that anyone with even a modicum of common sense will _notice_ that, and start using 'make vmlinux' all by themselves without prompting.
People build what the default is. You don't boot a vmlinux, you boot a zImage (in most cases).
(Nevermind the fact that for the 'build patch on all arches' part Paul mentioned earlier it doesn't really matter since they probably aren't going to actually boot it anyway.)
josh
Quoted 2 lines · Josh Boyer
Using that same reasoning, should we merge a mkimage patch for the boards that use U-Boot?
I think so. It's fairly small and it would mean that people could cross-compile all the defconfigs easily.
Paul.
Quoted 7 lines · On Wed, 5 Dec 2007 13:22:46 +1100 Paul Mackerras <[email protected]> wrote:
Quoted 2 lines · Josh Boyer
Using that same reasoning, should we merge a mkimage patch for the boards that use U-Boot?
I think so. It's fairly small and it would mean that people could cross-compile all the defconfigs easily.
I'll try to work up a patch tonight.
josh
Quoted 5 lines · On Tue, 4 Dec 2007 20:26:25 -0600 Josh Boyer <[email protected]> wrote:
Quoted 2 lines · On Wed, 5 Dec 2007 13:22:46 +1100 Paul Mackerras <[email protected]> wrote:
Josh Boyer writes:
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
Using that same reasoning, should we merge a mkimage patch for the boards that use U-Boot?
I think so. It's fairly small and it would mean that people could cross-compile all the defconfigs easily.
I'll try to work up a patch tonight.
OK so it won't be tonight.
The problem we have with mkimage, unlike DTC at the moment, is that it _is_ used on other architectures. There's already a mkuboot.sh script, which calls mkimage, in scripts/ right now. Adding mkimage to arch/powerpc only seems pretty wrong.
So if mkimage is going to be put in-kernel, I'd rather it be in a more generic place. Arguably, dtc should go there as well seeing as how microblaze could probably use it too.
josh
Quoted 3 lines · Josh Boyer
So if mkimage is going to be put in-kernel, I'd rather it be in a more generic place. Arguably, dtc should go there as well seeing as how microblaze could probably use it too.
Well, kconfig is in scripts/ in spite of not being a script. Maybe dtc and mkimage should go there too?
-Olof