Re: [Etherboot-developers] [COMMIT] 5.1.2+ boot from disk.
Brought to you by:
marty_connor,
stefanhajnoczi
|
From: Eric W B. <ebi...@ln...> - 2002-08-29 17:33:29
|
Michael Brown <mb...@fe...> writes: > On Fri, 30 Aug 2002, Ken Yap wrote: > > >Of course, "fixed it" in this context merely means "getting the correct > > >E820 map". It still locks up at "Loading 10.1.0.1:boot-8139too.nbi > > >...(NBI)" and requires a hard reset. :-( > > >Next set of ideas? > > I wager that this is now a relocation problem in the 8139 driver. Are you > > building with or without relocation? Have you got an I/O only NIC like > > the 3c509 or NE2000 you can try the latest fixes on first? > > Have been building with the default Config file, which doesn't define > -DRELOCATE. Which is half of it. The other part is not to build a compressed image. Only non-compressed images load at RELOCADDR. Compressed images load there, and then the decompressor moves them up in memory by a few bytes. > Can someone post a rough outline of what needs to be done to a driver in > order to make it work with 5.1.x? When building without -DRELOCATE, > should the old drivers work "as is"? To work with 5.1.x a driver needs to have the appropriate virt_to_bus, bus_to_virt, and ioremap calls added. The goal is to make the relocation overhead just what is needed for portability anyway. Etherboot retains a 1-1 mapping of virtual to physical address, but the mapping is no longer an identiy mapping. At some point the ioremap code may need to play with page tables, but at this point we don't need that. I only think we have one or two drivers that need ioreamp, and we need a helper function to give the size of a pci bar, before we convert those. But the rest of the driver should be straight forward. Eric |