meta data for this page
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| hw:nsa310:debian:kernel_58 [2020/11/01 17:23] – created niziak | hw:nsa310:debian:kernel_58 [2021/01/19 09:32] (current) – niziak | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Latest 5.8 Kernel ====== | ====== Latest 5.8 Kernel ====== | ||
| + | |||
| + | Latest 5.8 Kernel: [[https:// | ||
| + | |||
| + | <code bash> | ||
| + | dpkg -i linux-headers-5.8.3-kirkwood-tld-1_1.0_armel.deb | ||
| + | dpkg -i linux-image-5.8.3-kirkwood-tld-1_1.0_armel.deb | ||
| + | </ | ||
| + | |||
| + | Becasue I'm using still old U-Boot: '' | ||
| + | <code bash> | ||
| + | cp -a zImage-5.8.3-kirkwood-tld-1 zImage-5.8.3-kirkwood-tld-1.fdt | ||
| + | cat / | ||
| + | |||
| + | mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.8.3-kirkwood-tld-1 -d zImage-5.8.3-kirkwood-tld-1.fdt | ||
| + | mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.8.3-kirkwood-tld-1 -d ./ | ||
| + | |||
| + | rm zImage-5.8.3-kirkwood-tld-1.fdt | ||
| + | </ | ||
| + | |||
| + | <code text> | ||
| + | Image Name: | ||
| + | Created: | ||
| + | Image Type: ARM Linux Kernel Image (uncompressed) | ||
| + | Data Size: 12568 Bytes = 12.27 kB = 0.01 MB | ||
| + | Load Address: 00008000 | ||
| + | Entry Point: | ||
| + | |||
| + | Image Name: | ||
| + | Created: | ||
| + | Image Type: ARM Linux RAMDisk Image (gzip compressed) | ||
| + | Data Size: 10037699 Bytes = 9802.44 kB = 9.57 MB | ||
| + | Load Address: 00000000 | ||
| + | Entry Point: | ||
| + | </ | ||
| + | |||
| + | And configure U-Boot to boot form new image: | ||
| + | <code bash> | ||
| + | fw_setenv load_ide_58 'ide reset; ext2load ide 0:3 0x800000 / | ||
| + | fw_setenv bootcmd_ide_58 'run load_ide_58; | ||
| + | fw_setenv bootcmd 'run load_ide_58; | ||
| + | </ | ||
| + | |||
| + | |||
| + | ====== zram ====== | ||
| + | <code bash> | ||
| + | apt-get install zram-tools | ||
| + | </ | ||
| + | |||
| + | <file init / | ||
| + | # Specifies amount of zram devices to create. | ||
| + | # By default, zramswap-start will use all available cores. | ||
| + | CORES=1 | ||
| + | |||
| + | # Specifies the amount of RAM that should be used for zram | ||
| + | # based on a percentage the total amount of available memory | ||
| + | # | ||
| + | |||
| + | # Specifies a static amount of RAM that should be used for | ||
| + | # the ZRAM devices, this is in MiB | ||
| + | # | ||
| + | |||
| + | # Specifies the priority for the swap devices, see swapon(2) | ||
| + | # for more details. | ||
| + | PRIORITY=100 | ||
| + | </ | ||
| + | |||
| + | <file bash / | ||
| + | ... | ||
| + | / | ||
| + | </ | ||
| + | |||
| + | <code bash> | ||
| + | zramswap start | ||
| + | zramswap status | ||
| + | </ | ||
| + | |||