Re: uClinux startup output

Greg Ungerer <[email protected]>
Newsgroups gmane.comp.hardware.motorola.microcontrollers.coldfire
Message-ID <[email protected]>
Hi Robert,

Robert Brusa wrote:
> uClinux (Kernel 2.6) is up and running on my COBRA5282-Board. When
> launched from dBUG using the "go 10000"-command it produces an output
> with many lines, most of which I do not really understand. Let me
> explain this on a excerpt of these "cryptic" lines.
> 
>> RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
>> FEC ENET Version 0.2
>> fec: PHY @ 0x1f, ID 0x20005c30 -- unknown PHY!
>> eth0: ethernet 00:cf:52:82:cf:01
>> uclinux[mtd]: RAM probe address=0x15e2d4 size=0xc7000
>> Creating 1 MTD partitions on "RAM":
>> 0x00000000-0x000c7000 : "ROMfs"
>>
> Firstly a general question:
> 0) Where can I find a systematic description of the meaning of these
> outputs? (such a doc would render the following questions obsolete).

I don't know of any.
The code certainly contains all the answers :-)


> More specific:
> 1) RAMDISK. According to the df-command it has 115 blocks of 1K, hence
> 117'760 bytes. But 16 * 4096 = 65536. What then does this message try to
> tell me?

Hmm, what is the actual "df" output?
Is idf's output explicitly 1k blocks, or could it be 512 byte blocks.


> 2) unknown PHY! Is this an error or just an information?

Informational. It means that the FEC driver doesn't have the
attached PHY type it is support table. Doesn't mean it won't
work necessarily. It might, it might not.


> 3) RAM probe address. What is this good for?

It is the physical RAM address at which the uclinux MTD
map driver is looking for a ROMfs filesystem. It can be
a handy peice of debug if you are having problems loading
a kernel and initial rootfs into RAM.


> 4) ROMfs. Which flash does it use (external or internal)? Are these
> relative addresses?

Well, the "RAM probe address" in (3) above tells you where
it is in the physical address space. So if 0x15e2d4 is
RAM, then the ROMfs is in RAM. It could have been a flash
address just as easily.

The region defined for the ROMfs (0x00000000-0x000c7000)
is relative to the MTD mapping. You can have multiple
regions (partitions) in an MTD mapping. You only have 1 in
this case.


> According to the tech. doc of the board, DRAM is at
> these low addresses.

Yep.


> Would be nice to get an answer on all these questions. Thank you and
> best regards

Regards
Greg



------------------------------------------------------------------------
Greg Ungerer  --  Chief Software Dude       EMAIL:     [email protected]
Secure Computing Corporation                PHONE:       +61 7 3435 2888
825 Stanley St,                             FAX:         +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com
---
[email protected]              Send a post to the list.
[email protected]        Join the list.
[email protected]    Join the list in digest mode.
[email protected]     Leave the list.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.