All of lore.kernel.org
 help / color / mirror / Atom feed
* Grub2 can not detect usb disk
@ 2011-06-23 10:01 Cui Lei
  2011-06-23 13:32 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 31+ messages in thread
From: Cui Lei @ 2011-06-23 10:01 UTC (permalink / raw)
  To: help-grub, grub-devel

Hi all,
I had build a coreboot with grub-1.98 as payload and I can use it to
boot ubuntu11.04. Now I want to use it to boot
the ubuntu11.04 liveUSB, but it seems the usb device can not be detected
or grub don't do that, because when I
type "ls", just get "memdisk" and "ata0". I don't know which module I
need to add in. In addition, where can I get
the detail about those grub2' modules ?

BRs,

Rock.



^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Grub2 can not detect usb disk
  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
  0 siblings, 1 reply; 31+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-06-23 13:32 UTC (permalink / raw)
  To: grub-devel

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

On 23.06.2011 12:01, Cui Lei wrote:
> Hi all,
> I had build a coreboot with grub-1.98 as payload and I can use it to
> boot ubuntu11.04. Now I want to use it to boot
> the ubuntu11.04 liveUSB, but it seems the usb device can not be detected
> or grub don't do that, because when I
> type "ls", just get "memdisk" and "ata0". I don't know which module I
> need to add in.
usbms and uhci or ohci depending on USB controller
>  In addition, where can I get
> the detail about those grub2' modules ?
>
> BRs,
>
> Rock.
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel
>


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Grub2 can not detect usb disk
  2011-06-23 13:32 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2011-06-24  2:57   ` Cui Lei
  2011-06-27  9:16     ` Cui Lei
  0 siblings, 1 reply; 31+ messages in thread
From: Cui Lei @ 2011-06-24  2:57 UTC (permalink / raw)
  To: The development of GNU GRUB

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

Thank you for you help, I searched them in my grub1.98 folder, but did 
not find any one. I found them in the grub1.99rc folder. I think may be 
I lost some configure option, but I built them with the same configure 
option:

./configure --with-platform=coreboot



> On 23.06.2011 12:01, Cui Lei wrote:
>> Hi all,
>> I had build a coreboot with grub-1.98 as payload and I can use it to
>> boot ubuntu11.04. Now I want to use it to boot
>> the ubuntu11.04 liveUSB, but it seems the usb device can not be detected
>> or grub don't do that, because when I
>> type "ls", just get "memdisk" and "ata0". I don't know which module I
>> need to add in.
> usbms and uhci or ohci depending on USB controller
>>   In addition, where can I get
>> the detail about those grub2' modules ?
>>
>> BRs,
>>
>> Rock.
>>
>>
>> _______________________________________________
>> 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: 2085 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re:Re: Grub2 can not detect usb disk
  2011-06-24  2:57   ` Cui Lei
@ 2011-06-27  9:16     ` Cui Lei
  2011-06-27  9:27       ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 31+ messages in thread
From: Cui Lei @ 2011-06-27  9:16 UTC (permalink / raw)
  To: The development of GNU GRUB

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

  Hi all,
I have gotten the uhci.mod and usbms.mod, then I insmoded them. But I 
still can not see a usb device. I set "debug=all" and
got the following results:

/*****************************************************************************************************************************/
   1 grub> insmod uhci
   2 [...]
   3 kern/dl.c:556: module name: uhci
   4
   5 kern/dl.c:557: init function: 0x7fe393ce
   6
   7 bus/usb/uhci.c:178: class=0x0c 0x03 interface 0x00 base=0x3000
   8
   9 bus/usb/uhci.c:268: UHCI initialized
  10 bus/usb/uhci.c:178: class=0x0c 0x03 interface 0x00 base=0x3020
  11
  12 bus/usb/uhci.c:268: UHCI initialized
  13 bus/usb/uhci.c:178: class=0x0c 0x03 interface 0x00 base=0x3040
  14
  15 bus/usb/uhci.c:268: UHCI initialized
  16 bus/usb/uhci.c:178: class=0x0c 0x03 interface 0x00 base=0x3060
  17
  18 bus/usb/uhci.c:268: UHCI initialized
  19 bus/usb/uhci.c:644: detect=0x480 port=0
  20
  21 bus/usb/uhci.c:644: detect=0x480 port=1
  22
  23 bus/usb/uhci.c:644: detect=0x493 port=0
  24
  25 bus/usb/uhci.c:586: enable=1 port=0
  26
  27 bus/usb/uhci.c:597: detect=0x493
  28
  29 bus/usb/uhci.c:606: reset completed
  30
  31 bus/usb/uhci.c:613: waiting for the port to be enabled
  32
  33 bus/usb/uhci.c:621: >3detect=0x497
  34
  35 bus/usb/usbtrans.c:43: control: reqtype=0x80 req=0x06 val=0x100 
idx=0x00 size=18
  36
  37 bus/usb/uhci.c:402: transaction: endp=0, type=2, addr=0, toggle=0, 
size=8 data=0x7fccc td=0x5ff87000
  38
  39 bus/usb/uhci.c:402: transaction: endp=0, type=0, addr=0, toggle=1, 
size=18 data=0x5ff8d760 td=0x5ff87020
  40
  41 bus/usb/uhci.c:402: transaction: endp=0, type=1, addr=0, toggle=1, 
size=0 data=0x0 td=0x5ff87040
  42
  43 bus/usb/uhci.c:476: setup transaction 0
  44
  45 bus/usb/uhci.c:482: initiate transaction
  46
  47 bus/usb/uhci.c:494: >t status=0x18800000 data=0x7fcc0 td=0x5ff87000
  48
  49 bus/usb/uhci.c:500: t status=0x18800000
  50
  51 bus/usb/uhci.c:494: >t status=0x18800000 data=0x7fcc0 td=0x5ff87000
  52
  53 bus/usb/uhci.c:500: t status=0x18800000
  54
  55 bus/usb/uhci.c:494: >t status=0x18800000 data=0x7fcc0 td=0x5ff87000
  56
  57 bus/usb/uhci.c:500: t status=0x18800000
  [...](retry...)
  bus/usb/uhci.c:541: transaction timed out
  bus/usb/uhci.c:551: transaction failed

[...]

169 bus/usb/uhci.c:644: detect=0x480 port=1
170
171 bus/usb/uhci.c:676: registered
172
173 script/script.c:65: free 0x7fe73fd0
174
175 script/script.c:65: free 0x7fe74000
176
177 script/script.c:65: free 0x7fe74030
178
179 script/script.c:65: free 0x7fe73f80
180
181 script/script.c:65: free 0x7fe73fa0
182 .
183 script/script.c:65: free 0x7fe50620
184
185 script/script.c:65: free 0x7fe50570
186
187 script/script.c:65: free 0x7fe50590
/********************************************************************************************************/

Can anyone give me some advices?
Thanks for your time.

BRs,

Rock.




> Thank you for you help, I searched them in my grub1.98 folder, but did 
> not find any one. I found them in the grub1.99rc folder. I think may 
> be I lost some configure option, but I built them with the same 
> configure option:
>
> ./configure --with-platform=coreboot
>
>
>
>> On 23.06.2011 12:01, Cui Lei wrote:
>>> Hi all,
>>> I had build a coreboot with grub-1.98 as payload and I can use it to
>>> boot ubuntu11.04. Now I want to use it to boot
>>> the ubuntu11.04 liveUSB, but it seems the usb device can not be detected
>>> or grub don't do that, because when I
>>> type "ls", just get "memdisk" and "ata0". I don't know which module I
>>> need to add in.
>> usbms and uhci or ohci depending on USB controller
>>>   In addition, where can I get
>>> the detail about those grub2' modules ?
>>>
>>> BRs,
>>>
>>> Rock.
>>>
>>>
>>> _______________________________________________
>>> 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: 6543 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Grub2 can not detect usb disk
  2011-06-27  9:16     ` Cui Lei
@ 2011-06-27  9:27       ` Vladimir 'φ-coder/phcoder' Serbinenko
  2011-06-27 10:04         ` Rock Cui
  0 siblings, 1 reply; 31+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-06-27  9:27 UTC (permalink / raw)
  To: grub-devel

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

On 27.06.2011 11:16, Cui Lei wrote:
>  Hi all,
> I have gotten the uhci.mod and usbms.mod, then I insmoded them. But I
> still can not see a usb device.
What does "usb" (from usbtest.mod) say?

> I set "debug=all" and
> got the following results:
>
> /*****************************************************************************************************************************/
>   1 grub> insmod uhci
>   2 [...]
>   3 kern/dl.c:556: module name: uhci
>   4
>   5 kern/dl.c:557: init function: 0x7fe393ce
>   6
>   7 bus/usb/uhci.c:178: class=0x0c 0x03 interface 0x00 base=0x3000
>   8
>   9 bus/usb/uhci.c:268: UHCI initialized
>  10 bus/usb/uhci.c:178: class=0x0c 0x03 interface 0x00 base=0x3020
>  11
>  12 bus/usb/uhci.c:268: UHCI initialized
>  13 bus/usb/uhci.c:178: class=0x0c 0x03 interface 0x00 base=0x3040
>  14
>  15 bus/usb/uhci.c:268: UHCI initialized
>  16 bus/usb/uhci.c:178: class=0x0c 0x03 interface 0x00 base=0x3060
>  17
>  18 bus/usb/uhci.c:268: UHCI initialized
>  19 bus/usb/uhci.c:644: detect=0x480 port=0
>  20
>  21 bus/usb/uhci.c:644: detect=0x480 port=1
>  22
>  23 bus/usb/uhci.c:644: detect=0x493 port=0
>  24
>  25 bus/usb/uhci.c:586: enable=1 port=0
>  26
>  27 bus/usb/uhci.c:597: detect=0x493
>  28
>  29 bus/usb/uhci.c:606: reset completed
>  30
>  31 bus/usb/uhci.c:613: waiting for the port to be enabled
>  32
>  33 bus/usb/uhci.c:621: >3detect=0x497
>  34
>  35 bus/usb/usbtrans.c:43: control: reqtype=0x80 req=0x06 val=0x100
> idx=0x00 size=18
>  36
>  37 bus/usb/uhci.c:402: transaction: endp=0, type=2, addr=0, toggle=0,
> size=8 data=0x7fccc td=0x5ff87000
>  38
>  39 bus/usb/uhci.c:402: transaction: endp=0, type=0, addr=0, toggle=1,
> size=18 data=0x5ff8d760 td=0x5ff87020
>  40
>  41 bus/usb/uhci.c:402: transaction: endp=0, type=1, addr=0, toggle=1,
> size=0 data=0x0 td=0x5ff87040
>  42
>  43 bus/usb/uhci.c:476: setup transaction 0
>  44
>  45 bus/usb/uhci.c:482: initiate transaction
>  46
>  47 bus/usb/uhci.c:494: >t status=0x18800000 data=0x7fcc0 td=0x5ff87000
>  48
>  49 bus/usb/uhci.c:500: t status=0x18800000
>  50
>  51 bus/usb/uhci.c:494: >t status=0x18800000 data=0x7fcc0 td=0x5ff87000
>  52
>  53 bus/usb/uhci.c:500: t status=0x18800000
>  54
>  55 bus/usb/uhci.c:494: >t status=0x18800000 data=0x7fcc0 td=0x5ff87000
>  56
>  57 bus/usb/uhci.c:500: t status=0x18800000
>  [...](retry...)
>  bus/usb/uhci.c:541: transaction timed out
>  bus/usb/uhci.c:551: transaction failed
>
> [...]
>
> 169 bus/usb/uhci.c:644: detect=0x480 port=1
> 170
> 171 bus/usb/uhci.c:676: registered
> 172
> 173 script/script.c:65: free 0x7fe73fd0
> 174
> 175 script/script.c:65: free 0x7fe74000
> 176
> 177 script/script.c:65: free 0x7fe74030
> 178
> 179 script/script.c:65: free 0x7fe73f80
> 180
> 181 script/script.c:65: free 0x7fe73fa0
> 182 .
> 183 script/script.c:65: free 0x7fe50620
> 184
> 185 script/script.c:65: free 0x7fe50570
> 186
> 187 script/script.c:65: free 0x7fe50590
> /********************************************************************************************************/
>
> Can anyone give me some advices?
> Thanks for your time.
>
> BRs,
>
> Rock.
>
>
>
>
>> Thank you for you help, I searched them in my grub1.98 folder, but
>> did not find any one. I found them in the grub1.99rc folder. I think
>> may be I lost some configure option, but I built them with the same
>> configure option:
>>
>> ./configure --with-platform=coreboot
>>
>>
>>
>>> On 23.06.2011 12:01, Cui Lei wrote:
>>>> Hi all,
>>>> I had build a coreboot with grub-1.98 as payload and I can use it to
>>>> boot ubuntu11.04. Now I want to use it to boot
>>>> the ubuntu11.04 liveUSB, but it seems the usb device can not be detected
>>>> or grub don't do that, because when I
>>>> type "ls", just get "memdisk" and "ata0". I don't know which module I
>>>> need to add in.
>>> usbms and uhci or ohci depending on USB controller
>>>>  In addition, where can I get
>>>> the detail about those grub2' modules ?
>>>>
>>>> BRs,
>>>>
>>>> Rock.
>>>>
>>>>
>>>> _______________________________________________
>>>> 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


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Grub2 can not detect usb disk
  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
  0 siblings, 1 reply; 31+ messages in thread
From: Rock Cui @ 2011-06-27 10:04 UTC (permalink / raw)
  To: The development of GNU GRUB

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

If I run "usb", it reboot right now.

> On 27.06.2011 11:16, Cui Lei wrote:
>>   Hi all,
>> I have gotten the uhci.mod and usbms.mod, then I insmoded them. But I
>> still can not see a usb device.
> What does "usb" (from usbtest.mod) say?
>
>> I set "debug=all" and
>> got the following results:
>>
>> /*****************************************************************************************************************************/
>>    1 grub>  insmod uhci
>>    2 [...]
>>    3 kern/dl.c:556: module name: uhci
>>    4
>>    5 kern/dl.c:557: init function: 0x7fe393ce
>>    6
>>    7 bus/usb/uhci.c:178: class=0x0c 0x03 interface 0x00 base=0x3000
>>    8
>>    9 bus/usb/uhci.c:268: UHCI initialized
>>   10 bus/usb/uhci.c:178: class=0x0c 0x03 interface 0x00 base=0x3020
>>   11
>>   12 bus/usb/uhci.c:268: UHCI initialized
>>   13 bus/usb/uhci.c:178: class=0x0c 0x03 interface 0x00 base=0x3040
>>   14
>>   15 bus/usb/uhci.c:268: UHCI initialized
>>   16 bus/usb/uhci.c:178: class=0x0c 0x03 interface 0x00 base=0x3060
>>   17
>>   18 bus/usb/uhci.c:268: UHCI initialized
>>   19 bus/usb/uhci.c:644: detect=0x480 port=0
>>   20
>>   21 bus/usb/uhci.c:644: detect=0x480 port=1
>>   22
>>   23 bus/usb/uhci.c:644: detect=0x493 port=0
>>   24
>>   25 bus/usb/uhci.c:586: enable=1 port=0
>>   26
>>   27 bus/usb/uhci.c:597: detect=0x493
>>   28
>>   29 bus/usb/uhci.c:606: reset completed
>>   30
>>   31 bus/usb/uhci.c:613: waiting for the port to be enabled
>>   32
>>   33 bus/usb/uhci.c:621:>3detect=0x497
>>   34
>>   35 bus/usb/usbtrans.c:43: control: reqtype=0x80 req=0x06 val=0x100
>> idx=0x00 size=18
>>   36
>>   37 bus/usb/uhci.c:402: transaction: endp=0, type=2, addr=0, toggle=0,
>> size=8 data=0x7fccc td=0x5ff87000
>>   38
>>   39 bus/usb/uhci.c:402: transaction: endp=0, type=0, addr=0, toggle=1,
>> size=18 data=0x5ff8d760 td=0x5ff87020
>>   40
>>   41 bus/usb/uhci.c:402: transaction: endp=0, type=1, addr=0, toggle=1,
>> size=0 data=0x0 td=0x5ff87040
>>   42
>>   43 bus/usb/uhci.c:476: setup transaction 0
>>   44
>>   45 bus/usb/uhci.c:482: initiate transaction
>>   46
>>   47 bus/usb/uhci.c:494:>t status=0x18800000 data=0x7fcc0 td=0x5ff87000
>>   48
>>   49 bus/usb/uhci.c:500: t status=0x18800000
>>   50
>>   51 bus/usb/uhci.c:494:>t status=0x18800000 data=0x7fcc0 td=0x5ff87000
>>   52
>>   53 bus/usb/uhci.c:500: t status=0x18800000
>>   54
>>   55 bus/usb/uhci.c:494:>t status=0x18800000 data=0x7fcc0 td=0x5ff87000
>>   56
>>   57 bus/usb/uhci.c:500: t status=0x18800000
>>   [...](retry...)
>>   bus/usb/uhci.c:541: transaction timed out
>>   bus/usb/uhci.c:551: transaction failed
>>
>> [...]
>>
>> 169 bus/usb/uhci.c:644: detect=0x480 port=1
>> 170
>> 171 bus/usb/uhci.c:676: registered
>> 172
>> 173 script/script.c:65: free 0x7fe73fd0
>> 174
>> 175 script/script.c:65: free 0x7fe74000
>> 176
>> 177 script/script.c:65: free 0x7fe74030
>> 178
>> 179 script/script.c:65: free 0x7fe73f80
>> 180
>> 181 script/script.c:65: free 0x7fe73fa0
>> 182 .
>> 183 script/script.c:65: free 0x7fe50620
>> 184
>> 185 script/script.c:65: free 0x7fe50570
>> 186
>> 187 script/script.c:65: free 0x7fe50590
>> /********************************************************************************************************/
>>
>> Can anyone give me some advices?
>> Thanks for your time.
>>
>> BRs,
>>
>> Rock.
>>
>>
>>
>>
>>> Thank you for you help, I searched them in my grub1.98 folder, but
>>> did not find any one. I found them in the grub1.99rc folder. I think
>>> may be I lost some configure option, but I built them with the same
>>> configure option:
>>>
>>> ./configure --with-platform=coreboot
>>>
>>>
>>>
>>>> On 23.06.2011 12:01, Cui Lei wrote:
>>>>> Hi all,
>>>>> I had build a coreboot with grub-1.98 as payload and I can use it to
>>>>> boot ubuntu11.04. Now I want to use it to boot
>>>>> the ubuntu11.04 liveUSB, but it seems the usb device can not be detected
>>>>> or grub don't do that, because when I
>>>>> type "ls", just get "memdisk" and "ata0". I don't know which module I
>>>>> need to add in.
>>>> usbms and uhci or ohci depending on USB controller
>>>>>   In addition, where can I get
>>>>> the detail about those grub2' modules ?
>>>>>
>>>>> BRs,
>>>>>
>>>>> Rock.
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> 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: 6416 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Grub2 can not detect usb disk
  2011-06-27 10:04         ` Rock Cui
@ 2011-06-27 10:19           ` Vladimir 'φ-coder/phcoder' Serbinenko
  2011-06-28  1:19             ` Rock Cui
  0 siblings, 1 reply; 31+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-06-27 10:19 UTC (permalink / raw)
  To: grub-devel

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

