Posts

Showing posts with the label ARM

Building FreeBSD for BeagleBone Black

What you’ll need: • BeagleBone Black. • 5v power supply or Mini-USB cable. • Micro-SDHC card 4GB or larger. • FTDI cable Steps: 1) Download current FreeBSD image for BBB to working directory wget ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/arm/armv7/ISO-IMAGES/12.0/FreeBSD-12.0-CURRENT-arm-armv7-BEAGLEBONE-20180215-r329338.img.xz 2) Uncompress the img.xz file and burn it to the sd card xzcat FreeBSD-12.0-CURRENT-arm-armv7-BEAGLEBONE-20180215-r329338.img.xz | dd of=/dev/sdb Note that you might need admin rights for above command. Also, verify that your sd card is at /dev/sdb change it if it's other then sdb. In caes of unavailability of xzcat command, just install it by installing xz utils.

Building FreeBSD's SDIO driver for BeagleBone Black

Hi all, This post mainly concern with building FreeBSD's SDIO driver for BeagleBone Black by cross compiling it on AMD platform. I had few unresolved issues with the master branch of current FreeBSD tree. So, for this i used another unofficial branch: https://github.com/kibab/freebsd/tree/mmcam-new . It does have the required KERNCONF file with stable SDIO driver. A lot of steps below are similar to the one given on: https://forums.freebsd.org/threads/cross-compiling-beaglebone-on-amd64.64718/#post-384835   with slight but inevitable changes. Procedure:  Before proceeding you need to first install git. sudo pkg update -f sudo pkg install git  Setup project directory by mkdir /BBB  Clone the repository to /BBB/src by git clone -b mmcam-new https://github.com/kibab/freebsd.git /BBB/src Setup environment variables as setenv BASEDIR /BBB setenv MAKEOBJDIRPREFIX $BASEDIR/obj setenv TARGET arm setenv TARGET_ARCH armv6 Note that sometime it shows an error ...

DECODING ARM

Image
This introductory post aims at discussing a bit about business model of ARM ltd.(that's right the company behind ARM architectures!!), different ARM architectures for different utilities and most importantly a brief about ARM cortex M , ARM cortex R and ARM cortex A. So, here's the content: Business model of ARM ltd. ARM Terminology Different ARM Architectures and Families Third party ARM variants ARM cortex M ARM cortex R ARM cortex A ARM Ltd. ARM ltd. was founded late in 1990's as a joint venture between Acorn computers , Apple computers(Apple Inc.) and VLSI technology Inc. ARM joint venture With it's headquarters in Cambridge, UK, ARM manages to be one of the top notch processor designing companies. Unlike most traditional microprocessor suppliers, such as Intel, Freescale  Arm only creates and licenses its technology as intellectual property (IP), rather than manufacturing and selling its own physical CPUs, GPUs, SoCs or micro controllers.It sup...

DECODING ARM

Image
This introductory post aims at discussing a bit about business model of ARM ltd.(that's right the company behind ARM architectures!!), different ARM architectures for different utilities and most importantly a brief about ARM cortex M , ARM cortex R and ARM cortex A. ARM So, here's the content: Business model of ARM ltd. ARM Terminology Different ARM Architectures and Families Third party ARM variants ARM cortex M ARM cortex R ARM cortex A ARM Ltd. ARM ltd. was founded late in 1990's as a joint venture between Acorn computers , Apple computers(Apple Inc.) and VLSI technology Inc. ARM joint venture With it's headquarters in Cambridge, UK, ARM manages to be one of the top notch processor designing companies. Unlike most traditional microprocessor suppliers, such as Intel, Freescale  Arm only creates and licenses its technology as intellectual property (IP), rather than manufacturing and selling its own physical CPUs, GPUs, SoCs or micro cont...

ARM Instruction Set(Part 2): Types,Operands and Addressing Modes

Image
Types,Operands and  Addressing Modes After a brief  introduction of ISA, here in this part of the series we'll look at: Content:   Types of Operands  Instruction set design Types of Instructions Types of Addressing modes Types of Operands: Operands basically refer to the type of parameter which is passed on to, along with an instruction. It might be a : Register/Memory address Constant/Immediate Consider the following examples: ADD r1,r2,r3;      will add r2 and r3 and store it's value in r1 Here, Operands is r1,r2 and r3. ALL of which are registers. ARM has in general 16 general purpose registers out of which last register is Program counter , second last is stack pointer and third last is link register . ADD r1,r2,#3;      will add the value in register r2 and 3 and store it's value in r1 Here, one of the operand is '3' which is a constant. This comes under immediate operands. Some of the instructions even don't have any operand, such type ...

ARM Instruction Set(Part 2): Types,Operands and Addressing Modes

Image
Types,Operands and  Addressing Modes After a brief  introduction of ISA, here in this part of the series we'll look at: Content:  Types of Operands  Instruction set design Types of Instructions Types of Addressing modes Types of Operands: Operands basically refer to the type of parameter which is passed on to, along with an instruction. It might be a : Register/Memory address Constant/Immediate Consider the following examples: ADD r1,r2,r3;      will add r2 and r3 and store it's value in r1 Here, Operands is r1,r2 and r3. ALL of which are registers. ARM has in general 16 general purpose registers out of which last register is Program counter , second last is stack pointer and third last is link register .  ADD r1,r2,#3;      will add the value in register r2 and 3 and store it's value in r1 Here, one of the operand is '3' which is a constant. This comes under immediate operands. Some of the instr...

DIY: Generating Ramp/Sawtooth from PWM

Image
DIY: Generating Ramp/Sawtooth from a PWM signal Lack of any good tutorial to produce a ramp/sawtooth wave from a PWM signal, urged me to make one! This post was in fact a part of one of my recent ongoing project i.e Redesigning the Semiconductor CURVE TRACER,  here at CEDT, NSIT. I was to produce a sawtooth wave from a pwm signal using arduino nano and here are my observations: TASK:  To produce a sawtooth wave from PWM signal using Arduino Nano. PROCEDURE: Producing a ramp/sawtooth wave out of a PWM signal merely involves passing a PWM signal of varing duty cycle through a low pass filter. Here's the code I used : /*Code for prodcing a Sawtooth wave from PWM*/ int pwm_pin = 9;           int brightness = 0;   int upramp(int brightness) {   while(1)   {   brightness+=5;   delay(100);   analogWrite(pwm_pin, brightness);   if(brightness>250)   {   digitalWrite(pwm_pin,LOW); // ...

ARM Instruction Set(Part 1): Initialization

Image
INTRODUCTION TO INSTRUCTION SETS I recently brought the ARM edition of the book Computer Organization and Design by Patterson and Hennessy from library. Half way through the book, I thought of sharing the content of this book in a more elaborated manner by making a series of tutorials on Arm Instruction Set. So, here's part one of the series. Content Basic definitions Types of Instruction sets Architecture(ISA) General purpose register architecture Stack architecture Accumulator architecture Basic Definitions   Benchmarks:  A program selected for use in comparing computer performance.SPEC(System Performance Evaluation Cooperative) is such an effort supported by a number of vendors to create standard sets of benchmarks for modern computing systems. SPEC CPU2006 is a set of 12 integer benchmarks and 17 floating point benchmarks. Integer benchmarks may vary from a part of a C compiler to a chess program to a quantum computer simulation. Today(2017), 3DMark, PCMark10 and VRMark ...