<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Vidhush Thamilchelvan on Medium]]></title>
        <description><![CDATA[Stories by Vidhush Thamilchelvan on Medium]]></description>
        <link>https://medium.com/@vidhushthamil?source=rss-b0a151ad90b5------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*M6rR5nqbqMxXLXKA1ZFTsw.jpeg</url>
            <title>Stories by Vidhush Thamilchelvan on Medium</title>
            <link>https://medium.com/@vidhushthamil?source=rss-b0a151ad90b5------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 16:17:21 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vidhushthamil/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Tools Used in Software Process Management]]></title>
            <link>https://vidhushthamil.medium.com/tools-used-in-software-process-management-4e203e438555?source=rss-b0a151ad90b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e203e438555</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-process]]></category>
            <dc:creator><![CDATA[Vidhush Thamilchelvan]]></dc:creator>
            <pubDate>Sun, 18 Feb 2024 18:23:24 GMT</pubDate>
            <atom:updated>2024-02-18T18:29:21.390Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*S_K2Vyv1V_H8U7Bdl0KXDA.jpeg" /></figure><p>Software development is a complex process that requires careful planning, execution, and management. To streamline this process, various tools have been developed to assist teams in managing tasks, communication, and project progress efficiently. In this article, we&#39;ll explore some of the most commonly used tools in software process management, their features, advantages, and limitations.</p><h3>1. Jira</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/255/1*HnS97mSW91fWxxagHQxFwQ@2x.png" /></figure><p>Jira is a project management tool developed by Atlassian, primarily aimed at software development teams. It is designed to help teams plan, track, and release software efficiency using agile methodologies.</p><h4>Features:</h4><ul><li><strong>Issue tracking:</strong> Jira allows teams to create, assign, and prioritize tasks, issues, and bugs.</li><li><strong>Agile boards:</strong> It offers Scrum and Kanban boards for agile project management, facilitating sprint planning, backlog grooming, and progress tracking.</li><li><strong>Customizable workflows:</strong> Teams can define their own workflows to match their development processes.</li><li><strong>Integration:</strong> Jira integrates with various development tools like GitHub, Bitbucket, and Confluence for seamless collaboration.</li><li><strong>Reporting and analytics:</strong> Provides detailed reports and analytics to track project progress and performance.</li></ul><h4>Advantages:</h4><ul><li><strong>Highly customizable:</strong> Teams can tailor Jira to fit their specific requirements and workflows.</li><li><strong>Extensive integration options:</strong> Integrates with a wide range of tools, enhancing collaboration and productivity.</li><li><strong>Scalability:</strong> Suitable for both small teams and large enterprises.</li></ul><h4>Limitations:</h4><ul><li><strong>Complexity:</strong> The extensive feature set can be overwhelming for new users and may require training.</li><li><strong>Cost:</strong> While there&#39;s a free version available, advanced features are part of paid plans, which can be expensive for some teams.</li></ul><h3>2. Clarizen</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*InZMqVNmjJab20R-SJ6Rfg.png" /></figure><p>Clarizen is a project management and work collaboration software developed by Clarizen, Inc. It is designed to help organizations streamline their work processes, improve collaboration, and drive results across their projects and teams.</p><h4>Features:</h4><ul><li><strong>Project planning:</strong> Clarizen offers tools for project planning, resource management, and scheduling.</li><li><strong>Collaboration:</strong> Enables real-time collaboration through discussions, file sharing, and commenting.</li><li><strong>Workflow automation:</strong> Automates repetitive tasks and processes to improve efficiency.</li><li><strong>Budget tracking:</strong> Allows tracking of project budgets, expenses, and financial performance.</li><li><strong>Reporting:</strong> Provides customizable reports and dashboards for monitoring project status and performance.</li></ul><h4>Advantages:</h4><ul><li><strong>User-friendly interface:</strong> Clarizen&#39;s intuitive interface makes it easy for teams to adopt and use the platform.</li><li><strong>Comprehensive project management features:</strong> Covers all aspects of project management from planning to execution.</li><li><strong>Flexible deployment options:</strong> Available both as a cloud-based and on-premises solution.</li></ul><h4>Limitations:</h4><ul><li><strong>Cost:</strong> Pricing can be a barrier for small teams or startups.</li><li><strong>Integration limitations:</strong> While it integrates with popular tools like Salesforce and Jira, the integration options may not be as extensive as some other platforms.</li></ul><h3>3. Trello</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vn3qQZH1MLQD0m_G179cNA.jpeg" /></figure><p>Trello is a visual collaboration tool developed by Atlassian. It uses boards, lists, and cards to help teams to organize and prioritize their projects flexibly and intuitively.</p><h4>Features:</h4><ul><li><strong>Boards and cards:</strong> Trello uses a card-based system to organize tasks, ideas, and projects on customizable boards.</li><li><strong>Collaboration:</strong> Teams can collaborate in real-time, add comments, attachments, and labels to cards.</li><li><strong>Workflow automation:</strong> Automate repetitive tasks with Butler, Trello’s built-in automation feature.</li><li><strong>Integration:</strong> Integrates with tools like Slack, Google Drive, and GitHub for seamless workflow.</li></ul><h4>Advantages:</h4><ul><li><strong>Simplicity:</strong> Trello&#39;s straightforward design makes it easy for teams to get started without a steep learning curve.</li><li><strong>Flexibility:</strong> Can be used for various project management methodologies, including Agile, Scrum, and Kanban.</li><li><strong>Free version available:</strong> Trello offers a free version with basic features, making it accessible to small teams and individuals.</li></ul><h4>Limitations:</h4><ul><li><strong>Limited scalability:</strong> While suitable for small to medium-sized teams, Trello may lack the advanced features required by larger enterprises.</li><li><strong>Lack of advanced reporting:</strong> Trello&#39;s reporting capabilities are limited compared to more robust project management tools.</li></ul><h3>4. Asana</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WlXd1wyXLcsY3PjsZ7lyHg.png" /></figure><p>Asana is also another project management tool, developed by Asana, Inc. It is used by teams to organize, track, and manage their work efficiently. With Asana, teams can create tasks, assign them to team members, set due dates, and collaborate seamlessly.</p><h4>Features:</h4><ul><li><strong>Task management:</strong> Asana allows teams to create, assign, and organize tasks into projects and timelines.</li><li><strong>Collaboration:</strong> Enables team members to communicate, share files, and provide feedback within tasks and projects.</li><li><strong>Timeline view:</strong> Provides a visual timeline of project tasks and milestones for better planning and scheduling.</li><li><strong>Integration:</strong> Integrates with popular tools like Slack, Google Drive, and GitHub for seamless workflow.</li><li><strong>Automation:</strong> Automates repetitive tasks and processes using Asana&#39;s built-in automation features.</li></ul><h4>Advantages:</h4><ul><li><strong>User-friendly interface:</strong> Asana&#39;s intuitive design makes it easy for teams to organize and manage their work.</li><li><strong>Flexible project views:</strong> Offers various project views, including list, board, timeline, and calendar views, catering to different project management preferences.</li><li><strong>Collaboration features:</strong> Facilitates real-time collaboration and communication, reducing the need for lengthy email threads and meetings.</li></ul><h4>Limitations:</h4><ul><li><strong>Pricing:</strong> While Asana offers a free version with basic features, advanced features are part of paid plans, which can be costly for larger teams or organizations.</li><li><strong>Learning curve:</strong> While the interface is user-friendly, mastering all of Asana&#39;s features may require some time and training.</li></ul><h3>5. GitLab</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/474/1*r0b8_vRFUkonIBxqcqtgTg.jpeg" /></figure><p>Gitlab is a web-based Git repository that provides free open and private repositories, issue-following capabilities, and wikis. It is a complete DevOps platform that enables professionals to perform all the tasks in a project — from project planning and source code management to monitoring and security.</p><h4>Features:</h4><ul><li><strong>Version control:</strong> GitLab provides Git repository management with code versioning and branching capabilities.</li><li><strong>Issue tracking:</strong> Allows teams to track and manage issues, bugs, and feature requests directly within the GitLab platform.</li><li><strong>Continuous integration/continuous deployment (CI/CD):</strong> GitLab offers built-in CI/CD pipelines for automating the build, test, and deployment process.</li><li><strong>Wiki and documentation:</strong> Provides a built-in wiki and documentation feature for sharing project-related information and knowledge.</li><li><strong>Collaboration:</strong> Enables collaboration through code review, merge requests, and discussion threads.</li></ul><h4>Advantages:</h4><ul><li><strong>All-in-one solution:</strong> GitLab combines version control, issue tracking, CI/CD, and collaboration features in a single platform, reducing the need for multiple tools.</li><li><strong>Open-source:</strong> GitLab&#39;s community edition is open-source and free to use, making it accessible to small teams and individuals.</li><li><strong>Tight integration with Git:</strong> Since GitLab is built on top of Git, it seamlessly integrates with Git-based workflows and practices.</li></ul><h4>Limitations:</h4><ul><li><strong>Resource-intensive:</strong> GitLab&#39;s all-in-one nature can make it resource-intensive, especially for self-hosted instances, requiring significant hardware resources.</li><li><strong>Complexity:</strong> While GitLab offers extensive features, setting up and configuring advanced functionalities like CI/CD pipelines may require some technical expertise.</li><li><strong>Support: </strong>While GitLab has a vibrant community and extensive documentation, official support options are primarily available to enterprise customers.</li></ul><p>Whether you opt for Jira’s extensive customization options, Clarizen’s comprehensive project management features, or Trello’s simplicity and flexibility, investing in the right tool can significantly improve your team’s productivity and efficiency.</p><p>Incorporating tools like Asana and GitLab into your software development process can help streamline project management, enhance collaboration, and improve overall productivity. Whether you prioritize user-friendly interfaces, comprehensive project management features, or integration with existing tools and workflows, choosing the right tool can significantly impact your team&#39;s success in delivering high-quality software efficiently.</p><p>In conclusion, software process management tools play a crucial role in streamlining development workflows, enhancing collaboration, and ensuring project success. Each tool mentioned above has its own set of features, advantages, and limitations, so it&#39;s essential for teams to evaluate their specific needs and choose the tool that best fits their requirements and budget.</p><p>Thank You.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e203e438555" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Vip.Veep — A Web Application of Vehicle Service Reservation System (with less vulnerabilities)]]></title>
            <link>https://vidhushthamil.medium.com/vip-veep-a-web-application-of-vehicle-service-reservation-system-with-less-vulnerabilities-ccb0c38e08a3?source=rss-b0a151ad90b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/ccb0c38e08a3</guid>
            <category><![CDATA[information-security]]></category>
            <category><![CDATA[web-project]]></category>
            <category><![CDATA[web-development]]></category>
            <dc:creator><![CDATA[Vidhush Thamilchelvan]]></dc:creator>
            <pubDate>Mon, 27 Nov 2023 18:37:38 GMT</pubDate>
            <atom:updated>2023-11-27T18:37:38.338Z</atom:updated>
            <content:encoded><![CDATA[<h3>Vip.Veep — A Web Application of Vehicle Service Reservation System (with less vulnerabilities)</h3><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ccb0c38e08a3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[VidHIOS — Creating a Simple Operating System]]></title>
            <link>https://vidhushthamil.medium.com/vidhios-creating-a-simple-operating-system-6390ccf9775e?source=rss-b0a151ad90b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/6390ccf9775e</guid>
            <category><![CDATA[operating-systems]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Vidhush Thamilchelvan]]></dc:creator>
            <pubDate>Sat, 12 Nov 2022 17:08:01 GMT</pubDate>
            <atom:updated>2022-11-12T21:44:36.831Z</atom:updated>
            <content:encoded><![CDATA[<h3>VidHIOS — Creating a Simple Operating System</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OryBs1nvaPrKZZixtvNSow.jpeg" /></figure><p>A computer’s operating system is a piece of system software that is installed and manages all of the computer’s resources, software, and hardware. Have you ever thought about how an operating system is created? Do you have any experience creating your own operating system? It seems to be more difficult. But if you start and take the appropriate steps, you’ll soon feel great.</p><p>In this Article, I will explain about a simple Operating System I have created. This is written by using <strong><em>Assembly Language</em></strong> for Display the computer hardware information.</p><h4>Prerequisites</h4><p>In order to complete this Operating System a basic understanding of some functions and operations in assembly language is required. this OS can be run using virtual box or QEMU emulator. Therefore, before starting the creation of the OS, also a compiler named <em>nasm</em> is needed sometimes, for compiling. To install both of them in Ubuntu, we can use the below command:</p><pre>sudo apt-get install build-essential qemu nasm</pre><h4>File Structure</h4><pre>VidHIOS<br>  | disk_imgs<br>    | vidhios.flp<br>    | vidhios.iso<br>  | source        <br>    | boot<br>      | boot.asm<br>      | boot.bin<br>    | features<br>      | keyboard.asm<br>      | screen.asm<br>    | kernel.asm<br>    | kernel.bin<br>  | build-linux.sh</pre><p><strong><em>source</em></strong><em> — </em>Contain the Main Assembly code of the OS</p><p><strong><em>source/boot</em></strong><em> </em>— This folder contains <strong>boot.asm</strong> and <strong>boot.bin</strong> files. Actually boot.bin file was created when the disk image was building.</p><p><strong><em>source/kernel.asm</em> </strong>— This is the main kernel source file, which includes source code which needs to display the hardware information. kernel.asm file converted to kernel.bin file after source code build.</p><p><strong><em>source/features</em></strong><em> — </em>This folder contains source codes for run display and keyboard input and output.</p><p><strong><em>disk_image</em></strong> — This folder contains vidhios.iso file which is the responsible for OS booting.</p><p><strong><em>build-linux.sh</em></strong> — This is the main build script of OS. This can be used in Linux OS</p><h4>Building the OS</h4><p>I have used Ubuntu terminal to build this OS. After I have finished the source code of <em>kernel.asm</em> Then I have to enter following code in terminal.</p><pre>sudo bash ./build-linux.sh</pre><p><em>In here </em><strong><em>sudo bash</em></strong><em> is required to get root access.</em></p><p>Then this will use <strong>NASM</strong> compiler to assemble the bootloader, kernel and feature programs in my source code and devise controlling interfaces. Then this writes the bootloader to vidhios.flp floppy disk image in the <strong>disk_image/ </strong>directory.</p><p>Then the build script copies over kernel<strong> (kernel.bin) </strong>and binaries from the <strong>programs/</strong> directory before unmounting the floppy image.</p><p>After that, the script runs the <strong>mkisofs </strong>utility to generate a portable ISO image of VidHIOS <strong>(vidhios.iso)</strong>, injecting the floppy image as a bootable ISO file.</p><p>So, I end up with two files in the <strong>disk_images/</strong> directory: one for floppy disks and one for CD-ROM or pen drives.</p><h4>Running The VidHIOS</h4><p>Now our VidHIOS can be run in a computer. In this time, I have used <strong>Oracle</strong> <strong>Virtual Box</strong> Software to Run this OS virtually in Windows. Otherwise, we can use<strong> QEMU </strong>virtual emulator software to run this OS virtually in <strong>Ubuntu OS</strong>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/721/1*nbTGEPa6xccc1AAOp_zAFw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/722/1*NFEyaAUnqecqFnubEdtU0A.png" /><figcaption>PS: OS has run on a virtual machine disk</figcaption></figure><p>It’s great! 🥳 Now we can view the hardware information of the computer using our VidHIOS.</p><h4>Source Code</h4><p><a href="https://github.com/Vidhush-920/VidHIOS_minimal-OS">Vidhush-920/VidHIOS_minimal-OS (github.com)</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6390ccf9775e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DylanOS — Developing a Small Operating System!!]]></title>
            <link>https://vidhushthamil.medium.com/dylanos-developing-a-small-operating-system-2d493e151377?source=rss-b0a151ad90b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/2d493e151377</guid>
            <category><![CDATA[operating-systems]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Vidhush Thamilchelvan]]></dc:creator>
            <pubDate>Sun, 30 Oct 2022 08:40:43 GMT</pubDate>
            <atom:updated>2022-11-04T06:51:20.466Z</atom:updated>
            <content:encoded><![CDATA[<h3>DylanOS — Developing a Small Operating System!!😜</h3><h3>#3 — Integrating Outputs</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*prs40JYZ52q095TCugPWNw.jpeg" /></figure><p>Welcome back to the 3rd chapter in my article series about Developing an Operating System. In this article, there will be discussed <strong>how to design Drivers for our Operating System which function as a layer between the Kernel and the Hardware</strong>.</p><p>This chapter will demonstrate how to show text on the console and write data to the serial port. Furthermore, we will create two drivers, which are the codes that act as layers between the Kernel and the Hardware, providing a higher level of abstraction than directly communicating with the hardware.</p><h4>What is a Driver?</h4><p>A driver (also known as a Device Driver), is a package of files that instructs a component of hardware how to operate by interacting with the operating system of a computer.</p><p>For all this to be done, two devices need to be configured.</p><ol><li>Framebuffer</li><li>Serial Ports</li></ol><p>Before discussing the two devices mentioned above, there is a need to give a brief introduction to hardware interaction.</p><h4>How to Interact with the Hardware?</h4><p><strong>Memory-mapped I/O</strong> and <strong>I/O ports</strong> are the two most common ways to interact with hardware.</p><p>If the hardware supports <strong>memory-mapped I/O</strong>, a specific memory address can be written, and the hardware will be updated.</p><p>If the hardware uses I/O ports, then the assembly code instructions out and in must be used to communicate with the hardware. The instruction out takes two parameters: the address of the I/O port and the data to send. The instruction in takes a single parameter, the address of the I/O port, and returns data from the hardware. One can think of I/O ports as communicating with hardware the same way as you communicate with a server using sockets. The cursor (the blinking rectangle) of the framebuffer is one example of hardware controlled via I/O ports on a PC.</p><p>Now let’s discuss how to implement the output functions practically with the Framebuffer and Serial Port.</p><h4>Writing Text to the Console via Framebuffer</h4><p><strong>The Framebuffer</strong> is a hardware device that is capable of displaying a buffer of memory on the screen. The framebuffer has 80 columns and 25 rows, and the row and column indices start at 0 (so rows are labeled 0–24, and columns are labeled 0–79).</p><p>The text write console is performed by the frame buffer is completed by the I/O map of memory. The starting address of the memory mapping I/O of the frame buffer is 0x000b8000. The memory is divided into 16-bit unit, 16 bits determine characters, foreground, and background colors. The highest eight is the character’s ASCII value, bit 7–4 is the background, bit 3–0 is the foreground, as can be seen in the following figure:</p><pre>Bit: | 15 14 13 12 11 10 9 8 | 7 6 5 4 | 3 2 1 0 |<br>Content: | ASCII | FG | BG |</pre><p>The following table shows you available colors and their values.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/552/1*5dsizKumtTukNhsph3l81Q.png" /><figcaption>Available Colors and their Values</figcaption></figure><p>On the Console, Row 0 and column 0 correspond to the first cell. We can see that the letter “A” is represented by 65, or 0x41, according to an ASCII table. As a result, the character A is written at position (0, 0) with a green foreground (2) and a dark grey background (8) using the assembly code instruction below:</p><pre><strong>mov [0x000B8000], 0x4128</strong></pre><p>Consequently, row 0 column 1, and the second cell’s address are the same:</p><pre><strong>0x000B8000 + 16 = 0x000B8010</strong></pre><p>Writing to the framebuffer can also be done in C by treating the address 0x000B8000 as a char pointer: <em>char *fb = (char *) 0x000B8000</em>. Then, writing A at (0,0) with a green foreground and a dark grey background becomes:</p><pre><strong>fb[0] = &#39;A&#39;<em>;</em><br>fb[1] = 0x28;</strong></pre><p>This can be turned into a function, as shown by the code below:</p><p>The above function can be called as follows:</p><blockquote>It was easy to run if you first create fb_write_cell.c file and include it to the kmain.c file that we created in previous chapter. Also, we can call the fb_write_cell function incide of the kmain funtion.</blockquote><p>After that we can see an output like this:</p><h4>Moving the Cursor</h4><p>There are two different I/O ports used for moving the framebuffer’s cursor. A 16-bit integer is used to identify the cursor’s position. 0 means row 0, column 0; 1 means row 0, column 1; 80 means row 1, column 0 and so on.</p><p>The position must be sent in two turns, first 8 bits then the next 8 bits, due to the position’s 16-bit size and the out-assembly code instruction argument’s 8-bit size. One I/O port on the framebuffer is used to accept data, and the other is used to describe the data being received. The port that defines the data is 0x3D4, while the port that contains the actual data is 0x3D5.</p><p>To set the cursor at row 1, column 0 (position 80 = 0x0050), one would use the following assembly code instructions:</p><p>It is not possible to execute the out-assembly code instruction directly in C. Therefore, wrapping out in a function in assembly code that can be accessed from C using the cdecl calling standard is a good idea:</p><p>By storing this function in a file called io.s and also creating a header io.h, the out-assembly code instruction can be conveniently accessed from C:</p><p>Now we can wrap the cursor moving functionality in a C function as follows:</p><p>You can now move the cursor by putting the following command in your main C function.</p><pre>fb_move_cursor(600); // move the cursor to 600th position</pre><h4>Implementing the driver for the framebuffer</h4><p>Now let’s create a driver to write a string to the console with proper cursor movements. We can reuse the C functions that we created for writing characters and moving the cursor for this.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2d493e151377" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DylanOS — Developing a Small Operating System!! ]]></title>
            <link>https://vidhushthamil.medium.com/dylanos-developing-a-small-operating-system-ef59f66be69c?source=rss-b0a151ad90b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef59f66be69c</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[operating-systems]]></category>
            <dc:creator><![CDATA[Vidhush Thamilchelvan]]></dc:creator>
            <pubDate>Tue, 11 Oct 2022 20:13:15 GMT</pubDate>
            <atom:updated>2022-10-12T19:15:08.659Z</atom:updated>
            <content:encoded><![CDATA[<h3>DylanOS — Developing a Small Operating System!! 😜</h3><h3>#2 — Start Implementing with C</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*jEYisLE2C4TiaHeXnKNIcQ.jpeg" /></figure><p>Welcome back to the second chapter in my article series about Developing an Operating System. In first chapter, there was discussed that how to build a Simple Operating System using Ubuntu. If you seem lost, I recommend going back to the chapter below:</p><pre><a href="https://medium.com/@thvidhush/dylanos-developing-a-small-operating-system-d11f4a46213">DylanOS — Developing a Small Operating System!! 😜 | by Vidhush Thamilchelvan | Oct, 2022 | Medium</a></pre><p>This chapter will demonstrate how to develop a part of the OS using C instead of assembly code. Assembly provides maximum control over every part of the code, and it is excellent for interacting with the CPU. C, on the other hand, is a far more feasible language to use, at least for the authors. As a result, we would prefer to use C wherever possible and assembly code only when necessary.</p><h4>Creating a Stack</h4><p>There is a need to use assembly language to build a stack before moving on to C. In the initial implementation, <em>“esp”</em> could be pointed to a random memory location. But since we don’t know how much memory is available or if the location that <em>“esp”</em> would point to is already being occupied by something else, this is not a good idea. In order to get around that, it is preferable to use the <em>“bss”</em> section of the <strong><em>“loader.s”</em></strong> file to reduce the size of the OS executable. The code below uses assembly to build a stack.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/97c303fb6818c5b47ffb2699c09dda97/href">https://medium.com/media/97c303fb6818c5b47ffb2699c09dda97/href</a></iframe><p>Then, the stack pointer is set up by pointing <em>“esp”</em> to the end of the memory for <em>“kernal_stack”</em>. That part is implemented in the code below.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d576546b844c03bf1327aab13020d369/href">https://medium.com/media/d576546b844c03bf1327aab13020d369/href</a></iframe><h4>Calling C Code from Assembly</h4><p>In the later stages, the assembly code will be used to call a C function. In order to accomplish that, a simple C program called <strong><em>“kmain.C”</em></strong> that is separate from other files is needed. This is how the function inside the C file would look, and the return value would be stored in the <em>“eax”</em> register.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/31438f22f1f5a7ad75b4c5fffb4ad83a/href">https://medium.com/media/31438f22f1f5a7ad75b4c5fffb4ad83a/href</a></iframe><p>The <em>cdecl</em> calling convention will be used since GCC does. It specifies that function arguments should be passed through the stack. As a result, the arguments should be added to the stack from right to left, starting with the argument on the right. The <em>“eax”</em> register will hold the function’s return value.</p><p>Place the following code after the <em>esp</em> instruction in the <strong><em>“loader.s”</em></strong> file to complete the task.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/a661edba02273ddeac27099ef572233c/href">https://medium.com/media/a661edba02273ddeac27099ef572233c/href</a></iframe><p>After the above changes, the final “<strong><em>loader.s” </em></strong>file would be like this.</p><p><a href="https://gist.github.com/Vidhush-920/a044a351df06049c7dbc5e054acb28fa">https://gist.github.com/Vidhush-920/a044a351df06049c7dbc5e054acb28fa</a></p><h4>Compiling C Code</h4><p>To accomplish the intended goals when compiling the C code, a lot of flags will be used. The flags used for compiling the C code are:</p><pre>-m32 -nostdlib -nostdinc -fno-builtin -fno-stack-protector <br>-nostartfiles -nodefaultlibs</pre><p>As always when writing C programs, there is recommended to turn on all warnings and treat them as errors:</p><pre>-Wall -Wextra -Werror</pre><p>Now a function <em>kmain</em> can be created in a file called <strong><em>“kmain.c”</em></strong> that is called from <strong><em>“loader.s”</em></strong>. At this point, <em>kmain</em> probably won’t need any arguments (but in later chapters it will).</p><h4>Build Tools</h4><p>To make it simpler to compile and test-run the operating system, it is a good idea to set up some build tools right away. The code below could make up a simple Makefile for the operating system.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7098f68eb9dee6c63f8e04a51482f41b/href">https://medium.com/media/7098f68eb9dee6c63f8e04a51482f41b/href</a></iframe><p>Finally, the working directory should now contain the following files:</p><pre><strong>|-- bochsrc.txt<br>|-- iso<br>||-- boot<br>| |-- grub<br>|  |-- menu.lst<br>|  |-- stage2_eltorito<br>|-- kmain.c<br>|-- loader.s<br>|-- Makefile</strong></pre><p>Now the Operating system will be launched with the simple command “<strong><em>make run</em></strong>” which will compile the kernel and boot it up in Bochs as defined in the Makefile above.</p><p>Then, the final outcome would be like this.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3yxGi6Aym8zqSENBtRnulg.png" /></figure><blockquote><strong><em>References:</em></strong></blockquote><blockquote><em>The Little OS Book: </em><a href="https://littleosbook.github.io/book.pdf"><em>https://littleosbook.github.io/book.pdf</em></a></blockquote><blockquote><a href="https://github.com/Vidhush-920/DylanOS_simple-OS/tree/DylanOS-Implementing-with-C"><em>Vidhush-920/DylanOS_simple-OS at DylanOS-Implementing-with-C (github.com)</em></a></blockquote><p>Thank you for reading!</p><p>Hope to see you again with the next chapter.</p><p>-Vidhush Thamilchelvan-</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef59f66be69c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[DylanOS — Developing a Small Operating System!! ]]></title>
            <link>https://vidhushthamil.medium.com/dylanos-developing-a-small-operating-system-d11f4a46213?source=rss-b0a151ad90b5------2</link>
            <guid isPermaLink="false">https://medium.com/p/d11f4a46213</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[operating-systems]]></category>
            <category><![CDATA[computer-science]]></category>
            <dc:creator><![CDATA[Vidhush Thamilchelvan]]></dc:creator>
            <pubDate>Sat, 01 Oct 2022 16:08:06 GMT</pubDate>
            <atom:updated>2022-10-11T20:16:16.896Z</atom:updated>
            <content:encoded><![CDATA[<h3>DylanOS — Developing a Small Operating System!! 😜</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OryBs1nvaPrKZZixtvNSow.jpeg" /></figure><p>Developing an Operating System (OS) is not an easy task, and the question “How do I even begin to solve this problem?” is likely to come up several times during the course of the project for different problems. In these blog article, we will explain how to write a small Operating System which displays the Hardware Information of the computer. Since this is a complex task, we can divide the whole task into several chapters.</p><h3>#1 — Setting up the Booting part of OS</h3><p>With this chapter, we are going to learn to set up our developing environment and boot the small operating system.</p><h4><strong>Prerequisites</strong></h4><p>First of all, let’s decide what tools and technologies we going to use in our implementation so that we can get started.</p><p><strong>Host Operating System</strong> — We need a host operating system (like Ubuntu) for doing OS development, running it both physically and virtually. It’s a good practice to install your host OS on a virtual machine like <a href="https://www.virtualbox.org/">VirtualBox</a> to test your OS virtually. In this article, we use Ubuntu 20.04 installed in a virtual machine as the host OS.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ew6nLWkbfkh5LQrjvAol5g.png" /><figcaption>Ubuntu 20.04 as Host OS running on VirtualBox</figcaption></figure><p><strong>Packages </strong>— Once we have Ubuntu OS up and running, the following packages should be installed using the terminal. (Use the command below)</p><pre>sudo apt-get install build-essential nasm genisoimage bochs bochs-sdl</pre><p><strong>Programming Languages — </strong>We will use the <strong><em>C Programming language</em></strong> with <strong><em>GCC compiler</em></strong> to develop our OS.</p><p>We will be using <a href="https://www.nasm.us/"><strong><em>NASM</em></strong></a> as the assembler for writing assembly code. <strong><em>Bash</em></strong> will be used as the scripting language.</p><h4>Booting Process</h4><p>In order to create an operating system, it is essential to understand how it boots up. This chapter will guide you through the OS booting process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/628/1*cvO-jHLiojYqrDCUET6Vpg.png" /></figure><p>The process of booting an operating system involves transferring control through a chain of small programs, each one is more powerful than the previous one. The main programs in this process include <strong><em>BIOS</em></strong>, <strong><em>Bootloader,</em></strong> and the <strong><em>OS</em></strong>. The operating system is the final and the most powerful one.</p><p>When the computer is turned on, <strong>BIOS (Basic Input Output System)</strong> program stored in the ROM will be launched. The BIOS primarily performs some early diagnostics before handing control over to the bootloader.</p><p>The BIOS program will hand over control of the computer to a <strong>Bootloader GRUB</strong>. The bootloader’s job is to hand control over to the OS. However, due to hardware restrictions and other limitations, the bootloader is typically divided into two parts called GRUB1 and GRUB2. In that case, GRUB1 will hand the control over to GRUB2, which finally will give control to the OS.</p><p>By jumping to a memory location, GRUB will hand over control to the <strong>Operating System</strong>. GRUB will seek a magic number before jumping to guarantee that it is jumping to an OS and not some arbitrary code. The multiboot specification, with which GRUB complies, includes this magic number. After the transition, the OS has complete control over the computer.</p><h4>Writing and Compiling the OS</h4><p>Now we will work on developing the simplest Operating System feasible. The only thing this OS will do is writing <strong><em>OxCAFEBABE</em></strong> to the <strong><em>EAX</em></strong> register.</p><p>This section of the OS must be developed in assembly language. C programming language cannot be used since it requires a stack, which isn’t available.</p><p>The code below in a file should be saved as <em>‘loader.s’</em>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6b740a60f046d044f024b80b478d0dce/href">https://medium.com/media/6b740a60f046d044f024b80b478d0dce/href</a></iframe><p>According to mentioned previously, this OS will write a specific number <strong><em>0xCAFEBABE</em></strong> to the <strong><em>EAX</em></strong> register. Once the OS is boot up, we can check if the number has successfully been written to the register.</p><p>Next, the following command should be used to compile <em>loader.s</em> into a 32-bit ELF object file.</p><pre>nasm -f elf32 loader.s</pre><h4>Linking the Kernel</h4><p>After the code has been compiled, it must be linked to create an executable file. Because addresses less than 1 MB are used by GRUB, BIOS, and Memory mapped I/O, we want GRUB to load the kernel at a memory address greater than or equal to 0x00100000 (1 MB). We can use the following script as the linker.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/131f36f92d4d1f4db57854a50064f61c/href">https://medium.com/media/131f36f92d4d1f4db57854a50064f61c/href</a></iframe><p>There should be made a file named<em> ‘link.ld’ </em>with the linker script. Using the following command, we can now link the executable:</p><pre>ld -T link.ld -melf_i386 loader.o -o kernel.elf</pre><p>We can now see a file named ‘<em>kernel.elf’</em> which is the final executable.</p><h4><strong>Getting GRUB</strong></h4><p>We will be using the <strong><em>GRUB Legacy stage2_eltorito</em></strong> built by <strong><em>GRUB 0.97 </em></strong>as our bootloader for the implementation. The binary file for the above-mentioned bootloader can be downloaded from given Github link:</p><pre><a href="https://github.com/Vidhush-920/DylanOS_simple-OS/blob/main/iso/boot/grub/stage2_eltorito">DylanOS_simple-OS/stage2_eltorito at main · Vidhush-920/DylanOS_simple-OS (github.com)</a></pre><p>The file ‘<em>stage2_eltorito</em>’ should be copied to your working directory.</p><h4><strong>Building the ISO image</strong></h4><p>The executable must be stored on a medium that a virtual or physical machine can read. For that, we will be using ISO image files in our project. We can use the program <strong><em>genisoimage </em></strong>to create the image.</p><p>A folder that contains the files that will be on the ISO image should be created. The following commands are used to create the folder and copy the files to their proper locations:</p><pre>mkdir -p iso/boot/grub              # create the folder structure <br>cp stage2_eltorito iso/boot/grub/   # copy the bootloader <br>cp kernel.elf iso/boot/             # copy the kernel</pre><p>Then a GRUB configuration file named<em> ‘menu.lst’</em> should be made. This file should instruct GRUB where to find the kernel and set various options. Here is the following configuration for the file:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3d77e06f355ac50b011aa3f8807fac38/href">https://medium.com/media/3d77e06f355ac50b011aa3f8807fac38/href</a></iframe><p>The <em>‘menu.lst’</em> file will be placed in the folder ‘iso/boot/grub/’. Now the ‘iso’ folder should contain the following structure:</p><pre><strong>iso<br>|--boot<br>  |--grub<br>  ||--menu.lst<br>  ||--stage2_eltorito<br>  |--kernel.elf</strong></pre><p>Then the following command will be used to create the iso file.</p><pre>genisoimage -R \ <br>-b boot/grub/stage2_eltorito \ <br>-no-emul-boot \ <br>-boot-load-size 4 \ <br>-A os \ <br>-input-charset utf8 \ <br>-quiet \ <br>-boot-info-table \ <br>-o os.iso \ <br>iso</pre><p>A file named <em>‘os.iso’</em> will be generated. This contains the kernel executable, the GRUB bootloader, and the configuration file.</p><h4><strong>Running Bochs Emulator</strong></h4><p>As the final step, we can now boot our OS in the Bochs emulator using the <em>‘os.iso’</em> ISO image. To get started with Bochs, you’ll need a configuration file. Following is a simple configuration file.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1f474ac7d228e083c97f83b1dda4c9cf/href">https://medium.com/media/1f474ac7d228e083c97f83b1dda4c9cf/href</a></iframe><p>Depending on how you installed Bochs, you may need to adjust the path to <strong><em>romimage</em></strong> and <strong><em>vgaromimage</em></strong>. We can browse <a href="https://bochs.sourceforge.io/">Boch’s official website</a> as a reference to find out more about Bochs configuration. The configuration file should be saved as <em>‘bochsrc.txt’ </em>and there should be run Bochs with the following command:</p><pre>bochs -f bochsrc.txt -q</pre><p>Then you can see like this,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1003/1*HvRRhN-0HtNAjT9nimJE_w.png" /></figure><p>Give <em>continue</em> on Terminal</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1001/1*2P1APxmi_E37w6mjgK1SeQ.png" /></figure><p>After that, you can see,</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1sPsN8OHqJab7clm5bgoPQ.png" /></figure><p>Bochs should now be running and presenting a console with some information on it. Quit Bochs and display the log generated by Bochs with the command below:</p><pre>cat bochslog.txt</pre><p>The contents of the registers of the CPU replicated by Bochs should now appear somewhere in the output. The OS has successfully booted if we can see <strong><em>RAX=00000000CAFEBABE</em></strong> or <strong><em>EAX=CAFEBABE </em></strong>in the output.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/911/1*bmuQc8WTO7IbGTN0TASJHA.png" /></figure><p>Congratulations! We just created a simple Operating System. In Next chapter, we’ll see how we can get the help of C Programming Language to further develop our OS.</p><blockquote><strong><em>References:</em></strong></blockquote><blockquote><em>The Little OS Book: </em><a href="https://littleosbook.github.io/book.pdf"><em>https://littleosbook.github.io/book.pdf</em></a></blockquote><blockquote><strong><em>Further Readings:</em></strong></blockquote><blockquote><em>1.</em><a href="https://manybutfinite.com/post/how-computers-boot-up/"><em> http://duartes.org/gustavo/blog/post/how-computers-boot-up</em></a></blockquote><blockquote><em>2. </em><a href="http://duartes.org/gustavo/blog/post/kernel-boot-process"><em>http://duartes.org/gustavo/blog/post/kernel-boot-process</em></a></blockquote><blockquote><em>3. </em><a href="http://wiki.osdev.org/Boot_Sequence"><em>http://wiki.osdev.org/Boot_Sequence</em></a></blockquote><p>Thank you for reading!</p><p>Hope to see you again with the next chapter.</p><p>-Vidhush Thamilchelvan-</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d11f4a46213" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>