[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] Problems booting petalinux kernel & system_ace
image.bin instead linux.bin.
Michal
Juan Pablo Gómez wrote:
> Hi Michal, thank you for help me!
>
> this is what I did :
>
> I run this command as you said :
>
>
> *./tools/mkimage -A microblaze -O linux -T kernel -C none -a 0x92000000
> -e 0x921e0000 -n petalinux
> -d /tftpboot/linux.bin /tftpboot/linux.ub*
>
>
> Image Name: petalinux
> Created: Thu Oct 30 17:11:34 2008
> Image Type: MicroBlaze Linux Kernel Image (uncompressed)
> Data Size: 1953792 Bytes = 1908.00 kB = 1.86 MB
> Load Address: 92000000
> Entry Point: 921e0000
>
> My u-boot textBase and CFG_LOAD_ADDR:
>
> *#define TEXT_BASE 0x91000000
> #define CFG_LOAD_ADDR 0x92000000 /* default load address */*
>
> I write that entry point because the size of hte linux.ub is 0x1dd040,
> then used that entry point
>
>
> Now, in u-boot I execute :
>
>
> *U-Boot-mONStR> base 0;tftp 91900000 linux.ub;bootm*
> Base Address: 0x00000000
> TFTP from server 192.168.0.12 <http://192.168.0.12>; our IP address is
> 192.168.0.3 <http://192.168.0.3>
> Filename 'linux.ub'.
> Load address: 0x91900000
> Loading: #################################################################
> #################################################################
> ####
> done
> Bytes transferred = 1953856 (1dd040 hex)
>
> ## Booting kernel from Legacy Image at 91900000 ...
> Image Name: petalinux
> Image Type: MicroBlaze Linux Kernel Image (uncompressed)
> Data Size: 1953792 Bytes = 1.9 MB
> Load Address: 92000000
> Entry Point: 921e0000
> Verifying Checksum ... OK
> Loading Kernel Image ... OK
> OK
>
> And then all freeze.
> It could be any problem with the address assignation?
>
> Regards, Juan
>
>
>
>
> 2008/10/30 Michal Simek <monstr@xxxxxxxxx <mailto:monstr@xxxxxxxxx>>
>
> Hi Juan,
>
> just select build u-boot just for creating image.ub. You don't need
> to use
> u-boot from petalogix dist. And of course you can generate this file
> with
> mkimage tool.
>
> Regards,
> Michal
>
> Juan Pablo Gómez wrote:
> > Hi Michal, Ok thank you for explain me that. In my kernel
> configuration
> > I not selected Build u-boot because I'm using your u-boot, how I can
> > generate this file??
> >
> > Thank you again Michal!
> >
> > 2008/10/30 Michal Simek <monstr@xxxxxxxxx
> <mailto:monstr@xxxxxxxxx> <mailto:monstr@xxxxxxxxx
> <mailto:monstr@xxxxxxxxx>>>
> >
> > Hi Juan,
> >
> > image.ub is supported. U-BOOT doesn't know with bootm command what
> > is elf and
> > with linux kernel can't handle this.
> >
> > Some comments below.
> >
> > Regards,
> > Michal
> >
> >
> > > Hi!.
> > >
> > > Ok, let me post this new log, excuse for the last one.
> > >
> > > First of all, let me explain what I do step by step :
> > >
> > > I build my hardware without any program in my BRAM and then
> download
> > > the bitsream
> > >
> > > I modify include/configs/xupv2p.h
> > >
> > > I add this line : #define TEXT_BASE 0x92000000
> > >
> > > Then I execute
> > >
> > > *$make mrproper
> > > $make xupv2p_config
> > > $make*
> > > (Log from the compilation <http://pastebin.com/f33b01b15>,
> many times
> > > this warning this warning was showed in different files like
> this
> > one :
> > > include/asm/byteorder.h:31: warning: type qualifiers ignored on
> > > function return type)
> >
> > source petalogix setting.sh script
> > export CROSS_COMPILE=microblaze-uclinux-
> >
> > >
> > > Then I copy the u-boot file to my project.
> > > *
> > > $cp u-boot $XUP_V2P_PROJECT_DIRECTORY*
> > >
> > > Then I connect my board to the XMD
> > >
> > > *$ xmd -xmp system.xmp -opt etc/xmd_microblaze_0.opt*
> > >
> > > Then execute
> > > *
> > > connect mb mdm ; dow u-boot ; run;*
> > >
> > > (This is the log from XMD <http://pastebin.com/f1b379b61>)
> > >
> > > At moment when I try to load the image.elf file this is ocurrs :
> > image.ub here.
> > >
> > > U-Boot-mONStR> tftp 93000000 image.elf; bootm
> > > TFTP from server 192.168.0.12 <http://192.168.0.12>
> <http://192.168.0.12>
> > <http://192.168.0.12>; our IP address is
> > > 192.168.0.3 <http://192.168.0.3> <http://192.168.0.3>
> <http://192.168.0.3>
> > > Filename 'image.elf'.
> > > Load address: 0x93000000
> > > Loading:
> > #################################################################
> > >
> > #################################################################
> > >
> > #################################################################
> > > ##########################
> > > done
> > > Bytes transferred = 3229878 (3148b6 hex)
> > > Wrong Image Format for bootm command
> > > ERROR: can't get kernel image!
> > >
> > >
> > > ## Checking Image at 93000000 ...
> > > Unknown image format!
> > >
> > > ** Unable to use ace 0:1 for fatls **
> > > U-Boot-mONStR> imi
> > >
> > > Also when I try to read my compact flash, the problem with
> reading the
> > > ace persists
> > >
> > > U-Boot-mONStR> fatls ace 0
> > > **** ACE CompactFlash not found.
> > > **** ACE CompactFlash not found.
> > > ** Can't read from device 0 **
> > >
> > > This is an screenshot from u-boot
> > > <http://img519.imageshack.us/img519/5428/ubootev4.png>
> > >
> > >
> > > Kind regards, Juan Pablo Gómez
> > >
> > >
> > >
> > >
> > >
> > >
> > > 2008/10/29 Michal Simek <monstr@xxxxxxxxx
> <mailto:monstr@xxxxxxxxx>
> > <mailto:monstr@xxxxxxxxx <mailto:monstr@xxxxxxxxx>>
> <mailto:monstr@xxxxxxxxx <mailto:monstr@xxxxxxxxx>
> > <mailto:monstr@xxxxxxxxx <mailto:monstr@xxxxxxxxx>>>>
> > >
> > > Hi Juan and Monthadar,
> > >
> > > no. You just load your kernel to different address and then
> > you try
> > > to load it
> > > from different one. Your log is weird because your
> loading address
> > > is 92000000
> > > but command tell you that image is loaded to 91000000. I
> haven't
> > > seen it yet.
> > >
> > > Please send your version log. And do make mrproper; make
> > > "board_name"_config,
> > > and make.
> > > Then load u-boot through xmd, connect mb mdm dow u-boot,
> run, and
> > > send results.
> > >
> > > > > U-Boot-mONStR> tftp 92000000 image.bin
> > > > > TFTP from server 192.168.0.12
> <http://192.168.0.12> <http://192.168.0.12>
> > <http://192.168.0.12>
> > > <http://192.168.0.12>; our IP
> > > > address is 192.168.0.3 <http://192.168.0.3>
> <http://192.168.0.3>
> > <http://192.168.0.3> <http://192.168.0.3>
> > > > > Filename 'image.bin'.
> > > > > Load address: 0x91000000
> > > > > Loading:
> > >
> > > Regards,
> > > Michal
> > >
> > >
> > > > Hi Monthadar! Actually i'm using a XUPV2P board and there
> > isn't any
> > > > avaible pre-built kernel for my board.
> > > >
> > > > I try to run the go command but again nothing happends.
> > > >
> > > > When I execute this command it seems that my image is
> corrupt or
> > > > something like that.
> > > >
> > > >
> > > > *U-Boot-mONStR> iminfo*
> > > >
> > > > ## Checking Image at 91000000 ...
> > > > Unknown image format!
> > > >
> > > >
> > > > 2008/10/29 Monthadar Al-Jaberi <monthadar@xxxxxxxxx
> <mailto:monthadar@xxxxxxxxx>
> > <mailto:monthadar@xxxxxxxxx <mailto:monthadar@xxxxxxxxx>>
> > > <mailto:monthadar@xxxxxxxxx <mailto:monthadar@xxxxxxxxx>
> <mailto:monthadar@xxxxxxxxx <mailto:monthadar@xxxxxxxxx>>>
> > > > <mailto:monthadar@xxxxxxxxx
> <mailto:monthadar@xxxxxxxxx> <mailto:monthadar@xxxxxxxxx
> <mailto:monthadar@xxxxxxxxx>>
> > <mailto:monthadar@xxxxxxxxx <mailto:monthadar@xxxxxxxxx>
> <mailto:monthadar@xxxxxxxxx <mailto:monthadar@xxxxxxxxx>>>>>
> > > >
> > > > I meant that if you can try the image.bin file that
> > comes with
> > > > petalinux. I think it was named image-2.6.bin or
> > image-2.4.bin? It
> > > > should be in the following directory:
> > > >
> > > > $PETALINUX/hardware/reference-design/...
> > > >
> > > > but only if you have the same board as the ones
> which are
> > > supplied.
> > > >
> > > >
> > > >
> > > > ONE MORE THING: try using the command 'go' instead of
> > 'bootm'
> > > maybe
> > > > that helps?
> > > >
> > > > BR,
> > > >
> > > > On Wed, Oct 29, 2008 at 4:38 PM, Juan Pablo Gómez
> > > > <juanwalker@xxxxxxxxx
> <mailto:juanwalker@xxxxxxxxx> <mailto:juanwalker@xxxxxxxxx
> <mailto:juanwalker@xxxxxxxxx>>
> > <mailto:juanwalker@xxxxxxxxx <mailto:juanwalker@xxxxxxxxx>
> <mailto:juanwalker@xxxxxxxxx <mailto:juanwalker@xxxxxxxxx>>>
> > > <mailto:juanwalker@xxxxxxxxx
> <mailto:juanwalker@xxxxxxxxx> <mailto:juanwalker@xxxxxxxxx
> <mailto:juanwalker@xxxxxxxxx>>
> > <mailto:juanwalker@xxxxxxxxx <mailto:juanwalker@xxxxxxxxx>
> <mailto:juanwalker@xxxxxxxxx <mailto:juanwalker@xxxxxxxxx>>>>> wrote:
> > > > > Oh ,excuse me... I write incorrectly the address.
> > > > >
> > > > >
> > > > > U-Boot-mONStR> tftp 92000000 image.bin
> > > > > TFTP from server 192.168.0.12
> <http://192.168.0.12> <http://192.168.0.12>
> > <http://192.168.0.12>
> > > <http://192.168.0.12>; our IP
> > > > address is 192.168.0.3 <http://192.168.0.3>
> <http://192.168.0.3>
> > <http://192.168.0.3> <http://192.168.0.3>
> > > > > Filename 'image.bin'.
> > > > > Load address: 0x91000000
> > > > > Loading:
> > > >
> > #################################################################
> > > > >
> > > >
> > #################################################################
> > > > >
> > > >
> > #################################################################
> > > > > ######
> > > > > done
> > > > >
> > > > > U-Boot-mONStR> bootm 0x92000000;
> > > > > Wrong Image Format for bootm command
> > > > > ERROR: can't get kernel image!
> > > > > XIP Invalid Image ... OK
> > > > > OK
> > > > >
> > > > > What do you mean with a pre-built image.bin ?
> I've tried
> > > also with
> > > > romfs.img
> > > > > and the other and all the files have the same error.
> > > > >
> > > > > These are the files that are in /tftproot directory
> > after the
> > > > compilation of
> > > > > the kernel (Was sucessful ).
> > > > >
> > > > > image.bin image.elf image.srec linux.bin
> romfs.img
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > 2008/10/29 Monthadar Al-Jaberi
> <monthadar@xxxxxxxxx <mailto:monthadar@xxxxxxxxx>
> > <mailto:monthadar@xxxxxxxxx <mailto:monthadar@xxxxxxxxx>>
> > > <mailto:monthadar@xxxxxxxxx <mailto:monthadar@xxxxxxxxx>
> <mailto:monthadar@xxxxxxxxx <mailto:monthadar@xxxxxxxxx>>>
> > > > <mailto:monthadar@xxxxxxxxx
> <mailto:monthadar@xxxxxxxxx> <mailto:monthadar@xxxxxxxxx
> <mailto:monthadar@xxxxxxxxx>>
> > <mailto:monthadar@xxxxxxxxx <mailto:monthadar@xxxxxxxxx>
> <mailto:monthadar@xxxxxxxxx <mailto:monthadar@xxxxxxxxx>>>>>
> > > > >>
> > > > >> Have you tried the pre-built image.bin with the
> > u-boot you have
> > > > compiled?
> > > > >>
> > > > >> Also why are you saving it to address
> 0x91000000 and then
> > > booting
> > > > from
> > > > >> address 0x92000000?
> > > > >>
> > > > >> BR,
> > > > >>
> > > > >> On Wed, Oct 29, 2008 at 6:39 AM, Juan Pablo Gómez
> > > > <juanwalker@xxxxxxxxx
> <mailto:juanwalker@xxxxxxxxx> <mailto:juanwalker@xxxxxxxxx
> <mailto:juanwalker@xxxxxxxxx>>
> > <mailto:juanwalker@xxxxxxxxx <mailto:juanwalker@xxxxxxxxx>
> <mailto:juanwalker@xxxxxxxxx <mailto:juanwalker@xxxxxxxxx>>>
> > > <mailto:juanwalker@xxxxxxxxx
> <mailto:juanwalker@xxxxxxxxx> <mailto:juanwalker@xxxxxxxxx
> <mailto:juanwalker@xxxxxxxxx>>
> > <mailto:juanwalker@xxxxxxxxx <mailto:juanwalker@xxxxxxxxx>
> <mailto:juanwalker@xxxxxxxxx <mailto:juanwalker@xxxxxxxxx>>>>>
> > > > >> wrote:
> > > > >> > Hi
> > > > >> >
> > > > >> > I'm trying to run my kernel image from u-boot
> but this
> > > appears :
> > > > >> >
> > > > >> > U-Boot-mONStR> tftp 91000000 image.bin
> > > > >> > TFTP from server 192.168.0.12
> <http://192.168.0.12> <http://192.168.0.12>
> > <http://192.168.0.12>
> > > <http://192.168.0.12>; our IP
> > > > address is 192.168.0.3 <http://192.168.0.3>
> <http://192.168.0.3>
> > <http://192.168.0.3> <http://192.168.0.3>
> > > > >> > Filename 'image.bin'.
> > > > >> > Load address: 0x91000000
> > > > >> > Loading:
> > > > >> >
> > >
> #################################################################
> > > > >> >
> > > > >> >
> > >
> #################################################################
> > > > >> >
> > > > >> >
> > >
> #################################################################
> > > > >> > ######
> > > > >> > done
> > > > >> >
> > > > >> > U-Boot-mONStR> bootm 0x92000000;
> > > > >> > Wrong Image Format for bootm command
> > > > >> > ERROR: can't get kernel image!
> > > > >> > XIP Invalid Image ... OK
> > > > >> > OK
> > > > >> >
> > > > >> > I've compiled the kernel succesfully, I don't
> know why
> > > this is
> > > > ocurring,
> > > > >> > anyone knows?
> > > > >> >
> > > > >> > Thank you for help me
> > > > >> >
> > > > >> >
> > > > >> >
> > > > >> > --
> > > > >> > Muchas gracias.
> > > > >> >
> > > > >> > Atentamente, Juan Pablo Gómez
> > > > >> >
> > > > >>
> > > > >>
> > > > >>
> > > > >> --
> > > > >> //Monthadar Al Jaberi
> > > > >>
> > > > >> ___________________________
> > > > >> microblaze-uclinux mailing list
> > > > >> microblaze-uclinux@xxxxxxxxxxxxxx
> <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>
> > <mailto:microblaze-uclinux@xxxxxxxxxxxxxx
> <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>>
> > > <mailto:microblaze-uclinux@xxxxxxxxxxxxxx
> <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>
> > <mailto:microblaze-uclinux@xxxxxxxxxxxxxx
> <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>>>
> > > > <mailto:microblaze-uclinux@xxxxxxxxxxxxxx
> <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>
> > <mailto:microblaze-uclinux@xxxxxxxxxxxxxx
> <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>>
> > > <mailto:microblaze-uclinux@xxxxxxxxxxxxxx
> <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>
> > <mailto:microblaze-uclinux@xxxxxxxxxxxxxx
> <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>>>>
> > > > >> Project Home Page :
> > > >
> http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> <http://www.itee.uq.edu.au/%7Ejwilliams/mblaze-uclinux>
> > <http://www.itee.uq.edu.au/%7Ejwilliams/mblaze-uclinux>
> > > <http://www.itee.uq.edu.au/%7Ejwilliams/mblaze-uclinux>
> > > >
> <http://www.itee.uq.edu.au/%7Ejwilliams/mblaze-uclinux>
> > > > >> Mailing List Archive :
> > > > >>
> > http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> <http://www.itee.uq.edu.au/%7Elistarch/microblaze-uclinux/>
> > <http://www.itee.uq.edu.au/%7Elistarch/microblaze-uclinux/>
> > > <http://www.itee.uq.edu.au/%7Elistarch/microblaze-uclinux/>
> > > >
> <http://www.itee.uq.edu.au/%7Elistarch/microblaze-uclinux/>
> > > > >>
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Muchas gracias.
> > > > >
> > > > > Atentamente, Juan Pablo Gómez
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > //Monthadar Al Jaberi
> > > >
> > > > ___________________________
> > > > microblaze-uclinux mailing list
> > > > microblaze-uclinux@xxxxxxxxxxxxxx
> <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>
> > <mailto:microblaze-uclinux@xxxxxxxxxxxxxx
> <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>>
> > > <mailto:microblaze-uclinux@xxxxxxxxxxxxxx
> <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>
> > <mailto:microblaze-uclinux@xxxxxxxxxxxxxx
> <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>>>
> > > > <mailto:microblaze-uclinux@xxxxxxxxxxxxxx
> <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>
> > <mailto:microblaze-uclinux@xxxxxxxxxxxxxx
> <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>>
> > > <mailto:microblaze-uclinux@xxxxxxxxxxxxxx
> <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>
> > <mailto:microblaze-uclinux@xxxxxxxxxxxxxx
> <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>>>>
> > > > Project Home Page :
> > > >
> http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> <http://www.itee.uq.edu.au/%7Ejwilliams/mblaze-uclinux>
> > <http://www.itee.uq.edu.au/%7Ejwilliams/mblaze-uclinux>
> > > <http://www.itee.uq.edu.au/%7Ejwilliams/mblaze-uclinux>
> > > >
> <http://www.itee.uq.edu.au/%7Ejwilliams/mblaze-uclinux>
> > > > Mailing List Archive :
> > > >
> http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> <http://www.itee.uq.edu.au/%7Elistarch/microblaze-uclinux/>
> > <http://www.itee.uq.edu.au/%7Elistarch/microblaze-uclinux/>
> > > <http://www.itee.uq.edu.au/%7Elistarch/microblaze-uclinux/>
> > > >
> <http://www.itee.uq.edu.au/%7Elistarch/microblaze-uclinux/>
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Muchas gracias.
> > > >
> > > > Atentamente, Juan Pablo Gómez
> > > ___________________________
> > > microblaze-uclinux mailing list
> > > microblaze-uclinux@xxxxxxxxxxxxxx
> <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>
> > <mailto:microblaze-uclinux@xxxxxxxxxxxxxx
> <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>>
> > > <mailto:microblaze-uclinux@xxxxxxxxxxxxxx
> <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>
> > <mailto:microblaze-uclinux@xxxxxxxxxxxxxx
> <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>>>
> > > Project Home Page :
> > > http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> <http://www.itee.uq.edu.au/%7Ejwilliams/mblaze-uclinux>
> > <http://www.itee.uq.edu.au/%7Ejwilliams/mblaze-uclinux>
> > > <http://www.itee.uq.edu.au/%7Ejwilliams/mblaze-uclinux>
> > > Mailing List Archive :
> > > http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> <http://www.itee.uq.edu.au/%7Elistarch/microblaze-uclinux/>
> > <http://www.itee.uq.edu.au/%7Elistarch/microblaze-uclinux/>
> > > <http://www.itee.uq.edu.au/%7Elistarch/microblaze-uclinux/>
> > >
> > >
> > >
> > >
> > > --
> > > Muchas gracias.
> > >
> > > Atentamente, Juan Pablo Gómez
> > ___________________________
> > microblaze-uclinux mailing list
> > microblaze-uclinux@xxxxxxxxxxxxxx
> <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>
> > <mailto:microblaze-uclinux@xxxxxxxxxxxxxx
> <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>>
> > Project Home Page :
> > http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> <http://www.itee.uq.edu.au/%7Ejwilliams/mblaze-uclinux>
> > <http://www.itee.uq.edu.au/%7Ejwilliams/mblaze-uclinux>
> > Mailing List Archive :
> > http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> <http://www.itee.uq.edu.au/%7Elistarch/microblaze-uclinux/>
> > <http://www.itee.uq.edu.au/%7Elistarch/microblaze-uclinux/>
> >
> >
> >
> >
> > --
> > Muchas gracias.
> >
> > Atentamente, Juan Pablo Gómez
> ___________________________
> microblaze-uclinux mailing list
> microblaze-uclinux@xxxxxxxxxxxxxx
> <mailto:microblaze-uclinux@xxxxxxxxxxxxxx>
> Project Home Page :
> http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
> <http://www.itee.uq.edu.au/%7Ejwilliams/mblaze-uclinux>
> Mailing List Archive :
> http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/
> <http://www.itee.uq.edu.au/%7Elistarch/microblaze-uclinux/>
>
>
>
>
> --
> Muchas gracias.
>
> Atentamente, Juan Pablo Gómez
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@xxxxxxxxxxxxxx
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/