On Fri, Sep 3, 2010 at 1:41 PM, Amit Kucheria <amit.kuche...@linaro.org> wrote:
> I copied the 2 patches to http://people.canonical.com/~amitk/imx5
>

OK, as far as I can make out the patch does the right thing.

On Babbage 2.0 and the Pegatron lange5.1/nettop platforms, your check
is triggered, and at least on Babbage 2.0 /proc/cpuinfo and
/proc/self/auxv reflect the absence of NEON correctly.  (I couldn't
boot to an fs on the Pegatron platform --- in any case I had to bodge
the machine ID passed by the bootloader to persuage the kernel to
boot).

On Babbage 3.0, NEON is reported as present in /proc/cpuinfo and
/proc/self/auxv.

See the attached logs.

Cheers
---Dave
++Booting from SDHC0
Bus Width:    1
Card initialization successful!
Actual capacity of the card is 7977472KB
Redboot uses 2097152KB
... Read from 0x1fee0000-0x1ff00000 at 0x00040000: .
... Read from 0x1fed3000-0x1fed4000 at 0x0005f000: .
PMIC ID: 0x000041d0 [Rev: 2.0]
Initializing SPI-NOR flash...
FEC LAN8700 PHY: ID=7c0c4
FEC: [ HALF_DUPLEX ] [ disconnected ] [ 10M bps ]:
Ethernet mxc_fec: MAC address 00:04:9f:00:cd:23
No IP info for device!

Reset reason: Power-on reset
fis/fconfig from MMC
Boot switch: INTERNAL
	EXPANSION: SD/MMC-0

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Non-certified release, version FSL 200933 - built 11:53:51, Sep 23 2009

Platform: MX51 Babbage (Freescale i.MX51 based) PASS 2.0 [x32 DDR]. Board Rev 2.0
Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Copyright (C) 2003, 2004, 2005, 2006 eCosCentric Limited

