HowTo: Stora - Debian Stretch and OMV4 December 29, 2019 06:54PM |
Registered: 4 years ago Posts: 3 |
__ __ _ _ | \/ | __ _ _ ____ _____| | | | |\/| |/ _` | '__\ \ / / _ \ | | | | | | (_| | | \ V / __/ | | |_| |_|\__,_|_| \_/ \___|_|_| _ _ ____ _ | | | | | __ ) ___ ___ | |_ | | | |___| _ \ / _ \ / _ \| __| | |_| |___| |_) | (_) | (_) | |_ \___/ |____/ \___/ \___/ \__| ** MARVELL BOARD: RD-88F6281A LE U-Boot 1.1.4 (Sep 4 2009 - 09:36:11) Marvell version: 3.4.14 U-Boot code: 00600000 -> 0067FFF0 BSS: -> 006CEE60 Soc: 88F6281 A0 (DDR2) CPU running @ 1000Mhz L2 running @ 333Mhz SysClock = 333Mhz , TClock = 200Mhz DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6 DRAM CS[0] base 0x00000000 size 64MB DRAM CS[1] base 0x04000000 size 64MB DRAM Total size 128MB 16bit width Flash: 0 kB Addresses 8M - 0M are saved for the U-Boot usage. Mem malloc Initialization (8M - 7M): Done NAND:256 MB CRC in Flash: ac06e162, Calculated CRC: ac06e162 CPU : Marvell Feroceon (Rev 1) Streaming disabled Write allocate disabled Module 0 is RGMII Module 1 is TDM USB 0: host mode PEX 0: interface detected no Link. Net: egiga0, egiga1 [PRIME] Hit any key to stop autoboot: 3 :
setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x1100000 /boot/uInitrd' setenv bootcmd 'setenv bootargs $(console) root=LABEL=rootfs rootdelay=10; run bootcmd_usb; bootm 0x800000 0x1100000; reset' setenv console 'console=ttyS0,115200 mtdparts=orion_nand:0x100000@0(uboot),0xff00000@0x100000(root)' saveenv reset
apt update apt upgrade cd /boot mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-4.12.1-kirkwood-tld-1 -d initrd.img-4.12.1-kirkwood-tld-1 uInitrd
cd mkdir boot_4.12.1 cd boot_4.12.1 cp -r /boot/* . cd /boot tar xjf /root/linux-5.2.9-kirkwood-tld-1-bodhi.tar.bz2 tar xf linux-dtb-5.2.9-kirkwood-tld-1.tar apt-get remove flash-kernel dpkg -i linux-image-5.2.9-kirkwood-tld-1_1.0_armel.deb mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.2.9-kirkwood-tld-1 -d vmlinuz-5.2.9-kirkwood-tld-1 uImage mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.2.9-kirkwood-tld-1 -d initrd.img-5.2.9-kirkwood-tld-1 uInitrdOMV4 requires systemd, so add it to boot env
fw_setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params init=/bin/systemd'systemd requires a larger /run tmpfs than the default, so add "none /run tmpfs defaults,size=20M 0 0" to /etc/fstab
cd mkdir boot_5.2.9_pre-OMV4 cd boot_5.2.9_pre-OMV4 cp -r /boot/* .Prepare for OMV4 install
apt install -y aptitude curl apt-transport-httpsSet up sources
echo "deb http://packages.openmediavault.org/public arrakis main" > /etc/apt/sources.list.d/openmediavault.list curl -k -s http://packages.openmediavault.org/public/archive.key | apt-key add - apt updateStart Installation
export LANG=C.UTF-8 export DEBIAN_FRONTEND=noninteractive export APT_LISTCHANGES_FRONTEND=none apt-get --yes --auto-remove --show-upgraded \ --allow-downgrades --allow-change-held-packages \ --no-install-recommends \ --option Dpkg::Options::="--force-confdef" \ --option DPkg::Options::="--force-confold" \ install postfix openmediavault-keyring openmediavault cp /usr/share/openmediavault/templates/config.xml /etc/openmediavault/ omv-initsystem omv-mkconf interfaces omv-mkconf issueIf there are problems with masked services:
systemctl unmask openmediavault-beep-up systemctl unmask openmediavault-beep-down systemctl unmask openmediavault-cleanup-monit systemctl unmask openmediavault-cleanup-php systemctl unmask openmediavault-engined systemctl unmask openmediavault-issue apt install -y openmediavault omv-initsystemIf network interface has stopped working after a reboot, add the following to /etc/network/interfaces:
mdadm --create /dev/md0 --metadata=0.90 --level=1 --raid-devices=2 missing /dev/sdb1 mdadm --create /dev/md1 --metadata=0.90 --level=1 --raid-devices=2 missing /dev/sdb2 mkfs.ext4 -L rootfs /dev/md0 mkswap -L swap /dev/md1In the DEVICE section of /etc/mdadm/mdadm.conf add "DEVICE /dev/sd?*"
mdadm --detail --scan >> /etc/mdadm/mdadm.conf dpkg-reconfigure mdadm cd /boot mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.2.9-kirkwood-tld-1 -d vmlinuz-5.2.9-kirkwood-tld-1 uImage mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.2.9-kirkwood-tld-1 -d initrd.img-5.2.9-kirkwood-tld-1 uInitrdclone rootfs from /dev/sda1:
mkdir /tmp/mnt mount /dev/md0 /tmp/mnt rsync -auHxv --exclude=/proc/* --exclude=/sys/* --exclude=/tmp/* /* /tmp/mntPower off the unit and remove disk 1
mdadm --add /dev/md0 /dev/sdb1 mdadm --add /dev/md1 /dev/sdb2Create partitions on the drives taking up the remaining free space
mdadm --create /dev/md2 --level=1 --raid-devices=2 missing /dev/sda3 mdadm --add /dev/md2 /dev/sdb3
apt install -y dirmngr
wget -O - https://github.com/OpenMediaVault-Plugin-Developers/packages/raw/master/install | bash
Re: HowTo: Stora - Debian Stretch and OMV4 December 30, 2019 02:05AM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: HowTo: Stora - Debian Stretch and OMV4 December 30, 2019 08:04PM |
Registered: 4 years ago Posts: 3 |
Re: HowTo: Stora - Debian Stretch and OMV4 December 31, 2019 01:57AM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: HowTo: Stora - Debian Stretch and OMV4 January 02, 2020 07:59AM |
Admin Registered: 13 years ago Posts: 18,821 |
Quote
Media Streaming
OpenMediaVault
Debian Stretch and OpenMediaVault (OMV4) on Netgear Stora
TrashCanMan
Re: HowTo: Stora - Debian Stretch and OMV4 January 08, 2020 05:02PM |
Create EXT4 partition on /dev/sda1 and label it rootfs - mkfs.ext4 -l rootfs /dev/sda1
Create EXT4 partition on /dev/sda1 and label it rootfs - mkfs.ext4 -L rootfs /dev/sda1
Re: HowTo: Stora - Debian Stretch and OMV4 January 21, 2020 06:38AM |
Registered: 9 years ago Posts: 11 |
Re: HowTo: Stora - Debian Stretch and OMV4 February 24, 2020 11:48PM |
Registered: 4 years ago Posts: 39 |
Re: HowTo: Stora - Debian Stretch and OMV4 February 25, 2020 12:57AM |
Admin Registered: 13 years ago Posts: 18,821 |
Quote
Hello. Maybe someone will help me. I have a problem downloading Debian on Netgear Stora. I changed it as per setenv instructions and Linux started to load, but why there are empty lines and an error at the end. What should I do next? How to at least return to the default bootloader settings?
Re: HowTo: Stora - Debian Stretch and OMV4 February 25, 2020 03:42AM |
Registered: 4 years ago Posts: 39 |
Re: HowTo: Stora - Debian Stretch and OMV4 February 25, 2020 04:14AM |
Registered: 4 years ago Posts: 39 |
Re: HowTo: Stora - Debian Stretch and OMV4 February 25, 2020 04:21AM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: HowTo: Stora - Debian Stretch and OMV4 February 25, 2020 04:26AM |
Admin Registered: 13 years ago Posts: 18,821 |
Quote
4. Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Do not do this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time).
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.2.9-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.2.9-kirkwood-tld-1 -d zImage.fdt uImage
sync
Re: HowTo: Stora - Debian Stretch and OMV4 February 25, 2020 03:42PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: HowTo: Stora - Debian Stretch and OMV4 March 04, 2020 10:32PM |
Registered: 4 years ago Posts: 39 |
imianz
Re: HowTo: Stora - Debian Stretch and OMV4 March 30, 2020 12:45AM |
systemd-journald [302]: Failed to open runtime journal: No space left on device
root@stora:/# df -h -BM Filesystem 1M-blocks Used Available Use% Mounted on udev 51M 0M 51M 0% /dev tmpfs 57M 14M 44M 24% /run /dev/md0 8000M 2055M 5520M 28% / tmpfs 57M 0M 57M 0% /dev/shm tmpfs 5M 0M 5M 0% /run/lock tmpfs 57M 0M 57M 0% /sys/fs/cgroup tmpfs 57M 0M 57M 0% /tmp /dev/md3 31911M 244M 30025M 1% /srv/dev-disk-by-label-BACK /dev/md2 1836265M 463241M 1279679M 27% /srv/dev-disk-by-label-DATI root@stora:/# free total used free shared buff/cache available Mem: 115344 37760 6092 2808 71492 68172 Swap: 262076 51456 210620 root@stora:/# cat /etc/fstab # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> LABEL=rootfs / ext4 noatime,errors=remount-ro 0 1 LABEL=swap swap swap defaults 0 0 tmpfs /tmp tmpfs defaults 0 0 ##none /run tmpfs defaults,size=20M 0 0 none /run tmpfs defaults,size=57M 0 0
Re: HowTo: Stora - Debian Stretch and OMV4 March 30, 2020 03:40AM |
Admin Registered: 13 years ago Posts: 18,821 |
imianz
Re: HowTo: Stora - Debian Stretch and OMV4 March 31, 2020 02:24AM |
imianz
Re: HowTo: Stora - Debian Stretch and OMV4 April 08, 2020 08:06AM |
imianz
Re: HowTo: Stora - Debian Stretch and OMV4 April 08, 2020 01:09PM |
Here is the config file for syslogd. If that SYSLOG_OPTS line is commented out like below, then the system logging will be back to disk (var/log). cat /etc/default/busybox-syslogd # Defaults for busybox-syslogd initscript # This is a POSIX shell fragment sourced by /etc/init.d/busybox-syslogd # Additional options that are passed to the daemons. Default is to log # to ring buffer (to be read with logread(1)) and drop duplicates. SYSLOG_OPTS="-C128" KLOG_OPTS="" Temporarily remove the option by commenting it out. #SYSLOG_OPTS="-C128" And then restart busybox-syslogd, or reboot the system.
Re: HowTo: Stora - Debian Stretch and OMV4 April 08, 2020 05:42PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: HowTo: Stora - Debian Stretch and OMV4 April 25, 2020 05:25AM |
Registered: 5 years ago Posts: 3 |
U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:38:05 -0700) Netgear Stora MS2110 SoC: Kirkwood 88F6281_A1 DRAM: 128 MiB WARNING: Caches not enabled NAND: 256 MiB In: serial Out: serial Err: serial Net: egiga0 PHY reset timed out 88E1116 Initialized on egiga0 Hit any key to stop autoboot: 0 Unknown command 'etenv' - try 'help' starting USB... USB0: USB EHCI 1.00 scanning bus 0 for devices... 1 USB Device(s) found scanning usb for storage devices... 0 Storage Device(s) found ** Bad device usb 0 ** ** Bad device usb 0 ** Wrong Image Format for bootm command ERROR: can't get kernel image! resetting ...Maybe i did something wrong with creating 8gb partition?
root@debian:~# fdisk -l Disk /dev/mtdblock0: 1 MiB, 1048576 bytes, 2048 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mtdblock1: 6 MiB, 6291456 bytes, 12288 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/mtdblock2: 249 MiB, 261095424 bytes, 509952 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk /dev/sda: 2.7 TiB, 3000592982016 bytes, 5860533168 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disklabel type: gpt Disk identifier: 9F0307D4-C7E5-4737-AD10-A0D4F61C7FEE Device Start End Sectors Size Type /dev/sda1 2048 16779263 16777216 8G Linux filesystem /dev/sda2 16779264 17303551 524288 256M Plan 9 partition Disk /dev/sdb: 7.5 GiB, 8053063680 bytes, 15728640 sectors Units: sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disklabel type: dos Disk identifier: 0x98c0bdf7 Device Boot Start End Sectors Size Id Type /dev/sdb1 2048 15728639 15726592 7.5G 83 Linux
Re: HowTo: Stora - Debian Stretch and OMV4 April 25, 2020 06:55AM |
Admin Registered: 13 years ago Posts: 18,821 |
> > U-Boot 2017.07-tld-1 (Sep 05 2017 - 00:38:05 > -0700) > Netgear Stora MS2110 > > SoC: Kirkwood 88F6281_A1 > DRAM: 128 MiB > WARNING: Caches not enabled > NAND: 256 MiB > In: serial > Out: serial > Err: serial > Net: egiga0 > PHY reset timed out > 88E1116 Initialized on egiga0 > Hit any key to stop autoboot: 0 > Unknown command 'etenv' - try 'help' > starting USB... > USB0: USB EHCI 1.00 > scanning bus 0 for devices... 1 USB Device(s) > found > scanning usb for storage devices... 0 > Storage Device(s) found > ** Bad device usb 0 ** > ** Bad device usb 0 ** > Wrong Image Format for bootm command > ERROR: can't get kernel image! > resetting ... >> Maybe i did something wrong with creating 8gb
> root@debian:~# fdisk -l > Disk /dev/mtdblock0: 1 MiB, 1048576 bytes, 2048 > sectors > Units: sectors of 1 * 512 = 512 bytes > Sector size (logical/physical): 512 bytes / 512 > bytes > I/O size (minimum/optimal): 512 bytes / 512 bytes > > > Disk /dev/mtdblock1: 6 MiB, 6291456 bytes, 12288 > sectors > Units: sectors of 1 * 512 = 512 bytes > Sector size (logical/physical): 512 bytes / 512 > bytes > I/O size (minimum/optimal): 512 bytes / 512 bytes > > > Disk /dev/mtdblock2: 249 MiB, 261095424 bytes, > 509952 sectors > Units: sectors of 1 * 512 = 512 bytes > Sector size (logical/physical): 512 bytes / 512 > bytes > I/O size (minimum/optimal): 512 bytes / 512 bytes > > > Disk /dev/sda: 2.7 TiB, 3000592982016 bytes, > 5860533168 sectors > Units: sectors of 1 * 512 = 512 bytes > Sector size (logical/physical): 512 bytes / 4096 > bytes > I/O size (minimum/optimal): 4096 bytes / 4096 > bytes > Disklabel type: gpt > Disk identifier: > 9F0307D4-C7E5-4737-AD10-A0D4F61C7FEE > > Device Start End Sectors Size Type > /dev/sda1 2048 16779263 16777216 8G Linux > filesystem > /dev/sda2 16779264 17303551 524288 256M Plan 9 > partition > > > Disk /dev/sdb: 7.5 GiB, 8053063680 bytes, 15728640 > sectors > Units: sectors of 1 * 512 = 512 bytes > Sector size (logical/physical): 512 bytes / 512 > bytes > I/O size (minimum/optimal): 512 bytes / 512 bytes > Disklabel type: dos > Disk identifier: 0x98c0bdf7 > > Device Boot Start End Sectors Size Id > Type > /dev/sdb1 2048 15728639 15726592 7.5G 83 > Linux >
printenv
Re: HowTo: Stora - Debian Stretch and OMV4 April 25, 2020 12:31PM |
Registered: 5 years ago Posts: 3 |
Netgear Stora> printenv arcNumber=2743 baudrate=115200 bootargs=console=ttyS0,115200 root=LABEL=rootfs rootdelay=8 bootargs_usb=console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 earlyprintk=ser ial bootcmd=etenv bootargs $(console) root=LABEL=rootfs rootdelay=10; run bootcmd_us b; bootm 0x800000 0x1100000; reset bootcmd_exec=run load_uimage; if run load_initrd; then if run load_dtb; then boo tm $load_uimage_addr $load_initrd_addr $load_dtb_addr; else bootm $load_uimage_a ddr $load_initrd_addr; fi; else if run load_dtb; then bootm $load_uimage_addr - $load_dtb_addr; else bootm$load_uimage_addr; fi; fi bootcmd_usb=usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x1100000 /boot/uInitrd bootdelay=10 bootdev=usb console=00 mtdparts=orion_nand:0x100000@0(uboot),0xf00000@0x100000(root) devices=usb ide disks=0 1 2 3 dtb_file=/boot/dts/kirkwood-netgear_stora_ms2000 ethact=egiga0 ethaddr=52:3b:20:9c:11:51 fileaddr=800000 filesize=943910 if_netconsole=ping $serverip ipaddr=192.168.0.51 load_dtb=echo loading DTB $dtb_file ...; load $bootdev $device $load_dtb_addr $d tb_file load_dtb_addr=0x1c00000 load_initrd=echo loading uInitrd ...; load $bootdev $device $load_initrd_addr /b oot/uInitrd load_initrd_addr=0x1100000 load_uimage=echo loading uImage ...; load $bootdev $device $load_uimage_addr /bo ot/uImage load_uimage_addr=0x800000 mainlineLinux=yes preboot_nc=run if_netconsole start_netconsole rootfstype=ext2 rootsetenv=bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 init=/bi n/systemd scan_disk=echo running scan_disk ...; scan_done=0; setenv scan_usb "usb start"; setenv scan_ide "ide reset"; setenv scan_mmc "mmc rescan"; for dev in $devices ; do if test $scan_done -eq 0; then echo Scan device $dev; run scan_$dev; for di sknum in $disks; do if test $scan_done -eq 0; then echo device $dev $disknum:1; if load $dev $disknum:1 $load_uimage_addr /boot/uImage 1; then scan_done=1; echo Found bootable drive on $dev $disknum; setenv device $disknum:1; setenv bootdev $dev; fi; fi; done; fi; done serverip=192.168.0.87 set_bootargs=setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $mtdparts $custom_params init=/bin/systemd set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$root delay rootfstype=$rootfstype $mtdparts earlyprintk=serial start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; se tenv stdout nc; setenv stderr nc; version; stderr=serial stdin=serial stdout=serial uenv_addr=0x810000 uenv_init_devices=setenv init_usb "usb start"; setenv init_ide "ide reset"; se tenv init_mmc "mmc rescan"; for devtype in $devices; do run init_$devtype; done; uenv_loadsetenv=usb_init usb_ready_retry=15 Environment size: 2766/131068 bytes
Re: HowTo: Stora - Debian Stretch and OMV4 April 25, 2020 04:42PM |
Admin Registered: 13 years ago Posts: 18,821 |
Quote
At this point, hit any key to stop the autoboot. Enter the following at the prompt:
setenv bootcmd_usb 'usb start; ext2load usb 0:1 0x800000 /boot/uImage; ext2load usb 0:1 0x1100000 /boot/uInitrd'
setenv bootcmd 'setenv bootargs $(console) root=LABEL=rootfs rootdelay=10; run bootcmd_usb; bootm 0x800000 0x1100000; reset'
setenv console 'console=ttyS0,115200 mtdparts=orion_nand:0x100000@0(uboot),0xff00000@0x100000(root)'
saveenv
reset
setenv bootcmd 'run bootcmd_uenv; run scan_disk; run set_bootargs; run bootcmd_exec'
Re: HowTo: Stora - Debian Stretch and OMV4 April 26, 2020 11:53AM |
Registered: 5 years ago Posts: 3 |
Re: HowTo: Stora - Debian Stretch and OMV4 April 26, 2020 03:06PM |
Registered: 4 years ago Posts: 10 |
Re: HowTo: Stora - Debian Stretch and OMV4 June 27, 2020 04:56AM |
Registered: 4 years ago Posts: 46 |
Re: HowTo: Stora - Debian Stretch and OMV4 June 27, 2020 03:58PM |
Admin Registered: 13 years ago Posts: 18,821 |
Re: HowTo: Stora - Debian Stretch and OMV4 June 29, 2020 10:00AM |
Registered: 4 years ago Posts: 46 |
e.2 Box specific envs: Then for all boxes, restore these 2 envs using the saved envs text in step c (replace xxx with the real saved values) fw_setenv mtdparts 'xxxxxxxxx' fw_setenv ethaddr 'xx:xx:xx:xx:xx:xx'Both of my saved copies of 'current_envs.txt' have no mtdparts defined, and the 'ethaddr' definition looks too simple:
ethaddr=00:00:11:22:33:44I can see from my printenv I logged following the successful recovery, the following partition data
3 fixed-partitions partitions found on MTD device orion_nand Creating 3 MTD partitions on "orion_nand": 0x000000000000-0x000000100000 : "u-boot" 0x000000100000-0x000000700000 : "uImage" 0x000000700000-0x000010000000 : "root"Is this 'long hand' for the mtdparts definition?