[uClinux-dev] MCF5275EVB & UC Linux

Mike Cruse mcruse at definium.net
Mon Jan 15 19:26:14 EST 2007


Hi Greg,

thanks for the reply.

I was using the kernel that came with uClinux-dist-20060803.tar.gz, 
2.6.17-uc1. See below for the boot log.

I was eventually able to download uClinux-dist-test-20070108.tar. It
took about 24 hours on the fourth attempt.

I have only had one attempt at building that version and was
unsuccessful so far.  

I'll try again tonight.

Attached is a version of fec.c that will detect both PHY's. Run a diff
to see the differences O.K.

I also have used this config system for years and agree that it works
pretty well. I am not quite as confident with qconf as I am with
menuconf for uClinux yet.

It could just be me though.

Like I said I will carefully try uClinux-dist-test-20070108 again and
let you know the results. I'd like to contribute something to this
effort if I can.

Good work on the port.

Mike Cruse
Definium Technologies Inc.
Chief Everything Dude.








Hello World

Freescale 5275 boot...

uncompressed image: copy 1966080 bytes from ff810000 to 20000
verifying image ff810000    20000:
loading image: checksum - 7952f581   ff810000 [491520]

transfering execution to application at 20000
Linux version 2.6.17-uc1 (mcruse at lugnut.mcruse.com) (gcc version 4.1.1)
#5 Fri Jan 12 00:50:57 MST 2007


uClinux/COLDFIRE(m5274/5275)
COLDFIRE port done by Greg Ungerer, gerg at snapgear.com
Flat model support (C) 1998,1999 Kenneth Albanowski, D. Jeff Dionne
Built 1 zonelists
Kernel command line: console=ttyS0,19200
PID hash table entries: 512 (order: 9, 2048 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Memory available: 62908k/65536k RAM, (875k kernel code, 150k data)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 2048 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 2048 bind 1024)
TCP reno registered
io scheduler noop registered (default)
ColdFire internal UART serial driver version 1.00
ttyS0 at 0x40000200 (irq = 77) is a builtin ColdFire UART
ttyS1 at 0x40000240 (irq = 78) is a builtin ColdFire UART
RAMDISK driver initialized: 16 RAM disks of 4096K size 1024 blocksize
FEC ENET Version 0.2
FLASHMAC = 00000000
527x
fec: PHY @ 0x1, ID 0x20005c90 -- DP83848
eth0: ethernet d1:df:b6:fd:be:a7
fec: PHY @ 0x3, ID 0x20005c90 -- DP83848
eth1: ethernet 88:fa:fd:fb:0b:7d
PPP generic driver version 2.4.2
uclinux[mtd]: RAM probe address=0x120610 size=0xd2000
Creating 1 MTD partitions on "RAM":
0x00000000-0x000d2000 : "ROMfs"
uclinux[mtd]: set ROMfs to be root filesystem
TCP bic registered
NET: Registered protocol family 1
NET: Registered protocol family 17
VFS: Mounted root (romfs filesystem) readonly.
Freeing unused kernel memory: 48k freed (0x106000 - 0x111000)
Shell invoked to run file: /etc/rc
Command: hostname uClinux
Command: /bin/expand /etc/ramfs.img /dev/ram1
Command: mount -t proc proc /proc
Command: mount -t ext2 /dev/ram1 /var
Command: mkdir /var/tmp
Command: mkdir /var/log
Command: mkdir /var/run
Command: mkdir /var/lock
Command: mkdir /var/empty
Command: ifconfig lo 127.0.0.1
Command: route add -net 127.0.0.0 netmask 255.0.0.0 lo
Command: dhcpcd -p -a eth0 &
[16]
Command: cat /etc/motd
Welcome to
on        ____ _  eth0: config: auto-negotiation _
   , 100FDX  , 100HDX  , 10FDX  , 10HDX  .
/  __| ||_|
    _   _| |  | | _ ____  _   _  _  _
   | | | | |  | || |  _ \| | | |\ \/ /
   | |_| | |__| || | | | | |_| |/    \
   |  ___\____|_||_|_| |_|\____|\_/\_/
   | |
   |_|

