Re: Grub2 can not detect usb disk

2011-07-27 Thread Rock Cui
I think you may be a bit promiscuous, this thread is not about or base on a loongson platform. On 27.07.2011 10:11, Rock Cui wrote: The usb keyboard can not work. I have added the usb_keyboard.mod into the image. In this case I'm sure that usb_keyboard works on both yeeloong and fuloong. I susp

Re: Grub2 can not detect usb disk

2011-07-27 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 27.07.2011 10:11, Rock Cui wrote: > The usb keyboard can not work. I have added the usb_keyboard.mod into > the image. In this case I'm sure that usb_keyboard works on both yeeloong and fuloong. I suspect the difference between David and me is that he uses pmon and I don't and when loaded from a

Re: Grub2 can not detect usb disk

2011-07-27 Thread Rock Cui
The usb keyboard can not work. I have added the usb_keyboard.mod into the image. I think if no ehci support, the usb device will run with full-speed or low-speed, because of uhci/ohci support. On 12.07.2011 13:11, Cui Lei wrote: Hi Vladimir, I have not received you reply for some days. I thin

Re: Grub2 can not detect usb disk

2011-07-21 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 12.07.2011 13:11, Cui Lei wrote: > Hi Vladimir, I have not received you reply for some days. I think you must be > very busy, so I did some works on my own way. > I tested dozens of versions between r2249 and r3229. I found that most of > them can boot my machine with "--with-platform=multiboo

Re: Grub2 can not detect usb disk

2011-07-21 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 21.07.2011 03:19, Rock Cui wrote: > Sorry, it's the 56th line: > table_item = (grub_linuxbios_table_item_t) ((long) table_header + > (long) table_header->size); > the (long)table_header->size, I think it is not same with coreboot. > Examining your memory dump suggests that th

Re: Grub2 can not detect usb disk

2011-07-20 Thread 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. Now I can build a payload with "--with-platform=multiboot" that can boot my machine, n

Re: Grub2 can not detect usb disk

2011-07-20 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 06.07.2011 16:03, 崔磊 wrote: > I have read the source code about the mmap of grub and of corebootV4, > I found that the size of their table header struct are not same, and I > think ,in the file "mmap.c" of grub2,on the 53rd line, the offset of > the first table item may be error. In my copy 53rd

Re: Grub2 can not detect usb disk

2011-07-12 Thread 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=core

Re: Grub2 can not detect usb disk

2011-07-04 Thread Cui Lei
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,

Re: Grub2 can not detect usb disk

2011-07-04 Thread Cui Lei
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 al

Re: Grub2 can not detect usb disk

2011-07-02 Thread Vladimir 'φ-coder/phcoder' Serbinenko
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 AFAI

Re: Grub2 can not detect usb disk

2011-06-30 Thread Rock Cui
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

Re: Grub2 can not detect usb disk

2011-06-30 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 30.06.2011 04:38, Cui Lei wrote: > I have found the the last version which can boot my machine, it is > the r2348. The r2349 can not boot it. > So I checked out the changelog from 2348 to 2349 : > .config from coreboot would be useful as well > /*

Re: Grub2 can not detect usb disk

2011-06-30 Thread Vladimir 'φ-coder/phcoder' Serbinenko
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 128

Re: Grub2 can not detect usb disk

2011-06-29 Thread 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 : /*/ === modified file 'ChangeLo

Re: Grub2 can not detect usb disk

2011-06-28 Thread Graeme Russ
On 28/06/11 21:08, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > On 28.06.2011 12:02, Cui Lei wrote: >> Sorry , I don't know what the meaning of the "bisect" and how to do? >> Could you tell me some message in detail ? > You take a revision which doesn't work (1.99rc2 = r3229) and a working > one

Re: Grub2 can not detect usb disk

2011-06-28 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 28.06.2011 12:02, Cui Lei wrote: > Sorry , I don't know what the meaning of the "bisect" and how to do? > Could you tell me some message in detail ? You take a revision which doesn't work (1.99rc2 = r3229) and a working one (1.98 = r2249). Then you try a revision in the middle, e.g. r2749. If i

Re: Grub2 can not detect usb disk

2011-06-28 Thread 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 ? Thanks a lot. BRs, Rock. On 28.06.2011 10:45, Rock Cui wrote: I had tried to use the grub1.99rc2 as a payload of coreboot at the beginning, but it can not boot my machine, Could yo

Re: Grub2 can not detect usb disk

2011-06-28 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 28.06.2011 10:45, Rock Cui wrote: > I had tried to use the grub1.99rc2 as a payload of coreboot at the > beginning, but it can not boot my machine, Could you try to bisect? Recent bzr worked fine in qemu+coreboot. Your machine may present some special aspect and bisect is probably the fastest wa

Re: Grub2 can not detect usb disk

2011-06-28 Thread 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, 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-plat

Re: Grub2 can not detect usb disk

2011-06-27 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 28.06.2011 03:19, Rock Cui wrote: > COREBOOTV4 GRUB1.98 > USB in 1.98 has a lot of problems. Please use something more recent. Ideally HEAD >> Which GRUB version is it? On 27.06.2011 11:16, Cui Lei wrote: > Hi all, > I have gotten the uhci.mod and usbms.mod, then I insmoded them.

Re: Grub2 can not detect usb disk

2011-06-27 Thread Rock Cui
COREBOOTV4 GRUB1.98 Which GRUB version is it? On 27.06.2011 11:16, Cui Lei wrote: Hi all, I have gotten the uhci.mod and usbms.mod, then I insmoded them. But I still can not see a usb device. What does "usb" (from usbtest.mod) say? I set "debug=all" and got the following results: /

Re: Grub2 can not detect usb disk

2011-06-27 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 27.06.2011 12:04, Rock Cui wrote: > If I run "usb", it reboot right now. > Which GRUB version is it? >> On 27.06.2011 11:16, Cui Lei wrote: >>> Hi all, >>> I have gotten the uhci.mod and usbms.mod, then I insmoded them. But I >>> still can not see a usb device. >> What does "usb" (from usbtest.

Re: Grub2 can not detect usb disk

2011-06-27 Thread Rock Cui
If I run "usb", it reboot right now. On 27.06.2011 11:16, Cui Lei wrote: Hi all, I have gotten the uhci.mod and usbms.mod, then I insmoded them. But I still can not see a usb device. What does "usb" (from usbtest.mod) say? I set "debug=all" and got the following results: /

Re: Grub2 can not detect usb disk

2011-06-27 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 27.06.2011 11:16, Cui Lei wrote: > Hi all, > I have gotten the uhci.mod and usbms.mod, then I insmoded them. But I > still can not see a usb device. What does "usb" (from usbtest.mod) say? > I set "debug=all" and > got the following results: > > /***

Re: Grub2 can not detect usb disk

2011-06-23 Thread Cui Lei
Thank you for you help, I searched them in my grub1.98 folder, but did not find any one. I found them in the grub1.99rc folder. I think may be I lost some configure option, but I built them with the same configure option: ./configure --with-platform=coreboot On 23.06.2011 12:01, Cui Lei wr

Re: Grub2 can not detect usb disk

2011-06-23 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 23.06.2011 12:01, Cui Lei wrote: > Hi all, > I had build a coreboot with grub-1.98 as payload and I can use it to > boot ubuntu11.04. Now I want to use it to boot > the ubuntu11.04 liveUSB, but it seems the usb device can not be detected > or grub don't do that, because when I > type "ls", just