* FW: Error occured when appended FPGA image in the section of .init.text then bootup
@ 2008-05-31 8:31 朱利达
2008-05-31 10:23 ` Alan Nishioka
0 siblings, 1 reply; 7+ messages in thread
From: 朱利达 @ 2008-05-31 8:31 UTC (permalink / raw)
To: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 1328 bytes --]
Hi all. These days , I haved been troubled by a trouble. As I am a new boy who play with linux and PowPc603e(MPC8247). I have no ideal to solve it.
The request below give rise to the problem.I have some boards equiped with MPC8247 and FPGA without storage media which used as a PCI interface. So when the linux bootup before initialize the PCI, the code of FPGA will download. I append the FPGA code file in the Kernel section '.init.text'. when linux bootup firstly it check the board type(different board type would download different code), and download fpga code. More board types lead to more FPGA code. I append them all in the section of '.init.text'. when the total size of the code reach out 2M. The error occured. I read the '__log_buf' the kernel access some bad area. As the powerpce603 will map 16M address use two bat, how and why the problem occured, and how to solved it .
I kown it can download in the bootloader who read the FPGA image in the flash.But when the the flash is blank and the systerm boot from the tftp using a Muti-file image, another proble will occured.
You advice will helpful! Sorry for my poor english!
_________________________________________________________________
用手机MSN聊天写邮件看空间,无限沟通,分享精彩!
http://mobile.msn.com.cn/
[-- Attachment #2: Type: text/html, Size: 2021 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: FW: Error occured when appended FPGA image in the section of .init.text then bootup
2008-05-31 8:31 FW: Error occured when appended FPGA image in the section of .init.text then bootup 朱利达
@ 2008-05-31 10:23 ` Alan Nishioka
2008-05-31 17:07 ` David H. Lynch Jr.
2008-06-01 5:59 ` 朱利达
0 siblings, 2 replies; 7+ messages in thread
From: Alan Nishioka @ 2008-05-31 10:23 UTC (permalink / raw)
To: linuxppc-embedded
朱利达 wrote:
>
>
> The request below give rise to the problem.
> I have some boards equiped with MPC8247 and FPGA without storage
> media which used as a PCI interface. So when the linux bootup
> before initialize the PCI, the code of FPGA will download. I
> append the FPGA code file in the Kernel section '.init.text'. when
> linux bootup firstly it check the board type(different board type
> would download different code), and download fpga code. More board
> types lead to more FPGA code. I append them all in the section of
> '.init.text'. when the total size of the code reach out 2M. The
> error occured. I read the '__log_buf' the kernel access some bad
> area. As the powerpce603 will map 16M address use two bat, how and
> why the problem occured, and how to solved it .
>
Since the error occurs at 2M, I am going to guess it is similar to
problem I had. The default link/load address for booting is 0x200000.
Here is a link:
<http://patchwork.ozlabs.org/linuxppc-embedded/patch?id=14717>
This fix is for the arch/ppc tree. I don't know if the arch/powerpc tree
works the same way.
In the future, you should say what kernel version you are using and what
the error was.
Alan Nishioka
alan@nishioka.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: FW: Error occured when appended FPGA image in the section of .init.text then bootup
2008-05-31 10:23 ` Alan Nishioka
@ 2008-05-31 17:07 ` David H. Lynch Jr.
2008-05-31 17:57 ` Josh Boyer
2008-06-01 5:59 ` 朱利达
1 sibling, 1 reply; 7+ messages in thread
From: David H. Lynch Jr. @ 2008-05-31 17:07 UTC (permalink / raw)
To: Alan Nishioka; +Cc: linuxppc-embedded
Is there some reason this patch is not getting pushed into mainline ?
Alan Nishioka wrote:
> 朱利达 wrote:
>
>> The request below give rise to the problem.
>> I have some boards equiped with MPC8247 and FPGA without storage
>> media which used as a PCI interface. So when the linux bootup
>> before initialize the PCI, the code of FPGA will download. I
>> append the FPGA code file in the Kernel section '.init.text'. when
>> linux bootup firstly it check the board type(different board type
>> would download different code), and download fpga code. More board
>> types lead to more FPGA code. I append them all in the section of
>> '.init.text'. when the total size of the code reach out 2M. The
>> error occured. I read the '__log_buf' the kernel access some bad
>> area. As the powerpce603 will map 16M address use two bat, how and
>> why the problem occured, and how to solved it .
>>
>>
>
> Since the error occurs at 2M, I am going to guess it is similar to
> problem I had. The default link/load address for booting is 0x200000.
>
> Here is a link:
> <http://patchwork.ozlabs.org/linuxppc-embedded/patch?id=14717>
>
> This fix is for the arch/ppc tree. I don't know if the arch/powerpc tree
> works the same way.
>
> In the future, you should say what kernel version you are using and what
> the error was.
>
> Alan Nishioka
> alan@nishioka.com
>
> _______________________________________________
> Linuxppc-embedded mailing list
> Linuxppc-embedded@ozlabs.org
> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
--
Dave Lynch DLA Systems
Software Development: Embedded Linux
717.627.3770 dhlii@dlasys.net http://www.dlasys.net
fax: 1.253.369.9244 Cell: 1.717.587.7774
Over 25 years' experience in platforms, languages, and technologies too numerous to list.
"Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction."
Albert Einstein
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Error occured when appended FPGA image in the section of .init.text then bootup
2008-05-31 17:07 ` David H. Lynch Jr.
@ 2008-05-31 17:57 ` Josh Boyer
2008-05-31 18:34 ` David H. Lynch Jr.
0 siblings, 1 reply; 7+ messages in thread
From: Josh Boyer @ 2008-05-31 17:57 UTC (permalink / raw)
To: dhlii; +Cc: linuxppc-embedded
On Sat, 31 May 2008 13:07:53 -0400
"David H. Lynch Jr." <dhlii@dlasys.net> wrote:
> Is there some reason this patch is not getting pushed into mainline ?
Lacks Signed-off-by, support for the board in question doesn't even
exist in arch/ppc anymore, and arch/ppc is going away in June.
josh
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Error occured when appended FPGA image in the section of .init.text then bootup
2008-05-31 17:57 ` Josh Boyer
@ 2008-05-31 18:34 ` David H. Lynch Jr.
2008-05-31 19:44 ` Josh Boyer
0 siblings, 1 reply; 7+ messages in thread
From: David H. Lynch Jr. @ 2008-05-31 18:34 UTC (permalink / raw)
To: Josh Boyer; +Cc: linuxppc-embedded
I do not think the patch in question is board specific.
It has been arround for a long time. And I think alot of people have
been bitten by the problem.
It is required for my board.
I think it is required for any board that generates a large enough image.
I would be happy to signoff on it - it works/is necescary on my board.
I can not seem to find the same code in arch/powerpc so I have no clue
whether something similar might be needed there.
Josh Boyer wrote:
> On Sat, 31 May 2008 13:07:53 -0400
> "David H. Lynch Jr." <dhlii@dlasys.net> wrote:
>
>
>> Is there some reason this patch is not getting pushed into mainline ?
>>
>
> Lacks Signed-off-by, support for the board in question doesn't even
> exist in arch/ppc anymore, and arch/ppc is going away in June.
>
> josh
>
--
Dave Lynch DLA Systems
Software Development: Embedded Linux
717.627.3770 dhlii@dlasys.net http://www.dlasys.net
fax: 1.253.369.9244 Cell: 1.717.587.7774
Over 25 years' experience in platforms, languages, and technologies too numerous to list.
"Any intelligent fool can make things bigger and more complex... It takes a touch of genius - and a lot of courage to move in the opposite direction."
Albert Einstein
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Error occured when appended FPGA image in the section of .init.text then bootup
2008-05-31 18:34 ` David H. Lynch Jr.
@ 2008-05-31 19:44 ` Josh Boyer
0 siblings, 0 replies; 7+ messages in thread
From: Josh Boyer @ 2008-05-31 19:44 UTC (permalink / raw)
To: dhlii; +Cc: linuxppc-embedded
On Sat, 31 May 2008 14:34:34 -0400
"David H. Lynch Jr." <dhlii@dlasys.net> wrote:
> I do not think the patch in question is board specific.
> It has been arround for a long time. And I think alot of people have
> been bitten by the problem.
> It is required for my board.
> I think it is required for any board that generates a large enough image.
> I would be happy to signoff on it - it works/is necescary on my board.
You can't sign off on it. It's not your patch. The original author
needs to do so. See the text of the Developer's Certificate of Origin
1.1, in Documentation/SubmittingPatches.
I really don't think adding this patch is going to do anyone any good
when the entire arch/ppc subdirectory is going to be deleted in a week
or two.
> I can not seem to find the same code in arch/powerpc so I have no clue
> whether something similar might be needed there.
That specific code doesn't exist.
josh
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Error occured when appended FPGA image in the section of .init.text then bootup
2008-05-31 10:23 ` Alan Nishioka
2008-05-31 17:07 ` David H. Lynch Jr.
@ 2008-06-01 5:59 ` 朱利达
1 sibling, 0 replies; 7+ messages in thread
From: 朱利达 @ 2008-06-01 5:59 UTC (permalink / raw)
To: Alan Nishioka, linuxppc-embedded
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="gb2312", Size: 3372 bytes --]
> Date: Sat, 31 May 2008 03:23:07 -0700> From: alan@nishioka.com> To: linuxppc-embedded@ozlabs.org> Subject: Re: FW: Error occured when appended FPGA image in the section of .init.text then bootup> > ÖìÀû´ï (lida zhu)wrote:> >> >> > The request below give rise to the problem.> > I have some boards equiped with MPC8247 and FPGA without storage> > media which used as a PCI interface. So when the linux bootup> > before initialize the PCI, the code of FPGA will download. I> > append the FPGA code file in the Kernel section '.init.text'. when> > linux bootup firstly it check the board type(different board type> > would download different code), and download fpga code. More board> > types lead to more FPGA code. I append them all in the section of> > '.init.text'. when the total size of the code reach out 2M. The> > error occured. I read the '__log_buf' the kernel access some bad> > area. As the powerpce603 will map 16M address use two bat, how and> > why the problem occured, and how to solved it .> >> > Since the error occurs at 2M, I am going to guess it is similar to> problem I had. The default link/load address for booting is 0x200000.> > Here is a link:> <http://patchwork.ozlabs.org/linuxppc-embedded/patch?id=14717>> > This fix is for the arch/ppc tree. I don't know if the arch/powerpc tree> works the same way.> > In the future, you should say what kernel version you are using and what> the error was.> > Alan Nishioka> alan@nishioka.com> > _______________________________________________> Linuxppc-embedded mailing list> Linuxppc-embedded@ozlabs.org> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
Thanks! Mr.Î÷ù
The u-boot uncompress the Muti-file image.
when the u-boot show:
## Booting image at 01000000 ... Image Name: E300-2.0(8), alpha Image Type: PowerPC Linux Multi-File Image (gzip compressed) Data Size: 15246424 Bytes = 14.5 MB Load Address: 00000000 Entry Point: 00000000 Contents: Image 0: 1887243 Bytes = 1.8 MB Image 1: 13359168 Bytes = 12.7 MB Verifying Checksum ... OK ... OK Loading Ramdisk to 0ef08000, end 0fbc5840 ... OK
the image 0 is 1.8MB.It can not bootup. No matter I put the FPGA images in section '.init.data' or '.init.text'.
when the u-boot show
Bytes transferred = 15163187 (e75f33 hex)## Booting image at 01000000 ... Image Name: E300-2.0(8), alpha Image Type: PowerPC Linux Multi-File Image (gzip compressed) Data Size: 15163123 Bytes = 14.5 MB Load Address: 00000000 Entry Point: 00000000 Contents: Image 0: 1803789 Bytes = 1.7 MB Image 1: 13359319 Bytes = 12.7 MB Verifying Checksum ... OK Uncompressing Multi-File Image ... OK Loading Ramdisk to 0ef08000, end 0fbc58d7 ... OK
I cut one of the FPGA images. The Kernel image is 1.7MB.It can bootup. No matter I put the FPGA images in the section '.init.data' or '.init.text'. And when i fill the FPGA images in the section of '.init.data' the kernel makes mistake when she access the '__setup_start = .;' At the vmlinux.ld.s, I find it just behind the section .init.data. May be i can not describe correctly, because Truly I don't why.
My linux version is 2.6.18, using the arch/ppc tree. and the u-boot verison is 1.1.4.
_________________________________________________________________
¶à¸öÓÊÏäͬ²½¹ÜÀí£¬live mail¿Í»§¶ËÍòÈËÇÀÓÃÖÐ
http://get.live.cn/product/mail.html
[-- Attachment #2: Type: text/html, Size: 4885 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2008-06-01 5:59 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-31 8:31 FW: Error occured when appended FPGA image in the section of .init.text then bootup 朱利达
2008-05-31 10:23 ` Alan Nishioka
2008-05-31 17:07 ` David H. Lynch Jr.
2008-05-31 17:57 ` Josh Boyer
2008-05-31 18:34 ` David H. Lynch Jr.
2008-05-31 19:44 ` Josh Boyer
2008-06-01 5:59 ` 朱利达
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).