Skip to content

Embedded Linux Blog

http://embeddedlinux.in/blog/index.php

How to create patch between local repository and remote repository in GIT based on tag

Clone the repository to which you have to create a patch. 

git clone <URL of the source kernel + your code>

git checkout tags/<your-tag>

git checkout -b <tagname>

Add remote repo:

git remote add <nickname> <repo url>

git remote add linuxorg git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

git fetch linuxorg

Create the diff between remote kernel branch and your code

git diff <branch name>…HEAD > name.patch

git diff v3.17…HEAD > linux-mycode.patch

The resulting linux-mycode.patch will consists of your modification to kernel 3.17

Learning Device Driver

Introduction 

Learning Device driver is my long time goal. But I’m not able to do that, today I started to write this post on Learning device driver and share my knowledge and experience.

To write a device driver it is essential at least to understand following topics in the C Language.

  1. Pointers
  2. Structures
  3. Linked List
  4. Bit manipulating functions

Microprocessor programming: Interrupts, timers, memory addressing …etc

How to pass username and password for ftp while downloading through wget

wget --user user --password pass http://serveraddress/

Timesys Embedded Linux Development Videos

Whether you’re looking for a quick “HowTo” or want to see samples of embedded Linux demo images running on popular development boards, you can find it here. We have videos to help you — from short, educational “How To” videos that can guide you through an embedded Linux development process to videos that showcase Timesys’ products and service offering.

Be sure to check back frequently as new videos are added often. Or subscribe to the Timesys YouTube Channel, and receive timely notification of our new videos as they are added.

Timesys Embedded Linux – Making Embedded Linux Easy

Timesys’ embedded Linux solutions and services enable engineering teams to deliver high-quality, differentiated, open source Linux-based products in a predictable, consistent and timely manner.

Timesys provide the industry’s most affordable and easy to try, buy and use commercial embedded Linux offerings which include:
a software repository,
development tools,
expert support,
professional services and
training.
You never have to deal with expensive, complex products, restrictive contracts and unresponsive support.

http://www.timesys.com/embedded-linux

http://www.timesys.com/embedded-linux/linuxlink

2012 in review

The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog.

Here’s an excerpt:

600 people reached the top of Mt. Everest in 2012. This blog got about 12,000 views in 2012. If every person who reached the top of Mt. Everest viewed this blog, it would have taken 20 years to get that many views.

Click here to see the complete report.

Using rsync over ssh

Below is the command for using rsync over ssh

$ rsync -avz -e ssh remoteuser@remotehost:/remote/dir /this/dir/

you can tell the ‘ssh’ executable to provide some logging with the ‘verbose’ commands: ‘-v’, ‘-vv’, ‘-vvv’. The more v’s, the more verbose the output. One is in the command above, but the one below should provide much more output:

$ rsync -avvvz -e “ssh -i /home/thisuser/cron/thishost-rsync-key” remoteuser@remotehost:/remote/dir /this/dir/

 

Source : http://troy.jdmz.net/rsync/index.html

Ubuntu minimal file system generation for beagle board

The current easiest way to get a Ubuntu file-system, is to generate it using the ‘rootstock’ tool.

Rootstock is a tool running on a Ubuntu host, relying on qemu, that permits to generate Ubuntu FS.

(Pre-requisites to generate Lucid images: Ubuntu workstation connected to internet with Karmic (09.10) or more recent Ubuntu release installed.)

  • get the rootstock tool to generate the image:
  • If you are running a Ubuntu Lucid host, just run:
sudo apt-get install rootstock
  • to generate a minimal image, use the following command line (example to generate a lucid FS):
sudo rootstock -d lucid -f ubuntu -l ubuntu -p ubuntu --serial ttyO2 --locale en_US.UTF-8 -s ubuntu-minimal,openssh-server,nano

Note that openssh-server and nano packages are just added for convenience.

=> will generate a tgz images containing a basic FS.

Once booted, you can log in console using user: ubuntu / password: ubuntu.

Mount Rootfilesystem as RW

mount -n -o remount,rw /