Community
cancel
Showing results for 
Search instead for 
Did you mean: 
raab91
Beginner
855 Views

Currently stuck booting linux in custom Qsys system. I am using the DE10-Nano board for this.

I am stuck booting linux on the HPS. I followed the Cyclone V GSRD manual guides from rocketboards in order to do this ( https://rocketboards.org/foswiki/Documentation/AVCVGSRDLTS ). Generated the preloader using the bsp-editor tool, generated the device tree blob using the sopc2dts . Also made a u-boot.scr as stated by this guides. I obtained the root file system and zImage from ( https://releases.rocketboards.org/release/2017.10/gsrd/bin/linux-socfpga-gsrd-17.1std-cv.tar.gz ) as well as its corresponding u-boot.

 

I am botting through an microSD card, so I created the partitions indicated and place their corresponding files. I am obtaining the next messages when I boot the HPS

Starting kernel ...   [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Initializing cgroup subsys cpuset [ 0.000000] Linux version 4.1.33-ltsi-altera (esv@eswdmz3) (gcc version 5.2.1 20151005 (Linaro GCC 5.2-2015.11-2) ) #1 SMP Tue Oct 31 10:09:29 MYT 2017 [ 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] cma: Reserved 16 MiB at 0x3f000000 [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] PERCPU: Embedded 12 pages/cpu @eefca000 s19712 r8192 d21248 u49152 [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 260624 [ 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: 1013996K/1048576K available (6278K kernel code, 431K rwdata, 1664K rodata, 424K init, 159K bss, 18196K reserved, 16384K cma-reserved, 253952K highmem) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB) [ 0.000000] vmalloc : 0xf0000000 - 0xff000000 ( 240 MB) [ 0.000000] lowmem : 0xc0000000 - 0xef800000 ( 760 MB) [ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB) [ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB) [ 0.000000] .text : 0xc0008000 - 0xc07c9b88 (7943 kB) [ 0.000000] .init : 0xc07ca000 - 0xc0834000 ( 424 kB) [ 0.000000] .data : 0xc0834000 - 0xc089fda0 ( 432 kB) [ 0.000000] .bss : 0xc089fda0 - 0xc08c7d90 ( 160 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 . . several other messeges and then ... . [ 0.798232] ------------[ cut here ]------------ [ 0.802876] WARNING: CPU: 0 PID: 1 at /build/cv_soc_devkit_ghrd/build/tmp-angstrom_v2015_12-glibc/work-shared/cyclone5/kernel-source/drivers/spi/spidev.c:731 spidev_probe+0x1b8/0x1d4() [ 0.819237] Modules linked in: [ 0.822305] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.1.33-ltsi-altera #1 [ 0.829234] Hardware name: Altera SOCFPGA [ 0.833255] [<c0018a68>] (unwind_backtrace) from [<c0013ab4>] (show_stack+0x20/0x24) [ 0.840980] [<c0013ab4>] (show_stack) from [<c05a8bb8>] (dump_stack+0x8c/0xa0) [ 0.848179] [<c05a8bb8>] (dump_stack) from [<c0027e60>] (warn_slowpath_common+0x94/0xc4) [ 0.856237] [<c0027e60>] (warn_slowpath_common) from [<c0027f4c>] (warn_slowpath_null+0x2c/0x34) [ 0.864989] [<c0027f4c>] (warn_slowpath_null) from [<c03c6568>] (spidev_probe+0x1b8/0x1d4) [ 0.873220] [<c03c6568>] (spidev_probe) from [<c03c39d8>] (spi_drv_probe+0x60/0x84) [ 0.880852] [<c03c39d8>] (spi_drv_probe) from [<c0377164>] (driver_probe_device+0x1c8/0x2c4) [ 0.889257] [<c0377164>] (driver_probe_device) from [<c03772b0>] (__device_attach+0x50/0x54) [ 0.897661] [<c03772b0>] (__device_attach) from [<c0375508>] (bus_for_each_drv+0x70/0xa4) [ 0.905805] [<c0375508>] (bus_for_each_drv) from [<c0376f58>] (device_attach+0x90/0xa4) [ 0.913776] [<c0376f58>] (device_attach) from [<c0376510>] (bus_probe_device+0x94/0xb8) [ 0.921747] [<c0376510>] (bus_probe_device) from [<c0374444>] (device_add+0x380/0x57c) [ 0.929632] [<c0374444>] (device_add) from [<c03c43d8>] (spi_add_device+0xa8/0x140) [ 0.937258] [<c03c43d8>] (spi_add_device) from [<c03c4870>] (of_register_spi_device+0x244/0x30c) [ 0.946008] [<c03c4870>] (of_register_spi_device) from [<c03c5da0>] (spi_register_master+0x264/0x450) [ 0.955188] [<c03c5da0>] (spi_register_master) from [<c03c5fcc>] (devm_spi_register_master+0x40/0x78) [ 0.964369] [<c03c5fcc>] (devm_spi_register_master) from [<c03c7c8c>] (dw_spi_add_host+0x170/0x24c) [ 0.973378] [<c03c7c8c>] (dw_spi_add_host) from [<c03c8134>] (dw_spi_mmio_probe+0x1f4/0x250) [ 0.981784] [<c03c8134>] (dw_spi_mmio_probe) from [<c0378f78>] (platform_drv_probe+0x54/0xbc) [ 0.990275] [<c0378f78>] (platform_drv_probe) from [<c0377164>] (driver_probe_device+0x1c8/0x2c4) [ 0.999110] [<c0377164>] (driver_probe_device) from [<c0377350>] (__driver_attach+0x9c/0xa0) [ 1.007513] [<c0377350>] (__driver_attach) from [<c0375438>] (bus_for_each_dev+0x78/0xac) [ 1.015657] [<c0375438>] (bus_for_each_dev) from [<c0376b2c>] (driver_attach+0x2c/0x30) [ 1.023628] [<c0376b2c>] (driver_attach) from [<c03767a4>] (bus_add_driver+0x15c/0x204) [ 1.031598] [<c03767a4>] (bus_add_driver) from [<c0377ccc>] (driver_register+0x88/0x108) [ 1.039657] [<c0377ccc>] (driver_register) from [<c0378ea4>] (__platform_driver_register+0x64/0x6c) [ 1.048670] [<c0378ea4>] (__platform_driver_register) from [<c07f65d0>] (dw_spi_mmio_driver_init+0x1c/0x20) [ 1.058370] [<c07f65d0>] (dw_spi_mmio_driver_init) from [<c0009780>] (do_one_initcall+0x9c/0x1e4) [ 1.067210] [<c0009780>] (do_one_initcall) from [<c07caea0>] (kernel_init_freeable+0x1cc/0x25c) [ 1.075876] [<c07caea0>] (kernel_init_freeable) from [<c05a5690>] (kernel_init+0x1c/0xf8) [ 1.084022] [<c05a5690>] (kernel_init) from [<c000fae8>] (ret_from_fork+0x14/0x2c) [ 1.091599] ---[ end trace 842a6beb01bbf130 ]--- [ 1.097284] CAN device driver interface [ 1.101668] stmmaceth ff702000.ethernet: snps,phy-addr property is deprecated [ 1.108798] stmmaceth ff702000.ethernet: Could not get reset control! [ 1.115238] stmmaceth ff702000.ethernet: No sysmgr-syscon node found [ 1.121576] stmmaceth ff702000.ethernet: Unable to parse OF data [ 1.127892] ffb40000.usb supply vusb_d not found, using dummy regulator [ 1.134535] ffb40000.usb supply vusb_a not found, using dummy regulator [ 1.180950] dwc2 ffb40000.usb: EPs: 16, dedicated fifos, 8064 entries in SPRAM [ 2.040944] dwc2 ffb40000.usb: DWC OTG Controller [ 2.045654] dwc2 ffb40000.usb: new USB bus registered, assigned bus number 1 [ 2.052720] dwc2 ffb40000.usb: irq 36, io mem 0x00000000 [ 2.058165] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 2.064943] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 2.072145] usb usb1: Product: DWC OTG Controller [ 2.076830] usb usb1: Manufacturer: Linux 4.1.33-ltsi-altera dwc2_hsotg [ 2.083425] usb usb1: SerialNumber: ffb40000.usb [ 2.088574] hub 1-0:1.0: USB hub found [ 2.092491] hub 1-0:1.0: 1 port detected [ 2.096909] usbcore: registered new interface driver usb-storage [ 2.103451] mousedev: PS/2 mouse device common for all mice [ 2.109424] i2c /dev entries driver [ 2.113782] watchdog: Invalid min and max timeout values, resetting to 0! [ 2.121321] Synopsys Designware Multimedia Card Interface Driver [ 2.127493] dw_mmc ff704000.flash: IDMAC supports 32-bit address mode. [ 2.134323] dw_mmc ff704000.flash: Using internal DMA controller. [ 2.140399] dw_mmc ff704000.flash: Version ID is 240a [ 2.145493] dw_mmc ff704000.flash: DW MMC controller at irq 35, 32 bit host data width, 1024 deep fifo [ 2.154799] dw_mmc ff704000.flash: No vmmc regulator found [ 2.160261] dw_mmc ff704000.flash: No vqmmc regulator found [ 2.200893] dw_mmc ff704000.flash: 1 slots initialized

After that, the system just hangs there. Can anyone point my in the right direction? Is this related to the device tree and sopc2dts tool & kernel compatibilities? What are the usual ways in order to debug the linux consule?

 

 

Tags (2)
0 Kudos
0 Replies