meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
hw:nsa310:debian:kernel_58 [2020/11/01 17:32] niziakhw:nsa310:debian:kernel_58 [2021/01/19 09:32] (current) niziak
Line 10: Line 10:
 Becasue I'm using still old U-Boot: ''U-Boot 1.1.4 (Jun  8 2011 - 18:48:37) Marvell version: 3.4.19''  it is need to append FDT: Becasue I'm using still old U-Boot: ''U-Boot 1.1.4 (Jun  8 2011 - 18:48:37) Marvell version: 3.4.19''  it is need to append FDT:
 <code bash> <code bash>
-mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-5.8.3-kirkwood-tld-1 -d /boot/dts-5.8.3/kirkwood-nsa310.dtb  ./uImage-5.8.3+cp -a zImage-5.8.3-kirkwood-tld-1 zImage-5.8.3-kirkwood-tld-1.fdt 
 +cat /boot/dts-5.8.3/kirkwood-nsa310.dtb >> zImage-5.8.3-kirkwood-tld-1.fdt 
 + 
 +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  ./uImage-5.8.3
 mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.8.3-kirkwood-tld-1 -d ./initrd.img-5.8.3-kirkwood-tld-1 ./uInitrd-5.8.3 mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-5.8.3-kirkwood-tld-1 -d ./initrd.img-5.8.3-kirkwood-tld-1 ./uInitrd-5.8.3
 +
 +rm zImage-5.8.3-kirkwood-tld-1.fdt
 </code> </code>
  
Line 35: Line 40:
 fw_setenv bootcmd_ide_58 'run load_ide_58; bootm 0x800000 0x1100000;' fw_setenv bootcmd_ide_58 'run load_ide_58; bootm 0x800000 0x1100000;'
 fw_setenv bootcmd 'run load_ide_58; bootm 0x800000 0x1100000;' fw_setenv bootcmd 'run load_ide_58; bootm 0x800000 0x1100000;'
 +</code>
 +
 +
 +====== zram ======
 +<code bash>
 +apt-get install zram-tools
 +</code>
 +
 +<file init /etc/default/zramswap>
 +# 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
 +#PERCENTAGE=10
 +
 +# Specifies a static amount of RAM that should be used for
 +# the ZRAM devices, this is in MiB
 +#ALLOCATION=256
 +
 +# Specifies the priority for the swap devices, see swapon(2)
 +# for more details.
 +PRIORITY=100
 +</file>
 +
 +<file bash /etc/rc.local>
 +...
 +/usr/sbin/zramswap start
 +</file>
 +
 +<code bash>
 +zramswap start
 +zramswap status
 </code> </code>