TWR-LS1021A: kernel crashes while booting from SD Card

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

TWR-LS1021A: kernel crashes while booting from SD Card

8,820 Views
cpark
Contributor II

Hi,

I am seeing kernel crash when booting from SD card.  It happens only when using u-boot built for ls1021atwr_sdcard.

1) Using u-boot built for ls1021atwr_nor

SW2[1:8]: ON OFF OFF OFF ON ON ON ON

(RCW Source is NOR)

It works fine.

U-Boot 2014.07+ls1+g659b6a2 (Dec 13 2014 - 22:53:42)

CPU:   Freescale LayerScape LS1021E, Version: 1.0, (0x87081110)

Clock Configuration:

       CPU0(ARMV7):1000 MHz,

       Bus:300  MHz, DDR:800  MHz (1600 MT/s data rate),

Reset Configuration Word (RCW):

       00000000: 0608000a 00000000 00000000 00000000

       00000010: 20000000 00407900 e0025a00 21046000

       00000020: 00000000 00000000 00000000 0003c000

       00000030: 00080000 901b7540 00000000 00000000

Board: LS1021ATWR

CPLD:  V2.3

PCBA:  V3.0

VBank: 1

I2C:   ready

DRAM:  1 GiB

Using SERDES1 Protocol: 32 (0x20)

Firmware 'Microcode version 0.0.0 for T1040 r1.0' for 1040 V1.0

QE: uploading microcode 'Microcode for T1040 r1.0'

Flash: 128 MiB

MMC:   FSL_SDHC: 0

EEPROM: CRC mismatch (7c782ff9 != ffffffff)

In:    serial

Out:   serial

Err:   serial

Net:   eTSEC1 is in sgmii mode.

eTSEC2 is in sgmii mode.

eTSEC1 [PRIME], eTSEC2, eTSEC3

Hit any key to stop autoboot:  3  0

=> setenv ethaddr 00:04:9F:03:5C:1B

=> setenv eth1addr 00:04:9F:03:5C:1C

=> setenv eth2addr 00:04:9F:03:5C:1D

=> setenv bootfile uImage

=> setenv fdtfile uImage.dtb

=> setenv consoledev ttyS0

=> setenv baudrate 115200

=> setenv loadaddr 0x82000000

=> setenv fdtaddr 0x8f000000

=> setenv bootcmd 'setenv bootargs root=/dev/mmcblk0p2 rw rootdelay=5 console=$consoledev,$baudrate;mmcinfo;ext2load mmc 0:2 $loadaddr /boot/$bootfile;ext2load mmc 0:2 $fdtaddr /boot/$fdtfile;bootm $loadaddr - $fdtaddr'

=> boot

Device: FSL_SDHC

Manufacturer ID: 2

OEM: 544d

Name: SA08G

Tran Speed: 50000000

Rd Block Len: 512

SD version 3.0

High Capacity: Yes

Capacity: 7.3 GiB

Bus Width: 4-bit

3110416 bytes read in 218 ms (13.6 MiB/s)

20687 bytes read in 83 ms (243.2 KiB/s)

## Booting kernel from Legacy Image at 82000000 ...

   Image Name:   Linux-3.12.19-rt30+ls1+g6619b8b

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    3110352 Bytes = 3 MiB

   Load Address: 80008000

   Entry Point:  80008000

   Verifying Checksum ... OK

## Flattened Device Tree blob at 8f000000

   Booting using the fdt blob at 0x8f000000

   Loading Kernel Image ... OK

   Loading Device Tree to bef29000, end bef310ce ... OK

Starting kernel ...

Booting Linux on physical CPU 0xf00

Linux version 3.12.19-rt30+ls1+g6619b8b (chantaek@0942-Ubuntu1) (gcc version 4.8.3 20140401 (prerelease) (Linaro GCC 4.8-2014.04) ) #120 SMP Wed Feb 18 10:54:17 EST 2015

CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=70c73c7d

CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache

Machine: Freescale LS1021A, model: LS1021A TWR Board

Memory policy: ECC disabled, Data cache writealloc

PERCPU: Embedded 8 pages/cpu @80d55000 s8384 r8192 d16192 u32768

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096

Kernel command line: root=/dev/mmcblk0p2 rw rootdelay=5 console=ttyS0,115200

PID hash table entries: 4096 (order: 2, 16384 bytes)

Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)

Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)

Memory: 1034032K/1048576K available (3253K kernel code, 258K rwdata, 1476K rodata, 184K init, 197K bss, 14544K reserved, 0K highmem)

Virtual kernel memory layout:

    vector  : 0xffff0000 - 0xffff1000   (   4 kB)

    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)

    vmalloc : 0xc0800000 - 0xff000000   (1000 MB)

    lowmem  : 0x80000000 - 0xc0000000   (1024 MB)

    pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)

    modules : 0x7f800000 - 0x7fe00000   (   6 MB)

      .text : 0x80008000 - 0x804a6834   (4731 kB)

      .init : 0x804a7000 - 0x804d50c0   ( 185 kB)

      .data : 0x804d6000 - 0x80516a60   ( 259 kB)

       .bss : 0x80516a68 - 0x80547ea4   ( 198 kB)

SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1

Hierarchical RCU implementation.

  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.

NR_IRQS:16 nr_irqs:16 16

Architected cp15 timer(s) running at 12.50MHz (phys).

Switching to timer-based delay loop

sched_clock: ARM arch timer >56 bits at 12500kHz, resolution 80ns

sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms

Console: colour dummy device 80x30

Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIPS (lpj=125000)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

CPU: Testing write buffer coherency: ok

CPU0: update cpu_power 1024

CPU0: thread -1, cpu 0, socket 15, mpidr 80000f00

Setting up static identity map for 0x8030a3d0 - 0x8030a434

CPU1: Booted secondary processor

CPU1: update cpu_power 1024

CPU1: thread -1, cpu 1, socket 15, mpidr 80000f01

Brought up 2 CPUs

SMP: Total of 2 processors activated.

CPU: All CPU(s) started in HYP mode.

CPU: Virtualization extensions available.

devtmpfs: initialized

VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5

regulator-dummy: no parameters

NET: Registered protocol family 16

DMA: preallocated 256 KiB pool for atomic coherent allocations

cpuidle: using governor ladder

cpuidle: using governor menu

syscon 1570000.scfg: regmap [mem 0x01570000-0x0157ffff] registered

irq: no irq domain found for /soc/uqe@2400000/qeic@80 !

irq: no irq domain found for /soc/uqe@2400000/qeic@80 !

hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.

hw-breakpoint: maximum watchpoint size is 8 bytes.

bio: create slab <bio-0> at 0

3P3V: 3300 mV

vgaarb: loaded

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

i2c i2c-0: IMX I2C adapter registered

i2c i2c-1: IMX I2C adapter registered

i2c i2c-2: of_i2c: modalias failure on /soc/i2c@21a0000/ltc2945@67

i2c i2c-2: IMX I2C adapter registered

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

fsl-ifc 1530000.ifc: Freescale Integrated Flash Controller

Advanced Linux Sound Architecture Driver Initialized.

Switched to clocksource arch_sys_counter

NET: Registered protocol family 2

TCP established hash table entries: 8192 (order: 4, 65536 bytes)

TCP bind hash table entries: 8192 (order: 4, 65536 bytes)

TCP: Hash tables configured (established 8192 bind 8192)

TCP: reno registered

UDP hash table entries: 512 (order: 2, 16384 bytes)

UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)

NET: Registered protocol family 1

RPC: Registered named UNIX socket transport module.

RPC: Registered udp transport module.

RPC: Registered tcp transport module.

RPC: Registered tcp NFSv4.1 backchannel transport module.

hw perfevents: enabled with ARMv7 Cortex-A7 PMU driver, 5 counters available

NFS: Registering the id_resolver key type

Key type id_resolver registered

Key type id_legacy registered

jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.

msgmni has been set to 2019

io scheduler noop registered

io scheduler deadline registered

io scheduler cfq registered (default)

layerscape-pcie 3400000.pcie: PCI host bridge to bus 0000:00

pci_bus 0000:00: root bus resource [io  0x1000-0xffff]

pci_bus 0000:00: root bus resource [mem 0x4040000000-0x407fffffff] (bus address [0x40000000-0x7fffffff])

pci_bus 0000:00: root bus resource [bus 00-ff]

PCI: bus0: Fast back to back transfers disabled

PCI: bus1: Fast back to back transfers disabled

pci 0000:00:00.0: BAR 1: assigned [mem 0x4040000000-0x4043ffffff]

pci 0000:00:00.0: BAR 0: assigned [mem 0x4044000000-0x4044ffffff]

pci 0000:00:00.0: BAR 6: assigned [mem 0x4045000000-0x4045ffffff pref]

pci 0000:00:00.0: BAR 8: assigned [mem 0x4046000000-0x40460fffff]

pci 0000:01:00.0: BAR 0: assigned [mem 0x4046000000-0x4046001fff 64bit]

pci 0000:00:00.0: PCI bridge to [bus 01]

pci 0000:00:00.0:   bridge window [mem 0x4046000000-0x40460fffff]

layerscape-pcie 3500000.pcie: phy link never came up

layerscape-pcie 3500000.pcie: PCI host bridge to bus 0001:00

pci_bus 0001:00: root bus resource [io  0x10000-0x1ffff] (bus address [0x0000-0xffff])

pci_bus 0001:00: root bus resource [mem 0x4840000000-0x487fffffff] (bus address [0x40000000-0x7fffffff])

pci_bus 0001:00: root bus resource [bus 00-ff]

PCI: bus0: Fast back to back transfers disabled

PCI: bus1: Fast back to back transfers enabled

