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

Re: [microblaze-uclinux] Booting uClinux



Hi John,

John McGrath wrote:

[snip]

OK all that sounds reasonable - you are definitely doing the Right Thing 
so far!

> dow images/image.elf

OK, so this is a known issue - xmd's ELF loader does not recognise the 
.romfs section in the image.elf file, so you get a kernel image 
downloaded but no filesystem.

moving on..

> dow -data images/image.bin 0x81800000
> con 0x81800000

This is the way to do it, now let's see why it's not working.

> MBVanilla flash probe(0xff000000,8388608,4): 800000 at ff000000
> CFI: Found no Flash device at location zero

[snip]
> JEDEC: Found no Flash device at location zero
> MBVanilla ram probe(0x818c58fc,729088,4): b2000 at 818c58fc
> Creating 1 MTD partitions on "RAM":
> 0x00000000-0x000b2000 : "Romfs"
> VFS: Mounted root (romfs filesystem) readonly.
> jFreeing init memory: 32K

OK I have another idea - the mbvanila MTD flash mapping is hard coded to 
look for flash at 0xFF0000000 - I wonder if it's flash probing 
activities are actually stepping on your RAM space..

So, here's something to try - in menuconfig->kernel settings ->MTD-> 
mapping drivers

deselect the Microblaze/mbvanilla option, and choose instead the 
"Generic uClinux RAM/ROM filesystem" option (at the bottom of the list).

Save and exit, make dep all


> As we can see, the image.bin has more success. Howver, according to the 
> ptin it gets stalled right before it tries to execute a file off of the 
> romfs.
> 
> This is as far as I have gotten. totally stumped!

I'm also wondering if somehow you are building broken binaries - can you 
go into the directory uClinux-dist/romfs/bin, and run the mb-flthdr tool 
on on of the binaries?

[uclinux-dist/romfs] $ mb-flthdr init

and report the output?

Thanks,

John
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/