[LinuxBIOS] buildrom: filo patches for m57sli

Jordan Crouse jordan.crouse at amd.com
Thu Sep 6 04:45:54 CEST 2007


On 05/09/07 18:33 -0400, Ward Vandewege wrote:
> This adds buildrom m57sli support for the filo bootloader.
> 
> Thanks,
> Ward.
> 
> -- 
> Ward Vandewege <ward at fsf.org>
> Free Software Foundation - Senior System Administrator

> 
> The sata spinup patch.
> 
> Signed-off-by: Ward Vandewege <ward at gnu.org>
Acked-by: Jordan CRouse <jordan.crouse at amd.com>

> Index: packages/filo/patches/sata-spinup-delay.patch
> ===================================================================
> --- packages/filo/patches/sata-spinup-delay.patch       (revision 0)
> +++ packages/filo/patches/sata-spinup-delay.patch       (revision 0)
> @@ -0,0 +1,12 @@
> +Index: main/filo.c
> +===================================================================
> +--- svn/main/filo.c (revision 34)
> ++++ svn/main/filo.c (working copy)
> +@@ -60,6 +60,7 @@
> +     
> +     /* Initialize */
> +     init();
> ++    delay (5);
> +     grub_main();
> +     return 0;   
> + }

> 
> The filo config file for the m57sli.
> 
> Signed-off-by: Ward Vandewege <ward at gnu.org>
> 
> Index: packages/filo/conf/m57sli-Config
> ===================================================================
> --- packages/filo/conf/m57sli-Config    (revision 0)
> +++ packages/filo/conf/m57sli-Config    (revision 0)
> @@ -0,0 +1,50 @@
> +# Use grub instead of autoboot?
> +USE_GRUB = 1
> +# Grub menu.lst path
> +MENULST_FILE = "hde1:/boot/grub/menu.lst"
> +# Driver for hard disk, CompactFlash, and CD-ROM on IDE bus
> +IDE_DISK = 1
> +# Add a short delay when polling status registers
> +# (required on some broken SATA controllers)
> +IDE_DISK_POLL_DELAY = 1
> +# Driver for USB Storage
> +USB_DISK = 1
> +# VGA text console
> +VGA_CONSOLE = 1
> +PC_KEYBOARD = 1
> +# Enable the serial console
> +SERIAL_CONSOLE = 1
> +# Serial console; real external serial port
> +SERIAL_IOBASE = 0x3f8
> +SERIAL_SPEED = 115200
> +# Filesystems
> +FSYS_EXT2FS = 1
> +FSYS_ISO9660 = 1
> +# Support for boot disk image in bootable CD-ROM (El Torito)
> +ELTORITO = 1
> +# PCI support
> +SUPPORT_PCI = 1
> +# Enable this to scan PCI busses above bus 0
> +# AMD64 based boards do need this.
> +PCI_BRUTE_SCAN = 1
> +# Loader for standard Linux kernel image, a.k.a. /vmlinuz
> +LINUX_LOADER = 1
> +
> +# Debugging
> +#DEBUG_ALL = 1
> +#DEBUG_ELFBOOT = 1
> +#DEBUG_ELFNOTE = 1
> +#DEBUG_LINUXBIOS = 1
> +#DEBUG_MALLOC = 1
> +#DEBUG_MULTIBOOT = 1
> +#DEBUG_SEGMENT = 1
> +#DEBUG_SYS_INFO = 1
> +#DEBUG_TIMER = 1
> +#DEBUG_BLOCKDEV = 1
> +#DEBUG_PCI = 1
> +#DEBUG_VIA_SOUND = 1
> +#DEBUG_LINUXLOAD = 1
> +#DEBUG_IDE = 1
> +#DEBUG_USB = 1
> +#DEBUG_ELTORITO = 1
> +

> 
> Add the sata spinup delay patch.
> 
> Signed-off-by: Ward Vandewege <ward at gnu.org>
> 
> Index: packages/filo/filo.mk
> ===================================================================
> --- packages/filo/filo.mk       (revision 17)
> +++ packages/filo/filo.mk       (working copy)
> @@ -8,6 +8,11 @@
>  
>  FILO_PATCHES=$(PACKAGE_DIR)/filo/patches/make.patch
>  
> +ifeq ($(CONFIG_PLATFORM_M57SLI),y)
> +       FILO_PATCHES += $(PACKAGE_DIR)/filo/patches/sata-spinup-delay.patch
> +endif
> +
> +
>  ifeq ($(CONFIG_VERBOSE),y)
>  FILO_FETCH_LOG=/dev/stdout
>  FILO_BUILD_LOG=/dev/stdout

> -- 
> linuxbios mailing list
> linuxbios at linuxbios.org
> http://www.linuxbios.org/mailman/listinfo/linuxbios

-- 
Jordan Crouse
Systems Software Development Engineer 
Advanced Micro Devices, Inc.






More information about the coreboot mailing list