林志平 | 2 Nov 2009 05:34
Picon

From which version does u-boot support Open Firmware?

I found that uboot which supports Open Frimware use R3 and R4 to pass dtb
and kernel address to the kernel.
while the uboot which donot support Open Firmware use
 /*
  * Linux Kernel Parameters (passing board info data):
  *   r3: ptr to board info data
  *   r4: initrd_start or 0 if no initrd
  *   r5: initrd_end - unused if r4 is 0
  *   r6: Start of command line string
  *   r7: End   of command line string
  */
And I find the source code of uboot1.3.1 and uboot 2009.08 have great
difference.

yigit agabey | 2 Nov 2009 08:36
Picon

xenomai and adeos patch

Hello, i am trying to patch linux 2.6.24.6 snapshot from Denx's public GIT
to be able to use Xenomai. After applying the patch:

$xenomai_root/scripts/prepare-kernel.sh --arch=powerpc
--adeos=$xenomai_root/ksrc/arch/powerpc/patches/adeos-ipipe-2.6.24.6-powerpc-DENX-2.4-03.patch
--linux=$linux_tree

I get some patching errors. The output is:

patching file Makefile
patching file arch/powerpc/Kconfig
patching file arch/powerpc/boot/Makefile
patching file arch/powerpc/kernel/Makefile
patching file arch/powerpc/kernel/asm-offsets.c
Hunk #1 succeeded at 117 (offset -1 lines).
Hunk #2 succeeded at 246 (offset -1 lines).
patching file arch/powerpc/kernel/cputable.c
Hunk #1 succeeded at 1412 (offset 68 lines).
Hunk #2 succeeded at 1459 (offset 68 lines).
patching file arch/powerpc/kernel/entry_32.S
patching file arch/powerpc/kernel/entry_64.S
Hunk #7 succeeded at 525 (offset 4 lines).
Hunk #8 succeeded at 545 (offset 4 lines).
Hunk #9 succeeded at 583 (offset 4 lines).
Hunk #10 succeeded at 594 (offset 4 lines).
Hunk #11 succeeded at 603 (offset 4 lines).
Hunk #12 succeeded at 688 (offset 4 lines).
Hunk #13 succeeded at 722 (offset 4 lines).
Hunk #14 succeeded at 792 (offset 4 lines).
patching file arch/powerpc/kernel/head_32.S
(Continue reading)

Wolfgang Denk | 2 Nov 2009 09:13
Picon
Picon
Favicon

From which version does u-boot support Open Firmware?

Dear =?GB2312?B?wdbWvsa9?=,

please post U-Boot related questions on the U-Boot mailing list.

In message <8148211e0911012034q72b3b9e2tec1b09cd98f7fa9f at mail.gmail.com> you wrote:
>
> I found that uboot which supports Open Frimware use R3 and R4 to pass dtb
> and kernel address to the kernel.

Please be careful with your terms. U-Boot does NOT support Open
Firmware - what sort of support should that be, by the way?

What U-Boot does is to support flattened device trees as a  means  of
passing  hardware  information to the Linux kernel. Note that this is
an architecture dependent feature.

