All of lore.kernel.org
 help / color / mirror / Atom feed
From: Rock Cui <rockcui@viatech.com.cn>
To: grub-devel@gnu.org
Subject: Re: Grub2 can not detect usb disk
Date: Thu, 21 Jul 2011 09:19:58 +0800	[thread overview]
Message-ID: <4E277EBE.8000109@viatech.com.cn> (raw)
In-Reply-To: <4E2749EA.8080507@gmail.com>

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

Sorry, it's the 56th line:

table_item = (grub_linuxbios_table_item_t) ((long) table_header +
                     (long) table_header->size);
the (long)table_header->size, I think it is not same with coreboot.

Now I can build a payload with "--with-platform=multiboot" that can boot 
my machine, not the "--with-platform=coreboot".
In the later mail I sent to you, there are same detail.

BRs,

Rock.

>
>> I have read the source code about the mmap of grub and of corebootV4,
>> I found that the size of their table header struct are not same, and I
>> think ,in the file "mmap.c" of grub2,on the 53rd line, the offset of
>> the first table item may be error.
> In my copy 53rd line is completely empty. Could you detail the error?
>> BRs,
>> Rock.
>>
>> At 2011-07-05 14:35:28,"Cui Lei"<neverforget_2002@163.com>  wrote:
>>
>>      I think the "skip=2146422784" is too big.
>>>        I received you reply this monday, then my office PC had a
>>>      problem ,can not power on, so I write you late.
>>>      I have tried to run "dd", but got "Reading a error address".
>>>>      On 01.07.2011 08:57, Rock Cui wrote:
>>>>>      Sorry,I am careless, my log file is not empty, please refer to the
>>>>>      attachment.
>>>>>
>>>>      I would also need another memory location for full diagnostics:
>>>>      sudo dd if=/dev/mem of=tables bs=1 count=65536 skip=2146422784
>>>>      Looking at the code, the only way it can hang AFAICT should be fixed by
>>>>      attached patch (mostly guessing)
>>>>>>      1. I have tried the "--with-platform=multiboot" option, but when
>>>>>>      booting it show me:
>>>>>>      /*********************/
>>>>>>      Welcome to GRUB!
>>>>>>      out of memory
>>>>>>      Aborted.
>>>>>>      /*********************/
>>>>>>      2. The /dev/mem you need , how can I get it? I want it should be from
>>>>>>      the "/" , then I must enter the ubuntu.
>>>>>>      So I use the grub1.98 as coreboot payload and boot my ubuntu11.04.
>>>>>>      But when I copy the /dev/mem to a log file with "sudo",
>>>>>>      I was told "You can not do it!" : (
>>>>>>
>>>>>>
>>>>>>>      On 30.06.2011 04:38, Cui Lei wrote:
>>>>>>>>      I have found the the last version which can boot my machine, it is
>>>>>>>>      the r2348. The r2349 can not boot it.
>>>>>>>>      So I checked out the changelog from 2348 to 2349 :
>>>>>>>>
>>>>>>>      Ironically I did it because i386-coreboot didn't work in my tests.
>>>>>>>      Could
>>>>>>>      you send me the first 128K of /dev/mem ? Meanwhile you can try
>>>>>>>      i386-multiboot port.
>>>>>>>
>>>>>>>      _______________________________________________
>>>>>>>      Grub-devel mailing list
>>>>>>>      Grub-devel@gnu.org
>>>>>>>      https://lists.gnu.org/mailman/listinfo/grub-devel
>>>>>>      _______________________________________________
>>>>>>      Grub-devel mailing list
>>>>>>      Grub-devel@gnu.org
>>>>>>      https://lists.gnu.org/mailman/listinfo/grub-devel
>>>>>>
>>>>>      _______________________________________________
>>>>>      Grub-devel mailing list
>>>>>      Grub-devel@gnu.org
>>>>>      https://lists.gnu.org/mailman/listinfo/grub-devel
>>>>
>>>>      _______________________________________________
>>>>      Grub-devel mailing list
>>>>      Grub-devel@gnu.org
>>>>      https://lists.gnu.org/mailman/listinfo/grub-devel
>>
>>
>>
>> _______________________________________________
>> Grub-devel mailing list
>> Grub-devel@gnu.org
>> https://lists.gnu.org/mailman/listinfo/grub-devel
>
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel


[-- Attachment #2: Type: text/html, Size: 6040 bytes --]

  reply	other threads:[~2011-07-21  1:20 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-23 10:01 Grub2 can not detect usb disk Cui Lei
2011-06-23 13:32 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-06-24  2:57   ` Cui Lei
2011-06-27  9:16     ` Cui Lei
2011-06-27  9:27       ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-06-27 10:04         ` Rock Cui
2011-06-27 10:19           ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-06-28  1:19             ` Rock Cui
2011-06-28  4:56               ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-06-28  8:45                 ` Rock Cui
2011-06-28  9:02                   ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-06-28 10:02                     ` Cui Lei
2011-06-28 11:08                       ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-06-28 11:27                         ` Graeme Russ
2011-06-30  2:38                         ` Cui Lei
2011-06-30 13:42                           ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-07-01  3:00                             ` Rock Cui
2011-07-01  6:57                               ` Rock Cui
2011-07-02 21:08                                 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-07-05  6:33                                   ` Cui Lei
2011-07-05  6:35                                     ` Cui Lei
2011-07-06 14:03                                       ` 崔磊
2011-07-12 11:11                                         ` Cui Lei
2011-07-21 11:11                                           ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-07-27  8:11                                             ` Rock Cui
2011-07-27  8:49                                               ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-07-27  9:28                                                 ` Rock Cui
2011-07-20 21:34                                         ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-07-21  1:19                                           ` Rock Cui [this message]
2011-07-21 11:07                                             ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-06-30 13:44                           ` Vladimir 'φ-coder/phcoder' Serbinenko

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=4E277EBE.8000109@viatech.com.cn \
    --to=rockcui@viatech.com.cn \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.