Skip to contentSkip to conversation

Grub2 can not detect usb disk

DISCUSSION Cui Lei 4 participants 31 messages Jun 23, 2011 – Jul 27, 2011

lore
Share & tools
lore

Cui Lei

author
#0 lore raw

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.

#1 lore raw
Quoted 7 lines · Cui Lei

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

Quoted 13 lines

In addition, where can I get
the detail about those grub2' modules ?

BRs,

Rock.

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
author
#2 lore raw

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

Quoted 28 lines · Cui Lei
Quoted 7 lines

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

Quoted 5 lines

In addition, where can I get
the detail about those grub2' modules ?

BRs,

Quoted 8 lines

Rock.

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

author
#3 lore raw

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.

Quoted 39 lines

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

Quoted 23 lines · Cui Lei
Quoted 7 lines

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

Quoted 5 lines

In addition, where can I get
the detail about those grub2' modules ?

BRs,

Quoted 8 lines

Rock.

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#4 lore raw
Quoted 3 lines · Cui Lei

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?

Quoted 150 lines

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.

Quoted 38 lines

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

Quoted 23 lines · Cui Lei
Quoted 7 lines

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

Quoted 5 lines

In addition, where can I get
the detail about those grub2' modules ?

BRs,

Quoted 8 lines

Rock.

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
#5 lore raw

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

Quoted 159 lines · Cui Lei
Quoted 3 lines

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?

Quoted 143 lines

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.

Quoted 36 lines

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

Quoted 22 lines · Cui Lei
Quoted 7 lines

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

Quoted 5 lines

In addition, where can I get
the detail about those grub2' modules ?

BRs,

Quoted 8 lines

Rock.

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#6 lore raw
Quoted 2 lines · Rock Cui

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

Which GRUB version is it?

Quoted 163 lines
Quoted 153 lines · Cui Lei
Quoted 3 lines

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?

Quoted 137 lines

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.

Quoted 35 lines

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

Quoted 26 lines · Cui Lei
Quoted 7 lines

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

Quoted 5 lines

In addition, where can I get
the detail about those grub2' modules ?

BRs,

Quoted 8 lines

Rock.

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 8 lines
Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
#7 lore raw

COREBOOTV4 GRUB1.98

Quoted 168 lines

Which GRUB version is it?

Quoted 157 lines
Quoted 152 lines · Cui Lei
Quoted 3 lines

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?

Quoted 137 lines

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.

Quoted 35 lines

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

Quoted 26 lines · Cui Lei
Quoted 7 lines

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

Quoted 5 lines

In addition, where can I get
the detail about those grub2' modules ?

BRs,

Quoted 8 lines

Rock.

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 8 lines
Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#8 lore raw
Quoted 2 lines · Rock Cui

COREBOOTV4 GRUB1.98

USB in 1.98 has a lot of problems. Please use something more recent. Ideally HEAD

Quoted 172 lines
Quoted 162 lines

Which GRUB version is it?

Quoted 151 lines
Quoted 151 lines · Cui Lei
Quoted 3 lines

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?

Quoted 145 lines

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.

Quoted 31 lines

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

Quoted 22 lines · Cui Lei
Quoted 7 lines

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

Quoted 13 lines

In addition, where can I get
the detail about those grub2' modules ?

BRs,

Rock.

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 8 lines
Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 8 lines
Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
#9 lore raw

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.

Quoted 181 lines · Rock Cui
Quoted 2 lines

COREBOOTV4 GRUB1.98

USB in 1.98 has a lot of problems. Please use something more recent. Ideally HEAD

Quoted 166 lines
Quoted 161 lines

Which GRUB version is it?

Quoted 151 lines
Quoted 151 lines · Cui Lei
Quoted 3 lines

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?

Quoted 145 lines

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.

Quoted 31 lines

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

Quoted 22 lines · Cui Lei
Quoted 7 lines

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

Quoted 13 lines

In addition, where can I get
the detail about those grub2' modules ?

BRs,

Rock.

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 8 lines
Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 8 lines
Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#10 lore raw
Quoted 2 lines · Rock Cui

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.

Quoted 1 line

so I changed to 1.98

As I said USB support in 1.98 wasn't good enough. Basically it worked only in qemu.

Quoted 7 lines

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

Quoted 3 lines

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.

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
author
#11 lore raw

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.

Quoted 28 lines · Rock Cui
Quoted 2 lines

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.

Quoted 1 line

so I changed to 1.98

As I said USB support in 1.98 wasn't good enough. Basically it worked only in qemu.

Quoted 7 lines

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

Quoted 3 lines

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
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#12 lore raw
Quoted 2 lines · Cui Lei

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.

Quoted 40 lines

Thanks a lot.

BRs,

Rock.

