DS411j with strange behavior, and no network September 07, 2023 03:54AM |
Registered: 1 year ago Posts: 80 |
[ 44.080000] RAMDISK: Couldn't find valid RAM disk image starting at 0. ... [ 44.160000] No filesystem could mount root, tried: ext3 ext2 ext4 [ 44.160000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(9,0)
bootcmd=bootm F8080000 F8280000 bootargs=console=ttyS0,115200 ip=off initrd=0x00800040,4M root=/dev/md0 rw syno_hw_version=DS411jv10 ihd_num=4 netif_num=1
Re: DS411j with strange behavior, and no network September 07, 2023 01:39PM |
Admin Registered: 13 years ago Posts: 18,997 |
ifconfig -aIt's likely to show there is no IP address. And then you'd go from there to look at the log, try something to bring the network up/down, for example,
ifdown eth0 ifup eth0
cat: can't open '/proc/sys/kernel/syno_skip_vender_mac_interfaces': No such file or directory [ 137.250000] eth0: stopped [ 137.250000] eth0: mac address changed [ 139.270000] eth0: link down [ 139.270000] eth0: started udhcpc (v1.16.1) started eth0 Link encap:Ethernet HWaddr 00:11:32:08:B5:6F UP BROADCAST MULTICAST MTU:1500 Metric:1 RX packets:48 errors:0 dropped:0 overruns:0 frame:0 TX packets:7 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:532 RX bytes:38509 (37.6 KiB) TX bytes:4130 (4.0 KiB) Interrupt:11 lo Link encap:Local Loopback inet addr:127.0.0.1 Mask:255.0.0.0 UP LOOPBACK RUNNING MTU:16436 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:0 RX bytes:0 (0.0 B) TX bytes:0 (0.0 B) :: Starting syslogd ... [ OK ] /etc/rc: line 264: /usr/syno/bin/syno_pstore_collect: not found :: Starting scemd [ 140.900000] eth0: link up, full duplex, speed 1 Gbps
ifdown eth0 ifup eth0
Re: DS411j with strange behavior, and no network September 08, 2023 12:32AM |
Registered: 1 year ago Posts: 80 |
bootcmd=bootm F8080000 F8280000is this same as 0x80000 and 0x280000 and one should always load to these adresses like this, regardless of kernel/rd versions?
tftpboot 0x80000 zImage tftpboot 0x280000 rd.bin
bootargs=console=ttyS0,115200 ip=off initrd=0x00800040,4M root=/dev/md0 rw syno_hw_version=DS411jv10 ihd_num=4 netif_num=1
Re: DS411j with strange behavior, and no network September 08, 2023 12:41PM |
Admin Registered: 13 years ago Posts: 18,997 |
> bootcmd=bootm F8080000 F8280000 >> is this same as 0x80000 and 0x280000 and one
Re: DS411j with strange behavior, and no network September 09, 2023 04:04PM |
Registered: 1 year ago Posts: 80 |
ERROR: flashInfoFill - Failed to get Device Base address and Size (spi_flash 0) or Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)I gave up the idea to run the stock kernel and followed the guide to boot the 5.13.6 kernel you made, on stock uboot without success.
Quote
Updated 26 Sept 2021:
Download at Dropbox:
Debian-5.13.6-kirkwood-tld-1-rootfs-bodhi.tar.bz2 (Bitly short link, use this if you can)
Installation can be done on any Linux box, with a fresh USB drive (SD card or HDD would work fine too).
Note: all steps below must be done while logging in as root user (not sudo). If you are not the root user then don't continue, because the rootfs will not work.
1. Format a new USB drive with a single Ext3 partition, and label it rootfs. If you are running the latest U-Boot for Kirkwood then you can use Ext4. But be aware that Ext4 file system format needs to be "finalized" before it can be used for booting.
2. Mount the drive on a Linux box. cd to top level directory and extract it. It is assuming the USB drive is mounted at /media/sdb1
cd /media/sdb1
tar -xjf Debian-5.13.6-kirkwood-tld-1-rootfs-bodhi.tar.bz2
3. Adjust fstab (optional).
Edit /media/sdb1/etc/fstab entry for root device to match the rootfstype of your rootfstype if you use Ext4 or Ext2. However, you can keep it as is without problem in booting since the kernel will figure out which file system the rootfs was formatted.
LABEL=rootfs / ext3 noatime,errors=remount-ro 0 1
4. (Stock u-boot only) Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Skip this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time, or running kwboot with latest u-boot image).
Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box (see the folder /media/sdb1/boot/dts for the exact spelling of your Kirkwood box name).
Generate the uImage with DTB embedded inside:
cd /media/sdb1/boot
cp -a zImage-5.13.6-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.13.6-kirkwood-tld-1 -d zImage.fdt uImage
sync
If your Linux box does not have mkimage, then install it
apt-get install u-boot-tools
5. Done.
Quote
Boot Kirkwood rootfs with stock u-boot
Note: I've updated this instruction to make it more robust (to take into consideration the limitation of much older stock u-boots)
Assuming you have created a USB rootfs following the instruction in the release thread.
Power up, interrupt u-boot count down, and then.
setenv usb_set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=serial'
setenv load_uimage 'ext2load usb 0:1 0x800000 /boot/uImage'
setenv load_uinitrd 'ext2load usb 0:1 0x2100000 /boot/uInitrd'
setenv usb_boot 'mw 0x800000 0 1; run load_uimage; run load_uinitrd; bootm 0x800000 0x2100000'
setenv usb_bootcmd 'run usb_set_bootargs; run usb_boot'
setenv bootcmd 'usb reset; run usb_bootcmd; usb stop; reset'
And then,
printenv
boot
Marvell>> boot Unknown command 'boot' - try 'help'
Marvell>> md ff00003c ff00003c: 00000000 00000000 00000000 00000000 ................
Re: DS411j with strange behavior, and no network September 09, 2023 05:21PM |
Admin Registered: 13 years ago Posts: 18,997 |
> Marvell>> boot > Unknown command 'boot' - try 'help' >
run bootcmd
Re: DS411j with strange behavior, and no network September 10, 2023 01:51AM |
Registered: 1 year ago Posts: 80 |
> run bootcmd >>
Marvell>> run bootcmd Unknown command 'run' - try 'help' Marvell>> bootcmd Unknown command 'bootcmd' - try 'help' Marvell>> help ? - alias for 'help' SatR - sample at reset sub-system, relevent for DB only base - print or set address offset bootm - boot application image from memory bootp - boot image via network using BootP/TFTP protocol bubt - Burn an image on the Boot Flash. cmp - memory compare cp - memory copy cpumap - Display CPU memory mapping settings. crc32 - checksum calculation echo - echo args to console erase - erase FLASH memory flinfo - print FLASH memory information go - start application at address 'addr' help - print online help icrc32 - checksum calculation iloop - infinite loop on address range imd - i2c memory display imm - i2c memory modify (auto-incrementing) imw - memory write (fill) inm - memory modify (constant address) iprobe - probe to discover valid I2C chip addresses loop - infinite loop on address range md - memory display mm - memory modify (auto-incrementing) mtest - simple RAM test mw - memory write (fill) nm - memory modify (constant address) pci - list and access PCI Configuration Space ping - send ICMP ECHO_REQUEST to network host printenv- print environment variables protect - enable or disable FLASH write protection rarpboot- boot image via network using RARP/TFTP protocol reset - Perform RESET of the CPU resetenv - Return all environment variable to default. setenv - set environment variables sflash - read, write or erase the external SPI Flash. tftpboot- boot image via network using TFTP protocol version - print monitor version Marvell>> version U-Boot 1.1.4 (Jul 14 2010 - 20:36:08) Marvell version: 3.4.4
Re: DS411j with strange behavior, and no network September 10, 2023 02:56PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: DS411j with strange behavior, and no network September 10, 2023 03:43PM |
Registered: 1 year ago Posts: 80 |
Re: DS411j with strange behavior, and no network September 10, 2023 04:04PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: DS411j with strange behavior, and no network September 10, 2023 04:56PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: DS411j with strange behavior, and no network September 11, 2023 01:41PM |
Registered: 1 year ago Posts: 80 |
Re: DS411j with strange behavior, and no network September 11, 2023 01:58PM |
Registered: 1 year ago Posts: 80 |
root@debian:~# ip a s 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 inet 127.0.0.1/8 scope host lo valid_lft forever preferred_lft forever inet6 ::1/128 scope host valid_lft forever preferred_lft forever 2: enx001ec2fb7987: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000 link/ether 00:1e:c2:fb:79:87 brd ff:ff:ff:ff:ff:ff inet 192.168.2.26/27 brd 192.168.2.31 scope global dynamic enx001ec2fb7987 valid_lft 604752sec preferred_lft 604752sec inet6 fe80::21e:c2ff:fefb:7987/64 scope link valid_lft forever preferred_lft forever
Re: DS411j with strange behavior, and no network September 11, 2023 03:41PM |
Admin Registered: 13 years ago Posts: 18,997 |
Quote
4. (Stock u-boot only) Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Skip this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time, or running kwboot with latest u-boot image).
Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box (see the folder /media/sdb1/boot/dts for the exact spelling of your Kirkwood box name).
Generate the uImage with DTB embedded inside:
cd /media/sdb1/boot
cp -a zImage-5.13.6-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-goflexnet.dtb >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.13.6-kirkwood-tld-1 -d zImage.fdt uImage
sync
cat dts/kirkwood-ds411j.dtb >> zImage.fdt
Re: DS411j with strange behavior, and no network September 12, 2023 03:22AM |
Registered: 1 year ago Posts: 80 |
Re: DS411j with strange behavior, and no network September 13, 2023 01:49AM |
Registered: 1 year ago Posts: 80 |
root@debian:/# cd /boot/ root@debian:/boot# cat dts/kirkwood-ds411j.dtb >> zImage.fdt root@debian:/boot# mv uImage uImage.orig root@debian:/boot# mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.13.6-kirkwood-tld-1 -d zImage.fdt uImage Image Name: Linux-5.13.6-kirkwood-tld-1 Created: Tue Sep 12 01:21:26 2023 Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 5468253 Bytes = 5340.09 KiB = 5.21 MiB Load Address: 00008000 Entry Point: 00008000 root@debian:/boot# sync root@debian:/boot#
Re: DS411j with strange behavior, and no network September 13, 2023 02:10PM |
Admin Registered: 13 years ago Posts: 18,997 |
> root@debian:/# cd /boot/ > root@debian:/boot# cat dts/kirkwood-ds411j.dtb >> > zImage.fdt > root@debian:/boot# mv uImage uImage.orig > root@debian:/boot# mkimage -A arm -O linux -T > kernel -C none -a 0x00008000 -e 0x00008000 -n > Linux-5.13.6-kirkwood-tld-1 -d zImage.fdt uImage > Image Name: Linux-5.13.6-kirkwood-tld-1 > Created: Tue Sep 12 01:21:26 2023 > Image Type: ARM Linux Kernel Image > (uncompressed) > Data Size: 5468253 Bytes = 5340.09 KiB = 5.21 > MiB > Load Address: 00008000 > Entry Point: 00008000 > root@debian:/boot# sync > root@debian:/boot# >
cd /boot cp -a zImage-5.13.6-kirkwood-tld-1 zImage.fdt cat dts/kirkwood-ds411j.dtb >> zImage.fdt mv uImage uImage.orig mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.13.6-kirkwood-tld-1 -d zImage.fdt uImage sync
ifconfig -a ethtool eth0
Re: DS411j with strange behavior, and no network September 14, 2023 04:10PM |
Registered: 1 year ago Posts: 80 |
Re: DS411j with strange behavior, and no network September 14, 2023 06:00PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: DS411j with strange behavior, and no network September 16, 2023 05:56PM |
Registered: 1 year ago Posts: 80 |
Re: DS411j with strange behavior, and no network September 19, 2023 12:32PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: DS411j with strange behavior, and no network September 27, 2023 01:40AM |
Registered: 1 year ago Posts: 80 |
> tar -xf linux-dtb-6.4.11-kirkwood-tld-1.tar >>
> -rw-r--r-- 1 root root 21212 Sep 23 15:59 > kirkwood-ds411j.dtb >> Also the md5sum matches with what you've posted.