ls1021a-twr Kernel 4.2/4.3-rc1 network issue

Hänel-Baas, Alexander alexander.haenel-baas at sieb-meyer.de
Wed Sep 16 06:11:54 PDT 2015


Hi
I hope this is the right list form my issue when not please give me a tip to the right list.


When i config the eth1 device with 
ifconfig the following message was printed at the console:

# ------------[ cut here ]------------
WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:303 dev_watchdog+0x13d/0x1a0()
Modules linked in:
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.2.0 #1
Hardware name: Freescale LS1021A
[<80011f2f>] (unwind_backtrace) from [<8000f89f>] (show_stack+0xb/0xc)
[<8000f89f>] (show_stack) from [<803272a1>] (dump_stack+0x51/0x64)
[<803272a1>] (dump_stack) from [<8001b661>] (warn_slowpath_common+0x59/0x80)
[<8001b661>] (warn_slowpath_common) from [<8001b6a3>] (warn_slowpath_fmt+0x1b/0x24)
[<8001b6a3>] (warn_slowpath_fmt) from [<802bb43d>] (dev_watchdog+0x13d/0x1a0)
[<802bb43d>] (dev_watchdog) from [<8004c339>] (call_timer_fn+0x3d/0xac)
[<8004c339>] (call_timer_fn) from [<8004c4ed>] (run_timer_softirq+0x145/0x17c)
[<8004c4ed>] (run_timer_softirq) from [<8001da31>] (__do_softirq+0xb5/0x1a8)
[<8001da31>] (__do_softirq) from [<8001dca3>] (irq_exit+0x4b/0x9c)
[<8001dca3>] (irq_exit) from [<8004301f>] (__handle_domain_irq+0x57/0x74)
[<8004301f>] (__handle_domain_irq) from [<8000924b>] (gic_handle_irq+0x27/0x40)
[<8000924b>] (gic_handle_irq) from [<8032a6db>] (__irq_svc+0x3b/0x5c)
Exception stack(0x80545f58 to 0x80545fa0)
5f40:                                                       00000000 0000436e
5f60: 80545fa8 80018781 80544000 00000001 8053e3a4 80545fa8 ffffffff 80546544
5f80: 80546440 80534050 00000008 80545fa0 8000db07 8000db08 40030033 ffffffff
[<8032a6db>] (__irq_svc) from [<8000db08>] (arch_cpu_idle+0x14/0x20)
[<8000db08>] (arch_cpu_idle) from [<8003c81d>] (cpu_startup_entry+0x115/0x164)
[<8003c81d>] (cpu_startup_entry) from [<80500949>] (start_kernel+0x285/0x2f0)
---[ end trace 4d7ae39ce08433e5 ]---

Any ideas what is going wrong and how I get the network to work?

My Board is a ls1021a-twr with uboot 2014. I load the Kernel/dtb and ramdisk over TFTP.
Here comes the full log, I hope that help:

U-Boot 2014.07+ls1+g6747328 (Dec 07 2014 - 16:03:02)

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: 70000000 00407900 e0025a00 21046000
       00000020: 00000000 00000000 00000000 00038000
       00000030: 00080000 48007340 00000000 00000000
Board: LS1021ATWR
CPLD:  V2.3
PCBA:  V3.0
VBank: 0
I2C:   ready
DRAM:  1 GiB
Using SERDES1 Protocol: 112 (0x70)
Firmware 'Microcode version 0.0.1 for LS1021a r1.0' for 1021 V1.0
QE: uploading microcode 'Microcode for LS1021a r1.0' version 0.0.1
Flash: 128 MiB
MMC:   FSL_SDHC: 0
EEPROM: NXID v1
In:    serial
Out:   serial
Err:   serial
Net:   eTSEC2 is in sgmii mode.
eTSEC1 [PRIME], eTSEC2, eTSEC3
Hit any key to stop autoboot:  0
=> run ramboot
eTSEC1 Waiting for PHY auto negotiation to complete......... TIMEOUT !
eTSEC1: No link.
Speed: 100, full duplex
BOOTP broadcast 1
BOOTP broadcast 2
BOOTP broadcast 3
DHCP client bound to address 172.16.19.204
Using eTSEC2 device
TFTP from server 172.16.5.1; our IP address is 172.16.19.204
Filename 'ls1021a/uImage'.
Load address: 0x82000000
Loading: #################################################################
         #################################################################
         #################################################################
         ################################
         2.2 MiB/s
done
Bytes transferred = 3326992 (32c410 hex)
Speed: 100, full duplex
BOOTP broadcast 1
DHCP client bound to address 172.16.19.204
Using eTSEC2 device
TFTP from server 172.16.5.1; our IP address is 172.16.19.204
Filename 'ls1021a/uImage_dtb'.
Load address: 0x8f000000
Loading: #
         1.5 MiB/s
