Open jorgeasmz opened 8 months ago
I haven't done this on WSL so not sure if there's something going on with that. It worked fine for me on Virtualbox though.
Really not sure what's going on here. Have you tried creating the image a second time? Are you getting the same error?
Hello,
Yes, I have actually recreated multiple times this step, but it doesn't change. I ended up installing the Debian for DE10-Nano v5.12 on my SDCard from the releases, but I obtained another error. It is regarding to file transfer. When I do ifconfig in the DE10-Nano (using PuTTY), I don't get an IP address. Instead I get this:
[ 7.934356] socfpga-dwmac ff702000.ethernet eth0: PHY [stmmac-0:01] driver [Micrel KSZ9031 Gigabit PHY] (irq=POLL) [ 7.954484] socfpga-dwmac ff702000.ethernet eth0: No Safety Features support found [ 7.962488] socfpga-dwmac ff702000.ethernet eth0: registered PTP clock [ 7.976328] socfpga-dwmac ff702000.ethernet eth0: configuring for phy/rgmii link mode [ OK ] Started System Logging Service. [ OK ] Started Login Service. [ 9.239567] random: crng init done [ 9.242974] random: 7 urandom warning(s) missed due to ratelimiting [ 12.154692] socfpga-dwmac ff702000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx [ 12.163539] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready [ OK ] Started Raise network interfaces. [ OK ] Reached target Network. Starting Permit User Sessions... Starting OpenBSD Secure Shell server... [ OK ] Started Permit User Sessions. [ OK ] Started Getty on tty1. [ OK ] Started Serial Getty on ttyS0. [ OK ] Reached target Login Prompts. [ OK ] Started OpenBSD Secure Shell server. [ OK ] Reached target Multi-User System. [ OK ] Reached target Graphical Interface. Starting Update UTMP about System Runlevel Changes... [ OK ] Started Update UTMP about System Runlevel Changes.
Debian GNU/Linux 10 de10-aug21 ttyS0
de10-aug21 login: root Password: Last login: Thu Feb 14 10:13:13 UTC 2019 on ttyS0 Linux de10-aug21 5.12.0zImage #1 SMP Fri Aug 13 16:41:44 +08 2021 armv7l
The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. root@de10-aug21:~# ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet6 fe80::a0f9:79ff:fea9:f810 prefixlen 64 scopeid 0x20 ether a2:f9:79:a9:f8:10 txqueuelen 1000 (Ethernet) RX packets 86 bytes 5969 (5.8 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 15 bytes 2506 (2.4 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 device interrupt 39 base 0x8000
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10
root@de10-aug21:~#
I don't know what the problem is here.
same here, have you found any solution?
same here, have you found any solution?
I did not find a solution for the partprobe error, but I did get a solution for the IPv4 address problem. The way I solved it was by using a static IP address. I modified the file 'interfaces' as follows:
sudo nano /etc/network/interfaces
Then paste the following:
# interfaces(5) file used by ifup(8) and ifdown(8)
# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d
auto lo eth0
allow-hotplug eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.27.2
netmask 255.255.255.0
gateway 192.168.27.1
Since I'm using this in a local environment, it is sufficient for me to have a static IP address. I only needed it to transfer files usinc scp command.
Hello,
I'm currently following the guide to build the Linux Embbeded System for the DE10-Nano. All the steps worked for me, until I got to the part of Creating the SD Card Image. The problem I got there is that after writing the partitions using fdisk and doing
sudo partprobe /dev/loop0
I get the following error:
~/sdcard$ sudo partprobe /dev/loop0 Error: Partition(s) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64 on /dev/loop0 have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes.
I'm doing this tutotial using WSL on Windows 11, specifically 'Ubuntu 22.04.4 LTS on Windows 10 x86_64' and kernel '5.15.133.1-microsoft-standard-WSL2'. I'm not sure what the problem is there. I would appreciate the help.
I've found a solution online. Actually losetup is sufficient for this task. After partitioning with fdisk
you can run this command instead of partprobe:
sudo losetup -P /dev/loop0 sdcard.img
P.S. Issue on WSL repo about this problem is opened since 2017
Hello,
I'm currently following the guide to build the Linux Embbeded System for the DE10-Nano. All the steps worked for me, until I got to the part of Creating the SD Card Image. The problem I got there is that after writing the partitions using fdisk and doing
sudo partprobe /dev/loop0
I get the following error:
~/sdcard$ sudo partprobe /dev/loop0 Error: Partition(s) 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64 on /dev/loop0 have been written, but we have been unable to inform the kernel of the change, probably because it/they are in use. As a result, the old partition(s) will remain in use. You should reboot now before making further changes.
I'm doing this tutotial using WSL on Windows 11, specifically 'Ubuntu 22.04.4 LTS on Windows 10 x86_64' and kernel '5.15.133.1-microsoft-standard-WSL2'. I'm not sure what the problem is there. I would appreciate the help.