Linux LAN Port Scanner

Just a short post to show how to scan the open ports of a remote machine on the local network: sudo nmap -sS 10.10.10.123 Starting nmap 3.81 ( http://www.insecure.org/nmap/ ) at 2010-04-28 16:00 HKT Interesting ports on 10.10.10.123: (The 1660 ports scanned but not shown below are in state: filtered) PORT    STATE  SERVICE 69/tcp  closed tftp 139/tcp open   netbios-ssn 445/tcp open   microsoft-ds MAC Address: 00:50:FC:B1:E9:70 (Edimax Technology CO.) Nmap finished: 1 IP address (1 host up) scanned in 25.252 seconds

Installing Android in your PC

In case you want to checkout Android but do not have any devices to do so, you can simply install it in your PC. In this blog entry I’ll show how to install Android in VirtualBox with a computer running Windows XP, but this could be installed in any OS supported by VirtualBox or other virtual machine (e.g. VMWare). If you don’t have it yet,  download VirtualBox for your OS and install it first. The first thing is to download Android-x86 ISO file. While it is downloading you can add a new Virtual Machine to VirtualBox. After you click on the “New” icon, click on Next  and enter your machine name. e.g. Android, and select the Operating System:  Linux and version: Other Linux. Click on next to select the memory size: Click on next to select to create a new hard disk: Then basically select Next for the following steps […]

ArmSoM CM5 - Raspberry Pi CM4 alternative with Rockchip RK3576 SoC

Software Documentation with Doxygen

This is a good practice to always have up-to-date software documentation. However, there can be discrepancy between the source code and the documentation over time and maintenance may be an issue. This is where Doxygen,  a “Source code documentation generator tool”, may be handy as it will automatically generate documentation based on the comments in the source code. In order for Doxygen to work, all developers will have to follow the same source code format in all source files,which is in itself also a plus since it will make the code and especially comments in this case more consistent. We’ll just show to quickly generate html and pdf documentation using a sample program we’ll call cnxapp. So here’s the code for this “application”   #include <stdio.h> /** Function1 description @param iArg1 First param description @param iArg2 Second param description @return 0 – Success -1 – Failure */ int function1(int iArg1, […]

Sigma Designs SMP863X Resources

SMP8634 / SMP8635 “Secure Media Processors” from Sigma Designs are used in our set-top-box and digital signage applications. In order to develop for that platform, an SDK must be purchased directly from Sigma Designs. There are different version of the SDK, once is mainly compatible with EM862X MRUA SDK and the newer one DCCHD is not, but offer a few more features. However, as for EM8620 series, the Linux kernel is open source so companies need to release the source if they modified it in their products. For example, you could download the GPL source released by Netgem – http://www.netgem.com/en/supportLinux.php for both Linux and utilities used in their NetBox HD. This is only the GPL source for your reference, after that there are also sigma linux drivers (not released by sigma) and not GPL, and the MRUA/DCCHD package that needs to be purchased from Sigma Designs. Contrary to EM8620 series […]

Setting up a time server (RFC 868)

This blog entry explains how to configure a time server as defined in RFC 868. not to be confused with NTP which is a newer protocol. This type of server is to be used with rdate as you’ll see below. Edit/ etc/xinetd.d/time and set disable = no. Make sure the lines below are present and uncommented in /etc/services time            37/tcp          timserver time            37/udp          timserver restart xinetd: /etc/rc.d/init.d/xinetd restart The time server will be started automatically each time the PC boots up. To test the time server, in your device use rdate (part of busybox): To set the date: rdate -s IP_ADRESS_OF_TIME_SERVER To print the date in the console: rdate -p IP_ADRESS_OF_TIME_SERVER Check the date by typing date

Software profiling in embedded systems with O-profile

What is o-profile? See the description below extracted from http://oprofile.sourceforge.net/, o-profile official website OProfile is a system-wide profiler for Linux systems, capable of profiling all running code at low overhead. OProfile is released under the GNU GPL. It consists of a kernel driver and a daemon for collecting sample data, and several post-profiling tools for turning data into information. OProfile leverages the hardware performance counters of the CPU to enable profiling of a wide variety of interesting statistics, which can also be used for basic time-spent profiling. All code is profiled: hardware and software interrupt handlers, kernel modules, the kernel, shared libraries, and applications. OProfile is currently in alpha status; however it has proven stable over a large number of differing configurations; it is being used on machines ranging from laptops to 16-way NUMA-Q boxes. As always, there is no warranty. Why don’t we use gprof? For embedded system , […]

Rockchip RK3568/RK3588 and Intel x86 SBCs

Where to get video, audio and image samples

If your system is dealing with media files such as video, audio and image you’d better get some samples to make sure your system can play most of them or at least can match (or beat) the competition using the same platform. So I’ve collected some links for just doing that. mplayer test samples: http://samples.mplayerhq.hu/ – Over 42 GB / a few thousand files of diverse audio and video files. Microsoft HD Showcase – http://www.microsoft.com/windows/windowsmedia/musicandvideo/hdvideo/contentshowcase.aspx – A must to test wmv, wma and wma pro decoding capabilities. For testing MKV videos, you’ll most likely need to download some videos using bittorrent or emule. To search for video you can use sites such as http://www.isohunt.to or http://www.verycd.com/. Very CD is actually one of the top website in China in terms of traffic. You can also convert some other videos to MKV using some MKV editors my favorite being mkvtoolnix. For graphics […]

Resources for Cirrus Logic EP93XX – EP9301, EP9302, EP9307, EP9312 & EP9315

A few years ago, we used EP9307 in combination with a MPEG Video Decoder chip (ES6425 – now phased out) for the development of a Karaoke system for the Chinese Market. The advantage with Cirrus Logic (and many American companies) is that documentation and support can very easily be found online including datasheets, software development kit and support forum. This was so good that we really had to get the involvement of the FAE once or twice. That’s a sharp contrast with some other companies where is there a dearth of support and FAE are seldom able to help you resolve issues you may have with their products, especially if you work for a smaller company. Basically to develop for EP9307 and other EP93xx platform most of the software and hardware resources are available at http://arm.cirrus.com/ including: Linux 2.6 Documentation & Linux 2.6 Source for EP93xx Linux 2.4 Documentation & […]

Boardcon Rockchip RK3588S SBC with 8K, WiFI 6, 4G LTE, NVME SSD, HDMI 2.1...