On 27.06.2011 12:04, Rock Cui wrote:
> If I run "usb", it reboot right now.
>
Which GRUB version is it?
>> On 27.06.2011 11:16, Cui Lei wrote:
>>>  Hi all,
>>> I have gotten the uhci.mod and usbms.mod, then I insmoded them. But I
>>> still can not see a usb device.
>> What does "usb" (from usbtest.mod) say?
>>
>>> I set "debug=all" and
>>> got the following results:
>>>
>>> /*****************************************************************************************************************************/
>>>   1 grub> insmod uhci
>>>   2 [...]
>>>   3 kern/dl.c:556: module name: uhci
>>>   4
>>>   5 kern/dl.c:557: init function: 0x7fe393ce
>>>   6
>>>   7 bus/usb/uhci.c:178: class=0x0c 0x03 interface 0x00 base=0x3000
>>>   8
>>>   9 bus/usb/uhci.c:268: UHCI initialized
>>>  10 bus/usb/uhci.c:178: class=0x0c 0x03 interface 0x00 base=0x3020
>>>  11
>>>  12 bus/usb/uhci.c:268: UHCI initialized
>>>  13 bus/usb/uhci.c:178: class=0x0c 0x03 interface 0x00 base=0x3040
>>>  14
>>>  15 bus/usb/uhci.c:268: UHCI initialized
>>>  16 bus/usb/uhci.c:178: class=0x0c 0x03 interface 0x00 base=0x3060
>>>  17
>>>  18 bus/usb/uhci.c:268: UHCI initialized
>>>  19 bus/usb/uhci.c:644: detect=0x480 port=0
>>>  20
>>>  21 bus/usb/uhci.c:644: detect=0x480 port=1
>>>  22
>>>  23 bus/usb/uhci.c:644: detect=0x493 port=0
>>>  24
>>>  25 bus/usb/uhci.c:586: enable=1 port=0
>>>  26
>>>  27 bus/usb/uhci.c:597: detect=0x493
>>>  28
>>>  29 bus/usb/uhci.c:606: reset completed
>>>  30
>>>  31 bus/usb/uhci.c:613: waiting for the port to be enabled
>>>  32
>>>  33 bus/usb/uhci.c:621: >3detect=0x497
>>>  34
>>>  35 bus/usb/usbtrans.c:43: control: reqtype=0x80 req=0x06 val=0x100
>>> idx=0x00 size=18
>>>  36
>>>  37 bus/usb/uhci.c:402: transaction: endp=0, type=2, addr=0, toggle=0,
>>> size=8 data=0x7fccc td=0x5ff87000
>>>  38
>>>  39 bus/usb/uhci.c:402: transaction: endp=0, type=0, addr=0, toggle=1,
>>> size=18 data=0x5ff8d760 td=0x5ff87020
>>>  40
>>>  41 bus/usb/uhci.c:402: transaction: endp=0, type=1, addr=0, toggle=1,
>>> size=0 data=0x0 td=0x5ff87040
>>>  42
>>>  43 bus/usb/uhci.c:476: setup transaction 0
>>>  44
>>>  45 bus/usb/uhci.c:482: initiate transaction
>>>  46
>>>  47 bus/usb/uhci.c:494: >t status=0x18800000 data=0x7fcc0 td=0x5ff87000
>>>  48
>>>  49 bus/usb/uhci.c:500: t status=0x18800000
>>>  50
>>>  51 bus/usb/uhci.c:494: >t status=0x18800000 data=0x7fcc0 td=0x5ff87000
>>>  52
>>>  53 bus/usb/uhci.c:500: t status=0x18800000
>>>  54
>>>  55 bus/usb/uhci.c:494: >t status=0x18800000 data=0x7fcc0 td=0x5ff87000
>>>  56
>>>  57 bus/usb/uhci.c:500: t status=0x18800000
>>>  [...](retry...)
>>>  bus/usb/uhci.c:541: transaction timed out
>>>  bus/usb/uhci.c:551: transaction failed
>>>
>>> [...]
>>>
>>> 169 bus/usb/uhci.c:644: detect=0x480 port=1
>>> 170
>>> 171 bus/usb/uhci.c:676: registered
>>> 172
>>> 173 script/script.c:65: free 0x7fe73fd0
>>> 174
>>> 175 script/script.c:65: free 0x7fe74000
>>> 176
>>> 177 script/script.c:65: free 0x7fe74030
>>> 178
>>> 179 script/script.c:65: free 0x7fe73f80
>>> 180
>>> 181 script/script.c:65: free 0x7fe73fa0
>>> 182 .
>>> 183 script/script.c:65: free 0x7fe50620
>>> 184
>>> 185 script/script.c:65: free 0x7fe50570
>>> 186
>>> 187 script/script.c:65: free 0x7fe50590
>>> /********************************************************************************************************/
>>>
>>> Can anyone give me some advices?
>>> Thanks for your time.
>>>
>>> BRs,
>>>
>>> Rock.
>>>
>>>
>>>
>>>
>>>> Thank you for you help, I searched them in my grub1.98 folder, but
>>>> did not find any one. I found them in the grub1.99rc folder. I think
>>>> may be I lost some configure option, but I built them with the same
>>>> configure option:
>>>>
>>>> ./configure --with-platform=coreboot
>>>>
>>>>
>>>>
>>>>> On 23.06.2011 12:01, Cui Lei wrote:
>>>>>> Hi all,
>>>>>> I had build a coreboot with grub-1.98 as payload and I can use it to
>>>>>> boot ubuntu11.04. Now I want to use it to boot
>>>>>> the ubuntu11.04 liveUSB, but it seems the usb device can not be detected
>>>>>> or grub don't do that, because when I
>>>>>> type "ls", just get "memdisk" and "ata0". I don't know which module I
>>>>>> need to add in.
>>>>> usbms and uhci or ohci depending on USB controller
>>>>>>  In addition, where can I get
>>>>>> the detail about those grub2' modules ?
>>>>>>
>>>>>> BRs,
>>>>>>
>>>>>> Rock.
>>>>>>
>>>>>>
>>>>>> _______________________________________________
>>>>>> 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


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Grub2 can not detect usb disk
  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
  0 siblings, 1 reply; 31+ messages in thread
From: Rock Cui @ 2011-06-28  1:19 UTC (permalink / raw)
  To: The development of GNU GRUB

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

COREBOOTV4   GRUB1.98

> Which GRUB version is it?
>>> On 27.06.2011 11:16, Cui Lei wrote:
>>>>   Hi all,
>>>> I have gotten the uhci.mod and usbms.mod, then I insmoded them. But I
>>>> still can not see a usb device.
>>> What does "usb" (from usbtest.mod) say?
>>>
>>>> I set "debug=all" and
>>>> got the following results:
>>>>
>>>> /*****************************************************************************************************************************/
>>>>    1 grub>  insmod uhci
>>>>    2 [...]
>>>>    3 kern/dl.c:556: module name: uhci
>>>>    4
>>>>    5 kern/dl.c:557: init function: 0x7fe393ce
>>>>    6
>>>>    7 bus/usb/uhci.c:178: class=0x0c 0x03 interface 0x00 base=0x3000
>>>>    8
>>>>    9 bus/usb/uhci.c:268: UHCI initialized
>>>>   10 bus/usb/uhci.c:178: class=0x0c 0x03 interface 0x00 base=0x3020
>>>>   11
>>>>   12 bus/usb/uhci.c:268: UHCI initialized
>>>>   13 bus/usb/uhci.c:178: class=0x0c 0x03 interface 0x00 base=0x3040
>>>>   14
>>>>   15 bus/usb/uhci.c:268: UHCI initialized
>>>>   16 bus/usb/uhci.c:178: class=0x0c 0x03 interface 0x00 base=0x3060
>>>>   17
>>>>   18 bus/usb/uhci.c:268: UHCI initialized
>>>>   19 bus/usb/uhci.c:644: detect=0x480 port=0
>>>>   20
>>>>   21 bus/usb/uhci.c:644: detect=0x480 port=1
>>>>   22
>>>>   23 bus/usb/uhci.c:644: detect=0x493 port=0
>>>>   24
>>>>   25 bus/usb/uhci.c:586: enable=1 port=0
>>>>   26
>>>>   27 bus/usb/uhci.c:597: detect=0x493
>>>>   28
>>>>   29 bus/usb/uhci.c:606: reset completed
>>>>   30
>>>>   31 bus/usb/uhci.c:613: waiting for the port to be enabled
>>>>   32
>>>>   33 bus/usb/uhci.c:621:>3detect=0x497
>>>>   34
>>>>   35 bus/usb/usbtrans.c:43: control: reqtype=0x80 req=0x06 val=0x100
>>>> idx=0x00 size=18
>>>>   36
>>>>   37 bus/usb/uhci.c:402: transaction: endp=0, type=2, addr=0, toggle=0,
>>>> size=8 data=0x7fccc td=0x5ff87000
>>>>   38
>>>>   39 bus/usb/uhci.c:402: transaction: endp=0, type=0, addr=0, toggle=1,
>>>> size=18 data=0x5ff8d760 td=0x5ff87020
>>>>   40
>>>>   41 bus/usb/uhci.c:402: transaction: endp=0, type=1, addr=0, toggle=1,
>>>> size=0 data=0x0 td=0x5ff87040
>>>>   42
>>>>   43 bus/usb/uhci.c:476: setup transaction 0
>>>>   44
>>>>   45 bus/usb/uhci.c:482: initiate transaction
>>>>   46
>>>>   47 bus/usb/uhci.c:494:>t status=0x18800000 data=0x7fcc0 td=0x5ff87000
>>>>   48
>>>>   49 bus/usb/uhci.c:500: t status=0x18800000
>>>>   50
>>>>   51 bus/usb/uhci.c:494:>t status=0x18800000 data=0x7fcc0 td=0x5ff87000
>>>>   52
>>>>   53 bus/usb/uhci.c:500: t status=0x18800000
>>>>   54
>>>>   55 bus/usb/uhci.c:494:>t status=0x18800000 data=0x7fcc0 td=0x5ff87000
>>>>   56
>>>>   57 bus/usb/uhci.c:500: t status=0x18800000
>>>>   [...](retry...)
>>>>   bus/usb/uhci.c:541: transaction timed out
>>>>   bus/usb/uhci.c:551: transaction failed
>>>>
>>>> [...]
>>>>
>>>> 169 bus/usb/uhci.c:644: detect=0x480 port=1
>>>> 170
>>>> 171 bus/usb/uhci.c:676: registered
>>>> 172
>>>> 173 script/script.c:65: free 0x7fe73fd0
>>>> 174
>>>> 175 script/script.c:65: free 0x7fe74000
>>>> 176
>>>> 177 script/script.c:65: free 0x7fe74030
>>>> 178
>>>> 179 script/script.c:65: free 0x7fe73f80
>>>> 180
>>>> 181 script/script.c:65: free 0x7fe73fa0
>>>> 182 .
>>>> 183 script/script.c:65: free 0x7fe50620
>>>> 184
>>>> 185 script/script.c:65: free 0x7fe50570
>>>> 186
>>>> 187 script/script.c:65: free 0x7fe50590
>>>> /********************************************************************************************************/
>>>>
>>>> Can anyone give me some advices?
>>>> Thanks for your time.
>>>>
>>>> BRs,
>>>>
>>>> Rock.
>>>>
>>>>
>>>>
>>>>
>>>>> Thank you for you help, I searched them in my grub1.98 folder, but
>>>>> did not find any one. I found them in the grub1.99rc folder. I think
>>>>> may be I lost some configure option, but I built them with the same
>>>>> configure option:
>>>>>
>>>>> ./configure --with-platform=coreboot
>>>>>
>>>>>
>>>>>
>>>>>> On 23.06.2011 12:01, Cui Lei wrote:
>>>>>>> Hi all,
>>>>>>> I had build a coreboot with grub-1.98 as payload and I can use it to
>>>>>>> boot ubuntu11.04. Now I want to use it to boot
>>>>>>> the ubuntu11.04 liveUSB, but it seems the usb device can not be detected
>>>>>>> or grub don't do that, because when I
>>>>>>> type "ls", just get "memdisk" and "ata0". I don't know which module I
>>>>>>> need to add in.
>>>>>> usbms and uhci or ohci depending on USB controller
>>>>>>>   In addition, where can I get
>>>>>>> the detail about those grub2' modules ?
>>>>>>>
>>>>>>> BRs,
>>>>>>>
>>>>>>> Rock.
>>>>>>>
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> 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
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel


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

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Grub2 can not detect usb disk
  2011-06-28  1:19             ` Rock Cui
@ 2011-06-28  4:56               ` Vladimir 'φ-coder/phcoder' Serbinenko
  2011-06-28  8:45                 ` Rock Cui
  0 siblings, 1 reply; 31+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-06-28  4:56 UTC (permalink / raw)
  To: grub-devel

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

On 28.06.2011 03:19, Rock Cui wrote:
> COREBOOTV4   GRUB1.98
>
USB in 1.98 has a lot of problems. Please use something more recent.
Ideally HEAD
>> Which GRUB version is it?
>>>> On 27.06.2011 11:16, Cui Lei wrote:
>>>>>  Hi all,
>>>>> I have gotten the uhci.mod and usbms.mod, then I insmoded them. But I
>>>>> still can not see a usb device.
>>>> What does "usb" (from usbtest.mod) say?
>>>>
>>>>> I set "debug=all" and
>>>>> got the following results:
>>>>>
>>>>> /*****************************************************************************************************************************/
>>>>>   1 grub> insmod uhci
>>>>>   2 [...]
>>>>>   3 kern/dl.c:556: module name: uhci
>>>>>   4
>>>>>   5 kern/dl.c:557: init function: 0x7fe393ce
>>>>>   6
>>>>>   7 bus/usb/uhci.c:178: class=0x0c 0x03 interface 0x00 base=0x3000
>>>>>   8
>>>>>   9 bus/usb/uhci.c:268: UHCI initialized
>>>>>  10 bus/usb/uhci.c:178: class=0x0c 0x03 interface 0x00 base=0x3020
>>>>>  11
>>>>>  12 bus/usb/uhci.c:268: UHCI initialized
>>>>>  13 bus/usb/uhci.c:178: class=0x0c 0x03 interface 0x00 base=0x3040
>>>>>  14
>>>>>  15 bus/usb/uhci.c:268: UHCI initialized
>>>>>  16 bus/usb/uhci.c:178: class=0x0c 0x03 interface 0x00 base=0x3060
>>>>>  17
>>>>>  18 bus/usb/uhci.c:268: UHCI initialized
>>>>>  19 bus/usb/uhci.c:644: detect=0x480 port=0
>>>>>  20
>>>>>  21 bus/usb/uhci.c:644: detect=0x480 port=1
>>>>>  22
>>>>>  23 bus/usb/uhci.c:644: detect=0x493 port=0
>>>>>  24
>>>>>  25 bus/usb/uhci.c:586: enable=1 port=0
>>>>>  26
>>>>>  27 bus/usb/uhci.c:597: detect=0x493
>>>>>  28
>>>>>  29 bus/usb/uhci.c:606: reset completed
>>>>>  30
>>>>>  31 bus/usb/uhci.c:613: waiting for the port to be enabled
>>>>>  32
>>>>>  33 bus/usb/uhci.c:621: >3detect=0x497
>>>>>  34
>>>>>  35 bus/usb/usbtrans.c:43: control: reqtype=0x80 req=0x06 val=0x100
>>>>> idx=0x00 size=18
>>>>>  36
>>>>>  37 bus/usb/uhci.c:402: transaction: endp=0, type=2, addr=0, toggle=0,
>>>>> size=8 data=0x7fccc td=0x5ff87000
>>>>>  38
>>>>>  39 bus/usb/uhci.c:402: transaction: endp=0, type=0, addr=0, toggle=1,
>>>>> size=18 data=0x5ff8d760 td=0x5ff87020
>>>>>  40
>>>>>  41 bus/usb/uhci.c:402: transaction: endp=0, type=1, addr=0, toggle=1,
>>>>> size=0 data=0x0 td=0x5ff87040
>>>>>  42
>>>>>  43 bus/usb/uhci.c:476: setup transaction 0
>>>>>  44
>>>>>  45 bus/usb/uhci.c:482: initiate transaction
>>>>>  46
>>>>>  47 bus/usb/uhci.c:494: >t status=0x18800000 data=0x7fcc0 td=0x5ff87000
>>>>>  48
>>>>>  49 bus/usb/uhci.c:500: t status=0x18800000
>>>>>  50
>>>>>  51 bus/usb/uhci.c:494: >t status=0x18800000 data=0x7fcc0 td=0x5ff87000
>>>>>  52
>>>>>  53 bus/usb/uhci.c:500: t status=0x18800000
>>>>>  54
>>>>>  55 bus/usb/uhci.c:494: >t status=0x18800000 data=0x7fcc0 td=0x5ff87000
>>>>>  56
>>>>>  57 bus/usb/uhci.c:500: t status=0x18800000
>>>>>  [...](retry...)
>>>>>  bus/usb/uhci.c:541: transaction timed out
>>>>>  bus/usb/uhci.c:551: transaction failed
>>>>>
>>>>> [...]
>>>>>
>>>>> 169 bus/usb/uhci.c:644: detect=0x480 port=1
>>>>> 170
>>>>> 171 bus/usb/uhci.c:676: registered
>>>>> 172
>>>>> 173 script/script.c:65: free 0x7fe73fd0
>>>>> 174
>>>>> 175 script/script.c:65: free 0x7fe74000
>>>>> 176
>>>>> 177 script/script.c:65: free 0x7fe74030
>>>>> 178
>>>>> 179 script/script.c:65: free 0x7fe73f80
>>>>> 180
>>>>> 181 script/script.c:65: free 0x7fe73fa0
>>>>> 182 .
>>>>> 183 script/script.c:65: free 0x7fe50620
>>>>> 184
>>>>> 185 script/script.c:65: free 0x7fe50570
>>>>> 186
>>>>> 187 script/script.c:65: free 0x7fe50590
>>>>> /********************************************************************************************************/
>>>>>
>>>>> Can anyone give me some advices?
>>>>> Thanks for your time.
>>>>>
>>>>> BRs,
>>>>>
>>>>> Rock.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>> Thank you for you help, I searched them in my grub1.98 folder, but
>>>>>> did not find any one. I found them in the grub1.99rc folder. I think
>>>>>> may be I lost some configure option, but I built them with the same
>>>>>> configure option:
>>>>>>
>>>>>> ./configure --with-platform=coreboot
>>>>>>
>>>>>>
>>>>>>
>>>>>>> On 23.06.2011 12:01, Cui Lei wrote:
>>>>>>>> Hi all,
>>>>>>>> I had build a coreboot with grub-1.98 as payload and I can use it to
>>>>>>>> boot ubuntu11.04. Now I want to use it to boot
>>>>>>>> the ubuntu11.04 liveUSB, but it seems the usb device can not be detected
>>>>>>>> or grub don't do that, because when I
>>>>>>>> type "ls", just get "memdisk" and "ata0". I don't know which module I
>>>>>>>> need to add in.
>>>>>>> usbms and uhci or ohci depending on USB controller
>>>>>>>>  In addition, where can I get
>>>>>>>> the detail about those grub2' modules ?
>>>>>>>>
>>>>>>>> BRs,
>>>>>>>>
>>>>>>>> Rock.
>>>>>>>>
>>>>>>>>
>>>>>>>> _______________________________________________
>>>>>>>> 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
>>
>>
>> _______________________________________________
>> 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


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Grub2 can not detect usb disk
  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
  0 siblings, 1 reply; 31+ messages in thread
From: Rock Cui @ 2011-06-28  8:45 UTC (permalink / raw)
  To: The development of GNU GRUB

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

I had tried to use the grub1.99rc2 as a payload of coreboot at the 
beginning, but it can not boot my machine,  so I changed to 1.98, then 
booting succeed. I want to insmod the uhci.mod and usbms.mod to support 
USB,
but they are not exit in my build folder. If I run "configure" with 
"--with-platform=pc", they will be there, but
with "--with-platform=coreboot", I can not found them. I don't know what 
should I do to get them for i386-coreboot, so I use the two modules 
which were built with "--with-platform=pc" in my payload.elf.
Surprising, they can be insmoded and run in the grub-shell , but 
unfortunately, I got those logs, they can not
work.


> On 28.06.2011 03:19, Rock Cui wrote:
>> COREBOOTV4   GRUB1.98
>>
> USB in 1.98 has a lot of problems. Please use something more recent.
> Ideally HEAD
>>> Which GRUB version is it?
>>>>> On 27.06.2011 11:16, Cui Lei wrote:
>>>>>>   Hi all,
>>>>>> I have gotten the uhci.mod and usbms.mod, then I insmoded them. But I
>>>>>> still can not see a usb device.
>>>>> What does "usb" (from usbtest.mod) say?
>>>>>
>>>>>> I set "debug=all" and
>>>>>> got the following results:
>>>>>>
>>>>>> /*****************************************************************************************************************************/
>>>>>>    1 grub>  insmod uhci
>>>>>>    2 [...]
>>>>>>    3 kern/dl.c:556: module name: uhci
>>>>>>    4
>>>>>>    5 kern/dl.c:557: init function: 0x7fe393ce
>>>>>>    6
>>>>>>    7 bus/usb/uhci.c:178: class=0x0c 0x03 interface 0x00 base=0x3000
>>>>>>    8
>>>>>>    9 bus/usb/uhci.c:268: UHCI initialized
>>>>>>   10 bus/usb/uhci.c:178: class=0x0c 0x03 interface 0x00 base=0x3020
>>>>>>   11
>>>>>>   12 bus/usb/uhci.c:268: UHCI initialized
>>>>>>   13 bus/usb/uhci.c:178: class=0x0c 0x03 interface 0x00 base=0x3040
>>>>>>   14
>>>>>>   15 bus/usb/uhci.c:268: UHCI initialized
>>>>>>   16 bus/usb/uhci.c:178: class=0x0c 0x03 interface 0x00 base=0x3060
>>>>>>   17
>>>>>>   18 bus/usb/uhci.c:268: UHCI initialized
>>>>>>   19 bus/usb/uhci.c:644: detect=0x480 port=0
>>>>>>   20
>>>>>>   21 bus/usb/uhci.c:644: detect=0x480 port=1
>>>>>>   22
>>>>>>   23 bus/usb/uhci.c:644: detect=0x493 port=0
>>>>>>   24
>>>>>>   25 bus/usb/uhci.c:586: enable=1 port=0
>>>>>>   26
>>>>>>   27 bus/usb/uhci.c:597: detect=0x493
>>>>>>   28
>>>>>>   29 bus/usb/uhci.c:606: reset completed
>>>>>>   30
>>>>>>   31 bus/usb/uhci.c:613: waiting for the port to be enabled
>>>>>>   32
>>>>>>   33 bus/usb/uhci.c:621:>3detect=0x497
>>>>>>   34
>>>>>>   35 bus/usb/usbtrans.c:43: control: reqtype=0x80 req=0x06 val=0x100
>>>>>> idx=0x00 size=18
>>>>>>   36
>>>>>>   37 bus/usb/uhci.c:402: transaction: endp=0, type=2, addr=0, toggle=0,
>>>>>> size=8 data=0x7fccc td=0x5ff87000
>>>>>>   38
>>>>>>   39 bus/usb/uhci.c:402: transaction: endp=0, type=0, addr=0, toggle=1,
>>>>>> size=18 data=0x5ff8d760 td=0x5ff87020
>>>>>>   40
>>>>>>   41 bus/usb/uhci.c:402: transaction: endp=0, type=1, addr=0, toggle=1,
>>>>>> size=0 data=0x0 td=0x5ff87040
>>>>>>   42
>>>>>>   43 bus/usb/uhci.c:476: setup transaction 0
>>>>>>   44
>>>>>>   45 bus/usb/uhci.c:482: initiate transaction
>>>>>>   46
>>>>>>   47 bus/usb/uhci.c:494:>t status=0x18800000 data=0x7fcc0 td=0x5ff87000
>>>>>>   48
>>>>>>   49 bus/usb/uhci.c:500: t status=0x18800000
>>>>>>   50
>>>>>>   51 bus/usb/uhci.c:494:>t status=0x18800000 data=0x7fcc0 td=0x5ff87000
>>>>>>   52
>>>>>>   53 bus/usb/uhci.c:500: t status=0x18800000
>>>>>>   54
>>>>>>   55 bus/usb/uhci.c:494:>t status=0x18800000 data=0x7fcc0 td=0x5ff87000
>>>>>>   56
>>>>>>   57 bus/usb/uhci.c:500: t status=0x18800000
>>>>>>   [...](retry...)
>>>>>>   bus/usb/uhci.c:541: transaction timed out
>>>>>>   bus/usb/uhci.c:551: transaction failed
>>>>>>
>>>>>> [...]
>>>>>>
>>>>>> 169 bus/usb/uhci.c:644: detect=0x480 port=1
>>>>>> 170
>>>>>> 171 bus/usb/uhci.c:676: registered
>>>>>> 172
>>>>>> 173 script/script.c:65: free 0x7fe73fd0
>>>>>> 174
>>>>>> 175 script/script.c:65: free 0x7fe74000
>>>>>> 176
>>>>>> 177 script/script.c:65: free 0x7fe74030
>>>>>> 178
>>>>>> 179 script/script.c:65: free 0x7fe73f80
>>>>>> 180
>>>>>> 181 script/script.c:65: free 0x7fe73fa0
>>>>>> 182 .
>>>>>> 183 script/script.c:65: free 0x7fe50620
>>>>>> 184
>>>>>> 185 script/script.c:65: free 0x7fe50570
>>>>>> 186
>>>>>> 187 script/script.c:65: free 0x7fe50590
>>>>>> /********************************************************************************************************/
>>>>>>
>>>>>> Can anyone give me some advices?
>>>>>> Thanks for your time.
>>>>>>
>>>>>> BRs,
>>>>>>
>>>>>> Rock.
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>> Thank you for you help, I searched them in my grub1.98 folder, but
>>>>>>> did not find any one. I found them in the grub1.99rc folder. I think
>>>>>>> may be I lost some configure option, but I built them with the same
>>>>>>> configure option:
>>>>>>>
>>>>>>> ./configure --with-platform=coreboot
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>> On 23.06.2011 12:01, Cui Lei wrote:
>>>>>>>>> Hi all,
>>>>>>>>> I had build a coreboot with grub-1.98 as payload and I can use it to
>>>>>>>>> boot ubuntu11.04. Now I want to use it to boot
>>>>>>>>> the ubuntu11.04 liveUSB, but it seems the usb device can not be detected
>>>>>>>>> or grub don't do that, because when I
>>>>>>>>> type "ls", just get "memdisk" and "ata0". I don't know which module I
>>>>>>>>> need to add in.
>>>>>>>> usbms and uhci or ohci depending on USB controller
>>>>>>>>>   In addition, where can I get
>>>>>>>>> the detail about those grub2' modules ?
>>>>>>>>>
>>>>>>>>> BRs,
>>>>>>>>>
>>>>>>>>> Rock.
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> _______________________________________________
>>>>>>>>> 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
>>>
>>> _______________________________________________
>>> 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: 9209 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Grub2 can not detect usb disk
  2011-06-28  8:45                 ` Rock Cui
