Posts

day 12 of internship at Aartronix innovation

 Today i started working on Beaglebone, loaded the firmware and ssh on debian. Well I wasted a lot of time connecting beaglebone to internet, to do that:      step 1: connect bb via usb cable     step 2: use this command to ssh at bb  ssh debian@192.168.7.2                     ❌ ssh debian@beaglebone.local          ✅                  because when I turn on internet sharing, ip would change.     step 3: run sudo dhclient usb0 or usb1     

Day 11 of internship at Aartronix

 I switched to macOs from Ubuntu and yeah working on it, should think what to write here to show productivity.

Day-9 of internship at Aartronix

Kernel module What: It is a piece of compiled code (like a .ko file) that acts as a plugin. Why: To keep the system efficient and flexible, loading code only when hardware is present, or it would be stored in storage. How: The kernel reads the file, uses the Vendor/Product IDs to match the driver, and performs Dynamic Linking to connect the function calls. When: It happens on demand (e. g., hot-plugging a USB). Where: It runs in Kernel Space , sharing the highest privileges (and risks) with the OS core. Revise C and Embedded C to use for kernel module. 1) check for armstrong numbers.  #include <stdio.h> int length ( int n ) { int len = 0 ; while ( n != 0 ) { n = ( int )( n / 10 ); len ++ ; } return len ; } int number_separator ( int n , int * arr ) { int a = n ; int len = length ( n ); for ( int i = len - 1 ; i >= 0 ; i -- ) { arr [ i ] = ( a % 10 ); a = a ...

Day-8 of internship at Aartronix

 Kernel : It is Resource manager of our system, It starts  

Day -7 of internship at Aartronix

Let's revisit the basics.      

Day-6 of internship at Aarohi aka Aartronix

 Start with OS fundamentals today s - Lets know use of folders in root directory bin/sbin - they store system binaries(cat, ls etc) boot - here all OS related files is stored dev - here hardware is behaving as files. etc - It will store system config files home - it is dedicated space for users for install softwares and configurations. lib - This is where libraries are stored, they are essential for programs media - This is where storage disk are located and usb storage are mounted here by default. mnt- This is where the manually attached storages and devices shows up. opt- This is storage to store softwares. proc- Just like dev (devices) it stores processes as files. root-It is directory for root user. run- this is temporary files folder. snap - Snap packages stored here srv - it is a dedicated folder for services such as ftp. sys - It can be used to interact with kernel. tmp - it is temporary directory, usr - It is used to store binaries and libraries for non-essential applicatio...