ggirou / dns320

Run Debian on D-Link DNS-320
12 stars 2 forks source link

Network problem with U-boot 2022.10 #2

Open Dh0mp5eur opened 1 year ago

Dh0mp5eur commented 1 year ago

Hi I have a network problem with u-boot 2022.10. I can't get the network card to work. U-boot does not detect the card correctly. I rolled back to u-boot 2020.04 to make it work.

U-Boot 2022.10-00001-ga235721f39 (Aug 11 2023 - 20:50:26 +0000)
D-Link DNS-320

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB
Core:  11 devices, 8 uclasses, devicetree: separate
NAND:  128 MiB
Loading Environment from NAND... OK
In:    serial
Out:   serial
Err:   serial
Net:   eth0: ethernet-controller@72000
No such device: egiga0
Hit any key to stop autoboot:  0

U-Boot 2020.04-00001-ga1641ef858 (Aug 12 2023 - 20:00:19 +0000)
D-Link DNS-320

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB
NAND:  128 MiB
Loading Environment from NAND... OK
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Hit any key to stop autoboot:  0 
ggirou commented 1 year ago

Hi,

The interface name seems different in 2022.10. Could you try to rename your active interface to eth0:

setenv ethact eth0
Dh0mp5eur commented 1 year ago

Hi, I have the same problem after setting ethact to eth0.

U-Boot 2022.10-00001-ga235721f39 (Aug 11 2023 - 20:50:26 +0000)
D-Link DNS-320

SoC:   Kirkwood 88F6281_A1
DRAM:  128 MiB
Core:  11 devices, 8 uclasses, devicetree: separate
NAND:  128 MiB
Loading Environment from NAND... OK
In:    serial
Out:   serial
Err:   serial
Net:   eth0: ethernet-controller@72000
No such device: egiga0
Hit any key to stop autoboot:  0 
=> printenv
autoload=no
baudrate=115200
bootargs=console=ttyS0,115200 root=/dev/sdc1 usb-storage.delay_use=0 rootdelay=1 rw
bootcmd=usb reset ; ext4load usb 0:1 0x1000000 /boot/uImage ; bootm 0x1000000
bootdelay=3
bootenv=uEnv.txt
bootenvloadimage=nand read ${loadaddr} kernel
bootenvroot=ubi0:rootfs ubi.mtd=rootfs
bootenvrootfstype=ubifs
console=ttyS0,115200
ethact=eth0
ethaddr=C8:BE:19:05:19:EB
fdtcontroladdr=7b35cc0
fileaddr=1000000
filesize=123dc38
importbootenv=echo Importing environment ...; env import -t ${loadaddr} ${filesize}
ipaddr=192.168.1.250
load_ubifs=ubi part root ; ubifsmount rootfs ; ubifsload 0x0900000 /boot/kirkwood-dns320.dtb ; ubifsload 0x1000000 /boot/uImage ; ubifsload 0x1200000 /boot/initrd.img-5.10.0-16-marvell
loadaddr=0x800000
loadbootenv=ext4load usb 0:1 ${loadaddr} ${bootenv}
mtddevname=u-boot
mtddevnum=0
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:896k(u-boot),128k(u-boot-env),-(root)
nandloadimage=nand read ${loadaddr} kernel
nandroot=ubi0:rootfs ubi.mtd=rootfs
nandrootfstype=ubifs
netmask=255.255.255.0
partition=nand0,0
root_flash=ubi.mtd=root root=ubi0:rootfs rootfstype=ubifs
serverip=192.168.1.254
setbootargs=setenv bootargs console=${console} ${optargs} ${mtdparts} cmdlinepart.${mtdparts} root=${bootenvroot} rootfstype=${bootenvrootfstype}
setnandbootenv=echo Booting from nand ...; setenv bootenvroot ${nandroot}; setenv bootenvrootfstype ${nandrootfstype}; setenv bootenvloadimage ${nandloadimage}
stderr=serial
stdin=serial
stdout=serial
subbootcmd=run setbootargs; if run bootenvloadimage; then bootm ${loadaddr};fi;

Environment size: 1576/131068 bytes
ggirou commented 1 year ago

I don't know why the interface is now eth0. Maybe if you update the patch to this new name at https://github.com/ggirou/dns320/blob/master/scripts/v2022.10-dns320.patch#L305

-   char *name = "egiga0";
+   char *name = "eth0";

I don't have access to my NAS right now, I won't be able to help you much until few weeks.