> while the uboot which donot support Open Firmware use
>  /*
>   * Linux Kernel Parameters (passing board info data):
>   *   r3: ptr to board info data
>   *   r4: initrd_start or 0 if no initrd
>   *   r5: initrd_end - unused if r4 is 0
>   *   r6: Start of command line string
>   *   r7: End   of command line string

Current versions of U-Boot support both booting with (for recent
kernels) or without (for older kernels) device tree image.

> And I find the source code of uboot1.3.1 and uboot 2009.08 have great
> difference.
(Continue reading)

Wolfgang Denk | 2 Nov 2009 09:17
Picon
Picon
Favicon

xenomai and adeos patch

Dear yigit agabey,

In message <c56e0c650911012336w62c35419m63b5bda07156cf44 at mail.gmail.com> you wrote:
>
> Hello, i am trying to patch linux 2.6.24.6 snapshot from Denx's public GIT
> to be able to use Xenomai. After applying the patch:

Why are you using such an extremely old kernel? Please update and use
current code instead!

> $xenomai_root/scripts/prepare-kernel.sh --arch=powerpc
> --adeos=$xenomai_root/ksrc/arch/powerpc/patches/adeos-ipipe-2.6.24.6-powerpc-DENX-2.4-03.patch
> --linux=$linux_tree
> 
> I get some patching errors. The output is:

Are you sure that you are using the right kernel tree, i. e. git
commit ID 331e1d1a from our linux-2.6-denx git repository?

Please see
http://git.xenomai.org/?p=xenomai-2.4.git;a=blob;f=ksrc/arch/powerpc/patches/README
for details which exact versiuons have been used.

But really: don't use that old stuff any more. Update and use recent
code instead.

Best regards,

Wolfgang Denk

(Continue reading)

Wolfgang Denk | 2 Nov 2009 09:39
Picon
Picon
Favicon

udbg and early debug support for MPC5200

Dear Chris,

please keep the ML on Cc:

In message <1CD40EAAED4E4B66B0E7436A6A4CD01F at kos> you wrote:
>
> > Which exact kernel version are you using? [git commit id?]
> 
> $ git describe
> v2.6.32-rc5-1449-g2c33dca

I see. Well, I've tested this version on several MPC5200B based boards
without noticing any issues. 

> > Did you adpt the device tree source to your hardware,
> 
> Not yet, it is close enough to the Lite5200B without PCI.

Maybe not clese enough?

> The uImage is the lite5200_defconfig and the .dtb is just a copy of 
> lite5200b.dtb

Try the MPC5200 default configuration instead - mpc5200_defconfig

> >> Argh! It's frustrating that the kernel structure keeps changing.
> > What exactly do you mean?
> 
> I said that partially in jest. It is not a criticism of your fantastic 
> ELDK.
(Continue reading)

yigit agabey | 2 Nov 2009 09:44
Picon

xenomai and adeos patch

Hell Mr. Denk,

I've also tried the snapshot at
http://git.denx.de/linux-2.6-denx.git/?p=linux-2.6-denx.git;a=commit;h=a2418375e3c6835be04607612fa43ccb7921c37b

when i try:

$xenomai_root/scripts/prepare-kernel.sh --arch=powerpc
--adeos=$xenomai_root/ksrc/arch/powerpc/patches/adeos-ipipe-2.6.30.3-powerpc-DENX-2.7-02.patch
--linux=$linux_tree

i am still getting smilar errors? Isn't that the right kernel tree?

Regards,
Yigit Agabeyli

2009/11/2 Wolfgang Denk <wd at denx.de>

> Dear yigit agabey,
>
> In message <c56e0c650911012336w62c35419m63b5bda07156cf44 at mail.gmail.com>
> you wrote:
> >
> > Hello, i am trying to patch linux 2.6.24.6 snapshot from Denx's public
> GIT
> > to be able to use Xenomai. After applying the patch:
>
> Why are you using such an extremely old kernel? Please update and use
> current code instead!
>
(Continue reading)

林志平 | 2 Nov 2009 10:21
Picon

From which version does u-boot support Open Firmware?

Thanks for your reply!

2009/11/2 Wolfgang Denk <wd at denx.de>

> Dear =?GB2312?B?wdbWvsa9?=,
>
> please post U-Boot related questions on the U-Boot mailing list.
>
> In message <8148211e0911012034q72b3b9e2tec1b09cd98f7fa9f at mail.gmail.com>
> you wrote:
> >
> > I found that uboot which supports Open Frimware use R3 and R4 to pass dtb
> > and kernel address to the kernel.
>
> Please be careful with your terms. U-Boot does NOT support Open
> Firmware - what sort of support should that be, by the way?
>
Sorry, I am confused with these concepts. I suppose Open Firmware to be the
rule of passing parameters to linux kernel from bootloader. While it is not
that case maybe.
The new version of linux kernel has merged ppc into powerpc, along with the
different rule of passing parameters.
So the older versions of UBoot may not able to port linux kernel2.6 with
arch/powerpc.
And I meant that from which version on does UBoot support the arch/powerpc.

> What U-Boot does is to support flattened device trees as a  means  of
> passing  hardware  information to the Linux kernel. Note that this is
> an architecture dependent feature.
>
(Continue reading)

Wolfgang Denk | 2 Nov 2009 11:05
Picon
Picon
Favicon

xenomai and adeos patch

Dear yigit agabey,

In message <c56e0c650911020044l55182d68t81781bd9f47fa2cb at mail.gmail.com> you wrote:
> --0016e6d64559eaa48104775f63be
> Content-Type: text/plain; charset=ISO-8859-1
> 
> Hell Mr. Denk,
> 
> I've also tried the snapshot at
> http://git.denx.de/linux-2.6-denx.git/?p=linux-2.6-denx.git;a=commit;h=a2418375e3c6835be04607612fa43ccb7921c37b
> 
> 
> when i try:
> 
> $xenomai_root/scripts/prepare-kernel.sh --arch=powerpc
> --adeos=$xenomai_root/ksrc/arch/powerpc/patches/adeos-ipipe-2.6.30.3-powerpc-DENX-2.7-02.patch
> --linux=$linux_tree
> 
> i am still getting smilar errors? Isn't that the right kernel tree?

It is the right tree, but not the right version.

I wrote before:

> > Please see
> >
> > http://git.xenomai.org/?p=xenomai-2.4.git;a=blob;f=ksrc/arch/powerpc/patches/README
> > for details which exact versions have been used.

So for example for the the "2.6.30-DENX-*/powerpc" patches the page
(Continue reading)

