From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Qjhw6-0000qD-KF for mharc-grub-devel@gnu.org; Wed, 20 Jul 2011 21:20:22 -0400 Received: from eggs.gnu.org ([140.186.70.92]:54314) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qjhw1-0000oQ-QF for grub-devel@gnu.org; Wed, 20 Jul 2011 21:20:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qjhvv-0002bn-Rf for grub-devel@gnu.org; Wed, 20 Jul 2011 21:20:16 -0400 Received: from exchtp08.via.com.tw ([61.66.243.7]:56589) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qjhvu-0002WD-Km for grub-devel@gnu.org; Wed, 20 Jul 2011 21:20:11 -0400 Received: from mailtp.via.com.tw ([10.5.254.18]) by exchtp08.via.com.tw with Microsoft SMTPSVC(6.0.3790.4675); Thu, 21 Jul 2011 09:19:45 +0800 Received: from mailbj.viatech.com.cn ([10.2.254.21]) by mailtp.via.com.tw with Microsoft SMTPSVC(6.0.3790.4675); Thu, 21 Jul 2011 09:19:40 +0800 Received: from exchbj02.viatech.com.bj ([10.2.254.12]) by mailbj.viatech.com.cn with Microsoft SMTPSVC(6.0.3790.4675); Thu, 21 Jul 2011 09:19:44 +0800 Received: from [10.2.8.35] ([10.2.8.35]) by exchbj02.viatech.com.bj with Microsoft SMTPSVC(6.0.3790.4675); Thu, 21 Jul 2011 09:19:43 +0800 Message-ID: <4E277EBE.8000109@viatech.com.cn> Date: Thu, 21 Jul 2011 09:19:58 +0800 From: Rock Cui User-Agent: Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20110627 Thunderbird/5.0 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: Grub2 can not detect usb disk References: <4E12B0B0.3020907@163.com> <4E030EF9.4060907@163.com> <4E034071.9040205@gmail.com> <4E03FD0C.2060400@163.com> <4E084A56.1030908@163.com> <4E084D04.4040001@gmail.com> <4E0855C6.8060704@viatech.com.cn> <4E085945.3010408@gmail.com> <4E092C1B.70906@viatech.com.cn> <4E095F02.9050504@gmail.com> <4E0994B7.4080408@viatech.com.cn> <4E099895.4060808@gmail.com> <4E09A6C7.5090205@163.com> <4E09B613.1020904@gmail.com> <4E0BE1A5.6060009@163.com> <4E0C7D35.8070208@gmail.com> <4E0D3864.4030408@viatech.com.cn> <4E0D6FE3.3070601@viatech.com.cn> <4E0F88B7.70405@gmail.com> <4E12B03E.3070007@163.com> <168b6705.14fc1.130ffc306f7.Coremail.neverforget_2002@163.com> <4E2749EA.8080507@gmail.com> In-Reply-To: <4E2749EA.8080507@gmail.com> Content-Type: multipart/alternative; boundary="------------080509030902010408050008" X-OriginalArrivalTime: 21 Jul 2011 01:19:43.0913 (UTC) FILETIME=[45ABB190:01CC4744] X-detected-operating-system: by eggs.gnu.org: Windows 2000 SP4, XP SP1+ X-Received-From: 61.66.243.7 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Jul 2011 01:20:21 -0000 This is a multi-part message in MIME format. --------------080509030902010408050008 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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" 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 --------------080509030902010408050008 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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

--------------080509030902010408050008--