pci 0001:00:00.0: BAR 1: assigned [mem 0x4840000000-0x4843ffffff]

pci 0001:00:00.0: BAR 0: assigned [mem 0x4844000000-0x4844ffffff]

pci 0001:00:00.0: BAR 6: assigned [mem 0x4845000000-0x4845ffffff pref]

pci 0001:00:00.0: PCI bridge to [bus 01]

sii902x: probe of 1-0039 failed with error -1

syscon 1570000.scfg: Failed to create debugfs directory

Console: switching to colour frame buffer device 60x34

fb0: fb device registered successfully.

fb1: fb device registered successfully.

fb2: fb device registered successfully.

fb3: fb device registered successfully.

Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled

21c0500.serial: ttyS0 at MMIO 0x21c0500 (irq = 118, base_baud = 9375000) is a 16550A_FSL64

console [ttyS0] enabled

21c0600.serial: ttyS1 at MMIO 0x21c0600 (irq = 118, base_baud = 9375000) is a 16550A_FSL64

of_serial 2402200.ucc: clk or clock-frequency not defined

of_serial: probe of 2402200.ucc failed with error -2

serial: Freescale lpuart driver

2950000.serial: ttyLP0 at MMIO 0x2950000 (irq = 112, base_baud = 6250000) is a FSL_LPUART

brd: module loaded

loop: module loaded

60000000.nor: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000089 Chip ID 0x00227e

Amd/Fujitsu Extended Query Table at 0x0040

  Amd/Fujitsu Extended Query version 1.3.

number of CFI chips: 1

8 ofpart partitions found on MTD device 60000000.nor

Creating 8 MTD partitions on "60000000.nor":

0x000000000000-0x000000020000 : "NOR bank0 RCW Image"

0x000000020000-0x000000120000 : "NOR DTB Image"

0x000000120000-0x000000920000 : "NOR Linux Kernel Image"

0x000000920000-0x000003f20000 : "NOR Ramdisk Root File System Image"

0x000003f80000-0x000004000000 : "NOR bank4 u-boot Image"

0x000004000000-0x000004020000 : "NOR bank4 RCW Image"

0x000004020000-0x000007f20000 : "NOR JFFS2 ROOT File System Image"

0x000007f80000-0x000008000000 : "NOR bank0 u-boot Image"

fsl-quadspi 1550000.quadspi: found mr25h256, expected n25q128a13

fsl-quadspi 1550000.quadspi: mr25h256 (32 Kbytes)

fsl-quadspi 1550000.quadspi: Unsupported cmd 0x03

fsl-quadspi 1550000.quadspi: QuadSPI SPI NOR flash driver

CAN device driver interface

libphy: Freescale PowerQUICC MII Bus: probed

fsl-gianfar ethernet.4: enabled errata workarounds, flags: 0x4

fsl-gianfar ethernet.4 eth0: mac: 00:04:9f:03:5c:1b

fsl-gianfar ethernet.4 eth0: Running with NAPI enabled

fsl-gianfar ethernet.4 eth0: RX BD ring size for Q[0]: 256

fsl-gianfar ethernet.4 eth0: TX BD ring size for Q[0]: 256

fsl-gianfar ethernet.5: enabled errata workarounds, flags: 0x4

fsl-gianfar ethernet.5 eth1: mac: 00:04:9f:03:5c:1c

fsl-gianfar ethernet.5 eth1: Running with NAPI enabled

fsl-gianfar ethernet.5 eth1: RX BD ring size for Q[0]: 256

fsl-gianfar ethernet.5 eth1: TX BD ring size for Q[0]: 256

fsl-gianfar ethernet.6: enabled errata workarounds, flags: 0x4

fsl-gianfar ethernet.6 eth2: mac: 00:04:9f:03:5c:1d

fsl-gianfar ethernet.6 eth2: Running with NAPI enabled

fsl-gianfar ethernet.6 eth2: RX BD ring size for Q[0]: 256

fsl-gianfar ethernet.6 eth2: TX BD ring size for Q[0]: 256

e1000e: Intel(R) PRO/1000 Network Driver - 2.3.2-k

e1000e: Copyright(c) 1999 - 2013 Intel Corporation.

xhci-hcd xhci-hcd.0.auto: xHCI Host Controller

xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 1

xhci-hcd xhci-hcd.0.auto: irq 125, io mem 0x03100000

hub 1-0:1.0: USB hub found

hub 1-0:1.0: 1 port detected

xhci-hcd xhci-hcd.0.auto: xHCI Host Controller

xhci-hcd xhci-hcd.0.auto: new USB bus registered, assigned bus number 2

hub 2-0:1.0: USB hub found

hub 2-0:1.0: 1 port detected

usbcore: registered new interface driver usb-storage

printer gadget: Printer Gadget, version: 2007 OCT 06

printer gadget: printer ready

mousedev: PS/2 mouse device common for all mice

i2c /dev entries driver

imx2-wdt 2ad0000.wdog: timeout 60 sec (nowayout=0)

qoriq_cpufreq: Freescale PowerPC qoriq CPU frequency scaling driver

sdhci: Secure Digital Host Controller Interface driver

sdhci: Copyright(c) Pierre Ossman

sdhci-pltfm: SDHCI platform and OF driver helper

mmc0: no vqmmc regulator found

mmc0: no vmmc regulator found

mmc0: SDHCI controller on 1560000.esdhc [1560000.esdhc] using ADMA

caam 1700000.crypto: Entropy delay = 3200

caam 1700000.crypto: Instantiated RNG4 SH0

caam 1700000.crypto: Instantiated RNG4 SH1

caam 1700000.crypto: device ID = 0x0a14030000000000 (Era 7)

caam 1700000.crypto: job rings = 4, qi = 0

caam algorithms registered in /proc/crypto

caam_jr 1710000.jr: registering rng-caam

caam 1700000.crypto: fsl,sec-v5.3 algorithms registered in /proc/crypto

usbcore: registered new interface driver usbhid

usbhid: USB HID core driver

sgtl5000 1-000a: sgtl5000 revision 0x11

mmc0: new high speed SDHC card at address 1234

mmcblk0: mmc0:1234 SA08G 7.28 GiB

sgtl5000 1-000a: Failed to get supply 'VDDD': -19

1-000a: 1200 mV normal

sgtl5000 1-000a: Using internal LDO instead of VDDD

mmcblk0: p1 p2

vf610-sgtl5000 sound.9:  sgtl5000 <-> 2b50000.sai mapping ok

oprofile: using timer interrupt.

TCP: cubic registered

printer gadget: high-speed config #1: printer

printer gadget: Using interface 0

Initializing XFRM netlink socket

NET: Registered protocol family 17

NET: Registered protocol family 15

can: controller area network core (rev 20120528 abi 9)

NET: Registered protocol family 29

can: raw protocol (rev 20120528)

Key type dns_resolver registered

regulator-dummy: disabling

drivers/rtc/hctosys.c: unable to open rtc device (rtc0)

ALSA device list:

  #0: FSL-VF610-TWR-BOARD

Waiting 5 sec before mounting root device...

usb 1-1: new high-speed USB device number 2 using xhci-hcd

hub 1-1:1.0: USB hub found

hub 1-1:1.0: 4 ports detected

usb 2-1: new SuperSpeed USB device number 2 using xhci-hcd

usb 2-1: Parent hub missing LPM exit latency info.  Power management will be impacted.

hub 2-1:1.0: USB hub found

hub 2-1:1.0: 4 ports detected

usb 1-1.3: new full-speed USB device number 3 using xhci-hcd

kjournald starting.  Commit interval 5 seconds

EXT3-fs (mmcblk0p2): using internal journal

EXT3-fs (mmcblk0p2): recovery complete

EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode

VFS: Mounted root (ext3 filesystem) on device 179:2.

devtmpfs: mounted

Freeing unused kernel memory: 184K (804a7000 - 804d5000)

INIT: version 2.88 booting

Starting udev

udevd[131]: starting version 182

cfg80211: Calling CRDA to update world regulatory domain

Intel(R) Wireless WiFi driver for Linux, in-tree:

Copyright(c) 2003-2013 Intel Corporation

PCI: enabling device 0000:01:00.0 (0140 -> 0142)

iwlwifi 0000:01:00.0: loaded firmware version 22.1.7.0 op_mode iwlmvm

iwlwifi 0000:01:00.0: Detected Intel(R) Dual Band Wireless AC 3160, REV=0x164

iwlwifi 0000:01:00.0: L1 Disabled; Enabling L0S

iwlwifi 0000:01:00.0: L1 Disabled; Enabling L0S

Starting Bootlog daemon: bootlogd.

Populating dev cache

net.ipv4.conf.default.rp_filter = 1

net.ipv4.conf.all.rp_filter = 1

hwclock: can't open '/dev/misc/rtc': No such file or directory

Tue Feb 10 21:56:00 UTC 2015

hwclock: can't open '/dev/misc/rtc': No such file or directory

INIT: Entering runlevel: 5

Configuring network interfaces... udhcpc (v1.22.1) started

Sending discover...

libphy: mdio@2d24000:02 - Link is Down

libphy: mdio@2d24000:02 - Link is Up - 100/Full

Sending discover...

Sending select for 172.16.41.3...

Lease of 172.16.41.3 obtained, lease time 604800

/etc/udhcpc.d/50default: Adding DNS 172.16.40.13

/etc/udhcpc.d/50default: Adding DNS 172.16.40.12

done.

Starting system message bus: dbus.

Starting Dropbear SSH server: dropbear.

hwclock: can't open '/dev/misc/rtc': No such file or directory

Starting network benchmark server: netserver.

Starting system log daemon...0

Starting kernel log daemon...0

Starting internet superserver: xinetd.

