[LinuxBIOS] questions about VSA on Gx2 plus cs5535??
lihao at mprc.pku.edu.cn
Wed Feb 7 13:24:59 CET 2007
Thanks for replying my question.
> All you need in VSA is vsainit and sysmanager (if you don't need graphics
I need graphics support. I also have an ATI card, so I think I have two graphics
card, one on board while another addon.
> In which particular order those init things must happen - look at
> Geode GX/LX examples in LB tree (our is artecrgoup).
I do not quite understand what you mean by _particular oder_, you mean
First loading VSA, and then doing other things like graphic initialize??
Also I found artecrgoup use Lx and Cs5536, which is not too much different
from what I am using(gx2 and cs5535, and olpc/rev_a as my porting start) I think. I check the function pci_domain_enable() in src/northbridge/amd/lx/northbridge.c, I do think the code here is more clearly than the code in _gx_, but the order is almost the same.
Maybe I misunderstand you; could you give me some explanation?
I have a 512k flash rom, and I reserve 128k for vsa, 64k for vga, and 128k for payload, the left is for linuxbios.rom.
Now the code runs at device enumeration, and calls XXX_enable function of each
device. When it comes to vga, it calls vsa to handle this. And then vsa is loaded successfully. After that, cpu generates exception 13, which is general protection.
I got so confused and don’t know what causes that. Anyone meets this kind of problem before?? Any advice would be well appreciated.
发件人: Indrek Kruusa [mailto:indrek.kruusa at artecdesign.ee]
发送时间: 2007年2月7日 17:56
主题: Re: 答复: [LinuxBIOS] questions about VSA on Gx2 plus cs5535??
Ühel kenal päeval (kolmapäev 07 veebruar 2007 4:23 am) kirjutasid sa:
> The VSA is definitely loaded okay, I have checked the signature of it.
> At first, my VSA image is not compressed, but the code in LinuxBIOS calls
> Unrv2b() function to uncompress the VSA image.
> After I found this, I use nrv2b to compress the image and it is okay to
> jump into VSA's code.
> By the way, there are some codes which are commented out in loading VSA is
> totally for uncompressed VSA image(simply memory copy).
> I didn’t build VGA bios in my image, may this be the reason why it didn’t
> pass pci_sanity_check functions??
No - you can stay completely without VGA ROM and LB works.
All you need in VSA is vsainit and sysmanager (if you don't need graphics
support). In which particular order those init things must happen - look at
Geode GX/LX examples in LB tree (our is artecrgoup).
> 发件人: Indrek Kruusa [mailto:indrek.kruusa at artecdesign.ee]
> 发送时间: 2007年2月6日 23:15
> 收件人: lihao
> 抄送: linuxbios at linuxbios.org
> 主题: Re: [LinuxBIOS] questions about VSA on Gx2 plus cs5535??
> Ühel kenal päeval (teisipäev 06 veebruar 2007 12:37 am) kirjutas lihao:
> > Hi all,
> > I have made the codes run into the vsmbios. And it hangs on
> > pci_sanity_check(). Anyone has the same problems?
> Can you check that the signature of the loaded VSA is correct (e.g. by
> printing it out)?
> Do you have VSA nrv2b compressed or not?
> > I have 2 questions:
> > 1) I have downloaded VSA code, and VSA implements a softVG, do I
> > need to make a VGABIOS myself from linux?
> > 2) If I need a VGABIOS, where should I put it in the image??
> > Thanks, any advice would be well appreciated.
> > _____
> > 发件人: lihao [mailto:lihao at mprc.pku.edu.cn]
> > 发送时间: 2007年2月6日 3:13
> > 收件人: 'linuxbios at linuxbios.org'
> > 主题: questions about VSA on Gx2 plus cs5535??
> > Hi all,
> > I am running LinuxBIOS on gx2 and cs5535 platform. Now the code
> > begins to enumerate devices in northbridge.
> > And the code hangs just after prints out _do_vsmbios_.
> > I find the next function called close to that print is
> > _unrv2b((uint8 *)rom, buffer, &ileg)_, and it seems that cpu is in dead
> > loop.
> > I am thinking that maybe my linuxbios image is not correctly built. The
> > step I build image is divided into 2:
> > Firstly, I build out a _linuxbios.rom_ image;
> > Secondly, I use _buildrom_ tool from util directory to build
> > vsa2.bin and linuxbios.rom together out as the final image.
> > My flash is 512KB, so I put vsa2.bin at 0xfff80000, and
> > linuxbios.rom at another side of flash.
> > Is my step correct??
> > By the way, after I built out vsa image, it generates some other
> > images, which one should I choose? Including: vsa2.bin, olpcXXX.bin, some
> > vsms and so on….
> > Any advice would be well appreciated.
More information about the coreboot