For further information check:
http://www.uclinux.org/

Execution Finished, Exiting

Sash command shell (version 1.1.1)
/> Nov 30 00:00:05 dhcpcd[16]: dhcpConfig: failed to
update /etc/resolv.conf: Read-only file system

Nov 30 00:00:05 dhcpcd[16]: dhcpConfig: failed to write cache
file /etc/dhcpc/dhcpcd-eth0.cache: No such file or directory

Nov 30 00:00:05 dhcpcd[16]: dhcpConfig: failed to write info
file /etc/dhcpc/dhcpcd-eth0.info: No such file or directory


On Mon, 2007-01-15 at 16:54 +1000, Greg Ungerer wrote:
> Hi Mike,
> 
> Mike Cruse wrote:
> > I am doing some work with the 5274 (5275 without crypto).
> > 
> > I have the 2.6 kernel up and running reasonably well.
> 
> Which version 2.6 kernel?
> 
> 
> > I found the config process quite fragile in that while I essentially
> > could build and run out of the box, once I started to make kernel or
> > userland config changes I started to get these messages on boot
> > 
> > Warning: unable to open an initial console.
> > Kernel panic - not syncing: Attempted to kill init!
> 
> I have used this configuration system for years, and it is
> in no way fragile. It does exactly what you tell it to.
> 
> 
> > I am no stranger to Linux and understand some of the things that cause
> > these problems. However I did not understand why turning on ext3,
> > enabling the second FEC and building an extra userland program would
> > cause this to happen. 
> 
> It is possibly a bug.
> 
> But I had no problems enabling those options and still loading
> and running on the M5275EVB board (I used uClinux-dist-test-20070108,
> with 2.6.19-uc1 kernel).
> 
> If you post your full kernel boot trace and kernel configuration
> we might be able to help.
> 
> The most common cause of this type of problem is the romfs generation,
> double check that the device nodes are being created correctly in
> the romfs.
> 
> 
> > Once the problem occurs I have to blow away the source tree and start
> > again as I can't seem to reverse the problem. 
> > 
> > Any clues on this?
> > 
> > Serial ports seem to work well. At least the console does.
> > Haven't used USB or QSPI.
> > 
> > Ethernet seems flakey. Especially when trying to use the second FEC.
> > That code just does not seem complete and PHY detection just would not
> > work without changes.
> > 
> > Beyond getting both PHY's going things were still broken. eth0 would
> > work most of the time but while you could ping a configured eth1, a TCP
> > connection could not be established. Inbound or outbound. 
> 
> I just tried with 2.6.19-uc1 and I could telnet into and out of
> eth0 on the M5275EVB with no problems at all.
> 
> 
> > Using Wireshark it appeared that received packets were just ignored.
> > 
> > I could use some help here. Has anybody gotten both FEC's up and running
> > on the 5274/5? If so how? I am using National DP83848 PHY's.
> 
> 2.6.19-uc1 is not detecting the PHY on eth1, so there does look to be
> a problem there. I can't get any data on eth1 either. I'll look into
> that when I get a minute.
> 
> 
> > That is about as much as I have played with so far.
> > 
> > My setup is as follows:
> > 
> > Toolchain:  m68k-uclinux-tools-20060615
> > uClinux:    uClinux-dist-20060803
> > Bootloader: colilo
> > 
> > On the subject of bootloaders... All the bootloader links on uclinux.org
> > are broken. It does seem that uboot is the way to go anyway but it seems
> > many people have problems compiling it. 
> > 
> > Can someone tell me what toolchain to use to compile uboot?
> > 
> > Thanks for any help in advance!
> 
> Regards
> Greg
> 
> 
> ------------------------------------------------------------------------
> Greg Ungerer  --  Chief Software Dude       EMAIL:     gerg at snapgear.com
> SnapGear -- a Secure Computing Company      PHONE:       +61 7 3435 2888
> 825 Stanley St,                             FAX:         +61 7 3891 3630
> Woolloongabba, QLD, 4102, Australia         WEB: http://www.SnapGear.com
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev at uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev at uclinux.org
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
> 



More information about the uClinux-dev mailing list