Stopping Bootlog daemon: bootlogd.

Poky (Yocto Project Reference Distro) 1.6.1 ls1021atwr /dev/ttyS0

ls1021atwr login: root

root@ls1021atwr:~#

root@ls1021atwr:~# mount

/dev/mmcblk0p2 on / type ext3 (rw,relatime,errors=continue,user_xattr,barrier=1,data=ordered)

devtmpfs on /dev type devtmpfs (rw,relatime,size=517016k,nr_inodes=129254,mode=755)

proc on /proc type proc (rw,relatime)

sysfs on /sys type sysfs (rw,relatime)

debugfs on /sys/kernel/debug type debugfs (rw,relatime)

tmpfs on /run type tmpfs (rw,nosuid,nodev,mode=755)

tmpfs on /var/volatile type tmpfs (rw,relatime)

devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)

root@ls1021atwr:~#

root@ls1021atwr:~# df

Filesystem     1K-blocks   Used Available Use% Mounted on

/dev/root        7390424 211364   6803644   4% /

devtmpfs          517016      4    517012   1% /dev

tmpfs             517108    152    516956   1% /run

tmpfs             517108    124    516984   1% /var/volatile

root@ls1021atwr:~#

root@ls1021atwr:~# cat /proc/cmdline

root=/dev/mmcblk0p2 rw rootdelay=5 console=ttyS0,115200

root@ls1021atwr:~#

root@ls1021atwr:~#

2) Using u-boot built for ls1021atwr_sdcard

SW2[1:8]: OFF OFF ON OFF ON ON ON ON

(RCW Source is SDHC)

I'm using the same uImage and dtb file in the same SD card, but it crashes.   Am I missing anything?

U-Boot SPL 2014.07+ls1+g659b6a2 (Feb 19 2015 - 15:11:22)

U-Boot 2014.07+ls1+g659b6a2 (Feb 19 2015 - 15:11:22)

CPU:   Freescale LayerScape LS1021E, Version: 1.0, (0x87081110)

Clock Configuration:

       CPU0(ARMV7):1000 MHz,

       Bus:300  MHz, DDR:800  MHz (1600 MT/s data rate),

Reset Configuration Word (RCW):

       00000000: 0608000a 00000000 00000000 00000000

       00000010: 20000000 00407900 e0025a00 21046000

       00000020: 00000000 00000000 00000000 0003c000

       00000030: 00080000 901b7540 00000000 00000000

Board: LS1021ATWR

I2C:   ready

DRAM:  1 GiB

Using SERDES1 Protocol: 32 (0x20)

MMC:   FSL_SDHC: 0

*** Warning - bad CRC, using default environment

In:    serial

Out:   serial

Err:   serial

Net:   eTSEC1 is in sgmii mode.

eTSEC2 is in sgmii mode.

eTSEC1 [PRIME], eTSEC2, eTSEC3

=>

=> setenv ethaddr 00:04:9F:03:5C:1B

=> setenv eth1addr 00:04:9F:03:5C:1C

=> setenv eth2addr 00:04:9F:03:5C:1D

=> setenv bootfile uImage

=> setenv fdtfile uImage.dtb

=> setenv consoledev ttyS0

=> setenv baudrate 115200

=> setenv loadaddr 0x82000000

=> setenv fdtaddr 0x8f000000

=> setenv bootcmd 'setenv bootargs root=/dev/mmcblk0p2 rw rootdelay=5 console=$consoledev,$baudrate;mmcinfo;ext2load mmc 0:2 $loadaddr /boot/$bootfile;ext2load mmc 0:2 $fdtaddr /boot/$fdtfile;bootm $loadaddr - $fdtaddr'

=> boot

Device: FSL_SDHC

Manufacturer ID: 2

OEM: 544d

Name: SA08G

Tran Speed: 50000000

Rd Block Len: 512

SD version 3.0

High Capacity: Yes

Capacity: 7.3 GiB

Bus Width: 4-bit

3110416 bytes read in 217 ms (13.7 MiB/s)

20687 bytes read in 83 ms (243.2 KiB/s)

## Booting kernel from Legacy Image at 82000000 ...

   Image Name:   Linux-3.12.19-rt30+ls1+g6619b8b

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    3110352 Bytes = 3 MiB

   Load Address: 80008000

   Entry Point:  80008000

   Verifying Checksum ... OK

## Flattened Device Tree blob at 8f000000

   Booting using the fdt blob at 0x8f000000

   Loading Kernel Image ... OK

   Loading Device Tree to bef10000, end bef180ce ... OK

Starting kernel ...

Booting Linux on physical CPU 0xf00

Linux version 3.12.19-rt30+ls1+g6619b8b (chantaek@0942-Ubuntu1) (gcc version 4.8.3 20140401 (prerelease) (Linaro GCC 4.8-2014.04) ) #120 SMP Wed Feb 18 10:54:17 EST 2015

CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=70c73c7d

CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache

Machine: Freescale LS1021A, model: LS1021A TWR Board

Memory policy: ECC disabled, Data cache writealloc

PERCPU: Embedded 8 pages/cpu @80d55000 s8384 r8192 d16192 u32768

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096

Kernel command line: root=/dev/mmcblk0p2 rw rootdelay=5 console=ttyS0,115200

PID hash table entries: 4096 (order: 2, 16384 bytes)

Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)

Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)

Memory: 1034032K/1048576K available (3253K kernel code, 258K rwdata, 1476K rodata, 184K init, 197K bss, 14544K reserved, 0K highmem)

Virtual kernel memory layout:

    vector  : 0xffff0000 - 0xffff1000   (   4 kB)

    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)

    vmalloc : 0xc0800000 - 0xff000000   (1000 MB)

    lowmem  : 0x80000000 - 0xc0000000   (1024 MB)

    pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)

    modules : 0x7f800000 - 0x7fe00000   (   6 MB)

      .text : 0x80008000 - 0x804a6834   (4731 kB)

      .init : 0x804a7000 - 0x804d50c0   ( 185 kB)

      .data : 0x804d6000 - 0x80516a60   ( 259 kB)

       .bss : 0x80516a68 - 0x80547ea4   ( 198 kB)

SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1

Hierarchical RCU implementation.

  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.

NR_IRQS:16 nr_irqs:16 16

Architected cp15 timer(s) running at 12.50MHz (phys).

Switching to timer-based delay loop

sched_clock: ARM arch timer >56 bits at 12500kHz, resolution 80ns

sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms

Console: colour dummy device 80x30

Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIPS (lpj=125000)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

CPU: Testing write buffer coherency: ok

CPU0: update cpu_power 1024

CPU0: thread -1, cpu 0, socket 15, mpidr 80000f00

Setting up static identity map for 0x8030a3d0 - 0x8030a434

CPU1: Booted secondary processor

CPU1: update cpu_power 1024

CPU1: thread -1, cpu 1, socket 15, mpidr 80000f01

Brought up 2 CPUs

SMP: Total of 2 processors activated.

CPU: All CPU(s) started in HYP mode.

CPU: Virtualization extensions available.

devtmpfs: initialized

VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5

regulator-dummy: no parameters

NET: Registered protocol family 16

DMA: preallocated 256 KiB pool for atomic coherent allocations

cpuidle: using governor ladder

cpuidle: using governor menu

syscon 1570000.scfg: regmap [mem 0x01570000-0x0157ffff] registered

irq: no irq domain found for /soc/uqe@2400000/qeic@80 !

irq: no irq domain found for /soc/uqe@2400000/qeic@80 !

hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.

hw-breakpoint: maximum watchpoint size is 8 bytes.

bio: create slab <bio-0> at 0

3P3V: 3300 mV

vgaarb: loaded

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

i2c i2c-0: IMX I2C adapter registered

i2c i2c-1: IMX I2C adapter registered

i2c i2c-2: of_i2c: modalias failure on /soc/i2c@21a0000/ltc2945@67

i2c i2c-2: IMX I2C adapter registered

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

fsl-ifc 1530000.ifc: Freescale Integrated Flash Controller

Advanced Linux Sound Architecture Driver Initialized.

Switched to clocksource arch_sys_counter

NET: Registered protocol family 2

TCP established hash table entries: 8192 (order: 4, 65536 bytes)

TCP bind hash table entries: 8192 (order: 4, 65536 bytes)

TCP: Hash tables configured (established 8192 bind 8192)

TCP: reno registered

UDP hash table entries: 512 (order: 2, 16384 bytes)

UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)

NET: Registered protocol family 1

RPC: Registered named UNIX socket transport module.

RPC: Registered udp transport module.

RPC: Registered tcp transport module.

RPC: Registered tcp NFSv4.1 backchannel transport module.

hw perfevents: enabled with ARMv7 Cortex-A7 PMU driver, 5 counters available

NFS: Registering the id_resolver key type

Key type id_resolver registered

Key type id_legacy registered

jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.

msgmni has been set to 2019

io scheduler noop registered

io scheduler deadline registered

io scheduler cfq registered (default)

layerscape-pcie 3400000.pcie: PCI host bridge to bus 0000:00

pci_bus 0000:00: root bus resource [io  0x1000-0xffff]

pci_bus 0000:00: root bus resource [mem 0x4040000000-0x407fffffff] (bus address [0x40000000-0x7fffffff])

pci_bus 0000:00: root bus resource [bus 00-ff]

PCI: bus0: Fast back to back transfers disabled

PCI: bus1: Fast back to back transfers disabled

pci 0000:00:00.0: BAR 1: assigned [mem 0x4040000000-0x4043ffffff]

pci 0000:00:00.0: BAR 0: assigned [mem 0x4044000000-0x4044ffffff]

pci 0000:00:00.0: BAR 6: assigned [mem 0x4045000000-0x4045ffffff pref]

