From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Qd7QJ-0004tF-6t for mharc-grub-devel@gnu.org; Sat, 02 Jul 2011 17:08:19 -0400 Received: from eggs.gnu.org ([140.186.70.92]:44444) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qd7QF-0004sl-Pi for grub-devel@gnu.org; Sat, 02 Jul 2011 17:08:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qd7QD-00084c-UR for grub-devel@gnu.org; Sat, 02 Jul 2011 17:08:15 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:42546) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qd7QD-00084P-Ga for grub-devel@gnu.org; Sat, 02 Jul 2011 17:08:13 -0400 Received: by wyg36 with SMTP id 36so3445152wyg.0 for ; Sat, 02 Jul 2011 14:08:12 -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=N0Op2SVEYJUXDX1FyQlu8UM3yxwJTYai3q7kjJa/k6s=; b=BfQgqEaciYe5D78njmpdznNnQZGxxRNV1AYvB9iaNoZjOdXoh/C/vaMCRQH5yJqDcm 1uaF2tdJVT5mfA84siosC3luoezXXzdpZ5aX5I8JViov3XV3deFxYR0Jvm/AnYd1L466 klHBGBIJ6TMZHdHsH5FR6WQxVD/J9oeiYX1d4= Received: by 10.216.78.198 with SMTP id g48mr4387123wee.45.1309640892642; Sat, 02 Jul 2011 14:08:12 -0700 (PDT) Received: from debian.x201.phnet (128-176.62-81.cust.bluewin.ch [81.62.176.128]) by mx.google.com with ESMTPS id k84sm2221571weq.46.2011.07.02.14.08.09 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 02 Jul 2011 14:08:10 -0700 (PDT) Message-ID: <4E0F88B7.70405@gmail.com> Date: Sat, 02 Jul 2011 23:08:07 +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> <4E0C7D35.8070208@gmail.com> <4E0D3864.4030408@viatech.com.cn> <4E0D6FE3.3070601@viatech.com.cn> In-Reply-To: <4E0D6FE3.3070601@viatech.com.cn> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig49DF826EAC6FA46FAEFB319C" 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: Sat, 02 Jul 2011 21:08:17 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig49DF826EAC6FA46FAEFB319C Content-Type: multipart/mixed; boundary="------------070002060008020104080102" This is a multi-part message in MIME format. --------------070002060008020104080102 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 01.07.2011 08:57, Rock Cui wrote: > Sorry=EF=BC=8CI 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=3D/dev/mem of=3Dtables bs=3D1 count=3D65536 skip=3D2146422784 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=3Dmultiboot" 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 =E2=80=9CYou can not do it!=E2=80=9D : ( >> >> >>> On 30.06.2011 04:38, Cui Lei wrote: >>>> I have found the the last version which can boot my machine, it is >>>> the r2348. The r2349 can not boot it. >>>> So I checked out the changelog from 2348 to 2349 : >>>> >>> Ironically I did it because i386-coreboot didn't work in my tests. >>> Could >>> you send me the first 128K of /dev/mem ? Meanwhile you can try >>> i386-multiboot port. >>> >>> _______________________________________________ >>> Grub-devel mailing list >>> Grub-devel@gnu.org >>> https://lists.gnu.org/mailman/listinfo/grub-devel >> >> >> _______________________________________________ >> Grub-devel mailing list >> Grub-devel@gnu.org >> https://lists.gnu.org/mailman/listinfo/grub-devel >> > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------070002060008020104080102 Content-Type: text/x-diff; name="relink.diff" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="relink.diff" =3D=3D=3D modified file 'grub-core/kern/i386/coreboot/mmap.c' --- grub-core/kern/i386/coreboot/mmap.c 2010-09-04 15:10:10 +0000 +++ grub-core/kern/i386/coreboot/mmap.c 2011-07-02 21:03:42 +0000 @@ -27,6 +27,7 @@ { grub_linuxbios_table_header_t table_header; grub_linuxbios_table_item_t table_item; + int linked =3D 0; =20 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 =3D (grub_linuxbios_table_item_t) ((long) table_item += (long) table_item->size)) { - if (table_item->tag =3D=3D GRUB_LINUXBIOS_MEMBER_LINK + if (!linked && 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); + linked =3D 1; goto signature_found; =20 } if (hook (table_item)) --------------070002060008020104080102-- --------------enig49DF826EAC6FA46FAEFB319C 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/ iF4EAREKAAYFAk4PiLcACgkQNak7dOguQgmaKgEAoPNiV+bupjBKnd3LSovTJ/4Z 3zWbprWufZ+FHDTCO4IBAIn9BwkeeRy94uUxcFTBkSp7GAQq3dujNvifZzaYBHK3 =Q8eC -----END PGP SIGNATURE----- --------------enig49DF826EAC6FA46FAEFB319C--