How to compile the kernel on the DockStar itself? January 09, 2012 03:05PM |
Registered: 11 years ago Posts: 62 |
Re: How to compile the kernel on the DockStar itself? January 11, 2012 06:15PM |
Registered: 12 years ago Posts: 23 |
Re: How to compile the kernel on the DockStar itself? January 11, 2012 10:00PM |
Registered: 11 years ago Posts: 62 |
Re: How to compile the kernel on the DockStar itself? January 16, 2012 07:20PM |
Registered: 12 years ago Posts: 501 |
root@sparedockstar:~# uname -a Linux debian 3.1.9-kirkwood #1 Mon Jan 16 13:45:21 UTC 2012 armv5tel GNU/Linux... you'll have to adjust it to your needs and version... but ...
apt-get install apt-utils build-essential dialog fakeroot flash-kernel git-core gzip initramfs-tools kernel-package libncurses5-dev lzma uboot-mkimage(there are probably some extra ones in there...)
cd /usr/src/ wget http://www.kernel.org/pub/linux/kernel/v3.0/linux-3.1.9.tar.bz2 # adjust to your desired version tar xjvf linux-3.1.9.tar.bz2
cp <whatever-config-you-want-to-start-with> linux-3.1.9/.config # you can start with a default kirkwood config and build up, ... or whatever make menuconfig #turn on what you need, turn off what you _know_ you'll never need...When you save it while exiting from the menuconfig, check for errors... adjust and repeat as necessary...
make-kpkg --rootcmd fakeroot --arch armel --append-to-version=-kirkwood --revision=1.0 --initrd kernel_image kernel_headers... wait about 2 hours.
dpkg -i /usr/src/linux-image-3.1.9-kirkwood_1.0_armel.deb mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-3.1.9-kirkwood -d /boot/vmlinuz-3.1.9-kirkwood /boot/uImage mkimage -A arm -O linux -T ramdisk -C gzip -a 0x00000000 -e 0x00000000 -n initramfs-3.1.9-kirkwood -d /boot/initrd.img-3.1.9-kirkwood /boot/uInitrd
Re: How to compile the kernel on the DockStar itself? January 17, 2012 09:52AM |
Registered: 11 years ago Posts: 62 |
Re: How to compile the kernel on the DockStar itself? March 28, 2012 04:57PM |
Registered: 11 years ago Posts: 17 |
> make-kpkg --rootcmd fakeroot --arch armel > --append-to-version=-kirkwood --revision=1.0 > --initrd kernel_image kernel_headers >... wait about 2 hours.
Re: How to compile the kernel on the DockStar itself? April 01, 2012 04:15PM |
Admin Registered: 12 years ago Posts: 17,930 |
root@Debian:/usr/src/linux-3.1.10# make-kpkg --rootcmd fakeroot --arch armel --append-to-version=-kirkwood --revision=1.0 --initrd kernel_image kernel_headers exec make kpkg_version=12.036+nmu2 -f /usr/share/kernel-package/ruleset/minimal.mk debian DEBIAN_REVISION=1.0 APPEND_TO_VERSION=-kirkwood KPKG_ARCH=armel INITRD=YES ROOT_CMD=fakeroot ====== making target debian/stamp/conf/minimal_debian [new prereqs: ]====== This is kernel package version 12.036+nmu2. test -d debian || mkdir debian test ! -e stamp-building || rm -f stamp-building install -p -m 755 /usr/share/kernel-package/rules debian/rules for file in ChangeLog Control Control.bin86 config templates.in rules; do \ cp -f /usr/share/kernel-package/$file ./debian/; \ done for dir in Config docs examples ruleset scripts pkg po; do \ cp -af /usr/share/kernel-package/$dir ./debian/; \ done test -f debian/control || sed -e 's/=V/..-kirkwood/g' \ -e 's/=D/1.0/g' -e 's/=A/armel/g' \ -e 's/=SA//g' \ -e 's/=I//g' \ -e 's/=CV/./g' \ -e 's/=M/Unknown Kernel Package Maintainer <unknown@unconfigured.in.etc.kernel-pkg.conf>/g' \ -e 's/=ST/linux/g' -e 's/=B/armel/g' \ /usr/share/kernel-package/Control > debian/control test -f debian/changelog || sed -e 's/=V/..-kirkwood/g' \ -e 's/=D/1.0/g' -e 's/=A/armel/g' \ -e 's/=ST/linux/g' -e 's/=B/armel/g' \ -e 's/=M/Unknown Kernel Package Maintainer <unknown@unconfigured.in.etc.kernel-pkg.conf>/g' \ /usr/share/kernel-package/changelog > debian/changelog chmod 0644 debian/control debian/changelog test -d ./debian/stamp || mkdir debian/stamp make -f debian/rules debian/stamp/conf/kernel-conf make[1]: Entering directory `/usr/src/linux-3.1.10' debian/ruleset/misc/checks.mk:36: *** Error. I do not know where the kernel image goes to [kimagedest undefined] The usual case for this is that I could not determine which arch or subarch this machine belongs to. Please specify a subarch, and try again.. Stop. make[1]: Leaving directory `/usr/src/linux-3.1.10' make: *** [debian/stamp/conf/minimal_debian] Error 2 Failed to create a ./debian directory: No such file or directory at /usr/bin/make-kpkg line 984.