From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1QcHXe-0007CR-RP for mharc-grub-devel@gnu.org; Thu, 30 Jun 2011 09:44:27 -0400 Received: from eggs.gnu.org ([140.186.70.92]:39784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcHXb-0007Bf-U0 for grub-devel@gnu.org; Thu, 30 Jun 2011 09:44:25 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QcHXZ-00020Q-UD for grub-devel@gnu.org; Thu, 30 Jun 2011 09:44:23 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:47570) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QcHXZ-00020K-Fq for grub-devel@gnu.org; Thu, 30 Jun 2011 09:44:21 -0400 Received: by wyg36 with SMTP id 36so1919341wyg.0 for ; Thu, 30 Jun 2011 06:44:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type; bh=VejfYJzqJrvnj0dCAsX0jhAfH+0YQHsZUsWKcQ6hBgk=; b=pKH1S6N7w133vwfcZIiWRWG1rLk4naT+KCL2J6OXC9a+PE8PaK5u4a3/xhWxGlC5OO R1uLHfVNXNAiDmvZYLK+QKaSyzlCBg/N0sULH24ZZVAbj5XWSz1q87VQRU67YLMjYRoL S1rudNqmAvVvQm+WBZ3NG6LEiPe03hNCFohHs= Received: by 10.217.7.72 with SMTP id z50mr1732662wes.60.1309441460025; Thu, 30 Jun 2011 06:44:20 -0700 (PDT) Received: from debian.x201.phnet (145-1.62-81.cust.bluewin.ch [81.62.1.145]) by mx.google.com with ESMTPS id w58sm1147380weq.25.2011.06.30.06.44.17 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 30 Jun 2011 06:44:18 -0700 (PDT) Message-ID: <4E0C7DB0.1060503@gmail.com> Date: Thu, 30 Jun 2011 15:44:16 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110626 Iceowl/1.0b2 Icedove/3.1.11 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Re: Grub2 can not detect usb disk References: <4E030EF9.4060907@163.com> <4E034071.9040205@gmail.com> <4E03FD0C.2060400@163.com> <4E084A56.1030908@163.com> <4E084D04.4040001@gmail.com> <4E0855C6.8060704@viatech.com.cn> <4E085945.3010408@gmail.com> <4E092C1B.70906@viatech.com.cn> <4E095F02.9050504@gmail.com> <4E0994B7.4080408@viatech.com.cn> <4E099895.4060808@gmail.com> <4E09A6C7.5090205@163.com> <4E09B613.1020904@gmail.com> <4E0BE1A5.6060009@163.com> In-Reply-To: <4E0BE1A5.6060009@163.com> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig3E5ED6F4EC2DF19AE0C9CA57" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.169 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 30 Jun 2011 13:44:26 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig3E5ED6F4EC2DF19AE0C9CA57 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 : > =2Econfig from coreboot would be useful as well > /**********************************************************************= ***************************************/ > =3D=3D=3D modified file 'ChangeLog' > --- ChangeLog 2010-05-01 12:06:53 +0000 > +++ ChangeLog 2010-05-01 12:32:48 +0000 > @@ -1,5 +1,20 @@ > 2010-05-01 Vladimir Serbinenko > =20 > + 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 coreboo= t. > + > +2010-05-01 Vladimir Serbinenko > + > Split coreboot and multiboot ports. > =20 > * conf/i386-multiboot.rmk: New file. > > =3D=3D=3D modified file 'conf/i386-coreboot.rmk' > --- conf/i386-coreboot.rmk 2010-04-10 23:14:31 +0000 > +++ conf/i386-coreboot.rmk 2010-05-01 12:32:48 +0000 > @@ -10,7 +10,7 @@ > kernel_img_SOURCES =3D 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 \ > > =3D=3D=3D modified file 'include/grub/i386/coreboot/memory.h' > --- include/grub/i386/coreboot/memory.h 2008-11-20 20:30:24 +0000 > +++ include/grub/i386/coreboot/memory.h 2010-05-01 12:32:48 +0000 > @@ -44,8 +44,9 @@ > =20 > 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; > }; > > =3D=3D=3D modified file 'kern/i386/coreboot/init.c' > --- kern/i386/coreboot/init.c 2010-02-06 23:52:31 +0000 > +++ kern/i386/coreboot/init.c 2010-05-01 12:32:48 +0000 > @@ -117,7 +117,9 @@ > return 0; > } > =20 > +#ifdef GRUB_MACHINE_MULTIBOOT > grub_machine_mmap_init (); > +#endif > grub_machine_mmap_iterate (heap_init); > =20 > grub_tsc_init (); > > =3D=3D=3D modified file 'kern/i386/coreboot/mmap.c' > --- kern/i386/coreboot/mmap.c 2008-08-17 16:32:18 +0000 > +++ kern/i386/coreboot/mmap.c 2010-05-01 12:32:48 +0000 > @@ -57,13 +57,23 @@ > (long) table_header->size); > for (; table_item->size; > table_item =3D (grub_linuxbios_table_item_t) ((long) table_item= > + (long) table_item->size)) > - if (hook (table_item)) > - return 1; > + { > + if (table_item->tag =3D=3D GRUB_LINUXBIOS_MEMBER_LINK > + && check_signature ((grub_linuxbios_table_header_t) > (grub_addr_t) > + *(grub_uint64_t *) (table_item + 1))) > + { > + table_header =3D (grub_linuxbios_table_header_t) (grub_addr_t= ) > + *(grub_uint64_t *) (table_item + 1); > + goto signature_found; =20 > + } > + if (hook (table_item)) > + return 1; > + } > =20 > return 0; > } > =20 > -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; > > =3D=3D=3D modified file 'kern/i386/coreboot/startup.S' > --- kern/i386/coreboot/startup.S 2009-12-24 14:09:06 +0000 > +++ kern/i386/coreboot/startup.S 2010-05-01 12:32:48 +0000 > @@ -66,10 +66,12 @@ > .long -0x1BADB002 - MULTIBOOT_MEMORY_INFO > =20 > codestart: > +#ifdef GRUB_MACHINE_MULTIBOOT > cmpl $MULTIBOOT_BOOTLOADER_MAGIC, %eax > jne 0f > movl %ebx, EXT_C(startup_multiboot_info) > 0: > +#endif > =20 > /* initialize the stack */ > movl $GRUB_MEMORY_MACHINE_PROT_STACK, %esp > > /**********************************************************************= *************************************************/ > > I guess it may be because the file "kern/i386/coreboot/mmap.c", but it > has too much diffs with the multiboot_mmap.c > and I am not familiar with the mmap at all, so I don't know how to > found out the causes. > > Rock. > >> On 28.06.2011 12:02, Cui Lei wrote: >>> Sorry , I don't know what the meaning of the "bisect" and how to do? >>> Could you tell me some message in detail ? >> You take a revision which doesn't work (1.99rc2 =3D r3229) and a work= ing >> one (1.98 =3D r2249). Then you try a revision in the middle, e.g. r274= 9. >> If it works the error is in the range 2749..3229, otherwise in >> 2249..2749, then you try a revision inside this range and in 10 steps >> you'll have the exact revision which causes your problem. >>> Thanks a lot. >>> >>> BRs, >>> >>> Rock. >>> >>>> On 28.06.2011 10:45, Rock Cui wrote: >>>>> I had tried to use the grub1.99rc2 as a payload of coreboot at the >>>>> beginning, but it can not boot my machine, >>>> Could you try to bisect? Recent bzr worked fine in qemu+coreboot. Yo= ur >>>> machine may present some special aspect and bisect is probably the >>>> fastest way in your case. >>>>> so I changed to 1.98 >>>> As I said USB support in 1.98 wasn't good enough. Basically it worke= d >>>> only in qemu. >>>>> , then booting succeed. I want to insmod the uhci.mod and usbms.mod= to >>>>> support USB, >>>>> but they are not exit in my build folder. If I run "configure" with= >>>>> "--with-platform=3Dpc", they will be there, but >>>>> with "--with-platform=3Dcoreboot", I can not found them. I don't kn= ow >>>>> what should I do to get them for i386-coreboot, so I use the two >>>>> modules which were built with "--with-platform=3Dpc" in my payload.= elf. >>>> USB modules weren't enabled in 1.98 on coreboot. >>>>> Surprising, they can be insmoded and run in the grub-shell , but >>>>> unfortunately, I got those logs, they can not >>>>> work. >>>> it's already surprising they didn't crash GRUB altogether. >>>> >>>> >>>> >>>> _______________________________________________ >>>> Grub-devel mailing list >>>> Grub-devel@gnu.org >>>> https://lists.gnu.org/mailman/listinfo/grub-devel >>> _______________________________________________ >>> Grub-devel mailing list >>> Grub-devel@gnu.org >>> https://lists.gnu.org/mailman/listinfo/grub-devel >> >> >> _______________________________________________ >> Grub-devel mailing list >> Grub-devel@gnu.org >> https://lists.gnu.org/mailman/listinfo/grub-devel > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig3E5ED6F4EC2DF19AE0C9CA57 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iF4EAREKAAYFAk4MfbAACgkQNak7dOguQgmTPgD/XDI7lKPAdwy+lZ4/s/87M7oX CWUzMu+pF+liZUCrZikBAI614hoG5NcwXsV1l23cdToLKn2s3h/3SvPGRW0baLTU =0BHS -----END PGP SIGNATURE----- --------------enig3E5ED6F4EC2DF19AE0C9CA57--