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

Re: [microblaze-uclinux] Booting uClinux



Hi John,
I did what you asked, and got the following output:

Linux version 2.4.29-uc0 (jmcgrath@xcklinux3) (gcc version 2.95.3-4 
Xilinx EDK 6
.3 Build EDK_Gmm.12.2) #4 Fri Apr 15 12:41:32 IST 2005
On node 0 totalpages: 2048
zone(0): 2048 pages.
zone(1): 0 pages.
zone(2): 0 pages.
CPU: MICROBLAZE
Console: xmbserial on UARTLite
Kernel command line: °
Calibrating delay loop... 1.93 BogoMIPS
Memory: 8MB = 8MB total
Memory: 6588KB available (594K code, 909K data, 32K init)
Dentry cache hash table entries: 1024 (order: 1, 8192 bytes)
Inode cache hash table entries: 512 (order: 0, 4096 bytes)
Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Page-cache hash table entries: 2048 (order: 1, 8192 bytes)
POSIX conformance testing by UNIFIX
Linux NET4.0 for Linux 2.4
Based upon Swansea University Computer Society NET3.039
Microblaze UARTlite serial driver version 1.00
ttyS0 at 0xa0000000 (irq = 1) is a Microblaze UARTlite
Starting kswapd
xgpio #0 at 0x81020000 mapped to 0x81020000
Xilinx GPIO registered
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
uclinux[mtd]: RAM probe address=0x818c58fc size=0xb3000
uclinux[mtd]: root filesystem index=0
VFS: Mounted root (romfs filesystem) readonly.
jFreeing init memory: 32K
j0j1j2j3j4


Again, no luck.

As for the mb-flthdr:

romfs/bin/init
    Magic:        bFLT
    Rev:          4
    Build Date:   Thu Apr 14 12:44:32 2005
    Entry:        0x50
    Data Start:   0x7480
    Data End:     0x7f90
    BSS End:      0x1b7b0
    Stack Size:   0x1000
    Reloc Start:  0x7f90
    Reloc Count:  0x144
    Flags:        0x5 ( Load-to-Ram Gzip-Compressed )

I should be getting an ML401 board next week anyway, so I guess I can 
use one of the designs you have made for that to get me up and running. 
It's a little dissapointing I didnt get it to work on this board, feels 
like I was pretty close, but thanks all the same for your help :)

Cheers,
John


John Williams wrote:

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


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