In this part we boot the image created using OpenWRT sources. We’ll see what is
working out-of-the-box and what is not.
Preparing the boot media
First we need to create the bootable microsd card. It can be created, as
I’ve described in my previous post,
using Syslinux bootloader and ext2 filesystem.
After successful compilation, the binary image of kernel and openwrt ramdisk is
in bin/x86 directory and it should be named like this:
openwrt-x86-generic-ramfs.bzImage. We have to copy it to the memory card
and configure bootloader to load this image. For syslinux, configuration is in
extlinux.conf file on the card (if there is no file - create it):
The important things is, that we want to redirect the console output to the
serial port. This would allow us to debug system without additional monitor and
keyboard attached to the device. We have to use only a null-modem cable
and some kind of USB-RS232 adapter (for modern computers without RS232 ports),
which are cheap and very useful, so I recommend getting one.
Configuring hardware
Now we have to mangle some Setup options in Ebox3300’s BIOS. Probably during
the first run we would be forced to use the monitor and keyboard in order to
gain access to Setup menu. We may redirect whole BIOS output to the serial port.
Look for this option (P.O.S.T. Forward To):
This should make our work a way more comfortable.
Another thing is to make our microsd card the main boot device and this should
be straightforward enough.
Running the system
System should boot with following message (or quite similar):
And after a moment, we should get those messages:
After pressing ENTER we have our OpenWRT welcome screen:
Congratulations! We have a working OS.
The problems
After a while of inspecting system internals I’ve run into several problems:
No disks visible!
No /dev/sda1, /dev/mmcblk0p1 or anything similar. It means we can’t
mount any storage.
No network device!
Output of ifconfig leaves us only with loopback interface and this makes
one rather lousy router:
So, what can we do? After searching the Internet I’ve found solution, but this
will be covered in the next part.
Comments
comments powered by Disqus