[prev in list] [next in list] [prev in thread] [next in thread]
List: uclinux-dev
Subject: Re: [uClinux-dev] kernel 3.10 + ColdFire MCF5271
From: Greg Ungerer <gerg () uclinux ! org>
Date: 2015-03-18 0:06:45
Message-ID: 5508C195.9050608 () uclinux ! org
[Download RAW message or body]
Hi Ertheb,
On 18/03/15 03:16, ertheb wrote:
> Hi all,
>
> I use uClinux since 2008 on a board compatible with the Freescale M5271EVB.
>
> I have successfully used kernel 2.4, 2.6, 3.1 and 3.3 with the default
> Freescale M5271EVB configuration.
>
> Recently, i have tried to use uClinux-dist-20140504 with kernel 3.10.
> Compilation is o.k but a crash occurs at the kernel boot (see below).
>
> I have applied the kernel patch 3.10.0 to 3.10.68 (2015-02-06) without
> success.
>
> PC register address is located inside fec_probe function, i think crash
> occurs when kernel try to probe a second FEC module.
> (MCF5271 has only one fec module).
>
> I made this modification and now kernel boot correctly.
>
> uClinux-dist/linux-3.x/arch/m68k/include/asm/m527xsim.h
>
> /*
> * FEC ethernet module.
> */
> #define MCFFEC_BASE0 (MCF_IPSBAR + 0x1000)
> #define MCFFEC_SIZE0 0x800
>
> +#ifdef CONFIG_M5275
> #define MCFFEC_BASE1 (MCF_IPSBAR + 0x1800)
> #define MCFFEC_SIZE1 0x800
> +#endif
Yes, that is broken. That looks to be the right place to fix it here too.
I'll generate a fix for mainline.
The next uclinux-dist will be based around a linux-3.18 kernel, and
I will fix it in there too.
Thanks
Greg
> Linux version 3.10.0-uc0 (root@debian-st8) (gcc version 4.2.4) #15 Tue
> Feb 10 09:38:33 CET 2015
>
>
> uClinux/COLDFIRE(m527x)
> COLDFIRE port done by Greg Ungerer, gerg@snapgear.com
> Flat model support (C) 1998,1999 Kenneth Albanowski, D. Jeff Dionne
> Built 1 zonelists in Zone order, mobility grouping off. Total pages: 2040
> Kernel command line: console=ttyS1,19200
> PID hash table entries: 2048 (order: 0, 8192 bytes)
> Dentry cache hash table entries: 2048 (order: 0, 8192 bytes)
> Inode-cache hash table entries: 2048 (order: 0, 8192 bytes)
> Sorting __ex_table...
> Memory: 13448k/13448k available (1408k kernel code, 1464k data, 64k init)
> Virtual kernel memory layout:
> vector : 0x00000000 - 0x00000400 ( 1 KiB)
> kmap : 0x00000000 - 0xffffffff (4095 MiB)
> vmalloc : 0x00000000 - 0xffffffff (4095 MiB)
> lowmem : 0x00000000 - 0x01000000 ( 16 MiB)
> .init : 0x001c0000 - 0x001d0000 ( 64 KiB)
> .text : 0x00020000 - 0x0017f8b0 (1407 KiB)
> .data : 0x0017f8b0 - 0x001bffc0 ( 258 KiB)
> .bss : 0x001d0000 - 0x001dd238 ( 53 KiB)
> SLUB: HWalign=16, Order=0-3, MinObjects=0, CPUs=1, Nodes=8
> NR_IRQS:256
> Calibrating delay loop... 64.71 BogoMIPS (lpj=323584)
> pid_max: default: 32768 minimum: 301
> Mount-cache hash table entries: 1024
> NET: Registered protocol family 16
> bio: create slab <bio-0> at 0
> pps_core: LinuxPPS API ver. 1 registered
> pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti
> <giometti@linux.it>
> PTP clock support registered
> Switching to clocksource pit
> NET: Registered protocol family 2
> TCP established hash table entries: 1024 (order: 0, 8192 bytes)
> TCP bind hash table entries: 2048 (order: 0, 8192 bytes)
> TCP: Hash tables configured (established 1024 bind 2048)
> TCP: reno registered
> UDP hash table entries: 512 (order: 0, 8192 bytes)
> UDP-Lite hash table entries: 512 (order: 0, 8192 bytes)
> NET: Registered protocol family 1
> ROMFS MTD (C) 2007 Red Hat, Inc.
> io scheduler noop registered (default)
> ColdFire internal UART serial driver
> ttyS0 at MMIO 0x40000200 (irq = 77) is a ColdFire UART
> ttyS1 at MMIO 0x40000240 (irq = 78) is a ColdFire UART
> console [ttyS1] enabled
> ttyS2 at MMIO 0x40000280 (irq = 79) is a ColdFire UART
> brd: module loaded
> uclinux[mtd]: probe address=0x1dd238 size=0xda000
> uclinux[mtd]: set ROMfs to be root filesystem
> Creating 1 MTD partitions on "ram":
> 0x000000000000-0x0000000da000 : "ROMfs"
> libphy: fec_enet_mii_bus: probed
> bad frame format: 00000000
> PC: [<000fcbe0>] 0x0fcbe0
> SR: 2004 SP: 0084be3c a2: 001d9394
> d0: 00954000 d1: 00000000 d2: 001aee36 d3: 00954000
> d4: 001bb77a d5: 00000000 a0: 400018e4 a1: 0084be96
> Process swapper (pid: 1, task=0084c000)
> Frame format=4 eff addr=001aee68 pc=0084bef0
> Stack from 0084be78:
> 00000000 00000000 001aee36 001aee36 001bb73c 0003bb34 001cd5d4
> 001aee68
> 001aee36 000eebac 001aee2c 000ed938 001aee36 001aee68 0017e20a
> 001aee36
> 000edd74 001bb73c 001aee36 00000000 000ec0a0 000edd00 001bb73c
> 000ec3a6
> 001aee36 001bb73c 00000007 0000001c 00942420 001badcc 0083eacc
> 0086eed0
> 000ed744 001badcc 00000000 001bb73c 000edd00 000ecf0c 001bb73c
> 00000007
> 0000001c 00000000 001cf908 001bb73c 001c0096 0003bb34 001cd5d4
> 000ee036
> Call Trace:
> [<0003bb34>] 0x03bb34
> [<000eebac>] 0x0eebac
> [<000ed938>] 0x0ed938
> [<0017e20a>] 0x17e20a
> [<000edd74>] 0x0edd74
>
> [<000ec0a0>] 0x0ec0a0
> [<000edd00>] 0x0edd00
> [<000ec3a6>] 0x0ec3a6
> [<000ed744>] 0x0ed744
> [<000edd00>] 0x0edd00
>
> [<000ecf0c>] 0x0ecf0c
> [<001c0096>] 0x1c0096
> [<0003bb34>] 0x03bb34
> [<000ee036>] 0x0ee036
> [<001c9c70>] 0x1c9c70
>
> [<001c0096>] 0x1c0096
> [<0003bb34>] 0x03bb34
> [<000eecfe>] 0x0eecfe
> [<001c9c7c>] 0x1c9c7c
> [<001c01a6>] 0x1c01a6
>
> [<001c0096>] 0x1c0096
> [<001c0668>] 0x1c0668
> [<001c9c70>] 0x1c9c70
> [<0017d172>] 0x17d172
> [<0017d17c>] 0x17d17c
>
> [<0017d172>] 0x17d172
> [<00020598>] 0x020598
>
> Code: 014c 6000 fc66 43ef 0026 2054 41e8 00e4 <2010> 2280 2054 41e8 00e8
> 2010 4240 4840 3f40 002a 2d
> Disabling lock debugging due to kernel taint
> Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b
> _______________________________________________
> uClinux-dev mailing list
> uClinux-dev@uclinux.org
> http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
> This message was resent by uclinux-dev@uclinux.org
> To unsubscribe see:
> http://mailman.uclinux.org/mailman/options/uclinux-dev
>
_______________________________________________
uClinux-dev mailing list
uClinux-dev@uclinux.org
http://mailman.uclinux.org/mailman/listinfo/uclinux-dev
This message was resent by uclinux-dev@uclinux.org
To unsubscribe see:
http://mailman.uclinux.org/mailman/options/uclinux-dev
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic