I am following the tutorial at rocketboards.org/foswiki/view/Documentation/EmbeddedLinuxBeginnerSGuide. Everything seems to work fine up to “Testing the system 2.” At that point the boot will hang before loading the root fs. The log is as follows:
Terminal ready
U-Boot SPL 2013.01.01 (Aug 17 2016 - 10:21:50)
BOARD : Altera SOCFPGA Cyclone V Board
CLOCK: EOSC1 clock 25000 KHz
CLOCK: EOSC2 clock 25000 KHz
CLOCK: F2S_SDR_REF clock 0 KHz
CLOCK: F2S_PER_REF clock 0 KHz
CLOCK: MPU clock 925 MHz
CLOCK: DDR clock 400 MHz
CLOCK: UART clock 100000 KHz
CLOCK: MMC clock 50000 KHz
CLOCK: QSPI clock 3613 KHz
RESET: COLD
INFO : Watchdog enabled
SDRAM: Initializing MMR registers
SDRAM: Calibrating PHY
SEQ.C: Preparing to start memory calibration
SEQ.C: CALIBRATION PASSED
SDRAM: 1024 MiB
ALTERA DWMMC: 0
reading u-boot.img
reading u-boot.img
U-Boot 2013.01.01-00126-g353283b (Aug 19 2016 - 13:09:56)
CPU : Altera SOCFPGA Platform
BOARD : Altera SOCFPGA Cyclone V Board
I2C: ready
DRAM: 1 GiB
MMC: ALTERA DWMMC: 0
*** Warning - bad CRC, using default environment
In: serial
Out: serial
Err: serial
Skipped ethaddr assignment due to invalid EMAC address in EEPROM
Net: mii0
Warning: failed to set MAC address
Hit any key to stop autoboot: 5 4 3 2 1 0
reading u-boot.scr
589 bytes read in 4 ms (143.6 KiB/s)
Executing script at 02000000
– Programming FPGA –
reading soc_system.rbf
4244820 bytes read in 199 ms (20.3 MiB/s)
Starting application at 0x3FF79524 …
Application terminated, rc = 0x0
– Setting Env Variables –
reading zImage
3781960 bytes read in 177 ms (20.4 MiB/s)
reading soc_system.dtb
21849 bytes read in 7 ms (3 MiB/s)
Flattened Device Tree blob at 00000100
Booting using the fdt blob at 0x00000100
Loading Device Tree to 03ff7000, end 03fff558 … OK
Starting kernel …
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Linux version 4.1.0zImage (larry@megadeth) (gcc version 4.9.2 20140904 (prerelease) (crosstool-NG linaro-1.13.1-4.9-2014.09 - Linaro GCC 4.9-2014.09) ) #1 SMP Wed Aug 17 14:22:29 MDT 2016
[ 0.000000] CPU: ARMv7 Processor [413fc090] revision 0 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] Machine model: Altera SOCFPGA Cyclone V
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] PERCPU: Embedded 12 pages/cpu @bf7cb000 s19520 r8192 d21440 u49152
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260096
[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/mmcblk0p2 rw rootwait
[ 0.000000] PID hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Dentry cache hash table entries: 131072 (order: 7, 524288 bytes)
[ 0.000000] Inode-cache hash table entries: 65536 (order: 6, 262144 bytes)
[ 0.000000] Memory: 1031424K/1048576K available (5467K kernel code, 404K rwdata, 1476K rodata, 416K init, 151K bss, 17152K reserved, 0K cma-reserved, 0K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xc0800000 - 0xff000000 (1000 MB)
[ 0.000000] lowmem : 0x80000000 - 0xc0000000 (1024 MB)
[ 0.000000] pkmap : 0x7fe00000 - 0x80000000 ( 2 MB)
[ 0.000000] modules : 0x7f000000 - 0x7fe00000 ( 14 MB)
[ 0.000000] .text : 0x80008000 - 0x806cffec (6944 kB)
[ 0.000000] .init : 0x806d0000 - 0x80738000 ( 416 kB)
[ 0.000000] .data : 0x80738000 - 0x8079d318 ( 405 kB)
[ 0.000000] .bss : 0x8079d318 - 0x807c3314 ( 152 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] Additional per-CPU info printed with stalls.
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] L2C: platform modifies aux control register: 0x02060000 -> 0x32460000
[ 0.000000] L2C: platform provided aux values permit register corruption.
[ 0.000000] L2C: DT/platform modifies aux control register: 0x02060000 -> 0x32460000
[ 0.000000] L2C-310 erratum 769419 enabled
[ 0.000000] L2C-310 enabling early BRESP for Cortex-A9
[ 0.000000] L2C-310 full line of zeros enabled for Cortex-A9
[ 0.000000] L2C-310 ID prefetch enabled, offset 1 lines
[ 0.000000] L2C-310 dynamic clock gating enabled, standby mode enabled
[ 0.000000] L2C-310 cache controller enabled, 8 ways, 512 kB
[ 0.000000] L2C-310: CACHE_ID 0x410030c9, AUX_CTRL 0x76460001
[ 0.000000] clocksource timer: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604467 ns
[ 0.000005] sched_clock: 32 bits at 100MHz, resolution 10ns, wraps every 21474836475ns
[ 0.000342] Console: colour dummy device 80x30
[ 0.000361] Calibrating delay loop… 1836.64 BogoMIPS (lpj=9183232)
[ 0.060231] pid_max: default: 32768 minimum: 301
[ 0.060326] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.060337] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.060841] CPU: Testing write buffer coherency: ok
[ 0.060869] ftrace: allocating 19642 entries in 58 pages
[ 0.086993] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.087107] Setting up static identity map for 0x8280 - 0x82d8
[ 0.140255] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.140320] Brought up 2 CPUs
[ 0.140333] SMP: Total of 2 processors activated (3679.84 BogoMIPS).
[ 0.140339] CPU: All CPU(s) started in SVC mode.
[ 0.140742] devtmpfs: initialized
[ 0.145257] clocksource jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.146538] NET: Registered protocol family 16
[ 0.146587] fpga bridge driver
[ 0.147301] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.152925] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[ 0.152936] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.153025] socfpga-reset ffd05000.rstmgr: /sopc@0/rstmgr@0xffd05000 missing #reset-cells property
[ 0.153043] socfpga-reset: probe of ffd05000.rstmgr failed with error -22
[ 0.153337] altera_hps2fpga_bridge sopc@0:fpgabridge@0: Could not get hps2fpga reset control!
[ 0.153352] altera_hps2fpga_bridge: probe of sopc@0:fpgabridge@0 failed with error -22
[ 0.153382] altera_hps2fpga_bridge sopc@0:fpgabridge@1: Could not get lwhps2fpga reset control!
[ 0.153395] altera_hps2fpga_bridge: probe of sopc@0:fpgabridge@1 failed with error -22
[ 0.153422] altera_hps2fpga_bridge sopc@0:fpgabridge@2: Could not get fpga2hps reset control!
[ 0.153434] altera_hps2fpga_bridge: probe of sopc@0:fpgabridge@2 failed with error -22
[ 0.181188] FPGA Mangager framework driver
[ 0.181454] SCSI subsystem initialized
[ 0.181731] usbcore: registered new interface driver usbfs
[ 0.181790] usbcore: registered new interface driver hub
[ 0.181846] usbcore: registered new device driver usb
[ 0.181969] sopc@0:usbphy@0 supply vcc not found, using dummy regulator
[ 0.182717] pps_core: LinuxPPS API ver. 1 registered
[ 0.182725] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti giometti@linux.it
[ 0.182754] PTP clock support registered
[ 0.183505] Switched to clocksource timer
[ 0.212521] NET: Registered protocol family 2
[ 0.213067] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.213136] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 0.213242] TCP: Hash tables configured (established 8192 bind 8192)
[ 0.213321] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 0.213364] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 0.213655] NET: Registered protocol family 1
[ 0.214105] RPC: Registered named UNIX socket transport module.
[ 0.214116] RPC: Registered udp transport module.
[ 0.214122] RPC: Registered tcp transport module.
[ 0.214127] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 0.214569] CPU PMU: Failed to parse /sopc@0/pmu0/interrupt-affinity[0]
[ 0.214604] hw perfevents: enabled with armv7_cortex_a9 PMU driver, 7 counters available
[ 0.214673] arm-pmu arm-pmu: PMU:CTI successfully enabled for 2 cores
[ 0.215494] futex hash table entries: 512 (order: 3, 32768 bytes)
[ 0.225753] NFS: Registering the id_resolver key type
[ 0.225792] Key type id_resolver registered
[ 0.225799] Key type id_legacy registered
[ 0.225851] ntfs: driver 2.1.32 [Flags: R/W].
[ 0.226156] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 0.227031] io scheduler noop registered (default)
[ 0.231401] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.232335] console [ttyS0] disabled
[ 0.232372] ffc02000.serial: ttyS0 at MMIO 0xffc02000 (irq = 24, base_baud = 6250000) is a 16550A
[ 0.862168] console [ttyS0] enabled
[ 0.866001] Serial: AMBA driver
[ 0.869611] altera_fpga_manager ff706000.fpgamgr: fpga manager [Altera FPGA Manager] registered as minor 0
[ 0.880816] brd: module loaded
[ 0.885186] CAN device driver interface
[ 0.889481] stmmaceth ff702000.ethernet: snps,phy-addr property is deprecated
[ 0.896667] stmmaceth ff702000.ethernet: Could not get reset control!
[ 0.903088] stmmaceth ff702000.ethernet: No sysmgr-syscon node found
[ 0.909443] stmmaceth ff702000.ethernet: Unable to parse OF data
[ 0.915812] ffb40000.usb supply vusb_d not found, using dummy regulator
[ 0.922447] ffb40000.usb supply vusb_a not found, using dummy regulator
[ 0.963561] dwc2 ffb40000.usb: EPs: 16, dedicated fifos, 8064 entries in SPRAM
[ 1.823614] dwc2 ffb40000.usb: DWC OTG Controller
[ 1.828326] dwc2 ffb40000.usb: new USB bus registered, assigned bus number 1
[ 1.835386] dwc2 ffb40000.usb: irq 36, io mem 0x00000000
[ 1.840834] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
[ 1.847612] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
[ 1.854813] usb usb1: Product: DWC OTG Controller
[ 1.859499] usb usb1: Manufacturer: Linux 4.1.0zImage dwc2_hsotg
[ 1.865490] usb usb1: SerialNumber: ffb40000.usb
[ 1.870618] hub 1-0:1.0: USB hub found
[ 1.874400] hub 1-0:1.0: 1 port detected
[ 1.878798] usbcore: registered new interface driver usb-storage
[ 1.885068] mousedev: PS/2 mouse device common for all mice
[ 1.890904] i2c /dev entries driver
[ 1.895690] ledtrig-cpu: registered to indicate activity on CPUs
[ 1.901853] usbcore: registered new interface driver usbhid
[ 1.907419] usbhid: USB HID core driver
[ 1.911429] oprofile: using arm/armv7-ca9
[ 1.916230] NET: Registered protocol family 10
[ 1.921209] sit: IPv6 over IPv4 tunneling driver
[ 1.926380] NET: Registered protocol family 17
[ 1.930831] NET: Registered protocol family 15
[ 1.935292] can: controller area network core (rev 20120528 abi 9)
[ 1.941648] NET: Registered protocol family 29
[ 1.946106] can: raw protocol (rev 20120528)
[ 1.950365] can: broadcast manager protocol (rev 20120528 t)
[ 1.956021] can: netlink gateway (rev 20130117) max_hops=1
[ 1.961669] 8021q: 802.1Q VLAN Support v1.8
[ 1.965902] Key type dns_resolver registered
[ 1.970228] Registering SWP/SWPB emulation handler
[ 1.977954] ttyS0 - failed to request DMA
[ 1.981999] Waiting for root device /dev/mmcblk0p2…
^[[15~
I don’t see any obvious problems. The kernel and U-boot seem to work fine. I am pretty new to Linux so I don’t even know what the loader is trying to do, and the Internet hasn’t been a lot of help. The SD card is a 16GB with only the 512Mb load described in the tutorial. The hang never ends, it will sit that way until I power down the card. The card itself is an Atlas-SOC DE0-Nano-SoC.
Any guidance is greatly appreciated.