From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Qgbbn-0003wU-6v for mharc-grub-devel@gnu.org; Tue, 12 Jul 2011 07:58:35 -0400 Received: from eggs.gnu.org ([140.186.70.92]:52393) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qgbbi-0003vP-Th for grub-devel@gnu.org; Tue, 12 Jul 2011 07:58:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qgbbg-0004BD-1b for grub-devel@gnu.org; Tue, 12 Jul 2011 07:58:30 -0400 Received: from m50-133.163.com ([123.125.50.133]:53807) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QgbbI-00040L-1a for grub-devel@gnu.org; Tue, 12 Jul 2011 07:58:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Received:Message-ID:Date:From:User-Agent: MIME-Version:To:Subject:References:In-Reply-To:Content-Type; bh=TBEmhejRMxOFTsOxOZ0ghJ3FaFmcP9wBqFHiq8kxvLs=; b=k6HQrtVfpH+9q yrqvTKUvc9W7IIXBDZiUF6O3rDiTuQFIWjwAdS/hhtwqBhY5vDkDldTpoCs3S2ZT Glf7Ktu727AKehR9HBc8YaE8QVDBv3OdRkNVndUR0oSrLFQ1koROMSpMcSe6fqdG JiHbTwbLQ60pTkDsJN2nQcxVZMcmfw= Received: from [10.2.8.35] (unknown [152.104.150.33]) by smtp3 (Coremail) with SMTP id DdGowKAbNgH8KxxO5+jIAQ--.875S2; Tue, 12 Jul 2011 19:12:00 +0800 (CST) Message-ID: <4E1C2BFA.7080300@163.com> Date: Tue, 12 Jul 2011 19:11:54 +0800 From: Cui Lei User-Agent: Mozilla/5.0 (X11; Linux i686; rv:5.0) Gecko/20110627 Thunderbird/5.0 MIME-Version: 1.0 To: The development of GNU GRUB 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> In-Reply-To: <168b6705.14fc1.130ffc306f7.Coremail.neverforget_2002@163.com> Content-Type: multipart/alternative; boundary="------------070809040008020601000908" X-CM-TRANSID: DdGowKAbNgH8KxxO5+jIAQ--.875S2 X-Coremail-Antispam: 1Uf129KBjvJXoWxXF1DJF48tFW3WFyDJryrJFb_yoW5KFWfpF y8tF15Kr1kJr1UJw1kJw1kur10yr1xX3WUJr13Ar1DAFy5Jw4DJryrKr15Cw1UGr1Fqw15 Jr1UGr15ur4DXaDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jVXdUUUUUU= X-CM-SenderInfo: pqhyv25iruwvdwbsiiqs6rljoofrz/1tbiLgF6Nk0vJQdB0gAAsw X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 123.125.50.133 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: Tue, 12 Jul 2011 11:58:33 -0000 This is a multi-part message in MIME format. --------------070809040008020601000908 Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 8bit Hi Vladimir, I have not received you reply for some days. I think you must be very busy, so I did some works on my own way. I tested dozens of versions between r2249 and r3229. I found that most of them can boot my machine with "--with-platform=multiboot" option rather than "--with-platform=coreboot" option. The latest one I used is r3200, I think it should support usb device nicely. I added usb.mod uhci.mod usbms.mod usbtest.mod into the image(payload.elf), but it can not detect my usb disk stilly. But if I plug a usb stick into my board after booting into the grub shell( grub> ), I get these message: /*********************************************************************************/ grub> bus/usb/usbhub.c:208: total=250 bus/usb/usbtrans.c:93: control: reqtype=0x80 req=0x06 val=0x100 idx=0x00 size=8 bus/usb/usbtrans.c:120: control: transfer = 0x7fe4cec0, dev = 0x7fe36ea0 bus/usb/usbtrans.c:187: control: err=7 /*******************************************************************************************************/ I looked at the source code and found err7 is time out error, I don't know how to fix it. I need your help and anyone's advices. It is long time I have spended on this project. So look forward to your replay. Thank you in advance. 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. > > 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 >> > > > --------------070809040008020601000908 Content-Type: text/html; charset=gbk Content-Transfer-Encoding: 8bit
Hi Vladimir, I have not received you reply for some days. I think you must be very busy, so I did some works on my own way.
I tested dozens of versions between r2249 and r3229. I found that most of them can boot my machine with "--with-platform=multiboot" option rather than "--with-platform=coreboot" option. The latest one I used is r3200, I think it should 
support usb device nicely. I added usb.mod uhci.mod usbms.mod usbtest.mod into the image(payload.elf), but it can not detect
my usb disk stilly. But if I plug a usb stick into my board after booting into the grub shell( grub> ), I get these message:

/*********************************************************************************/
	grub> bus/usb/usbhub.c:208: total=250

	bus/usb/usbtrans.c:93: control: reqtype=0x80 req=0x06 val=0x100 idx=0x00

	size=8

	bus/usb/usbtrans.c:120: control: transfer = 0x7fe4cec0, dev = 0x7fe36ea0

	bus/usb/usbtrans.c:187: control: err=7
/*******************************************************************************************************/

I looked at the source code and found err7 is time out error, I don't know how to fix it.
I need your help and anyone's advices. It is long time I have spended on this project. So look forward to your replay.
Thank you in advance.

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.

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





--------------070809040008020601000908--