[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [microblaze-uclinux] Problem with 2nd stage bootloader (u-boot)



Hi John,

thanks for your reply and the hints!

John Williams wrote:

> > Flash erase error at address 28000000
> >  done
> > Erased 1 sectors
> > 
> > WTF? This seems not to work. I don't know why.

> Is your flash actually at 0x28000000 (ie have you changed the address
of 
> the flash from the default ML401 design?)  If it's not, the errors you
are > seeing may be because u-boot (and possibly > your kernel image) is
out of > sync with reality.

Hm, I did not change the design (except the required updates). According
to the Xilinx Platform studio it should be correct as far as I can see.

In the Addresses section of it is a line like:

opb_emc_0	SOPB	MEM1	0x28000000	0x287ffff	8M
[]	[]

The petalogix reference design is really different (more complex) from
the Xilinx uCLinux tutorial so I am not that familiar with it but I
think this is correct.

Is it possible that one of the 2 flash chips is broken? How could I test
that?

I'm thinking about that because I had trouble with the flash before I
tried petalinux and followed the Xilinx uCLinux tutorial. I tried to
write my own small bootloader (I don't really need a full featured like
u-boot but it would be nice to have one). I used the XPS option "Program
Flash Memory" to write the image.bin to flash. Then I tried to copy it
from flash to ram with my bootloader and run it. But for each 32 bits I
read the upper 16 bits of it were wrong. I thought I maybe made a
mistake in the bootloader implementation, but now I a have the suspicion
that one of the chips is broken. The Xilinx generated bootloader which
can only work with SREC files does not work too.

> After you copy the finished EDK project across to Linux from Windows,
you 
> must run the "petalinux-copy-autoconfig" script to copy the new auto-
> config.in file into the correct place in the kernel tree.  This script

> must be run from within that EDK project directory.

Yes, I did that. 

> You will probably also need to run dos2unix on the auto-config.in file
to 
> remove CR/LF characters.

Yes, I found that out after I tried to compile the distribution which
gave me a lot of error messages. I checked the file which caused the
errors (the autoconfig file) and removed the characters using vi.

> Let us know how you go

No progress yet :( At the moment I download the image directly to ram
using the XMD. I would prefer a working bootloader but for the moment it
is okay.

My intention is to create an application using Impulse C that consits of
a software part running on uCLinux and a hardware part which communicate
which each other using FSL links. I'm not really sure how to do that so
started reading the O'Reilly book about linux device drivers and found
out that there are already drivers for FSL and GPIO but I did not
understand how to use them yet.

I think (and hope) Impulse C will create code which is using the FSL
driver automatically because they say in that in their book.

Something different and another question:

In XPS I can see that the char lcd display is connected to the gpio in
the reference design. Can you maybe give me a small hint how I can write
an application for uCLinux that "does something" with the lc display?

Sorry if some sentences sound a bit strange, my english is not that
good.

Best regards

Jarno Radde

Again sorry for the footer :(

 

This message and attachment(s) are intended solely for use by the addressee and may contain information that is privileged, confidential or otherwise exempt from disclosure under applicable law.

If you are not the intended recipient or agent thereof responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited.

If you have received this communication in error, please notify the sender immediately by telephone and with a 'reply' message.
  
Thank you for your co-operation.



___________________________
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/