pci 0000:00:00.0: BAR 8: assigned [mem 0x4046000000-0x40460fffff]

pci 0000:01:00.0: BAR 0: assigned [mem 0x4046000000-0x4046001fff 64bit]

pci 0000:00:00.0: PCI bridge to [bus 01]

pci 0000:00:00.0:   bridge window [mem 0x4046000000-0x40460fffff]

layerscape-pcie 3500000.pcie: phy link never came up

layerscape-pcie 3500000.pcie: PCI host bridge to bus 0001:00

pci_bus 0001:00: root bus resource [io  0x10000-0x1ffff] (bus address [0x0000-0xffff])

pci_bus 0001:00: root bus resource [mem 0x4840000000-0x487fffffff] (bus address [0x40000000-0x7fffffff])

pci_bus 0001:00: root bus resource [bus 00-ff]

PCI: bus0: Fast back to back transfers disabled

PCI: bus1: Fast back to back transfers enabled

pci 0001:00:00.0: BAR 1: assigned [mem 0x4840000000-0x4843ffffff]

pci 0001:00:00.0: BAR 0: assigned [mem 0x4844000000-0x4844ffffff]

pci 0001:00:00.0: BAR 6: assigned [mem 0x4845000000-0x4845ffffff pref]

pci 0001:00:00.0: PCI bridge to [bus 01]

sii902x: probe of 1-0039 failed with error -1

syscon 1570000.scfg: Failed to create debugfs directory

Console: switching to colour frame buffer device 60x34

fb0: fb device registered successfully.

fb1: fb device registered successfully.

fb2: fb device registered successfully.

fb3: fb device registered successfully.

Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled

21c0500.serial: ttyS0 at MMIO 0x21c0500 (irq = 118, base_baud = 9375000) is a 16550A_FSL64

console [ttyS0] enabled

21c0600.serial: ttyS1 at MMIO 0x21c0600 (irq = 118, base_baud = 9375000) is a 16550A_FSL64

of_serial 2402200.ucc: clk or clock-frequency not defined

of_serial: probe of 2402200.ucc failed with error -2

serial: Freescale lpuart driver

2950000.serial: ttyLP0 at MMIO 0x2950000 (irq = 112, base_baud = 6250000) is a FSL_LPUART

brd: module loaded

loop: module loaded

Unhandled fault: synchronous external abort (0x1210) at 0xc1000020

fsl-ifc 1530000.ifc: transaction sent to IFC is not mapped to

fsl-ifc 1530000.ifc:  any memory bank 0x80000000

fsl-ifc 1530000.ifc: Write transaction error

fsl-ifc 1530000.ifc:  CM_ERATTR0 0x00100000

fsl-ifc 1530000.ifc: AXI ID of the erro

fsl-ifc 1530000.ifc:  transaction 0x00000001

fsl-ifc 1530000.ifc: SRC ID of the error

fsl-ifc 1530000.ifc:  transaction 0x00000000

fsl-ifc 1530000.ifc: Transaction Address corresponding to error

fsl-ifc 1530000.ifc:  ERADDR 0x60000000

Internal error: : 1210 [#1] SMP THUMB2

Modules linked in:

CPU: 1 PID: 1 Comm: swapper/0 Not tainted 3.12.19-rt30+ls1+g6619b8b #120

task: bf87c000 ti: bf880000 task.ti: bf880000

PC is at cfi_qry_present+0x166/0x1e0

LR is at cfi_qry_present+0x27/0x1e0

pc : [<801cd208>]    lr : [<801cd0c9>]    psr: 60000133

sp : bf881cf0  ip : 00000006  fp : 00000001

r10: 00000001  r9 : 00000000  r8 : 00000002

r7 : 00000002  r6 : bf9e9fa0  r5 : 00005151  r4 : 00005900

r3 : 00005959  r2 : 00005252  r1 : 00000020  r0 : c1000020

Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA Thumb  Segment kernel

Control: 70c53c7d  Table: 80003000  DAC: 00400400

Process swapper/0 (pid: 1, stack limit = 0xbf880248)

Stack: (0xbf881cf0 to 0xbf882000)

1ce0:                                     bf9e9fa0 00000000 bf881d64 00009898

1d00: 00000002 00009800 00000002 801cd407 08000000 bf881d64 bf9e9fa0 00000000

1d20: 801ccddd 00000001 804f7938 00000000 00000000 801cce11 bf9e9fa0 00000000

1d40: 00000002 bf9e9fa0 00000001 801ccddd 00000001 804f7938 bf9e9fa0 801da6b1

1d60: 00068000 00000000 00000000 00000002 00000001 00000000 00000000 00000000

1d80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

1da0: 00000713 804f7940 80426723 bf9e9fa0 80d4bc10 bf805410 bf9e9fa0 bf9e9fa0

1dc0: 00000000 801da82f 801cc789 804f7940 80426723 bf9e9fa0 80d4bc10 bf805410

1de0: 00000000 801cc755 bf9e9fd4 bf9e9f90 bf805400 801dabaf 08000000 00000000

1e00: bf908380 00000000 bf017700 00000000 00000000 bf017740 60000000 00000000

1e20: 80426723 00000000 bf017700 00000001 00000000 00000000 bf017700 bf908440

1e40: 60000000 00000000 67ffffff 00000000 80d4bc4c 00000200 00000000 00000000

1e60: 00000000 00000000 00000000 bf805410 bf805444 8053b9d4 804f7b5c 804b81f1

1e80: 000000b7 00000000 bf880000 801a1601 bf805410 bf805444 804f7b5c 00000000

1ea0: 804b81f1 801a1735 00000000 804f7b5c 801a1701 801a06bd bf85f65c bf907234

1ec0: 804f7b5c 804f5bf0 bf9e9f00 801a10cb 804279ad 804279ae 0000006f 804f7b5c

1ee0: 804c7ac8 804d238c 80516a80 801a1abd 00000000 00000006 804c7ac8 800085f3

1f00: bf901400 bf901680 00000000 bf901680 80310400 80401210 00000000 800ae8f5

1f20: 804e4908 00000113 804a7461 80d52ce3 80d52ceb 80028ef9 00000000 8047c0d0

1f40: 00000000 000000b7 00000006 00000006 00000001 00000006 804c7ac8 804d238c

1f60: 80516a80 80516a80 000000b7 804c7ad4 00000000 804a792d 00000006 00000006

1f80: 804a7461 00000000 00000000 80300841 00000000 00000000 00000000 00000000

1fa0: 00000000 80300847 00000000 8000c1f9 00000000 00000000 00000000 00000000

1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000

[<801cd208>] (cfi_qry_present+0x166/0x1e0) from [<801cd407>] (cfi_qry_mode_on+0x185/0xb5e)

[<801cd407>] (cfi_qry_mode_on+0x185/0xb5e) from [<801cce11>] (cfi_probe_chip+0x35/0x128)

[<801cce11>] (cfi_probe_chip+0x35/0x128) from [<801da6b1>] (genprobe_ident_chips+0x45/0x1b8)

[<801da6b1>] (genprobe_ident_chips+0x45/0x1b8) from [<801da82f>] (mtd_do_chip_probe+0xb/0x7c)

[<801da82f>] (mtd_do_chip_probe+0xb/0x7c) from [<801cc755>] (do_map_probe+0x31/0x40)

[<801cc755>] (do_map_probe+0x31/0x40) from [<801dabaf>] (of_flash_probe+0x2ab/0x38c)

[<801dabaf>] (of_flash_probe+0x2ab/0x38c) from [<801a1601>] (driver_probe_device+0x65/0x140)

[<801a1601>] (driver_probe_device+0x65/0x140) from [<801a1735>] (__driver_attach+0x35/0x48)

[<801a1735>] (__driver_attach+0x35/0x48) from [<801a06bd>] (bus_for_each_dev+0x3b/0x46)

[<801a06bd>] (bus_for_each_dev+0x3b/0x46) from [<801a10cb>] (bus_add_driver+0x8b/0x164)

[<801a10cb>] (bus_add_driver+0x8b/0x164) from [<801a1abd>] (driver_register+0x4b/0x76)

[<801a1abd>] (driver_register+0x4b/0x76) from [<800085f3>] (do_one_initcall+0x63/0xd0)

[<800085f3>] (do_one_initcall+0x63/0xd0) from [<804a792d>] (kernel_init_freeable+0xbd/0x150)

[<804a792d>] (kernel_init_freeable+0xbd/0x150) from [<80300847>] (kernel_init+0x7/0x90)

[<80300847>] (kernel_init+0x7/0x90) from [<8000c1f9>] (ret_from_fork+0x11/0x38)

Code: e009 2f02 d103 4408 (8807) b2bf

---[ end trace 812773835e54c896 ]---

Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b

CPU0: stopping

CPU: 0 PID: 0 Comm: swapper/0 Tainted: G      D      3.12.19-rt30+ls1+g6619b8b #120

[<80010829>] (unwind_backtrace+0x1/0x88) from [<8000e51f>] (show_stack+0xb/0xc)

[<8000e51f>] (show_stack+0xb/0xc) from [<80304af5>] (dump_stack+0x4d/0x60)

[<80304af5>] (dump_stack+0x4d/0x60) from [<8000ff23>] (handle_IPI+0x7f/0xd0)

[<8000ff23>] (handle_IPI+0x7f/0xd0) from [<800083ef>] (gic_handle_irq+0x3b/0x44)

[<800083ef>] (gic_handle_irq+0x3b/0x44) from [<80307a9b>] (__irq_svc+0x3b/0x5c)

Exception stack(0x804d7f70 to 0x804d7fb8)

7f60:                                     ffffffed 00000000 00882000 00000000

7f80: 804d6000 804d6000 80000000 804de7c0 80003010 410fc075 00000000 00000000

7fa0: 00000008 804d7fb8 8000cc01 8000cc02 60000133 ffffffff

[<80307a9b>] (__irq_svc+0x3b/0x5c) from [<8000cc02>] (arch_cpu_idle+0x1a/0x20)

[<8000cc02>] (arch_cpu_idle+0x1a/0x20) from [<8003b355>] (cpu_startup_entry+0x7d/0xc4)

[<8003b355>] (cpu_startup_entry+0x7d/0xc4) from [<804a781b>] (start_kernel+0x213/0x268)

[<804a781b>] (start_kernel+0x213/0x268) from [<8000808d>] (0x8000808d)

Labels (1)
0 Kudos
Reply
20 Replies

6,432 Views
addiyi
NXP Employee
NXP Employee

Indeed, RCW seems to be diferent then the one included into u-boor image for sd boot. Please try with the u-boot image attached, which has been built from sdk 1.7.

Adrian

0 Kudos
Reply

6,432 Views
cpark
Contributor II

Hi Adrian,

I gave it a try with the u-boot image you've attached but it is still failing.

U-Boot SPL 2014.07+ls1+g659b6a2 (Jan 27 2015 - 09:02:07)

U-Boot 2014.07+ls1+g659b6a2 (Jan 27 2015 - 09:02:07)

CPU:   Freescale LayerScape LS1021E, Version: 1.0, (0x87081110)

Clock Configuration:

       CPU0(ARMV7):1000 MHz,

       Bus:300  MHz, DDR:800  MHz (1600 MT/s data rate),

Reset Configuration Word (RCW):

       00000000: 0608000a 00000000 00000000 00000000

       00000010: 20000000 00407900 60025a00 21046000

       00000020: 00000000 00000000 00000000 01038000

       00000030: 20024800 881b1540 00000000 00000000

Board: LS1021ATWR

I2C:   ready

DRAM:  1 GiB

Using SERDES1 Protocol: 32 (0x20)

MMC:   FSL_SDHC: 0

*** Warning - bad CRC, using default environment

In:    serial

Out:   serial

Err:   serial

Net:   eTSEC1 is in sgmii mode.

eTSEC2 is in sgmii mode.

eTSEC1 [PRIME], eTSEC2, eTSEC3

=> setenv ethaddr 00:04:9F:03:5C:1B

=> setenv eth1addr 00:04:9F:03:5C:1C

=> setenv eth2addr 00:04:9F:03:5C:1D

=> setenv bootfile uImage

=> setenv fdtfile uImage.dtb

=> setenv consoledev ttyS0

=> setenv baudrate 115200

=> setenv loadaddr 0x82000000

=> setenv fdtaddr 0x8f000000

=> setenv bootcmd 'setenv bootargs root=/dev/mmcblk0p2 rw rootdelay=5 console=$consoledev,$baudrate;mmcinfo;ext2load mmc 0:2 $loadaddr /boot/$bootfile;ext2load mmc 0:2 $fdtaddr /boot/$fdtfile;bootm $loadaddr - $fdtaddr'

=>

=> printenv

baudrate=115200

bootargs=root=/dev/ram0 rw console=ttyS0,115200

bootcmd=setenv bootargs root=/dev/mmcblk0p2 rw rootdelay=5 console=$consoledev,$baudrate;mmcinfo;ext2load mmc 0:2 $loadaddr /boot/$bootfile;ext2load mmc 0:2 $fdtaddr /boot/$fdtfile;bootm $loadaddr - $fdtaddr

bootdelay=3

bootfile=uImage

consoledev=ttyS0

eth1addr=00:04:9F:03:5C:1C

eth2addr=00:04:9F:03:5C:1D

ethact=eTSEC1

ethaddr=00:04:9F:03:5C:1B

ethprime=eTSEC1

fdt_high=0xcfffffff

fdtaddr=0x8f000000

fdtfile=uImage.dtb

initrd_high=0xcfffffff

loadaddr=0x82000000

stderr=serial

stdin=serial

stdout=serial

Environment size: 608/131068 bytes

=> boot

Device: FSL_SDHC

Manufacturer ID: 2

OEM: 544d

Name: SA08G

Tran Speed: 50000000

Rd Block Len: 512

SD version 3.0

High Capacity: Yes

Capacity: 7.3 GiB

Bus Width: 4-bit

3110416 bytes read in 220 ms (13.5 MiB/s)

20687 bytes read in 84 ms (240.2 KiB/s)

## Booting kernel from Legacy Image at 82000000 ...

   Image Name:   Linux-3.12.19-rt30+ls1+g6619b8b

   Image Type:   ARM Linux Kernel Image (uncompressed)

   Data Size:    3110352 Bytes = 3 MiB

   Load Address: 80008000

   Entry Point:  80008000

   Verifying Checksum ... OK

## Flattened Device Tree blob at 8f000000

   Booting using the fdt blob at 0x8f000000

   Loading Kernel Image ... OK

   Loading Device Tree to bef10000, end bef180ce ... OK

Starting kernel ...

Booting Linux on physical CPU 0xf00

Linux version 3.12.19-rt30+ls1+g6619b8b (chantaek@0942-Ubuntu1) (gcc version 4.8.3 20140401 (prerelease) (Linaro GCC 4.8-2014.04) ) #120 SMP Wed Feb 18 10:54:17 EST 2015

CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=70c73c7d

CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache

Machine: Freescale LS1021A, model: LS1021A TWR Board

Memory policy: ECC disabled, Data cache writealloc

PERCPU: Embedded 8 pages/cpu @80d55000 s8384 r8192 d16192 u32768

Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096

Kernel command line: root=/dev/mmcblk0p2 rw rootdelay=5 console=ttyS0,115200

PID hash table entries: 4096 (order: 2, 16384 bytes)

Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)

Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)

