Re: Debian on Dell Kace M300 September 13, 2019 08:15PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Debian on Dell Kace M300 September 14, 2019 05:27PM |
Admin Registered: 13 years ago Posts: 19,102 |
Debian on Dell Kace M300 - Installation September 15, 2019 06:29PM |
Admin Registered: 13 years ago Posts: 19,102 |
cd /media/sdb1/boot cp -a zImage-5.2.9-kirkwood-tld-1 zImage.fdt cat dts/kirkwood-m300.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
protect off all
setenv kernel_config 'setenv mainlineLinux yes; setenv mtdparts mtdparts=spi0.0:0x7f000@0(uboot),0x1000@0x7f000(u-boot-env); setenv load_uimage_addr 0x800000; setenv load_initrd_addr 0x02100000' setenv load_uimage 'ext2load usb 0:1 $(load_uimage_addr) /boot/uImage' setenv load_initrd 'ext2load usb 0:1 $(load_initrd_addr) /boot/uInitrd' setenv set_bootargs_stock 'setenv mainlineLinux no; setenv bootargs_console console=ttyS0,115200 mtdparts=spi_flash:0x7f000@0(uboot),0x1000@0x7f000(u-boot-env) root=LABEL=root rw' setenv bootcmd_stock 'echo Booting stock ...; run bootcmd_ide' setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $(mtdparts) earlyprintk=serial' setenv bootcmd_exec 'echo Booting Debian …; usb start; run load_uimage; run load_initrd; bootm $(load_uimage_addr) $(load_initrd_addr)' setenv bootcmd 'run kernel_config; run set_bootargs; run bootcmd_exec; run set_bootargs_stock; run bootcmd_stock'And then boot:
boot
echo "/dev/mtd1 0x0 00001000 0x00001000" > /etc/fw_env.config
fw_printenv > /boot/m300_stock_envs.txtAlso, print out the saved envs to double check if the content of m300_stock_envs.txt look OK.
cat /boot/m300_stock_envs.txt
fw_setenv kernel_config 'setenv mainlineLinux yes; setenv mtdparts mtdparts=spi0.0:0x7f000@0(uboot),0x1000@0x7f000(u-boot-env); setenv load_uimage_addr 0x800000; setenv load_initrd_addr 0x02100000' fw_setenv load_uimage 'ext2load usb 0:1 $(load_uimage_addr) /boot/uImage' fw_setenv load_initrd 'ext2load usb 0:1 $(load_initrd_addr) /boot/uInitrd' fw_setenv set_bootargs_stock 'setenv mainlineLinux no; setenv bootargs_console console=ttyS0,115200 mtdparts=spi_flash:0x7f000@0(uboot),0x1000@0x7f000(u-boot-env) root=LABEL=root rw' fw_setenv bootcmd_stock 'echo Booting stock ...; run bootcmd_ide' fw_setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $(mtdparts) earlyprintk=serial' fw_setenv bootcmd_exec 'echo Booting Debian …; usb start; run load_uimage; run load_initrd; bootm $(load_uimage_addr) $(load_initrd_addr)' fw_setenv bootcmd 'run kernel_config; run set_bootargs; run bootcmd_exec; run set_bootargs_stock; run bootcmd_stock'
ssh root@debian.local
cd /media/sdb1/boot cp -a zImage-5.2.9-kirkwood-tld-1 zImage.fdt cat dts/kirkwood-m300.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
mkdir -p /tmp/root mount -o noatime /dev/sdb2 /tmp/root
nano /tmp/root/etc/network/interfaces
auto eth0 iface eth0 inet static address 192.168.0.241 netmask 255.255.255.0 gateway 192.168.0.1
nano /tmp/root/etc/shadow
root:$6$rVwqZFj0$QjBDxlwbeE/2Wdu2.TtPylZMHQvB.sNnH/HNgy1i9t2xHJIJsn0bsOgPGxUDGeIE261Z7ECYhGUkpGHegjqGl1:18153:0:99999:7:::
nano /tmp/root/etc/ssh/sshd_config
#ListenAddress ::1 #ListenAddress 127.0.0.1
sync umount /tmp/root
ssh root@192.168.0.241
fw_setenv kernel_config 'setenv mainlineLinux yes; setenv mtdparts mtdparts=spi0.0:0x7f000@0(uboot),0x1000@0x7f000(u-boot-env); setenv load_uimage_addr 0x800000; setenv load_initrd_addr 0x02100000' fw_setenv load_uimage 'ext2load usb 0:1 $(load_uimage_addr) /boot/uImage' fw_setenv load_initrd 'ext2load usb 0:1 $(load_initrd_addr) /boot/uInitrd' fw_setenv set_bootargs_stock 'setenv mainlineLinux no; setenv bootargs_console console=ttyS0,115200 mtdparts=spi_flash:0x7f000@0(uboot),0x1000@0x7f000(u-boot-env) root=LABEL=root rw' fw_setenv bootcmd_stock 'echo Booting stock ...; run bootcmd_ide' fw_setenv set_bootargs 'setenv bootargs console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 $(mtdparts) earlyprintk=serial' fw_setenv bootcmd_exec 'echo Booting Debian …; usb start; run load_uimage; run load_initrd; bootm $(load_uimage_addr) $(load_initrd_addr)' fw_setenv bootcmd 'run kernel_config; run set_bootargs; run bootcmd_exec; run set_bootargs_stock; run bootcmd_stock'
sync shutdown -r now
ssh root@debian.local
echo "/dev/mtd1 0x0 00001000 0x00001000" > /etc/fw_env.config
fw_printenv > /boot/m300_envs.txt
Re: Debian on Dell Kace M300 - Installation September 15, 2019 06:37PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Debian on Dell Kace M300 September 15, 2019 06:58PM |
Registered: 11 years ago Posts: 155 |
Re: Debian on Dell Kace M300 September 15, 2019 07:19PM |
Registered: 10 years ago Posts: 39 |
Re: Debian on Dell Kace M300 September 16, 2019 12:48AM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Debian on Dell Kace M300 September 16, 2019 07:26AM |
Registered: 7 years ago Posts: 375 |
Re: Debian on Dell Kace M300 September 16, 2019 08:06AM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Debian on Dell Kace M300 September 16, 2019 03:50PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Debian on Dell Kace M300 September 16, 2019 10:43PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Debian on Dell Kace M300 September 17, 2019 06:30AM |
Registered: 10 years ago Posts: 39 |
echo 6 > /sys/class/gpio/export -bash: echo: write error: Unknown error 524 echo 41 > /sys/class/gpio/export -bash: echo: write error: Device or resource busy
Re: Debian on Dell Kace M300 September 17, 2019 05:33PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Debian on Dell Kace M300 September 17, 2019 06:35PM |
Registered: 11 years ago Posts: 155 |
Re: Debian on Dell Kace M300 September 17, 2019 07:21PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Debian on Dell Kace M300 September 17, 2019 07:23PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Debian on Dell Kace M300 September 17, 2019 09:45PM |
Registered: 11 years ago Posts: 155 |
Re: Debian on Dell Kace M300 September 17, 2019 09:57PM |
Registered: 6 years ago Posts: 258 |
Re: Debian on Dell Kace M300 September 17, 2019 10:02PM |
Admin Registered: 13 years ago Posts: 19,102 |
Re: Debian on Dell Kace M300 September 17, 2019 10:21PM |
Admin Registered: 13 years ago Posts: 19,102 |
[ 26.264707] fuse: init (API version 7.31) [ 32.063152] random: crng init done [ 33.421951] Adding 8191996k swap on /swapfile1. Priority:-2 extents:170 across:33709716k FS
Re: Debian on Dell Kace M300 September 17, 2019 10:38PM |
Registered: 11 years ago Posts: 155 |
Quote
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon[ 35.342548][ T1466] random: avahi-daemon: uninitialized urandom read (4 bytes read)
[ ok .
[....] Starting NFS common utilities: statd idmapd[ ok .
[....] Not starting NFS kernel daemon: no exports. ...[warn (warning).
[....] Starting NTP server: ntpd[ ok .
[....] Starting OpenBSD Secure Shell server: sshd[ 145.060196][ C0] random: crng init done
[ 145.064323][ C0] random: 1 urandom warning(s) missed due to ratelimiting
[ ok .
Re: Debian on Dell Kace M300 September 18, 2019 03:53AM |
Admin Registered: 13 years ago Posts: 19,102 |
Quote
> Try installing haveged. That’s what i’ve ended
> up doing on my armada370 systems
Re: Debian on Dell Kace M300 September 18, 2019 04:16AM |
Registered: 10 years ago Posts: 226 |
total used free shared buffers cached Mem: 2074580 192664 1881916 0 6000 763165.2.9:
total used free shared buff/cache available Mem: 1804532 18088 1453096 308 333348 1762908
Re: Debian on Dell Kace M300 September 18, 2019 04:32AM |
Admin Registered: 13 years ago Posts: 19,102 |
Flash drives issues How to prolong the life of your rootfs USB thumb drive Overprovisioning A Flash Drive?
Re: Debian on Dell Kace M300 September 18, 2019 07:37AM |
Registered: 10 years ago Posts: 39 |
Re: Debian on Dell Kace M300 September 18, 2019 08:34AM |
Registered: 11 years ago Posts: 155 |
Quote
If you are not sure, whether you need haveged, run:
# cat /proc/sys/kernel/random/entropy_avail
This command shows you how much entropy your server has collected. If it is rather low (<1000), you should probably install haveged. Otherwise cryptographic applications will block until there is enough entropy available, which eg. could result in slow wlan speed, if your server is a Software access point.
You should use this command again to verify how much haveged boosted your entropy pool after the installation.
Re: Debian on Dell Kace M300 September 18, 2019 09:13AM |
Registered: 6 years ago Posts: 258 |
Re: Debian on Dell Kace M300 September 18, 2019 09:52AM |
Registered: 11 years ago Posts: 155 |
Re: Debian on Dell Kace M300 September 18, 2019 10:09AM |
Registered: 6 years ago Posts: 258 |
Re: Debian on Dell Kace M300 September 18, 2019 11:20AM |
Registered: 11 years ago Posts: 155 |
Quote
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon[ 38.745960][ T1469] random: avahi-daemon:)
. ok
[....] Starting NFS common utilities: statd idmapd. ok
[....] Not starting NFS kernel daemon: no exports. ... (warning).
[....] Starting NTP server: ntpd. ok
[....] Starting OpenBSD Secure Shell server: sshd[ 67.598811][ C0] random: crng init done
[ 67.602932][ C0] random: 1 urandom warning(s) missed due to ratelimiting
. ok
root@Dell-M300:~# cat /proc/sys/kernel/random/entropy_avail 240
root@Dell-M300:~# cat /proc/sys/kernel/random/entropy_avail 2487
Quote
[....] Starting system message bus: dbus[ 35.194154][ T1443] random: dbus-daemon: uninitialized )
[ 35.217489][ T1443] random: dbus-daemon: uninitialized urandom read (12 bytes read)
. ok
[....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon[ 35.333689][ T1466] random: avahi-daemon:)
. ok
[....] Starting entropy daemon: haveged. ok
[....] Starting NFS common utilities: statd idmapd. ok
[....] Not starting NFS kernel daemon: no exports. ... (warning).
[....] Starting NTP server: ntpd. ok
[....] Starting OpenBSD Secure Shell server: sshd[ 37.672715][ T1495] random: crng init done
[ 37.677085][ T1495] random: 1 urandom warning(s) missed due to ratelimiting
. ok
root@Dell-M300:~# cat /proc/sys/kernel/random/entropy_avail 2099