Quoted 20 lines · Rock Cui
Quoted 2 lines

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.

Quoted 1 line

so I changed to 1.98

As I said USB support in 1.98 wasn't good enough. Basically it worked only in qemu.

Quoted 7 lines

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

Quoted 3 lines

Surprising, they can be insmoded and run in the grub-shell , but unfortunately, I got those logs, they can not
work.

Quoted 8 lines

it's already surprising they didn't crash GRUB altogether.

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
#13 lore raw
Quoted 8 lines · Vladimir 'φ-coder/phcoder' Serbinenko
Quoted 2 lines · Cui Lei

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

Quoted 48 lines
Quoted 36 lines

Thanks a lot.

BRs,

Rock.

Quoted 20 lines · Rock Cui
Quoted 2 lines

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.

Quoted 1 line

so I changed to 1.98

As I said USB support in 1.98 wasn't good enough. Basically it worked only in qemu.

Quoted 7 lines

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

Quoted 3 lines

Surprising, they can be insmoded and run in the grub-shell , but unfortunately, I got those logs, they can not
work.

Quoted 8 lines

it's already surprising they didn't crash GRUB altogether.

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

author
#14 lore raw
In reply to Vladimir 'φ-coder/phcoder' Serbinenko

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:32:48 +0000 renamed from ChangeLog 2010-05-01 12:06:53 +0000 +15 -0
@@ -1,5 +1,20 @@
 2010-05-01  Vladimir Serbinenko <[email protected]>
 
+    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 <[email protected]>
+
     Split coreboot and multiboot ports.
 
     * conf/i386-multiboot.rmk: New file.

=== modified file 'conf/i386-coreboot.rmk'

i386-coreboot.rmk 2010-05-01 12:32:48 +0000 renamed from i386-coreboot.rmk 2010-04-10 23:14:31 +0000 +1 -1
@@ -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'

grub/i386/coreboot/memory.h 2010-05-01 12:32:48 +0000 renamed from grub/i386/coreboot/memory.h 2008-11-20 20:30:24 +0000 +3 -2
@@ -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'

i386/coreboot/init.c 2010-05-01 12:32:48 +0000 renamed from i386/coreboot/init.c 2010-02-06 23:52:31 +0000 +2 -0
@@ -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'

i386/coreboot/mmap.c 2010-05-01 12:32:48 +0000 renamed from i386/coreboot/mmap.c 2008-08-17 16:32:18 +0000 +0 -0
@@ -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'

i386/coreboot/startup.S 2010-05-01 12:32:48 +0000 renamed from i386/coreboot/startup.S 2009-12-24 14:09:06 +0000 +2 -0
@@ -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.

Quoted 54 lines · Cui Lei
Quoted 2 lines

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.

Quoted 35 lines

Thanks a lot.

BRs,

Rock.

Quoted 20 lines · Rock Cui
Quoted 2 lines

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.

Quoted 1 line

so I changed to 1.98

As I said USB support in 1.98 wasn't good enough. Basically it worked only in qemu.

Quoted 7 lines

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

Quoted 3 lines

Surprising, they can be insmoded and run in the grub-shell , but unfortunately, I got those logs, they can not
work.

Quoted 8 lines

it's already surprising they didn't crash GRUB altogether.

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#15 lore raw
Quoted 4 lines · Cui Lei

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.

Quoted 187 lines

/*************************************************************************************************************/ === modified file 'ChangeLog'

ChangeLog 2010-05-01 12:32:48 +0000 renamed from ChangeLog 2010-05-01 12:06:53 +0000 +15 -0
@@ -1,5 +1,20 @@
 2010-05-01  Vladimir Serbinenko  <[email protected]>
 
+    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  <[email protected]>
+
     Split coreboot and multiboot ports.
 
     * conf/i386-multiboot.rmk: New file.

=== modified file 'conf/i386-coreboot.rmk'

i386-coreboot.rmk 2010-05-01 12:32:48 +0000 renamed from i386-coreboot.rmk 2010-04-10 23:14:31 +0000 +1 -1
@@ -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'

grub/i386/coreboot/memory.h 2010-05-01 12:32:48 +0000 renamed from grub/i386/coreboot/memory.h 2008-11-20 20:30:24 +0000 +3 -2
@@ -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'

i386/coreboot/init.c 2010-05-01 12:32:48 +0000 renamed from i386/coreboot/init.c 2010-02-06 23:52:31 +0000 +2 -0
@@ -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'

i386/coreboot/mmap.c 2010-05-01 12:32:48 +0000 renamed from i386/coreboot/mmap.c 2008-08-17 16:32:18 +0000 +14 -3
@@ -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'

