From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Qlzo7-0006R6-4p for mharc-grub-devel@gnu.org; Wed, 27 Jul 2011 04:49:35 -0400 Received: from eggs.gnu.org ([140.186.70.92]:38686) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qlzo4-0006Pt-3Q for grub-devel@gnu.org; Wed, 27 Jul 2011 04:49:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qlzo2-0000nT-EV for grub-devel@gnu.org; Wed, 27 Jul 2011 04:49:32 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:49768) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qlzo2-0000nN-3f for grub-devel@gnu.org; Wed, 27 Jul 2011 04:49:30 -0400 Received: by wyg36 with SMTP id 36so1027164wyg.0 for ; Wed, 27 Jul 2011 01:49:29 -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=G4em9+aJHCxz7BGOfza5CXdK+/YcB8iEsCiX03syCF8=; b=ISuN3c3BBot+NFtC6EOkNBsEjS3RHg7TYXla84A5Pssh9MIhwkgMpaJvyUYr4nzIc8 He01AFM0QKbtc2rwpTsp9ww+feeqCTgps3IV/UDYuxOCt9CA1FxgIpQmKsxz+YGsAub4 oJiaNE8gNupBc39bZdE9ep0gxNCMfgm2bDpcA= Received: by 10.227.184.5 with SMTP id ci5mr5931325wbb.8.1311756569101; Wed, 27 Jul 2011 01:49:29 -0700 (PDT) Received: from [129.132.208.208] (vpn-global-dhcp1-208.ethz.ch [129.132.208.208]) by mx.google.com with ESMTPS id 20sm1132912wbw.53.2011.07.27.01.49.25 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 27 Jul 2011 01:49:26 -0700 (PDT) Message-ID: <4E2FD10D.1020809@gmail.com> Date: Wed, 27 Jul 2011 10:49:17 +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: <4E12B0B0.3020907@163.com> <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> <4E0F88B7.70405@gmail.com> <4E12B03E.3070007@163.com> <168b6705.14fc1.130ffc306f7.Coremail.neverforget_2002@163.com> <4E1C2BFA.7080300@163.com> <4E28094E.90608@gmail.com> <4E2FC81C.5060504@viatech.com.cn> In-Reply-To: <4E2FC81C.5060504@viatech.com.cn> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig1FE55693F704925085AB10ED" 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: Wed, 27 Jul 2011 08:49:33 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1FE55693F704925085AB10ED Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 27.07.2011 10:11, Rock Cui wrote: > The usb keyboard can not work. I have added the usb_keyboard.mod into > the image. In this case I'm sure that usb_keyboard works on both yeeloong and fuloong. I suspect the difference between David and me is that he uses pmon and I don't and when loaded from another bootloader rather than directly from flash GRUB skips some init routines which shouldn't be necessary in that case, including some CS5536 init. I just have not enough battery right now to make a test image. > I think if no ehci support, the usb device will run with full-speed or > low-speed, because of uhci/ohci support. > Keyboard is always in low-speed mode. >> On 12.07.2011 13:11, Cui Lei wrote: >>> Hi Vladimir, I have not received you reply for some days. I think you= must be very busy, so I did some works on my own way. >>> I tested dozens of versions between r2249 and r3229. I found that mos= t of them can boot my machine with "--with-platform=3Dmultiboot" option r= ather than "--with-platform=3Dcoreboot" option. The latest one I used is = r3200, I think it should=20 >>> support usb device nicely. I added usb.mod uhci.mod usbms.mod usbtest= =2Emod 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 boo= ting into the grub shell( grub> ), I get these message: >>> >>> /********************************************************************= *************/ >>> grub> bus/usb/usbhub.c:208: total=3D250 >>> >>> bus/usb/usbtrans.c:93: control: reqtype=3D0x80 req=3D0x06 val=3D0x10= 0 idx=3D0x00 >>> >>> size=3D8 >>> >>> bus/usb/usbtrans.c:120: control: transfer =3D 0x7fe4cec0, dev =3D 0x= 7fe36ea0 >>> >>> bus/usb/usbtrans.c:187: control: err=3D7 >> It looks like GRUB has seen the device but no real data was transfered= =2E >> Could you try with low-speed device? E.g. keyboard. I think you may ne= ed >> ehci driver (Ale=C5=A1 recently coded one) >>> /********************************************************************= ***********************************/ >>> >>> I looked at the source code and found err7 is time out error, I don't= >>> know how to fix it. >>> I need your help and anyone's advices. It is long time I have spended= >>> on this project. So look forward to your replay. >>> Thank you in advance. >>> >>> BRs, >>> >>> Rock. >>> >>> >>> >>>> I have read the source code about the mmap of grub and of corebootV4= , >>>> I found that the size of their table header struct are not same, and= >>>> I think ,in the file "mmap.c" of grub2,on the 53rd line, the offset >>>> of the first table item may be error. >>>> >>>> BRs, >>>> Rock. >>>> >>>> At 2011-07-05 14:35:28=EF=BC=8C"Cui Lei" = wrote: >>>> >>>> I think the "skip=3D2146422784" 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=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=3D= 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=3Dmultiboot" option, bu= t 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 shoul= d be from >>>>>>>> the "/" , then I must enter the ubuntu. >>>>>>>> So I use the grub1.98 as coreboot payload and boot my ubuntu= 11.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 machin= e, it is >>>>>>>>>> the r2348. The r2349 can not boot it. >>>>>>>>>> So I checked out the changelog from 2348 to 2349 : >>>>>>>>>> >>>>>>>>> Ironically I did it because i386-coreboot didn't work in my= tests. >>>>>>>>> Could >>>>>>>>> you send me the first 128K of /dev/mem ? Meanwhile you can = try >>>>>>>>> i386-multiboot port. >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> Grub-devel mailing list >>>>>>>>> Grub-devel@gnu.org >>>>>>>>> https://lists.gnu.org/mailman/listinfo/grub-devel >>>>>>>> _______________________________________________ >>>>>>>> Grub-devel mailing list >>>>>>>> Grub-devel@gnu.org >>>>>>>> https://lists.gnu.org/mailman/listinfo/grub-devel >>>>>>>> >>>>>>> _______________________________________________ >>>>>>> Grub-devel mailing list >>>>>>> Grub-devel@gnu.org >>>>>>> https://lists.gnu.org/mailman/listinfo/grub-devel >>>>>> _______________________________________________ >>>>>> Grub-devel mailing list >>>>>> Grub-devel@gnu.org >>>>>> https://lists.gnu.org/mailman/listinfo/grub-devel >>>> >>> _______________________________________________ >>> Grub-devel mailing list >>> Grub-devel@gnu.org >>> https://lists.gnu.org/mailman/listinfo/grub-devel >> >> >> _______________________________________________ >> Grub-devel mailing list >> Grub-devel@gnu.org >> https://lists.gnu.org/mailman/listinfo/grub-devel > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > https://lists.gnu.org/mailman/listinfo/grub-devel --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig1FE55693F704925085AB10ED 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/ iF4EAREKAAYFAk4v0RQACgkQNak7dOguQglQIwD/fdvwDsifQlsZFXBKoYpwPv5j JWrTqUEBWAdaIi0d5S4BAIPbg88MPq6qinV/3zniwAhDvBCfMiL4seyLyooWCZsV =z24H -----END PGP SIGNATURE----- --------------enig1FE55693F704925085AB10ED--