Building OpenWRT with Python for RT5350F evaluation board – Internet Of Things

Its been some weeks since I got my hands on the RT5350F board from Olimex. I started building the openwrt for the board and it throwed some error and then put it to the shelf, then I started again this time and resolved the issues to build the image. In addition to that I also included python to the image.

I followed this link https://www.olimex.com/wiki/RT5350F-OLinuXino#Building_OpenWRT to build the openwrt.

mkdir openwrt
cd openwrt
git clone https://github.com/OLIMEX/openwrt -b rt5350f
cd openwrt
make

This should normally fetch you the freshly built opewrt image for the RT5350F board.
But due to some error it was not. So I used this command to know what error it was.

make  V=s

This gave me the information that it was unable to download a version openssl package from the link
ftp://ftp.sunet.se/pub/security/tools/net/openssl/source/ .

Then I decided to download the package manually from another source.

cd dl
wget ftp://ftp.openssl.org/source/openssl-1.0.2a.tar.gz
cd ..
make  V=s

I was trying to add python to the image, but in the menuconfig there was no option to select python. After some
googling I found the solution to add python to the openwrt image.

$scripts/feeds update
$scripts/feeds install python
$make menuconfig # Select python
$make

Everything well smooth and I got the image at this location

build_dir/target-mipsel_24kec+dsp_uClibc-0.9.33.2/linux-ramips_rt305x/openwrt-ramips-rt305x-olinuxino-rt5350f-squashfs-sysupgrade.bin

The image I built is 8.6 MB but the flash size is 8MB So I need to prune the image to fit.
I will explain about flashing and other means of booting the board in my next blogs.

Leave a Reply

Your email address will not be published. Required fields are marked *