Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 15, 2018 12:31AM |
Registered: 6 years ago Posts: 104 |
mtdparts=armada-nand:-(ubifs);spi1.0:0x00400000(uboot),0x00010000@0x00100000(uboot_env),0x00010000@0x00300000(uboot_scr)
$ cat /proc/mtd dev: size erasesize name mtd0: 20000000 00020000 "ubifs" mtd1: 00400000 00001000 "uboot" mtd2: 00010000 00001000 "uboot_env" mtd3: 00010000 00001000 "uboot_scr"
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 15, 2018 01:01AM |
Registered: 6 years ago Posts: 104 |
$ sudo nanddump --noecc --omitoob -f thecus_n2350.mtd0 /dev/mtd0 Block size 131072, page size 2048, OOB size 64 Dumping data starting at 0x00000000 and ending at 0x20000000... $ sudo dd if=/dev/mtd1 of=thecus_n2350.mtd1 bs=4096k conv=sync 1+0 records in 1+0 records out 4194304 bytes (4.2 MB, 4.0 MiB) copied, 7.02599 s, 597 kB/s $ sudo dd if=/dev/mtd2 of=thecus_n2350.mtd2 bs=3072k conv=sync 0+1 records in 1+0 records out 3145728 bytes (3.1 MB, 3.0 MiB) copied, 0.135414 s, 23.2 MB/s $ sudo flashcp -v u-boot-a38x-2015T1_p18_Thecus-tld-2-spi.bin /dev/mtd1 Erasing blocks: 235/235 (100%) Writing data: 937k/937k (100%) Verifying data: 937k/937k (100%) $ sudo ./thecus-n2350-boot-script-tld-3.sh boot_config=setenv devices "usb ide"; setenv bootdev usb; setenv device 0:1; setenv disks "0 1 2 3 4 5 6 7"; scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if ext2load $dev $disknum:1 $load_image_addr /boot/zImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done kernel_config=setenv load_dtb_addr 0x1000000; setenv load_initrd_addr 0x3000000; setenv load_image_addr 0x02000000; setenv dtb_file /boot/dts/armada-385-thecus-n2350.dtb load_image=echo loading zImage ...; ext2load $bootdev $device $load_image_addr /boot/zImage load_dtb=echo loading DTB $dtb_file ...; ext2load $bootdev $device $load_dtb_addr $dtb_file load_initrd=echo loading uInitrd ...; ext2load $bootdev $device $load_initrd_addr /boot/uInitrd set_bootargs=setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=armada-nand:-(ubifs);spi1.0:0x00400000(uboot),0x00010000@0x00100000(uboot_env),0x00010000@0x00300000(uboot_scr) earlyprintk=serial" set_bootargs_stock=setenv bootargs "root=/dev/ram0 rw max_loop=210 console=ttyS0,115200 init=sbin/init rootdelay=3 ubi.mtd=0 mtdparts=armada-nand:-(ubifs);spi_flash:0x00400000(uboot),0x00010000@0x00100000(uboot_env)" bootcmd_exec=echo Booting from $bootdev $device …; setenv fdt_skip_update yes; setenv initrd_high 0xffffffff; if run load_image; then; if run load_initrd; then if run load_dtb; then bootz $load_image_addr $load_initrd_addr $load_dtb_addr; else bootz $load_image_addr $load_initrd_addr; fi; else if run load_dtb; then bootz $load_image_addr - $load_dtb_addr; else bootz $load_image_addr; fi; fi; fi bootcmd_custom=run boot_config; run kernel_config; run scan_disk; run set_bootargs; run bootcmd_exec bootcmd=echo Booting Debian ...; run bootcmd_custom; echo Booting stock ...; run set_bootargs_stock; usb reset; if fatload usb 0:1 0x2000000 rescue_fw/rescue_fw.img;then imi 0x2000000;source 0x2000000; fi; ubi part ubifs;ubifsmount boot;ubifsload 0x2000000 boot/bzImage;ubifsload 0x3000000 boot/ramdisk;bootm 0x2000000 0x3000000
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 15, 2018 01:01AM |
Admin Registered: 13 years ago Posts: 19,016 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 15, 2018 01:04AM |
Admin Registered: 13 years ago Posts: 19,016 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 15, 2018 02:59PM |
Registered: 6 years ago Posts: 104 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 15, 2018 06:45PM |
Admin Registered: 13 years ago Posts: 19,016 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 15, 2018 10:03PM |
Admin Registered: 13 years ago Posts: 19,016 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 16, 2018 12:46AM |
Registered: 6 years ago Posts: 104 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 16, 2018 06:44AM |
Admin Registered: 13 years ago Posts: 19,016 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 25, 2018 03:46AM |
Admin Registered: 13 years ago Posts: 19,016 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 25, 2018 04:09AM |
Registered: 6 years ago Posts: 104 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) May 25, 2018 05:24PM |
Admin Registered: 13 years ago Posts: 19,016 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) November 09, 2018 10:35PM |
Admin Registered: 13 years ago Posts: 19,016 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) November 10, 2018 06:08PM |
Admin Registered: 13 years ago Posts: 19,016 |
fw_setenv boot_config 'setenv devices "scsi usb"; setenv bootdev scsi; setenv device 0:1; setenv disks "0 1 2 3 4 5 6 7";'
fw_setenv scan_disk 'echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_scsi "scsi reset"; for dev in $devices; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for disknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if ext2load $dev $disknum:1 $load_image_addr /boot/zImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done'
BootROM - 1.73 Booting from SPI flash General initialization - Version: 1.0.0 AVS selection from EFUSE disabled (Skip reading EFUSE values) Overriding default AVS value to: 0x23 Detected Device ID 6820 High speed PHY - Version: 2.0 Init Customer board board SerDes lanes topology details: | Lane # | Speed| Type | ------------------------------| | 0 | 0 | SGMII0 | | 1 | 3 | SATA0 | | 2 | 3 | SATA1 | | 4 | 5 | USB3 HOST0 | | 5 | 5 | USB3 HOST1 | ------------------------------- High speed PHY - Ended Successfully DDR4 Training Sequence - Ver TIP-0.23.(Sublib 0.8)0 DDR4 Training Sequence - Switching XBAR Window to FastPath Window DDR4 Training Sequence - Ended Successfully BootROM: Image checksum verification PASSED __ __ _ _ | \/ | __ _ _ ____ _____| | | | |\/| |/ _` | '__\ \ / / _ \ | | | | | | (_| | | \ V / __/ | | |_| |_|\__,_|_| \_/ \___|_|_| _ _ ____ _ | | | | | __ ) ___ ___ | |_ | | | |___| _ \ / _ \ / _ \| __| | |_| |___| |_) | (_) | (_) | |_ \___/ |____/ \___/ \___/ \__| ** LOADER ** U-Boot 2013.01 (May 12 2018 - 16:14:10) Marvell version: 2015_T1.0p18-tld-2 Board: A38x-Customer0-Thecus-N2350 SoC: MV88F6820 Rev A0 running 2 CPUs CPU: ARM Cortex A9 MPCore (Rev 1) LE CPU 0 CPU @ 1066 [MHz] L2 @ 800 [MHz] TClock @ 200 [MHz] DDR4 @ 800 [MHz] DDR4 32 Bit Width,FastPath Memory Access, DLB Enabled, ECC Disabled DRAM: 1 GiB NAND: 512 MiB MMC: mv_sdh: 0 SF: Detected MX25L3205D with page size 64 KiB, total 4 MiB USB2.0 0: Host Mode USB3.0 0: Host Mode USB3.0 1: Host Mode Map: Code: 0x3fed4000:0x3ff95cfc BSS: 0x3ffef504 Stack: 0x3f9c3f20 Heap: 0x3f9c4000:0x3fed4000 U-Boot Environment: 0x00100000:0x00110000 (SPI) Board configuration detected: Net: | port | Interface | PHY address | |--------|-----------|--------------| | egiga0 | SGMII | 0x01 | egiga0 [PRIME] Hit any key to stop autoboot: 0 Booting Debian ... running scan_disk ... Scan device scsi Reset SCSI AHCI init for unit0 Target spinup took 0 ms. SATA link 1 timeout. Error: SCSI Controller(s) 1B4B:9215 1B4B:9235 not found scanning bus for devices... Device 0: (0:0) Vendor: ATA Prod.: ST750LX003-1AC15 Rev: SM12 Type: Hard Disk Capacity: 715404.8 MB = 698.6 GB (1465149168 x 512) Found 1 device(s). device scsi 0:1 1 bytes read in 150 ms (0 Bytes/s) Found bootable drive on scsi 0 Booting from scsi 0:1 … loading zImage ... 4502408 bytes read in 601 ms (7.1 MiB/s) loading uInitrd ... 8661185 bytes read in 437 ms (18.9 MiB/s) loading DTB /boot/dts/armada-385-thecus-n2350.dtb ... 19574 bytes read in 121 ms (157.2 KiB/s) ## Loading init Ramdisk from Legacy Image at 03000000 ... Image Name: initramfs-4.19.1-mvebu-tld-1 Created: 2018-11-10 3:53:23 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 8661121 Bytes = 8.3 MiB Load Address: 00000000 Entry Point: 00000000 ## Flattened Device Tree blob at 01000000 Booting using the fdt blob at 0x01000000 Loading Device Tree to 00ff8000, end 00fffc75 ... OK
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) November 11, 2018 01:02PM |
Registered: 6 years ago Posts: 104 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) November 11, 2018 05:23PM |
Admin Registered: 13 years ago Posts: 19,016 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) November 12, 2018 04:24AM |
Admin Registered: 13 years ago Posts: 19,016 |
Board: A38x-Customer0-Thecus-N2350 SoC: MV88F6820 Rev A0 running 2 CPUs CPU: ARM Cortex A9 MPCore (Rev 1) LE CPU 0 CPU @ 1066 [MHz] L2 @ 800 [MHz] TClock @ 200 [MHz] DDR4 @ 800 [MHz] DDR4 32 Bit Width,FastPath Memory Access, DLB Enabled, ECC Disabled DRAM: 1 GiB NAND: 512 MiB MMC: mv_sdh: 0 SF: Detected MX25L3205D with page size 64 KiB, total 4 MiB USB2.0 0: Host Mode USB3.0 0: Host Mode USB3.0 1: Host Mode Map: Code: 0x3fed4000:0x3ff964f4 BSS: 0x3ffeff24 Stack: 0x3f9c3f20 Heap: 0x3f9c4000:0x3fed4000 U-Boot Environment: 0x00100000:0x00110000 (SPI) Board configuration detected: Port0: phyAddr=0x1, Not Marvell PHY id1 ffff id2 ffff PHY error - shutdown port0 Net: | port | Interface | PHY address | |--------|-----------|--------------| | egiga0 | SGMII | 0x01 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) November 12, 2018 04:41AM |
Registered: 6 years ago Posts: 104 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) November 12, 2018 06:15AM |
Admin Registered: 13 years ago Posts: 19,016 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) November 12, 2018 04:45PM |
Admin Registered: 13 years ago Posts: 19,016 |
Quote
Speculation:
If this is a hardware problem and why it has been working with old u-boot.
I think we might have been lucky that the memory region, where the PHY ID is, contains some dirty value :) So the PHY was detected. When I rebuilt u-boot with more code, I might have shifted the memory location, so it was now zero out the PHY ID. So it was not detected.
U-Boot 2013.01 (May 12 2018 - 16:14:10) Marvell version: 2015_T1.0p18-tld-2 Board: A38x-Customer0-Thecus-N2350 SoC: MV88F6820 Rev A0 running 2 CPUs CPU: ARM Cortex A9 MPCore (Rev 1) LE CPU 0 CPU @ 1066 [MHz] L2 @ 800 [MHz] TClock @ 200 [MHz] DDR4 @ 800 [MHz] DDR4 32 Bit Width,FastPath Memory Access, DLB Enabled, ECC Disabled DRAM: 1 GiB NAND: 512 MiB MMC: mv_sdh: 0 SF: Detected MX25L3205D with page size 64 KiB, total 4 MiB USB2.0 0: Host Mode USB3.0 0: Host Mode USB3.0 1: Host Mode Map: Code: 0x3fed4000:0x3ff95cfc BSS: 0x3ffef504 Stack: 0x3f9c3f20 Heap: 0x3f9c4000:0x3fed4000 U-Boot Environment: 0x00100000:0x00110000 (SPI) Board configuration detected: Net: | port | Interface | PHY address | |--------|-----------|--------------| | egiga0 | SGMII | 0x01 | egiga0 [PRIME] Hit any key to stop autoboot: 0
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) November 14, 2018 11:06AM |
Registered: 6 years ago Posts: 104 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) November 14, 2018 02:11PM |
Admin Registered: 13 years ago Posts: 19,016 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) November 15, 2018 04:57AM |
Admin Registered: 13 years ago Posts: 19,016 |
Quote
u-boot-a38x-2015T1_p18_Thecus-tld-4-spi-uart.bin
u-boot-a38x-2015T1_p18_Thecus-tld-4-spi.bin
download-serial.sh
send-stop-pattern
send-stop-pattern.c
serverip=192.168.0.253 if_netconsole=ping $serverip preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; preboot=run preboot_nc
nc -lup 6666 192.168.0.254 6666
U-Boot 2013.01 (Nov 12 2018 - 20:56:19) Marvell version: 2015_T1.0p18-tld-4 arm-linux-gnueabi-gcc (Linaro GCC 4.9-2017.01) 4.9.4 GNU ld (Linaro_Binutils-2017.01) 2.24.0.20141017 Linaro 2014_11-3-git Hit any key to stop autoboot: 0
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) November 22, 2018 06:41PM |
Admin Registered: 13 years ago Posts: 19,016 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) November 24, 2018 03:01PM |
Registered: 6 years ago Posts: 104 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) November 24, 2018 06:32PM |
Admin Registered: 13 years ago Posts: 19,016 |
/* Wait for the data to update in the SMI register */ for (timeout = 0; timeout < ETH_PHY_TIMEOUT; timeout++) ;
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) August 25, 2019 03:01PM |
Admin Registered: 13 years ago Posts: 19,016 |
load_image=echo loading uImage ...; ext2load $bootdev $device $load_image_addr /boot/uImage bootcmd_exec=echo Booting from $bootdev $device …; setenv fdt_skip_update yes; setenv initrd_high 0xffffffff; if run load_image; then if run load_initrd; then bootm $load_image_addr $load_initrd_addr; else bootm $load_image_addr; fi; fi
cd /boot cp -a zImage-5.2.9-mvebu-tld-1 zImage.fdt cat dts/armada-385-thecus-n2350.dtb >> zImage.fdt mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.2.9-mvebu-tld-1 -d zImage.fdt uImage
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) September 03, 2019 04:14AM |
Registered: 6 years ago Posts: 104 |
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) September 03, 2019 03:47PM |
Admin Registered: 13 years ago Posts: 19,016 |
Thecus N2350 Linux version 5.2.9-mvebu-tld-1 (root@tldDebianVM) (gcc version 7.4.0 (Ubuntu/Linaro 7.4.0-1ubuntu1~18.04.1)) #1 SMP PREEMPT Mon Aug 19 12:47:39 PDT 2019 Debian 10.0 console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=pxa3xx_nand-0:-(ubifs);spi1.0:0x00400000(uboot),0x00010000@0x00100000(uboot_env),0x00010000@0x00300000(uboot_scr) earlyprintk=serial uboot_version=U-Boot 2013.01 (Nov 12 2018 - 20:56:19) Marvell version: 2015_T1.0p18-tld-4
ii libgudev-1.0-0:armel 232-2 armel GObject-based wrapper library for libudev ii libudev0:armel 175-7.2 armel libudev shared library ii libudev1:armel 241-5 armel libudev shared library ii udev 241-5 armel /dev/ and hotplug management daemon
[ 0.000000] OF: fdt: Machine model: Thecus N2350 [ 4.172727] mvneta f1070000.ethernet eth0: Using hardware mac address 00:14:xx:xx:xx:xx [ 25.068216] systemd-udevd[1790]: Could not generate persistent MAC address for ip6tnl0: No such file or directory
net.ipv6.conf.all.disable_ipv6 = 1 net.ipv6.conf.all.disable_policy = 0 net.ipv6.conf.default.disable_ipv6 = 1 net.ipv6.conf.default.disable_policy = 0 net.ipv6.conf.eth0.disable_ipv6 = 1 net.ipv6.conf.eth0.disable_policy = 0 net.ipv6.conf.ip6tnl0.disable_ipv6 = 1 net.ipv6.conf.ip6tnl0.disable_policy = 0 net.ipv6.conf.lo.disable_ipv6 = 1 net.ipv6.conf.lo.disable_policy = 0 net.ipv6.conf.sit0.disable_ipv6 = 1 net.ipv6.conf.sit0.disable_policy = 0
Re: Debian Installation on Thecus N2350 (Marvell Armada 385) September 04, 2019 04:25AM |
Registered: 6 years ago Posts: 104 |
Quote
bodhi
However, let's compare the system info on our boxes.
mjung@vega:~$ dpkg -l | grep udev ii libgudev-1.0-0:armhf 232-2 armhf GObject-based wrapper library for libudev ii libinput-bin 1.12.6-2 armhf input device management and event handling library - udev quirks ii libudev1:armhf 241-5 armhf libudev shared library ii udev 241-5 armhf /dev/ and hotplug management daemon
mjung@vega:~$ dmesg | grep -i mac [ 0.000000] OF: fdt: Machine model: Thecus N2350 [ 4.119846] mvneta f1070000.ethernet eth0: Using random mac address 7e:ee:ba:fa:20:8b [ 17.225243] systemd[1]: systemd 241 running in system mode. (+PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD -IDN2 +IDN -PCRE2 default-hierarchy=hybrid)
mjung@vega:~$ sudo sysctl -a | grep ipv6 | grep disable net.ipv6.conf.all.disable_ipv6 = 0 net.ipv6.conf.all.disable_policy = 0 net.ipv6.conf.default.disable_ipv6 = 0 net.ipv6.conf.default.disable_policy = 0 net.ipv6.conf.eth0.disable_ipv6 = 0 net.ipv6.conf.eth0.disable_policy = 0 net.ipv6.conf.ip6tnl0.disable_ipv6 = 0 net.ipv6.conf.ip6tnl0.disable_policy = 0 net.ipv6.conf.lo.disable_ipv6 = 0 net.ipv6.conf.lo.disable_policy = 0 net.ipv6.conf.sit0.disable_ipv6 = 0 net.ipv6.conf.sit0.disable_policy = 0