RAM: 0x00000000-0x1ff00000, [0x000953e0-0x1fed1000] available
FLASH: 0x00000000 - 0x80000000, 16384 blocks of 0x00020000 bytes each.
== Executing boot script in 3.000 seconds - enter ^C to abort
^C
RedBoot> fis load initrd
... Read from 0x1fee0000-0x1feff000 at 0x00040000: .
... Read from 0x01000000-0x01940000 at 0x00560000: .
RedBoot> fis load kernel
... Read from 0x1fee0000-0x1feff000 at 0x00040000: .
... Read from 0x00100000-0x003ebd6c at 0x00060000: .
** Warning - checksum failure.  stored: 0xe311e36c, computed: 0xe75986d7
RedBoot> exec -r 16777216 -s 9699328 -c "console=ttymxc0,115200n8 ro rdinit=/bin/sh init=/bin/bash root=/dev/mmcblk0p2"
Warning: invalid entry address but still continue ...
entry=0x90008000, target=0x90008000
Using base address 0x00100000 and length 0x002ebd6c
Uncompressing Linux... done, booting the kernel.
Linux version 2.6.35.4+ (ubu...@babbage-davem-1) (gcc version 4.4.5 20100728 (prerelease) (Ubuntu/Linaro 4.4.4-8ubuntu1) ) #2 Fri Sep 3 13:43:17 UTC 2010
CPU: ARMv7 Processor [412fc081] revision 1 (ARMv7), cr=10c53c7f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: Freescale MX51 Babbage Board
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttymxc0,115200n8 ro rdinit=/bin/sh init=/bin/bash root=/dev/mmcblk0p2
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 512MB = 512MB total
Memory: 505796k/505796k available, 18492k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xe0800000 - 0xf4000000   ( 312 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc002a000   ( 136 kB)
      .text : 0xc002a000 - 0xc03e7000   (3828 kB)
      .data : 0xc03e8000 - 0xc0415c80   ( 184 kB)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
	RCU-based detection of stalled CPUs is disabled.
	Verbose stalled-CPUs detection is disabled.
NR_IRQS:272
TrustZone Interrupt Controller (TZIC) initialized
MXC GPIO hardware
Console: colour dummy device 80x30
Calibrating delay loop... 799.53 BogoMIPS (lpj=3997696)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
devtmpfs: initialized
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Advanced Linux Sound Architecture Driver Version 1.0.23.
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource mxc_timer1
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 9472K
audit: initializing netlink socket (disabled)
type=2000 audit(0.850:1): initialized
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
fuse init (API version 7.14)
msgmni has been set to 1006
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: IMX driver
imx-uart.0: ttymxc0 at MMIO 0x73fbc000 (irq = 31) is a IMX
console [ttymxc0] enabled
imx-uart.1: ttymxc1 at MMIO 0x73fc0000 (irq = 32) is a IMX
imx-uart.2: ttymxc2 at MMIO 0x7000c000 (irq = 33) is a IMX
brd: module loaded
loop: module loaded
Fixed MDIO Bus: probed
FEC Ethernet Driver
------------[ cut here ]------------
WARNING: at fs/sysfs/dir.c:451 sysfs_add_one+0x6c/0x8c()
sysfs: cannot create duplicate filename '/class/mdio_bus/0'
Modules linked in:
Backtrace: 
[<c00330dc>] (dump_backtrace+0x0/0x110) from [<c02e9420>] (dump_stack+0x18/0x1c)
 r6:c0394cd6 r5:000001c3 r4:df837d50 r3:f357b213
[<c02e9408>] (dump_stack+0x0/0x1c) from [<c0041b04>] (warn_slowpath_common+0x54/0x6c)
[<c0041ab0>] (warn_slowpath_common+0x0/0x6c) from [<c0041bc0>] (warn_slowpath_fmt+0x38/0x40)
 r8:00000001 r7:df837da0 r6:dee08750 r5:df811000 r4:ffffffef
r3:00000009
[<c0041b88>] (warn_slowpath_fmt+0x0/0x40) from [<c00e78a0>] (sysfs_add_one+0x6c/0x8c)
 r3:df811000 r2:c0394ce5
[<c00e7834>] (sysfs_add_one+0x0/0x8c) from [<c00e8814>] (sysfs_do_create_link+0xfc/0x1cc)
 r7:df833fc0 r6:dee086c0 r5:dee14648 r4:dee08750
[<c00e8718>] (sysfs_do_create_link+0x0/0x1cc) from [<c00e8910>] (sysfs_create_link+0x14/0x18)
[<c00e88fc>] (sysfs_create_link+0x0/0x18) from [<c01efbc0>] (device_add+0x1a0/0x4e4)
[<c01efa20>] (device_add+0x0/0x4e4) from [<c01eff20>] (device_register+0x1c/0x20)
[<c01eff04>] (device_register+0x0/0x20) from [<c021fa44>] (mdiobus_register+0x90/0x178)
 r4:dee14600 r3:00000000
[<c021f9b4>] (mdiobus_register+0x0/0x178) from [<c02e8be8>] (fec_probe+0x384/0x44c)
 r8:dee2c340 r7:dee2c340 r6:c03edd68 r5:dee2c000 r4:dee2c000
r3:dee0aba0
[<c02e8864>] (fec_probe+0x0/0x44c) from [<c01f30c8>] (platform_drv_probe+0x1c/0x20)
[<c01f30ac>] (platform_drv_probe+0x0/0x20) from [<c01f20a4>] (driver_probe_device+0xd0/0x18c)
[<c01f1fd4>] (driver_probe_device+0x0/0x18c) from [<c01f21c8>] (__driver_attach+0x68/0x8c)
 r7:00000000 r6:c040fc7c r5:c03edda4 r4:c03edd70
[<c01f2160>] (__driver_attach+0x0/0x8c) from [<c01f187c>] (bus_for_each_dev+0x54/0x84)
 r6:00000000 r5:c01f2160 r4:c040fc7c r3:00000000
[<c01f1828>] (bus_for_each_dev+0x0/0x84) from [<c01f1ee8>] (driver_attach+0x20/0x28)
 r6:c04081a8 r5:dee0aae0 r4:c040fc7c
[<c01f1ec8>] (driver_attach+0x0/0x28) from [<c01f1150>] (bus_add_driver+0xa4/0x224)
[<c01f10ac>] (bus_add_driver+0x0/0x224) from [<c01f2500>] (driver_register+0xb0/0x138)
[<c01f2450>] (driver_register+0x0/0x138) from [<c01f3560>] (platform_driver_register+0x4c/0x60)
 r8:00000000 r7:00000013 r6:00000000 r5:c0008550 r4:c001f324
r3:00000000
[<c01f3514>] (platform_driver_register+0x0/0x60) from [<c001f340>] (fec_enet_module_init+0x1c/0x28)
[<c001f324>] (fec_enet_module_init+0x0/0x28) from [<c002a3c0>] (do_one_initcall+0x60/0x1c4)
[<c002a360>] (do_one_initcall+0x0/0x1c4) from [<c00085f0>] (kernel_init+0xa0/0x158)
 r9:00000000 r8:00000000 r7:00000013 r6:c00449e8 r5:c0008550
r4:c0025e68
[<c0008550>] (kernel_init+0x0/0x158) from [<c00449e8>] (do_exit+0x0/0x584)
 r4:00000000 r3:00000000
---[ end trace 8e7f9b01bdc1dc55 ]---
mii_bus 0 failed to register
PPP generic driver version 2.4.2
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
mxc-ehci mxc-ehci.1: initializing i.MX USB Controller
mxc-ehci mxc-ehci.1: Freescale On-Chip EHCI Host Controller
mxc-ehci mxc-ehci.1: new USB bus registered, assigned bus number 1
mxc-ehci mxc-ehci.1: irq 14, io mem 0x73f80200
mxc-ehci mxc-ehci.1: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
mice: PS/2 mouse device common for all mice
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-de...@redhat.com
device-mapper: multipath: version 1.1.1 loaded
device-mapper: multipath round-robin: version 1.0.0 loaded
ALSA device list:
  No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 2
Turning off NEON support, detected broken NEON implemention
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Freeing init memory: 136K


BusyBox v1.13.3 (Ubuntu 1:1.13.3-1ubuntu7) built-in shell (ash)
Enter 'help' for a list of built-in commands.

# usb 1-1: new high speed USB device using mxc-ehci and address 2
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 7 ports detected
usb 1-1.2: new high speed USB device using mxc-ehci and address 3
hub 1-1.2:1.0: USB hub found
hub 1-1.2:1.0: 4 ports detected
usb 1-1.5: new full speed USB device using mxc-ehci and address 4
usb 1-1.2.3: new low speed USB device using mxc-ehci and address 5

# mkdir /proc
# mount -n -t proc proc /proc
# cat /proc/cpuinfo
Processor	: ARMv7 Processor rev 1 (v7l)
BogoMIPS	: 799.53
Features	: swp half thumb fastmult vfp edsp vfpv3 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x2
CPU part	: 0xc08
CPU revision	: 1

Hardware	: Freescale MX51 Babbage Board
Revision	: 51020
Serial		: 0000000000000000
# mkdir /tmp
# sed -e "s/.*/echo -en '&'/" | sh >/tmp/hd; chmod +x /tmp/hd
\177\105\114\106\001\001\001\000\000\000\000\000\000\000\000\000
\002\000\050\000\001\000\000\000\125\200\000\000\064\000\000\000
\344\000\000\000\000\000\000\005\064\000\040\000\001\000\050\000
\003\000\002\000\001\000\000\000\124\000\000\000\124\200\000\000
\124\200\000\000\176\000\000\000\176\000\000\000\005\000\000\000
\002\000\000\000\020\040\000\360\011\370\004\106\012\040\000\360
\060\370\000\054\366\332\000\040\001\047\000\337\020\265\004\106
\000\360\007\370\000\050\003\333\000\360\017\370\001\074\367\321
\020\275\201\260\000\040\151\106\001\042\003\047\000\337\001\050
\001\274\270\277\117\360\377\060\160\107\020\265\004\106\040\040
\000\360\017\370\117\352\024\020\000\360\002\370\040\106\000\340
\020\265\000\360\017\000\012\050\050\277\007\060\000\361\060\000
\000\340\020\265\001\264\001\040\151\106\001\042\004\047\000\337
\021\275
# /tmp/hd </proc/self/auxv
 10 00 00 00 D7 A0 00 00 06 00 00 00 00 10 00 00
 11 00 00 00 64 00 00 00 03 00 00 00 34 80 00 00
 04 00 00 00 20 00 00 00 05 00 00 00 0A 00 00 00
 07 00 00 00 00 20 0D 40 08 00 00 00 00 00 00 00
 09 00 00 00 70 DD 00 00 0B 00 00 00 00 00 00 00
 0C 00 00 00 00 00 00 00 0D 00 00 00 00 00 00 00
 0E 00 00 00 00 00 00 00 17 00 00 00 00 00 00 00
 19 00 00 00 C6 3F B4 BE 1F 00 00 00 F4 3F B4 BE
 0F 00 00 00 D6 3F B4 BE 00 00 00 00 00 00 00 00

# 

U-Boot 2009.01-1.1.1-dirty (Jul 15 2010 - 12:28:52)

CPU:   Freescale i.MX51 family 2.0V at 800 MHz
mx51 pll1: 800MHz
mx51 pll2: 665MHz
mx51 pll3: 216MHz
ipg clock     : 66500000Hz
ipg per clock : 55416666Hz
uart clock    : 66500000Hz
cspi clock    : 54000000Hz
Board: MX51 LANGE51 [POR]
DRAM:  512 MB
JEDEC ID: 0x00:0x00:0x00
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Boot Source: SDHC Card BOOT;
Boot Cmd: run lange51_setup; mmcinit; ext2load mmc 0:2 0x90007000 bootscript.uImg; autoscr 0x90007000
Hit any key to stop autoboot:  1  0 
Lange51-New# mm.l 0x90007fb0
90007fb0: aec00c02 ? e59f1000
90007fb4: aed00c02 ? ea000011
90007fb8: aee00c02 ? 0000084d
90007fbc: aef00c02 ? Lange51-New# boot
Write reg = 15  value = 0x00400022
For ER1
SD card.
Vendor: Man 03 OEM SD "SD08G" Date 10/2008
Product: 2152115623
Revision: 8.0

317 bytes read
## Executing script at 90007000

2062720 bytes read

3918062 bytes read
## Booting kernel from Legacy Image at 90007fc0 ...
   Image Name:   
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    2062656 Bytes =  2 MB
   Load Address: 90008000
   Entry Point:  90007fb0
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 907fffc0 ...
   Image Name:   
   Image Type:   ARM Linux RAMDisk Image (uncompressed)
   Data Size:    3917998 Bytes =  3.7 MB
   Load Address: 90800000
   Entry Point:  90800000
   Verifying Checksum ... OK
   Loading Kernel Image ... OK
OK

Starting kernel ...

Uncompressing Linux... done, booting the kernel.
Linux version 2.6.35.4+ (ubu...@babbage-davem-1) (gcc version 4.4.5 20100728 (prerelease) (Ubuntu/Linaro 4.4.4-8ubuntu1) ) #2 Fri Sep 3 13:43:17 UTC 2010
CPU: ARMv7 Processor [412fc081] revision 1 (ARMv7), cr=10c53c7f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: Freescale MX51 Babbage Board
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: ro vga root=/dev/mmcblk0p3 console=ttymxc0,115200n8 console=tty0 fixrtc bootchart=disable rdinit=/bin/sh init=/bin/bash
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 512MB = 512MB total
Memory: 511440k/511440k available, 12848k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xe0800000 - 0xf4000000   ( 312 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc002a000   ( 136 kB)
      .text : 0xc002a000 - 0xc03e7000   (3828 kB)
      .data : 0xc03e8000 - 0xc0415c80   ( 184 kB)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
	RCU-based detection of stalled CPUs is disabled.
	Verbose stalled-CPUs detection is disabled.
NR_IRQS:272
TrustZone Interrupt Controller (TZIC) initialized
MXC GPIO hardware
Console: colour dummy device 80x30
console [tty0] enabled
Calibrating delay loop... 799.53 BogoMIPS (lpj=3997696)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
devtmpfs: initialized
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Advanced Linux Sound Architecture Driver Version 1.0.23.
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource mxc_timer1
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 3824K
audit: initializing netlink socket (disabled)
type=2000 audit(0.690:1): initialized
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
fuse init (API version 7.14)
msgmni has been set to 1006
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: IMX driver
imx-uart.0: ttymxc0 at MMIO 0x73fbc000 (irq = 31) is a IMX
console [ttymxc0] enabled
imx-uart.1: ttymxc1 at MMIO 0x73fc0000 (irq = 32) is a IMX
imx-uart.2: ttymxc2 at MMIO 0x7000c000 (irq = 33) is a IMX
brd: module loaded
loop: module loaded
Fixed MDIO Bus: probed
FEC Ethernet Driver
------------[ cut here ]------------
WARNING: at fs/sysfs/dir.c:451 sysfs_add_one+0x6c/0x8c()
sysfs: cannot create duplicate filename '/class/mdio_bus/0'
Modules linked in:
Backtrace: 
[<c00330dc>] (dump_backtrace+0x0/0x110) from [<c02e9420>] (dump_stack+0x18/0x1c)
 r6:c0394cd6 r5:000001c3 r4:df837d50 r3:f357b213
[<c02e9408>] (dump_stack+0x0/0x1c) from [<c0041b04>] (warn_slowpath_common+0x54/0x6c)
[<c0041ab0>] (warn_slowpath_common+0x0/0x6c) from [<c0041bc0>] (warn_slowpath_fmt+0x38/0x40)
 r8:00000001 r7:df837da0 r6:ded72750 r5:df811000 r4:ffffffef
r3:00000009
[<c0041b88>] (warn_slowpath_fmt+0x0/0x40) from [<c00e78a0>] (sysfs_add_one+0x6c/0x8c)
 r3:df811000 r2:c0394ce5
[<c00e7834>] (sysfs_add_one+0x0/0x8c) from [<c00e8814>] (sysfs_do_create_link+0xfc/0x1cc)
 r7:df833fc0 r6:ded726c0 r5:ded7e648 r4:ded72750
[<c00e8718>] (sysfs_do_create_link+0x0/0x1cc) from [<c00e8910>] (sysfs_create_link+0x14/0x18)
[<c00e88fc>] (sysfs_create_link+0x0/0x18) from [<c01efbc0>] (device_add+0x1a0/0x4e4)
[<c01efa20>] (device_add+0x0/0x4e4) from [<c01eff20>] (device_register+0x1c/0x20)
[<c01eff04>] (device_register+0x0/0x20) from [<c021fa44>] (mdiobus_register+0x90/0x178)
 r4:ded7e600 r3:00000000
[<c021f9b4>] (mdiobus_register+0x0/0x178) from [<c02e8be8>] (fec_probe+0x384/0x44c)
 r8:ded94340 r7:ded94340 r6:c03edd68 r5:ded94000 r4:ded94000
r3:ded74ba0
[<c02e8864>] (fec_probe+0x0/0x44c) from [<c01f30c8>] (platform_drv_probe+0x1c/0x20)
[<c01f30ac>] (platform_drv_probe+0x0/0x20) from [<c01f20a4>] (driver_probe_device+0xd0/0x18c)
[<c01f1fd4>] (driver_probe_device+0x0/0x18c) from [<c01f21c8>] (__driver_attach+0x68/0x8c)
 r7:00000000 r6:c040fc7c r5:c03edda4 r4:c03edd70
[<c01f2160>] (__driver_attach+0x0/0x8c) from [<c01f187c>] (bus_for_each_dev+0x54/0x84)
 r6:00000000 r5:c01f2160 r4:c040fc7c r3:00000000
[<c01f1828>] (bus_for_each_dev+0x0/0x84) from [<c01f1ee8>] (driver_attach+0x20/0x28)
 r6:c04081a8 r5:ded74ae0 r4:c040fc7c
[<c01f1ec8>] (driver_attach+0x0/0x28) from [<c01f1150>] (bus_add_driver+0xa4/0x224)
[<c01f10ac>] (bus_add_driver+0x0/0x224) from [<c01f2500>] (driver_register+0xb0/0x138)
[<c01f2450>] (driver_register+0x0/0x138) from [<c01f3560>] (platform_driver_register+0x4c/0x60)
 r8:00000000 r7:00000013 r6:00000000 r5:c0008550 r4:c001f324
r3:00000000
[<c01f3514>] (platform_driver_register+0x0/0x60) from [<c001f340>] (fec_enet_module_init+0x1c/0x28)
[<c001f324>] (fec_enet_module_init+0x0/0x28) from [<c002a3c0>] (do_one_initcall+0x60/0x1c4)
[<c002a360>] (do_one_initcall+0x0/0x1c4) from [<c00085f0>] (kernel_init+0xa0/0x158)
 r9:00000000 r8:00000000 r7:00000013 r6:c00449e8 r5:c0008550
r4:c0025e68
[<c0008550>] (kernel_init+0x0/0x158) from [<c00449e8>] (do_exit+0x0/0x584)
 r4:00000000 r3:00000000
---[ end trace 54196d198281898c ]---
mii_bus 0 failed to register
PPP generic driver version 2.4.2
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
mxc-ehci mxc-ehci.1: initializing i.MX USB Controller
mxc-ehci mxc-ehci.1: Freescale On-Chip EHCI Host Controller
mxc-ehci mxc-ehci.1: new USB bus registered, assigned bus number 1
mxc-ehci mxc-ehci.1: irq 14, io mem 0x73f80200
mxc-ehci mxc-ehci.1: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
mice: PS/2 mouse device common for all mice
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-de...@redhat.com
device-mapper: multipath: version 1.1.1 loaded
device-mapper: multipath round-robin: version 1.0.0 loaded
ALSA device list:
  No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 2
Turning off NEON support, detected broken NEON implemention
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Freeing init memory: 136K
++Booting from SDHC0
Bus Width:    1
Card initialization successful!
Actual capacity of the card is 7977472KB
Redboot uses 2097152KB
... Read from 0x1fee0000-0x1ff00000 at 0x00040000: .
... Read from 0x1fed3000-0x1fed4000 at 0x0005f000: .
PMIC ID: 0x000045d0 [Rev: 2.0a]
Initializing SPI-NOR flash...
FEC LAN8700 PHY: ID=7c0c4
FEC: [ HALF_DUPLEX ] [ disconnected ] [ 10M bps ]:
Ethernet mxc_fec: MAC address 00:04:9f:01:06:44
No IP info for device!

Reset reason: Power-on reset
fis/fconfig from MMC
Boot switch: INTERNAL
	EXPANSION: SD/MMC-0

RedBoot(tm) bootstrap and debug environment [ROMRAM]
Non-certified release, version FSL 200933 - built 11:53:51, Sep 23 2009

Platform: MX51 Babbage (Freescale i.MX51 based) PASS 3.0 [x32 DDR]. Board Rev 2.5
Copyright (C) 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
Copyright (C) 2003, 2004, 2005, 2006 eCosCentric Limited

RAM: 0x00000000-0x1ff00000, [0x000953e0-0x1fed1000] available
FLASH: 0x00000000 - 0x80000000, 16384 blocks of 0x00020000 bytes each.
== Executing boot script in 3.000 seconds - enter ^C to abort
^C
RedBoot> fis load initrd
... Read from 0x1fee0000-0x1feff000 at 0x00040000: .
... Read from 0x01000000-0x01940000 at 0x00560000: .
RedBoot> fis load kernel
... Read from 0x1fee0000-0x1feff000 at 0x00040000: .
... Read from 0x00100000-0x003ebd6c at 0x00060000: .
** Warning - checksum failure.  stored: 0xe311e36c, computed: 0xe75986d7
RedBoot> exec -r 16777216 -s 9699328 -c "console=ttymxc0,115200n8 ro root=/dev/mmcblk0p2 rdinit=/bin/sh init=/bin/bash"
Warning: invalid entry address but still continue ...
entry=0x90008000, target=0x90008000
Using base address 0x00100000 and length 0x002ebd6c
Uncompressing Linux... done, booting the kernel.
Linux version 2.6.35.4+ (ubu...@babbage-davem-1) (gcc version 4.4.5 20100728 (prerelease) (Ubuntu/Linaro 4.4.4-8ubuntu1) ) #2 Fri Sep 3 13:43:17 UTC 2010
CPU: ARMv7 Processor [412fc085] revision 5 (ARMv7), cr=10c53c7f
CPU: VIPT nonaliasing data cache, VIPT nonaliasing instruction cache
Machine: Freescale MX51 Babbage Board
Memory policy: ECC disabled, Data cache writeback
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
Kernel command line: console=ttymxc0,115200n8 ro root=/dev/mmcblk0p2 rdinit=/bin/sh init=/bin/bash
PID hash table entries: 2048 (order: 1, 8192 bytes)
Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
Memory: 512MB = 512MB total
Memory: 505796k/505796k available, 18492k reserved, 0K highmem
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    DMA     : 0xffc00000 - 0xffe00000   (   2 MB)
    vmalloc : 0xe0800000 - 0xf4000000   ( 312 MB)
    lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    modules : 0xbf000000 - 0xc0000000   (  16 MB)
      .init : 0xc0008000 - 0xc002a000   ( 136 kB)
      .text : 0xc002a000 - 0xc03e7000   (3828 kB)
      .data : 0xc03e8000 - 0xc0415c80   ( 184 kB)
SLUB: Genslabs=11, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
	RCU-based detection of stalled CPUs is disabled.
	Verbose stalled-CPUs detection is disabled.
NR_IRQS:272
TrustZone Interrupt Controller (TZIC) initialized
MXC GPIO hardware
Console: colour dummy device 80x30
Calibrating delay loop... 799.53 BogoMIPS (lpj=3997696)
pid_max: default: 32768 minimum: 301
Security Framework initialized
SELinux:  Disabled at boot.
Mount-cache hash table entries: 512
CPU: Testing write buffer coherency: ok
devtmpfs: initialized
NET: Registered protocol family 16
bio: create slab <bio-0> at 0
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
Advanced Linux Sound Architecture Driver Version 1.0.23.
NetLabel: Initializing
NetLabel:  domain hash size = 128
NetLabel:  protocols = UNLABELED CIPSOv4
NetLabel:  unlabeled traffic allowed by default
Switching to clocksource mxc_timer1
NET: Registered protocol family 2
IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
TCP established hash table entries: 16384 (order: 5, 131072 bytes)
TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 16384 bind 16384)
TCP reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
Trying to unpack rootfs image as initramfs...
Freeing initrd memory: 9472K
audit: initializing netlink socket (disabled)
type=2000 audit(0.840:1): initialized
VFS: Disk quotas dquot_6.5.2
Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
fuse init (API version 7.14)
msgmni has been set to 1006
alg: No test for stdrng (krng)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: IMX driver
imx-uart.0: ttymxc0 at MMIO 0x73fbc000 (irq = 31) is a IMX
console [ttymxc0] enabled
imx-uart.1: ttymxc1 at MMIO 0x73fc0000 (irq = 32) is a IMX
imx-uart.2: ttymxc2 at MMIO 0x7000c000 (irq = 33) is a IMX
brd: module loaded
loop: module loaded
Fixed MDIO Bus: probed
FEC Ethernet Driver
------------[ cut here ]------------
WARNING: at fs/sysfs/dir.c:451 sysfs_add_one+0x6c/0x8c()
sysfs: cannot create duplicate filename '/class/mdio_bus/0'
Modules linked in:
Backtrace: 
[<c00330dc>] (dump_backtrace+0x0/0x110) from [<c02e9420>] (dump_stack+0x18/0x1c)
 r6:c0394cd6 r5:000001c3 r4:df837d50 r3:f357b213
[<c02e9408>] (dump_stack+0x0/0x1c) from [<c0041b04>] (warn_slowpath_common+0x54/0x6c)
[<c0041ab0>] (warn_slowpath_common+0x0/0x6c) from [<c0041bc0>] (warn_slowpath_fmt+0x38/0x40)
 r8:00000001 r7:df837da0 r6:dee09750 r5:df811000 r4:ffffffef
r3:00000009
[<c0041b88>] (warn_slowpath_fmt+0x0/0x40) from [<c00e78a0>] (sysfs_add_one+0x6c/0x8c)
 r3:df811000 r2:c0394ce5
[<c00e7834>] (sysfs_add_one+0x0/0x8c) from [<c00e8814>] (sysfs_do_create_link+0xfc/0x1cc)
 r7:df833fc0 r6:dee096c0 r5:dee15648 r4:dee09750
[<c00e8718>] (sysfs_do_create_link+0x0/0x1cc) from [<c00e8910>] (sysfs_create_link+0x14/0x18)
[<c00e88fc>] (sysfs_create_link+0x0/0x18) from [<c01efbc0>] (device_add+0x1a0/0x4e4)
[<c01efa20>] (device_add+0x0/0x4e4) from [<c01eff20>] (device_register+0x1c/0x20)
[<c01eff04>] (device_register+0x0/0x20) from [<c021fa44>] (mdiobus_register+0x90/0x178)
 r4:dee15600 r3:00000000
[<c021f9b4>] (mdiobus_register+0x0/0x178) from [<c02e8be8>] (fec_probe+0x384/0x44c)
 r8:dee38340 r7:dee38340 r6:c03edd68 r5:dee38000 r4:dee38000
r3:dee0bba0
[<c02e8864>] (fec_probe+0x0/0x44c) from [<c01f30c8>] (platform_drv_probe+0x1c/0x20)
[<c01f30ac>] (platform_drv_probe+0x0/0x20) from [<c01f20a4>] (driver_probe_device+0xd0/0x18c)
[<c01f1fd4>] (driver_probe_device+0x0/0x18c) from [<c01f21c8>] (__driver_attach+0x68/0x8c)
 r7:00000000 r6:c040fc7c r5:c03edda4 r4:c03edd70
[<c01f2160>] (__driver_attach+0x0/0x8c) from [<c01f187c>] (bus_for_each_dev+0x54/0x84)
 r6:00000000 r5:c01f2160 r4:c040fc7c r3:00000000
[<c01f1828>] (bus_for_each_dev+0x0/0x84) from [<c01f1ee8>] (driver_attach+0x20/0x28)
 r6:c04081a8 r5:dee0bae0 r4:c040fc7c
[<c01f1ec8>] (driver_attach+0x0/0x28) from [<c01f1150>] (bus_add_driver+0xa4/0x224)
[<c01f10ac>] (bus_add_driver+0x0/0x224) from [<c01f2500>] (driver_register+0xb0/0x138)
[<c01f2450>] (driver_register+0x0/0x138) from [<c01f3560>] (platform_driver_register+0x4c/0x60)
 r8:00000000 r7:00000013 r6:00000000 r5:c0008550 r4:c001f324
r3:00000000
[<c01f3514>] (platform_driver_register+0x0/0x60) from [<c001f340>] (fec_enet_module_init+0x1c/0x28)
[<c001f324>] (fec_enet_module_init+0x0/0x28) from [<c002a3c0>] (do_one_initcall+0x60/0x1c4)
[<c002a360>] (do_one_initcall+0x0/0x1c4) from [<c00085f0>] (kernel_init+0xa0/0x158)
 r9:00000000 r8:00000000 r7:00000013 r6:c00449e8 r5:c0008550
r4:c0025e68
[<c0008550>] (kernel_init+0x0/0x158) from [<c00449e8>] (do_exit+0x0/0x584)
 r4:00000000 r3:00000000
---[ end trace 7ffe62c7556c2594 ]---
mii_bus 0 failed to register
PPP generic driver version 2.4.2
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
mxc-ehci mxc-ehci.1: initializing i.MX USB Controller
mxc-ehci mxc-ehci.1: Freescale On-Chip EHCI Host Controller
mxc-ehci mxc-ehci.1: new USB bus registered, assigned bus number 1
mxc-ehci mxc-ehci.1: irq 14, io mem 0x73f80200
mxc-ehci mxc-ehci.1: USB 2.0 started, EHCI 1.00
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
mice: PS/2 mouse device common for all mice
device-mapper: uevent: version 1.0.3
device-mapper: ioctl: 4.17.0-ioctl (2010-03-05) initialised: dm-de...@redhat.com
device-mapper: multipath: version 1.1.1 loaded
device-mapper: multipath round-robin: version 1.0.0 loaded
ALSA device list:
  No soundcards found.
TCP cubic registered
NET: Registered protocol family 17
VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 2
drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
Freeing init memory: 136K


BusyBox v1.13.3 (Ubuntu 1:1.13.3-1ubuntu7) built-in shell (ash)
Enter 'help' for a list of built-in commands.

# usb 1-1: new high speed USB device using mxc-ehci and address 2
hub 1-1:1.0: USB hub found
hub 1-1:1.0: 7 ports detected
usb 1-1.6: new high speed USB device using mxc-ehci and address 3

# mkdir /proc /tmp
# mount -ntproc proc /proc
# cat /proc/cpuinfo
Processor	: ARMv7 Processor rev 5 (v7l)
BogoMIPS	: 799.53
Features	: swp half thumb fastmult vfp edsp neon vfpv3 
CPU implementer	: 0x41
CPU architecture: 7
CPU variant	: 0x2
CPU part	: 0xc08
CPU revision	: 5

Hardware	: Freescale MX51 Babbage Board
Revision	: 51130
Serial		: 0000000000000000
# sed -e "s/.*/echo -en '&'/"|sh>/tmp/hd; chmod +x /tmp/hd
\177\105\114\106\001\001\001\000\000\000\000\000\000\000\000\000
\002\000\050\000\001\000\000\000\125\200\000\000\064\000\000\000
\344\000\000\000\000\000\000\005\064\000\040\000\001\000\050\000
\003\000\002\000\001\000\000\000\124\000\000\000\124\200\000\000
\124\200\000\000\176\000\000\000\176\000\000\000\005\000\000\000
\002\000\000\000\020\040\000\360\011\370\004\106\012\040\000\360
\060\370\000\054\366\332\000\040\001\047\000\337\020\265\004\106
\000\360\007\370\000\050\003\333\000\360\017\370\001\074\367\321
\020\275\201\260\000\040\151\106\001\042\003\047\000\337\001\050
\001\274\270\277\117\360\377\060\160\107\020\265\004\106\040\040
\000\360\017\370\117\352\024\020\000\360\002\370\040\106\000\340
\020\265\000\360\017\000\012\050\050\277\007\060\000\361\060\000
\000\340\020\265\001\264\001\040\151\106\001\042\004\047\000\337
\021\275
# /tmp/hd </proc/self/auxv
 10 00 00 00 D7 B0 00 00 06 00 00 00 00 10 00 00
 11 00 00 00 64 00 00 00 03 00 00 00 34 80 00 00
 04 00 00 00 20 00 00 00 05 00 00 00 0A 00 00 00
 07 00 00 00 00 E0 0C 40 08 00 00 00 00 00 00 00
 09 00 00 00 70 DD 00 00 0B 00 00 00 00 00 00 00
 0C 00 00 00 00 00 00 00 0D 00 00 00 00 00 00 00
 0E 00 00 00 00 00 00 00 17 00 00 00 00 00 00 00
 19 00 00 00 C6 1F AF BE 1F 00 00 00 F4 1F AF BE
 0F 00 00 00 D6 1F AF BE 00 00 00 00 00 00 00 00

# Kernel panic - not syncing: Attempted to kill init!
_______________________________________________
linaro-dev mailing list
linaro-dev@lists.linaro.org
http://lists.linaro.org/mailman/listinfo/linaro-dev

Reply via email to