i386/coreboot/startup.S 2010-05-01 12:32:48 +0000 renamed from i386/coreboot/startup.S 2009-12-24 14:09:06 +0000 +2 -0
@@ -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.

Quoted 48 lines · Cui Lei
Quoted 2 lines

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.

Quoted 30 lines

Thanks a lot.

BRs,

Rock.

Quoted 24 lines · Rock Cui
Quoted 2 lines

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.

Quoted 1 line

so I changed to 1.98

As I said USB support in 1.98 wasn't good enough. Basically it worked only in qemu.

Quoted 7 lines

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

Quoted 3 lines

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.

Quoted 8 lines
Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
#30 lore raw
In reply to Cui Lei
Quoted 4 lines · Cui Lei

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

Quoted 187 lines

/*************************************************************************************************************/ === modified file 'ChangeLog'

ChangeLog 2010-05-01 12:32:48 +0000 renamed from ChangeLog 2010-05-01 12:06:53 +0000 +15 -0
@@ -1,5 +1,20 @@
 2010-05-01  Vladimir Serbinenko  <[email protected]>
 
+    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  <[email protected]>
+
     Split coreboot and multiboot ports.
 
     * conf/i386-multiboot.rmk: New file.

=== modified file 'conf/i386-coreboot.rmk'

i386-coreboot.rmk 2010-05-01 12:32:48 +0000 renamed from i386-coreboot.rmk 2010-04-10 23:14:31 +0000 +1 -1
@@ -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'

grub/i386/coreboot/memory.h 2010-05-01 12:32:48 +0000 renamed from grub/i386/coreboot/memory.h 2008-11-20 20:30:24 +0000 +3 -2
@@ -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'

i386/coreboot/init.c 2010-05-01 12:32:48 +0000 renamed from i386/coreboot/init.c 2010-02-06 23:52:31 +0000 +2 -0
@@ -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'

i386/coreboot/mmap.c 2010-05-01 12:32:48 +0000 renamed from i386/coreboot/mmap.c 2008-08-17 16:32:18 +0000 +14 -3
@@ -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'

i386/coreboot/startup.S 2010-05-01 12:32:48 +0000 renamed from i386/coreboot/startup.S 2009-12-24 14:09:06 +0000 +2 -0
@@ -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.

Quoted 48 lines · Cui Lei
Quoted 2 lines

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.

Quoted 30 lines

Thanks a lot.

BRs,

Rock.

Quoted 24 lines · Rock Cui
Quoted 2 lines

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.

Quoted 1 line

so I changed to 1.98

As I said USB support in 1.98 wasn't good enough. Basically it worked only in qemu.

Quoted 7 lines

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

Quoted 3 lines

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.

Quoted 8 lines
Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
#16 lore raw
In reply to Vladimir 'φ-coder/phcoder' Serbinenko

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!” : (

Quoted 13 lines · Cui Lei
Quoted 4 lines

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
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#17 lore raw

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

Quoted 31 lines

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!” : (

Quoted 5 lines · Cui Lei
Quoted 4 lines

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 :

Quoted 8 lines

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
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#18 lore raw
Quoted 3 lines · Rock Cui

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)

Quoted 42 lines
Quoted 31 lines

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!” : (

Quoted 10 lines · Cui Lei
Quoted 4 lines

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.

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 5 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko

=== modified file 'grub-core/kern/i386/coreboot/mmap.c'

kern/i386/coreboot/mmap.c +3 -1
@@ -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))
author
#19 lore raw

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

Quoted 54 lines · Rock Cui
Quoted 3 lines

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)

Quoted 35 lines
Quoted 29 lines

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!" : (

Quoted 10 lines · Cui Lei
Quoted 4 lines

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.

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 5 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

author
#20 lore raw

I think the "skip=2146422784" is too big.

Quoted 55 lines

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

Quoted 51 lines · Rock Cui
Quoted 3 lines

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)

Quoted 33 lines
Quoted 24 lines

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!" : (

Quoted 10 lines · Cui Lei
Quoted 4 lines

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.

Quoted 9 lines
Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

author
#21 lore raw

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" <[email protected]> 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 [email protected]://lists.gnu.org/mailman/listinfo/grub-devel
_______________________________________________
Grub-devel mailing list [email protected]://lists.gnu.org/mailman/listinfo/grub-devel
_______________________________________________
Grub-devel mailing list [email protected]://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list [email protected]://lists.gnu.org/mailman/listinfo/grub-devel

author
#22 lore raw

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.

Quoted 66 lines

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" <[email protected]> wrote:

    I think the "skip=2146422784" is too big.
Quoted 55 lines

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

Quoted 51 lines · Rock Cui
Quoted 3 lines

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)