@ 2011-06-28  9:02                   ` Vladimir 'φ-coder/phcoder' Serbinenko
  2011-06-28 10:02                     ` Cui Lei
  0 siblings, 1 reply; 31+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-06-28  9:02 UTC (permalink / raw)
  To: grub-devel

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

On 28.06.2011 10:45, Rock Cui wrote:
> I had tried to use the grub1.99rc2 as a payload of coreboot at the
> beginning, but it can not boot my machine,
Could you try to bisect? Recent bzr worked fine in qemu+coreboot. Your
machine may present some special aspect and bisect is probably the
fastest way in your case.
> so I changed to 1.98
As I said USB support in 1.98 wasn't good enough. Basically it worked
only in qemu.
> , then booting succeed. I want to insmod the uhci.mod and usbms.mod to
> support USB,
> but they are not exit in my build folder. If I run "configure" with
> "--with-platform=pc", they will be there, but
> with "--with-platform=coreboot", I can not found them. I don't know
> what should I do to get them for i386-coreboot, so I use the two
> modules which were built with "--with-platform=pc" in my payload.elf.
USB modules weren't enabled in 1.98 on coreboot.
> Surprising, they can be insmoded and run in the grub-shell , but
> unfortunately, I got those logs, they can not
> work.
it's already surprising they didn't crash GRUB altogether.

-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Grub2 can not detect usb disk
  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
  0 siblings, 1 reply; 31+ messages in thread
From: Cui Lei @ 2011-06-28 10:02 UTC (permalink / raw)
  To: The development of GNU GRUB

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

Sorry , I don't know what the meaning of the "bisect" and how to do?
Could you tell me some message in detail ?
Thanks a lot.

BRs,

Rock.

> On 28.06.2011 10:45, Rock Cui wrote:
>> I had tried to use the grub1.99rc2 as a payload of coreboot at the
>> beginning, but it can not boot my machine,
> Could you try to bisect? Recent bzr worked fine in qemu+coreboot. Your
> machine may present some special aspect and bisect is probably the
> fastest way in your case.
>> so I changed to 1.98
> As I said USB support in 1.98 wasn't good enough. Basically it worked
> only in qemu.
>> , then booting succeed. I want to insmod the uhci.mod and usbms.mod to
>> support USB,
>> but they are not exit in my build folder. If I run "configure" with
>> "--with-platform=pc", they will be there, but
>> with "--with-platform=coreboot", I can not found them. I don't know
>> what should I do to get them for i386-coreboot, so I use the two
>> modules which were built with "--with-platform=pc" in my payload.elf.
> USB modules weren't enabled in 1.98 on coreboot.
>> Surprising, they can be insmoded and run in the grub-shell , but
>> unfortunately, I got those logs, they can not
>> work.
> it's already surprising they didn't crash GRUB altogether.
>
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel


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

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Grub2 can not detect usb disk
  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
  0 siblings, 2 replies; 31+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-06-28 11:08 UTC (permalink / raw)
  To: grub-devel

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

On 28.06.2011 12:02, Cui Lei wrote:
> Sorry , I don't know what the meaning of the "bisect" and how to do?
> Could you tell me some message in detail ?
You take a revision which doesn't work (1.99rc2 = r3229)  and a working
one (1.98 = r2249). Then you try a revision in the middle, e.g. r2749.
If it works the error is in the range 2749..3229, otherwise in
2249..2749, then you try a revision inside this range and in 10 steps
you'll have the exact revision which causes your problem.
> Thanks a lot.
>
> BRs,
>
> Rock.
>
>> On 28.06.2011 10:45, Rock Cui wrote:
>>> I had tried to use the grub1.99rc2 as a payload of coreboot at the
>>> beginning, but it can not boot my machine,
>> Could you try to bisect? Recent bzr worked fine in qemu+coreboot. Your
>> machine may present some special aspect and bisect is probably the
>> fastest way in your case.
>>> so I changed to 1.98
>> As I said USB support in 1.98 wasn't good enough. Basically it worked
>> only in qemu.
>>> , then booting succeed. I want to insmod the uhci.mod and usbms.mod to
>>> support USB,
>>> but they are not exit in my build folder. If I run "configure" with
>>> "--with-platform=pc", they will be there, but
>>> with "--with-platform=coreboot", I can not found them. I don't know
>>> what should I do to get them for i386-coreboot, so I use the two
>>> modules which were built with "--with-platform=pc" in my payload.elf.
>> USB modules weren't enabled in 1.98 on coreboot.
>>> Surprising, they can be insmoded and run in the grub-shell , but
>>> unfortunately, I got those logs, they can not
>>> work.
>> it's already surprising they didn't crash GRUB altogether.
>>
>>
>>
>> _______________________________________________
>> 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


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Grub2 can not detect usb disk
  2011-06-28 11:08                       ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2011-06-28 11:27                         ` Graeme Russ
  2011-06-30  2:38                         ` Cui Lei
  1 sibling, 0 replies; 31+ messages in thread
From: Graeme Russ @ 2011-06-28 11:27 UTC (permalink / raw)
  To: The development of GNU GRUB
  Cc: Vladimir 'φ-coder/phcoder' Serbinenko

On 28/06/11 21:08, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
> On 28.06.2011 12:02, Cui Lei wrote:
>> Sorry , I don't know what the meaning of the "bisect" and how to do?
>> Could you tell me some message in detail ?
> You take a revision which doesn't work (1.99rc2 = r3229)  and a working
> one (1.98 = r2249). Then you try a revision in the middle, e.g. r2749.
> If it works the error is in the range 2749..3229, otherwise in
> 2249..2749, then you try a revision inside this range and in 10 steps
> you'll have the exact revision which causes your problem.

Does bazzar have the equivalent of git-bisect where you simply provide the
last known working version and the first known broken version and simply
answer a series of yes/no questions as the bisection is done in the
background automatically?

Regards,

Graeme


>> Thanks a lot.
>>
>> BRs,
>>
>> Rock.
>>
>>> On 28.06.2011 10:45, Rock Cui wrote:
>>>> I had tried to use the grub1.99rc2 as a payload of coreboot at the
>>>> beginning, but it can not boot my machine,
>>> Could you try to bisect? Recent bzr worked fine in qemu+coreboot. Your
>>> machine may present some special aspect and bisect is probably the
>>> fastest way in your case.
>>>> so I changed to 1.98
>>> As I said USB support in 1.98 wasn't good enough. Basically it worked
>>> only in qemu.
>>>> , then booting succeed. I want to insmod the uhci.mod and usbms.mod to
>>>> support USB,
>>>> but they are not exit in my build folder. If I run "configure" with
>>>> "--with-platform=pc", they will be there, but
>>>> with "--with-platform=coreboot", I can not found them. I don't know
>>>> what should I do to get them for i386-coreboot, so I use the two
>>>> modules which were built with "--with-platform=pc" in my payload.elf.
>>> USB modules weren't enabled in 1.98 on coreboot.
>>>> Surprising, they can be insmoded and run in the grub-shell , but
>>>> unfortunately, I got those logs, they can not
>>>> work.
>>> it's already surprising they didn't crash GRUB altogether.
>>>
>>>
>>>
>>> _______________________________________________
>>> 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



^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Grub2 can not detect usb disk
  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-06-30 13:44                           ` Vladimir 'φ-coder/phcoder' Serbinenko
  1 sibling, 2 replies; 31+ messages in thread
From: Cui Lei @ 2011-06-30  2:38 UTC (permalink / raw)
  To: The development of GNU GRUB

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

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 :

/*************************************************************************************************************/
=== modified file 'ChangeLog'
--- ChangeLog    2010-05-01 12:06:53 +0000
+++ ChangeLog    2010-05-01 12:32:48 +0000
@@ -1,5 +1,20 @@
  2010-05-01  Vladimir Serbinenko <phcoder@gmail.com>

+    Use LBIO on coreboot.
+
+    * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
+    kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
+    * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
+    New declaration.
+    * kern/i386/coreboot/init.c (grub_machine_init): Don't call
+    grub_machine_mmap_init on coreboot.
+    * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
+    GRUB_LINUXBIOS_MEMBER_LINK.
+    (grub_machine_mmap_iterate): Fix declaration.
+    * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
+
+2010-05-01  Vladimir Serbinenko <phcoder@gmail.com>
+
      Split coreboot and multiboot ports.

      * conf/i386-multiboot.rmk: New file.

=== modified file 'conf/i386-coreboot.rmk'
--- conf/i386-coreboot.rmk    2010-04-10 23:14:31 +0000
+++ conf/i386-coreboot.rmk    2010-05-01 12:32:48 +0000
@@ -10,7 +10,7 @@
  kernel_img_SOURCES = kern/i386/coreboot/startup.S \
      kern/i386/misc.S \
      kern/i386/coreboot/init.c \
-    kern/i386/multiboot_mmap.c \
+       kern/i386/coreboot/mmap.c \
      kern/i386/halt.c \
      kern/main.c kern/device.c \
      kern/disk.c kern/dl.c kern/file.c kern/fs.c kern/err.c \

=== modified file 'include/grub/i386/coreboot/memory.h'
--- include/grub/i386/coreboot/memory.h    2008-11-20 20:30:24 +0000
+++ include/grub/i386/coreboot/memory.h    2010-05-01 12:32:48 +0000
@@ -44,8 +44,9 @@

  struct grub_linuxbios_table_item
  {
-#define GRUB_LINUXBIOS_MEMBER_UNUSED        0
-#define GRUB_LINUXBIOS_MEMBER_MEMORY        1
+#define GRUB_LINUXBIOS_MEMBER_UNUSED        0x00
+#define GRUB_LINUXBIOS_MEMBER_MEMORY        0x01
+#define GRUB_LINUXBIOS_MEMBER_LINK              0x11
    grub_uint32_t tag;
    grub_uint32_t size;
  };

=== modified file 'kern/i386/coreboot/init.c'
--- kern/i386/coreboot/init.c    2010-02-06 23:52:31 +0000
+++ kern/i386/coreboot/init.c    2010-05-01 12:32:48 +0000
@@ -117,7 +117,9 @@
      return 0;
    }

+#ifdef GRUB_MACHINE_MULTIBOOT
    grub_machine_mmap_init ();
+#endif
    grub_machine_mmap_iterate (heap_init);

    grub_tsc_init ();

=== modified file 'kern/i386/coreboot/mmap.c'
--- kern/i386/coreboot/mmap.c    2008-08-17 16:32:18 +0000
+++ kern/i386/coreboot/mmap.c    2010-05-01 12:32:48 +0000
@@ -57,13 +57,23 @@
                     (long) table_header->size);
    for (; table_item->size;
         table_item = (grub_linuxbios_table_item_t) ((long) table_item + 
(long) table_item->size))
-    if (hook (table_item))
-      return 1;
+    {
+      if (table_item->tag == GRUB_LINUXBIOS_MEMBER_LINK
+ && check_signature ((grub_linuxbios_table_header_t) (grub_addr_t)
+                             *(grub_uint64_t *) (table_item + 1)))
+       {
+         table_header = (grub_linuxbios_table_header_t) (grub_addr_t)
+           *(grub_uint64_t *) (table_item + 1);
+         goto signature_found;
+       }
+      if (hook (table_item))
+       return 1;
+    }

    return 0;
  }

-void
+grub_err_t
  grub_machine_mmap_iterate (int NESTED_FUNC_ATTR (*hook) 
(grub_uint64_t, grub_uint64_t, grub_uint32_t))
  {
    mem_region_t mem_region;

=== modified file 'kern/i386/coreboot/startup.S'
--- kern/i386/coreboot/startup.S    2009-12-24 14:09:06 +0000
+++ kern/i386/coreboot/startup.S    2010-05-01 12:32:48 +0000
@@ -66,10 +66,12 @@
      .long    -0x1BADB002 - MULTIBOOT_MEMORY_INFO

  codestart:
+#ifdef GRUB_MACHINE_MULTIBOOT
      cmpl    $MULTIBOOT_BOOTLOADER_MAGIC, %eax
      jne 0f
      movl    %ebx, EXT_C(startup_multiboot_info)
  0:
+#endif

      /* initialize the stack */
      movl $GRUB_MEMORY_MACHINE_PROT_STACK, %esp

/***********************************************************************************************************************/

I guess it may be because the file "kern/i386/coreboot/mmap.c", but it 
has too much diffs with the multiboot_mmap.c
and I am not familiar with the mmap at all, so I don't know how to found 
out the causes.

Rock.

>   On 28.06.2011 12:02, Cui Lei wrote:
>> Sorry , I don't know what the meaning of the "bisect" and how to do?
>> Could you tell me some message in detail ?
> You take a revision which doesn't work (1.99rc2 = r3229)  and a working
> one (1.98 = r2249). Then you try a revision in the middle, e.g. r2749.
> If it works the error is in the range 2749..3229, otherwise in
> 2249..2749, then you try a revision inside this range and in 10 steps
> you'll have the exact revision which causes your problem.
>> Thanks a lot.
>>
>> BRs,
>>
>> Rock.
>>
>>> On 28.06.2011 10:45, Rock Cui wrote:
>>>> I had tried to use the grub1.99rc2 as a payload of coreboot at the
>>>> beginning, but it can not boot my machine,
>>> Could you try to bisect? Recent bzr worked fine in qemu+coreboot. Your
>>> machine may present some special aspect and bisect is probably the
>>> fastest way in your case.
>>>> so I changed to 1.98
>>> As I said USB support in 1.98 wasn't good enough. Basically it worked
>>> only in qemu.
>>>> , then booting succeed. I want to insmod the uhci.mod and usbms.mod to
>>>> support USB,
>>>> but they are not exit in my build folder. If I run "configure" with
>>>> "--with-platform=pc", they will be there, but
>>>> with "--with-platform=coreboot", I can not found them. I don't know
>>>> what should I do to get them for i386-coreboot, so I use the two
>>>> modules which were built with "--with-platform=pc" in my payload.elf.
>>> USB modules weren't enabled in 1.98 on coreboot.
>>>> Surprising, they can be insmoded and run in the grub-shell , but
>>>> unfortunately, I got those logs, they can not
>>>> work.
>>> it's already surprising they didn't crash GRUB altogether.
>>>
>>>
>>>
>>> _______________________________________________
>>> 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: 11047 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Grub2 can not detect usb disk
  2011-06-30  2:38                         ` Cui Lei
