* Fuloong liberated
@ 2011-05-16 9:12 Vladimir 'φ-coder/phcoder' Serbinenko
2011-05-16 16:05 ` [loongson-dev] " Roman Mamedov
` (2 more replies)
0 siblings, 3 replies; 5+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-05-16 9:12 UTC (permalink / raw)
To: gnewsense-dev, rms / fsf sysadmin / fsf volunteers / lemote,
loongson-dev, The development of GRUB 2, Danny Clark
[-- Attachment #1: Type: text/plain, Size: 1094 bytes --]
Hello all. As you all probably know the Floong as shipped by lemote uses
a 64K binary blob to initialize the video which makes it non-free.
Fortunately now there is an alternative: GRUB2. To generate firmware
image do:
bzr branch http://bzr.savannah.gnu.org/r/grub/trunk/grub
cd grub
./configure --target=mipsel --with-platform=loongson
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 halt
reboot usbms gzio
The resulting grub.img can be flashed using flashrom
http://flashrom.org/Flashrom. Be sure to have backup chip before
flashing. Fortunately the chip is socketed so you can easily replace it.
Although the image such created worked fine for me, it wasn't tested
enough yet so have a backup chip and please, report if you encounter any
problems.
Have fun
@Danny, @Lemote: is anybody interested in distributing Fuloongs with GRUB
@FSF, rms: if anybody distributes Fuloong this way can it be endorsed by
FSF?
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [loongson-dev] Fuloong liberated
2011-05-16 9:12 Fuloong liberated Vladimir 'φ-coder/phcoder' Serbinenko
@ 2011-05-16 16:05 ` Roman Mamedov
2011-05-16 17:02 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-05-16 17:36 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-05-16 19:45 ` Vladimir 'φ-coder/phcoder' Serbinenko
2 siblings, 1 reply; 5+ messages in thread
From: Roman Mamedov @ 2011-05-16 16:05 UTC (permalink / raw)
To: loongson-dev
Cc: gnewsense-dev, phcoder, Danny Clark,
rms / fsf sysadmin / fsf volunteers / lemote,
The development of GRUB 2
[-- Attachment #1: Type: text/plain, Size: 1329 bytes --]
On Mon, 16 May 2011 11:12:42 +0200
Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com> wrote:
> Hello all. As you all probably know the Floong as shipped by lemote uses
> 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 is also
removed by this operation? And then, is it GRUB2 that initializes the video
chip instead of SiS BIOS, setting up VRAM timings, the video output, screen
mode, etc? Does it actually have special code for bringing up the SiS 315E?
> To generate firmware
> image do:
> bzr branch http://bzr.savannah.gnu.org/r/grub/trunk/grub
> cd grub
> ./configure --target=mipsel --with-platform=loongson
> 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 halt
> reboot usbms gzio
Can you perhaps post a compiled firmware somewhere.
> 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 <filename>" command, and then "g".
--
With respect,
Roman
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [loongson-dev] Fuloong liberated
2011-05-16 16:05 ` [loongson-dev] " Roman Mamedov
@ 2011-05-16 17:02 ` Vladimir 'φ-coder/phcoder' Serbinenko
0 siblings, 0 replies; 5+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-05-16 17:02 UTC (permalink / raw)
To: Roman Mamedov
Cc: gnewsense-dev, The development of GRUB 2, loongson-dev,
rms / fsf sysadmin / fsf volunteers / lemote, Danny Clark
[-- Attachment #1: Type: text/plain, Size: 2540 bytes --]
On 16.05.2011 18:05, Roman Mamedov wrote:
> On Mon, 16 May 2011 11:12:42 +0200
> Vladimir 'φ-coder/phcoder' Serbinenko <phcoder@gmail.com> wrote:
>
>> Hello all. As you all probably know the Floong as shipped by lemote uses
>> 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 is 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, screen
> mode, etc? Does it actually have special code for bringing up the SiS 315E?
>
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=mipsel --with-platform=loongson
>> 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 halt
>> 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 <filename>" 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.
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Fuloong liberated
2011-05-16 9:12 Fuloong liberated Vladimir 'φ-coder/phcoder' Serbinenko
2011-05-16 16:05 ` [loongson-dev] " Roman Mamedov
@ 2011-05-16 17:36 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-05-16 19:45 ` Vladimir 'φ-coder/phcoder' Serbinenko
2 siblings, 0 replies; 5+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-05-16 17:36 UTC (permalink / raw)
To: gnewsense-dev, rms / fsf sysadmin / fsf volunteers / lemote,
loongson-dev, The development of GRUB 2, Danny Clark
[-- Attachment #1: Type: text/plain, Size: 594 bytes --]
> Be sure to have backup chip before
> flashing.
I really mean it. Failed flashing or failed image (since as of now there
is no release with fuloong support, so you have to use development
branch). Compatible chip is SST-39VF040. You can get them from Mouser
(USA) or Distrelec (Switzerland). I don't know about other countries.
Flashrom.org has instructions on how to do so called hot-swap flashing
which is the easiest way to create backup chip (also the way I used to
develop this piece of software in the first place).
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Fuloong liberated
2011-05-16 9:12 Fuloong liberated Vladimir 'φ-coder/phcoder' Serbinenko
2011-05-16 16:05 ` [loongson-dev] " Roman Mamedov
2011-05-16 17:36 ` Vladimir 'φ-coder/phcoder' Serbinenko
@ 2011-05-16 19:45 ` Vladimir 'φ-coder/phcoder' Serbinenko
2 siblings, 0 replies; 5+ messages in thread
From: Vladimir 'φ-coder/phcoder' Serbinenko @ 2011-05-16 19:45 UTC (permalink / raw)
To: gnewsense-dev, rms / fsf sysadmin / fsf volunteers / lemote,
loongson-dev, The development of GRUB 2, Danny Clark
[-- Attachment #1: Type: text/plain, Size: 1720 bytes --]
On 16.05.2011 11:12, Vladimir 'φ-coder/phcoder' Serbinenko wrote:
> Hello all. As you all probably know the Floong as shipped by lemote uses
> a 64K binary blob to initialize the video which makes it non-free.
> Fortunately now there is an alternative: GRUB2. To generate firmware
> image do:
> bzr branch http://bzr.savannah.gnu.org/r/grub/trunk/grub
> cd grub
> ./configure --target=mipsel --with-platform=loongson
> 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 halt
> reboot usbms gzio
This selection gives you a shell. On more ideas how to customize it a
page about our Coreboot port is handy (many parts are similar with some
adjustments, I'll write manual entry later):
http://74.6.238.254/search/srpcache?ei=UTF-8&p=http%3A%2F%2Fgrub.enbug.org%2FCoreBoot&u=http://cc.bingj.com/cache.aspx?q=http%3a%2f%2fgrub.enbug.org%2fCoreBoot&d=4866528855460123&mkt=en-US&setlang=en-US&w=2a582f22,ed203179&icp=1&.intl=us&sig=I2yqDI7Mj.pG4UxQZUE_PA--
(our server is down, it's link to a cached version)
> The resulting grub.img can be flashed using flashrom
> http://flashrom.org/Flashrom. Be sure to have backup chip before
> flashing. Fortunately the chip is socketed so you can easily replace it.
> Although the image such created worked fine for me, it wasn't tested
> enough yet so have a backup chip and please, report if you encounter any
> problems.
>
> Have fun
>
> @Danny, @Lemote: is anybody interested in distributing Fuloongs with GRUB
> @FSF, rms: if anybody distributes Fuloong this way can it be endorsed by
> FSF?
>
--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 294 bytes --]
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-05-16 19:46 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-16 9:12 Fuloong liberated Vladimir 'φ-coder/phcoder' Serbinenko
2011-05-16 16:05 ` [loongson-dev] " Roman Mamedov
2011-05-16 17:02 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-05-16 17:36 ` Vladimir 'φ-coder/phcoder' Serbinenko
2011-05-16 19:45 ` Vladimir 'φ-coder/phcoder' Serbinenko
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.