Posts

Showing posts from June, 2021

Partitions and Filesystems

There are 3 kinds of partitions Primary Extended Logical And two types of partitioning scheme used now a days MBR (Master Boot Record) GPT (GUID Partition Table) Primary partition, extended partition, and logical partition are much related to MBR disk, because GPT disk only contains primary partition. We can install OS and save our data on any of partitions kind (primary/logical), but the only difference is that some operating systems (namely Windows) are unable to boot from logical partitions. An  active partition  is based on primary partition. Any one of the 4 primary partitions can be set as active partition. Since there can be 4 primary partitions with 4 different Operating Systems installed, one of the partition that is marked active is used for the  initial booting . The active partition contains the boot loader (e.g. ntldr, bootmgr or grub/burg/lilo) to load operating systems from a disk.  The logical partition can't be set as active. https://superuser.com/qu...

Nano Pi M4v2 images

Below images,  4.4M boot.img 202K idbloader.img 55                            info.conf 18M kernel.img 383K MiniLoaderAll.bin 570         param4sd.txt  0  parameter.txt 545    partmap.txt 3.8M  resource.img 681M rootfs.img 4.0M            trust.img 4.0M  uboot.img resource.img :  make V=1 shows some commands which builds resulting images, kernel: scripts/resource_tool --dtbname ./arch/arm64/boot/dts/rockchip/rk33*-nanopi*-rev*.dtb logo.bmp logo_kernel.bmp scripts/mkbootimg --kernel arch/arm64/boot/Image --second resource.img -o boot.img Usage of parm4sd.txt and partmap.txt In buildroot two text files param4sd.txt and partmap.txt are in buildroot/sd-boot ╭─   ~/learn/github/nanopi/friendlyelec_source/sd-fuse_rk3399/buildroot/sd-boot on   master  ?          ...

ZSH terminal

 Youtube Tutorial, [CustomizeTerminal](https://www.youtube.com/watch?v=mgD9FYjFbns) Installed, oh my zsh - [ohmyzsh](https://github.com/ohmyzsh/ohmyzsh) autosuggestions plugin - [zsh-autosuggestions](https://github.com/zsh-users/zsh-autosuggestions) Nerd hack regular font -  [RegularNerdFontComplete.ttf](https://github.com/ryanoasis/nerd-fonts/blob/master/patched-fonts/Hack/Regular/complete/Hack%20Regular%20Nerd%20Font%20Complete.ttf) Added theme powerlevel10k - [powerlevel10k](https://github.com/romkatv/powerlevel10k)

Making an SD card image for Nano Pi M4v2

Making an Image for sd boot nano pi m4v2 , preferrably buildroot. The best way is to download buildroot images from, https://drive.google.com/drive/folders/1gUzxDS1ekNw4MHwKglZgj_eUikvrP4WB/buildroot-images.tgz to local PC. Extract buildroot folder # tar -xvzf buildroot-images.tgz Then copy it to top inside sd-fuse_rk3399 folder. From inside of sd-fuse_rk3399, run  # ./mk-sd-image.sh buildroot flash it to correct block device i.e. /dev/sdX, in my case it is /dev/sde # (sudo pv -n out/rk3399-sd-buildroot-linux-4.4-arm64-20210620.img | sudo dd of=/dev/sde bs=1M ) 2>&1 | dialog --gauge "Running dd command (cloning), please wait..." 10 70 0 Observe dirty pages using below command # sync & watch -d grep -e Dirty: -e Writeback: /proc/meminfo Once dirty pages are finished. Replace your custom images in the SD card or in buildroot folder. Custom kernel and uboot analyse fusing.sh and mk-sd-image.sh. Put all the images as 4.4M boot.img 202K idbloader.img 55  ...

ankylosing spondylitis cause and exercises

Ankylosing spondylitis is an inflammatory disease that, over time, can cause some of the small bones in your spine (vertebrae) to fuse. This fusing makes the spine less flexible and can result in a hunched-forward posture. If ribs are affected, it can be difficult to breathe deeply.   The areas most commonly affected are:     The joint between the base of your spine and your pelvis     The vertebrae in your lower back     The places where your tendons and ligaments attach to bones, mainly in your spine, but sometimes along the back of your heel     The cartilage between your breastbone and ribs     Your hip and shoulder joints Ankylosing Spondylitis Treatments Medications help some people. But staying active is one of the keys to managing AS. Exercise. The less you sit or lie down, the better you’ll feel. Exercise helps you stand straighter and keeps your spine limber. Staying active may even banish your pai...

Getting started with pinctrl subsystem linux

A pin controller is a piece of hardware, usually a set of registers, that can control PINs. It may be able to multiplex, bias, set load capacitance, set drive strength, etc. for individual pins or groups of pins.   PINMUX   PINCONF - electronic properties e.g. high impedance, tristate, input pin to VDD or GND using a certain resistor value - pull up and pull down so that the pin has a stable value when nothing is driving the rail it is connected to, or when it’s unconnected. Pin configuration can be programmed by adding configuration entries into the mapping table     say that we have a group of pins dealing with an SPI interface on { 0, 8, 16, 24 }, and a group of pins dealing with an I2C interface on pins on { 24, 25 }.   make a group static const unsigned int spi0_pins[] = { 0, 8, 16, 24 }; static const unsigned int i2c0_pins[] = { 24, 25 }; //combine them  static const struct foo_group foo_groups[] = { { .name = "spi0_grp", ...

NANO PI M4V2

Image
Useful info for quick understanding,    https://wiki.friendlyarm.com/wiki/index.php/NanoPi_M4V2 Debug UART Pins: