Category: embedded

  • FreeDOS with C #1

    Hello readers,

    Today, we will bring a tutorial about FreeDOS. With this series about FreeDOS, we will bring knowledge about DOS, installation, and configuration.

    About that, we must get VirtualBox, DOSBox, or dosemu for UNIX.

    For now, we will talk about VirtualBox.

    With these tutorials, we want to compare DOS and AppleDOS, one version from 1978 to 1993.

    We are going to use it for coding a macOS 11+ with VirtualBox.

    First, we should get a VirtualBox disk image or an Ova file. With this file, we can do much like bath, BASIC, or even C. In codermag by Gleentech we can discover a lot of techniques of batch against bash. Today, our main goal is batch.

    To start our history knowledge, Apple DOS has been coded for Apple 2e since 1983. Nowadays, DOS has been an evolution from MS-DOS and Dr-DOS, and our installment will be FreeDOS. To obtain or get the files and source code:

    https://freedos.org

    Today, we can get it on the link above. Today FreeDOS is a good operating system for embedded systems. With the following tutorials, we are going to learn more about batch, C, BASIC, and DOS. Learning more about its API.

    With FreeDOS we can work with older applications, with this kind of DOS, we can simulate older applications on our Apple Computers.

    By the way, we can get the source code to read, to learn how it works, and even to learn.

    These tutorials will show and teach how the folder schema works. With codermag by Gleentech we want to teach the readers to work with its source code for embedded.

    DOS schema from its folders it’s very good to learn for a new challenge on your embedded projects.

  • Freedos con C #1

    Hola lectores,

    Hoy, tendramos un tutorial sobre FreeDOS. Con este tutorial, tenemos conocimientos de DOS, instalación y configuración.

    Para eso, tenemos que obtener virtualbox y dosbox o dosemu. Entonces, nosotros hablaremos por ahora en virtualbox.

    Su instalación y desenrollo en tu macOS 11+ con virtualbox.

    Con estes tutoriales sobre DOS, con estos tutoriales queremos hacer una comparación con DOS y Apple DOS, más antiguo.

    Primero tenemos que obtener una virtualbox imagen. Con esa imagen podemos hacer mucha cosa como batch. En codermag podemos descubir tecnicas de batch como bash. Hoy es el foco en batch.

    Para empezar, el Apple DOS ha sido un DOS para el Apple 2e hasta 1983. Hoy en día, DOS ha sido una evolución de MS-DOS como Dr-DOS, su installment ahora es freeDOS. Todos podemos obtenerlo en:

    https://freedos.org

    Podemos hoy en día descargarlo de su sitio arriba. Hoy en día freeDOS es un buen sistema para embarcados. Con esta serie en castellano, podemos aprender mucho con sus tecnicas.

    Con freeDOS podemos trabajar con aplicaciones más antiguas como nuevas en nuestros Apple Computers.

    También podemos sacar su codigo fuente de su sitio, para leer y aprender.

    Con esta serie de tutoriales , tendramos una visión de su organizacíon de sus carpetas. Con codermag, queremos ensiñar sus lectores a trabajar con embarcados.

    Su estrutura de organización es muy buena para dibujar nuevos desafios para sus proyectos de embarcamiento.

  • FreeDOS basic tutorial

    Hello readers,

    Today, we will learn the basics of FreeDOS, compatible with MS-DOS 6.22.

    The features we learned before can be found in the previous articles about qemu with FreeDOS. We are going to work with qemu and VirtualBox machines.

    The command prompt is a very essential need, without it, you can’t learn how to the shattered knowledge can be earned.

    Now, we are going to learn how to use dir command, this command is very useful to list a certain directory.

    Now we are going to see ver command, with this command we can see the version of the system itself.

    Now, we will see the dir /s APPS, this command will list a certain directory inside.

    Now, we are going to learn how to change the directory with the cd command. Every task to switch directories, we use this command.

    Finally, the clear screen, the cls command.

  • How to create a qemu snapshot

    Hello readers,

    Today, we will learn how to make a snapshot of your qemu images under macOS.

    First, you must run terminal or iterm2. Then follow my instructions.

    qemu-system-x86_64 \
    -m 4G \
    -vga virtio \
    -cdrom Fedora-Workstation-Live-x86_64-36-1.5.iso \
    -accel hvf \
    -show-cursor \
    -usb \
    -device usb-tablet \
    -drive file=fedora.qcow2,if=virtio

    qemu-system-x86_64 \
    -m 4G \
    -vga virtio \
    -accel hvf \
    -show-cursor \
    -usb \
    -device usb-tablet \
    -drive file=fedora.qcow2,if=virtio -snapshot

    These first commands will be to run and install the fedora 36 on your qemu machine.

    In the final line with -snapshot, you can run snapshots on the fly.

    You can also boot and install on the cloud ubuntu 20.04 LTS. Now, I am going to show to do that.

    #!/bin/bash -e

    qemu-img create -f qcow2 ubuntu.img 60G
    curl -L -o ubuntu-20.04.5-desktop-amd64.iso https://releases.ubuntu.com/20.04/ubuntu-20.04.5-desktop-amd64.iso

    qemu-system-x86_64 \
    -m 4G \
    -vga virtio \
    -cdrom ubuntu-20.04.5-desktop-amd64.iso \
    -accel hvf \
    -show-cursor \
    -usb \
    -device usb-tablet \
    -drive file=ubuntu.img,if=virtio

    qemu-system-x86_64 \
    -m 4G \
    -vga virtio \
    -accel hvf \
    -show-cursor \
    -usb \
    -device usb-tablet \
    -drive file=ubuntu.img,if=virtio -snapshot

    You must break the lines for each step on the ubuntu 20.04 LTS cloud image. Remember, qemu is very good for testing emulators. With this article, I want to teach how to build emulators Linux for cloud computing or testing structures.

    In the next article, I will teach how to code and manage coding under the emulator connected to the terminal from macOS.

  • FreeDOS with C #3

    Hello dear readers, today we will teach and approach how to make an installment for FreeDOS under qemu.

    Our following steps will be under macOS 10.15; Here you will find useful techniques to code on the new operating systems. We decided to teach C with and under FreeDOS. FreeDOS is an operating system very good to learn how to code and have the skills to get better.

     /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

    Then:

    brew doctor

    Then:

    brew install qemu

    Now, we have installed the qemu on our system. Let’s see how we can install.

    qemu-img create -f raw freedos.img 20G
    qemu-system-i386 -rtc base=localtime -hda freedos.img -cdrom FD13LIVE.iso -boot d
    

    You can always use my working-in-progress script as userland.

    https://github.com/vic3t3chn0/opendos-layer

    For last, you can see the installment over step over step with screenshots.

    qemu-system-i386 -rtc base=localtime -m 128 -drive file=freedos.img,index=0,media=disk,format=raw -cdrom FD13BNS.iso -boot d

    M:
    
    copy packages\devel\watcomc.zip C:
    C:
    unzip watcomc.zip
    

    In the end, you will have the compiler installed.

    cd devel\watcomc
    dir
    
    owsetenv
    

    In the next topic, we will approach how to code or start to code on Watcom c for dos.

  • FreeDOS with C #2

    Today, we are going to learn how to install FreeDOS in a Virtualbox installment.

    For this purpose you should have it on your computer, the VB already installed.

    Over the next steps, you will be able to learn how to install FreeDOS.

    You must download the iso from freedos.org, when it is done, you should unzip it. You will get an iso inside the folder. You must, you should point to the directory of the iso inside the Virtualbox.

    Now, we have an operating system running on VirtualBox. I used the VB 6.x

  • FreeDos with C #1

    Hello, dear readers. It’s have been a while. With these following articles about C. We are going to learn C for embedded systems with FreeDOS.

    The GitHub repo will be available here:

    https://github.com/vic3t3chn0/opendos-layer.git

    Every time I update the ebook, you can see the repo updated.

    This repo is being updated to be functional in Linux(Debian), FreeBSD, and macOS. For now, you can run them on macOS. I am fixing the FreeBSD and Linux patches.

    Next time, we will teach how to install FreeDOS for qemu and Virtualbox.

    I hope to see you…

coder by Gleentech
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.