Memory: 1034032K/1048576K available (3253K kernel code, 258K rwdata, 1476K rodata, 184K init, 197K bss, 14544K reserved, 0K highmem)

Virtual kernel memory layout:

    vector  : 0xffff0000 - 0xffff1000   (   4 kB)

    fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)

    vmalloc : 0xc0800000 - 0xff000000   (1000 MB)

    lowmem  : 0x80000000 - 0xc0000000   (1024 MB)

    pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)

    modules : 0x7f800000 - 0x7fe00000   (   6 MB)

      .text : 0x80008000 - 0x804a6834   (4731 kB)

      .init : 0x804a7000 - 0x804d50c0   ( 185 kB)

      .data : 0x804d6000 - 0x80516a60   ( 259 kB)

       .bss : 0x80516a68 - 0x80547ea4   ( 198 kB)

SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1

Hierarchical RCU implementation.

  RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.

NR_IRQS:16 nr_irqs:16 16

Architected cp15 timer(s) running at 12.50MHz (phys).

Switching to timer-based delay loop

sched_clock: ARM arch timer >56 bits at 12500kHz, resolution 80ns

sched_clock: 32 bits at 100 Hz, resolution 10000000ns, wraps every 4294967286ms

Console: colour dummy device 80x30

Calibrating delay loop (skipped), value calculated using timer frequency.. 25.00 BogoMIPS (lpj=125000)

pid_max: default: 32768 minimum: 301

Mount-cache hash table entries: 512

CPU: Testing write buffer coherency: ok

CPU0: update cpu_power 1024

CPU0: thread -1, cpu 0, socket 15, mpidr 80000f00

Setting up static identity map for 0x8030a3d0 - 0x8030a434

CPU1: Booted secondary processor

CPU1: update cpu_power 1024

CPU1: thread -1, cpu 1, socket 15, mpidr 80000f01

Brought up 2 CPUs

SMP: Total of 2 processors activated.

CPU: All CPU(s) started in HYP mode.

CPU: Virtualization extensions available.

devtmpfs: initialized

VFP support v0.3: implementor 41 architecture 2 part 30 variant 7 rev 5

regulator-dummy: no parameters

NET: Registered protocol family 16

DMA: preallocated 256 KiB pool for atomic coherent allocations

cpuidle: using governor ladder

cpuidle: using governor menu

syscon 1570000.scfg: regmap [mem 0x01570000-0x0157ffff] registered

irq: no irq domain found for /soc/uqe@2400000/qeic@80 !

irq: no irq domain found for /soc/uqe@2400000/qeic@80 !

hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.

hw-breakpoint: maximum watchpoint size is 8 bytes.

bio: create slab <bio-0> at 0

3P3V: 3300 mV

vgaarb: loaded

SCSI subsystem initialized

usbcore: registered new interface driver usbfs

usbcore: registered new interface driver hub

usbcore: registered new device driver usb

i2c i2c-0: IMX I2C adapter registered

i2c i2c-1: IMX I2C adapter registered

i2c i2c-2: of_i2c: modalias failure on /soc/i2c@21a0000/ltc2945@67

i2c i2c-2: IMX I2C adapter registered

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

fsl-ifc 1530000.ifc: Freescale Integrated Flash Controller

Advanced Linux Sound Architecture Driver Initialized.

Switched to clocksource arch_sys_counter

NET: Registered protocol family 2

TCP established hash table entries: 8192 (order: 4, 65536 bytes)

TCP bind hash table entries: 8192 (order: 4, 65536 bytes)

TCP: Hash tables configured (established 8192 bind 8192)

TCP: reno registered

UDP hash table entries: 512 (order: 2, 16384 bytes)

UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)

NET: Registered protocol family 1

RPC: Registered named UNIX socket transport module.

RPC: Registered udp transport module.

RPC: Registered tcp transport module.

RPC: Registered tcp NFSv4.1 backchannel transport module.

hw perfevents: enabled with ARMv7 Cortex-A7 PMU driver, 5 counters available

NFS: Registering the id_resolver key type

Key type id_resolver registered

Key type id_legacy registered

jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.

msgmni has been set to 2019

io scheduler noop registered

io scheduler deadline registered

io scheduler cfq registered (default)

layerscape-pcie 3400000.pcie: PCI host bridge to bus 0000:00

pci_bus 0000:00: root bus resource [io  0x1000-0xffff]

pci_bus 0000:00: root bus resource [mem 0x4040000000-0x407fffffff] (bus address [0x40000000-0x7fffffff])

pci_bus 0000:00: root bus resource [bus 00-ff]

PCI: bus0: Fast back to back transfers disabled

PCI: bus1: Fast back to back transfers disabled

pci 0000:00:00.0: BAR 1: assigned [mem 0x4040000000-0x4043ffffff]

pci 0000:00:00.0: BAR 0: assigned [mem 0x4044000000-0x4044ffffff]

pci 0000:00:00.0: BAR 6: assigned [mem 0x4045000000-0x4045ffffff pref]

pci 0000:00:00.0: BAR 8: assigned [mem 0x4046000000-0x40460fffff]

pci 0000:01:00.0: BAR 0: assigned [mem 0x4046000000-0x4046001fff 64bit]

pci 0000:00:00.0: PCI bridge to [bus 01]

pci 0000:00:00.0:   bridge window [mem 0x4046000000-0x40460fffff]

layerscape-pcie 3500000.pcie: phy link never came up

layerscape-pcie 3500000.pcie: PCI host bridge to bus 0001:00

pci_bus 0001:00: root bus resource [io  0x10000-0x1ffff] (bus address [0x0000-0xffff])

pci_bus 0001:00: root bus resource [mem 0x4840000000-0x487fffffff] (bus address [0x40000000-0x7fffffff])

pci_bus 0001:00: root bus resource [bus 00-ff]

PCI: bus0: Fast back to back transfers disabled

PCI: bus1: Fast back to back transfers enabled

pci 0001:00:00.0: BAR 1: assigned [mem 0x4840000000-0x4843ffffff]

pci 0001:00:00.0: BAR 0: assigned [mem 0x4844000000-0x4844ffffff]

pci 0001:00:00.0: BAR 6: assigned [mem 0x4845000000-0x4845ffffff pref]

pci 0001:00:00.0: PCI bridge to [bus 01]

sii902x: probe of 1-0039 failed with error -1

syscon 1570000.scfg: Failed to create debugfs directory

Console: switching to colour frame buffer device 60x34

fb0: fb device registered successfully.

fb1: fb device registered successfully.

fb2: fb device registered successfully.

fb3: fb device registered successfully.

Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled

21c0500.serial: ttyS0 at MMIO 0x21c0500 (irq = 118, base_baud = 9375000) is a 16550A_FSL64

console [ttyS0] enabled

21c0600.serial: ttyS1 at MMIO 0x21c0600 (irq = 118, base_baud = 9375000) is a 16550A_FSL64

of_serial 2402200.ucc: clk or clock-frequency not defined

of_serial: probe of 2402200.ucc failed with error -2

serial: Freescale lpuart driver

2950000.serial: ttyLP0 at MMIO 0x2950000 (irq = 112, base_baud = 6250000) is a FSL_LPUART

brd: module loaded

loop: module loaded

fsl-ifc 1530000.ifc: transaction sent to IFC is not mapped to

fsl-ifc 1530000.ifc:  any memory bank 0x80000000

fsl-ifc 1530000.ifc: Write transaction error

fsl-ifc 1530000.ifc:  CM_ERATTR0 0x00000000

fsl-ifc 1530000.ifc: AXI ID of the erro

fsl-ifc 1530000.ifc:  transaction 0x00000000

fsl-ifc 1530000.ifc: SRC ID of the error

fsl-ifc 1530000.ifc:  transaction 0x00000000

fsl-ifc 1530000.ifc: Transaction Address corresponding to error

fsl-ifc 1530000.ifc:  ERADDR 0x60000000

fsl-ifc 1530000.ifc: transaction sent to IFC is not mapped to

fsl-ifc 1530000.ifc:  any memory bank 0x80000000

fsl-ifc 1530000.ifc: Write transaction error

fsl-ifc 1530000.ifc:  CM_ERATTR0 0x00000000

fsl-ifc 1530000.ifc: AXI ID of the erro

fsl-ifc 1530000.ifc:  transaction 0x00000000

fsl-ifc 1530000.ifc: SRC ID of the error

fsl-ifc 1530000.ifc:  transaction 0x00000000

fsl-ifc 1530000.ifc: Transaction Address corresponding to error

fsl-ifc 1530000.ifc:  ERADDR 0x600000AA

Unhandled fault: synchronous external abort (0x1210) at 0xc1000020

