U-Boot 2014.10 (Dec 19 2018 - 09:44:38) CPU : Altera SOCFPGA Arria 10 Platform BOARD : Terasic 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: 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 ** 5051328 bytes read in 238 ms (20.2 MiB/s) 27892 bytes read in 5 ms (5.3 MiB/s) FPGA BRIDGES: enable Kernel image @ 0x008000 [ 0x000000 - 0x4d13c0 ] ## Flattened Device Tree blob at 00000100 Booting using the fdt blob at 0x000100 Loading Device Tree to 01ff6000, end 01fffcf3 ... OK Starting kernel ... [ 0.000000] Booting Linux on physical CPU 0x0 [ 0.000000] Linux version 4.5.0-00205-g261670b (root@localhost.localdomain) (gcc version 4.8.3 20140401 (prerelease) (crosstool-NG linaro-1.13.1-4.8-2014.04 - Linaro GCC 4.8-2014.04) ) #2 SMP Wed Dec 19 11:50:42 CST 2018 [ 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] Machine model: Altera SOCFPGA Arria 10 [ 0.000000] Truncating RAM at 0x00000000-0x40000000 to -0x30000000 [ 0.000000] Consider using a HIGHMEM enabled kernel. [ 0.000000] cma: Reserved 512 MiB at 0x10000000 [ 0.000000] Memory policy: Data cache writealloc [ 0.000000] PERCPU: Embedded 13 pages/cpu @cf8c5000 s21824 r8192 d23232 u53248 [ 0.000000] Built 1 zonelists in Zone order, 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: 242932K/786432K available (7807K kernel code, 526K rwdata, 1928K rodata, 556K init, 163K bss, 19212K reserved, 524288K 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 - 0xc098a234 (9737 kB) [ 0.000000] .init : 0xc098b000 - 0xc0a16000 ( 556 kB) [ 0.000000] .data : 0xc0a16000 - 0xc0a9997c ( 527 kB) [ 0.000000] .bss : 0xc0a9997c - 0xc0ac28a0 ( 164 kB) [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, CPUs=2, Nodes=1 [ 0.000000] Hierarchical RCU implementation. [ 0.000000] Build-time adjustment of leaf fanout to 32. [ 0.000000] NR_IRQS:16 nr_irqs:16 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.000015] Switching to timer-based delay loop, resolution 20ns [ 0.000280] Console: colour dummy device 80x30 [ 0.000296] Calibrating delay loop (skipped), value calculated using timer frequency.. 100.00 BogoMIPS (lpj=500000) [ 0.000307] pid_max: default: 32768 minimum: 301 [ 0.000384] Mount-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000393] Mountpoint-cache hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000879] CPU: Testing write buffer coherency: ok [ 0.000906] ftrace: allocating 24661 entries in 73 pages [ 0.035176] CPU0: thread -1, cpu 0, socket 0, mpidr 80000000 [ 0.035368] Setting up static identity map for 0x8280 - 0x82d8 [ 0.036627] CPU1: thread -1, cpu 1, socket 0, mpidr 80000001 [ 0.036686] Brought up 2 CPUs [ 0.036698] SMP: Total of 2 processors activated (200.00 BogoMIPS). [ 0.036704] CPU: All CPU(s) started in SVC mode. [ 0.037338] devtmpfs: initialized [ 0.042273] VFP support v0.3: implementor 41 architecture 3 part 30 variant 9 rev 4 [ 0.042509] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.056937] NET: Registered protocol family 16 [ 0.058682] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 0.063646] hw-breakpoint: found 5 (+1 reserved) breakpoint and 1 watchpoint registers. [ 0.063659] hw-breakpoint: maximum watchpoint size is 4 bytes. [ 0.088457] SCSI subsystem initialized [ 0.088698] usbcore: registered new interface driver usbfs [ 0.088754] usbcore: registered new interface driver hub [ 0.088805] usbcore: registered new device driver usb [ 0.088933] soc:usbphy@0 supply vcc not found, using dummy regulator [ 0.089997] lcd_load_custom_fonts: i2c_master_send returns -121 [ 0.106641] lcd_cmd_no_params: i2c_master_send returns -121 [ 0.116747] lcd_cmd_one_param: i2c_master_send returns -121 [ 0.126628] lcd_cmd_no_params: i2c_master_send returns -121 [ 0.126653] lcd-comm 0-0028: LCD driver initialized [ 0.127121] Linux video capture interface: v2.00 [ 0.127171] pps_core: LinuxPPS API ver. 1 registered [ 0.127177] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti [ 0.127199] PTP clock support registered [ 0.127330] FPGA manager framework [ 0.127420] Advanced Linux Sound Architecture Driver Initialized. [ 0.128461] clocksource: Switched to clocksource timer1 [ 0.160877] NET: Registered protocol family 2 [ 0.161342] TCP established hash table entries: 8192 (order: 3, 32768 bytes) [ 0.161413] TCP bind hash table entries: 8192 (order: 4, 65536 bytes) [ 0.161510] TCP: Hash tables configured (established 8192 bind 8192) [ 0.161584] UDP hash table entries: 512 (order: 2, 16384 bytes) [ 0.161630] UDP-Lite hash table entries: 512 (order: 2, 16384 bytes) [ 0.161805] NET: Registered protocol family 1 [ 0.162160] RPC: Registered named UNIX socket transport module. [ 0.162169] RPC: Registered udp transport module. [ 0.162174] RPC: Registered tcp transport module. [ 0.162178] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.163208] futex hash table entries: 512 (order: 3, 32768 bytes) [ 0.171101] NFS: Registering the id_resolver key type [ 0.171139] Key type id_resolver registered [ 0.171145] Key type id_legacy registered [ 0.171197] ntfs: driver 2.1.32 [Flags: R/W]. [ 0.171468] jffs2: version 2.2. (NAND) c 2001-2006 Red Hat, Inc. [ 0.172127] JFS: nTxBlock = 5993, nTxLock = 47951 [ 0.180435] io scheduler noop registered (default) [ 0.184165] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 0.185101] console [ttyS0] disabled [ 0.185139] ffc02100.serial1: ttyS0 at MMIO 0xffc02100 (irq = 37, base_baud = 3125000) is a 16550A [ 0.772726] console [ttyS0] enabled [ 0.777744] brd: module loaded [ 0.780880] at24 0-0051: 4096 byte 24c32 EEPROM, writable, 32 bytes/write [ 0.790180] CAN device driver interface [ 0.794445] stmmac - user ID: 0x10, Synopsys ID: 0x37 [ 0.799505] Ring mode enabled [ 0.802547] DMA HW capability register supported [ 0.807054] Enhanced/Alternate descriptors [ 0.811409] Enabled extended descriptors [ 0.815400] RX Checksum Offload Engine supported (type 2) [ 0.820864] TX Checksum insertion supported [ 0.825112] Enable RX Mitigation via HW Watchdog Timer [ 0.830787] socfpga-dwmac ff800000.ethernet eth0: No MDIO subnode found [ 0.839844] libphy: stmmac: probed [ 0.843237] eth0: PHY ID 00221622 at 3 IRQ POLL (stmmac-0:03) active [ 0.849915] usbcore: registered new interface driver mt7601u [ 0.855730] ffb00000.usb supply vusb_d not found, using dummy regulator [ 0.862370] ffb00000.usb supply vusb_a not found, using dummy regulator [ 1.148486] dwc2 ffb00000.usb: EPs: 16, dedicated fifos, 8064 entries in SPRAM [ 1.248650] dwc2 ffb00000.usb: DWC OTG Controller [ 1.253361] dwc2 ffb00000.usb: new USB bus registered, assigned bus number 1 [ 1.260418] dwc2 ffb00000.usb: irq 38, io mem 0x00000000 [ 1.265846] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 1.272615] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 1.279810] usb usb1: Product: DWC OTG Controller [ 1.284492] usb usb1: Manufacturer: Linux 4.5.0-00205-g261670b dwc2_hsotg [ 1.291253] usb usb1: SerialNumber: ffb00000.usb [ 1.296312] hub 1-0:1.0: USB hub found [ 1.300089] hub 1-0:1.0: 1 port detected [ 1.304549] usbcore: registered new interface driver usb-storage [ 1.310867] mousedev: PS/2 mouse device common for all mice [ 1.318977] rtc-ds1307 0-0068: SET TIME! [ 1.327187] rtc-ds1307 0-0068: rtc core: registered ds1339 as rtc0 [ 1.333417] i2c /dev entries driver [ 1.337141] usbcore: registered new interface driver uvcvideo [ 1.342882] USB Video Class driver (1.1.1) [ 1.346966] gspca_main: v2.14.0 registered [ 1.353745] Synopsys Designware Multimedia Card Interface Driver [ 1.359899] dw_mmc ff808000.dwmmc0: IDMAC supports 32-bit address mode. [ 1.366562] dw_mmc ff808000.dwmmc0: Using internal DMA controller. [ 1.372732] dw_mmc ff808000.dwmmc0: Version ID is 270a [ 1.377892] dw_mmc ff808000.dwmmc0: DW MMC controller at irq 33,32 bit host data width,1024 deep fifo [ 1.418533] dw_mmc ff808000.dwmmc0: 1 slots initialized [ 1.424323] ledtrig-cpu: registered to indicate activity on CPUs [ 1.430521] usbcore: registered new interface driver usbhid [ 1.436067] usbhid: USB HID core driver [ 1.440223] fpga_manager fpga0: SoCFPGA Arria10 FPGA Manager registered [ 1.447215] fpga-region soc:base_fpga_region: FPGA Region probed [ 1.454327] usbcore: registered new interface driver snd-usb-audio [ 1.460714] oprofile: no performance counters [ 1.465138] oprofile: using timer interrupt. [ 1.470372] NET: Registered protocol family 10 [ 1.475428] sit: IPv6 over IPv4 tunneling driver [ 1.480635] NET: Registered protocol family 17 [ 1.485084] NET: Registered protocol family 15 [ 1.489535] can: controller area network core (rev 20120528 abi 9) [ 1.495735] NET: Registered protocol family 29 [ 1.500180] can: raw protocol (rev 20120528) [ 1.504436] can: broadcast manager protocol (rev 20120528 t) [ 1.510086] can: netlink gateway (rev 20130117) max_hops=1 [ 1.515745] 8021q: 802.1Q VLAN Support v1.8 [ 1.519955] lib80211: common routines for IEEE802.11 drivers [ 1.525649] Key type dns_resolver registered [ 1.529995] ThumbEE CPU extension supported. [ 1.534257] Registering SWP/SWPB emulation handler [ 1.540586] Key type encrypted registered [ 1.544727] of_cfs_init [ 1.547219] of_cfs_init: OK [ 1.551344] ALSA device list: [ 1.554302] No soundcards found. [ 1.557909] ttyS0 - failed to request DMA [ 1.562086] Waiting for root device /dev/mmcblk0p2... [ 1.577308] mmc_host mmc0: Bus speed (slot 0) = 50000000Hz (slot req 50000000Hz, actual 50000000HZ div = 0) [ 1.587081] mmc0: new high speed SDHC card at address 0007 [ 1.592959] mmcblk0: mmc0:0007 SD16G 14.5 GiB [ 1.598651] mmcblk0: p1 p2 p3 [ 1.669408] EXT4-fs (mmcblk0p2): mounting ext3 file system using the ext4 subsystem [ 4.188648] random: nonblocking pool is initialized [ 10.705539] EXT4-fs (mmcblk0p2): recovery complete [ 10.932120] EXT4-fs (mmcblk0p2): mounted filesystem with ordered data mode. Opts: (null) [ 10.940213] VFS: Mounted root (ext3 filesystem) on device 179:2. [ 10.954690] devtmpfs: mounted [ 10.958051] Freeing unused kernel memory: 556K (c098b000 - c0a16000) [ 11.288785] systemd[1]: System time before build time, advancing clock. [ 11.311297] systemd[1]: Failed to insert module 'autofs4': No such file or directory [ 11.338336] systemd[1]: systemd 229 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN) [ 11.356611] systemd[1]: Detected architecture arm. Welcome to Ubuntu 16.04.2 LTS! [ 11.389541] systemd[1]: Set hostname to . [ 11.778989] systemd[1]: Created slice System Slice. [ OK ] Created slice System Slice. [ 11.798763] systemd[1]: Listening on Syslog Socket. [ OK ] Listening on Syslog Socket. [ 11.818588] systemd[1]: Reached target Encrypted Volumes. [ OK ] Reached target Encrypted Volumes. [ 11.838686] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe. [ OK ] Listening on /dev/initctl Compatibility Named Pipe. [ 11.858666] systemd[1]: Listening on Journal Socket (/dev/log). [ OK ] Listening on Journal Socket (/dev/log). [ 11.878581] systemd[1]: Reached target Remote File Systems (Pre). [ OK ] Reached target Remote File Systems (Pre). [ 11.898563] systemd[1]: Reached target Remote File Systems. [ OK ] Reached target Remote File Systems. [ 11.918573] systemd[1]: Reached target Swap. [ OK ] Reached target Swap. [ 11.938697] systemd[1]: Listening on Journal Socket. [ OK ] Listening on Journal Socket. [ 11.967803] systemd[1]: Created slice system-serial\x2dgetty.slice. [ OK ] Created slice system-serial\x2dgetty.slice. [ 11.988709] systemd[1]: Listening on udev Kernel Socket. [ OK ] Listening on udev Kernel Socket. [ 12.049044] systemd[1]: Starting Set console keymap... Starting Set console keymap... [ 12.068817] systemd[1]: Started Forward Password Requests to Wall Directory Watch. [ OK ] Started Forward Password Requests to Wall Directory Watch. [ 12.088847] systemd[1]: Created slice User and Session Slice. [ OK ] Created slice User and Session Slice. [ 12.108744] systemd[1]: Reached target Slices. [ OK ] Reached target Slices. [ 12.189078] systemd[1]: Starting Journal Service... Starting Journal Service... [ 12.200147] systemd[1]: Mounting Debug File System... Mounting Debug File System... [ 12.228875] systemd[1]: Listening on udev Control Socket. [ OK ] Listening on udev Control Socket. [ 12.250251] systemd[1]: Starting Remount Root and Kernel File Systems... Starting Remount Root and Kernel File Systems... [ 12.297264] systemd[1]: Starting Load Kernel Modules... Starting Load Kernel Modules... [ 12.323918] systemd[1]: Starting Create Static Device Nodes in /dev... Starting Create Static Device Nodes in /dev... [ 12.350802] systemd[1]: Mounted Debug File System. [ OK ] Mounted Debug File System. [ 12.369080] systemd[1]: Started Journal Service. [ OK ] Started Journal Service. [ OK ] Started Set console keymap. [ OK ] Started Remount Root and Kernel File Systems. [ OK ] Started Load Kernel Modules. [ OK ] Started Create Static Device Nodes in /dev. Starting udev Kernel Device Manager... Starting Apply Kernel Variables... Mounting Configuration File System... Starting udev Coldplug all Devices... Starting Load/Save Random Seed... [ OK ] Reached target Local File Systems (Pre). [ OK ] Reached target Local File Systems. Starting Set console font and keymap... Starting Tell Plymouth To Write Out Runtime Data... Starting Flush Journal to Persistent Storage... [ OK ] Mounted Configuration File System. [ OK ] Started udev Kernel Device Manager. [ OK ] Started Apply Kernel Variables. [ OK ] Started Load/Save Random Seed. [ OK ] Started Tell Plymouth To Write Out Runtime Data. [ OK ] Started Flush Journal to Persistent Storage. Starting Create Volatile Files and Directories... Starting Raise network interfaces... [ OK ] Started udev Coldplug all Devices. [ OK ] Found device /dev/ttyS0. [ OK ] Started Dispatch Password Requests to Console Directory Watch. [ OK ] Reached target Paths. [ OK ] Started Create Volatile Files and Directories. Starting Network Time Synchronization... Starting Update UTMP about System Boot/Shutdown... [ OK ] Started Network Time Synchronization. [ OK ] Started Update UTMP about System Boot/Shutdown. [ OK ] Started Set console font and keymap. [ OK ] Created slice system-getty.slice. [ OK ] Started ifup for eth0. [ OK ] Reached target System Time Synchronized. [ OK ] Reached target System Initialization. [ OK ] Started Daily Cleanup of Temporary Directories. [ OK ] Started Daily apt activities. [ OK ] Reached target Timers. [ OK ] Listening on D-Bus System Message Bus Socket. [ OK ] Reached target Sockets. [ OK ] Reached target Basic System. Starting Permit User Sessions... Starting System Logging Service... Starting LSB: Set the CPU Frequency Scaling governor to "ondemand"... [ OK ] Started D-Bus System Message Bus. Starting Network Manager... Starting LSB: Start/stop tightvncserver... Starting Login Service... [ OK ] Started System Logging Service. [ OK ] Started Permit User Sessions. [ OK ] Started Login Service. Starting Light Display Manager... [ OK ] Started LSB: Set the CPU Frequency Scaling governor to "ondemand". [ OK ] Created slice User Slice of root. [ OK ] Started Session c1 of user root. Starting User Manager for UID 0... [ OK ] Started Raise network interfaces. [ OK ] Started User Manager for UID 0. [ OK ] Started Light Display Manager. [ OK ] Started Network Manager. [ OK ] Reached target Network. Starting OpenBSD Secure Shell server... Starting /etc/rc.local Compatibility... Starting Network Manager Script Dispatcher Service... [ 15.560753] rc.local[1478]: Can't open HCI socket.: Address family not supported by protocol [ OK ] Started /etc/rc.local Compatibility. Starting Hold until boot process finishes up... [ OK ] Started Hold until boot process finishes up. [ OK ] Started Getty on tty1. [ OK ] Started Serial Getty on ttyS0. [ OK ] Reached target Login Prompts. Starting Set console scheme... [ OK ] Started Network Manager Script Dispatcher Service. [ OK ] Started Set console scheme. Starting Hostname Service... [ OK ] Started Hostname Service. [ OK ] Started OpenBSD Secure Shell server. Starting Authenticate and Authorize Users to Run Privileged Tasks... [ OK ] Started LSB: Start/stop tightvncserver. [ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Authenticate and Authorize Users to Run Privileged Tasks. [ OK ] Started Update UTMP about System Runlevel Changes. Ubuntu 16.04.2 LTS a10s ttyS0 a10s login: r o o t Ubuntu 16.04.2 LTS a10s ttyS0 a10s login: root Password: Last login: Fri Jul 14 00:57:54 CST 2023 on ttyS0 Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.5.0-00205-g261670b armv7l) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage root@a10s:~# pwd /home/root root@a10s:~# ls Desktop expand_rootfs.sh hps_gpio makefile socket_server Test.txt.txt hello.c hps_gpio_loopback opencv a.out hps_fpga_led hps_i2c_rtc socket_client root@a10s:~# ./a,out -bash: ./a,out: No such file or directory root@a10s:~# ./a.out hello world! root@a10s:~#