* Bootloader & Flash
@ 2007-11-07 12:00 schardt
2007-11-07 20:39 ` MingLiu
0 siblings, 1 reply; 7+ messages in thread
From: schardt @ 2007-11-07 12:00 UTC (permalink / raw)
To: Linuxppc-embedded
Hi,
i use the AVnet Xilinx4 FX12 Minimodule and until now, i use system-ace
to configure the fpga and boot the linux kernel.
But now, i want to boot from the on board flash memory and have no idea
where to start.
I think i have to:
- save the fpga configuration in the fpga-prom
- use/program some kind of bootloader store in fpga block ram to jump to
the flash-adress where the executable linux kernel resist
- use the mtd-device driver to mount root fs on the same flash some
address later
Is this the right way ?
Regards
Georg
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
Forschungszentrum Jülich GmbH
52425 Jülich
Sitz der Gesellschaft: Jülich
Eingetragen im Handelsregister des Amtsgerichts Düren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDirig'in Bärbel Brumme-Bothe
Geschäftsführung: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft (stellv.
Vorsitzender)
-----------------------------------------------------------------------------------------
-----------------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Bootloader & Flash
2007-11-07 12:00 Bootloader & Flash schardt
@ 2007-11-07 20:39 ` MingLiu
[not found] ` <4732B492.5010604@fz-juelich.de>
2007-11-09 12:07 ` schardt
0 siblings, 2 replies; 7+ messages in thread
From: MingLiu @ 2007-11-07 20:39 UTC (permalink / raw)
To: schardt, linuxppc-embedded
DQpEZWFyIEdlb3JnLA0KSSBndWVzcyB5b3Ugd2VyZSB0YWxraW5nIGFib3V0IHRoZSBib290aW5n
IHByb2Nlc3Mgb2YgdGhlIHN5c3RlbSwgYm90aCBIVyBhbmQgdGhlIFNXLCBmcm9tIHRoZSBmbGFz
aCBtZW1vcnkuIFRoaXMgcHJvY2VzcyBzaG91bGQgYmUgbGlrZSB0aGlzOg0KDQoxLiBTdG9yZSB5
b3VyIEhXIGJpdHN0cmVhbSBhbmQgTGludXgga2VybmVsIG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emxhYnMub3Jn
PiBodHRwczovL296bGFicy5vcmcvbWFpbG1hbi9saXN0aW5mby9saW51eHBwYy1lbWJlZGRlZA0K
DQpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f
X19fX19fX19fXw0KTVNOIOS4reaWh+e9ke+8jOacgOaWsOaXtuWwmueUn+a0u+i1hOiur++8jOeZ
vemihuiBmumbhumXqOaIt+OAgg0KaHR0cDovL2NuLm1zbi5jb20=
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Bootloader & Flash
[not found] ` <4732B492.5010604@fz-juelich.de>
@ 2007-11-08 9:43 ` MingLiu
0 siblings, 0 replies; 7+ messages in thread
From: MingLiu @ 2007-11-08 9:43 UTC (permalink / raw)
To: schardt; +Cc: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 908 bytes --]
Hi,
> Could I store both, hw bitstream and kernel, in the xilinx platform> flash ? i think its not bit enough. I want to store the hw bitstream in> the platform flash as usual and the kernel in the additional flash.> I don't know how to store the kernel in the flash until know. This why I> try with the MTD devices.
You can store HW with EDK bootloader on either of the flashes. But you can only store kernel in linear flash because it is accessible through opb bus.
> I want the root-fs on flash, but this is future :) First i try to boot> the kernel
I do not have experience to set up a file system in flash memory. What I have done is to put it in the CF card or via NFS. But I guess with MTD driver's support, it will not be difficult to do that.
Good luck.
BR
Ming
_________________________________________________________________
手机也能上 MSN 聊天了,快来试试吧!
http://mobile.msn.com.cn/
[-- Attachment #2: Type: text/html, Size: 1195 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bootloader & Flash
2007-11-07 20:39 ` MingLiu
[not found] ` <4732B492.5010604@fz-juelich.de>
@ 2007-11-09 12:07 ` schardt
2007-11-09 12:51 ` MingLiu
1 sibling, 1 reply; 7+ messages in thread
From: schardt @ 2007-11-09 12:07 UTC (permalink / raw)
To: MingLiu; +Cc: linuxppc-embedded
Hi again,
i've learned a little bit :)
- I have download the zImage.elf via the EDK flash loader
- The flash loader creates a bootloader, this is also running on start up=
:)
But ... It stops with an error-message after a few seconds:
EDK Bootloader:
Bootloader: Processed (0x)000000b2 S-recordsERROR: SREC line is corrupted=
What now ?
Georg
MingLiu wrote:
> Dear Georg,
> I guess you were talking about the booting process of the system, both =
HW and the SW, from the flash memory. This process should be like this:
>
> 1. Store your HW bitstream and Linux kernel in flash memories. If neede=
d, perhaps you want another bootloader program, such as U-boot also insid=
e.=20
>
> 2. In your HW bitstream, you need one bootloader which helps you to loa=
d the software and execute it in DDR-ram. EDK helps you to generate such =
a bootloader when you design.=20
>
> 3. Durong Power on, HW bitstream (with an EDK bootloader included) will=
be loaded into FPGA and configure the FPGA, then the EDK bootloader will=
load your Linux kernel into DDR-Ram and execute it there. Thus your linu=
x could run.=20
>
> This is a normal process. If you want to execute the program in flash d=
irectly, that's another story. Also you should know, for the booting proc=
ess, MTD driver is not necessary. The driver is only used when you want t=
o access flash memories when you booted your Linux kernel.
>
> Clear or not? :)
>
> Best Regards
> Ming
>
> ----------------------------------------> Date: Wed, 7 Nov 2007 13:00:3=
5 +0100> From: g.schardt@fz-juelich.de> To: Linuxppc-embedded@ozlabs.org>=
Subject: Bootloader & Flash>> Hi,>> i use the AVnet Xilinx4 FX12 Minimod=
ule and until now, i use system-ace> to configure the fpga and boot the l=
inux kernel.> But now, i want to boot from the on board flash memory and =
have no idea> where to start.>> I think i have to:> - save the fpga confi=
guration in the fpga-prom> - use/program some kind of bootloader store in=
fpga block ram to jump to> the flash-adress where the executable linux k=
ernel resist> - use the mtd-device driver to mount root fs on the same fl=
ash some> address later>> Is this the right way ?>>> Regards> Georg>>>>>>=
> -----------------------------------------------------------------------=
------------------> -----------------------------------------------------=
------------------------------------> Forschungszentrum J=C3=BClich GmbH>=
52425 J=C3=BClich>> Sitz der Gesellschaft: J=C3=BClich> Eingetragen im H=
andelsregister des Amtsgerichts D=C3=BCren Nr. HR B 3498> Vorsitzende des=
Aufsichtsrats: MinDirig'in B=C3=A4rbel Brumme-Bothe> Gesch=C3=A4ftsf=C3=BC=
hrung: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft (stellv.>=
Vorsitzender)> ---------------------------------------------------------=
--------------------------------> ---------------------------------------=
--------------------------------------------------> _____________________=
__________________________> Linuxppc-embedded mailing list> Linuxppc-embe=
dded@ozlabs.org> https://ozlabs.org/mailman/listinfo/linuxppc-embedded
>
> _________________________________________________________________
> MSN =E4=B8=AD=E6=96=87=E7=BD=91=EF=BC=8C=E6=9C=80=E6=96=B0=E6=97=B6=E5=B0=
=9A=E7=94=9F=E6=B4=BB=E8=B5=84=E8=AE=AF=EF=BC=8C=E7=99=BD=E9=A2=86=E8=81=9A=
=E9=9B=86=E9=97=A8=E6=88=B7=E3=80=82
> http://cn.msn.com
=0A=0A-------------------------------------------------------------------------=
----------------=0A-----------------------------------------------------------=
------------------------------=0AForschungszentrum J=C3=BClich GmbH=0A52425 J=C3=BClich=
=0A=0ASitz der Gesellschaft: J=C3=BClich=0AEingetragen im Handelsregister des Amtsgeri=
chts D=C3=BCren Nr. HR B 3498=0AVorsitzende des Aufsichtsrats: MinDirig'in B=C3=A4rbel=
Brumme-Bothe=0AGesch=C3=A4ftsf=C3=BChrung: Prof. Dr. Achim Bachem (Vorsitzender), Dr.=
Ulrich Krafft (stellv. =0AVorsitzender)=0A-------------------------------------=
----------------------------------------------------=0A-----------------------=
------------------------------------------------------------------=0A
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Bootloader & Flash
2007-11-09 12:07 ` schardt
@ 2007-11-09 12:51 ` MingLiu
2007-11-09 14:16 ` schardt
0 siblings, 1 reply; 7+ messages in thread
From: MingLiu @ 2007-11-09 12:51 UTC (permalink / raw)
To: schardt; +Cc: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 727 bytes --]
Hi,
> - I have download the zImage.elf via the EDK flash loader> - The flash loader creates a bootloader, this is also running on start up :)
What you need to store in flash memory, is not the .elf file. Before you use EDK flash loader to burn your linux kernel in flash, .elf file should be transfered into .srec file, just like the below reminds you: SREC line is corrupted.
> But ... It stops with an error-message after a few seconds:> > EDK Bootloader:> Bootloader: Processed (0x)000000b2 S-recordsERROR: SREC line is corrupted> > What now ?
Hopefully it helps.
BR
Ming
_________________________________________________________________
Windows Live Spaces 中最年轻的成员!
http://miaomiaogarden2007.spaces.live.com/
[-- Attachment #2: Type: text/html, Size: 1005 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Bootloader & Flash
2007-11-09 12:51 ` MingLiu
@ 2007-11-09 14:16 ` schardt
2007-11-09 14:19 ` MingLiu
0 siblings, 1 reply; 7+ messages in thread
From: schardt @ 2007-11-09 14:16 UTC (permalink / raw)
To: MingLiu; +Cc: linuxppc-embedded
Argl :)
The error was so ... simple.
The Flash device is broken. I take a new MiniModul and all things are
running.
Thanks a lot
Georg
MingLiu wrote:
> Hi,
>
> > - I have download the zImage.elf via the EDK flash loader
> > - The flash loader creates a bootloader, this is also running on
> start up :)
>
> What you need to store in flash memory, is not the .elf file. Before
> you use EDK flash loader to burn your linux kernel in flash, .elf file
> should be transfered into .srec file, just like the below reminds you:
> SREC line is corrupted.
>
>
> > But ... It stops with an error-message after a few seconds:
> >
> > EDK Bootloader:
> > Bootloader: Processed (0x)000000b2 S-recordsERROR: SREC line is
> corrupted
> >
> > What now ?
>
> Hopefully it helps.
>
> BR
> Ming
>
> -----------------------------------------------------------------------=
-
> =D3=C3 Windows Live Spaces =D5=B9=CA=BE=B8=F6=D0=D4=D7=D4=CE=D2=A3=AC=D3=
=EB=BA=C3=D3=D1=B7=D6=CF=ED=C9=FA=BB=EE=A3=A1 =C1=CB=BD=E2=B8=FC=B6=E0=D0=
=C5=CF=A2=A3=A1
> <http://spaces.live.com/?page=3DHP>
-------------------------------------------------------------------------=
----------------
-------------------------------------------------------------------------=
----------------
Forschungszentrum J=A8=B9lich GmbH
52425 J=A8=B9lich
Sitz der Gesellschaft: J=A8=B9lich
Eingetragen im Handelsregister des Amtsgerichts D=A8=B9ren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDirig'in B"arbel Brumme-Bothe
Gesch"aftsf=A8=B9hrung: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich=
Krafft (stellv.=20
Vorsitzender)
-------------------------------------------------------------------------=
----------------
-------------------------------------------------------------------------=
----------------
^ permalink raw reply [flat|nested] 7+ messages in thread
* RE: Bootloader & Flash
2007-11-09 14:16 ` schardt
@ 2007-11-09 14:19 ` MingLiu
0 siblings, 0 replies; 7+ messages in thread
From: MingLiu @ 2007-11-09 14:19 UTC (permalink / raw)
To: schardt; +Cc: linuxppc-embedded
[-- Attachment #1: Type: text/plain, Size: 2098 bytes --]
Sometimes the simplest error is the most diffucult one to be found. :)
Have fun.
BR
Ming
> Date: Fri, 9 Nov 2007 15:16:23 +0100> From: g.schardt@fz-juelich.de> To: eemingliu@hotmail.com> CC: linuxppc-embedded@ozlabs.org> Subject: Re: Bootloader & Flash> > Argl :)> > The error was so ... simple.> The Flash device is broken. I take a new MiniModul and all things are> running.> > Thanks a lot> Georg> > MingLiu wrote:> > Hi,> >> > > - I have download the zImage.elf via the EDK flash loader> > > - The flash loader creates a bootloader, this is also running on> > start up :)> >> > What you need to store in flash memory, is not the .elf file. Before> > you use EDK flash loader to burn your linux kernel in flash, .elf file> > should be transfered into .srec file, just like the below reminds you:> > SREC line is corrupted.> >> >> > > But ... It stops with an error-message after a few seconds:> > >> > > EDK Bootloader:> > > Bootloader: Processed (0x)000000b2 S-recordsERROR: SREC line is> > corrupted> > >> > > What now ?> >> > Hopefully it helps.> >> > BR> > Ming> >> > ------------------------------------------------------------------------> > 用 Windows Live Spaces 展示个性自我,与好友分享生活! 了解更多信息!> > <http://spaces.live.com/?page=HP>> > > > -----------------------------------------------------------------------------------------> -----------------------------------------------------------------------------------------> Forschungszentrum Jülich GmbH> 52425 Jülich> > Sitz der Gesellschaft: Jülich> Eingetragen im Handelsregister des Amtsgerichts Düren Nr. HR B 3498> Vorsitzende des Aufsichtsrats: MinDirig'in B"arbel Brumme-Bothe> Gesch"aftsführung: Prof. Dr. Achim Bachem (Vorsitzender), Dr. Ulrich Krafft (stellv. > Vorsitzender)> -----------------------------------------------------------------------------------------> -----------------------------------------------------------------------------------------
_________________________________________________________________
Windows Live Spaces 中最年轻的成员!
http://miaomiaogarden2007.spaces.live.com/
[-- Attachment #2: Type: text/html, Size: 2852 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-11-09 14:19 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-07 12:00 Bootloader & Flash schardt
2007-11-07 20:39 ` MingLiu
[not found] ` <4732B492.5010604@fz-juelich.de>
2007-11-08 9:43 ` MingLiu
2007-11-09 12:07 ` schardt
2007-11-09 12:51 ` MingLiu
2007-11-09 14:16 ` schardt
2007-11-09 14:19 ` MingLiu
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).