nios2-terminal: exiting due to I/O error communicating with target /cygdrive/c/WINDOWS/system32 [NiosII EDS]$ nios2-terminal nios2-terminal: connected to hardware target using JTAG UART on cable nios2-terminal: "USB-Blaster [USB-0]", device 1, instance 0 nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate) U-Boot 2010.09 (May 25 2020 - 12:42:24) CPU : Nios-II SYSID U-Boot 2010.09 (May 25 2020 - 12:42:24) CPU : Nios-II SYSID In: serial Out: serial Err: serial Net: ALTERA_TSE-0 ...Inside EPCS INIT 1... 2...RemoteUpdatereg = e8065400 2...val @ RemoteUpdatereg = 0 !!!3...mode = 0 !!!4... Remote update status in Appli mode is FALSE readreg = e806543c val @ readreg = 4 check_FirstTime_load read_data = 4 First_load = 4 Factory mode - Failed remote update. SOF CONFIG ERROR: nstatus_surce: nSTATUS asserted by an external device as the result of an error. SOF CONFIG ERROR: The most likely cause is the USER application address in the flash. Hit any key to stop autoboot: 0 ==> ==> ==> cp c4100000 d1000000 c00000 ==> bootm c0100000 d1000000 not null ## Booting kernel from Legacy Image at c0100000 ... Image Name: Linux-5.4.54 Image Type: NIOS II Linux Kernel Image (gzip compressed) Data Size: 2784983 Bytes = 2.7 MiB Load Address: d0000000 Entry Point: d0000000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at d1000000 ... Image Name: RAM disk Image Type: NIOS II Linux RAMDisk Image (gzip compressed) Data Size: 2320827 Bytes = 2.2 MiB Load Address: d1000000 Entry Point: d1000000 Verifying Checksum ... OK Uncompressing Kernel Image ... OK [ 0.000000] OF: fdt: Ignoring memory block 0x9fff400 - 0x9fff800 [ 0.000000] Linux version 5.4.54 (root@harsha-VirtualBox) (gcc version 7.3.1 20180222 (Sourcery CodeBench Lite 2018.05-5)) #81 Wed Feb 24 14:40:43 IST 2021 [ 0.000000] setup_arch DRAM Start= 10000000 [ 0.000000] setup_arch memory_size = 8000000 [ 0.000000] setup_arch memory_start = 105b5000 [ 0.000000] setup_arch memory_end = 18000000 [ 0.000000] On node 0 totalpages: 98304 [ 0.000000] Normal zone: 768 pages used for memmap [ 0.000000] Normal zone: 0 pages reserved [ 0.000000] Normal zone: 98304 pages, LIFO batch:31 [ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768 [ 0.000000] pcpu-alloc: [0] 0 [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 97536 [ 0.000000] Kernel command line: root=/dev/ram0 init=/linuxrc [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes, linear) [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes, linear) [ 0.000000] Sorting __ex_table... [ 0.000000] allocated 393216 bytes of page_ext [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off [ 0.000000] Memory: 119072K/393216K available (4593K kernel code, 102K rwdata, 896K rodata, 124K init, 123K bss, 274144K reserved, 0K cma-reserved) [ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0 [ 0.000000] clocksource: nios2-clksrc: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 15290083572 ns [ 0.000000] Calibrating delay loop (skipped), value calculated using timer frequency.. 250.00 BogoMIPS (lpj=1250000) [ 0.000000] pid_max: default: 32768 minimum: 301 [ 0.000000] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.000000] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) [ 0.000000] *** VALIDATE ramfs *** [ 0.010000] *** VALIDATE proc *** [ 0.020000] devtmpfs: initialized [ 0.030000] random: get_random_u32 called from bucket_table_alloc.isra.27+0x68/0x1a0 with crng_init=0 [ 0.030000] random: get_random_bytes called from net_ns_init+0x74/0x28c with crng_init=0 [ 0.150000] DMA-API: preallocated 65554 debug entries [ 0.150000] DMA-API: debugging enabled by kernel config [ 0.150000] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns [ 0.150000] futex hash table entries: 256 (order: -1, 3072 bytes, linear) [ 0.150000] NET: Registered protocol family 16 [ 0.260000] pps_core: LinuxPPS API ver. 1 registered [ 0.260000] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti [ 0.260000] PTP clock support registered [ 0.260000] clocksource: Switched to clocksource nios2-clksrc [ 0.270000] *** VALIDATE ramfs *** [ 0.270000] NET: Registered protocol family 2 [ 0.270000] random: get_random_u32 called from neigh_hash_alloc+0xa8/0x108 with crng_init=0 [ 0.270000] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 4096 bytes, linear) [ 0.270000] TCP established hash table entries: 4096 (order: 2, 16384 bytes, linear) [ 0.270000] TCP bind hash table entries: 4096 (order: 2, 16384 bytes, linear) [ 0.270000] TCP: Hash tables configured (established 4096 bind 4096) [ 0.270000] UDP hash table entries: 256 (order: 0, 4096 bytes, linear) [ 0.270000] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes, linear) [ 0.270000] NET: Registered protocol family 1 [ 0.270000] RPC: Registered named UNIX socket transport module. [ 0.270000] RPC: Registered udp transport module. [ 0.270000] RPC: Registered tcp transport module. [ 0.270000] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 0.270000] Trying to unpack rootfs image as initramfs... [ 0.270000] gunzip: Inside [ 0.270000] gunzip: going do loop [ 0.270000] gunzip: going while loop [ 0.270000] gunzip: END while loop [ 0.270000] gunzip: DOne [ 0.270000] rootfs image is not initramfs (no cpio magic); looks like an initrd [ 0.300000] Freeing initrd memory: 2260K [ 0.300000] workingset: timestamp_bits=30 max_order=15 bucket_order=0 [ 0.300000] NFS: Registering the id_resolver key type [ 0.300000] Key type id_resolver registered [ 0.300000] Key type id_legacy registered [ 0.310000] jffs2: version 2.2. (NAND) Ac 2001-2006 Red Hat, Inc. [ 0.310000] *** VALIDATE jffs2 *** [ 0.310000] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) [ 0.310000] io scheduler mq-deadline registered [ 0.310000] io scheduler kyber registered [ 0.350000] random: fast init done [ 0.440000] 8065080.serial: ttyAL0 at MMIO 0x8065080 (irq = 18, base_baud = 3906250) is a Altera UART [ 0.520000] printk: console [ttyAL0] enabled [ 0.520000] 8064d40.serial: ttyJ0 at MMIO 0x8064d40 (irq = 25, base_baud = 0) is a Altera JTAG UART [ 0.570000] printk: console [ttyJ0] enabled [ 0.570000] brd: module loaded [ 0.600000] loop: module loaded [ 0.610000] physmap-flash 0.flash: physmap platform flash device: [mem 0x00000000-0x07ffffff] [ 0.620000] 0.flash: Found 1 x16 devices at 0x0 in 16-bit bank. Manufacturer ID 0x000001 Chip ID 0x002801 [ 0.660000] Amd/Fujitsu Extended Query Table at 0x0040 [ 0.660000] Amd/Fujitsu Extended Query version 1.5. [ 0.660000] number of CFI chips: 1 [ 0.710000] libphy: Fixed MDIO Bus: probed [ 0.710000] Inside altera_eth_dma_probe [ 0.750000] altera_tse 8004000.ethernet: DMA RX CSR at 0x08004400 [ 0.750000] altera_tse 8004000.ethernet: DMA TX CSR at 0x08004800 [ 0.750000] altera_tse 8004000.ethernet: DMA Desc Mem at 0x08020000 [ 0.790000] libphy: altera_tse: probed [ 0.790000] altera_tse 8004000.ethernet (unnamed net_device) (uninitialized): MDIO bus altera_tse-0: created [ 0.840000] altera_tse 8004000.ethernet: Altera TSE MAC version 10.1 at 0x08004000 irq 28/29 [ 0.980000] altera_tse 8004000.ethernet: PTP Enable: 0 [ 0.980000] PPP generic driver version 2.4.2 [ 1.000000] ipip: IPv4 and MPLS over IPv4 tunneling driver [ 1.010000] Key type dns_resolver registered [ 1.040000] _warn_unseeded_randomness: 3 callbacks suppressed [ 1.050000] random: get_random_bytes called from init_oops_id+0x54/0x64 with crng_init=1 [ 1.100000] random: get_random_bytes called from key_alloc+0x1f0/0x3ac with crng_init=1 [ 1.100000] random: get_random_bytes called from prandom_seed_full_state+0x1c/0x84 with crng_init=1 [ 1.130000] printk: console [netcon0] enabled [ 1.140000] netconsole: network logging started [ 1.160000] After decompress_method: gzip image found at block 0 [ 1.160000] RAMDISK: gzip image found at block 0 [ 1.160000] Before lseek [ 1.160000] befoer kfree [ 1.200000] after identify_ramdisk_image 0 [ 1.200000] calling crd_load 0 [ 1.200000] crd_load: crd_load [ 1.200000] crd_load: before deco decompress_error [ 1.200000] gunzip: Inside [ 1.240000] gunzip: going do loop [ 1.240000] gunzip: going while loop [ 2.230000] gunzip: END while loop [ 2.230000] gunzip: DOne [ 2.250000] crd_load: decompress_error [ 2.490000] EXT4-fs (ram0): mounting ext2 file system using the ext4 subsystem [ 2.500000] EXT4-fs (ram0): mounted filesystem without journal. Opts: (null) [ 2.540000] VFS: Mounted root (ext2 filesystem) readonly on device 1:0. [ 2.540000] devtmpfs: mounted [ 2.550000] Freeing unused kernel memory: 124K [ 2.590000] This architecture does not have kernel memory protection. [ 2.590000] Run /linuxrc as init process [ 2.590000] random: get_random_u32 called from randomize_stack_top+0x48/0x60 with crng_init=1 [ 2.610000] random: get_random_bytes called from load_elf_binary+0xab4/0x1018 with crng_init=1 mount: mounting devpts on /dev/pts failed: No such file or directory [ 2.780000] EXT4-fs (ram0): re-mounted. Opts: (null) mount: mounting devpts on /dev/pts failed: No such file or directory mount: mounting tmpfs on /dev/shm failed: No such file or directory Starting system logging. Device files are already created [ OK ] Starting syslogd: OK Starting klogd: OK Running sysctl: OK Saving random seed: [ 3.540000] random: dd: uninitialized urandom read (512 bytes read) OK Starting network: [ 3.750000] random: get_random_u32 called from bucket_table_alloc.isra.27+0x68/0x1a0 with crng_init=1 [ 3.750000] random: get_random_u32 called from randomize_stack_top+0x48/0x60 with crng_init=1 OK # # # ifconfig lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:65536 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) # ifconfig eth0 10.201.1.20 [ 6.570000] priv->rx_dma_desc = e8021000, priv->rxdescmem = 1000 [ 6.600000] priv->tx_dma_desc = e8020000, priv->txdescmem = 1000 [ 6.600000] ------------[ cut here ]------------ [ 6.600000] WARNING: CPU: 0 PID: 88 at kernel/dma/debug.c:1269 debug_dma_map_single+0xfc/0x1f8 [ 6.640000] DMA-API: altera_tse 8004000.ethernet: device driver maps memory from invalid area [addr=e8021000] [len=4096] [ 6.640000] Modules linked in: [ 6.640000] CPU: 0 PID: 88 Comm: ifconfig Not tainted 5.4.54 #81 [ 6.680000] Stack from d5479d08: [ 6.680000] [ 6.680000] [ 6.680000] d5479d0c [ 6.690000] d5479d48 [ 6.690000] 00000000 [ 6.690000] 00000009 [ 6.690000] 00000009 [ 6.730000] 000004f5 [ 6.730000] d0459d58 [ 6.730000] d0009bcc [ 6.730000] [ 6.730000] [ 6.730000] 000004f5 [ 6.730000] d004bdf0 [ 6.730000] d0519350 [ 6.730000] d051933c [ 6.770000] d004bdf0 [ 6.770000] d0009c50 [ 6.770000] 00000000 [ 6.770000] d5479d48 [ 6.770000] [ 6.770000] [ 6.770000] d0519350 [ 6.770000] d5479d68 [ 6.770000] e8021000 [ 6.770000] d7bc880c [ 6.810000] 00001000 [ 6.820000] d7bc880c [ 6.820000] d6ca3cb8 [ 6.820000] d004bdf0 [ 6.820000] [ 6.820000] [ 6.820000] d0542134 [ 6.820000] d7bca740 [ 6.820000] e8021000 [ 6.820000] 00001000 [ 6.860000] d6ca3cb8 [ 6.860000] e8021000 [ 6.860000] 00001000 [ 6.860000] d0318358 [ 6.860000] [ 6.860000] [ 6.860000] fffffff9 [ 6.860000] 0000000e [ 6.860000] d6ca3800 [ 6.860000] d058e930 [ 6.900000] 00000000 [ 6.900000] 00000000 [ 6.900000] d6ca3cb8 [ 6.900000] d6cacae0 [ 6.900000] [ 6.900000] [ 6.900000] d031b81c [ 6.910000] 00000000 [ 6.910000] 00000000 [ 6.910000] 00000001 [ 6.950000] d6ca3800 [ 6.950000] d058e930 [ 6.950000] 00000000 [ 6.950000] 00000000 [ 6.950000] [ 6.950000] Call Trace: [ 6.950000] [ 6.950000] [ 6.950000] [] [ 6.950000] [] [ 6.990000] [] [ 6.990000] [] [ 6.990000] [ 6.990000] [ 6.990000] [] [ 6.990000] [] [ 6.990000] [] [ 6.990000] [] [ 6.990000] [ 6.990000] [ 7.030000] [] [ 7.030000] [] [ 7.040000] [] [ 7.040000] [] [ 7.040000] [ 7.040000] [ 7.040000] [] [ 7.040000] [] [ 7.080000] [ 7.080000] ---[ end trace b0e148096f724a10 ]--- [ 7.080000] unlinkely TRUE [ 7.080000] report error [ 7.080000] altera_tse 8004000.ethernet: overflow 0x08021000+4096 of DMA mask ffffffff bus mask 0 [ 7.120000] ------------[ cut here ]------------ [ 7.120000] WARNING: CPU: 0 PID: 88 at kernel/dma/direct.c:35 report_addr+0xb8/0x104 [ 7.130000] Modules linked in: [ 7.130000] CPU: 0 PID: 88 Comm: ifconfig Tainted: G W 5.4.54 #81 [ 7.130000] Stack from d5479cf8: [ 7.130000] [ 7.130000] [ 7.130000] d5479cfc [ 7.170000] 00000000 [ 7.170000] 00000000 [ 7.170000] 00000009 [ 7.170000] 00000009 [ 7.170000] 00000023 [ 7.170000] d0459d58 [ 7.170000] d0009bcc [ 7.170000] [ 7.170000] [ 7.210000] 00000023 [ 7.210000] d004a440 [ 7.210000] 00000000 [ 7.210000] d05190d4 [ 7.210000] d004a440 [ 7.220000] d0009c8c [ 7.220000] 00000000 [ 7.220000] 00000000 [ 7.260000] [ 7.260000] [ 7.260000] d5479d44 [ 7.260000] d02d18d0 [ 7.260000] 08021000 [ 7.260000] d7bc880c [ 7.260000] 08021000 [ 7.260000] 08021fff [ 7.260000] 00001000 [ 7.280000] d004a440 [ 7.280000] [ 7.280000] [ 7.280000] ffffffff [ 7.280000] 00000000 [ 7.280000] 00000000 [ 7.280000] 00000000 [ 7.280000] 08021000 [ 7.280000] d004a670 [ 7.320000] d6ca3cb8 [ 7.320000] 00000000 [ 7.330000] [ 7.330000] [ 7.330000] 00001000 [ 7.330000] d7bc880c [ 7.330000] d7bfcf60 [ 7.330000] d031857c [ 7.330000] 00000000 [ 7.330000] 00000000 [ 7.370000] d6ca3800 [ 7.370000] d058e930 [ 7.370000] [ 7.370000] [ 7.370000] 00000000 [ 7.370000] 00000000 [ 7.370000] d6ca3cb8 [ 7.370000] d6cacae0 [ 7.370000] d031b81c [ 7.410000] 00000000 [ 7.410000] 00000000 [ 7.410000] 00000001 [ 7.410000] [ 7.410000] Call Trace: [ 7.410000] [ 7.410000] [ 7.410000] [] [ 7.420000] [] [ 7.460000] [] [ 7.460000] [] [ 7.460000] [ 7.460000] [ 7.460000] [] [ 7.460000] [] [ 7.460000] [] [ 7.460000] [] [ 7.500000] [ 7.500000] [ 7.500000] [] [ 7.500000] [] [ 7.500000] [] [ 7.500000] [] [ 7.500000] [ 7.500000] [ 7.500000] [] [ 7.540000] [] [ 7.540000] [ 7.550000] ---[ end trace b0e148096f724a11 ]--- [ 7.550000] rxdescphys = ffffffff [ 7.550000] unlinkely TRUE [ 7.590000] report error [ 7.590000] txdescphys = ffffffff [ 7.590000] altera_tse 8004000.ethernet eth0: device MAC address 00:0b:7c:80:43:78 [ 7.590000] altera_tse 8004000.ethernet eth0: TSE revision a01 [ 7.630000] RBEI - priv->rx_irq 28 priv->tx_irq 29 [ 7.640000] CAP-ADAM Forcing the Register 9 write 0 # #