Home
For this site:
Site-info & copyright
Change your settings,
Setup
links to related subjects on this site:
webserver manual
mailserver manual
links to other subjects on this site:
Bird pictures
Insect pictures

Build your own software

How to build Your own kernel, busybox, and additional software yourself.

Building a new flash image for the Edimax is done in several steps:

Programs

  • sh
  • ls
  • dc
  • inetd
  • smtpd
  • httpd
  • popd
make, cc busybox   Standard Unix programs (sh, vi, ls, cat, ...) are integrated into a single Busybox executable to save disk-space and runtime memory. Application programs (a http server) may be added as well.
busybox

Filesystem

  • /bin/busybox
  • /etc
  • /home
  • /mnt
  • /usr
  • /var
tar -jc ramdisk.bz2   A filesystem is prepared to contain busybox, maybe some other programs, and some startup and shutdown scripts. It will be the root filesystem after starting the computer. The root filesystem is compressed into ramdisk.bz2.
ramdisk

Linux sources

  • ramdisk.bz2
  • kernel
  • mm
  • drivers
  • libraries
make, cc vmlinuz   The kernel is assembled into vmlinuz, containing the ramdisk. It will be expanded automatically at boot time.
vmlinuz

Image sources

  • vmlinuz
cvimg linux-adm.bin   The kernel vmlinuz is provided with a signature, to be recognized by the bootloader.
linux-adm.bin

Image sources

  • webpages-6104k.bin
  • linux-adm.bin
cat Edimax-version.krnl   The webpages and the kernel linux-adm.bin are concatenated into 1 file, ready to be programmed into the flash-memory.
Edimax-version.krnl

Image

  • Edimax-version.krnl
flash Edimax flash ROM   The Edimax-version.krnl is uploaded into the Edimax by a RS232 interface and flashed into the NOR-flash by an internal Boot/Flash program.

Standard Unix programs (sh, vi, ls, cat, ...) are integrated into a single Busybox executable to save disk-space and runtime memory.
Application programs (a http server) may be added as well.
A filesystem is prepared to contain busybox, maybe some other programs, and some startup and shutdown scripts.
It will be the root filesystem after starting the computer.
The root filesystem is compressed into ramdisk.bz2.
The kernel is assembled into vmlinuz, containing the ramdisk. It will be expanded automatically at boot time.
With a little program, Vmlinuz is embedded into a datablock to fit the flash rom. Then it is flashed into the Edimax using the RS232 port.
At runtime, both Kernel memory and (initial) Ramdisk are expanded from FlashRom, and init is started. Then all networks and standard programs are started using rc.

If the reset button is not pressed, and a separate Flash-Rom partition contains a valid compressed image, it is expanded, overwriting the entire /etc directory, including IP addresses and rc scripts.

It is possible to alter the /etc files and flash them back into the Flash-Rom partition.

Prerequisites

To build your own software for the Edimax, you need:

open folder Cross Compiler for your Linux/Intel platform
open folder Creating users
open folder Download and install Linux and Busybox sources
open folder Integrating kernel, busybox and other programs
open folder Additional software
open folder Adding your own software
open folder New software


Meaning of the colours:New or changed text since last visit (see user settings at top of page).
Edimax stands for the BR-6104KP with USB
Sweex means LB000021 and compatibles without USB.
white text is part of a file on disk.
For remarks please click Here email: philip@geens.nl