Wolfgang Denk | 2 Nov 2009 11:09
Picon
Picon
Favicon

From which version does u-boot support Open Firmware?

Dear =?GB2312?B?wdbWvsa9?=,

In message <8148211e0911020121g1907dd8ex7f7aa43918ad9f13 at mail.gmail.com> you wrote:
>
> > Please be careful with your terms. U-Boot does NOT support Open
> > Firmware - what sort of support should that be, by the way?
> >
> Sorry, I am confused with these concepts. I suppose Open Firmware to be the
> rule of passing parameters to linux kernel from bootloader. While it is not
> that case maybe.

This is indeed not the case. Open Firmware  is another type of boot
loader with a Forth based programming interface, see
http://en.wikipedia.org/wiki/Open_firmware

> The new version of linux kernel has merged ppc into powerpc, along with the
> different rule of passing parameters.
> So the older versions of UBoot may not able to port linux kernel2.6 with
> arch/powerpc.

You can boot device-tree enabled Linux kernel images with old (not
device-tree aware) versions of U-Boot by using the cuimage format (but
updating your code and use current versions of U-Boot is of course
strongly recommended).

> And I meant that from which version on does UBoot support the arch/powerpc.

Just use current code, i. e. latest released version or top of tree
from the repository.

(Continue reading)

yigit agabey | 2 Nov 2009 12:41
Picon

xenomai and adeos patch

Himm :-) It s ok now. I think i am starting to learn that "git"
thing...Thanks...

2009/11/2 Wolfgang Denk <wd at denx.de>

> Dear yigit agabey,
>
> In message <c56e0c650911020044l55182d68t81781bd9f47fa2cb at mail.gmail.com>
> you wrote:
> > --0016e6d64559eaa48104775f63be
> > Content-Type: text/plain; charset=ISO-8859-1
> >
> > Hell Mr. Denk,
> >
> > I've also tried the snapshot at
> >
> http://git.denx.de/linux-2.6-denx.git/?p=linux-2.6-denx.git;a=commit;h=a2418375e3c6835be04607612fa43ccb7921c37b
> >
> >
> > when i try:
> >
> > $xenomai_root/scripts/prepare-kernel.sh --arch=powerpc
> >
> --adeos=$xenomai_root/ksrc/arch/powerpc/patches/adeos-ipipe-2.6.30.3-powerpc-DENX-2.7-02.patch
> > --linux=$linux_tree
> >
> > i am still getting smilar errors? Isn't that the right kernel tree?
>
> It is the right tree, but not the right version.
>
(Continue reading)


Gmane