[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: powerpc b-f build compiles the kernel



It's not so mysterious.  Actually read the part I left below :)

On Sun, Jan 06, 2002 at 09:27:05PM -0500, Colin Walters wrote:
> # Fix .config for ramdisk rooting and kernel ip autoconfiguration.
> # This image is >1440 KB and is suitable for CD/net booting. 
> sed 's:# CONFIG_CMDLINE_BOOL is not set:CONFIG_CMDLINE_BOOL=y \
> CONFIG_CMDLINE="root=/dev/ram ip=off":' \
> $builddir/usr/src/kernel-patches/powerpc/config.prep > .config.param
> 
> # Enable kernel ip autoconfiguration
> sed 's:# CONFIG_IP_PNP is not set:CONFIG_IP_PNP=y \
> CONFIG_IP_PNP_ENABLE=y \
> CONFIG_IP_PNP_DHCP=y \
> CONFIG_IP_PNP_BOOTP=y \
> CONFIG_IP_PNP_RARP=y:' \
> .config.param > .config.ipauto
> 
> # Enable nfsroot
> sed 's:CONFIG_NFS_FS=y:CONFIG_NFS_FS=y \
> CONFIG_ROOT_NFS=y:' \
> .config.ipauto > .config
>  
> # Build CD/net kernel boot image
> make oldconfig && make dep && make clean && make zImage.initrd
> cp ./arch/ppc/boot/zImage.initrd $top/bootprepfull.bin
> 
> # Copy config.prep->.config and fix up for floppy/ramdisk rooting.
> # This image is <=1440 KB and is suitable for floppy booting.
> sed 's:# CONFIG_CMDLINE_BOOL is not set:CONFIG_CMDLINE_BOOL=y\
> CONFIG_CMDLINE="root=/dev/fd0 load_ramdisk=1":' \
> $builddir/usr/src/kernel-patches/powerpc/config.prep > .config
> 
> # Build floppy-sized kernel boot image
> make oldconfig && make zImage
> cp ./arch/ppc/boot/zImage $top/bootprep.bin


-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer



Reply to: