grub-devel.gnu.org archive mirror
 help / color / mirror / Atom feed
From: Javier Vasquez <j.e.vasquez.v@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: [grub-devel] loongson-2f mini-pc (fuloong) elf image generation.
Date: Sun, 10 Nov 2013 13:10:50 -0600	[thread overview]
Message-ID: <CALUrRGfy-dCSkQiPRom_uvD+b1i3ufhQL1W2eGsTQgMmV5VyVw@mail.gmail.com> (raw)
In-Reply-To: <CALUrRGd0FazN+a=q7eyk6-GcWuAAreyNfzE-nnkC5D-1M3UrNA@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 518 bytes --]

On 11/10/13, Javier Vasquez <j.e.vasquez.v@gmail.com> wrote:
> On Sun, Nov 3, 2013 at 7:16 PM, Vladimir 'φ-coder/phcoder' Serbinenko
>> When you do grub_dprintf change you have to do it like:
>>   if (!debug)
>> #ifdef GRUB_UTIL
>>      return;
>> #else
>>      debug="all";
>> #endif
>
>
> I'll be sending the grub.cfg from the mini-pc later, but now I'm able
> to see very little output through the serial interface.  Attached goes
> this output.

Attached goes the grub.cfg used...

-- 
Javier.

[-- Attachment #2: grub.cfg --]
[-- Type: application/octet-stream, Size: 4643 bytes --]

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
serial
terminal_output console serial
debug=all
insmod ehci
insmod ohci
insmod usb_keyboard
ls
if [ -s $prefix/grubenv ]; then
  load_env
fi
if [ "${next_entry}" ] ; then
   set default="${next_entry}"
   set next_entry=
   save_env next_entry
   set boot_once=true
else
   set default="0"
fi

if [ x"${feature_menuentry_id}" = xy ]; then
  menuentry_id_option="--id"
else
  menuentry_id_option=""
fi

export menuentry_id_option

if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function load_video {
  if [ x$feature_all_video_module = xy ]; then
    insmod all_video
  else
    insmod efi_gop
    insmod efi_uga
    insmod ieee1275_fb
    insmod vbe
    insmod vga
    insmod video_bochs
    insmod video_cirrus
  fi
}

#terminal_output console
set timeout=5
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/10_linux ###
menuentry 'Debian GNU/Linux' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-simple-8cf96951-8da7-4419-a07f-cb0afc3f6cdd' {
	load_video
	insmod gzio
	insmod part_msdos 
	insmod ext2
	set root='hd0,msdos1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  c24b9690-317d-49b2-9fe9-5ddbd9cafe5d
	else
	  search --no-floppy --fs-uuid --set=root c24b9690-317d-49b2-9fe9-5ddbd9cafe5d
	fi
	echo	'Loading Linux 3.11-1-loongson-2f ...'
	linux	/vmlinux-3.11-1-loongson-2f root=/dev/sda6 ro console=tty machtype=lemote-fuloong-2f-box video=sisfb:1280x1024-24@60 resume=/dev/sda5
	echo	'Loading initial ramdisk ...'
	initrd	/initrd.img-3.11-1-loongson-2f
}
submenu 'Advanced options for Debian GNU/Linux' $menuentry_id_option 'gnulinux-advanced-8cf96951-8da7-4419-a07f-cb0afc3f6cdd' {
	menuentry 'Debian GNU/Linux, with Linux 3.11-1-loongson-2f' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11-1-loongson-2f-advanced-8cf96951-8da7-4419-a07f-cb0afc3f6cdd' {
		load_video
		insmod gzio
		insmod part_msdos 
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  c24b9690-317d-49b2-9fe9-5ddbd9cafe5d
		else
		  search --no-floppy --fs-uuid --set=root c24b9690-317d-49b2-9fe9-5ddbd9cafe5d
		fi
		echo	'Loading Linux 3.11-1-loongson-2f ...'
		linux	/vmlinux-3.11-1-loongson-2f root=/dev/sda6 ro console=tty machtype=lemote-fuloong-2f-box video=sisfb:1280x1024-24@60 resume=/dev/sda5
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-3.11-1-loongson-2f
	}
	menuentry 'Debian GNU/Linux, with Linux 3.11-1-loongson-2f (recovery mode)' --class debian --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.11-1-loongson-2f-recovery-8cf96951-8da7-4419-a07f-cb0afc3f6cdd' {
		load_video
		insmod gzio
		insmod part_msdos 
		insmod ext2
		set root='hd0,msdos1'
		if [ x$feature_platform_search_hint = xy ]; then
		  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos1 --hint-efi=hd0,msdos1 --hint-baremetal=ahci0,msdos1  c24b9690-317d-49b2-9fe9-5ddbd9cafe5d
		else
		  search --no-floppy --fs-uuid --set=root c24b9690-317d-49b2-9fe9-5ddbd9cafe5d
		fi
		echo	'Loading Linux 3.11-1-loongson-2f ...'
		linux	/vmlinux-3.11-1-loongson-2f root=/dev/sda6 ro single console=tty machtype=lemote-fuloong-2f-box video=sisfb:1280x1024-24@60
		echo	'Loading initial ramdisk ...'
		initrd	/initrd.img-3.11-1-loongson-2f
	}
}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  ${config_directory}/custom.cfg ]; then
  source ${config_directory}/custom.cfg
