Reducing boot time on NSA325 May 28, 2020 06:59PM |
Registered: 5 years ago Posts: 11 |
Re: Reducing boot time on NSA325 May 28, 2020 08:26PM |
Registered: 5 years ago Posts: 258 |
Re: Reducing boot time on NSA325 May 28, 2020 09:09PM |
Admin Registered: 13 years ago Posts: 18,896 |
Re: Reducing boot time on NSA325 May 28, 2020 10:04PM |
Registered: 5 years ago Posts: 258 |
Re: Reducing boot time on NSA325 May 29, 2020 07:13PM |
Registered: 5 years ago Posts: 11 |
[ 2.560046 < 2.236732>] random: fast init done
[ 4.160372 < 1.600326>] raid6: int32x8 gen() 151 MB/s [ 4.330190 < 0.169818>] raid6: int32x8 xor() 92 MB/s [ 4.500158 < 0.169968>] raid6: int32x4 gen() 147 MB/s [ 4.670172 < 0.170014>] raid6: int32x4 xor() 96 MB/s [ 4.840068 < 0.169896>] raid6: int32x2 gen() 190 MB/s [ 5.010095 < 0.170027>] raid6: int32x2 xor() 113 MB/s [ 5.180143 < 0.170048>] raid6: int32x1 gen() 133 MB/s [ 5.350181 < 0.170038>] raid6: int32x1 xor() 79 MB/s
[ 6.422669 < 1.069587>] *** VALIDATE bpf ***
[ 7.496023 < 0.002157>] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 7.497145 < 0.001122>] printk: console [ttyS0] disabled [ 7.497225 < 0.000080>] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 26, base_baud = 12500000) is a 16550A [ 8.469125 < 0.971900>] printk: console [ttyS0] enabled
[ 11.045165 < 0.015915>] sd 2:0:0:0: [sda] Attached SCSI removable disk [ 20.671624 < 9.626459>] process '/usr/bin/fstype' started with executable stack [ 20.899216 < 0.227592>] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem [ 21.125538 < 0.226322>] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 24.892107 < 3.766569>] systemd-udevd[421]: Using default interface naming scheme 'v240'.
Re: Reducing boot time on NSA325 May 29, 2020 10:04PM |
Registered: 5 years ago Posts: 258 |
apt-get -y install libc6-armel-cross libc6-dev-armel-cross binutils-arm-linux-gnueabi libncurses5-dev gcc-arm-linux-gnueabihf gcc-arm-linux-gnueabi build-essential git
root=/dev/sda2
Re: Reducing boot time on NSA325 May 29, 2020 10:27PM |
Admin Registered: 13 years ago Posts: 18,896 |
Re: Reducing boot time on NSA325 May 29, 2020 11:27PM |
Admin Registered: 13 years ago Posts: 18,896 |
Quote
Is it possible to set up some sort of profiling / diagnostics / logging for u-Boot booting process - so that I could identify and potentially remove slow points in it?
Quote
[ 11.045165 < 0.015915>] sd 2:0:0:0: [sda] Attached SCSI removable disk
[ 20.671624 < 9.626459>] process '/usr/bin/fstype' started with executable stack
[ 20.899216 < 0.227592>] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[ 21.125538 < 0.226322>] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
This is probably the most interesting part - 9 seconds just to mount rootfs. I'm not sure what's happening there - some sort of filesystem check or anything? Any thoughts on how to prevent that or at least understand what happens?
Re: Reducing boot time on NSA325 May 29, 2020 11:30PM |
Admin Registered: 13 years ago Posts: 18,896 |
Quote
[ 2.560046 < 2.236732>] random: fast init done
Looks like a kernel-level random number generator initialisation. Can it be switched off somehow? Are there any drawbacks?
Re: Reducing boot time on NSA325 May 30, 2020 01:22AM |
Admin Registered: 13 years ago Posts: 18,896 |
fw_setenv devices ide
Re: Reducing boot time on NSA325 May 30, 2020 01:26AM |
Admin Registered: 13 years ago Posts: 18,896 |
Quote
[ 24.892107 < 3.766569>] systemd-udevd[421]: Using default interface naming scheme 'v240'.
Re: Reducing boot time on NSA325 May 30, 2020 03:01AM |
Registered: 5 years ago Posts: 11 |
Re: Reducing boot time on NSA325 May 30, 2020 04:51AM |
Admin Registered: 13 years ago Posts: 18,896 |
Re: Reducing boot time on NSA325 May 30, 2020 07:08PM |
Registered: 5 years ago Posts: 11 |
Quote
bodhi
Use USB 3.0 flash drive will make booting a lot faster
Quote
1000001101000
cross compiling is surprisingly easy
Re: Reducing boot time on NSA325 May 30, 2020 09:32PM |
Admin Registered: 13 years ago Posts: 18,896 |
Re: Reducing boot time on NSA325 June 01, 2020 07:38PM |
Registered: 5 years ago Posts: 11 |
Re: Reducing boot time on NSA325 June 02, 2020 09:21AM |
Registered: 5 years ago Posts: 258 |
Re: Reducing boot time on NSA325 June 02, 2020 03:57PM |
Registered: 5 years ago Posts: 11 |
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 from uEnv.txt run bootcmd_exec # Loads /boot/uImage (again) and DTB file, boots the system
# Remove "scan_disk", which apparently only duplicated the scan made by uenv_init_devices fw_setenv bootcmd 'run bootcmd_uenv; run set_bootargs; run bootcmd_exec' # Load FDT image with DTB file attached fw_setenv bootcmd_exec 'run load_uimage; bootm $load_uimage_addr'
Re: Reducing boot time on NSA325 June 02, 2020 05:40PM |
Admin Registered: 13 years ago Posts: 18,896 |
Re: Reducing boot time on NSA325 June 02, 2020 05:56PM |
Registered: 5 years ago Posts: 11 |
custom_params="earlyprintk root=PARTUUID=fdc2cedd-b7e3-9c46-b476-dec6ed5e6616 init=/bin/systemd"
#!/bin/sh set -e set -x cd /boot KERNEL_VERSION=`uname -r` mv uImage uImage.orig cp -a vmlinuz-$KERNEL_VERSION zImage.fdt cat /usr/lib/linux-image-$KERNEL_VERSION/kirkwood-nsa325.dtb >> zImage.fdt mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n $KERNEL_VERSION -d zImage.fdt uImage
Re: Reducing boot time on NSA325 June 03, 2020 12:26PM |
Registered: 5 years ago Posts: 11 |