FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
4953 Discussions

HAN Pilot Platform, filesystem not load

alex2222222222222
134 Views

Hello!

I have a HAN Pilot Platform - https://www.terasic.com.tw/cgi-bin/page/archive.pl?Language=English&CategoryNo=216&No=1133,
toolchain gcc version 6.5.0 (Linaro GCC 6.5-2018.12) x86_64, based on the link - https://bitlog.it/20170820_building_embedded_linux_for_the_terasic_de10-nano.html

 

I build u-boot:
checkout to ACDS19.3_REL_GSRD_PR
make mrproper
make socfpga_arria10_defconfig
make -j4

I build kernel:
checkout to ACDS19.3_REL_GSRD_PR
make distclean
make menuconfig
/*
First go to General setup and uncheck Automatically append versioninformation to the version string option.The second change we will make can be found in Enable the block layer and is called Support for large (2TB+) block devices and files. This option should be turned on, and is needed if we want to use ext4 file systems with full read/write support. If this option is disabled, then we can only mount ext4 file systems in read­only mode. Press ESC until you are back on the main page, andpress the right arrow key until you have selected Save, and then press Enter to save these settings. The default filename “.config”is fine, so select Ok to save our settings. We are done, so selectExit.
*/

make -j4 zImage modules
make socfpga_arria10_socdk_sdmmc.dtb

Quartus Standard Version 18.1

Example from terasic site - a10s_ghrd

quartus_cpf -c -o bitstream_compression=on a10s.sof socfpga.rbf

And build filesystem with buildroot.

After I get data and write to image:
loop01 - u-boot.img, socfpga.rbf, zImage, socfpga_arria10_socdk_sdmmc.dtb
loop02 - filesystem buildroot
loop03 - uboot_w_dtb-mkpimage.bin

Image written to mSD card and set to the slot. After powered I get:


U-Boot 2014.10 (Jul 14 2021 - 12:50:37)

CPU : Altera SOCFPGA Arria 10 Platform
BOARD : Altera SOCFPGA Arria 10 Dev Kit
I2C: ready
DRAM: WARNING: Caches not enabled
SOCFPGA DWMMC: 0
FPGA: writing socfpga.rbf ...
Full Configuration Succeeded.
DDRCAL: Success
INFO : Skip relocation as SDRAM is non secure memory
Reserving 2048 Bytes for IRQ stack at: ffe386e8
DRAM : 1 GiB
WARNING: Caches not enabled
MMC: *** Warning - bad CRC, using default environment

In: serial
Out: serial
Err: serial
Model: SOCFPGA Arria10 Dev Kit
Net: dwmac.ff800000
Hit any key to stop autoboot: 5  4  3  2  1  0
FPGA must be in Early Release mode to program core.
fpga - loadable FPGA image support

4718888 bytes read in 226 ms (19.9 MiB/s)
25634 bytes read in 5 ms (4.9 MiB/s)
Kernel image @ 0x008000 [ 0x000000 - 0x480128 ]
## Flattened Device Tree blob at 00000100
Booting using the fdt blob at 0x000100
Loading Device Tree to 01ff6000, end 01fff421 ... OK

Starting kernel ...

[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.14.130-ltsi+ (Laptop) (gcc version 6.5.0 (Linaro GCC 6.5-2018.12)) #1 SMP Wed Jul 14 10:22:33 EEST 2021
[ 0.000000] CPU: ARMv7 Processor [414fc091] revision 1 (ARMv7), cr=10c5387d
[ 0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
[ 0.000000] OF: fdt: Machine model: Altera SOCFPGA Arria 10
[ 0.000000] Memory policy: Data cache writealloc
[ 0.000000] percpu: Embedded 16 pages/cpu s35980 r8192 d21364 u65536
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 260608
[ 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: 1027372K/1048576K available (7168K kernel code, 523K rwdata, 1556K rodata, 1024K init, 145K bss, 21204K reserved, 0K cma-reserved, 262144K highmem)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xf0800000 - 0xff800000 ( 240 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xf0000000 ( 768 MB)
[ 0.000000] pkmap : 0xbfe00000 - 0xc0000000 ( 2 MB)
[ 0.000000] modules : 0xbf000000 - 0xbfe00000 ( 14 MB)
[ 0.000000] .text : 0xc0008000 - 0xc0800000 (8160 kB)
[ 0.000000] .init : 0xc0b00000 - 0xc0c00000 (1024 kB)
[ 0.000000] .data : 0xc0c00000 - 0xc0c82ec8 ( 524 kB)
[ 0.000000] .bss : 0xc0c895b8 - 0xc0cada58 ( 146 kB)
[ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
[ 0.000000] ftrace: allocating 25838 entries in 76 pages
[ 0.000000] Hierarchical RCU implementation.
[ 0.000000] RCU event tracing is enabled.
[ 0.000000] NR_IRQS: 16, nr_irqs: 16, preallocated irqs: 16
[ 0.000000] L2C-310 erratum 769419 enabled
[ 0.000000] L2C-310 enabling early BRESP for Cortex-A9
[ 0.000000] L2C-310: enabling full line of zeros but not enabled in 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: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 38225208935 ns
[ 0.000005] sched_clock: 32 bits at 50MHz, resolution 20ns, wraps every 42949672950ns
[ 0.000014] Switching to timer-based delay loop, resolution 20ns
[ 0.000149] Console: colour dummy device 80x30
[ 0.000174] Calibrating delay loop (skipped), value calculated using timer frequency.. 100.00 BogoMIPS (lpj=500000)
[ 0.000185] pid_max: default: 32768 minimum: 301
[ 0.000269] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000279] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
[ 0.000702] CPU: Testing write buffer coherency: ok
[ 0.000728] CPU0: Spectre v2: using BPIALL workaround
[ 0.000903] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
[ 0.001240] Setting up static identity map for 0x100000 - 0x100060
[ 0.001343] Hierarchical SRCU implementation.
[ 0.001743] smp: Bringing up secondary CPUs ...
[ 0.002318] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
[ 0.002323] CPU1: Spectre v2: using BPIALL workaround
[ 0.002430] smp: Brought up 1 node, 2 CPUs
[ 0.002440] SMP: Total of 2 processors activated (200.00 BogoMIPS).
[ 0.002446] CPU: All CPU(s) started in SVC mode.
[ 0.003278] devtmpfs: initialized
[ 0.006523] random: get_random_u32 called from bucket_table_alloc+0x100/0x254 with crng_init=0
[ 0.006752] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
[ 0.006909] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.006925] futex hash table entries: 512 (order: 3, 32768 bytes)
[ 0.007670] NET: Registered protocol family 16
[ 0.008429] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.009740] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
[ 0.009752] hw-breakpoint: maximum watchpoint size is 4 bytes.
[ 0.023679] vgaarb: loaded
[ 0.023944] SCSI subsystem initialized
[ 0.024157] usbcore: registered new interface driver usbfs
[ 0.024204] usbcore: registered new interface driver hub
[ 0.024265] usbcore: registered new device driver usb
[ 0.024414] usb_phy_generic soc:usbphy: soc:usbphy supply vcc not found, using dummy regulator
[ 1.039863] i2c_designware ffc02300.i2c: controller timed out
[ 1.039886] lcd_load_custom_fonts: i2c_master_send returns -110
[ 2.079869] i2c_designware ffc02300.i2c: controller timed out
[ 2.079882] lcd_cmd_no_params: i2c_master_send returns -110
[ 3.119864] i2c_designware ffc02300.i2c: controller timed out
[ 3.119874] lcd_cmd_one_param: i2c_master_send returns -110
[ 4.159851] i2c_designware ffc02300.i2c: controller timed out
[ 4.159860] lcd_cmd_no_params: i2c_master_send returns -110
[ 4.159882] lcd-comm 0-0028: LCD driver initialized
[ 4.160394] pps_core: LinuxPPS API ver. 1 registered
[ 4.160404] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 4.160426] PTP clock support registered
[ 4.160611] FPGA manager framework
[ 4.161683] clocksource: Switched to clocksource timer1
[ 4.199011] NET: Registered protocol family 2
[ 4.199449] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
[ 4.199513] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
[ 4.199611] TCP: Hash tables configured (established 8192 bind 8192)
[ 4.199708] UDP hash table entries: 512 (order: 2, 16384 bytes)
[ 4.199752] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
[ 4.199899] NET: Registered protocol family 1
[ 4.200288] RPC: Registered named UNIX socket transport module.
[ 4.200297] RPC: Registered udp transport module.
[ 4.200302] RPC: Registered tcp transport module.
[ 4.200307] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 4.201711] workingset: timestamp_bits=30 max_order=18 bucket_order=0
[ 4.206680] NFS: Registering the id_resolver key type
[ 4.206712] Key type id_resolver registered
[ 4.206718] Key type id_legacy registered
[ 4.206730] Installing knfsd (copyright (C) 1996 okir@monad.swb.de).
[ 4.207249] ntfs: driver 2.1.32 [Flags: R/W].
[ 4.207420] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 4.208613] bounce: pool size: 64 pages
[ 4.208632] io scheduler noop registered (default)
[ 4.208639] io scheduler mq-deadline registered
[ 4.208644] io scheduler kyber registered
[ 4.212173] dma-pl330 ffda1000.pdma: Loaded driver for PL330 DMAC-341330
[ 4.212191] dma-pl330 ffda1000.pdma: DBUFF-512x8bytes Num_Chans-8 Num_Peri-32 Num_Events-8
[ 4.216115] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 4.217169] console [ttyS0] disabled
[ 4.217212] ffc02100.serial1: ttyS0 at MMIO 0xffc02100 (irq = 37, base_baud = 3125000) is a 16550A
[ 4.872615] console [ttyS0] enabled
[ 4.877379] brd: module loaded
[ 4.886141] loop: module loaded
[ 5.911670] i2c_designware ffc02300.i2c: controller timed out
[ 5.921072] libphy: Fixed MDIO Bus: probed
[ 5.925773] CAN device driver interface
[ 5.930016] socfpga-dwmac ff800000.ethernet: PTP uses main clock
[ 5.936196] stmmac - user ID: 0x10, Synopsys ID: 0x37
[ 5.941229] socfpga-dwmac ff800000.ethernet: Ring mode enabled
[ 5.947061] socfpga-dwmac ff800000.ethernet: DMA HW capability register supported
[ 5.954526] socfpga-dwmac ff800000.ethernet: Enhanced/Alternate descriptors
[ 5.961454] socfpga-dwmac ff800000.ethernet: Enabled extended descriptors
[ 5.968220] socfpga-dwmac ff800000.ethernet: RX Checksum Offload Engine supported
[ 5.975675] socfpga-dwmac ff800000.ethernet: COE Type 2
[ 5.980876] socfpga-dwmac ff800000.ethernet: TX Checksum insertion supported
[ 5.987901] socfpga-dwmac ff800000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 6.003070] libphy: stmmac: probed
[ 6.006467] Micrel KSZ9031 Gigabit PHY stmmac-0:03: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=stmmac-0:03, irq=POLL)
[ 6.020021] dwc2 ffb00000.usb: ffb00000.usb supply vusb_d not found, using dummy regulator
[ 6.028318] dwc2 ffb00000.usb: ffb00000.usb supply vusb_a not found, using dummy regulator
[ 6.036696] dwc2 ffb00000.usb: EPs: 16, dedicated fifos, 8064 entries in SPRAM
[ 6.044331] dwc2 ffb00000.usb: DWC OTG Controller
[ 6.049034] dwc2 ffb00000.usb: new USB bus registered, assigned bus number 1
[ 6.056094] dwc2 ffb00000.usb: irq 38, io mem 0xffb00000
[ 6.061955] hub 1-0:1.0: USB hub found
[ 6.065720] hub 1-0:1.0: 1 port detected
[ 6.070222] usbcore: registered new interface driver usb-storage
[ 7.111682] i2c_designware ffc02300.i2c: controller timed out
[ 7.117508] rtc-ds1307: probe of 0-0068 failed with error -110
[ 7.123405] i2c /dev entries driver
[ 7.127087] IR NEC protocol handler initialized
[ 7.131599] IR RC5(x/sz) protocol handler initialized
[ 7.136645] IR RC6 protocol handler initialized
[ 7.141153] IR JVC protocol handler initialized
[ 7.145671] IR Sony protocol handler initialized
[ 7.150265] IR SANYO protocol handler initialized
[ 7.154955] IR Sharp protocol handler initialized
[ 7.159636] IR MCE Keyboard/mouse protocol handler initialized
[ 7.165447] IR XMP protocol handler initialized
[ 8.231666] i2c_designware ffc02300.i2c: controller timed out
[ 9.271661] i2c_designware ffc02300.i2c: controller timed out
[ 10.311665] i2c_designware ffc02300.i2c: controller timed out
[ 10.317913] random: fast init done
[ 10.349670] random: crng init done
[ 326.131648] INFO: rcu_sched self-detected stall on CPU
[ 326.136772] 0-...: (1 GPs behind) idle=1a2/140000000000002/0 softirq=217/219 fqs=917
[ 326.144649] (t=2100 jiffies g=-263 c=-264 q=2)
[ 326.149249] NMI backtrace for cpu 0
[ 326.152725] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 4.14.130-ltsi+ #1
[ 326.159307] Hardware name: Altera SOCFPGA Arria10
[ 326.164013] [<c0111ca8>] (unwind_backtrace) from [<c010c504>] (show_stack+0x20/0x24)
[ 326.171731] [<c010c504>] (show_stack) from [<c0799ad8>] (dump_stack+0x8c/0xa0)
[ 326.178928] [<c0799ad8>] (dump_stack) from [<c079f91c>] (nmi_cpu_backtrace+0xc0/0xc4)
[ 326.186726] [<c079f91c>] (nmi_cpu_backtrace) from [<c079fa08>] (nmi_trigger_cpumask_backtrace+0xe8/0x130)
[ 326.196250] [<c079fa08>] (nmi_trigger_cpumask_backtrace) from [<c0110228>] (arch_trigger_cpumask_backtrace+0x20/0x24)
[ 326.206817] [<c0110228>] (arch_trigger_cpumask_backtrace) from [<c0184750>] (rcu_dump_cpu_stacks+0xb0/0xdc)
[ 326.216516] [<c0184750>] (rcu_dump_cpu_stacks) from [<c0183da8>] (rcu_check_callbacks+0x870/0x9e8)
[ 326.225437] [<c0183da8>] (rcu_check_callbacks) from [<c0189814>] (update_process_times+0x44/0x6c)
[ 326.234274] [<c0189814>] (update_process_times) from [<c019b988>] (tick_sched_timer+0x78/0x294)
[ 326.242935] [<c019b988>] (tick_sched_timer) from [<c018a944>] (__hrtimer_run_queues+0x188/0x320)
[ 326.251682] [<c018a944>] (__hrtimer_run_queues) from [<c018ad18>] (hrtimer_interrupt+0xc0/0x210)
[ 326.260429] [<c018ad18>] (hrtimer_interrupt) from [<c0110db4>] (twd_handler+0x40/0x50)
[ 326.268313] [<c0110db4>] (twd_handler) from [<c0171dd0>] (handle_percpu_devid_irq+0x98/0x24c)
[ 326.276803] [<c0171dd0>] (handle_percpu_devid_irq) from [<c016c3e4>] (generic_handle_irq+0x34/0x44)
[ 326.285810] [<c016c3e4>] (generic_handle_irq) from [<c016c9f4>] (__handle_domain_irq+0x6c/0xc4)
[ 326.294471] [<c016c9f4>] (__handle_domain_irq) from [<c0101518>] (gic_handle_irq+0x5c/0xa0)
[ 326.302785] [<c0101518>] (gic_handle_irq) from [<c010d28c>] (__irq_svc+0x6c/0x90)
[ 326.310232] Exception stack(0xef0f1a38 to 0xef0f1a80)
[ 326.315259] 1a20: 00002080 c0c89e80
[ 326.323400] 1a40: 00000000 00000000 c0b88ec4 00000010 00000000 00000000 ef02c000 f0803100
[ 326.331541] 1a60: 00000082 ef0f1ae4 c0c89e80 ef0f1a88 c0128458 c0101618 60000113 ffffffff
[ 326.339683] [<c010d28c>] (__irq_svc) from [<c0101618>] (__do_softirq+0xb8/0x360)
[ 326.347046] [<c0101618>] (__do_softirq) from [<c0128458>] (irq_exit+0xc0/0xf4)
[ 326.354239] [<c0128458>] (irq_exit) from [<c016c9f8>] (__handle_domain_irq+0x70/0xc4)
[ 326.362033] [<c016c9f8>] (__handle_domain_irq) from [<c0101518>] (gic_handle_irq+0x5c/0xa0)
[ 326.370347] [<c0101518>] (gic_handle_irq) from [<c010d28c>] (__irq_svc+0x6c/0x90)
[ 326.377792] Exception stack(0xef0f1b48 to 0xef0f1b90)
[ 326.382821] 1b40: 00000001 ef1a1850 ef1a1850 00000013 ef1a1848 ef0f0000
[ 326.390961] 1b60: ef1a184c 00000002 00000000 00000064 00000001 ef0f1bd4 ef0f1b98 ef0f1b98
[ 326.399100] 1b80: c07b0624 c07b06a0 60000013 ffffffff
[ 326.404132] [<c010d28c>] (__irq_svc) from [<c07b06a0>] (wait_for_common+0xac/0x17c)
[ 326.411757] [<c07b06a0>] (wait_for_common) from [<c07b07b0>] (wait_for_completion_timeout+0x1c/0x20)
[ 326.420850] [<c07b07b0>] (wait_for_completion_timeout) from [<c05eced8>] (i2c_dw_xfer+0x154/0x204)
[ 326.429776] [<c05eced8>] (i2c_dw_xfer) from [<c05e7688>] (__i2c_transfer+0x15c/0x5ac)
[ 326.437573] [<c05e7688>] (__i2c_transfer) from [<c05e7b58>] (i2c_transfer+0x80/0xc4)
[ 326.445283] [<c05e7b58>] (i2c_transfer) from [<c05e9d34>] (i2c_smbus_xfer+0x4d0/0xa28)
[ 326.453164] [<c05e9d34>] (i2c_smbus_xfer) from [<c05ea4bc>] (i2c_smbus_read_block_data+0x48/0x70)
[ 326.461998] [<c05ea4bc>] (i2c_smbus_read_block_data) from [<c05fb1c4>] (ltc2978_probe+0x440/0x504)
[ 326.470919] [<c05fb1c4>] (ltc2978_probe) from [<c05e655c>] (i2c_device_probe+0x1f4/0x274)
[ 326.479065] [<c05e655c>] (i2c_device_probe) from [<c050969c>] (driver_probe_device+0x210/0x33c)
[ 326.487727] [<c050969c>] (driver_probe_device) from [<c0509890>] (__driver_attach+0xc8/0xcc)
[ 326.496126] [<c0509890>] (__driver_attach) from [<c0507844>] (bus_for_each_dev+0x78/0xac)
[ 326.504267] [<c0507844>] (bus_for_each_dev) from [<c0508fe4>] (driver_attach+0x2c/0x30)
[ 326.512234] [<c0508fe4>] (driver_attach) from [<c0508a20>] (bus_add_driver+0x114/0x220)
[ 326.520202] [<c0508a20>] (bus_add_driver) from [<c050a524>] (driver_register+0x88/0x104)
[ 326.528258] [<c050a524>] (driver_register) from [<c05e6f6c>] (i2c_register_driver+0x4c/0x8c)
[ 326.536661] [<c05e6f6c>] (i2c_register_driver) from [<c0b3a0e0>] (ltc2978_driver_init+0x24/0x28)
[ 326.545409] [<c0b3a0e0>] (ltc2978_driver_init) from [<c0101bd0>] (do_one_initcall+0x54/0x178)
[ 326.553899] [<c0101bd0>] (do_one_initcall) from [<c0b00fe0>] (kernel_init_freeable+0x1d8/0x268)
[ 326.562561] [<c0b00fe0>] (kernel_init_freeable) from [<c07ae9b8>] (kernel_init+0x18/0x120)
[ 326.570791] [<c07ae9b8>] (kernel_init) from [<c01080e8>] (ret_from_fork+0x14/0x2c)

and hanging...

What is wrong and how to fix?

Thanks!

0 Kudos
1 Reply
EBERLAZARE_I_Intel
109 Views

Hi,

 

Can you share you "uboot/configs/socfpga_arria10_defconfig" file?

Reply