PortaboomHide minor edits - Show changes to markup
make; make install to install
cd $ANT_BASE
tar -czvf ./bridge_tools-0.9.6-2003_013.1.tar.gz usr/
$ANT_BASE/usr
BINDIR = $(PREFIX)/bin
MANDIR = $(PREFIX)/man
$ANT_BASE/usr/bin and $ANT_BASE/usr/man exist, or the cp in the makefile will fail
rm -rf $ANT_BASE/usr/man
tar -czvf $ANTLINUX/tarballs/mini_httpd-1.15c-2003_014.1.tar.gz usr/
mkcramfs -n mini_httpd-1.15c-2003_014.1 usr/ $ANTLINUX/crams/mini_httpd-1.15c-2003_014.1.cram
Makefile, $KERNEL_PATH and $MOD_PATH need to be set so that the make scripts put the right things in the right places. Re-run depmod again after hostap modules are installed
make oldmod and make minstall. The oldmod target assumes that you've run make [x|menu]config previously, and it will make clean before it runs make patch the kernel using the make insert target in FreeSWAN (from FreeSWAN doc/impl.notes). This will set up some symlinks in the kernel source, and patch necessary files, after which you can build the Debian package (if desired) using make-kpkg. See other build notes above
make oldmod and make minstall. The oldmod target assumes that you've run make [x|menu]config previously, and it will make clean before it runs make patch the kernel using the make insert target in FreeSWAN (from FreeSWAN doc/impl.notes). This will set up some symlinks in the kernel source, and patch necessary files, after which you can build the Debian package (if desired) using make-kpkg. See other build notes above
Makefile, $KERNEL_PATH and $MOD_PATH need to be set so that the make scripts put the right things in the right places. Re-run depmod again after hostap modules are installed
($LINUXSRC), so the correct include files are used
($LINUXSRC), so the correct include files are used
../linux
../linux
http://www.antlinux.com/files/linux/soekris/18Feb2003-initrd.gz http://www.antlinux.com/files/linux/soekris/18Feb2003-vmlinuz
http://files.antlinux.com/linux/soekris/18Feb2003-initrd.gz http://files.antlinux.com/linux/soekris/18Feb2003-vmlinuz
What's on other pages:
Related pages in this wiki:
Those two files should be loadable from a DOS formatted CF card using loadlin, or from a Linux formatted CF card using GRUB. Personally, I was PXEbooting them from another server. See how PXEbooting is done on the HowtoSetupPxeBoot? page. Not all of the packages below are installed on the initrd image, the initrd image only has enough software to get you to a shell prompt.
Those two files should be loadable from a DOS formatted CF card using loadlin, or from a Linux formatted CF card using GRUB. Personally, I was PXEbooting them from another server. See how PXEbooting is done on the HowTos.SetupPxeBoot page. Not all of the packages below are installed on the initrd image, the initrd image only has enough software to get you to a shell prompt.
I have a HowTos.LinksysWRT54 page, it's also a hackable embedded device that runs Linux.
FIXME move the kernel build stuff to one of the KernelBuild pages. Move application builds to their own pages.
I have a [[HowTos.LinksysWRT54] page, it's also a hackable embedded device that runs Linux. The initrd and kernel images that I created with the below instructions are here:
The initrd and kernel images that I created with the below instructions are here:
The contents of this website are Copyright (c)2003 by Brian Manning <brian at antlinux dot com>. Please do not reuse any of the content on this website without permission from the author.
What's on this page:
What's on other pages:
The reason why this page exists is to document my experiences with the Soekris Engineering net4501 embedded device. In past versions of this page, I never linked the Soekris website, nor the Soekris box I am using for all of the below information. Let me rectify that now:
I have a [[HowTos.LinksysWRT54] page, it's also a hackable embedded device that runs Linux. The initrd and kernel images that I created with the below instructions are here:
http://www.antlinux.com/files/linux/soekris/18Feb2003-initrd.gz http://www.antlinux.com/files/linux/soekris/18Feb2003-vmlinuz
Those two files should be loadable from a DOS formatted CF card using loadlin, or from a Linux formatted CF card using GRUB. Personally, I was PXEbooting them from another server. See how PXEbooting is done on the HowtoSetupPxeBoot? page. Not all of the packages below are installed on the initrd image, the initrd image only has enough software to get you to a shell prompt.
The interface can be used similar to the ipv4 "switches" in /proc.
To turn the LED on:
echo -n 1 > /proc/driver/errroled
To turn the LED off:
echo -n 0 > /proc/driver/errroled
Flashing/Blinking of led automatically
Write a value 2 ~[slow] to 9 ~[fastest]
To see the status of the LED:
cat /proc/driver/errorled
A package maintainer can specify the locations, permissions, and modes of a file (or collection of files) in a file called manifest. This file contains a list of installation tuples (one per line) of the following format:
source:destination[:mode[:owner[:group]]]
An installation tuple may use shell variables taken from the GAR environment, but must enclose them in curly braces instead of parentheses. Thus, a sample manifest file may contain the following:
${WORKSRC}/nwall:${DESTDIR}${bindir}/nwall:2755:root:tty
${WORKSRC}/src/foo:${DESTDIR}${sharedstatedir}/foo
${WORKSRC}/yoink:${DESTDIR}${sysconfdir}/yoink:0600
Note that all options after the destination location for the file are optional, but one must provide all preceeding options in order to define a given optional field. Thus to specify the owner of a file, one must also specify the mode.
Some setup before you get into the below:
export ANTLINUX=/usr/local/src/antlinux
export ANT_BASE=/usr/local/src/antlinux/base
make oldmod and make minstall. The oldmod target assumes that you've run make [x|menu]config previously, and it will make clean before it runs make patch the kernel using the make insert target in FreeSWAN (from FreeSWAN doc/impl.notes). This will set up some symlinks in the kernel source, and patch necessary files, after which you can build the Debian package (if desired) using make-kpkg. See other build notes above
Makefile.inc, change the following:
DESTDIR - final destination; if you are creating a fake root directory, this is what you will change to make everything install under your fake root. Remove the question mark from DESTDIR?, then set the path you want Freeswan to build and install to prior to packaging.
KERNELSRC - location of your kernel source that you will be using for your fakeroot'ed filesystem. Remove the question mark from KERNELSRC?. Also, there's a conditional test around KERNELSRC that was preventing make kpatch (below) from finding the correct kernel source tree. Feel free to remove it.
$ANT_BASE/boot using 'cp'
cd $ANTLINUX/linux
cp arch/i386/boot/bzImage$ANT_BASE/boot/vmlinuz-$KERNEL_VERSION.antlinux-YYYY_JJJ.V
cp System.map $ANT_BASE/boot/System.map-$KERNEL_VERSION.antlinux-YYYY_JJJ.V
INSTALL_MOD_PATH=$ANT_BASE make modules
INSTALL_MOD_PATH=$ANT_BASE make modules_install
Makefile, $KERNEL_PATH and $MOD_PATH need to be set so that the make scripts put the right things in the right places. Re-run depmod again after hostap modules are installed
hostap/kernel-patches
driver/modules/ to linux/driver/net/wireless
($LINUXSRC), so the correct include files are used
cp dp83815.o ../base/lib/modules/$KERNEL_VERSION/kernel/drivers/net/
../linux
cp *.o ../base/lib/modules/$KERNEL_VERSION/kernel/drivers/block
/sbin/depmod -b $ANT_BASE/lib/modules/$KERNEL_VERSION -F $ANTLINUX/linux/System.map $KERNEL_VERSION
cd $ANT_BASE/lib
tar -czvf $ANT_BASE/modules-$KERNEL_VERSION.antlinux-YYYY_JJJ.V.tar.gz modules/
cd $ANT_BASE
tar -czvf $ANT_BASE/boot-$KERNEL_VERSION.antlinux-YYYY_JJJ.V.tar.gz boot/
cd $ANT_BASE/lib
mkcramfs -n modules-kernel_version.antlinux_YYYY-JJJ.V modules/ modules-kernel_version.antlinux_YYYY-JJJ.V.cram
make
cd $ANT_BASE/usr
rm -rf man/
tar -czvf $ANTLINUX/wireless_tools.VV-YYYY.JJJ.V.tar.gz
mkcramfs -n wireless_tools.VV-YYYY.JJJ.V.tar.gz usr/
./configure --prefix=/usr/local/src/antlinux/base/usr
mkcramfs -n bridge_tools-0.9.6-2003_013.1 usr ../bridge_tools-0.9.6-2003_013.1.cram
DOSTATIC = true
USE_SYSTEM_PWD_GRP = false
mount 192.168.7.1:/usr/local/src /mnt/nfs -t nfs -o nolock
mount /modules/modules-2.4.20.antlinux_2003-044.1.cram /lib/modules -t cramfs -o loop