done
Bytes transferred = 10981 (2ae5 hex)
Speed: 100, full duplex
BOOTP broadcast 1
DHCP client bound to address 172.16.19.204
Using eTSEC2 device
TFTP from server 172.16.5.1; our IP address is 172.16.19.204
Filename 'ls1021a/rootfs.ext2.gz.u-boot'.
Load address: 0x88000000
Loading: #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         #################################################################
         ###########################
         2.2 MiB/s
done
Bytes transferred = 48104092 (2de029c hex)
## Booting kernel from Legacy Image at 82000000 ...
   Image Name:   Linux-4.2.0
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    3326928 Bytes = 3.2 MiB
   Load Address: 80008000
   Entry Point:  80008000
   Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 88000000 ...
   Image Name:   Application Ramdisk
   Image Type:   ARM Linux RAMDisk Image (gzip compressed)
   Data Size:    48104028 Bytes = 45.9 MiB
   Load Address: 00000000
   Entry Point:  00000000
   Verifying Checksum ... OK
## Flattened Device Tree blob at 8f000000
   Booting using the fdt blob at 0x8f000000
   Loading Kernel Image ... OK
   Loading Ramdisk to bc151000, end bef3125c ... OK
   Loading Device Tree to bc14b000, end bc150ae4 ... OK
WARNING: Missing crypto node

Starting kernel ...

