Skip to main content

Posts

mt6765 scatter

RMX2185:/ # ls -la /dev/block/by-name/            mmcblk0boot0 -> /dev/block/mmcblk0boot0 mmcblk0boot1 -> /dev/block/mmcblk0boot1        mmcblk0 -> /dev/block/mmcblk0     boot_para -> /dev/block/mmcblk0p1   recovery -> /dev/block/mmcblk0p2 para -> /dev/block/mmcblk0p3 opporeserve1 -> /dev/block/mmcblk0p4 opporeserve2 -> /dev/block/mmcblk0p5 opporeserve3 -> /dev/block/mmcblk0p6 oppo_custom -> /dev/block/mmcblk0p7 expdb -> /dev/block/mmcblk0p8 vbmeta_system -> /dev/block/mmcblk0p9 vbmeta_vendor -> /dev/block/mmcblk0p10 frp -> /dev/block/mmcblk0p11 nvcfg -> /dev/block/mmcblk0p12 nvdata -> /dev/block/mmcblk0p13 md_udc -> /dev/block/mmcblk0p14 metadata -> /dev/block/mmcblk0p15 protect1 -> /dev/block/mmcblk0p16 protect2 -> /dev/block/mmcblk0p17 seccfg -> /dev/block/mmcblk0p18 persist -> /dev/block/mmcblk0p19 sec1 -> /dev/block/mmcblk0p20 proinfo -> /dev/block/mmcblk0p21 md1img -> /dev/block/mmcblk0p22 spmfw -> /dev
Recent posts

alpine chroot install

 https://mirrors.alpinelinux.org/ https://wiki.alpinelinux.org/wiki/Category:Installation https://wiki.alpinelinux.org/wiki/Alpine_Linux_in_a_chroot 1. Download  and extract static apk https://gitlab.alpinelinux.org/alpine/apk-tools/-/releases download latest one for your arch or goto  https://dl-cdn.alpinelinux.org/alpine/latest-stable/main/x86_64/ apk-tools-static-X.X-X.apk https://pkgs.alpinelinux.org/package/edge/main/x86/apk-tools-static tar -xzf apk-tools-static-*.apk or chmod +x apk.static    #allow execute permission ./apk.static    #to execute it  2.format rootfs and mount to /mnt https://battlepenguin.com/tech/alpine-linux-with-full-disk-encryption/ https://wejn.org/2021/01/alpinelinux-secure-boot-with-full-encryption/ https://wiki.alpinelinux.org/wiki/Root_on_ZFS_with_native_encryption apk add fdisk  fdisk -l doas cfdisk sda or nvme0n1 create new partition let it be sdax  mkfs.ext4 /dev/sdax mount /dev/sdax /mnt 3.install  find {mirror} from http://nl.alpinelinux.org/alpine/

mtkclient dump rom of mtk chipset

latest update of realme,xiaomi patches preloader so cant use some exploit  if updated fw   git clone https://github.com/bkerler/mtkclient sudo apt install python3 git libusb-1.0-0 python3-pip cd mtkclient pip3 install -r requirements.txt python3 setup.py install --install-dir ~/.local cat /home/kai/.local/bin/mtkgui python3 ~/src/mtkclient/mtk_gui   ##adding udev rules   sudo usermod -a -G plugdev $USER  sudo usermod -a -G dialout $USER  sudo cp Setup/Linux/*.rules /etc/udev/rules.d  sudo udevadm control -R    nano /etc/udev/rules.d/51-edl.rules #rmx2180 SUBSYSTEMS=="usb", ATTRS{idVendor}=="22d9", ATTRS{idProduct}=="0006", MODE="0666", GROUP="plugdev" SUBSYSTEMS=="usb", ATTRS{idVendor}=="0e8d", ATTRS{idProduct}=="0003", MODE="0666", GROUP="plugdev"     python mtk_gui ##root using magisk python mtk r boot,vbmeta boot.img,vbmeta.img  patched magisk https://raw.githubusercontent.com/vvb2060

devuan testing using debootstrap

1.prepare disk   doas fdisk -l  find available disks name : ex sdX,nvmeX,etc doas cfdisk /dev/ sdx mkfs.ext4 /dev/ sdxx mount ext4 part to / mnt   2.find needed release codename https://www.devuan.org/os/releases here stable at time is Chimaera   3.get debootstrap script  ls -la /usr/share/debootstrap/scripts/  to search  Chimaera  if not available pull ceres as Chimaera since all other codenames of devuan are symlinks of ceres in gitlab wget https://git.devuan.org/devuan/debootstrap/raw/branch/master/scripts/ceres https://git.devuan.org/devuan/debootstrap/src/branch/suites/unstable/scripts/chimaera  doas cp  ceres /usr/share/debootstrap/scripts/Chimaera   doas debootstrap --arch amd64 chimaera /mnt  http://deb.devuan.org/merged      -------------------------------------------------------------------------------------------- mount --rbind /dev /mnt/dev && mount --make-rslave /mnt/dev mount --rbind /dev/pts /mnt/dev/pts && mount --make-rslave /mnt/dev/pts mount --r

gentoo mimeo

 https://xyne.dev/projects/mimeo/ download tar.gz from src https://xyne.dev/projects/mimeo/src/ https://xyne.dev/projects/mimeo/src/mimeo-2021.11.tar.xz  tar -xf mimeo-2021.11.tar.xz python setup.py install --prefix=~/.local  --optimize=1   depends on pyxdg  https://pypi.org/project/pyxdg/#files pip3 install pyxdg or  build from src https://files.pythonhosted.org/packages/6f/2e/2251b5ae2f003d865beef79c8fcd517e907ed6a69f58c32403cec3eba9b2/pyxdg-0.27.tar.gz tar -xf pyxdg-0.27.tar.gz python setup.py install --prefix=~/.local  --optimize=1   open file  mimeo path/filename -q to quiet   find application .desktop files    mimeo --app2desk zathura zathura   org.pwmt.zathura-pdf-mupdf.desktop   org.pwmt.zathura.desktop  mimeo --add 'glob:text/*' medit.desktop      

libreoffice math

 {partial^2 u} over {partial x^2} +{ partial^2 u} over{ d y^2 }   https://documentation.libreoffice.org/assets/Uploads/Documentation/en/GS5.1/HTML/GS5109-GettingStartedWithMath.html