Skip to main content

Posts

[RTEMS/QEMU] Emulation with RTEMS on Qemu (realview_pbx_a9_qemu bsp)

Although I have a similar article last year and play around with Raspberry Pi before, now I pick up this QEMU emulation with RTEMS again for my research. Thanks for anonymous people who give me suggestions. Again I wrote down the complete flow again to backup/summarize the information I need here. Hopefully it could also aid you. Enjoy it! From Alan's Tech Notes and official guide , to have a totally new environment for RTEMS: I strongly recommend to use RTEMS source builder so-called RSB to prepare all the essential stuffs. Before digging into the details, Ubuntu prerequisties should be somehow in your system. (refer to Alan's note): $ sudo apt-get install build-essential $ sudo apt-get install git $ sudo apt-get install python-dev $ sudo apt-get build-dep binutils gcc g++ gdb unzip git First make a specific folder for the source code of rtems-source-builder: $ cd $ mkdir -p development/rtems/rsb $ cd development/rtems/rsb $ git clone git://git.rtems.org/rtems-source-b...

[LEGOEV3] About Ev3dev kernel upgrading, real-time operating system, and bugs in 4.10 linux kernel.

By following the tutorial in Ev3 , one who is interested to run Linux on Ev3 should be able to have Debian with 3.16.7 linux kernel with the internet feature. For the research/lecture usage, I start to patch 4.10 Linux kernel and litmus-RT on it. I will list and update the possible delights for some of students who are just starting to develop Linux kernel stuffs. If in Ev3dev wget fails, please add on --no-check-certificate in the option before the download link. Ref: http://www.tecmint.com/install-kernel-3-16-in-debian/ As far as we can find, https://www.youtube.com/watch?v=PGy5XrI6lLs provides the video about how to patching Linux kernel for LitmusRT. The tutorial in installation page ( https://wiki.litmus-rt.org/litmus/InstallationInstructions ) is missing the command for the newbie who is lacking experience of linux tools: sudo apt-get install build-essential kernel-package \ libncurse5-dev bzip2 fakeroot \ And use the following command for wrapping the kernel as deb pac...

[LEGO nxt] nxtOSEK develop environment on Windows

The original website is here: http://lejos-osek.sourceforge.net/installation_windows.htm However there are a lot of alternative or bugs/issues are not mentioned in the website. Most of the tools and software are rapidly upgrading. As the one who uses the legacy of nxtOSEK, I will provide the solutions I used in the following contents. NxTTool.exe need to be executed in command line mode. Install the driver of Nxt USB by the official software is the best idea I guess. If your brick is stuck, please refer to here First of all, Cygwin setup version I use is ver. 2.873(64 bit). If we follow the official tutorial, we face the problem that some of legacy are not available any more. In my case, I install: make 4.1-1 crypt 1.1-1 libgettextpo0, libgettextpo-devel 0.19.5.1-2 libattr1 2.4.46-1 no libdb4.5 libexpat1 2.1.0-3 libgcc1 4.9.3-1 libgdbm4 1.11-1 libgmp10, libgmp-devel, libgmpxx4, 6.10-2p1 libiconv2 1.14-3 libint8, libintl-devel 0.19.5.1-2 liblzma5, liblzma-devel 5.2...

[ubuntu] Removing the instance/package which is not fully installed from apt-get

When I'm installing g77-3.4 for pgplot, I trivially use dkpg to install it. However, g77-3.4-doc is not able to fully installed. And I stuck for this kind of error due to the broken packages (refer to here ): dpkg: error processing realplayer (--configure/--purge/--remove): (Whatever messages) Errors were encountered while processing: g77-3.4-doc cd /var/lib/dpkg/info sudo rm g77-3.4-doc* sudo dpkg --remove --force-remove-reinstreq g77-3.4-doc Hmm, now apt-get works well again. https://www.youtube.com/watch?v=S9HJ-iAzf3k

[s2plot] s2volsurf, PGPLOT, and PyNIfTI

Probably there is someone like me who is reappearing this paper's contributions: Embedding and Publishing Interactive, 3-Dimensional, Scientific Figures in Portable Document Format (PDF) Files The essential source codes can be download from the following (mentioned in s2volsurf 's Install.txt): pgplot NIFTICLIB For the installation (refer to my previous page), first of all, you have to change the path of cbuild.csh accordingly: For example, in build.csh, change the following line (my S2plot is installed in /usr/local/s2plot): cbuild.csh objrange to /usr/local/s2plot/scripts/cbuild.csh objrange  Then in cbuild.csh, the command for linking should be changed as well: (zlib bug?) from $S2CLINKER -o $target ${object} -L${S2PATH}/${S2KERNEL} ${S2LINKS} ${MLLINKS} ${SWLINKS} ${GLLINKS} -L${S2X11PATH}/lib${S2LBITS} ${S2FORMSLINK} -lX11 ${IMATH} -lm ${XLINKPATH} ${S2EXTRALIB} to $S2CLINKER -o $target ${object} -L${S2PATH}/${S2KERNEL} ${S2LINKS} ${MLLINKS} ${...

[s2plot] Installing S2PLOT on Ubuntu 14.04 LTS 64bits

Source code from S2PLOT: http://astronomy.swin.edu.au/s2plot/versions/s2plot-3.2.1.tar.bz2 Thanks for Navtej's BLOG , I almost follow his tutorial. Besides the issues mentioned in his blog, I also refer to this github . #This tutorial is used to reappear their guides #I executed all the following steps in root mode. ----------------------------------- Download the latest version of S2PLOT from official S2PLOT website . Install the essential packages: sudo apt-get install libhpdf-2.2.1 libhpdf-dev freeglut3 freeglut3-dev libfreetype6 libfreetype6-dev libgd2-xpm-dev g++ Extract the file to a directory where you want.  Follow the INSTALL.txt, I plan to install it under /usr/local/s2plot  build.csh is the only file we have to take care, as it executes the other scripts automatically. Then set up the essential environment variables: export S2PATH=/usr/local/s2plot export S2ARCH=linux-gnu-x86_64 export S2SHARED=yes export S2FREEGLUT=yes export S2FREETYPE=yes ...

[LEGO nxt] Install the Enhanced NXT firmware and Upload the OSEK excutable file with Ubuntu 64bits 14.04 in 2015

This tutorial is referred from Install the Enhanced NXT firmware on NXT . I think this is the critical part to capture the idea from the tutorial for Windows. I have tried many ways to conquer the problem of libnxt3.0, however, I still have some problems on the compilation of fwflash or something else. Though the tutorial for Windows is doable, my preference is to build up everything with Linux environment. Fortunately, I notice that NxTTool in the tutorial for Windows is really powerful. We can handle the firmware updating by using NxTTool in Linux as well! I also refer to this Japanese Blog , which inspire me a lot. As usual, install the required packages: sudo apt-get install libusb-dev:i386 libusb-0.1-4 subversion fpc Please note, here is the case for 64bits user that I change libusb-dev to libusb-dev:i386 comparing to the original tutorial. Instead of using libnxt to do the uploading, here I follow that JP Blog to get the latest version of bricxcc: (The url in blog i...