Internal error: : 1210 [#1] SMP THUMB2

Modules linked in:

CPU: 0 PID: 1 Comm: swapper/0 Not tainted 3.12.19-rt30+ls1+g6619b8b #120

task: bf87c000 ti: bf880000 task.ti: bf880000

PC is at cfi_qry_present+0x166/0x1e0

LR is at cfi_qry_present+0x27/0x1e0

pc : [<801cd208>]    lr : [<801cd0c9>]    psr: 60000133

sp : bf881cf0  ip : 00000006  fp : 00000001

r10: 00000001  r9 : 00000000  r8 : 00000002

r7 : 00000002  r6 : bf0251a0  r5 : 00005151  r4 : 00005900

r3 : 00005959  r2 : 00005252  r1 : 00000020  r0 : c1000020

Flags: nZCv  IRQs on  FIQs on  Mode SVC_32  ISA Thumb  Segment kernel

Control: 70c53c7d  Table: 80003000  DAC: fffffffd

Process swapper/0 (pid: 1, stack limit = 0xbf880248)

Stack: (0xbf881cf0 to 0xbf882000)

1ce0:                                     bf0251a0 00000000 bf881d64 00009898

1d00: 00000002 00009800 00000002 801cd407 08000000 bf881d64 bf0251a0 00000000

1d20: 801ccddd 00000001 804f7938 00000000 00000000 801cce11 bf0251a0 00000000

1d40: 00000002 bf0251a0 00000001 801ccddd 00000001 804f7938 bf0251a0 801da6b1

1d60: 00068000 00000000 00000000 00000002 00000001 00000000 00000000 00000000

1d80: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

1da0: 00000713 804f7940 80426723 bf0251a0 80d4bc10 bf805410 bf0251a0 bf0251a0

1dc0: 00000000 801da82f 801cc789 804f7940 80426723 bf0251a0 80d4bc10 bf805410

1de0: 00000000 801cc755 bf0251d4 bf025190 bf805400 801dabaf 08000000 00000000

1e00: bf908380 00000000 bf024740 00000000 00000000 bf024780 60000000 00000000

1e20: 80426723 00000000 bf024740 00000001 00000000 00000000 bf024740 bf908440

1e40: 60000000 00000000 67ffffff 00000000 80d4bc4c 00000200 00000000 00000000

1e60: 00000000 00000000 00000000 bf805410 bf805444 8053b9d4 804f7b5c 804b81f1

1e80: 000000b7 00000000 bf880000 801a1601 bf805410 bf805444 804f7b5c 00000000

1ea0: 804b81f1 801a1735 00000000 804f7b5c 801a1701 801a06bd bf85f65c bf907234

1ec0: 804f7b5c 804f5bf0 bf025100 801a10cb 804279ad 804279ae 0000006f 804f7b5c

1ee0: 804c7ac8 804d238c 80516a80 801a1abd 00000000 00000006 804c7ac8 800085f3

1f00: bf901400 bf901680 00000000 bf901680 80310400 80401210 00000000 800ae8f5

1f20: 804e4908 00000113 804a7461 80d52ce3 80d52ceb 80028ef9 00000000 8047c0d0

1f40: 00000000 000000b7 00000006 00000006 00000001 00000006 804c7ac8 804d238c

1f60: 80516a80 80516a80 000000b7 804c7ad4 00000000 804a792d 00000006 00000006

1f80: 804a7461 00000000 00000000 80300841 00000000 00000000 00000000 00000000

1fa0: 00000000 80300847 00000000 8000c1f9 00000000 00000000 00000000 00000000

1fc0: 00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000

1fe0: 00000000 00000000 00000000 00000000 00000013 00000000 00000000 00000000

[<801cd208>] (cfi_qry_present+0x166/0x1e0) from [<801cd407>] (cfi_qry_mode_on+0x185/0xb5e)

[<801cd407>] (cfi_qry_mode_on+0x185/0xb5e) from [<801cce11>] (cfi_probe_chip+0x35/0x128)

[<801cce11>] (cfi_probe_chip+0x35/0x128) from [<801da6b1>] (genprobe_ident_chips+0x45/0x1b8)

[<801da6b1>] (genprobe_ident_chips+0x45/0x1b8) from [<801da82f>] (mtd_do_chip_probe+0xb/0x7c)

[<801da82f>] (mtd_do_chip_probe+0xb/0x7c) from [<801cc755>] (do_map_probe+0x31/0x40)

[<801cc755>] (do_map_probe+0x31/0x40) from [<801dabaf>] (of_flash_probe+0x2ab/0x38c)

[<801dabaf>] (of_flash_probe+0x2ab/0x38c) from [<801a1601>] (driver_probe_device+0x65/0x140)

[<801a1601>] (driver_probe_device+0x65/0x140) from [<801a1735>] (__driver_attach+0x35/0x48)

[<801a1735>] (__driver_attach+0x35/0x48) from [<801a06bd>] (bus_for_each_dev+0x3b/0x46)

[<801a06bd>] (bus_for_each_dev+0x3b/0x46) from [<801a10cb>] (bus_add_driver+0x8b/0x164)

[<801a10cb>] (bus_add_driver+0x8b/0x164) from [<801a1abd>] (driver_register+0x4b/0x76)

[<801a1abd>] (driver_register+0x4b/0x76) from [<800085f3>] (do_one_initcall+0x63/0xd0)

[<800085f3>] (do_one_initcall+0x63/0xd0) from [<804a792d>] (kernel_init_freeable+0xbd/0x150)

[<804a792d>] (kernel_init_freeable+0xbd/0x150) from [<80300847>] (kernel_init+0x7/0x90)

[<80300847>] (kernel_init+0x7/0x90) from [<8000c1f9>] (ret_from_fork+0x11/0x38)

Code: e009 2f02 d103 4408 (8807) b2bf

---[ end trace 00414667a7a7aeb5 ]---

fsl-ifc 1530000.ifc: transaction sent to IFC is not mapped to

fsl-ifc 1530000.ifc:  any memory bank 0x80000000

fsl-ifc 1530000.ifc: Read transaction error

fsl-ifc 1530000.ifc:  CM_ERATTR0 0x80B00000

fsl-ifc 1530000.ifc: AXI ID of the erro

fsl-ifc 1530000.ifc:  transaction 0x0000000B

fsl-ifc 1530000.ifc: SRC ID of the error

fsl-ifc 1530000.ifc:  transaction 0x00000000

fsl-ifc 1530000.ifc: Transaction Address corresponding to error

fsl-ifc 1530000.ifc:  ERADDR 0x60000020

Kernel panic - not syncing: Attempted to kill init! exitcode=0x0000000b

CPU1: stopping

CPU: 1 PID: 0 Comm: swapper/1 Tainted: G      D      3.12.19-rt30+ls1+g6619b8b #120

[<80010829>] (unwind_backtrace+0x1/0x88) from [<8000e51f>] (show_stack+0xb/0xc)

[<8000e51f>] (show_stack+0xb/0xc) from [<80304af5>] (dump_stack+0x4d/0x60)

[<80304af5>] (dump_stack+0x4d/0x60) from [<8000ff23>] (handle_IPI+0x7f/0xd0)

[<8000ff23>] (handle_IPI+0x7f/0xd0) from [<800083ef>] (gic_handle_irq+0x3b/0x44)

[<800083ef>] (gic_handle_irq+0x3b/0x44) from [<80307a9b>] (__irq_svc+0x3b/0x5c)

Exception stack(0xbf89bfa0 to 0xbf89bfe8)

bfa0: ffffffed 00000000 0088a000 00000000 bf89a000 bf89a010 80000000 80516d94

bfc0: 80003010 410fc075 00000000 00000000 00000008 bf89bfe8 8000cc01 8000cc02

bfe0: 60000133 ffffffff

[<80307a9b>] (__irq_svc+0x3b/0x5c) from [<8000cc02>] (arch_cpu_idle+0x1a/0x20)

[<8000cc02>] (arch_cpu_idle+0x1a/0x20) from [<8003b355>] (cpu_startup_entry+0x7d/0xc4)

[<8003b355>] (cpu_startup_entry+0x7d/0xc4) from [<80008485>] (__enable_mmu+0x1/0x1c)

0 Kudos
Reply

6,432 Views
cpark
Contributor II

Adrian, Sinan,

Have you successfully booted both u-boot and uImage from sdcard on TWR-LS1021A board?

To me it looks like CPLD might be blocking access to NOR flash when SW2[3] is ON.

0 Kudos
Reply

6,432 Views
sinanakman
Senior Contributor III

Hi Chan

I have no problem booting u-boot from SD card and then

accessing NOR flash. Here is the RCW for that SD boot :

00000000: 0608000a 00000000 00000000 00000000

00000010: 20000000 00407900 60040a00 21046000

00000020: 00000000 00000000 00000000 00038000

00000030: 00080000 881b7340 00000000 00000000

Here is the part of NOR dump from u-boot :

=> md 0x60000000 0x10

60000000: 55aa55aa 0001ee01 0a000806 00000000

60000010: 00000000 00000000 00000070 00794000

60000020: 005a02e0 00600421 00000000 00000000

60000030: 00000000 00900300 00000000 40f31640

This is with Bank 0 enabled.

I suggest you use the above RCW and boot from SD

card as I did and see if you can access the NOR the

way I did. This

Regards

Sinan Akman

0 Kudos
Reply

6,432 Views
cpark
Contributor II

Sinan,

I use your RCW and U-boot is booting from sd card successfully.

But it hangs when I access NOR flash from U-boot.

U-Boot SPL 2014.07+ls1+g659b6a2 (Feb 23 2015 - 13:35:56)

U-Boot 2014.07+ls1+g659b6a2 (Feb 23 2015 - 13:35:56)

CPU:   Freescale LayerScape LS1021E, Version: 1.0, (0x87081110)

Clock Configuration:

       CPU0(ARMV7):1000 MHz,

       Bus:300  MHz, DDR:800  MHz (1600 MT/s data rate),

Reset Configuration Word (RCW):

       00000000: 0608000a 00000000 00000000 00000000

       00000010: 20000000 00407900 60040a00 21046000

       00000020: 00000000 00000000 00000000 00038000

       00000030: 00080000 881b7340 00000000 00000000

Board: LS1021ATWR

I2C:   ready

DRAM:  1 GiB

Using SERDES1 Protocol: 32 (0x20)

MMC:   FSL_SDHC: 0

*** Warning - bad CRC, using default environment

In:    serial

Out:   serial

Err:   serial

Net:   eTSEC1 is in sgmii mode.

eTSEC2 is in sgmii mode.

eTSEC1 [PRIME], eTSEC2, eTSEC3

=>

=>

=> md 0x60000000 0x10

60000000: <----------------------- It hangs here.

0 Kudos
Reply

6,432 Views
sinanakman
Senior Contributor III

Hi Chan

Can you please let me know your SW2 and SW3 settings on your board.

Regards

Sinan Akman

0 Kudos
Reply

6,432 Views
cpark
Contributor II

SW2[1:8]: OFF OFF ON OFF ON ON ON ON

SW3[1:8]: OFF ON ON OFF OFF OFF OFF ON

0 Kudos
Reply

6,432 Views
sinanakman
Senior Contributor III

Hi Chan

Something is messed up there.

Can you print the following :

md 0x7fb00000 5

Regards

Sinan Akman

0 Kudos
Reply

6,432 Views
cpark
Contributor II

# SW2[3] = ON

SW2[1:8]: OFF OFF ON OFF ON ON ON ON

SW3[1:8]: OFF ON ON OFF OFF OFF OFF ON

U-Boot SPL 2014.07+ls1+g659b6a2 (Feb 23 2015 - 13:35:56)

U-Boot 2014.07+ls1+g659b6a2 (Feb 23 2015 - 13:35:56)

CPU:   Freescale LayerScape LS1021E, Version: 1.0, (0x87081110)

Clock Configuration:

       CPU0(ARMV7):1000 MHz,

       Bus:300  MHz, DDR:800  MHz (1600 MT/s data rate),

Reset Configuration Word (RCW):

       00000000: 0608000a 00000000 00000000 00000000

       00000010: 20000000 00407900 60040a00 21046000

       00000020: 00000000 00000000 00000000 00038000

       00000030: 00080000 881b7340 00000000 00000000

Board: LS1021ATWR

I2C:   ready

DRAM:  1 GiB

Using SERDES1 Protocol: 32 (0x20)

MMC:   FSL_SDHC: 0

*** Warning - bad CRC, using default environment

In:    serial

Out:   serial

Err:   serial

Net:   eTSEC1 is in sgmii mode.

eTSEC2 is in sgmii mode.

eTSEC1 [PRIME], eTSEC2, eTSEC3

=> md 0x7fb00000 5

7fb00000: <----------------------------- It hangs here.

# SW2[3] = OFF

SW2[1:8]: ON OFF OFF OFF ON ON ON ON

SW3[1:8]: OFF ON ON OFF OFF OFF OFF ON

U-Boot 2014.01Layerscape-SDK-V1.1+g2b4d7d7 (Aug 29 2014 - 11:57:41)

CPU:   Freescale LayerScape LS1021E, Version: 1.0, (0x87081110)

Clock Configuration:

       CPU0(ARMV7):1000 MHz,

       Bus:300  MHz, DDR:800  MHz (1600 MT/s data rate),

Reset Configuration Word (RCW):

       00000000: 0608000a 00000000 00000000 00000000

       00000010: 20000000 00407900 e0025a00 21046000

       00000020: 00000000 00000000 00000000 00038000

       00000030: 00080000 881b7540 00000000 00000000

Board: LS1021ATWR

CPLD:  V2.3

PCBA:  V3.0

VBank: 0

I2C:   ready

DRAM:  1 GiB (DDR3, 32-bit, CL=10, ECC off)

Using SERDES1 Protocol: 32 (0x20)

Flash: 128 MiB

MMC:   FSL_SDHC: 0

EEPROM: NXID v1

Firmware 'Microcode version 0.0.0 for T1040 r1.0' for 1040 V1.0

QE: uploading microcode 'Microcode for T1040 r1.0'

In:    serial

Out:   serial

Err:   serial

SATA link 0 timeout.

AHCI 0001.0300 1 slots 1 ports ? Gbps 0x1 impl SATA mode

flags: 64bit ncq pm clo only pmp fbss pio slum part ccc

scanning bus for devices...

Found 0 device(s).

Net:   eTSEC1 is in sgmii mode.

eTSEC2 is in sgmii mode.

eTSEC1 [PRIME], eTSEC2, eTSEC3

Hit any key to stop autoboot:  0

=> md 0x7fb00000 5

7fb00000: 00030302 00014820 01010000 00000f00    .... H..........

7fb00010: fb010001                               ....

=>

0 Kudos
Reply

6,432 Views
cpark
Contributor II

Sinan,

Which version of CPLD do you use?

0 Kudos
Reply

6,432 Views
sinanakman
Senior Contributor III

Hi Chan

I just HALT the SoC soon after reset using a JTAG

debugger. In the case of SD boot, NOR is not accessible

early in u-boot. Once it reaches the command line then

the NOR address range is accessible. So it seems in the

case SD boot, this is being enabled in u-boot. I'll dig the

u-boot code to understand where it happens but this

hints me that your u-boot is probably not doing this.

If you upgrade to mainline u-boot as I have you should

be able to access your NOR flash, same way I am able to

here.

Regards

Sinan Akman

0 Kudos
Reply

6,427 Views
cpark
Contributor II

Hi Sinan,

I gave it a try with 2015.01 U-Boot and it works fine.

The U-Boot (2014.07) in SDK 1.7 didn't work because IFC is not initialized when SD Boot is selected.

Thanks,

Chan

0 Kudos
Reply

6,432 Views
sinanakman
Senior Contributor III

Chan, for us to be on the same page,

can you please build your u-boot from

mainline. I am running mainline U-Boot 2015.01.

Please grab the most recent mainline u-boot

and give this a try, this way we eliminate

any difference in u-boot initialization.

Regards

Sinan Akman

6,428 Views
cpark
Contributor II

Apparently, the u-boot in SDK 1.7 does not initialize the IFC module when CONFIG_SD_BOOT is defined.

Let me give it a try with 2015.1 U-boot.

include/configs/ls1021atwr.h:

/* * IFC Definitions */ #if !defined(CONFIG_SD_BOOT) && !defined(CONFIG_QSPI_BOOT) #define CONFIG_FSL_IFC #define CONFIG_SYS_FLASH_BASE  0x60000000 #define CONFIG_SYS_FLASH_BASE_PHYS CONFIG_SYS_FLASH_BASE

#define CONFIG_SYS_NOR0_CSPR_EXT (0x0) #define CONFIG_SYS_NOR0_CSPR (CSPR_PHYS_ADDR(CONFIG_SYS_FLASH_BASE_PHYS) | \     CSPR_PORT_SIZE_16 | \     CSPR_MSEL_NOR | \     CSPR_V) #define CONFIG_SYS_NOR_AMASK  IFC_AMASK(128 * 1024 * 1024)

/* NOR Flash Timing Params */ #define CONFIG_SYS_NOR_CSOR  (CSOR_NOR_ADM_SHIFT(4) | \      CSOR_NOR_TRHZ_80) #define CONFIG_SYS_NOR_FTIM0  (FTIM0_NOR_TACSE(0x4) | \      FTIM0_NOR_TEADC(0x5) | \      FTIM0_NOR_TAVDS(0x0) | \      FTIM0_NOR_TEAHC(0x5)) #define CONFIG_SYS_NOR_FTIM1  (FTIM1_NOR_TACO(0x35) | \      FTIM1_NOR_TRAD_NOR(0x1A) | \      FTIM1_NOR_TSEQRAD_NOR(0x13)) #define CONFIG_SYS_NOR_FTIM2  (FTIM2_NOR_TCS(0x4) | \      FTIM2_NOR_TCH(0x4) | \      FTIM2_NOR_TWP(0x1c) | \      FTIM2_NOR_TWPH(0x0e)) #define CONFIG_SYS_NOR_FTIM3  0

#define CONFIG_FLASH_CFI_DRIVER #define CONFIG_SYS_FLASH_CFI #define CONFIG_SYS_FLASH_USE_BUFFER_WRITE #define CONFIG_SYS_FLASH_QUIET_TEST #define CONFIG_FLASH_SHOW_PROGRESS 45 /* count down from 45/5: 9..1 */

#define CONFIG_SYS_MAX_FLASH_BANKS 1 /* number of banks */ #define CONFIG_SYS_MAX_FLASH_SECT 1024 /* sectors per device */ #define CONFIG_SYS_FLASH_ERASE_TOUT 60000 /* Flash Erase Timeout (ms) */ #define CONFIG_SYS_FLASH_WRITE_TOUT 500 /* Flash Write Timeout (ms) */

#define CONFIG_SYS_FLASH_EMPTY_INFO #define CONFIG_SYS_FLASH_BANKS_LIST { CONFIG_SYS_FLASH_BASE_PHYS }

#define CONFIG_CFI_FLASH_USE_WEAK_ACCESSORS #define CONFIG_SYS_WRITE_SWAPPED_DATA #endif

0 Kudos
Reply

6,428 Views
sinanakman
Senior Contributor III

Hi Chan

Yes, this is different in mainline :

-------------------------------------------------------

* IFC Definitions

*/

#ifndef CONFIG_QSPI_BOOT

#define CONFIG_FSL_IFC

#define CONFIG_SYS_FLASH_BASE           0x60000000

#define CONFIG_SYS_FLASH_BASE_PHYS      CONFIG_SYS_FLASH_BASE

#define CONFIG_SYS_NOR0_CSPR_EXT        (0x0)

#define CONFIG_SYS_NOR0_CSPR    (CSPR_PHYS_ADDR(CONFIG_SYS_FLASH_BASE_PHYS) | \

                                CSPR_PORT_SIZE_16 | \

                                CSPR_MSEL_NOR | \

                                CSPR_V)

#define CONFIG_SYS_NOR_AMASK            IFC_AMASK(128 * 1024 * 1024)

/* NOR Flash Timing Params */

#define CONFIG_SYS_NOR_CSOR 

......

------------------------------------------------------------------------

0 Kudos
Reply

6,428 Views
sinanakman
Senior Contributor III

Hi Chan

Our versions are same :

7fb00000: 00030302 00014820 01010000 00000e00

7fb00010: fb010001

Also u-boot reports these two for me :

CPLD:  V2.3                                                               

PCBA:  V3.0

0 Kudos
Reply

6,424 Views
khandavalli
Contributor I

Hi Park,

Do u have complete sdkv1.7.bin, it writes to u-boot,rcw,kernel and rootfs. I guess the IFC driver while booting reads some ID's. I guess your flash is corrupted. If you write some image into your flash either an older SDK and try to boot from the SDCARD it shall boot fine.

Regards,

Arun.

0 Kudos
Reply

6,424 Views
cpark
Contributor II

Hi Arun,

Do you have TWR-LS1021A board?  If yes, can you share the log booting from sd-card?   I am trying to boot both u-boot and uImage from sd-card by setting SW2[1] to OFF and SW2[3] to ON.

As you may notice, booting U-boot from NOR Flash and loading uImage and DTB from the SD card works perfectly fine.  I see no crash.  All MTD partitions get detected and mounted correctly so I don't think the flash is corrupted.

However, if I select the SD card for RCW source and U-boot image, then the kernel fails to detect the NOR Flash. 


Could that be due to CPLD?

0 Kudos
Reply

6,424 Views
sinanakman
Senior Contributor III

Hi Chan

I don't know how you generated the image for SD boot but

verify the RCW in the case of SD boot. The RCW values

reported for SD boot is exactly same as the one reported

for NOR boot and this doesn't make sense. Go over your

RCW values and make sure you booting with the correct

RCW.

Hope this helps

Regards

Sinan Akman

0 Kudos
Reply

6,424 Views
cpark
Contributor II

Hi Sinan,

I used the following change and commands to build the u-boot for sdcard.

diff --git a/conf/machine/ls1021atwr.conf b/conf/machine/ls1021atwr.conf

index 2d59d48..300084a 100644

--- a/conf/machine/ls1021atwr.conf

+++ b/conf/machine/ls1021atwr.conf

@@ -9,7 +9,7 @@ require conf/machine/include/tune-cortexa7.inc

SOC_FAMILY = "ls102xa"

-UBOOT_CONFIG ??= "nor"

+UBOOT_CONFIG ??= "sdcard"

UBOOT_CONFIG[nor] = "ls1021atwr_nor_config"

UBOOT_CONFIG[sdcard] = "ls1021atwr_sdcard_config,sdcard"

UBOOT_CONFIG[lpuart] = "ls1021atwr_lpuart_config"

Linux shell commands:

cd ~/QorIQ-SDK-V1.7-20141218-yocto/build_ls1021atwr_release

source SOURCE_THIS

bitbake -c compile -f u-boot

bitbake u-boot

Here is the RCW file I used.

All three sets of RCW are failing. 

First, I tried with the RCWs commented as "disable IFC, enable QSPI and DSPI", but it failed.

I also tried with the RCWs commented as "enable IFC, disable ..." but it failed too.

Finally, I tried with the third set of RCW I added, and it still fails.

$ cat board/freescale/ls1021atwr/ls102xa_rcw_sd.cfg

#PBL preamble and RCW header

aa55aa55 01ee0100

#enable IFC, disable QSPI and DSPI

#0608000a 00000000 00000000 00000000

#20000000 00404000 60025a00 21042000

#00200000 00000000 00000000 01038000

#00000000 001b1200 00000000 00000000

#disable IFC, enable QSPI and DSPI

#0608000a 00000000 00000000 00000000

#20000000 00407900 60025a00 21046000

#00000000 00000000 00000000 01038000

#20024800 881b1540 00000000 00000000

0608000a 00000000 00000000 00000000

20000000 00407900 e0025a00 21046000

00000000 00000000 00000000 0003c000

00080000 901b7540 00000000 00000000

0 Kudos
Reply