bodhi, > bootcmd_uenv and scan_disk has duplicate logic > when you use them together. > > However, it is > necessary for each to be independent (working on > its own). I agree - they have to be able to work independently. But when they work together, it would be nice if they used the same function (called e.g. "init_devices") to initialize devices, which wouby odmink0 - Debian
So, here's what my final configuration looks like: /boot/uEnv.txt custom_params="earlyprintk root=PARTUUID=fdc2cedd-b7e3-9c46-b476-dec6ed5e6616 init=/bin/systemd" (PARTUUID above is PARTUUID of USB flash partition returned by "blkid" command). /root/build_fdt_image.sh: (running it manually after each kernel upgrade) #!/bin/sh set -e set -x cd /boot KERNEby odmink0 - Debian
Interesting: I have found out that U-Boot script has some duplicate logic, which of course causes small, but unnecessary delays. Here are what my boot commands approximately look(ed) like: bootcmd=\ run bootcmd_uenv;\ # Initializes devices, reads uEnv.txt run scan_disk;\ # Initializes devices (again), loads /boot/uImage run set_bootargs;\ # Sets kernel boot args fromby odmink0 - Debian
Ok, finally: ~25 seconds. It's the time from power button till the first ping - on a bare system, without systemd, OMV and HDDs. IMHO, this sounds much more reasonable than 60s - can't wait to check the boot time on the fully loaded system. Primary changes: * Got rid of uInitrd completely (also removed part of bootcmd that tried to load it), compiled-in necessary modules, using Pby odmink0 - Debian
Hello, Quotebodhi Use USB 3.0 flash drive will make booting a lot faster Agreed - I tried that and it saved me some seconds. But I would prefer to leave it as a "last resort" - right now I'm mostly interested in what can be done purely on the software side. Quote1000001101000 cross compiling is surprisingly easy Thanks for the hint! I tried to recompile the kernel usingby odmink0 - Debian
@bodhi, to clarify: I'm currently booting my NAS from USB flash drive, not from HDD, but I got the point, thank you. Some of that has already been done, like exclusion of extra devices from scanning. I've installed haveged and it didn't remove random number generator initialization - guess because it's a userspace program. I can attach a serial console, but wanted to fiby odmink0 - Debian
Hello, Thanks for all the hints. I think I could really opt for compiling a custom kernel and remove some modules. Should I cross-compile? Are there instructions available for that? @bodhi, could you maybe share some scripts you're using for compiling kernels for kirkwood CPUs? @1000001101000 getting rid of uInitrd sounds interesting - I have noticed that loading of images takes aboutby odmink0 - Debian
Hello, I'm overall satisfied with the performance of my NSA325 + latest u-Boot + Debian on USB flash drive, but one thing that I would like to improve is its boot time. I don't always keep it powered on and it takes more time to boot it than I need to make a cup of tea and get prepared to watch a movie (over SMBfs/minidlna) :-) Currently it takes about 1 minute from pressing the pby odmink0 - Debian
Hello. I was experiencing exactly the same problem with NSA325. Everything worked with clean rootfs and kernel, but didn't work with my system (which also has omv and lots of custom setup on it). Too large kernel was also the primary suspect (mine was also around 13MB) - so I decided to try and make it smaller. For that I have created "/etc/initramfs-tools/conf.d/custom.conf&quoby odmink0 - Debian
bodhi, Many thanks for the answers - I managed to update U-Boot, installed working system to flash drive (with 4.12.1 kernel for the time being) and installed OpenMediaVault on it - trying to configure it now.by odmink0 - uBoot
Hello, I bought a couple of 4TB WD disks for my NSA325, which I want to use in RAID 1 and decided that it's a good time to make the box more configurable by either installing a proper Linux distribution or something like Open Media Vault / OpenWRT. Essentially I'd like to have a web interface for common setup + SSH console and access to package repository for fine tuning. Recommendatby odmink0 - uBoot