@ 2011-06-30 13:42                           ` Vladimir 'φ-coder/phcoder' Serbinenko
  2011-07-01  3:00                             ` Rock Cui
  2011-06-30 13:44                           ` Vladimir 'φ-coder/phcoder' Serbinenko
  1 sibling, 1 reply; 31+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-06-30 13:42 UTC (permalink / raw)
  To: grub-devel

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

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.
> /*************************************************************************************************************/
> === modified file 'ChangeLog'
> --- ChangeLog    2010-05-01 12:06:53 +0000
> +++ ChangeLog    2010-05-01 12:32:48 +0000
> @@ -1,5 +1,20 @@
>  2010-05-01  Vladimir Serbinenko  <phcoder@gmail.com>
>  
> +    Use LBIO on coreboot.
> +
> +    * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
> +    kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
> +    * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
> +    New declaration.
> +    * kern/i386/coreboot/init.c (grub_machine_init): Don't call
> +    grub_machine_mmap_init on coreboot.
> +    * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
> +    GRUB_LINUXBIOS_MEMBER_LINK.
> +    (grub_machine_mmap_iterate): Fix declaration.
> +    * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
> +
> +2010-05-01  Vladimir Serbinenko  <phcoder@gmail.com>
> +
>      Split coreboot and multiboot ports.
>  
>      * conf/i386-multiboot.rmk: New file.
>
> === modified file 'conf/i386-coreboot.rmk'
> --- conf/i386-coreboot.rmk    2010-04-10 23:14:31 +0000
> +++ conf/i386-coreboot.rmk    2010-05-01 12:32:48 +0000
> @@ -10,7 +10,7 @@
>  kernel_img_SOURCES = kern/i386/coreboot/startup.S \
>      kern/i386/misc.S \
>      kern/i386/coreboot/init.c \
> -    kern/i386/multiboot_mmap.c \
> +       kern/i386/coreboot/mmap.c \
>      kern/i386/halt.c \
>      kern/main.c kern/device.c \
>      kern/disk.c kern/dl.c kern/file.c kern/fs.c kern/err.c \
>
> === modified file 'include/grub/i386/coreboot/memory.h'
> --- include/grub/i386/coreboot/memory.h    2008-11-20 20:30:24 +0000
> +++ include/grub/i386/coreboot/memory.h    2010-05-01 12:32:48 +0000
> @@ -44,8 +44,9 @@
>  
>  struct grub_linuxbios_table_item
>  {
> -#define GRUB_LINUXBIOS_MEMBER_UNUSED        0
> -#define GRUB_LINUXBIOS_MEMBER_MEMORY        1
> +#define GRUB_LINUXBIOS_MEMBER_UNUSED        0x00
> +#define GRUB_LINUXBIOS_MEMBER_MEMORY        0x01
> +#define GRUB_LINUXBIOS_MEMBER_LINK              0x11
>    grub_uint32_t tag;
>    grub_uint32_t size;
>  };
>
> === modified file 'kern/i386/coreboot/init.c'
> --- kern/i386/coreboot/init.c    2010-02-06 23:52:31 +0000
> +++ kern/i386/coreboot/init.c    2010-05-01 12:32:48 +0000
> @@ -117,7 +117,9 @@
>      return 0;
>    }
>  
> +#ifdef GRUB_MACHINE_MULTIBOOT
>    grub_machine_mmap_init ();
> +#endif
>    grub_machine_mmap_iterate (heap_init);
>  
>    grub_tsc_init ();
>
> === modified file 'kern/i386/coreboot/mmap.c'
> --- kern/i386/coreboot/mmap.c    2008-08-17 16:32:18 +0000
> +++ kern/i386/coreboot/mmap.c    2010-05-01 12:32:48 +0000
> @@ -57,13 +57,23 @@
>                     (long) table_header->size);
>    for (; table_item->size;
>         table_item = (grub_linuxbios_table_item_t) ((long) table_item
> + (long) table_item->size))
> -    if (hook (table_item))
> -      return 1;
> +    {
> +      if (table_item->tag == GRUB_LINUXBIOS_MEMBER_LINK
> +         && check_signature ((grub_linuxbios_table_header_t)
> (grub_addr_t)
> +                             *(grub_uint64_t *) (table_item + 1)))
> +       {
> +         table_header = (grub_linuxbios_table_header_t) (grub_addr_t)
> +           *(grub_uint64_t *) (table_item + 1);
> +         goto signature_found;  
> +       }
> +      if (hook (table_item))
> +       return 1;
> +    }
>  
>    return 0;
>  }
>  
> -void
> +grub_err_t
>  grub_machine_mmap_iterate (int NESTED_FUNC_ATTR (*hook)
> (grub_uint64_t, grub_uint64_t, grub_uint32_t))
>  {
>    mem_region_t mem_region;
>
> === modified file 'kern/i386/coreboot/startup.S'
> --- kern/i386/coreboot/startup.S    2009-12-24 14:09:06 +0000
> +++ kern/i386/coreboot/startup.S    2010-05-01 12:32:48 +0000
> @@ -66,10 +66,12 @@
>      .long    -0x1BADB002 - MULTIBOOT_MEMORY_INFO
>  
>  codestart:
> +#ifdef GRUB_MACHINE_MULTIBOOT
>      cmpl    $MULTIBOOT_BOOTLOADER_MAGIC, %eax
>      jne 0f
>      movl    %ebx, EXT_C(startup_multiboot_info)
>  0:
> +#endif
>  
>      /* initialize the stack */
>      movl $GRUB_MEMORY_MACHINE_PROT_STACK, %esp
>
> /***********************************************************************************************************************/
>
> I guess it may be because the file "kern/i386/coreboot/mmap.c", but it
> has too much diffs with the multiboot_mmap.c
> and I am not familiar with the mmap at all, so I don't know how to
> found out the causes.
>
> Rock.
>
>>  On 28.06.2011 12:02, Cui Lei wrote:
>>> Sorry , I don't know what the meaning of the "bisect" and how to do?
>>> Could you tell me some message in detail ?
>> You take a revision which doesn't work (1.99rc2 = r3229)  and a working
>> one (1.98 = r2249). Then you try a revision in the middle, e.g. r2749.
>> If it works the error is in the range 2749..3229, otherwise in
>> 2249..2749, then you try a revision inside this range and in 10 steps
>> you'll have the exact revision which causes your problem.
>>> Thanks a lot.
>>>
>>> BRs,
>>>
>>> Rock.
>>>
>>>> On 28.06.2011 10:45, Rock Cui wrote:
>>>>> I had tried to use the grub1.99rc2 as a payload of coreboot at the
>>>>> beginning, but it can not boot my machine,
>>>> Could you try to bisect? Recent bzr worked fine in qemu+coreboot. Your
>>>> machine may present some special aspect and bisect is probably the
>>>> fastest way in your case.
>>>>> so I changed to 1.98
>>>> As I said USB support in 1.98 wasn't good enough. Basically it worked
>>>> only in qemu.
>>>>> , then booting succeed. I want to insmod the uhci.mod and usbms.mod to
>>>>> support USB,
>>>>> but they are not exit in my build folder. If I run "configure" with
>>>>> "--with-platform=pc", they will be there, but
>>>>> with "--with-platform=coreboot", I can not found them. I don't know
>>>>> what should I do to get them for i386-coreboot, so I use the two
>>>>> modules which were built with "--with-platform=pc" in my payload.elf.
>>>> USB modules weren't enabled in 1.98 on coreboot.
>>>>> Surprising, they can be insmoded and run in the grub-shell , but
>>>>> unfortunately, I got those logs, they can not
>>>>> work.
>>>> it's already surprising they didn't crash GRUB altogether.
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> 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


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Grub2 can not detect usb disk
  2011-06-30  2:38                         ` Cui Lei
  2011-06-30 13:42                           ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2011-06-30 13:44                           ` Vladimir 'φ-coder/phcoder' Serbinenko
  1 sibling, 0 replies; 31+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-06-30 13:44 UTC (permalink / raw)
  To: grub-devel

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

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 :
>
.config from coreboot would be useful as well
> /*************************************************************************************************************/
> === modified file 'ChangeLog'
> --- ChangeLog    2010-05-01 12:06:53 +0000
> +++ ChangeLog    2010-05-01 12:32:48 +0000
> @@ -1,5 +1,20 @@
>  2010-05-01  Vladimir Serbinenko  <phcoder@gmail.com>
>  
> +    Use LBIO on coreboot.
> +
> +    * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
> +    kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
> +    * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
> +    New declaration.
> +    * kern/i386/coreboot/init.c (grub_machine_init): Don't call
> +    grub_machine_mmap_init on coreboot.
> +    * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
> +    GRUB_LINUXBIOS_MEMBER_LINK.
> +    (grub_machine_mmap_iterate): Fix declaration.
> +    * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
> +
> +2010-05-01  Vladimir Serbinenko  <phcoder@gmail.com>
> +
>      Split coreboot and multiboot ports.
>  
>      * conf/i386-multiboot.rmk: New file.
>
> === modified file 'conf/i386-coreboot.rmk'
> --- conf/i386-coreboot.rmk    2010-04-10 23:14:31 +0000
> +++ conf/i386-coreboot.rmk    2010-05-01 12:32:48 +0000
> @@ -10,7 +10,7 @@
>  kernel_img_SOURCES = kern/i386/coreboot/startup.S \
>      kern/i386/misc.S \
>      kern/i386/coreboot/init.c \
> -    kern/i386/multiboot_mmap.c \
> +       kern/i386/coreboot/mmap.c \
>      kern/i386/halt.c \
>      kern/main.c kern/device.c \
>      kern/disk.c kern/dl.c kern/file.c kern/fs.c kern/err.c \
>
> === modified file 'include/grub/i386/coreboot/memory.h'
> --- include/grub/i386/coreboot/memory.h    2008-11-20 20:30:24 +0000
> +++ include/grub/i386/coreboot/memory.h    2010-05-01 12:32:48 +0000
> @@ -44,8 +44,9 @@
>  
>  struct grub_linuxbios_table_item
>  {
> -#define GRUB_LINUXBIOS_MEMBER_UNUSED        0
> -#define GRUB_LINUXBIOS_MEMBER_MEMORY        1
> +#define GRUB_LINUXBIOS_MEMBER_UNUSED        0x00
> +#define GRUB_LINUXBIOS_MEMBER_MEMORY        0x01
> +#define GRUB_LINUXBIOS_MEMBER_LINK              0x11
>    grub_uint32_t tag;
>    grub_uint32_t size;
>  };
>
> === modified file 'kern/i386/coreboot/init.c'
> --- kern/i386/coreboot/init.c    2010-02-06 23:52:31 +0000
> +++ kern/i386/coreboot/init.c    2010-05-01 12:32:48 +0000
> @@ -117,7 +117,9 @@
>      return 0;
>    }
>  
> +#ifdef GRUB_MACHINE_MULTIBOOT
>    grub_machine_mmap_init ();
> +#endif
>    grub_machine_mmap_iterate (heap_init);
>  
>    grub_tsc_init ();
>
> === modified file 'kern/i386/coreboot/mmap.c'
> --- kern/i386/coreboot/mmap.c    2008-08-17 16:32:18 +0000
> +++ kern/i386/coreboot/mmap.c    2010-05-01 12:32:48 +0000
> @@ -57,13 +57,23 @@
>                     (long) table_header->size);
>    for (; table_item->size;
>         table_item = (grub_linuxbios_table_item_t) ((long) table_item
> + (long) table_item->size))
> -    if (hook (table_item))
> -      return 1;
> +    {
> +      if (table_item->tag == GRUB_LINUXBIOS_MEMBER_LINK
> +         && check_signature ((grub_linuxbios_table_header_t)
> (grub_addr_t)
> +                             *(grub_uint64_t *) (table_item + 1)))
> +       {
> +         table_header = (grub_linuxbios_table_header_t) (grub_addr_t)
> +           *(grub_uint64_t *) (table_item + 1);
> +         goto signature_found;  
> +       }
> +      if (hook (table_item))
> +       return 1;
> +    }
>  
>    return 0;
>  }
>  
> -void
> +grub_err_t
>  grub_machine_mmap_iterate (int NESTED_FUNC_ATTR (*hook)
> (grub_uint64_t, grub_uint64_t, grub_uint32_t))
>  {
>    mem_region_t mem_region;
>
> === modified file 'kern/i386/coreboot/startup.S'
> --- kern/i386/coreboot/startup.S    2009-12-24 14:09:06 +0000
> +++ kern/i386/coreboot/startup.S    2010-05-01 12:32:48 +0000
> @@ -66,10 +66,12 @@
>      .long    -0x1BADB002 - MULTIBOOT_MEMORY_INFO
>  
>  codestart:
> +#ifdef GRUB_MACHINE_MULTIBOOT
>      cmpl    $MULTIBOOT_BOOTLOADER_MAGIC, %eax
>      jne 0f
>      movl    %ebx, EXT_C(startup_multiboot_info)
>  0:
> +#endif
>  
>      /* initialize the stack */
>      movl $GRUB_MEMORY_MACHINE_PROT_STACK, %esp
>
> /***********************************************************************************************************************/
>
> I guess it may be because the file "kern/i386/coreboot/mmap.c", but it
> has too much diffs with the multiboot_mmap.c
> and I am not familiar with the mmap at all, so I don't know how to
> found out the causes.
>
> Rock.
>
>>  On 28.06.2011 12:02, Cui Lei wrote:
>>> Sorry , I don't know what the meaning of the "bisect" and how to do?
>>> Could you tell me some message in detail ?
>> You take a revision which doesn't work (1.99rc2 = r3229)  and a working
>> one (1.98 = r2249). Then you try a revision in the middle, e.g. r2749.
>> If it works the error is in the range 2749..3229, otherwise in
>> 2249..2749, then you try a revision inside this range and in 10 steps
>> you'll have the exact revision which causes your problem.
>>> Thanks a lot.
>>>
>>> BRs,
>>>
>>> Rock.
>>>
>>>> On 28.06.2011 10:45, Rock Cui wrote:
>>>>> I had tried to use the grub1.99rc2 as a payload of coreboot at the
>>>>> beginning, but it can not boot my machine,
>>>> Could you try to bisect? Recent bzr worked fine in qemu+coreboot. Your
>>>> machine may present some special aspect and bisect is probably the
>>>> fastest way in your case.
>>>>> so I changed to 1.98
>>>> As I said USB support in 1.98 wasn't good enough. Basically it worked
>>>> only in qemu.
>>>>> , then booting succeed. I want to insmod the uhci.mod and usbms.mod to
>>>>> support USB,
>>>>> but they are not exit in my build folder. If I run "configure" with
>>>>> "--with-platform=pc", they will be there, but
>>>>> with "--with-platform=coreboot", I can not found them. I don't know
>>>>> what should I do to get them for i386-coreboot, so I use the two
>>>>> modules which were built with "--with-platform=pc" in my payload.elf.
>>>> USB modules weren't enabled in 1.98 on coreboot.
>>>>> Surprising, they can be insmoded and run in the grub-shell , but
>>>>> unfortunately, I got those logs, they can not
>>>>> work.
>>>> it's already surprising they didn't crash GRUB altogether.
>>>>
>>>>
>>>>
>>>> _______________________________________________
>>>> 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


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Grub2 can not detect usb disk
  2011-06-30 13:42                           ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2011-07-01  3:00                             ` Rock Cui
  2011-07-01  6:57                               ` Rock Cui
  0 siblings, 1 reply; 31+ messages in thread
From: Rock Cui @ 2011-07-01  3:00 UTC (permalink / raw)
  To: The development of GNU GRUB

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



^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Grub2 can not detect usb disk
  2011-07-01  3:00                             ` Rock Cui
@ 2011-07-01  6:57                               ` Rock Cui
  2011-07-02 21:08                                 ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 31+ messages in thread
From: Rock Cui @ 2011-07-01  6:57 UTC (permalink / raw)
  To: The development of GNU GRUB

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

Sorry,I am careless, my log file is not empty, please refer to the 
attachment.


> 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
>


[-- Attachment #2: memlog.tar.gz --]
[-- Type: application/x-gzip, Size: 360792 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Grub2 can not detect usb disk
  2011-07-01  6:57                               ` Rock Cui
@ 2011-07-02 21:08                                 ` Vladimir 'φ-coder/phcoder' Serbinenko
  2011-07-05  6:33                                   ` Cui Lei
  0 siblings, 1 reply; 31+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-07-02 21:08 UTC (permalink / raw)
  To: grub-devel


[-- Attachment #1.1: Type: text/plain, Size: 1821 bytes --]

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


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: relink.diff --]
[-- Type: text/x-diff; name="relink.diff", Size: 1117 bytes --]

=== modified file 'grub-core/kern/i386/coreboot/mmap.c'
--- grub-core/kern/i386/coreboot/mmap.c	2010-09-04 15:10:10 +0000
+++ grub-core/kern/i386/coreboot/mmap.c	2011-07-02 21:03:42 +0000
@@ -27,6 +27,7 @@
 {
   grub_linuxbios_table_header_t table_header;
   grub_linuxbios_table_item_t table_item;
+  int linked = 0;
 
   auto int check_signature (grub_linuxbios_table_header_t);
   int check_signature (grub_linuxbios_table_header_t tbl_header)
@@ -59,12 +60,13 @@
   for (; table_item->size;
        table_item = (grub_linuxbios_table_item_t) ((long) table_item + (long) table_item->size))
     {
-      if (table_item->tag == GRUB_LINUXBIOS_MEMBER_LINK
+      if (!linked && table_item->tag == GRUB_LINUXBIOS_MEMBER_LINK
          && check_signature ((grub_linuxbios_table_header_t) (grub_addr_t)
                              *(grub_uint64_t *) (table_item + 1)))
        {
          table_header = (grub_linuxbios_table_header_t) (grub_addr_t)
            *(grub_uint64_t *) (table_item + 1);
+	 linked = 1;
          goto signature_found;   
        }
       if (hook (table_item))


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Grub2 can not detect usb disk
  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                                     ` 崔磊
  0 siblings, 2 replies; 31+ messages in thread
From: Cui Lei @ 2011-07-05  6:33 UTC (permalink / raw)
  To: The development of GNU GRUB

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

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


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

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Grub2 can not detect usb disk
  2011-07-05  6:33                                   ` Cui Lei
@ 2011-07-05  6:35                                     ` Cui Lei
  2011-07-06 14:03                                     ` 崔磊
  1 sibling, 0 replies; 31+ messages in thread
From: Cui Lei @ 2011-07-05  6:35 UTC (permalink / raw)
  To: The development of GNU GRUB

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

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
>


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

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re:Re: Grub2 can not detect usb disk
  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-20 21:34                                       ` Vladimir 'φ-coder/phcoder' Serbinenko
  1 sibling, 2 replies; 31+ messages in thread
From: 崔磊 @ 2011-07-06 14:03 UTC (permalink / raw)
  To: Cui Lei; +Cc: The development of GNU GRUB

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

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.orghttps://lists.gnu.org/mailman/listinfo/grub-devel
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.orghttps://lists.gnu.org/mailman/listinfo/grub-devel
_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.orghttps://lists.gnu.org/mailman/listinfo/grub-devel



_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.orghttps://lists.gnu.org/mailman/listinfo/grub-devel



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

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Grub2 can not detect usb disk
  2011-07-06 14:03                                     ` 崔磊
@ 2011-07-12 11:11                                       ` Cui Lei
  2011-07-21 11:11                                         ` Vladimir 'φ-coder/phcoder' Serbinenko
  2011-07-20 21:34                                       ` Vladimir 'φ-coder/phcoder' Serbinenko
  1 sibling, 1 reply; 31+ messages in thread
From: Cui Lei @ 2011-07-12 11:11 UTC (permalink / raw)
  To: The development of GNU GRUB

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

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
>>
>
>
>


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

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Grub2 can not detect usb disk
  2011-07-06 14:03                                     ` 崔磊
  2011-07-12 11:11                                       ` Cui Lei
@ 2011-07-20 21:34                                       ` Vladimir 'φ-coder/phcoder' Serbinenko
  2011-07-21  1:19                                         ` Rock Cui
  1 sibling, 1 reply; 31+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-07-20 21:34 UTC (permalink / raw)
  To: The development of GNU GRUB

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

On 06.07.2011 16:03, 崔磊 wrote:
> 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


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Grub2 can not detect usb disk
  2011-07-20 21:34                                       ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2011-07-21  1:19                                         ` Rock Cui
  2011-07-21 11:07                                           ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 1 reply; 31+ messages in thread
From: Rock Cui @ 2011-07-21  1:19 UTC (permalink / raw)
  To: grub-devel

[-- 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 --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Grub2 can not detect usb disk
  2011-07-21  1:19                                         ` Rock Cui
@ 2011-07-21 11:07                                           ` Vladimir 'φ-coder/phcoder' Serbinenko
  0 siblings, 0 replies; 31+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-07-21 11:07 UTC (permalink / raw)
  To: grub-devel

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

On 21.07.2011 03:19, Rock Cui wrote:
> 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.
>
Examining your memory dump suggests that there is no error in this line
of code. That's why I need the second dump of where the tables really are
> 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
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Grub2 can not detect usb disk
  2011-07-12 11:11                                       ` Cui Lei
@ 2011-07-21 11:11                                         ` Vladimir 'φ-coder/phcoder' Serbinenko
  2011-07-27  8:11                                           ` Rock Cui
  0 siblings, 1 reply; 31+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-07-21 11:11 UTC (permalink / raw)
  To: grub-devel

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

On 12.07.2011 13:11, Cui Lei wrote:
> 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
It looks like GRUB has seen the device but no real data was transfered.
Could you try with low-speed device? E.g. keyboard. I think you may need
ehci driver (Aleš recently coded one)
> /*******************************************************************************************************/
>
> 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
>>>
>>
>>
>>
>
>
> _______________________________________________
> Grub-devel mailing list
> Grub-devel@gnu.org
> https://lists.gnu.org/mailman/listinfo/grub-devel


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Grub2 can not detect usb disk
  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
  0 siblings, 1 reply; 31+ messages in thread
From: Rock Cui @ 2011-07-27  8:11 UTC (permalink / raw)
  To: The development of GNU GRUB

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

The usb keyboard can not work. I have added the usb_keyboard.mod into 
the image.
I think if no ehci support, the usb device will run with full-speed or 
low-speed, because of uhci/ohci support.

> On 12.07.2011 13:11, Cui Lei wrote:
>> 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
> It looks like GRUB has seen the device but no real data was transfered.
> Could you try with low-speed device? E.g. keyboard. I think you may need
> ehci driver (Ales( recently coded one)
>> /*******************************************************************************************************/
>>
>> 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
>>>
>>>
>>
>> _______________________________________________
>> 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: 7244 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Grub2 can not detect usb disk
  2011-07-27  8:11                                           ` Rock Cui
@ 2011-07-27  8:49                                             ` Vladimir 'φ-coder/phcoder' Serbinenko
  2011-07-27  9:28                                               ` Rock Cui
  0 siblings, 1 reply; 31+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-07-27  8:49 UTC (permalink / raw)
  To: grub-devel

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

On 27.07.2011 10:11, Rock Cui wrote:
> The usb keyboard can not work. I have added the usb_keyboard.mod into
> the image.
In this case I'm sure that usb_keyboard works on both yeeloong and
fuloong. I suspect the difference between David and me is that he uses
pmon and I don't and when loaded from another bootloader rather than
directly from flash GRUB skips some init routines which shouldn't be
necessary in that case, including some CS5536 init. I just have not
enough battery right now to make a test image.
> I think if no ehci support, the usb device will run with full-speed or
> low-speed, because of uhci/ohci support.
>
Keyboard is always in low-speed mode.
>> On 12.07.2011 13:11, Cui Lei wrote:
>>> 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
>> It looks like GRUB has seen the device but no real data was transfered.
>> Could you try with low-speed device? E.g. keyboard. I think you may need
>> ehci driver (Aleš recently coded one)
>>> /*******************************************************************************************************/
>>>
>>> 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
>>>>
>>> _______________________________________________
>>> 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


-- 
Regards
Vladimir 'φ-coder/phcoder' Serbinenko



[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

* Re: Grub2 can not detect usb disk
  2011-07-27  8:49                                             ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2011-07-27  9:28                                               ` Rock Cui
  0 siblings, 0 replies; 31+ messages in thread
From: Rock Cui @ 2011-07-27  9:28 UTC (permalink / raw)
  To: The development of GNU GRUB

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

I think you may be a bit promiscuous, this thread is not about or base 
on a loongson platform.
> On 27.07.2011 10:11, Rock Cui wrote:
>> The usb keyboard can not work. I have added the usb_keyboard.mod into
>> the image.
> In this case I'm sure that usb_keyboard works on both yeeloong and
> fuloong. I suspect the difference between David and me is that he uses
> pmon and I don't and when loaded from another bootloader rather than
> directly from flash GRUB skips some init routines which shouldn't be
> necessary in that case, including some CS5536 init. I just have not
> enough battery right now to make a test image.
>> I think if no ehci support, the usb device will run with full-speed or
>> low-speed, because of uhci/ohci support.
>>
> Keyboard is always in low-speed mode.
>>> On 12.07.2011 13:11, Cui Lei wrote:
>>>> 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
>>> It looks like GRUB has seen the device but no real data was transfered.
>>> Could you try with low-speed device? E.g. keyboard. I think you may need
>>> ehci driver (Ales( recently coded one)
>>>> /*******************************************************************************************************/
>>>>
>>>> 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
>>>> _______________________________________________
>>>> 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: 8919 bytes --]

^ permalink raw reply	[flat|nested] 31+ messages in thread

end of thread, other threads:[~2011-07-27  9:29 UTC | newest]

Thread overview: 31+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
2011-07-21 11:07                                           ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-06-30 13:44                           ` Vladimir 'φ-coder/phcoder' Serbinenko

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.