elif [ -z "${config_directory}" -a -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###

  reply	other threads:[~2013-11-10 19:10 UTC|newest]

Thread overview: 79+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-28 16:31 [grub-devel] loongson-2f mini-pc (fuloong) elf image generation Javier Vasquez
2012-10-28 16:36 ` Javier Vasquez
2012-10-28 17:19 ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-10-28 23:19   ` Javier Vasquez
2012-10-29 21:47     ` Aleš Nesrsta
2012-10-29 23:03       ` Javier Vasquez
2012-10-30 20:14         ` Aleš Nesrsta
2012-11-03 21:34           ` Javier Vasquez
2012-11-04 17:31             ` Javier Vasquez
2012-11-04 21:05               ` Aleš Nesrsta
2012-11-05  0:11                 ` Javier Vasquez
2012-11-04 21:51               ` Vladimir 'φ-coder/phcoder' Serbinenko
2012-11-05  0:14                 ` Javier Vasquez
2013-07-12 14:02             ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-07-12 16:25               ` Aleš Nesrsta
2013-07-12 18:05                 ` Lennart Sorensen
2013-07-13  8:13                 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-07-13 18:10                   ` Aleš Nesrsta
2013-07-13 19:54                     ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-07-13 21:22                       ` Aleš Nesrsta
2013-07-15  0:18                         ` Javier Vasquez
2013-07-15  3:19                           ` Javier Vasquez
2013-07-15 10:26                             ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-07-16 13:40                               ` Javier Vasquez
2013-07-16 13:50                                 ` Javier Vasquez
2013-07-16 17:53                                   ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-07-16 21:17                                     ` Javier Vasquez
2013-07-15 20:39               ` Aleš Nesrsta
2013-07-16 19:25                 ` Aleš Nesrsta
2013-07-16 19:29                   ` Aleš Nesrsta
2013-07-18 16:10                     ` [PATCH] " Aleš Nesrsta
2013-07-19  5:00                       ` Javier Vasquez
2013-07-20 21:56                         ` Aleš Nesrsta
2013-07-20 22:43                           ` Javier Vasquez
2013-07-21 15:29                             ` Aleš Nesrsta
2013-07-21 20:11                               ` Javier Vasquez
2013-07-22 20:14                                 ` starous
2013-07-22 21:00                                   ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-07-23 21:05                                     ` starous
2013-07-26 15:30                                   ` Aleš Nesrsta
2013-07-26 16:59                                     ` Javier Vasquez
2013-07-26 17:14                                       ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-07-27 22:40                                         ` Javier Vasquez
2013-07-28 13:56                                           ` Aleš Nesrsta
2013-07-28 14:04                                             ` Aleš Nesrsta
2013-09-17 17:24                                               ` Javier Vasquez
2013-09-17 17:34                                                 ` Javier Vasquez
2013-09-17 21:10                                                   ` Aleš Nesrsta
2013-09-17 21:35                                                     ` Gregg Levine
2013-09-17 22:17                                                       ` Aleš Nesrsta
2013-09-17 19:27                                                 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-09-17 20:33                                                   ` Javier Vasquez
2013-10-27 17:54                                                     ` Javier Vasquez
2013-10-27 18:02                                                       ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-10-27 18:33                                                         ` Javier Vasquez
2013-10-27 20:03                                                           ` Aleš Nesrsta
2013-10-27 20:19                                                             ` Javier Vasquez
2013-10-27 21:20                                                               ` Aleš Nesrsta
2013-10-27 22:04                                                               ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-10-27 22:18                                                                 ` Javier Vasquez
2013-10-27 22:26                                                                   ` Javier Vasquez
2013-10-27 22:43                                                             ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-10-27 22:51                                                               ` Javier Vasquez
2013-10-27 23:47                                                                 ` Javier Vasquez
2013-10-29 18:35                                                               ` Aleš Nesrsta
2013-10-29 18:46                                                                 ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-01 21:26                                                                   ` Aleš Nesrsta
2013-11-01 21:59                                                                     ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-04  1:10                                                                       ` Javier Vasquez
2013-11-04  1:16                                                                         ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-11-10 19:03                                                                           ` Javier Vasquez
2013-11-10 19:10                                                                             ` Javier Vasquez [this message]
2013-11-17 12:04                                                                               ` Aleš Nesrsta
2013-11-17 18:31                                                                                 ` Javier Vasquez
2013-12-05 21:18                                                                                   ` Aleš Nesrsta
2013-12-05 21:34                                                                                   ` Aleš Nesrsta
2013-09-19  8:13                       ` [PATCH] " Vladimir 'φ-coder/phcoder' Serbinenko
2013-10-16 23:31                   ` Vladimir 'φ-coder/phcoder' Serbinenko
2013-10-16 23:39                     ` Javier Vasquez

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CALUrRGfy-dCSkQiPRom_uvD+b1i3ufhQL1W2eGsTQgMmV5VyVw@mail.gmail.com \
    --to=j.e.vasquez.v@gmail.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).