Booting Linux on physical CPU 0xf00
Linux version 4.2.0 (sm at debianVM) (gcc version 4.8.3 20131111 (prerelease) (OSELAS.Toolchain-2013.12.2 linaro-4.8-2013.11) ) #1 SMP Wed Sep 16 13:37:07 CEST 2015
CPU: ARMv7 Processor [410fc075] revision 5 (ARMv7), cr=70c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: LS1021A TWR Board
Forcing write-allocate cache policy for SMP
Memory policy: Data cache writealloc
PERCPU: Embedded 12 pages/cpu @bffd4000 s17856 r8192 d23104 u49152
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 260096
Kernel command line: root=/dev/ram0 rw 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: 986416K/1048576K available (3399K kernel code, 422K rwdata, 1684K rodata, 272K init, 199K bss, 62160K reserved, 0K cma-reserved, 0K highmem)
Virtual kernel memory layout:
    vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    fixmap  : 0xffc00000 - 0xfff00000   (3072 kB)
    vmalloc : 0xc0800000 - 0xff000000   (1000 MB)
    lowmem  : 0x80000000 - 0xc0000000   (1024 MB)
    pkmap   : 0x7fe00000 - 0x80000000   (   2 MB)
    modules : 0x7f800000 - 0x7fe00000   (   6 MB)
      .text : 0x80008000 - 0x804ff068   (5085 kB)
      .init : 0x80500000 - 0x80544000   ( 272 kB)
      .data : 0x80544000 - 0x805ad8d8   ( 423 kB)
       .bss : 0x805b1000 - 0x805e2f2c   ( 200 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Hierarchical RCU implementation.
        Additional per-CPU info printed with stalls.
        Build-time adjustment of leaf fanout to 32.
        RCU restricting CPUs from NR_CPUS=4 to nr_cpu_ids=2.
RCU: Adjusting geometry for rcu_fanout_leaf=32, nr_cpu_ids=2
NR_IRQS:16 nr_irqs:16 16
Architected cp15 timer(s) running at 12.50MHz (phys).
clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x2e2049cda, max_idle_ns: 440795202628 ns
sched_clock: 56 bits at 12MHz, resolution 80ns, wraps every 4398046511080ns
Switching to timer-based delay loop, resolution 80ns
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: 2048 (order: 1, 8192 bytes)
Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
CPU: Testing write buffer coherency: ok
CPU0: update cpu_capacity 1024
CPU0: thread -1, cpu 0, socket 15, mpidr 80000f00
Setting up static identity map for 0x80008280 - 0x800082cc
CPU1: update cpu_capacity 1024
CPU1: thread -1, cpu 1, socket 15, mpidr 80000f01
Brought up 2 CPUs
SMP: Total of 2 processors activated (50.00 BogoMIPS).
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
clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
pinctrl core: initialized pinctrl subsystem
NET: Registered protocol family 16
DMA: preallocated 256 KiB pool for atomic coherent allocations
hw-breakpoint: found 5 (+1 reserved) breakpoint and 4 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 8 bytes.
vgaarb: loaded
SCSI subsystem initialized
i2c i2c-0: IMX I2C adapter registered
i2c i2c-0: can't use DMA
i2c i2c-1: IMX I2C adapter registered
i2c i2c-1: can't use DMA
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti at linux.it>
PTP clock support registered
Advanced Linux Sound Architecture Driver Initialized.
clocksource: Switched to clocksource arch_sys_counter
NET: Registered protocol family 2
TCP established hash table entries: 8192 (order: 3, 32768 bytes)
TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
TCP: Hash tables configured (established 8192 bind 8192)
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.
Trying to unpack rootfs image as initramfs...
rootfs image is not initramfs (no cpio magic); looks like an initrd
Freeing initrd memory: 46980K (bc151000 - bef32000)
hw perfevents: Failed to parse /pmu/interrupt-affinity[0]
hw perfevents: enabled with armv7_cortex_a7 PMU driver, 5 counters available
futex hash table entries: 512 (order: 3, 32768 bytes)
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.
Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
io scheduler noop registered
io scheduler deadline registered
io scheduler cfq registered (default)
Serial: 8250/16550 driver, 4 ports, IRQ sharing enabled
console [ttyS0] disabled
21c0500.serial: ttyS0 at MMIO 0x21c0500 (irq = 28, base_baud = 9375000) is a 16550A
console [ttyS0] enabled
21c0600.serial: ttyS1 at MMIO 0x21c0600 (irq = 28, base_baud = 9375000) is a 16550A
2950000.serial: ttyLP0 at MMIO 0x2950000 (irq = 29, base_baud = 6250000) is a FSL_LPUART
fsl-lpuart 2950000.serial: DMA tx channel request failed, operating without tx DMA
fsl-lpuart 2950000.serial: DMA rx channel request failed, operating without rx DMA
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
libphy: Freescale PowerQUICC MII Bus: probed
fsl-gianfar soc:ethernet at 2d10000: enabled errata workarounds, flags: 0x4
fsl-gianfar soc:ethernet at 2d10000 eth0: mac: 00:04:9f:03:5d:ce
fsl-gianfar soc:ethernet at 2d10000 eth0: Running with NAPI enabled
fsl-gianfar soc:ethernet at 2d10000 eth0: RX BD ring size for Q[0]: 256
fsl-gianfar soc:ethernet at 2d10000 eth0: RX BD ring size for Q[1]: 256
fsl-gianfar soc:ethernet at 2d10000 eth0: TX BD ring size for Q[0]: 256
fsl-gianfar soc:ethernet at 2d10000 eth0: TX BD ring size for Q[1]: 256
fsl-gianfar soc:ethernet at 2d50000: enabled errata workarounds, flags: 0x4
fsl-gianfar soc:ethernet at 2d50000 eth1: mac: 00:04:9f:03:5d:cf
fsl-gianfar soc:ethernet at 2d50000 eth1: Running with NAPI enabled
fsl-gianfar soc:ethernet at 2d50000 eth1: RX BD ring size for Q[0]: 256
fsl-gianfar soc:ethernet at 2d50000 eth1: RX BD ring size for Q[1]: 256
fsl-gianfar soc:ethernet at 2d50000 eth1: TX BD ring size for Q[0]: 256
fsl-gianfar soc:ethernet at 2d50000 eth1: TX BD ring size for Q[1]: 256
fsl-gianfar soc:ethernet at 2d90000: enabled errata workarounds, flags: 0x4
fsl-gianfar soc:ethernet at 2d90000 eth2: mac: 00:04:9f:03:5d:d0
fsl-gianfar soc:ethernet at 2d90000 eth2: Running with NAPI enabled
fsl-gianfar soc:ethernet at 2d90000 eth2: RX BD ring size for Q[0]: 256
fsl-gianfar soc:ethernet at 2d90000 eth2: RX BD ring size for Q[1]: 256
fsl-gianfar soc:ethernet at 2d90000 eth2: TX BD ring size for Q[0]: 256
fsl-gianfar soc:ethernet at 2d90000 eth2: TX BD ring size for Q[1]: 256
mousedev: PS/2 mouse device common for all mice
i2c /dev entries driver
imx2-wdt 2ad0000.watchdog: timeout 60 sec (nowayout=0)
sdhci: Secure Digital Host Controller Interface driver
sdhci: Copyright(c) Pierre Ossman
sdhci-pltfm: SDHCI platform and OF driver helper
sgtl5000 1-000a: sgtl5000 revision 0x11
oprofile: using timer interrupt.
Initializing XFRM netlink socket
NET: Registered protocol family 17
NET: Registered protocol family 15
Key type dns_resolver registered
Registering SWP/SWPB emulation handler
sgtl5000 1-000a: Using internal LDO instead of VDDD
asoc-simple-card sound: sgtl5000 <-> 2b50000.sai mapping ok
hctosys: unable to open rtc device (rtc0)
ALSA device list:
  #0: 2b50000.sai-sgtl5000
RAMDISK: gzip image found at block 0
EXT3-fs (ram0): error: couldn't mount because of unsupported optional features (40)
EXT2-fs (ram0): error: couldn't mount because of unsupported optional features (40)
EXT4-fs (ram0): mounted filesystem with ordered data mode. Opts: (null)
VFS: Mounted root (ext4 filesystem) on device 1:0.
devtmpfs: mounted
Freeing unused kernel memory: 272K (80500000 - 80544000)
init started: BusyBox v1.22.1 (2015-09-08 16:14:07 CEST)
starting pid 56, tty '/dev/console': '/etc/init.d/rcS'
[rcS] mounting filesystems...done.
[rcS] hostname = sd3XenoArm.V2
[rcS] running /etc/rc.d services...
starting udev
creating static nodes
starting udevd...done
udevd[122]: starting version 182
waiting for devices...done
running rc.once.d services...
generating rsa key...done
generating dss key...done
hwclock: can't open '/dev/misc/rtc': No such file or directory
starting dropbear...done
Starting telnetd...
[kexec] kexec omitted on ARM                                                        [ WARN ]
starting pid 342, tty '/dev/console': '/sbin/getty -L 115200 ttyS0 vt100'

OSELAS(R)-SD3-Xenomai-002 / sm-arm-2013.12.2
ptxdist-2014.10.0/2015-09-16T14:10:40+0200

sd3XenoArm.V2 login: root
Password:
root at sd3XenoArm:~ # ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root at sd3XenoArm:~ # ifconfig eth1 172.16.19.204 up

root at sd3XenoArm:~ # ------------[ cut here ]------------
WARNING: CPU: 0 PID: 0 at net/sched/sch_generic.c:303 dev_watchdog+0x13d/0x1a0()
Modules linked in: 
CPU: 0 PID: 0 Comm: swapper/0 Not tainted 4.2.0 #1
Hardware name: Freescale LS1021A
[<80011f2f>] (unwind_backtrace) from [<8000f89f>] (show_stack+0xb/0xc)
[<8000f89f>] (show_stack) from [<803272a1>] (dump_stack+0x51/0x64)
[<803272a1>] (dump_stack) from [<8001b661>] (warn_slowpath_common+0x59/0x80)
[<8001b661>] (warn_slowpath_common) from [<8001b6a3>] (warn_slowpath_fmt+0x1b/0x24)
[<8001b6a3>] (warn_slowpath_fmt) from [<802bb43d>] (dev_watchdog+0x13d/0x1a0)
[<802bb43d>] (dev_watchdog) from [<8004c339>] (call_timer_fn+0x3d/0xac)
[<8004c339>] (call_timer_fn) from [<8004c4ed>] (run_timer_softirq+0x145/0x17c)
[<8004c4ed>] (run_timer_softirq) from [<8001da31>] (__do_softirq+0xb5/0x1a8)
[<8001da31>] (__do_softirq) from [<8001dca3>] (irq_exit+0x4b/0x9c)
[<8001dca3>] (irq_exit) from [<8004301f>] (__handle_domain_irq+0x57/0x74)
[<8004301f>] (__handle_domain_irq) from [<8000924b>] (gic_handle_irq+0x27/0x40)
[<8000924b>] (gic_handle_irq) from [<8032a6db>] (__irq_svc+0x3b/0x5c)
Exception stack(0x80545f58 to 0x80545fa0)
5f40:                                                       00000000 0000436e
5f60: 80545fa8 80018781 80544000 00000001 8053e3a4 80545fa8 ffffffff 80546544
5f80: 80546440 80534050 00000008 80545fa0 8000db07 8000db08 40030033 ffffffff
[<8032a6db>] (__irq_svc) from [<8000db08>] (arch_cpu_idle+0x14/0x20)
[<8000db08>] (arch_cpu_idle) from [<8003c81d>] (cpu_startup_entry+0x115/0x164)
[<8003c81d>] (cpu_startup_entry) from [<80500949>] (start_kernel+0x285/0x2f0)
---[ end trace 4d7ae39ce08433e5 ]---

Now Ifconfig shows:

root at sd3XenoArm:~ # ifconfig
eth1      Link encap:Ethernet  HWaddr 00:04:9F:03:5D:CF
          inet addr:172.16.19.204  Bcast:172.16.255.255  Mask:255.255.0.0
          inet6 addr: fe80::204:9fff:fe03:5dcf/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:26 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:2 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2200 (2.1 KiB)  TX bytes:648 (648.0 B)
          Base address:0xc000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

And no ping is possible.

With best regards,
Alexander Hänel-Baas



More information about the linux-arm mailing list