From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1QM1Bc-0005JJ-Cb for mharc-grub-devel@gnu.org; Mon, 16 May 2011 13:02:28 -0400 Received: from eggs.gnu.org ([140.186.70.92]:39172) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QM1Ba-0005Io-PD for grub-devel@gnu.org; Mon, 16 May 2011 13:02:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QM1BW-0004jZ-H3 for grub-devel@gnu.org; Mon, 16 May 2011 13:02:26 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:54972) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QM1BT-0004iv-P4; Mon, 16 May 2011 13:02:19 -0400 Received: by wyf19 with SMTP id 19so4465066wyf.0 for ; Mon, 16 May 2011 10:02:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:x-enigmail-version:content-type; bh=6nJNBLakU6U/OG9/1nNF10kDnYy5PQTHzZsp9i95/a8=; b=u3cIPscNLrVJ9dLZQHikzUKLassQwuSpb+NjiPpDBdBWMmMor33aOVuX+ow7tf/Rkp pOsEYX+79/fa/59XUEJRbMGK3H6FfthWCy32BpDVIWj0jkR3aeasstt7ncbf1LgNfZ0U pSU3SBsEj4nQBfCCkt3TKJZvMhrAgn4u9X96c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type; b=PE+q5rEsz0GCroTvOk4OZhsQVnxsdvLbGsLlDyfpeItUUSXS0Dhq6jqMR3cFskbYUz ifq3ieRU4pvlM+h7qP2psEvNR94v9kc4RYA+1Ji4++Gd9zTGC8jrHeTGB1eKHS0L1X+v XC3gKURRjM2hKrA9BTtWQ5/qY+CyvJILoqVnw= Received: by 10.216.71.136 with SMTP id r8mr2641754wed.0.1305565337110; Mon, 16 May 2011 10:02:17 -0700 (PDT) Received: from debian.x201.phnet (gprs13.swisscom-mobile.ch [193.247.250.13]) by mx.google.com with ESMTPS id t58sm2664293weq.40.2011.05.16.10.02.14 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 16 May 2011 10:02:15 -0700 (PDT) Message-ID: <4DD15892.9060405@gmail.com> Date: Mon, 16 May 2011 19:02:10 +0200 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.15) Gecko/20110402 Iceowl/1.0b2 Icedove/3.1.9 MIME-Version: 1.0 To: Roman Mamedov Subject: Re: [loongson-dev] Fuloong liberated References: <4DD0EA8A.4080301@gmail.com> <20110516220523.77082d8a@natsu> In-Reply-To: <20110516220523.77082d8a@natsu> X-Enigmail-Version: 1.1.2 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig1E0FFEFE6A11F007EB986804" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 74.125.82.169 Cc: gnewsense-dev , The development of GRUB 2 , loongson-dev@googlegroups.com, rms / fsf sysadmin / fsf volunteers / lemote , Danny Clark 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: Mon, 16 May 2011 17:02:27 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1E0FFEFE6A11F007EB986804 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 16.05.2011 18:05, Roman Mamedov wrote: > On Mon, 16 May 2011 11:12:42 +0200 > Vladimir '=CF=86-coder/phcoder' Serbinenko wrote: > >> Hello all. As you all probably know the Floong as shipped by lemote us= es >> a 64K binary blob to initialize the video which makes it non-free. >> Fortunately now there is an alternative: GRUB2. > Hello, > > So you are replacing PMON with GRUB2, but are you sure the video BIOS i= s also > removed by this operation? I believe so. I couldn't find any other flash chip which could contain it. The video chip is soldered on the board and has no flash nearby. The Video BIOS I reverse engineered was recovered from pmon source tree. So I suppose it is eradicated. > And then, is it GRUB2 that initializes the video > chip instead of SiS BIOS, setting up VRAM timings, the video output, sc= reen > mode, etc? Does it actually have special code for bringing up the SiS 3= 15E? > Yes. It wasn't easy to figure out the right sequence to bring CR (controller) up. Currently the only supported resolution is 640x480x8 and the parameters are precomputed. While not the nicest resolution it should work with any monitor and is enough to show console (or menu). Linux is able to change to any mode afterwards. >> To generate firmware >> image do: >> bzr branch http://bzr.savannah.gnu.org/r/grub/trunk/grub >> cd grub >> ./configure --target=3Dmipsel --with-platform=3Dloongson >> make >> ./grub-mkimage -C xz -O mipsel-fuloong-flash -o grub.img -d grub-core/= >> normal linux ata usb_keyboard ohci part_msdos ext2 xfs part_gpt ls hal= t >> reboot usbms gzio > Can you perhaps post a compiled firmware somewhere. > Sorry but I'm on my way now and I don't have fuloong under my hand. I could post the latest image that worked for me but it has no support for compressed kernel (I didn't include gzio module) >> The resulting grub.img can be flashed using flashrom >> http://flashrom.org/Flashrom. Be sure to have backup chip before >> flashing. > Also I believe it should be possible to chain-load this image from PMON= for > testing, via the "load " command, and then "g". > Not this image. Image generated with -O mipsel-fuloong-flash has to be flashed (it can start only from ROM and at fixed address). To generate loadable image replace -O mipsel-fuloong-flash with -O mipsel-fuloong-elf. It will create an image which is the same as ROM image but in ELF format and without fwstart.S part. --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig1E0FFEFE6A11F007EB986804 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/ iF4EAREKAAYFAk3RWJIACgkQNak7dOguQgkG8QEApnInv2ZNMrIHYAlMkVOxp34V RA1wz9ZoJS+bg6B/LfgA/1slY7JWOu6WCbsXW71xstFR7KmEDJ/fer7Eg0ATeFi0 =7N/Q -----END PGP SIGNATURE----- --------------enig1E0FFEFE6A11F007EB986804--