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

Re: [microblaze-uclinux] Booting uClinux



Hi,
I added some debugging code the kernel - namely in the init() function 
found in main.c in linux-2.4.x/init/:

--snip--
..

    if (execute_command)
        run_init_process(execute_command);
    printk("j4");
    //run_init_process("/sbin/init");
        printk("j5");
    //run_init_process("/etc/init");
        printk("j6");
    run_init_process("/bin/init");
        printk("j7");
    run_init_process("/bin/sh");
        printk("j8");
    panic("No init found.  Try passing init= option to kernel.");
}

My system boots as far as printing "j6" - i.e. right before the first 
run_init_process is called. I beleive the calibrating delay loop thing 
is a red-herring, because It only appeared when I used gdb to download 
the elf, when I use XMD to download the .bin, it boother this far.

It would appear to me, that any attempt to execute a program from the 
"filesystem" fails (silently). Either this, or perhaps the system is 
confused as to which UART it should print to? I only have one (the other 
being the mdm). Will the system always print to the console_uart - where 
do we define this?

Cheers,
John

John McGrath wrote:

> Oh My God!
> Well what would you know? Linux Booted....to a point!
> I got as far as:
>
> --snip---
> Xilinx GPIO registered
> RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
> MBVanilla flash probe(0xff000000,8388608,4): 800000 at ff000000
> CFI: Found no Flash device at location zero
> Search for id:(00 00) interleave(2) type(2)
> Search for id:(00 00) interleave(2) type(2)
> Search for id:(00 00) interleave(2) type(2)
> Search for id:(00 00) interleave(2) type(1)
> Search for id:(00 00) interleave(2) type(1)
> Search for id:(00 00) interleave(2) type(1)
> Search for id:(00 00) interleave(4) type(2)
> Search for id:(00 00) interleave(4) type(2)
> Search for id:(00 00) interleave(4) type(2)
> Search for id:(00 00) interleave(4) type(1)
> Search for id:(00 00) interleave(4) type(1)
> Search for id:(00 00) interleave(4) type(1)
> 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.
> Freeing init memory: 32K
>
>
> and thats where it ended. Dont know how "good" this is..but its a 
> start....
> Any idea what is wrong? from GDB it seems to be "stuck" in block_dev.c 
> which is in a directory called fs. Im guessing this has something to 
> do with the ROMFS.
>
> I have 8MB ram, and the .bin file is only about 1.3 megs, but I dont 
> beleive I have explicitly told uClinux the memory size (I assume 
> uclinux-auto does this?)
>
> Any help would be much appreciated!
>
> Cheers
> John
>
>
> John McGrath wrote:
>
>> Hi All,
>> Well It's come time to boot my system (I've not been able to work on 
>> it the the past while)...
>> My board is very basic. 8 LED's, a UART and 8MB RAM. (note, as my 
>> chip has few reources, had to reduce the size of the ICACHES/DCACHES 
>> - does uclinux-auto pick up on this? Is it possible to run uClinx 
>> without these at all, and if so, will uclinux-auto pick up on this, 
>> and make the apropriate modifications to the auto-config.in?)
>>
>> The question is, how do I boot it? Is it enough to simply do the 
>> following:
>>
>> run XMD
>> > connect mb mdm
>> > force_use_fsl_dow
>> > dow -data image.bin 0x81800000           (note, does the image.elf 
>> contain the romfs? when I download it it seems to download a .romfs 
>> section, but I remember reading this is not the case..what is the 
>> truth?)
>> >con 0x81800000
>>
>> The last step simply jumps to the start of the RAM. Is this the 
>> correct way to "boot"?
>> If so, do I have to type anything into the hyperterminal to get the 
>> system kicked into gear, or will it just immediatly begin to boot?
>> (I'm not having much luck..so far)
>>
>> Cheers,
>> 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/
>
>
>

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