How to building the Linux Kernel image and the Devicetree for Arria10+ADRV9009 from source code?

Hello, Do we have the guide for How to building the Linux Kernel image and the Devicetree for Arria10+ADRV9009 from source code? Thanks.

Parents Reply Children
  • Attach the startup print.

    20190213_adrv9009_nok.txt
    U-Boot 2014.10 (Dec 03 2018 - 15:17:02), Build: jenkins-2018_r2-hdl-projects-adrv9009,a10soc-2
    
    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_arria10_socdk.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:  0 
    FPGA must be in Early Release mode to program core.
    fpga - loadable FPGA image support
    
    ** Unable to read file u-boot.scr **
    4523704 bytes read in 263 ms (16.4 MiB/s)
    48895 bytes read in 12 ms (3.9 MiB/s)
    FPGA BRIDGES: enable
    Kernel image @ 0x010000 [ 0x000000 - 0x4506b8 ]
    ## Flattened Device Tree blob at 00000100
       Booting using the fdt blob at 0x000100
       Loading Device Tree to 01ff1000, end 01fffefe ... OK
    
    Starting kernel ...
    
    [    0.000000] Booting Linux on physical CPU 0x0
    [    0.000000] Linux version 4.14.0-g9775cb505906 (root@ubuntu) (gcc version 4.8.5 (Linaro GCC 4.8-2015.06)) #2 SMP Tue Feb 12 19:26:36 PST 2019
    [    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] Ignoring RAM at 0x30000000-0x40000000
    [    0.000000] Consider using a HIGHMEM enabled kernel.
    [    0.000000] percpu: Embedded 16 pages/cpu @ef9c0000 s35968 r8192 d21376 u65536
    [    0.000000] Built 1 zonelists, mobility grouping on.  Total pages: 195072
    [    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: 767240K/786432K available (7168K kernel code, 523K rwdata, 1524K rodata, 1024K init, 131K bss, 19192K reserved, 0K cma-reserved)
    [    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]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc0800000   (8160 kB)
    [    0.000000]       .init : 0xc0b00000 - 0xc0c00000   (1024 kB)
    [    0.000000]       .data : 0xc0c00000 - 0xc0c82e50   ( 524 kB)
    [    0.000000]        .bss : 0xc0c8909c - 0xc0ca9d0c   ( 132 kB)
    [    0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1
    [    0.000000] ftrace: allocating 24189 entries in 71 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 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] GIC: PPI13 is secure or misconfigured
    [    0.000000] GIC: PPI13 is secure or misconfigured
    [    0.000000] clocksource: timer1: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604467 ns
    [    0.000004] sched_clock: 32 bits at 100MHz, resolution 10ns, wraps every 21474836475ns
    [    0.000013] Switching to timer-based delay loop, resolution 10ns
    [    0.000210] Console: colour dummy device 80x30
    [    0.000231] Calibrating delay loop (skipped), value calculated using timer frequency.. 200.00 BogoMIPS (lpj=1000000)
    [    0.000242] pid_max: default: 32768 minimum: 301
    [    0.000327] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000337] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000773] CPU: Testing write buffer coherency: ok
    [    0.000952] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000
    [    0.001271] Setting up static identity map for 0x100000 - 0x100060
    [    0.001370] Hierarchical SRCU implementation.
    [    0.001719] smp: Bringing up secondary CPUs ...
    [    0.002316] GIC: PPI13 is secure or misconfigured
    [    0.002326] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001
    [    0.002413] smp: Brought up 1 node, 2 CPUs
    [    0.002426] SMP: Total of 2 processors activated (400.00 BogoMIPS).
    [    0.002432] CPU: All CPU(s) started in SVC mode.
    [    0.003146] devtmpfs: initialized
    [    0.008297] random: get_random_u32 called from bucket_table_alloc+0xfc/0x260 with crng_init=0
    [    0.008519] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4
    [    0.008694] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
    [    0.008709] futex hash table entries: 512 (order: 3, 32768 bytes)
    [    0.009431] NET: Registered protocol family 16
    [    0.010123] DMA: preallocated 256 KiB pool for atomic coherent allocations
    [    0.010943] random: fast init done
    [    0.011180] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers.
    [    0.011189] hw-breakpoint: maximum watchpoint size is 4 bytes.
    [    0.025650] SCSI subsystem initialized
    [    0.025849] usbcore: registered new interface driver usbfs
    [    0.025892] usbcore: registered new interface driver hub
    [    0.025956] usbcore: registered new device driver usb
    [    0.026072] usb_phy_generic soc:usbphy@0: soc:usbphy@0 supply vcc not found, using dummy regulator
    [    0.027021] pps_core: LinuxPPS API ver. 1 registered
    [    0.027032] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
    [    0.027052] PTP clock support registered
    [    0.027215] FPGA manager framework
    [    0.028156] clocksource: Switched to clocksource timer1
    [    0.062108] NET: Registered protocol family 2
    [    0.062538] TCP established hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.062609] TCP bind hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.062706] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.062807] UDP hash table entries: 512 (order: 2, 16384 bytes)
    [    0.062850] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes)
    [    0.063001] NET: Registered protocol family 1
    [    0.063293] RPC: Registered named UNIX socket transport module.
    [    0.063302] RPC: Registered udp transport module.
    [    0.063307] RPC: Registered tcp transport module.
    [    0.063311] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.064651] workingset: timestamp_bits=30 max_order=18 bucket_order=0
    [    0.069437] NFS: Registering the id_resolver key type
    [    0.069470] Key type id_resolver registered
    [    0.069476] Key type id_legacy registered
    [    0.069513] ntfs: driver 2.1.32 [Flags: R/W].
    [    0.069705] jffs2: version 2.2. (NAND) ? 2001-2006 Red Hat, Inc.
    [    0.070539] io scheduler noop registered (default)
    [    0.070550] io scheduler mq-deadline registered
    [    0.070556] io scheduler kyber registered
    [    0.076028] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
    [    0.076898] console [ttyS0] disabled
    [    0.076936] ffc02100.serial1: ttyS0 at MMIO 0xffc02100 (irq = 37, base_baud = 6250000) is a 16550A
    [    0.660156] console [ttyS0] enabled
    [    0.664909] brd: module loaded
    [    0.669154] at24 0-0051: 4096 byte 24c32 EEPROM, writable, 32 bytes/write
    [    0.677137] spi_altera ff200040.spi: base f0909040, irq 40
    [    0.683495] libphy: Fixed MDIO Bus: probed
    [    0.688112] CAN device driver interface
    [    0.692387] socfpga-dwmac ff800000.ethernet: PTP uses main clock
    [    0.698464] stmmac - user ID: 0x10, Synopsys ID: 0x37
    [    0.703497] socfpga-dwmac ff800000.ethernet: Ring mode enabled
    [    0.709317] socfpga-dwmac ff800000.ethernet: DMA HW capability register supported
    [    0.716764] socfpga-dwmac ff800000.ethernet: Enhanced/Alternate descriptors
    [    0.723702] socfpga-dwmac ff800000.ethernet: Enabled extended descriptors
    [    0.730465] socfpga-dwmac ff800000.ethernet: RX Checksum Offload Engine supported
    [    0.737911] socfpga-dwmac ff800000.ethernet: COE Type 2
    [    0.743119] socfpga-dwmac ff800000.ethernet: TX Checksum insertion supported
    [    0.750142] socfpga-dwmac ff800000.ethernet: Enable RX Mitigation via HW Watchdog Timer
    [    0.765247] libphy: stmmac: probed
    [    0.768669] Micrel KSZ9031 Gigabit PHY stmmac-0:07: attached PHY driver [Micrel KSZ9031 Gigabit PHY] (mii_bus:phy_addr=stmmac-0:07, irq=POLL)
    [    0.782244] dwc2 ffb00000.usb: ffb00000.usb supply vusb_d not found, using dummy regulator
    [    0.790546] dwc2 ffb00000.usb: ffb00000.usb supply vusb_a not found, using dummy regulator
    [    0.798927] dwc2 ffb00000.usb: EPs: 16, dedicated fifos, 8064 entries in SPRAM
    [    0.806412] dwc2 ffb00000.usb: DWC OTG Controller
    [    0.811135] dwc2 ffb00000.usb: new USB bus registered, assigned bus number 1
    [    0.818185] dwc2 ffb00000.usb: irq 38, io mem 0xffb00000
    [    0.823617] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    0.830398] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.837586] usb usb1: Product: DWC OTG Controller
    [    0.842294] usb usb1: Manufacturer: Linux 4.14.0-g9775cb505906 dwc2_hsotg
    [    0.849060] usb usb1: SerialNumber: ffb00000.usb
    [    0.854083] hub 1-0:1.0: USB hub found
    [    0.857851] hub 1-0:1.0: 1 port detected
    [    0.862442] usbcore: registered new interface driver usb-storage
    [    0.870996] rtc-ds1307 0-0068: SET TIME!
    [    0.882590] rtc-ds1307 0-0068: registered as rtc0
    [    0.887356] i2c /dev entries driver
    [    0.891045] IR NEC protocol handler initialized
    [    0.895558] IR RC5(x/sz) protocol handler initialized
    [    0.900605] IR RC6 protocol handler initialized
    [    0.905113] IR JVC protocol handler initialized
    [    0.909631] IR Sony protocol handler initialized
    [    0.914225] IR SANYO protocol handler initialized
    [    0.918913] IR Sharp protocol handler initialized
    [    0.923593] IR MCE Keyboard/mouse protocol handler initialized
    [    0.929403] IR XMP protocol handler initialized
    [    0.937250] ltc2978: probe of 0-005c failed with error -121
    [    0.943501] Synopsys Designware Multimedia Card Interface Driver
    [    0.949619] dw_mmc ff808000.dwmmc0: 'num-slots' was deprecated.
    [    0.955625] dw_mmc ff808000.dwmmc0: IDMAC supports 32-bit address mode.
    [    0.962270] dw_mmc ff808000.dwmmc0: Using internal DMA controller.
    [    0.968459] dw_mmc ff808000.dwmmc0: Version ID is 270a
    [    0.973611] dw_mmc ff808000.dwmmc0: DW MMC controller at irq 31,32 bit host data width,1024 deep fifo
    [    0.982857] mmc_host mmc0: card is polling.
    [    1.008163] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 400000Hz, actual 396825HZ div = 63)
    [    1.038565] ledtrig-cpu: registered to indicate activity on CPUs
    [    1.044716] usbcore: registered new interface driver usbhid
    [    1.050289] usbhid: USB HID core driver
    [    1.054608] adrv9009 spi0.1: adrv9009_probe : enter
    [    1.059669] ad9528 spi0.0: spi0.0 supply vcc not found, using dummy regulator
    [    1.100733] oprofile: no performance counters
    [    1.105176] oprofile: using timer interrupt.
    [    1.110072] NET: Registered protocol family 10
    [    1.115225] Segment Routing with IPv6
    [    1.118965] sit: IPv6, IPv4 and MPLS over IPv4 tunneling driver
    [    1.125316] NET: Registered protocol family 17
    [    1.129783] NET: Registered protocol family 15
    [    1.134207] can: controller area network core (rev 20170425 abi 9)
    [    1.140416] NET: Registered protocol family 29
    [    1.144842] can: raw protocol (rev 20170425)
    [    1.149103] can: broadcast manager protocol (rev 20170425 t)
    [    1.154739] can: netlink gateway (rev 20170425) max_hops=1
    [    1.160357] 8021q: 802.1Q VLAN Support v1.8
    [    1.164553] Key type dns_resolver registered
    [    1.168878] ThumbEE CPU extension supported.
    [    1.173133] Registering SWP/SWPB emulation handler
    [    1.180386] adrv9009 spi0.1: adrv9009_probe : enter
    [    1.187177] ttyS0 - failed to request DMA
    [    1.187412] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0)
    [    1.187471] mmc0: new high speed SDHC card at address 59b4
    [    1.187755] mmcblk0: mmc0:59b4 SMI   7.50 GiB 
    [    1.199013]  mmcblk0: p1 p2 p3
    [    1.199935] adrv9009 spi0.1: adrv9009_probe : enter
    [    1.220064] EXT4-fs (mmcblk0p2): couldn't mount as ext3 due to feature incompatibilities
    [    1.832908] random: crng init done
    [    3.535886] EXT4-fs (mmcblk0p2): recovery complete
    [    3.546388] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null)
    [    3.554493] VFS: Mounted root (ext4 filesystem) on device 179:2.
    [    3.572832] devtmpfs: mounted
    [    3.577190] Freeing unused kernel memory: 1024K
    Mount failed for selinuxfs on /sys/fs/selinux:  No such file or directory
    [    3.989348] init: hwclock main process (692) terminated with status 1
     * Setting up X socket directories...                                    [ OK ] 
     * STARTDISTCC is set to false in /etc/default/distcc
     * /usr/bin/distccd not starting
    
    Last login: Thu Jan  1 00:00:08 UTC 1970 on tty1
    Welcome to Linaro 14.04 (GNU/Linux 4.14.0-g9775cb505906 armv7l)
    
     * Documentation:  https://wiki.analog.com/ https://ez.analog.com/
    
    0 packages can be updated.
    0 updates are security updates.
    
    New release '16.04.5 LTS' available.
    Run 'do-release-upgrade' to upgrade to it.
    
    root@analog:~# iio_info
    Library version: 0.15 (git tag: 6ecff5d)
    Compiled with backends: local xml ip
    IIO context created with local backend.
    Backend version: 0.15 (git tag: 6ecff5d)
    Backend description string: Linux analog 4.14.0-g9775cb505906 #2 SMP Tue Feb 12 19:26:36 PST 2019 armv7l
    IIO context has 1 attributes:
    	local,kernel: 4.14.0-g9775cb505906
    IIO context has 1 devices:
    	iio:device0: ad9528-1
    		4 channels found:
    			altvoltage12: DEV_SYSREF (output)
    			3 channel-specific attributes found:
    				attr  0: phase value: 0.000000
    				attr  1: frequency value: 120000
    				attr  2: raw value: 1
    			altvoltage1: FMC_CLK (output)
    			3 channel-specific attributes found:
    				attr  0: phase value: 0.000000
    				attr  1: frequency value: 245760000
    				attr  2: raw value: 1
    			altvoltage13: DEV_CLK (output)
    			3 channel-specific attributes found:
    				attr  0: raw value: 1
    				attr  1: frequency value: 245760000
    				attr  2: phase value: 0.000000
    			altvoltage3: FMC_SYSREF (output)
    			3 channel-specific attributes found:
    				attr  0: raw value: 1
    				attr  1: frequency value: 120000
    				attr  2: phase value: 0.000000
    		9 device-specific attributes found:
    				attr  0: sync_dividers ERROR: Input/output error (-5)
    				attr  1: pll2_locked value: 1
    				attr  2: pll2_feedback_clk_present value: 1
    				attr  3: pll1_locked value: 0
    				attr  4: pll1_reference_clk_ab_missing value: 1
    				attr  5: pll1_reference_clk_a_present value: 0
    				attr  6: vcxo_clk_present value: 1
    				attr  7: pll1_feedback_clk_present value: 1
    				attr  8: pll1_reference_clk_b_present value: 0
    		1 debug attributes found:
    				debug attr  0: direct_reg_access value: 0x18
    root@analog:~#