Quoted 33 lines
Quoted 24 lines

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!” : (

Quoted 10 lines · Cui Lei
Quoted 4 lines

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.

Quoted 9 lines
Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#27 lore raw
In reply to 崔磊
Quoted 4 lines · 崔磊

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?

Quoted 70 lines

BRs,
Rock.

At 2011-07-05 14:35:28,"Cui Lei" <[email protected]> wrote:

    I think the "skip=2146422784" is too big.
Quoted 55 lines

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

Quoted 51 lines · Rock Cui
Quoted 3 lines

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)

Quoted 33 lines
Quoted 24 lines

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!” : (

Quoted 10 lines · Cui Lei
Quoted 4 lines

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.

Quoted 9 lines
Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
#28 lore raw

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.

Quoted 79 lines
Quoted 5 lines

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?

Quoted 62 lines

BRs,
Rock.

At 2011-07-05 14:35:28,"Cui Lei"<[email protected]> wrote:

     I think the "skip=2146422784" is too big.
Quoted 53 lines

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

Quoted 50 lines · Rock Cui
Quoted 3 lines

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)

Quoted 33 lines
Quoted 24 lines

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!" : (

Quoted 10 lines · Cui Lei
Quoted 4 lines

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.

Quoted 9 lines
Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#29 lore raw
Quoted 5 lines · Rock Cui

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

Quoted 89 lines

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.

Quoted 71 lines
Quoted 4 lines

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?

Quoted 60 lines

BRs,
Rock.

At 2011-07-05 14:35:28,"Cui Lei" <[email protected]> wrote:

    I think the "skip=2146422784" is too big.
Quoted 52 lines

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

Quoted 49 lines · Rock Cui
Quoted 3 lines

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)

Quoted 33 lines
Quoted 24 lines

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!” : (

Quoted 10 lines · Cui Lei
Quoted 4 lines

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.

Quoted 9 lines
Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
#23 lore raw
In reply to Cui Lei
Quoted 6 lines · Cui Lei

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:

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

Quoted 9 lines
	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)

Quoted 89 lines

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

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.

Quoted 5 lines

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.

Quoted 64 lines

BRs,
Rock.

At 2011-07-05 14:35:28,"Cui Lei" <[email protected]> wrote:

    I think the "skip=2146422784" is too big.
Quoted 55 lines

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

Quoted 51 lines · Rock Cui
Quoted 3 lines

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)

Quoted 33 lines
Quoted 24 lines

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!” : (

Quoted 10 lines · Cui Lei
Quoted 4 lines

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.

Quoted 9 lines
Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
#24 lore raw

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.

Quoted 111 lines · Cui Lei
Quoted 6 lines

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:

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

Quoted 9 lines
	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)

Quoted 81 lines

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

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.

Quoted 5 lines

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.

Quoted 61 lines

BRs,
Rock.

At 2011-07-05 14:35:28,"Cui Lei"<[email protected]> wrote:

     I think the "skip=2146422784" is too big.
Quoted 53 lines

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

Quoted 50 lines · Rock Cui
Quoted 3 lines

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)

Quoted 33 lines
Quoted 24 lines

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!" : (

Quoted 10 lines · Cui Lei
Quoted 4 lines

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.

Quoted 9 lines
Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

#25 lore raw
Quoted 2 lines · Rock Cui

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.

Quoted 3 lines

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.

Quoted 113 lines
Quoted 103 lines · Cui Lei
Quoted 6 lines

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:

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

Quoted 9 lines
	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)

Quoted 78 lines

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

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.

Quoted 5 lines

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.

Quoted 59 lines

BRs,
Rock.

At 2011-07-05 14:35:28,"Cui Lei" <[email protected]> wrote:

    I think the "skip=2146422784" is too big.
Quoted 52 lines

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

Quoted 49 lines · Rock Cui
Quoted 3 lines

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)

Quoted 33 lines
Quoted 24 lines

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!” : (

Quoted 10 lines · Cui Lei
Quoted 4 lines

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.

Quoted 9 lines
Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
#26 lore raw

I think you may be a bit promiscuous, this thread is not about or base on a loongson platform.

Quoted 130 lines · Rock Cui
Quoted 2 lines

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.

Quoted 3 lines

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.

Quoted 106 lines
Quoted 101 lines · Cui Lei
Quoted 6 lines

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:

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

Quoted 9 lines
	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)

Quoted 73 lines

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

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.

Quoted 59 lines

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"<[email protected]> wrote:

     I think the "skip=2146422784" is too big.
Quoted 48 lines

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

Quoted 45 lines · Rock Cui
Quoted 3 lines

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)

Quoted 37 lines
Quoted 24 lines

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!" : (

Quoted 10 lines · Cui Lei
Quoted 4 lines

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.

Quoted 9 lines
Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 8 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Quoted 4 lines

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel