1. Compile grub first
Wget ftp://alpha.gnu.org/gnu/grub/grub-1.98.tar.gz
Wget
Http://stskeeps.subnetmask.net/joggler/grub-gop-video-v1.patch
Tar xvf grub-1.98.tar.gz
CDS grub-1.98
Patch-P1 <../grub-gop-video-v1.patch
Apt-Get install bison libxft-Dev (optional)
./Configure -- With-platform = EFI -- disable-werror -- target = i386
Make
. /Grub-mkimage-D. -O grub. efi acpi cpuid gfxterm lspci sfs crc gptsync LVM sh gzio mdraid sleep datehook halt memrw PCI tar date minicmd PNG terminal ata datetime hashsum minix probe terminfo 1_dm_nv MMAP Echo help parse TGA multiple raid bitmap instances hfs read true bitmap_scale elf normal reboot UDF blocklist iso9660 unzip bufio ext2 extcmd jpeg ntfs unzip Cat fat keystatus SCSI unzip cat challenge video videotest search_label fixvideo font fshelp loadbios loadenv Linux part_msdos search XFS CMP charset setjmp loopback setpci cpio configfile gettext gfxmenu ls parttool
2. Replace the built-in boot with the generated grub. EFIProgramBoot. EFI and create the grub. cfg file.
3. Generate the kernel
To
Http://aur.archlinux.org/packages.php? Id = 36949 download all source code:
Wget http://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.33.4.tar.bz2
Wget http://www.ihku.biz/joggler/patches/joggler-backlight-2.6.32-v1.patch
Wget http://www.ihku.biz/joggler/patches/joggler-i2c-fix-2.6.32-v1.patch
Wget http://www.ihku.biz/joggler/patches/joggler-sound-fix-2.6.32-v2.patch
Wget http://www.ihku.biz/joggler/patches/linux-2.6.33.2-iegd.patch
Wget joggler-initscript
Wget joggler-kernel.config
Wget mkinitcpio-joggler.conf
Tar xvf linux-2.6.33.4.tar.bz2
CD linux-2.6.33.4
Patch-P1 <../joggler-backlight-2.6.32-v1.patch
Patch-P1 <../joggler-i2c-fix-2.6.32-v1.patch
Patch-P1 <../joggler-sound-fix-2.6.32-v2.patch
Patch-P1 <../linux-2.6.33.2-iegd.patch
CP ../joggler-kernel.config./. config
Make menuconfig
Make bzimage
Make modules
Make modules_install
CP./ARCH/x86/boot/bzimage./vmlinuz-2.6.33.4-joggler
4. Generate initrd
Mkinitramfs-o ./
Initrd. img-2.6.33.4-joggler
Or
Update-initramfs-c-k 2.6.33.4-joggler
CP/boot/initrd. img-2.6.33.4-joggler ./
5. Create a startup Item
Mkdir/Media/mmcblk0p1/boot
CP./vmlinuz-2.6.33.4-joggler
/Media/mmcblk0p1/boot/
CP ./
Initrd. img-2.6.33.4-joggler/Media/mmcblk0p1/boot/
Add the following content to grub. cfg:
Menuentry "joggler Ubuntu 9.10 with Linux 2.6.33.4"
{
Set root = (hd0, 1)
Linux/boot/vmlinuz-2.6.33.4-joggler root =/dev/sda2 ACPI = force Ro idle = halt
Initrd/boot/initrd. img-2.6.33.4-joggler
}
5. After restart, you can use the 2.6.33.4 kernel to enter the Ubuntu System of the USB flash disk.
========================================================== ========================================================== ===
NOTE: ReferArticle《Customize your joggler