Re: Debian installation instructions for WD EX2100 August 31, 2021 12:07PM |
Registered: 3 years ago Posts: 4 |
Enable HD2 Net: | port | Interface | PHY address | |--------|-----------|--------------| | egiga0 | RGMII | 0x00 | | egiga1 | RGMII | In-Band | | egiga2 | SGMII | 0x01 | egiga0 [PRIME], egiga1, egiga2 Hit any key to stop autoboot: 0 Marvell>>
Sending boot message. Please reboot the target.../
Quote
fdtfile=armada-38x-modular.dtb
This is leftover from the stock uboot environment. It's not used to boot Debian. So your DTB is appended to the end of the kernel, which is why the second serial port is not being created (because the DTB you downloaded is not being used).
You need to append the updated DTB to the bare kernel, as described in the second link.
# dmesg | grep tty [ 0.000000] Kernel command line: root=/dev/ram console=ttyS0,115200 [ 1.320838] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 44) is a 16550A [ 1.909263] console [ttyS0] enabled [ 1.931876] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 45) is a 16550A
# dmesg | grep tty [ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sdc1 rootdelay=10 mtdparts=armada-nand:5m(u-boot)ro,5m@5m(kernel),5m@10m(uRamdisk),441m@15m(image.cfs),15m@456m(rescue_fw),20m@471m(config),10m@491m(reserve1),10m@501m(reserve2) earlyprintk=serial [ 3.097643] printk: console [ttyS0] disabled [ 3.122759] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 31, base_baud = 12500000) is a 16550A [ 3.132432] printk: console [ttyS0] enabled [ 3.174741] f1012100.serial: ttyS1 at MMIO 0xf1012100 (irq = 32, base_baud = 12500000) is a 16550A ... # fw_printenv | grep dtb fdtfile=armada-38x-modular.dtb ... # mcm-daemon -df mcm-daemon[3285]: Bind name to ls. mcm-daemon[3285]: Listen on ls for connections. mcm-daemon[3285]: Server startup success on port 57367 mcm-daemon[3285]: Got no stop magic, but read 1 bytes! mcm-daemon[3285]: Buf 0: 0 mcm-daemon[3285]: Try number: 1 mcm-daemon[3285]: Got no stop magic, but read 1 bytes! mcm-daemon[3285]: Buf 0: 0 mcm-daemon[3285]: Try number: 2 mcm-daemon[3285]: Got no stop magic, but read 1 bytes! mcm-daemon[3285]: Buf 0: 0 mcm-daemon[3285]: Try number: 3 mcm-daemon[3285]: Got no stop magic, but read 1 bytes! mcm-daemon[3285]: Buf 0: 0 mcm-daemon[3285]: Try number: 4 mcm-daemon[3285]: Error sending DeviceReady command, exit!
cd /boot tar -xjf linux-5.13.8-mvebu-tld-1-bodhi.tar.bz2 tar -xf linux-dtb-5.13.8-mvebu-tld-1.tar apt-get remove flash-kernel dpkg -i linux-image-5.13.8-mvebu-tld-1_1.0_armhf.deb cp -a zImage-5.13.8-mvebu-tld-1 zImage.fdt cat dts/armada-385-wd-ex2100.dtb >> zImage.fdt mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.13.8-mvebu-tld-1 -d zImage.fdt uImage mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.13.8-mvebu-tld-1 -d initrd.img-5.13.8-mvebu-tld-1 uInitrd sync sync sync shutdown -r nowAm I doing something wrong?
Re: Debian installation instructions for WD EX2100 August 31, 2021 05:09PM |
Admin Registered: 13 years ago Posts: 18,997 |
bootcmd=run bootcmd_custom; setenv bootargs root=/dev/ram console=ttyS0,115200; nand read.e 0xa00000 0x500000 0x500000;nand read.e 0xf00000 0xa00000 0x500000;bootm 0xa00000 0xf00000
setenv bootcmd_custom 'run bootcmd_usb'
boot
Re: Debian installation instructions for WD EX2100 September 01, 2021 06:40AM |
Registered: 3 years ago Posts: 4 |
... ## Error: "bootcmd_custom" not defined ...But didn't know what to set.
Re: Debian installation instructions for WD EX2100 September 01, 2021 11:27AM |
Registered: 3 years ago Posts: 4 |
setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=/dev/sdc1 rootdelay=10 earlyprintk=serial $mtdparts"'or
setenv usb_set_bootargs 'setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial $mtdparts"'Or remove your hdd's while booting from the USB stick.
... [ 1.626150] scsi 0:0:0:0: Direct-Access ATA WDC WD20EFRX-68E 0A82 PQ: 0 ANSI: 5 [ 1.626641] sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB) [ 1.626645] sd 0:0:0:0: [sda] 4096-byte physical blocks [ 1.626669] sd 0:0:0:0: [sda] Write Protect is off [ 1.626713] sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 1.627063] sd 0:0:0:0: Attached scsi generic sg0 type 0 [ 1.627644] ata2.00: configured for UDMA/133 [ 1.627787] scsi 1:0:0:0: Direct-Access ATA WDC WD20EFRX-68E 0A82 PQ: 0 ANSI: 5 [ 1.628333] sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.82 TiB) [ 1.628337] sd 1:0:0:0: [sdb] 4096-byte physical blocks [ 1.628360] sd 1:0:0:0: [sdb] Write Protect is off [ 1.628403] sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA [ 1.628643] sd 1:0:0:0: Attached scsi generic sg1 type 0 [ 1.658096] sdb: sdb1 sdb2 sdb3 sdb4 [ 1.658861] sd 1:0:0:0: [sdb] Attached SCSI removable disk [ 1.659730] sda: sda1 sda2 sda3 sda4 [ 1.660454] sd 0:0:0:0: [sda] Attached SCSI removable disk ... [ 3.047743] scsi 2:0:0:0: Direct-Access USB 2.0 Flash Disk 4.00 PQ: 0 ANSI: 2 [ 3.056299] sd 2:0:0:0: Attached scsi generic sg2 type 0 [ 3.061783] sd 2:0:0:0: [sdc] 1013887 2048-byte logical blocks: (2.08 GB/1.93 GiB) [ 3.069531] sd 2:0:0:0: [sdc] Write Protect is off [ 3.074468] sd 2:0:0:0: [sdc] Asking for cache data failed [ 3.080008] sd 2:0:0:0: [sdc] Assuming drive cache: write through [ 3.091790] sdc: sdc1 [ 3.094983] sd 2:0:0:0: [sdc] Attached SCSI removable disk ...
Re: Debian installation instructions for WD EX2100 September 01, 2021 02:51PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Debian installation instructions for WD EX2100 September 01, 2021 03:11PM |
Registered: 3 years ago Posts: 4 |