Project

General

Profile

Ethernet Error When Upgrading to Linux 3.16.

Added by Julio Liriano almost 9 years ago

After successfully building my development system with Yocto, I find that the ethernet and GPIO no longer work
as can be seen in the boot sequence. Building a 3.12 system works fine. Any idea what this could be?

U-Boot SPL 2013.01.01 (Jan 22 2015 - 11:35:09)
BOARD : Critical Link MitySOM-5CSX Module
INFO : Watchdog enabled
SDRAM: Initializing MMR registers
SDRAM: Calibrating PHY
SEQ.C: Preparing to start memory calibration
SEQ.C: CALIBRATION PASSED
SDRAM: ECC Enabled
ALTERA DWMMC: 0

U-Boot 2013.01.01 (Jan 22 2015 - 11:35:36) Critical Link MitySOM-5CSX

CPU : Altera SOCFPGA Platform
BOARD : Critical Link MitySOM-5CSX Module
I2C: ready
DRAM: 1 GiB
MMC: ALTERA DWMMC: 0
In: serial
Out: serial
Err: serial
Net: mii0

preboot reading MMC uBoot ENV data

20 bytes read in 95 ms (0 Bytes/s)
78 bytes read in 36 ms (2 KiB/s)
...done
Hit any key to stop autoboot: 0
gpio: pin 28 (bank/mask = 0/0x10000000)
gpio: pin 28 (gpio 28) value is 0
gpio: pin 28 (bank/mask = 0/0x10000000)
gpio: pin 28 (gpio 28) value is 1
gpio: pin 0 (bank/mask = 0/0x00000001)
gpio: pin 0 (gpio 0) value is 1
gpio: pin 9 (bank/mask = 0/0x00000200)
gpio: pin 9 (gpio 9) value is 0
gpio: pin 9 (bank/mask = 0/0x00000200)
gpio: pin 9 (gpio 9) value is 1
7007184 bytes read in 2444 ms (2.7 MiB/s)
  1. Starting application at 0x3FF7F354 ...
  2. Application terminated, rc = 0xA
    3663576 bytes read in 1296 ms (2.7 MiB/s)
    18399 bytes read in 37 ms (485.4 KiB/s)
  3. Booting kernel from Legacy Image at 00007fc0 ...
    Image Name: Linux-3.16.0+
    Image Type: ARM Linux Kernel Image (uncompressed)
    Data Size: 3663512 Bytes = 3.5 MiB
    Load Address: 00008000
    Entry Point: 00008000
  4. Flattened Device Tree blob at 00000100
    Booting using the fdt blob at 0x00000100
    XIP Kernel Image ... OK
    OK
    Loading Device Tree to 03ff8000, end 03fff7de ... OK

Starting kernel ...

Booting Linux on physical CPU 0x0
Initializing cgroup subsys cpuset
Linux version 3.16.0+ (jliriano@ArmDev-VB) (gcc version 4.8.1 (GCC) ) #1 SMP Thu Apr 9 17:23:27 EDT 2015
CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
Machine model: MitySOM-5CSX Altera SOCFPGA Cyclone V
Memory policy: Data cache writealloc
PERCPU: Embedded 8 pages/cpu @bf7d5000 s11008 r8192 d13568 u32768
Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096
Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait mem=1024M
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: 1031536K/1048576K available (5516K kernel code, 277K rwdata, 1540K rodata, 382K init, 125K bss, 17040K reserved)
Virtual kernel memory layout:
vector : 0xffff0000 - 0xffff1000 ( 4 kB)
fixmap : 0xffc00000 - 0xffe00000 (2048 kB)
vmalloc : 0xc0800000 - 0xff000000 (1000 MB)
lowmem : 0x80000000 - 0xc0000000 (1024 MB)
modules : 0x7f000000 - 0x80000000 ( 16 MB)
.text : 0x80008000 - 0x806ec300 (7057 kB)
.init : 0x806ed000 - 0x8074cb00 ( 383 kB)
.data : 0x8074e000 - 0x807937e8 ( 278 kB)
.bss : 0x807937e8 - 0x807b2e1c ( 126 kB)
SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:16 nr_irqs:16 16
L2C: platform modifies aux control register: 0x02060000 -> 0x32460000
L2C: platform provided aux values permit register corruption.
L2C: DT/platform modifies aux control register: 0x02060000 -> 0x32460000
L2C-310 erratum 769419 enabled
L2C-310 enabling early BRESP for Cortex-A9
L2C-310 full line of zeros enabled for Cortex-A9
L2C-310 ID prefetch enabled, offset 1 lines
L2C-310 dynamic clock gating enabled, standby mode enabled
L2C-310 cache controller enabled, 8 ways, 512 kB
L2C-310: CACHE_ID 0x410030c9, AUX_CTRL 0x76460001
sched_clock: 32 bits at 100MHz, resolution 10ns, wraps every 42949672950ns
Console: colour dummy device 80x30
Calibrating delay loop... 1594.16 BogoMIPS (lpj=7970816)
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
ftrace: allocating 18739 entries in 55 pages
CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
Setting up static identity map for 0x4fa548 - 0x4fa5a0
CPU1: Booted secondary processor
CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
Brought up 2 CPUs
SMP: Total of 2 processors activated.
CPU: All CPU started in SVC mode.
devtmpfs: initialized
VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
NET: Registered protocol family 16
fpga bridge driver
DMA: preallocated 256 KiB pool for atomic coherent allocations
hw-breakpoint: found 5 (1 reserved) breakpoint and 1 watchpoint registers.
hw-breakpoint: maximum watchpoint size is 4 bytes.
altera_hps2fpga_bridge soc:fpgabridge@0: fpga bridge [hps2fpga] registered as device hps2fpga
altera_hps2fpga_bridge soc:fpgabridge@0: init-val not specified
altera_hps2fpga_bridge soc:fpgabridge@1: fpga bridge [lshps2fpga] registered as device lwhps2fpga
altera_hps2fpga_bridge soc:fpgabridge@1: init-val not specified
altera_hps2fpga_bridge soc:fpgabridge@2: fpga bridge [fpga2hps] registered as device fpga2hps
altera_hps2fpga_bridge soc:fpgabridge@2: init-val not specified
FPGA Mangager framework driver
vgaarb: loaded
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
pps_core: LinuxPPS API ver. 1 registered
pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <>
PTP clock support registered
Switched to clocksource timer1
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)
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-A9 PMU driver, 7 counters available
arm-pmu arm-pmu: PMU:CTI successfully enabled for 2 cores
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
ntfs: driver 2.1.30 [Flags: R/W].
jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
msgmni has been set to 2014
io scheduler noop registered (default)
Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
console [ttyS0] disabled
ffc02000.serial0: ttyS0 at MMIO 0xffc02000 (irq = 194, base_baud = 6250000) is a 16550A
console [ttyS0] enabled
ffc03000.serial1: ttyS1 at MMIO 0xffc03000 (irq = 195, base_baud = 6250000) is a 16550A
altera_fpga_manager ff706000.fpgamgr: fpga manager [Altera FPGA Manager] registered as minor 0
brd: module loaded
at24 0-0050: 2048 byte 24c16 EEPROM, writable, 1 bytes/write
cadence-qspi ff705000.spi: cannot get qspi clk
cadence-qspi: probe of ff705000.spi failed with error -2
CAN device driver interface
stmmaceth ff702000.ethernet: snps,phy-addr property is deprecated
stmmaceth ff702000.ethernet: No sysmgr-syscon node found
stmmaceth ff702000.ethernet: Unable to parse OF data
dwc2 ffb40000.usb: EPs: 15, dedicated fifos, 8064 entries in SPRAM
dwc2 ffb40000.usb: DWC OTG Controller
dwc2 ffb40000.usb: new USB bus registered, assigned bus number 1
dwc2 ffb40000.usb: irq 160, io mem 0x00000000
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: DWC OTG Controller
usb usb1: Manufacturer: Linux 3.16.0
dwc2_hsotg
usb usb1: SerialNumber: ffb40000.usb
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
usbcore: registered new interface driver usb-storage
mousedev: PS/2 mouse device common for all mice
rtc-ab18xx 0-0069: rtc core: registered ab1803 as rtc0
rtc-ab18xx 0-0069: 192 bytes nvram
i2c /dev entries driver
Synopsys Designware Multimedia Card Interface Driver
dw_mmc ff704000.dwmmc0: no vmmc regulator found: -19
dw_mmc ff704000.dwmmc0: Using internal DMA controller.
dw_mmc ff704000.dwmmc0: Version ID is 240a
dw_mmc ff704000.dwmmc0: DW MMC controller at irq 171, 32 bit host data width, 1024 deep fifo
dw_mmc ff704000.dwmmc0: 1 slots initialized
lp5562 0-0030: internal clock used
ledtrig-cpu: registered to indicate activity on CPUs
usbcore: registered new interface driver usbhid
usbhid: USB HID core driver
oprofile: using arm/armv7-ca9
TCP: cubic registered
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)
can: broadcast manager protocol (rev 20120528 t)
can: netlink gateway (rev 20130117) max_hops=1
8021q: 802.1Q VLAN Support v1.8
Key type dns_resolver registered
ThumbEE CPU extension supported.
Registering SWP/SWPB emulation handler
Waiting for root device /dev/mmcblk0p2...
mmc0: problem reading SD Status register.
mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0)
mmc0: new high speed SDHC card at address aaaa
mmcblk0: mmc0:aaaa SU08G 7.40 GiB
mmcblk0: p1 p2 p3
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: 380K (806ed000 - 8074c000)
INIT: version 2.88 booting
Error opening /dev/fb0: No such file or directory
Starting udev
random: nonblocking pool is initialized
udevd78: starting version 182
Starting Bootlog daemon: bootlogd.
Configuring network interfaces... eth0: ERROR while getting interface flags: No such device
SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
SIOCADDRT: No such device
Starting rpcbind daemon...rpcbind: cannot create socket for udp6
rpcbind: cannot create socket for tcp6
done.
net.ipv4.conf.default.rp_filter = 1
net.ipv4.conf.all.rp_filter = 1
Starting atd: OK
INIT: Entering runlevel: 5
Starting system message bus: dbus.
Cannot get current device settings: No such device
not setting speed
not setting duplex
not setting autoneg
/etc/rc5.d/S03Set100: line 6: echo: write error: No such device
/etc/rc5.d/S03Set100: line 7: /sys/class/gpio/gpio222/direction: No such file or directory
/etc/rc5.d/S03Set100: line 8: /sys/class/gpio/gpio222/value: No such file or directory
/etc/rc5.d/S03Set100: line 9: echo: write error: No such device
/etc/rc5.d/S03Set100: line 10: /sys/class/gpio/gpio219/direction: No such file or directory
/etc/rc5.d/S03Set100: line 11: /sys/class/gpio/gpio219/value: No such file or directory
/etc/rc5.d/S03Set100: line 12: echo: write error: No such device
/etc/rc5.d/S03Set100: line 13: /sys/class/gpio/gpio218/direction: No such file or directory
/etc/rc5.d/S03Set100: line 14: /sys/class/gpio/gpio218/value: No such file or directory
/etc/rc5.d/S03Set100: line 15: echo: write error: No such device
/etc/rc5.d/S03Set100: line 16: /sys/class/gpio/gpio217/direction: No such file or directory
/etc/rc5.d/S03Set100: line 17: /sys/class/gpio/gpio217/value: No such file or directory
Starting OpenBSD Secure Shell server: sshd
done.
creating NFS state directory: done
NFS daemon support not enabled in kernel
Starting system log daemon...0
Starting kernel log daemon...0
Starting Lighttpd Web Server: lighttpd.
Starting crond: OK
Stopping Bootlog daemon: bootlogd.

Poky (Yocto Project Reference Distro) 1.5.3 BatMan /dev/ttyS0

BatMan login: root
root@BatMan:~#


Replies (1)

RE: Ethernet Error When Upgrading to Linux 3.16. - Added by Julio Liriano almost 9 years ago

So I believe I solved my own problem. I compiled the kernel and then just dropped it into my sd card. When
I updated the kernel, something broke between the kernel and the device tree blob.

After the kernel compiles, the correct dtb file is generated here:
/poky/tmp/work/mitysom_5csx-poky-linux-gnueabi/linux-mitysom-5csx/3.16-r1/git/arch/arm/boot/dts/socfpga_mitysom5csx_devkit.dtb

This has dtb updated the one on your root file system.

    (1-1/1)
    Go to top
    Add picture from clipboard (Maximum size: 1 GB)