Here is a guide how to compile a kernel for your Agestar. In this latest patch from me, I have included the network driver with scatter/gather support. For FTP transfer, HTTP, or other transfers that uses sendfile syscall, the speed is about 50% faster than before, for ordinary transfer, it almost doesn’t change.
- Download vanilla kernel from kernel.org (use version linux-2.6.25.4)
- Extract kernel , and apply this patch file (patchfile-20080907.gz)
- Download initramfs.cpio.gz put it in the kernel directory and extract it
- Download my configuration file config-20080907 put it into kernel directory, rename it as .config
- Install an arm compiler, your distribution may have them (for instance in Debian you can use aptitude with emdebian.org repository), or download from codesourcery.com.
- Edit Makefile, find CROSS_COMPILE and change the value to the location and prefix of your compiler. For example, of your compiler is /opt/arm/920t_le/bin/arm_920t_le-gcc, fill in /opt/arm/920t_le/bin/arm_920t_le- (without the gcc part)
- To configure the kernel, type “make menuconfig”
- Type make to build zImage
NOTE: the zImage is NOT a FIRMWARE. You can write zImage to /dev/mtdblock1 on the agestar to update your kernel but not through the web interface. I will write another tutorial on how to make zImage into a firmware that can be flashed using the web interface.
If you want a newer kernel, start from the current kernel, and keep on patching with the next incremental patch until you reach the kernel number that you want. This is not always easy, because sometimes a patch will conflict with the changes that i have made.
Hi, I finally got the usb audio and in order to test it seems like I need to compile my own kernel. But im kind of stuck in the part 5. can you tell me what packages I need to install in order to get the arm compiler?
Hello!
I ported OpenWrt firmware for Agestar compatible box – Emprex NSD-100. I have some problem with compile system for that board. Kernel boot fine but i hang at init a usermode. I post my problem at forum.openwrt.org. Colud you help me? Here is a link to post http://forum.openwrt.org/viewtopic.php?pid=82149