ChangeLog 330 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274
  1. 2011-09-26 Colin Watson <cjwatson@ubuntu.com>
  2. * configure.ac: Build stage2 with -fno-reorder-functions to prevent
  3. unlikely-to-be-executed functions being reordered before _start with
  4. GCC 4.6.
  5. Fixes Ubuntu bug #837815.
  6. 2010-01-25 Robert Millan <rmh.grub@aybabtu.com>
  7. * stage2/imgact_aout.h: Rewrite using aout.h from GRUB 1.97.2 as
  8. a base.
  9. * stage2/boot.c (load_image): Remove a.out handler for *BSD kernels.
  10. 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
  11. * configure.ac: Remove `--enable-example-kernel' option.
  12. * docs/Makefile.am
  13. * docs/grub.texi: Remove referenced to `mbchk'.
  14. * docs/boot.S: Remove. Update all users.
  15. * docs/boot.S.texi: Likewise.
  16. * docs/kernel.c: Likewise.
  17. * docs/kernel.c.texi: Likewise.
  18. * docs/mbchk.1: Likewise.
  19. * docs/multiboot.h: Likewise.
  20. * docs/multiboot.h.texi: Likewise.
  21. * docs/multiboot.texi: Likewise.
  22. * util/mbchk.c: Likewise.
  23. 2010-01-21 Robert Millan <rmh@aybabtu.com>
  24. * autogen.sh: New file.
  25. * INSTALL: Remove from version control.
  26. * Makefile.in: Likewise.
  27. * aclocal.m4: Likewise.
  28. * config.guess: Likewise.
  29. * config.sub: Likewise.
  30. * configure: Likewise.
  31. * depcomp: Likewise.
  32. * docs/Makefile.in: Likewise.
  33. * docs/mdate-sh: Likewise.
  34. * docs/texinfo.tex: Likewise.
  35. * grub/Makefile.in: Likewise.
  36. * install-sh: Likewise.
  37. * lib/Makefile.in: Likewise.
  38. * missing: Likewise.
  39. * mkinstalldirs: Likewise.
  40. * netboot/Makefile.in: Likewise.
  41. * stage1/Makefile.in: Likewise.
  42. * stage2/Makefile.in: Likewise.
  43. * util/Makefile.in: Likewise.
  44. 2010-01-21 Robert Millan <rmh@aybabtu.com>
  45. * configure.ac: Add AM_PROG_AS (to fix automake generation).
  46. 2009-12-07 Richard Hartmann <richih.mailinglist@gmail.com>
  47. * stage2/builtins.c (builtin_halt): Fix typo.
  48. (builtin_password): Likewise.
  49. 2009-07-02 Pavel Roskin <proski@gnu.org>
  50. * docs/boot.S: Fix missing newline at the end.
  51. * docs/boot.S.texi: Regenerate.
  52. 2008-09-03 Felix Zielcke <fzielcke@z-51.de>
  53. Based on patch from Ville Skyttä <ville.skytta@iki.fi>
  54. * docs/multiboot.texi: Fix some spelling.
  55. * docs/internals.texi: Likewise.
  56. * docs/grub.texi: Likewise.
  57. 2008-05-20 Robert Millan <rmh@aybabtu.com>
  58. * netboot/cs89x0.c: Fix license violation.
  59. * netboot/cs89x0.h: Likewise.
  60. 2008-04-10 Pavel Roskin <proski@gnu.org>
  61. * configure.ac: Always use "_cv_" in cache variables for
  62. compatibility with Autoconf 2.62.
  63. 2008-03-28 Robert Millan <rmh@aybabtu.com>
  64. Surpass 1 TiB disk addressing limit. Note: there are no plans to handle
  65. the 2 TiB disk limit in GRUB Legacy, since that would need considerable
  66. rework. If you have >2TiB disks, use GRUB 2 instead.
  67. * grub/asmstub.c (biosdisk): Add unsigned qualifier to `sector'.
  68. * stage2/bios.c (biosdisk): Likewise.
  69. * stage2/disk_io.c (rawread, devread, rawwrite, devwrite): Likewise.
  70. * stage2/shared.h (rawread, devread, rawwrite, devwrite): Likewise.
  71. * lib/device.c (get_drive_geometry): Replace BLKGETSIZE with
  72. BLKGETSIZE64.
  73. 2007-10-29 Pavel Roskin <proski@gnu.org>
  74. * configure.ac: Test if '--build-id=none' is supported by the
  75. linker and add it to LDFLAGS if possible. Build ID causes
  76. objcopy to generate huge binary files.
  77. * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
  78. linking, so that build ID doesn't break the test.
  79. * stage1/Makefile.am: Preserve LDFLAGS, use stage1_exec_LDFLAGS.
  80. 2007-02-22 Pavel Roskin <proski@gnu.org>
  81. * stage2/iso9660.h: Remove unnecessary packed attributes.
  82. 2007-02-22 Robert Millan <rmh@aybabtu.com>
  83. * util/mkbimage: Update my email address, and remove my name from
  84. some places where unnecessary credit is given.
  85. 2006-09-10 Pavel Roskin <proski@gnu.org>
  86. * netboot/natsemi.c: Fix compile error with gcc 4.1.1. Cast
  87. cannot make a variable volatile - it should be declared as such.
  88. * netboot/sis900.c: Likewise.
  89. 2006-09-08 Pavel Roskin <proski@gnu.org>
  90. * netboot/etherboot.h: Remove incorrect extern declarations of
  91. the variables later declared static. Move BOOTP_DATA_ADDR ...
  92. * netboot/main.c: ... here. Eliminate end_of_rfc1533 - it's
  93. write-only.
  94. 2006-06-24 Yoshinori K. Okuji <okuji@enbug.org>
  95. * docs/grub.texi: Changed the license term to the GNU Free
  96. Documentation License 1.2.
  97. * docs/multiboot.texi: Reformatted to show the license term
  98. and the version number explicitly.
  99. * docs/fdl.texi: New file.
  100. * docs/Makefile.am (grub_TEXINFOS): Added fdl.texi.
  101. 2006-06-24 Robert Millan <robertmh@gnu.org>
  102. * lib/device.c (write_to_partition): /dev/ataraid/ and /dev/rd/
  103. partitions have a "p" prefix. Add it.
  104. 2006-06-24 Robert Millan <robertmh@gnu.org>
  105. * lib/device.c (get_i2o_disk_name): New function.
  106. (init_device_map) [__linux__]: Add support for I2O devices.
  107. 2006-05-02 Pavel Roskin <proski@gnu.org>
  108. * stage2/stage2.c (run_menu): Fix "savedefault" to save only top
  109. level menu positions. Remember current position when calling a
  110. submenu. Don't recalculate it when booting from a submenu.
  111. * grub/main.c (main): Make sure the boot drive number doesn't
  112. exceed 255.
  113. 2006-05-02 Vesa Jaaskelainen <chaac@nic.fi>
  114. * stage2/shared.h (vbe_mode): Back ported aligment fix from GRUB 2
  115. to GRUB Legacy. Problem reported by Gerardo Richarte.
  116. 2006-04-23 Robert Millan <robertmh@gnu.org>
  117. * grub/asmstub.c (get_diskinfo): Optimize sysctl routine.
  118. 2006-04-20 Robert Millan <robertmh@gnu.org>
  119. Fixes for kernel of FreeBSD:
  120. * grub/asmstub.c (get_diskinfo): Toggle "kern.geom.debugflags" sysctl
  121. before opening a device for writing.
  122. * util/grub-install.in: Devices don't have this "r" prefix anymore.
  123. 2006-04-16 Yoshinori K. Okuji <okuji@enbug.org>
  124. * docs/multiboot.texi: Correct the offset of address
  125. fields. Reported by Jeroen Dekkers.
  126. 2006-03-21 Yoshinori K. Okuji <okuji@enbug.org>
  127. * stage2/builtins.c (setup_func): Specify the size of DEVICE to
  128. grub_strncat instead of a strange number 256. Reported by Vitaly
  129. Fertman <vitaly@namesys.com>.
  130. 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
  131. * docs/multiboot.texi: Fix a bug in the byte order of
  132. boot_device. I hope this won't affect any OS image.
  133. Increased the version number to 0.6.94.
  134. 2005-09-28 Yoshinori K. Okuji <okuji@enbug.org>
  135. * stage2/boot.c (load_image): Even if an OS image is an ELF
  136. object, use the a.out kludge if MULTIBOOT_AOUT_KLUDGE is
  137. specified.
  138. 2005-05-08 Yoshinori K. Okuji <okuji@enbug.org>
  139. * configure.ac (AC_INIT): Upgraded to 0.97.
  140. * compile: Copied from Automake 1.9.4.
  141. * config.guess: Likewise.
  142. * config.sub: Likewise.
  143. * depcomp: Likewise.
  144. * install-sh: Likewise.
  145. * missing: Likewise.
  146. * mkinstalldirs: Likewise.
  147. * mdate-sh: Likewise.
  148. * docs/texinfo.tex: Likewise.
  149. 2005-05-08 Yoshinori K. Okuji <okuji@enbug.org>
  150. * stage2/fsys_xfs.c (next_dentry): Use arrays of arrays instead of
  151. arrays of pointers for USUAL, to avoid read-only strings. Reported
  152. by Sven Wegener <swegener@gentoo.org>.
  153. 2005-03-28 Yoshinori K. Okuji <okuji@enbug.org>
  154. * lib/device.c (get_drive_geometry): Use ST.ST_SIZE instead of
  155. ST.ST_BLOCKS to get the total number of sectors, because st_blocks
  156. is not the same if it is a sparse file.
  157. 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
  158. * stage2/stage2.c (cmain): Initialize DEFAULT_FILE to an empty
  159. string. Reported by NATORI Shin <natori@adm.s.u-tokyo.ac.jp>.
  160. 2005-03-15 Yoshinori K. Okuji <okuji@enbug.org>
  161. * stage2/fsys_fat.c (fat_mount): Ignore the 3rd bit of a media
  162. descriptor, because some BIOSes overwrite this value, according
  163. to the storage mode (e.g. USB Floppy or USB HDD).
  164. 2005-02-16 Yoshinori K. Okuji <okuji@enbug.org>
  165. * grub/asmstub.c (grub_stage2): Remove the attribute `volatile'
  166. from doit. I hope this change is safe for all compilers.
  167. 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
  168. * stage2/builtins.c (install_func): If DEST_DRIVE is a hard
  169. disk, enable the workaround in Stage 1 by replacing the jmp
  170. with double nop's.
  171. * stage1/stage1.h (STAGE1_BOOT_DRIVE_CHECK): New macro.
  172. (STAGE1_BOOT_DRIVE_MASK): Removed.
  173. * stage1/stage1.S (boot_drive_check): New label. This implements
  174. a different workaround for buggy BIOSes which don't pass boot
  175. drive correctly. This is effective for BIOSes which pass a value
  176. without the seventh bit (0x80).
  177. (boot_drive_mask): Removed.
  178. 2005-02-03 Yoshinori K. Okuji <okuji@enbug.org>
  179. * grub/asmstub.c (console_current_color): Make it global as
  180. declared.
  181. (grub_stage2): Tweak the declaration and the definition of the
  182. nested function doit.
  183. 2005-02-02 Yoshinori K. Okuji <okuji@enbug.org>
  184. * stage2/smp-imps.h (imps_any_new_apics): Removed.
  185. (imps_enabled): Likewise.
  186. (imps_lapic_addr): Likewise.
  187. (imps_num_cpus): Likewise.
  188. (imps_cpu_apic_map): Likewise.
  189. (imps_apic_cpu_map): Likewise.
  190. * stage2/Makefile.am (libgrub_a_CFLAGS): Remove
  191. -fwritable-strings. Not required for the grub shell actually.
  192. * grub/Makefile.am (AM_CFLAGS): Likewise.
  193. 2005-02-01 Yoshinori K. Okuji <okuji@enbug.org>
  194. * grub/asmstub.c (grub_stage2): Use auto instead of static for
  195. nested functions.
  196. * stage2/char_io.c (memcheck) [GRUB_UTIL]: Likewise.
  197. * stage2/builtins.c (blocklist_func): Likewise.
  198. (color_func): Likewise.
  199. (install_func): Likewise.
  200. (setkey_func): Likewise.
  201. * lib/device.c (read_device_map): Likewise.
  202. 2005-01-30 Yoshinori K. Okuji <okuji@enbug.org>
  203. * configure.ac (AC_INIT): Upgraded to 0.96.
  204. 2004-10-11 Jason Thomas <jason@staff.pnc.com.au>
  205. Patch from Stefanus Du Toit <sjdutoit@uwaterloo.ca>
  206. * docs/kernel.c.texi (cmain): Incremement mod by one, instead of
  207. sizeof(module_t), since it's already a pointer of type module_t.
  208. * docs/kernel.c (cmain): Do the same.
  209. 2004-09-20 Yoshinori K. Okuji <okuji@enbug.org>
  210. * docs/internals.texi (Internals): Changed to an appendix.
  211. * docs/grub.texi (@setchapternewpage): Changed to odd from off.
  212. (@contents): Moved to the beginning.
  213. (Future): Changed to an appendix.
  214. 2004-08-17 Yoshinori K. Okuji <okuji@enbug.org>
  215. * stage2/cmdline.c (run_script): Fix a reversed conditional.
  216. Reported by Alban Crequy <alban.crequy@apinc.org>.
  217. 2004-08-07 Jason Thomas <jason@staff.pnc.com.au>
  218. From Michael Hohnbaum <hohnbaum@us.ibm.com>:
  219. * stage2/fsys_ext2fs.c (ext2fs_read): Handle sparse files.
  220. 2004-07-24 Yoshinori K. Okuji <okuji@enbug.org>
  221. * stage2/stage2.c (cmain): Terminate DEFAULT_FILE with NUL
  222. correctly. Reported by Alban Crequy <alban.crequy@apinc.org>.
  223. 2004-07-21 Robert Millan <robertmh@gnu.org>
  224. Patch from David Weinehall <tao@debian.org>
  225. * util/mkbimage: Fix XSI-isms (for supporting POSIX-only shells).
  226. 2004-07-20 Robert Millan <robertmh@gnu.org>
  227. * util/grub-install.in: Detect GNU/k*BSD systems as well.
  228. 2004-07-16 Yoshinori K. Okuji <okuji@enbug.org>
  229. * util/grub-install.in (convert): Fix the sed statement for
  230. Linux. The expression was ambigious in some cases.
  231. 2004-06-29 Robert Millan <robertmh@gnu.org>
  232. * util/grub-set-default.in: Fix minor syntax error (non-escaped
  233. characters).
  234. 2004-06-24 Robert Millan <robertmh@gnu.org>
  235. Fixes for FHS compliance. (/usr/share is for arch-independant data)
  236. * stage1/Makefile.am: Move stage files to pkglibdir.
  237. * stage2/Makefile.am: Likewise.
  238. * docs/grub.texi: s,/usr/share,/usr/lib,g.
  239. * util/grub-image.in: Look for stage files in pkglibdir.
  240. * util/grub-install.in: Likewise.
  241. * util/grub-install.in: Improve usage message.
  242. 2004-06-20 Yoshinori K. Okuji <okuji@enbug.org>
  243. This is a big change on saving a default entry. This change
  244. makes it possible to set up a quite robust system using GRUB.
  245. Now we do not use the second sector of Stage 2 to store an
  246. entry number but use the file /boot/grub/default. This file
  247. must be generated by grub-set-default, although this file is
  248. plain-text.
  249. * util/grub-set-default.in: New file.
  250. * util/grub-install.in (grub_set_default): New variable.
  251. Use /grub instead of /boot/grub on OpenBSD as well as NetBSD.
  252. Run grub-set-default to make a default file.
  253. * util/Makefile.am (sbin_SCRIPTS): Added grub-set-default.
  254. * stage2/stage2.c (run_menu): Change the fallback handling to
  255. support multiple fallback entries.
  256. (cmain): Likewise. Also, get a saved entry from a default file
  257. if possible, before reading a config file.
  258. * stage2/shared.h (DEFAULT_FILE_BUF): New macro.
  259. (DEFAULT_FILE_BUFLEN): Likewise.
  260. (CMDLINE_BUF): Set to DEFAULT_FILE_BUF + DEFAULT_FILE_BUFLEN.
  261. (MENU_BUFLEN): Set to 0x8000 + PASSWORD_BUF - MENU_BUF.
  262. (fallback_entry): Removed.
  263. (fallback_entries): Declared.
  264. (fallback_entryno): Likewise.
  265. (MAX_FALLBACK_ENTRIES): New macro.
  266. * stage2/cmdline.c (run_script): Use FALLBACK_ENTRYNO instead of
  267. FALLBACK_ENTRY.
  268. * stage2/builtins.c (fallback_entry): Removed.
  269. (fallback_entryno): New variable.
  270. (fallback_entries): Likewise.
  271. (init_config): Initialize FALLBACK_ENTRYNO and FALLBACK_ENTRIES.
  272. (fallback_func): Rewritten completely.
  273. (savedefault_func): Likewise.
  274. * docs/grub.texi (grub-set-default): New direntry.
  275. (Installation): Describe grub-set-default for manual
  276. installations.
  277. (Making your system robust): New section.
  278. (Booting once-only): New subsection.
  279. (Booting fallback systems): Likewise.
  280. (fallback): Describe multiple fallback entries.
  281. (savedefault): Describe an optional argument.
  282. (Invoking grub-set-default): New chapter.
  283. (Future): Replaced with a description about GRUB 2.
  284. * configure.ac (AC_CONFIG_FILES): Added util/grub-set-default.
  285. 2004-06-19 Yoshinori K. Okuji <okuji@enbug.org>
  286. * stage2/ufs2.h (int8_t): Renamed to ...
  287. (grub_uint8_t): ... this.
  288. (int16_t): Renamed to ...
  289. (grub_int16_t): ... this.
  290. (int32_t): Renamed to ...
  291. (grub_int32_t): ... this.
  292. (int64_t): Renamed to ...
  293. (grub_int64_t): ... this.
  294. (uint8_t): Renamed to ...
  295. (grub_uint8_t): ... this.
  296. (uint16_t): Renamed to ...
  297. (grub_uint16_t): ... this.
  298. (uint32_t): Renamed to ...
  299. (grub_uint32_t): ... this.
  300. (uint64_t): Renamed to ...
  301. (grub_uint64_t): ... this.
  302. (u_char): Renamed to ...
  303. (grub_u_char): ... this.
  304. (u_int): Renamed to ...
  305. (grub_u_int): ... this.
  306. (u_int8_t): Renamed to ...
  307. (grub_u_int8_t): ... this.
  308. (u_int16_t): Renamed to ...
  309. (grub_u_int16_t): ... this.
  310. (u_int32_t): Renamed to ...
  311. (grub_u_int32_t): ... this.
  312. (u_int64_t): Renamed to ...
  313. (grub_u_int64_t): ... this.
  314. (ino_t): Renamed to ...
  315. (grub_ino_t): ... this.
  316. All callers are changed.
  317. 2004-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
  318. * stage2/ufs2.h (__uint8_t): Remove.
  319. (__uint16_t): Likewise.
  320. (__uint32_t): Likewise.
  321. (__uint64_t): Likewise.
  322. (ino_t): Typedef to uint32_t.
  323. 2004-06-13 Yoshinori K. Okuji <okuji@enbug.org>
  324. * stage2/Makefile.am (noinst_HEADERS): Added ufs2.h.
  325. 2004-06-13 Yoshinori K. Okuji <okuji@enbug.org>
  326. * configure.ac (AC_INIT): Upgraded to 0.95.
  327. 2004-05-23 Yoshinori K. Okuji <okuji@enbug.org>
  328. * stage2/char_io.c (grub_isspace): Use a switch sentense instead
  329. of an if sentense, because that reduces the size.
  330. * lib/device.c (read_device_map): Change the max number of DRIVE
  331. to 127 from 8. This was too strict.
  332. * stage2/asm.S (stop_floppy): Call pusha and popa outside the
  333. block of real mode code. Reported by Guillem Jover
  334. <guillem@debian.org>.
  335. 2004-05-20 Damian Ivereigh <damian@cisco.com>
  336. * netboot/main.c: Fixed bootp only code so that options
  337. work properly. This fix is obvious when compared with the
  338. DHCP code.
  339. 2004-05-17 Pavel Roskin <proski@gnu.org>
  340. * stage2/char_io.c (safe_parse_maxint): Disable for stage 1.5.
  341. (grub_tolower): Disable for stage 1.5 except fat_stage1_5.
  342. (grub_memcmp): Disable for stage 1.5 except iso9660_stage1_5.
  343. 2004-05-14 Yoshinori K. Okuji <okuji@enbug.org>
  344. From Sergey Matveychuk <sem@ciam.ru>:
  345. * stage2/size_test: Added a check for ufs2_stage1_5.
  346. * stage2/shared.h (STAGE2_ID_UFS2_STAGE1_5): New macro.
  347. [FSYS_UFS2] (STAGE2_ID): Set to STAGE2_ID_UFS2_STAGE1_5.
  348. * stage2/filesys.h (FSYS_UFS2_NUM): New macro.
  349. [FSYS_UFS2] (ufs2_mount): New prototype.
  350. [FSYS_UFS2] (ufs2_read): Likewise.
  351. [FSYS_UFS2] (ufs2_dir): Likewise.
  352. [FSYS_UFS2] (ufs2_embed): Likewise.
  353. (NUM_FSYS): Added FSYS_UFS2_NUM.
  354. * stage2/disk_io.c (fsys_table): Added an ufs2 entry.
  355. * stage2/builtins.c (setup_func): Added ufs2 into the
  356. STAGE1_5_MAP.
  357. * stage2/Makefile.am (libgrub_a_SOURCES): Added fsys_ufs2.c.
  358. (libgrub_a_CFLAGS): Added -DFSYS_UFS2=1.
  359. (pkgdata_DATA): Added ufs2_stage1_5.
  360. (noinst_PROGRAMS): Added ufs2_stage1_5.exec.
  361. (ufs2_stage1_5_exec_SOURCES): New variable.
  362. (ufs2_stage1_5_exec_CFLAGS): Likewise.
  363. (ufs2_stage1_5_exec_CCASFLAGS): Likewise.
  364. (ufs2_stage1_5_exec_LDFLAGS): Likewise.
  365. * grub/Makefile.am (AM_CPPFLAGS): Added -DFSYS_ISO9660=1,
  366. -DFSYS_JFS=1, -DFSYS_REISERFS=1, -DFSYS_UFS2=1, -DFSYS_VSTAFS=1,
  367. -DFSYS_XFS=1, and -DUSE_MD5_PASSWORDS=1.
  368. * configure.ac (--disable-ufs2): New option.
  369. * stage2/fsys_ufs2.c: New file.
  370. * stage2/ufs2.h: Likewise.
  371. 2004-05-10 Robert Millan <robertmh@gnu.org>
  372. * lib/device.c: Mangle __FreeBSD_* macro usage to support
  373. kFreeBSD-based non-FreeBSD systems (i.e. GNU/kFreeBSD).
  374. Implement runtime detection of version of kFreeBSD. Now if
  375. we build against kFreeBSD 5.x headers the GRUB shell will work on
  376. both 4.x and 5.x.
  377. Replace `u_int_t' types with portable `unsigned int' and old
  378. reference to `geometry' structure to new `geom' one.
  379. * docs/menu.lst: Split GNU/kFreeBSD and GNU/kNetBSD as separate
  380. options than FreeBSD and NetBSD, respectively. There are minor
  381. differences now (different paths).
  382. 2004-05-03 Pavel Roskin <proski@gnu.org>
  383. * stage2/char_io.c (convert_to_ascii): Remove "%b" support.
  384. It's non-standard and is not used anymore.
  385. (grub_printf): Likewise.
  386. 2004-04-29 Robert Millan <robertmh@gnu.org>
  387. From Yann Dirson <dirson@debian.org>:
  388. * util/mkbimage: Misc syntax fixes.
  389. 2004-04-29 Jeroen Dekkers <jeroen@dekkers.cx>
  390. * stage2/char_io.c (grub_memcmp): Define for stage1.5 too.
  391. * stage2/fsys_iso9660.c (iso9660_mount): Use memcmp() instead of
  392. __builtin_memcmp().
  393. (iso9660_dir): Likewise.
  394. 2004-04-26 Christian Jones <chjones@aleph0.com>
  395. * docs/grub.texi (Making a GRUB bootable CD-ROM): minor edits,
  396. including a few compatibility notes and a change to
  397. -boot-load-size 4 for the mkisofs command.
  398. 2004-04-22 Jeroen Dekkers <jeroen@dekkers.cx>
  399. * Makefile.am (AUTOMAKE_OPTIONS): Add "gnu".
  400. * configure.ac: Update to work with automake 1.8, quote all
  401. AC_DEFUN's correctly and provide descriptions for AC_DEFINE's.
  402. * acinclude.m4: Likewise.
  403. * acconfig.h: Removed.
  404. * stage1/Makefile.am (.exec): Use suffix rules instead of pattern
  405. rules.
  406. * stage2/Makefile.am (.exec): Likewise.
  407. 2004-04-18 Yoshinori K. Okuji <okuji@enbug.org>
  408. * docs/grub.texi (Making a GRUB bootable CD-ROM): New section.
  409. * stage2/disk_io.c (set_device): Use CH instead of *DEVICE to
  410. test the first character of DEVICE, because DEVICE is
  411. incremented.
  412. Reported by Bernhard Treutwein.
  413. 2004-04-15 Yoshinori K. Okuji <okuji@enbug.org>
  414. * netboot/fsys_tftp.c (buf_fill): Cast 1 to unsigned short
  415. explicitly so that the constant doesn't extend unsigned short
  416. to int automatically.
  417. Reported by Eduard Guzovsky <eguzovsk@enterasys.com>.
  418. * docs/grub.texi (Invoking grub-md5-crypt): Fixed the chapter
  419. name.
  420. Reported by Martin Pool <mbp@sourcefrog.net>.
  421. 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
  422. * configure.ac (STAGE2_CFLAGS): Check if -fno-stack-protector is
  423. supported by GCC. If yes, added the option. This is necessary
  424. for OpenBSD, because the stack protector defines additional
  425. symbols. Reported by uc.sheda <uc.sheda@laposte.net>.
  426. 2004-03-28 Pavel Roskin <proski@gnu.org>
  427. * stage2/boot.c: Imply --no-mem-option for Linux kernels with
  428. protocol version 2.03 and above (Linux 2.4.18 and newer).
  429. 2004-03-27 Yoshinori K. Okuji <okuji@enbug.org>
  430. * stage2/char_io.c [!GRUB_UTIL] (memcpy): New function. It is
  431. defined as an alias of grub_memmove. This is copied from GRUB 2.
  432. * stage2/disk_io.c (print_completions): Simplified conditionals
  433. to make it easier to edit the file with Emacs.
  434. Added support for (cd).
  435. (set_device): Likewise.
  436. * stage2/common.c (init_bios_info): Check if BOOT_DRIVE is a
  437. CDROM drive. If it is true, set CDROM_DRIVE to BOOT_DRIVE.
  438. (cdrom_drive): New variable.
  439. From Leonid Lisovskiy <lly@pisem.net>:
  440. * stage2/start_eltorito.S: New file.
  441. * stage2/stage2.c (run_menu): Use GRUB_INVALID_DRIVE instead of
  442. 0xFF.
  443. * stage2/shared.h (STAGE2_ID_ISO9660_STAGE1_5): New macro.
  444. [FSYS_ISO9660] (STAGE2_ID): Set to STAGE2_ID_ISO9660_STAGE1_5.
  445. (struct geometry): Added a new member ``sector_size''.
  446. (BIOSDISK_FLAG_CDROM): New macro.
  447. (cdrom_drive): Declared.
  448. * stage2/fsys_iso9660.c: New file.
  449. * stage2/iso9660.h: Likewise.
  450. * stage2/filesys.h (FSYS_ISO9660_NUM): New macro.
  451. [FSYS_ISO9660] (iso9660_mount): Declared.
  452. [FSYS_ISO9660] (iso9660_read): Likewise.
  453. [FSYS_ISO9660] (iso9660_dir): Likewise.
  454. (NUM_FSYS): Added FSYS_ISO9660_NUM.
  455. * stage2/disk_io.c (fsys_table) [FSYS_ISO9660]: Added iso9660.
  456. (current_drive): Use GRUB_INVALID_DRIVE.
  457. (log2): New function.
  458. (rawread): Use BUF_GEOM.SECTOR_SIZE instead of SECTOR_SIZE.
  459. Change the type of BUFADDR from int to char *.
  460. Use a virtual track to make sure that one track fits in the
  461. buffer.
  462. (sane_partition): Allow CURRENT_DRIVE to be CDROM_DRIVE, because
  463. a bios drive for a CD-ROM is often assigned to greater than
  464. 0x88.
  465. (set_device): Use GRUB_INVALID_DRIVE instead of 0xFF.
  466. (setup_part): Likewise.
  467. * stage2/cmdline.c (init_cmdline): Use GRUB_INVALID_DRIVE.
  468. * stage2/builtins.c (install_func): Use GRUB_INVALID_DRIVE.
  469. (setup_func): Added iso9660_stage1_5.
  470. * stage2/bios.c (biosdisk): Don't fall back to the CHS mode
  471. if the drive is a CDROM.
  472. (get_cdinfo): New function.
  473. (get_diskinfo): Call get_cdinfo if the drive is greater than or
  474. equal to 0x88 or the drive supports LBA.
  475. Set the sector size to SECTOR_SIZE if it is not a CD-ROM.
  476. * stage2/asm.S (biosdisk_int13_extensions): Take a word
  477. argument AX instead of a byte argument AH.
  478. (get_diskinfo_int13_extensions): Removed.
  479. * stage2/Makefile.am (noinst_HEADERS): Added iso9660.h.
  480. (libgrub_a_SOURCES): Added fsys_iso9660.c.
  481. (libgrub_a_CFLAGS): Added -DFSYS_ISO9660=1.
  482. (pkgdata_DATA): Added iso9660_stage1_5 and stage2_eltorito.
  483. (noinst_PROGRAMS): Added iso9660_stage1_5.exec and
  484. start_eltorito.exec.
  485. (noinst_DATA): Added start_eltorito.
  486. (pre_stage2_exec_SOURCES): Added fsys_iso9660.c.
  487. (START_ELTORITO_LINK): New variable.
  488. (start_eltorito_exec_SOURCES): Likewise.
  489. (start_eltorito_exec_CCASFLAGS): Likewise.
  490. (start_eltorito_exec_LDFLAGS): Likewise.
  491. (start_eltorito_exec-start.$(OBJEXT)): New dependency.
  492. (stage2_eltorito): New target.
  493. (iso9660_stage1_5_exec_SOURCES): New variable.
  494. (iso9660_stage1_5_exec_CFLAGS): Likewise.
  495. (iso9660_stage1_5_exec_CCASFLAGS): Likewise.
  496. (iso9660_stage1_5_exec_LDFLAGS): Likewise.
  497. * stage1/stage1.h (GRUB_INVALID_DRIVE): New macro.
  498. * stage1/stage1.S (boot_drive): Use the macro GRUB_INVALID_DRIVE.
  499. (real_start): Likewise.
  500. * lib/device.c (get_drive_geometry): Set GEOM->SECTOR_SIZE to
  501. SECTOR_SIZE by default.
  502. * configure.ac (--disable-iso9660): New option.
  503. 2004-03-13 Yoshinori K. Okuji <okuji@enbug.org>
  504. From Daniele Zelante <zeldan@email.it>:
  505. * stage2/asm.S (stop_floppy): Use INT 13, AH=00h to stop the
  506. floppy controller instead of a direct I/O.
  507. 2004-03-12 Yoshinori K. Okuji <okuji@enbug.org>
  508. * stage2/serial.c (serial_putchar): Handle the character code
  509. 127 as a backspace. Reported by Florian Engelhardt
  510. <f.engelhardt@gmx.net>.
  511. 2004-03-12 Yoshinori K. Okuji <okuji@enbug.org>
  512. From Boji Tony Kannanthanam <boji.t.kannanthanam@intel.com>:
  513. * util/grub-install.in (convert): Add support for ATARAID
  514. device names.
  515. * lib/device.c (get_ataraid_disk_name) [__linux__]: New
  516. function.
  517. (init_device_map) [__linux__]: Probe ATARAID disks.
  518. * stage2/size_test (check): Don't use the local statement any
  519. longer. It was unneeded actually. Reported by Paul Jarc.
  520. 2004-03-12 Yoshinori K. Okuji <okuji@enbug.org>
  521. From Sergey Matveychuk <sem@ciam.ru>:
  522. * lib/device.c (get_drive_geometry): Do not open the same device
  523. more than once unnecessarily.
  524. (get_drive_geometry) [__FreeBSD_version >= 500040]: Use new
  525. ioctl methods.
  526. (get_floppy_disk_name) [__FreeBSD__ >= 4]: Use /dev/fd%d rather
  527. than /dev/rfd%d.
  528. (get_ide_disk_name) [__FreeBSD__ >= 4]: Use /dev/ad%d rather
  529. than /dev/rad%d.
  530. (get_scsi_disk_name) [__FreeBSD__ >= 4]: Use /dev/da%d rather
  531. than /dev/rda%d.
  532. * grub/asmstub.c (get_diskinfo): Check if ERRNO is EPERM as
  533. well.
  534. 2004-02-28 Jeroen Dekkers <jeroen@dekkers.cx>
  535. * docs/grub.texi (partnew): Change @var{to} to @var{len}.
  536. 2004-02-18 Yoshinori K. Okuji <okuji@enbug.org>
  537. From Yury V. Umanets <umka@namesys.com>:
  538. * stage2/fsys_reiserfs.c (REISER3FS_SUPER_MAGIC_STRING): New
  539. macro.
  540. (reiserfs_mount): Added checks for ReiserFS 3.
  541. (reiserfs_embed): Likewise.
  542. 2004-01-25 Yoshinori K. Okuji <okuji@enbug.org>
  543. * docs/grub.texi (Obtaining and Building GRUB): Instead of
  544. describing how to use the anoncvs method, specify the URL of
  545. the description page on Savannah.
  546. Reported by Bernhard Treutwein.
  547. 2004-01-18 Yoshinori K. Okuji <okuji@enbug.org>
  548. From Thomas Schwinge <kischde@gmx.net>:
  549. * grub/Makefile.am (AM_CPPFLAGS): New variable.
  550. (AM_CFLAGS): Removed all cpp flags.
  551. * stage2/xfs.h (__int8_t): Renamed to ...
  552. (xfs_int8_t): ... this.
  553. (__uint8_t): Renamed to ...
  554. (xfs_uint8_t): ... this.
  555. (__int16_t): Renamed to ...
  556. (xfs_int16_t): ... this.
  557. (__uint16_t): Renamed to ...
  558. (xfs_uint16_t): ... this.
  559. (__int32_t): Renamed to ...
  560. (xfs_int32_t): ... this.
  561. (__uint32_t): Renamed to ...
  562. (xfs_uint32_t): ... this.
  563. (__int64_t): Renamed to ...
  564. (xfs_int64_t): ... this.
  565. (__uint64_t): Renamed to ...
  566. (xfs_uint64_t): ... this.
  567. All callers are changed.x
  568. From Egmont Koblinger <egmont@uhulinux.hu>:
  569. * util/grub-install.in: Support an install devices in GRUB's
  570. notation without parentheses.
  571. * docs/grub.texi (Installing GRUB using grub-install): Added an
  572. example of using grub-install without parentheses.
  573. 2004-01-18 Yoshinori K. Okuji <okuji@enbug.org>
  574. * util/grub-install.in: Use the first word of GRUB_SHELL when
  575. checking if the grub shell is present. This is necessary to
  576. support options to the grub shell (e.g. grub --read-only).
  577. From Eric Kvaalen <E_Kvaalen.Arnesen@noos.fr>:
  578. * docs/grub.texi: Many bug fixes.
  579. 2004-01-17 Yoshinori K. Okuji <okuji@enbug.org>
  580. * lib/device.c [__linux__] (MAJOR): Support 32 bit and 64 bit
  581. dev_t. This code is stolen from glibc.
  582. Suggested by Shen Feng <shen@nanjing-fnst.com>.
  583. 2004-01-11 Yoshinori K. Okuji <okuji@enbug.org>
  584. * stage2/terminfo.c (ti_set_term): Use a pointer to struct
  585. terminfo instead to avoid GCC's bug, which inserts a reference
  586. to memcpy implicitly.
  587. (ti_get_term): Likewise.
  588. All callers are fixed.
  589. * stage2/terminfo.h (ti_set_term): Updated.
  590. (ti_get_term): Likewise.
  591. * stage2/shared.h (struct linux_kernel_header): New member,
  592. initrd_max_address. Defined in the boot protocol 2.03 or higher.
  593. * stage2/boot.c (load_initrd): If the boot protocol is greater
  594. than or equal to 2.03, use the field ``initrd_max_address''
  595. instead of LINUX_INITRD_MAX_ADDRESS.
  596. 2003-12-30 Yoshinori K. Okuji <okuji@enbug.org>
  597. * stage2/fsys_ext2fs.c (ext2_is_fast_symlink): New function.
  598. (ext2fs_dir): Use ext2_is_fast_symlink to check if the current
  599. inode is a fast or slow symlink. This change was required
  600. because Linux now uses acl seriously (i.e. incompatibility).
  601. Reported by Chris PeBenito <pebenito@gentoo.org> and Seemant
  602. Kulleen <seemant@gentoo.org>
  603. 2003-11-30 Yoshinori K. Okuji <okuji@enbug.org>
  604. * lib/device.c (read_device_map) (sho_warning): New internal
  605. function.
  606. (read_device_map): If DRIVE is greater than 8, emit a warning
  607. and ignore the drive, rather than exiting abnormally.
  608. Reported by Greg Newby <newby@arsc.edu>.
  609. 2003-10-19 Yoshinori K. Okuji <okuji@enbug.org>
  610. Migrated to newer autotools. Also, don't install mkbimage
  611. because its name is too general and it does not conform to the
  612. GNU Coding Standards in some points.
  613. * util/Makefile.am (EXTRA_DIST): New variable.
  614. (sbin_SCRIPTS): Removed mkbimage.
  615. (noinst_SCRIPTS): Added mkbimage.
  616. * stage1/Makefile.am (AM_ASFLAGS): Renamed to ...
  617. (AM_CCASFLAGS): ... this.
  618. * stage2/Makefile.am (pre_stage2_exec_ASFLAGS): Renamed to ...
  619. (pre_stage2_exec_CCASFLAGS): ... this.
  620. (start_exec_ASFLAGS): Renamed to ...
  621. (start_exec_CCASFLAGS): ... this.
  622. (e2fs_stage1_5_exec_ASFLAGS): Renamed to ...
  623. (e2fs_stage1_5_exec_CCASFLAGS): ... this.
  624. (fat_stage1_5_exec_ASFLAGS): Renamed to ...
  625. (fat_stage1_5_exec_CCASFLAGS): ... this.
  626. (ffs_stage1_5_exec_ASFLAGS): Renamed to ...
  627. (ffs_stage1_5_exec_CCASFLAGS): ... this.
  628. (minix_stage1_5_exec_ASFLAGS): Renamed to ...
  629. (minix_stage1_5_exec_CCASFLAGS): ... this.
  630. (reiserfs_stage1_5_exec_ASFLAGS): Renamed to ...
  631. (reiserfs_stage1_5_exec_CCASFLAGS): ... this.
  632. (vstafs_stage1_5_exec_ASFLAGS): Renamed to ...
  633. (vstafs_stage1_5_exec_CCASFLAGS): ... this.
  634. (jfs_stage1_5_exec_ASFLAGS): Renamed to ...
  635. (jfs_stage1_5_exec_CCASFLAGS): ... this.
  636. (xfs_stage1_5_exec_ASFLAGS): Renamed to ...
  637. (xfs_stage1_5_exec_CCASFLAGS): ... this.
  638. (diskless_exec_ASFLAGS): Renamed to ...
  639. (diskless_exec_CCASFLAGS): ... this.
  640. (nbloader_exec_ASFLAGS): Renamed to ...
  641. (nbloader_exec_CCASFLAGS): ... this.
  642. (pxeloader_exec_ASFLAGS): Renamed to ...
  643. (pxeloader_exec_CCASFLAGS): ... this.
  644. * configure.in: Removed.
  645. * configure.ac: New file. Mostly derived from configure.in.
  646. 2003-10-19 Yoshinori OKUJI <okuji@enbug.org>
  647. From KB Sriram <mail_kb@yahoo.com>:
  648. * stage2/disk_io.c (set_device) [SUPPORT_NETBOOT]: Added support
  649. for a completion of a network device.
  650. (print_completions): Likewise.
  651. 2003-10-10 Robert Millan <robertmh@gnu.org>
  652. * config.guess: Update from official source (CVS).
  653. * config.sub: Likewise.
  654. 2003-09-18 Robert Millan <robertmh@gnu.org>
  655. * docs/texinfo.tex: Update from ftp.gnu.org.
  656. 2003-09-05 KB Sriram <mail_kb@yahoo.com>
  657. * stage2/fsys_fat.c: Fix missdetection of ext2fs as fatfs.
  658. 2003-09-05 Robert Millan <robertmh@gnu.org>
  659. * docs/menu.lst (GNU/Linux): Add commented initrd command, which
  660. is consistent with documentation.
  661. 2003-09-01 Robert Millan <robertmh@gnu.org>
  662. * docs/menu.lst: Add NetBSD, OpenBSD, GNU/KFreeBSD and
  663. GNU/KNetBSD.
  664. 2003-08-13 Jason Thomas <jason@intology.com.au>
  665. * util/grub-install.in (resolve_symlink): New function to
  666. resolve symlinks.
  667. (find_device): Moved symlink code to new function.
  668. Before we convert the install_device we attempt to resolve it if
  669. its a symlink using the new function.
  670. * util/mbchk.c (check_multiboot): The sense of an error message
  671. was inverted.
  672. Reported by Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>.
  673. 2003-08-12 Jochen Hoenicke <jochen@gnu.org>
  674. * stage2/fsys_reiserfs.c (read_tree_node): Fixed a typo; only
  675. matters for very large fs when tree doesn't fit in cache.
  676. (IH_KEY_OFFSET): Don't check for INFO->version. There are
  677. actually old version file systems that use new version items.
  678. (IH_KEY_ISTYPE): Likewise.
  679. (reiserfs_dir): Likewise.
  680. 2003-08-09 Thierry Laronde <tlaronde@polynum.org>
  681. * util/mkbimage: New File. `mkbimage' depends on GRUB and
  682. existed elsewhere. It is now part of GRUB so that people can
  683. fix/contribute.
  684. * util/Makefile.am (sbin_SCRIPTS): Added script `mkbimage'
  685. 2003-08-01 Jason Thomas <jason@intology.com.au>
  686. * util/grub-install.in: support --no-floppy
  687. This allow users to specify the --no-floppy option which
  688. is passed onto the grub shell, so it does not probe the floppy
  689. drive.
  690. Patch from kesha@diedas.soften.ktu.lt
  691. 2003-06-17 Jochen Hoenicke <jochen@gnu.org>
  692. * stage2/fsys_reiserfs.c (reiserfs_mount): Clear the node cache.
  693. This fixes a problem where files from other partitions appear at
  694. the wrong partition. Problem reported by Johan Regin.
  695. 2003-05-04 Yoshinori K. Okuji <okuji@enbug.org>
  696. * docs/grub.texi (partnew): Fixed the inconsistency between the
  697. implementation and the documentation. The last argument is the
  698. length instead of the ending address.
  699. Reported by Daniel Farrell <s2108287@student.rmit.edu.au>.
  700. 2003-03-19 Yoshinori K. Okuji <okuji@enbug.org>
  701. From Adam Lackorzynski <adam@os.inf.tu-dresden.de>:
  702. * stage2/shared.h (KEY_NPAGE): Changed to 0x5100.
  703. (KEY_PPAGE): Changed to 0x4900.
  704. 2003-03-19 Yoshinori K. Okuji <okuji@enbug.org>
  705. * stage2/boot.c (load_image): Check if DATA_LEN plus SECTOR_SIZE
  706. is less than or equal to MULTIBOOT_SEARCH, instead of if
  707. DATA_LEN is less than or equal to MULTIBOOT_SEARCH.
  708. Reported by Neelkanth Natu <neelnatu@yahoo.com>.
  709. 2003-03-10 Yoshinori K. Okuji <okuji@enbug.org>
  710. From Andrew Walrond <andrew@walrond.org>:
  711. * stage2/fsys_reiserfs.c (struct reiserfs_journal_header):
  712. Remove an unnecessary ``long''.
  713. 2003-03-10 Yoshinori K. Okuji <okuji@enbug.org>
  714. From Tilmann Bubeck:
  715. * stage2/builtins.c [SUPPORT_SERIAL] (terminfo_func): Unescape
  716. arguments before copying them, and escape sequences before
  717. printing them.
  718. * stage2/terminfo.h (TERMINFO_LEN): Changed to 40.
  719. 2003-02-20 Yoshinori K. Okuji <okuji@enbug.org>
  720. * util/grub-install.in (find_device): Fix the sed script.
  721. 2003-02-17 Yoshinori K. Okuji <okuji@enbug.org>
  722. * lib/device.c (check_device): If DEVICE is empty, just return
  723. 1.
  724. (get_scsi_disk_name) [__QNXNTO__]: Make NAME empty, because SCSI
  725. disks are detected as IDE disks on QNX RTP.
  726. From Taketo Kabe <kabe@sra-tohoku.co.jp>:
  727. * lib/device.c (get_ide_disk_name) [__QNXNTO__]: Set NAME to
  728. "/dev/hdX".
  729. (get_floppy_disk_name) [__QNXNTO__]: Set NAME to "/dev/fdX".
  730. * stage2/mb_info.h (struct AddrRangeDesc): Specified with the
  731. attribute packed.
  732. * stage2/shared.h (struct mmar_desc): Likewise.
  733. 2003-01-29 Yoshinori K. Okuji <okuji@enbug.org>
  734. From Ilguiz Latypov:
  735. * configure.in: Fix a syntax error in a sed script.
  736. * stage2/bios.c (get_diskinfo): PhoenixBIOS 4.0 Revision 6.0
  737. for ZF Micro might understand the greater buffer size for the
  738. "get drive parameters" int 0x13 call in its own way.
  739. Supposedly the BIOS assumes even bigger space is available and
  740. thus corrupts the stack. This is why we specify the exactly
  741. necessary size of 0x42 bytes.
  742. 2003-01-25 Yoshinori K. Okuji <okuji@enbug.org>
  743. From Steven Dick <ssd.gnu@mmae.ucf.edu>:
  744. * stage2/pc_slice.h (PC_SLICE_TYPE_DELL_UTIL): New macro.
  745. (IS_PC_SLICE_TYPE_FAT): Recognize PC_SLIDE_TYPE_DELL_UTIL as
  746. well.
  747. 2003-01-25 Yoshinori K. Okuji <okuji@enbug.org>
  748. From Karsten Scheibler <karsten.scheibler@student.uni-halle.de>:
  749. * stage2/terminfo.c (term): Don't use a C99-style initializer.
  750. 2003-01-16 Yoshinori K. Okuji <okuji@enbug.org>
  751. From H.J. Lu <hjl@gnu.org>:
  752. * stage2/disk_io.c (part_start): Use unsigned long to support
  753. large disks.
  754. (part_length): Likewise.
  755. * stage2/shared.h (part_start): Likewise.
  756. (part_length): Likewise.
  757. 2003-01-05 Yoshinori K. Okuji <okuji@enbug.org>
  758. * configure.in (CFLAGS): When the default CFLAGS is used,
  759. eliminate -O2 and -g from CFLAGS, because Autoconf may
  760. automatically set CFLAGS to them.
  761. 2003-01-02 Yoshinori K. Okuji <okuji@enbug.org>
  762. From Jeremy Katz:
  763. * configure.in: Support building on x86_64 with gcc -m32.
  764. 2003-01-02 Yoshinori K. Okuji <okuji@enbug.org>
  765. From Jeremy Katz:
  766. * stage2/fsys_ext2fs.c (ext2fs_dir): Initialize STR_CHK to shut
  767. up GCC.
  768. * stage2/fsys_minix.c (minix_dir): Likewise.
  769. 2002-12-21 Yoshinori K. Okuji <okuji@enbug.org>
  770. * stage2/asm.S (gateA20): First, try a BIOS call (INT 15H,
  771. AX=2400/2401). Use the keyboard controller, only if that failed.
  772. 2002-12-11 Yoshinori K. Okuji <okuji@enbug.org>
  773. Add a workaround for buggy BIOSes which don't pass boot drive
  774. correctly. The idea is that GRUB forces the fixed disk flag
  775. when booted from a hard disk. When BIOS loads GRUB directly,
  776. the boot drive must be either of 0x00 and 0x80, so this should
  777. work, if those BIOSes always pass zero to %dl. AFAIK, this
  778. assumption is always correct.
  779. * stage2/builtins.c (install_func): Store the fixed disk flag of
  780. the destination drive in BOOT_DRIVE_MASK in Stage 1.
  781. * stage1/stage1.h (STAGE1_BOOT_DRIVE_MASK): New macro.
  782. * stage1/stage1.S (boot_drive_mask): New variable. It is or'ed
  783. to %dl.
  784. 2002-12-09 Yoshinori K. Okuji <okuji@enbug.org>
  785. * stage2/char_io.c (init_page): Change the software name from
  786. "GRUB" to "GNU GRUB". This was inaccurate. Reported by Ciaran
  787. O'Riordan <coriordan@compsoc.com>.
  788. 2002-12-04 Yoshinori K. Okuji <okuji@enbug.org>
  789. * stage2/builtins.c (embed_func): When checking if the disk can
  790. store Stage 1.5, check every partition, if it isn't empty.
  791. 2002-12-04 Yoshinori K. Okuji <okuji@enbug.org>
  792. * stage2/stage2.c (print_entry): Put a right arrow, if the entry
  793. is longer than 71 characters. Reported by Pavel Roskin.
  794. 2002-12-04 Yoshinori K. Okuji <okuji@enbug.org>
  795. * stage2/disk_io.c (set_device): If '(n' is given, add 'd' into
  796. DEVICE. Reported by Pavel Roskin.
  797. 2002-12-03 Yoshinori K. Okuji <okuji@enbug.org>
  798. Change the terminal structure a bit, to turn the cursor state
  799. explicitly. Suggested by Pavel Roskin.
  800. * stage2/term.h (struct term_entry): Remove the member
  801. `nocursor' and add `setcursor'.
  802. [!STAGE1_5] (console_setcursor): New prototype.
  803. [SUPPORT_HERCULES] (hercules_setcursor): Likewise.
  804. [!STAGE1_5] (console_nocursor): Removed.
  805. [SUPPORT_HERCULES] (hercules_nocursor): Likewise.
  806. * stage2/stage2.c (run_menu): Call setcursor instead of
  807. nocursor.
  808. Call setcursor with 1 before starting a boot entry.
  809. * stage2/shared.h (nocursor): Removed.
  810. (setcursor): New prototype.
  811. * stage2/hercules.c (herc_cursor_state): New variable.
  812. (herc_turn_cursor): Removed.
  813. (hercules_nocursor): Likewise.
  814. (hercules_setcursor): New function.
  815. * stage2/char_io.c (get_cmdline): Turn on the cursor at the
  816. beginning, and restore it before returning.
  817. (nocursor): Removed.
  818. (setcursor): New function.
  819. * stage2/asm.S (console_cursor_state): New variable.
  820. (console_cursor_shape): Likewise.
  821. (console_setcursor): New function.
  822. (console_nocursor): Removed.
  823. * grub/asmstub.c (console_setcursor): New function.
  824. (hercules_setcursor): Likewise.
  825. (console_nocursor): Removed.
  826. (hercules_nocursor): Likewise.
  827. 2002-12-03 Yoshinori K. Okuji <okuji@enbug.org>
  828. * docs/grub.texi (terminfo): Fix a misleading English sentence.
  829. Reported by Pavel Roskin.
  830. * stage2/builtins.c (builtin_terminfo): Likewise.
  831. 2002-12-01 Yoshinori K. Okuji <okuji@enbug.org>
  832. From Alexander Langer <alex@big.endian.de>:
  833. * stage2/freebsd.h (RB_GDB): New macro.
  834. (RB_MUTE): Likewise.
  835. (RB_MULTIPLE): Likewise.
  836. * stage2/boot.c (bsd_boot): Set the bits of RB_MULTIPLE, RB_GDB
  837. and RB_MUTE when "-D", "-g" and "-m" are specified,
  838. respectively.
  839. 2002-12-01 Yoshinori K. Okuji <okuji@enbug.org>
  840. * docs/grub.texi (Reporting bugs): Specify the project page of
  841. the BTS instead of the BTS itself.
  842. 2002-11-30 Yoshinori K. Okuji <okuji@enbug.org>
  843. * docs/Makefile.am (man_MANS): Added grub-terminfo.8.
  844. ($(srcdir)/grub_terminfo.8): New target.
  845. * utils/grub-terminfo.in: New file.
  846. * util/Makefile.am (sbin_SCRIPTS): Added grub-terminfo.
  847. * configure.in (AC_OUTPUT): Added util/grub-terminfo.
  848. * docs/grub.texi (terminfo): New subsection.
  849. (Invoking grub-terminfo): New chapter.
  850. From Tilmann Bubeck <t.bubeck@reinform.de>:
  851. * stage2/Makefile.am (noinst_HEADERS): Added terminfo.h and
  852. tparm.h.
  853. (libgrub_a_SOURCES): Added terminfo.c and tparm.c.
  854. (pre_stage2_exe_SOURCES): Likewise.
  855. * stage2/terminfo.c: New file.
  856. * stage2/terminfo.h: Likewise.
  857. * stage2/tparm.c: Likewise.
  858. * stage2/tparm.h: Likewise.
  859. * stage2/stage2.c (get_line_from_config): Fix handling of
  860. backslashes.
  861. * stage2/char_io.c (grub_putstr): New function.
  862. (grub_printf): Use grub_putstr.
  863. (substring): Add const into both arguments.
  864. * stage2/builtins.c [SUPPORT_SERIAL]: Include terminfo.h.
  865. [SUPPORT_SERIAL] (terminfo_func): New function.
  866. [SUPPORT_SERIAL] (builtin_terminfo): New variable.
  867. (builtin_table) [SUPPORT_SERIAL]: Added a pointer to
  868. BUILTIN_TERMINFO.
  869. * stage2/serial.c (serial_gotoxy): Use ti_cursor_address.
  870. (serial_cls): Use ti_clear_screen.
  871. (serial_highlight): use ti_enter_standout_mode and
  872. ti_exit_standout_mode.
  873. 2002-11-30 Yoshinori K. Okuji <okuji@enbug.org>
  874. * stage2/disk_io.c (rawread): Make sure that SECTOR is valid.
  875. If not, set ERRNUM to ERR_GEOM and return zero. This check is
  876. critical when a partition table is corrupted.
  877. 2002-11-28 Yoshinori K. Okuji <okuji@enbug.org>
  878. * stage2/asm.S (console_cls): Write spaces to the entire screen
  879. instead of getting/setting the video mode, because this flickers
  880. the screen and is quite annoying, if using a LCD.
  881. 2002-11-15 Yoshinori K. Okuji <okuji@enbug.org>
  882. * docs/grub.texi (QNX): New subsection. Reported by
  883. Marian-Nicolae V. ION <marian_ion@noos.fr>.
  884. 2002-10-28 Yoshinori K. Okuji <okuji@enbug.org>
  885. * grub/asmstub.c (console_translate_key): Deal with KEY_PPAGE
  886. and KEY_NPAGE.
  887. * stage2/serial.c (serial_translate_key_sequence): Added two new
  888. codes for Page Up and Page Down.
  889. * stage2/asm.S (translation_table): Added entries for KEY_PPAGE
  890. and KEY_NPAGE.
  891. * stage2/stage2.c (run_menu): Deal with Page Up and Page Down.
  892. Also recognize the right key for the selection of a boot entry.
  893. Suggested by Adam Lackorzynski <adam@os.inf.tu-dresden.de>.
  894. 2002-10-10 Jason Thomas <jason@topic.com.au>
  895. * stage2/builtins.c (setup_func): Added missing space to --force-lba
  896. option. Reported by Kenneth Crudup <kenny@panix.com>
  897. 2002-10-06 Yoshinori K. Okuji <okuji@enbug.org>
  898. * stage2/asm.S (gateA20): Output a dummy command (0xff), as a
  899. workaround for USB keyboard hanging problem. Suggested by
  900. Hidetoshi Nishimaki <nishimaki@mxs.nes.nec.co.jp>.
  901. 2002-10-06 Yoshinori K. Okuji <okuji@enbug.org>
  902. * configure.in (falign_loop_flag): New variable. Set to if GCC
  903. supports `-falign-*'. If true, use `-falign-jumps',
  904. `-falign-loops' and `-falign-functions' instead of
  905. `-malign-jumps', `-malign-loops' and `-malign-functions',
  906. because `-malign-*' are obsolete in GCC 3.x. Reported by Jeremy
  907. Katz.
  908. 2002-09-13 Yoshinori K. Okuji <okuji@enbug.org>
  909. * stage2/serial.c (fill_input_buf): Take a new argument NOWAIT.
  910. If NOWAIT is true, don't loop.
  911. All callers are changed.
  912. 2002-09-08 Yoshinori K. Okuji <okuji@enbug.org>
  913. * configure.in (--disable-serial): Fix a typo in the
  914. description.
  915. 2002-08-20 Jason Thomas <jason@topic.com.au>
  916. Changed highlight state code for hercules, console and serial.
  917. The state was 0 - normal or 1 - highlight.
  918. The state is now defined using an enum called color_state.
  919. * stage2/term.h (color_state): New enum.
  920. (COLOR_STATE_STANDARD): Standard color to use when not using
  921. user defined.
  922. (COLOR_STATE_NORMAL): User defined normal color.
  923. (COLOR_STATE_HIGHLIGHT): User defined highlight color.
  924. (console_highlight): Renamed to console_setcolorstate.
  925. (serial_highlight): Renamed to serial_setcolorstate.
  926. (hercules_highlight): Renamed to hercules_setcolorstate.
  927. * stage2/hercules.c (herc_highlight_state): Removed.
  928. (herc_standard_color): New variable.
  929. (herc_color_state): Likewise.
  930. (herc_highlight): Renamed to herc_setcolorstate.
  931. (herc_setcolorstate): Added switch to handle new states.
  932. * stage2/console.c (console_highlight_state): Removed.
  933. (console_standard_color): New variable.
  934. (console_color_state): Likewise.
  935. (console_highlight): Renamed to console_setcolorstate.
  936. (console_setcolorstate): Added switch to handle new states.
  937. * stage2/serial.c (serial_highlight): Renamed to
  938. serial_setcolorstate.
  939. (serial_setcolorstate): Adjusted 'if' to suit new states.
  940. * grub/asmstub.c (console_highlight): Renamed to
  941. console_setcolorstate.
  942. (console_setcolorstate): Adjusted 'if' to suit new states.
  943. * stage2/stage2.c (print_entry): Set color states using new
  944. states.
  945. (print_border): Likewise.
  946. * stage2/stage2.c (run_menu): Reverse if (!) to if () for
  947. uniformitty.
  948. 2002-07-12 Yoshinori K. Okuji <okuji@enbug.org>
  949. * stage2/boot.c (load_image): Rewrite the Linux booting support
  950. radically. Now it should work even on a machine having, say,
  951. only 128KB, theoretically. Of course, GRUB itself doesn't work
  952. on such a system, though.
  953. (load_initrd): Initialize LH based on CUR_ADDR, because the
  954. location becomes dynamic.
  955. * stage2/shared.h (LINUX_MAX_SETUP_SECTS): Set to 64.
  956. (LINUX_HEAP_END_OFFSET): Set to (0x9000 - 0x200).
  957. (LINUX_STAGING_AREA): Removed.
  958. (LINUX_SETUP): Likewise.
  959. (LINUX_KERNEL): Likewise.
  960. (LINUX_KERNEL_MAXLEN): Likewise.
  961. (LINUX_SETUP_SEG): Likewise.
  962. (LINUX_INIT_SEG): Likewise.
  963. (LINUX_SETUP_STACK): Set to 0x9000.
  964. (LINUX_BZIMAGE_ADDR): New macro.
  965. (LINUX_ZIMAGE_ADDR): Likewise.
  966. (LINUX_OLD_REAL_MODE_ADDR): Likewise.
  967. (CL_MY_LOCATION): Removed.
  968. (CL_MY_END_ADDR): Likewise.
  969. (CL_BASE_ADDR): Likewise.
  970. (CL_MAGIC): Renamed to ...
  971. (LINUX_CL_MAGIC): ... this.
  972. (LINUX_CL_OFFSET): New macro.
  973. (LINUX_CL_END_OFFSET): Likewise.
  974. (LINUX_SETUP_MOVE_SIZE): Likewise.
  975. (struct linux_kernel_header): Change the type of the member
  976. "cmd_line_ptr" to char *.
  977. (linux_data_tmp_addr): Declared.
  978. (linux_data_real_addr): Likewise.
  979. * stage2/asm.S [!STAGE1_5] (linux_data_tmp_addr): New variable.
  980. [!STAGE1_5] (linux_data_real_addr): Likewise.
  981. [!STAGE1_5] (big_linux_boot): Copy the real mode part from
  982. LINUX_DATA_TMP_ADDR to LINUX_DATA_REAL_ADDR.
  983. * grub/asmstub.c (linux_data_tmp_addr): New variable.
  984. (linux_data_real_addr): Likewise.
  985. 2002-07-09 Yoshinori K. Okuji <okuji@enbug.org>
  986. From Mark Kettenis <kettenis@chello.nl>:
  987. * stage2/boot.c (load_image): Recognize newer FreeBSD kernels.
  988. * stage2/i386-elf.h (EI_OSABI): New macro.
  989. (EI_ABIVERSION): Likewise.
  990. (ELFOSABI_FREEBSD): Likewise.
  991. (EI_PAD): Set to 9.
  992. 2002-07-06 Yoshinori K. Okuji <okuji@enbug.org>
  993. * stage2/shared.h (boot_part_offset): Removed.
  994. * stage2/disk_io.c (set_bootdev): Copy the partition information
  995. here. Now this function can call rawread, so it can fail.
  996. (boot_part_offset): Removed.
  997. * stage2/builtins.c (boot_func): Don't copy the partition
  998. information here.
  999. (real_root_func): Check ERRNUM after calling set_bootdev.
  1000. 2002-07-04 Yoshinori K. Okuji <okuji@enbug.org>
  1001. * docs/grub.texi (Reporting bugs): Use the group name (i.e.
  1002. grub) instead of the group id (i.e. 68) for the URL of the BTS.
  1003. 2002-07-03 Yoshinori K. Okuji <okuji@enbug.org>
  1004. * stage2/serial.c [!GRUB_UTIL] (inb): Added a delay into this
  1005. function itself.
  1006. [!GRUB_UTIL] (outb): Likewise.
  1007. [!GRUB_UTIL] (serial_hw_put): Increase the timeout value, and
  1008. don't call serial_hw_delay explicitly any longer.
  1009. (fill_input_buf): Increase the maximum number of retries, reset
  1010. the counter to zero after getting a valid character, and don't
  1011. call serial_hw_delay explicitly any longer.
  1012. 2002-07-03 Yoshinori K. Okuji <okuji@enbug.org>
  1013. * stage2/serial.c [!GRUB_UTIL] (serial_hw_fetch): Fixed a typo.
  1014. Reported by Ilguiz Latypov.
  1015. 2002-07-01 Yoshinori K. Okuji <okuji@enbug.org>
  1016. * Makefile.am (AUTOMAKE_OPTIONS): New variable. Specify the
  1017. required Automake version explicitly.
  1018. 2002-06-30 Yoshinori K. Okuji <okuji@enbug.org>
  1019. * stage2/builtins.c [SUPPORT_SERIAL || SUPPORT_HERCULES]
  1020. (terminal_func): Set CURRENT_TERM to each of selected terminals
  1021. before calling grub_printf, and restore CURRENT_TERM after it.
  1022. Reported by Ilguiz Latypov.
  1023. Prepend a carriage return to the prompting message, because it
  1024. is ugly that the same messages fulfill the whole screen.
  1025. 2002-06-30 Yoshinori K. Okuji <okuji@enbug.org>
  1026. * stage2/serial.c [!GRUB_UTIL] (serial_hw_fetch): Fixed the
  1027. conditional statement. Reported by Ilguiz Latypov.
  1028. 2002-06-24 Yoshinori K. Okuji <okuji@enbug.org>
  1029. * MAINTENANCE: New file.
  1030. 2002-06-15 Yoshinori K. Okuji <okuji@enbug.org>
  1031. * stage2/disk_io.c [SUPPORT_NETBOOT] (GRUB): Defined.
  1032. [SUPPORT_NETBOOT]: Include etherboot.h.
  1033. [!STAGE1_5] (print_completions) [SUPPORT_NETBOOT]: When
  1034. completing a disk name, if NETWORK_READY is true, add "nd" as a
  1035. completion.
  1036. 2002-06-15 Yoshinori K. Okuji <okuji@enbug.org>
  1037. * stage2/fsys_xfs.c (le32): Don't use bswap, but use xchgb and
  1038. roll, because 386 doesn't have bswap. Reported by Frode Vatvedt
  1039. Fjeld <frodef@acm.org>.
  1040. 2002-06-12 Yoshinori K. Okuji <okuji@enbug.org>
  1041. * netboot/main.c (ifconfig): If GW is specified, clear out the
  1042. ARP entry for the gateway. If SVR is specified, clear out the
  1043. ARP entry for the server. Reported by Uwe Dannowski
  1044. <ud3@ira.uka.de>.
  1045. 2002-06-12 Yoshinori K. Okuji <okuji@enbug.org>
  1046. * util/grub-md5-crypt.in: Prompt to retype a password, and check
  1047. if the passwords matches. Suggested by Matt Perry
  1048. <matt@primefactor.com>.
  1049. Also, don't use Perl any longer, because *BSD's sh and GNU
  1050. support ``read -r'', and GRUB doesn't support any other
  1051. operating system anyway.
  1052. 2002-06-12 Yoshinori K. Okuji <okuji@enbug.org>
  1053. The terminal handling code is rewritten radically.
  1054. * stage2/console.c: New file.
  1055. * stage2/term.h: Likewise.
  1056. * stage2/Makefile.am (noinst_HEADERS): Added term.h.
  1057. (libgrub_a_SOURCES): Added serial.c.
  1058. (pre_stage2_exec_SOURCES): Added console.c.
  1059. * stage2/asm.S (console_putchar): Rewritten from scratch.
  1060. [!STAGE1_5] (translation_table): New variable.
  1061. [!STAGE1_5] (translate_keycode): New function.
  1062. [!STAGE1_5] (console_getkey): Call translate_keycode.
  1063. [!STAGE1_5] (console_checkkey): Likewise.
  1064. [!STAGE1_5] (nocursor): Renamed to ...
  1065. [!STAGE1_5] (console_nocursor): ... this.
  1066. [!STAGE1_5] (console_set_attrib): Removed.
  1067. * stage2/builtins.c: Include term.h.
  1068. (terminal): Removed.
  1069. (normal_color): Likewise.
  1070. (highlight_color): Likewise.
  1071. (cat_func): Display a question mark when a non-printable
  1072. character was read.
  1073. (terminal_func): Rewritten almost from scratch.
  1074. * stage2/char_io.c: Include term.h.
  1075. [!STAGE1_5] (auto_fill): Removed.
  1076. [!STAGE1_5] (term_table): New variable.
  1077. [!STAGE1_5] (current_term): Likewise.
  1078. [!STAGE1_5] (real_get_cmdline): New function. The code was
  1079. stolen from the previous version of get_cmdline.
  1080. [!STAGE1_5] (get_cmdline): Rewritten from scratch.
  1081. [!STAGE1_5] (translate_keycode): Removed.
  1082. [!STAGE1_5] (getkey): Rewritten from scratch.
  1083. [!STAGE1_5] (checkkey): Likewise.
  1084. (grub_putchar): Likewise.
  1085. [!STAGE1_5] (gotoxy): Likewise.
  1086. [!STAGE1_5] (getxy): Likewise.
  1087. [!STAGE1_5] (cls): Likewise.
  1088. [!STAGE1_5] (nocursor): New function.
  1089. [SUPPORT_SERIAL] (serial_getxy): Removed.
  1090. [SUPPORT_SERIAL] (serial_gotoxy): Likewise.
  1091. [SUPPORT_SERIAL] (serial_cls): Likewise.
  1092. [SUPPORT_SERIAL] (serial_getxy): Likewise.
  1093. [!STAGE1_5] (set_attrib): Likewise.
  1094. * stage2/cmdline.c (init_cmdline): Set COUNT_LINES to -1.
  1095. * stage2/common.c [!STAGE1_5] (err_list): Removed
  1096. ERR_NEED_SERIAL and added ERR_DEV_NEED_INIT.
  1097. * stage2/hercules.c: Rewritten almost from scratch.
  1098. * stage2/hercules.h (herc_putchar): Removed.
  1099. (herc_cls): Likewise.
  1100. (herc_getxy): Likewise.
  1101. (herc_gotoxy): Likewise.
  1102. (herc_set_attrib): Likewise.
  1103. * stage2/serial.c: Rewritten almost from scratch.
  1104. * stage2/serial.h: Likewise.
  1105. * stage2/shared.h [GRUB_UTIL] (DISP_UL): Set to the same value
  1106. as VGA's.
  1107. [GRUB_UTIL] (DISP_UR): Likewise.
  1108. [GRUB_UTIL] (DISP_LL): Likewise.
  1109. [GRUB_UTIL] (DISP_LR): Likewise.
  1110. [GRUB_UTIL] (DISP_HORIZ): Likewise.
  1111. [GRUB_UTIL] (DISP_VERT): Likewise.
  1112. [GRUB_UTIL] (DISP_LEFT): Likewise.
  1113. [GRUB_UTIL] (DISP_RIGHT): Likewise.
  1114. [GRUB_UTIL] (DISP_UP): Likewise.
  1115. [GRUB_UTIL] (DISP_DOWN): Likewise.
  1116. (grub_error_t): Removed ERR_NEED_SERIAL.
  1117. Added ERR_DEV_NEED_INIT.
  1118. (normal_color): Removed.
  1119. (highlight_color): Likewise.
  1120. (console_cls): Removed, because this is declared in term.h.
  1121. (console_getxy): Likewise.
  1122. (console_gotoxy): Likewise.
  1123. (console_putchar): Likewise.
  1124. (console_getkey): Likewise.
  1125. (console_checkkey): Likewise.
  1126. (console_set_attrib): Removed.
  1127. (set_attrib): Likewise.
  1128. [GRUB_UTIL] (nocursor): Declared.
  1129. (auto_fill): Removed.
  1130. (terminal): Likewise.
  1131. (TERMINAL_CONSOLE): Likewise.
  1132. (TERMINAL_SERIAL): Likewise.
  1133. (TERMINAL_HERCULES): Likewise.
  1134. (TERMINAL_DUMB): Likewise.
  1135. (translate_keycode): Likewise.
  1136. * stage2/stage2.c: Include term.h.
  1137. (print_entry): Rewritten from scratch.
  1138. (print_entries): Likewise.
  1139. (print_border): Likewise.
  1140. (set_line): Removed.
  1141. (set_line_normal): Likewise.
  1142. (set_line_highlight): Likewise.
  1143. * grub/Makefile.am (AM_CFLAGS): Added -DSUPPORT_HERCULES=1.
  1144. * grub/asmstub.c: Don't include hercules.h. Include term.h.
  1145. (console_current_color): New variable.
  1146. (console_translate_key): New function.
  1147. (console_checkkey): Rewritten from scratch.
  1148. (console_getkey): Likewise.
  1149. (console_putchar): Likewise.
  1150. (console_set_attrib): Removed.
  1151. (console_highlight): New function.
  1152. (console_setcolor): Likewise.
  1153. (console_nocursor): Likewise.
  1154. (serial_getkey): Removed.
  1155. (serial_checkkey): Likewise.
  1156. (serial_putchar): Likewise.
  1157. (serial_exists): Likewise.
  1158. (serial_get_port): Likewise.
  1159. (serial_init): Likewise.
  1160. (serial_hw_fetch): New function.
  1161. (serial_hw_put): Likewise.
  1162. (serial_hw_delay): Likewise.
  1163. (serial_hw_get_port): Likewise.
  1164. (serial_hw_init): Likewise.
  1165. (set_serial_device): Renamed to ...
  1166. (serial_set_device): ... this.
  1167. (herc_putchar): Renamed to ...
  1168. (hercules_putchar): ... this.
  1169. (herc_cls): Renamed to ...
  1170. (hercules_cls): ... this.
  1171. (herc_getxy): Renamed to ...
  1172. (hercules_getxy): ... this.
  1173. (herc_gotoxy): Renamed to ...
  1174. (hercules_gotoxy): ... this.
  1175. (hercules_highlight): New function.
  1176. (hercules_setcolor): Likewise.
  1177. (hercules_nocursor): Likewise.
  1178. (herc_set_attrib): Removed.
  1179. * grub/main.c: Include term.h.
  1180. (main): If USE_CURSES is false, set CURRENT_TERM->FLAGS to
  1181. TERM_NO_EDIT | TERM_DUMB. TERMINAL is not used any longer.
  1182. 2002-06-01 Yoshinori K. Okuji <okuji@enbug.org>
  1183. * docs/grub.texi (FAQ): Removed. See the GNU GRUB FAQ on the web
  1184. instead.
  1185. 2002-05-31 Yoshinori K. Okuji <okuji@enbug.org>
  1186. * docs/grub.texi (Reporting bugs): Recommend using the BTS on
  1187. Savannah rather than the list bug-grub.
  1188. 2002-05-25 Yoshinori K. Okuji <okuji@enbug.org>
  1189. * stage2/builtins.c (boot_func): Load the boot partition
  1190. information, only if the address of the boot partition entry is
  1191. set appropriately.
  1192. (real_root_func): If ATTEMPT_MOUNT is false, call open_partition
  1193. and if successful, call set_bootdev, to set the offset of the
  1194. boot partition and the address of the boot paetition entry.
  1195. IF ATTEMPT_MOUNT is false, don't set BOOTDEV. The BSD evil hack
  1196. is useless with the command "rootnoverify" anyway.
  1197. * stage2/disk_io.c (boot_part_addr): Initialized with zero
  1198. explicitly, to emphasize that it is invalid.
  1199. 2002-05-24 Yoshinori K. Okuji <okuji@enbug.org>
  1200. * stage2/builtins.c (real_root_func): New function.
  1201. (root_func): Just call real_root_func.
  1202. (rootnoverify_func): Likewise.
  1203. 2002-05-23 Yoshinori K. Okuji <okuji@enbug.org>
  1204. * configure.in (AM_INIT_AUTOMAKE): Changed the version number to
  1205. 0.93.
  1206. 2002-05-23 Yoshinori K. Okuji <okuji@enbug.org>
  1207. Define the behavior of the boot loader when the load end address
  1208. and the bss end address are zero in the Multiboot Specification,
  1209. and add the support into GRUB. I've modified a patch from Yuri
  1210. Zaporogets <yuriz@ukr.net>.
  1211. * stage2/boot.c (load_image): In the case of Multiboot a.out
  1212. kludge, set the load end address to the load address plus the
  1213. size of the OS image file, if it is zero. Similarly, set the bss
  1214. end address to the load end address, if it is zero.
  1215. * util/mbchk.c (check_multiboot): Don't check if the load
  1216. address is greater than or equal to the load end address, if the
  1217. load end address is zero. Don't check if the load end address is
  1218. greater than the bss end address, if the bss end address is
  1219. zero. And, don't check if the load end address is less than or
  1220. equal to the entry address, if the load end address is zero.
  1221. * docs/multiboot.texi (The address fields of Multiboot header):
  1222. Added descriptions about the behavior of the boot loader when
  1223. LOAD_END_ADDR is zero and BSS_END_ADDR is zero.
  1224. 2002-05-22 Yoshinori K. Okuji <okuji@enbug.org>
  1225. * stage2/builtins.c (boot_func): If DEBUG is true, print
  1226. BOOT_DRIVE and BOOT_PART_OFFSET.
  1227. Don't set ERRNUM after rawread failed, because rawread should
  1228. set ERRNUM itself.
  1229. 2002-05-20 Yoshinori K. Okuji <okuji@enbug.org>
  1230. * lib/device.c (read_device_map): Show an error message and exit
  1231. abnormally, if MAP[DRIVE] has already been filled.
  1232. * util/grub-install.in: If there is any dulicated entry, print
  1233. an error message and exit abnormally.
  1234. 2002-05-20 Yoshinori K. Okuji <okuji@enbug.org>
  1235. * lib/device.c: Don't include linux/hdreg.h, linux/major.h,
  1236. or linux/kdev_t.h.
  1237. [__linux__] (HDIO_GETGEO): Defined.
  1238. [__linux__] (hd_geometry): Likewise.
  1239. [__linux__] (FLOPPY_MAJOR): Likewise.
  1240. [__linux__] (MINORBITS): Likewise.
  1241. [__linux__] (MAJOR): Likewise.
  1242. 2002-05-08 Yoshinori K. Okuji <okuji@enbug.org>
  1243. * netboot/fsys_tftp.c (tftp_read): Don't call buf_fill unless
  1244. SIZE is positive.
  1245. 2002-05-08 Yoshinori K. Okuji <okuji@enbug.org>
  1246. * netboot/etherboot.h (ETH_MAX_MTU): Because some DHCP/BOOTP
  1247. servers don't treat the maximum length the same as Etherboot,
  1248. subtract the size of an IP header and that of an UDP header.
  1249. 2002-04-30 Yoshinori K. Okuji <okuji@enbug.org>
  1250. From Jean-Jacques Michel <jjmichel@linbox.com>:
  1251. * stage2/boot.c (load_image): For Linux, check if DATA_LEN is
  1252. greater than MULTIBOOT_SEARCH. If that's true, read the rest
  1253. after copying data already read in BUFFER.
  1254. 2002-04-30 Yoshinori K. Okuji <okuji@enbug.org>
  1255. * stage2/boot.c (load_image): For Linux, don't check if the
  1256. length of protected mode code is greater than or equal to the
  1257. expected length minus 16. Instead, just check if no error
  1258. occurred. That was problematic, because memdisk has no protected
  1259. mode code. Also, I don't see what the magic number 16 was for.
  1260. 2002-04-29 Yoshinori K. Okuji <okuji@enbug.org>
  1261. * stage2/builtins.c [SUPPORT_SERIAL] (terminal_func): Added a
  1262. new option ``--silent''. This suppresses messages, if specified.
  1263. 2002-04-29 Yoshinori K. Okuji <okuji@enbug.org>
  1264. * config.guess: New upstream version.
  1265. * config.sub: Likewise.
  1266. 2002-04-20 Yoshinori K. Okuji <okuji@enbug.org>
  1267. * netboot/config.c (PCI_NIC) [INCLUDE_DAVICOM]: Fix typos.
  1268. Reported by Julien Perrot <julien.perrot@iie.cnam.fr>.
  1269. 2002-04-17 Yoshinori K. Okuji <okuji@enbug.org>
  1270. * stage2/builtins.c [SUPPORT_SERIAL] (terminal_func): Set
  1271. COUNT_LINES to -1, to disable the pager.
  1272. 2002-04-16 Yoshinori K. Okuji <okuji@enbug.org>
  1273. * docs/grub.texi (Obtaining and Building GRUB): Update the link
  1274. to the binutils site.
  1275. 2002-04-06 Pavel Roskin <proski@gnu.org>
  1276. * util/grub-install.in: Fix hardcoded /dev/hda1.
  1277. 2002-04-06 Yoshinori K. Okuji <okuji@enbug.org>
  1278. * stage2/builtins.c [GRUB_UTIL] (dump_func): New function.
  1279. [GRUB_UTIL] (builtin_dump): New variable.
  1280. (builtin_table) [GRUB_UTIL]: Added a pointer to BUILTIN_DUMP.
  1281. * util/grub-install.in: Make sure that GRUB reads the same
  1282. images as the host operating system by comparing the result of
  1283. running the command "dump" with the contents of the OS file.
  1284. 2002-04-04 Yoshinori K. Okuji <okuji@enbug.org>
  1285. * stage2/builtins.c (setup_func): Don't embed a drive number, if
  1286. unnecessary.
  1287. 2002-03-29 Yoshinori K. Okuji <okuji@enbug.org>
  1288. * docs/grub.texi (General commands): Added ``pager'' into the
  1289. menu.
  1290. (pager): New subsection.
  1291. (terminal): Added a description about the option
  1292. ``--lines=LINES''.
  1293. * configure.in (AC_INIT_AUTOMAKE): Set the version number to
  1294. 0.92.
  1295. 2002-03-26 Yoshinori K. Okuji <okuji@enbug.org>
  1296. * netboot/eepro100.c (eepro100_probe): Increase the delay at the
  1297. initialization.
  1298. 2002-03-26 Yoshinori K. Okuji <okuji@enbug.org>
  1299. * stage2/boot.c (linux_mem_size): New variable.
  1300. (load_image): Check a mem= option and set LINUX_MEM_SIZE to the
  1301. specified memory size, if any. Otherwise, to zero. When an
  1302. overflow is detected, use LINUX_INITRD_MAX_ADDRESS instead.
  1303. (load_initrd): If LINUX_MEM_SIZE is non-zero, use it instead of
  1304. the actual memory size.
  1305. * stage2/char_io.c (safe_parse_maxint): Use ERR_NUMBER_OVERFLOW
  1306. instead of ERR_NUMBER_PARSING, when an overflow occurs.
  1307. * stage2/common.c [!STAGE1_5] (err_list): Added
  1308. ERR_NUMBER_OVERFLOW.
  1309. * stage2/shared.h (ERR_NUMBER_OVERFLOW): New constant.
  1310. 2002-03-24 Yoshinori K. Okuji <okuji@enbug.org>
  1311. * stage2/stage2.c (run_menu): Call cls outside the loop to run
  1312. scripts.
  1313. * stage2/cmdline.c (run_script): Prompt a user's intervention,
  1314. only when FALLBACK_ENTRY is negative.
  1315. 2002-02-11 Pavel Roskin <proski@gnu.org>
  1316. * util/grub-install.in (find_device): New function - find block
  1317. device for given file or directory. Resolve symlinks to fix
  1318. problem on Linux with devfs and old device names in /etc/fstab.
  1319. Use find_device() for root_device, bootdir_device and
  1320. grubdir_device.
  1321. 2002-02-08 Yoshinori K. Okuji <okuji@enbug.org>
  1322. * grub/main.c (OPT_NO_PAGER): New macro.
  1323. (longopts): Added an entry for "--no-pager".
  1324. (usage): Added a description about "--no-pager".
  1325. (main): In case of OPT_NO_PAGER, set USE_PAGER to zero. The same
  1326. thing is done with OPT_BATCH, because the pager is just harmful
  1327. in batch mode.
  1328. 2002-02-08 Yoshinori K. Okuji <okuji@enbug.org>
  1329. * stage2/builtins.c (help_func): Show all the commands runnable
  1330. with the command-line interface, if "--all" is specified.
  1331. 2002-02-08 Yoshinori K. Okuji <okuji@enbug.org>
  1332. An internal pager is implemented.
  1333. * stage2/builtins.c (pager_func): New function.
  1334. (builtin_pager): New variable.
  1335. (terminal_func): New option, "--lines=LINES" is added. If this
  1336. option is specified, set MAX_LINES to the value. Otherwise, set
  1337. MAX_LINES to 24.
  1338. (vbeprobe_func): Remove the pager code specific to this
  1339. function.
  1340. (builtin_table): Added a pointer to BUILTIN_PAGER.
  1341. * stage2/char_io.c (max_lines) [!STAGE1_5]: New variable.
  1342. (count_lines) [!STAGE1_5]: Likewise.
  1343. (use_pager) [!STAGE1_5]: Likewise.
  1344. (grub_putchar) [!STAGE1_5]: if C is a newline and COUNT_LINES is
  1345. not -1, count up the number of lines. If it exceeds the maximum
  1346. number of lines minus 2, show a message and wait for input of
  1347. return key. "minus 2" is to reserve space for the message
  1348. printed by this internal pager.
  1349. * stage2/cmdline.c (enter_cmdline): If USE_PAGER is true, set
  1350. COUNT_LINES to zero, before running a command, and reset
  1351. COUNT_LINES to -1 after that.
  1352. * stage2/shared.h (max_lines) [!STAGE1_5]: Declared.
  1353. (count_lines) [!STAGE1_5]: Likewise.
  1354. (use_pager) [!STAGE1_5]: Likewise.
  1355. 2002-02-08 Yoshinori K. Okuji <okuji@enbug.org>
  1356. * stage2/fsys_jfs.c (jfs_read) [STAGE1_5]: Set and reset
  1357. DISK_READ_FUNC even in Stage 1.5.
  1358. * stage2/fsys_xfs.c (xfs_read) [STAGE1_5]: Likewise.
  1359. * stage2/stage1_5.c (saved_sector): Initialized with -1.
  1360. (cmain): Check if SAVED_SECTOR was set appropriately after
  1361. reading the second sector of Stage 2. If SAVED_SECTOR is not
  1362. set (i.e. it is equal to -1), print an error and stop.
  1363. 2002-02-05 Yoshinori K. Okuji <okuji@enbug.org>
  1364. * stage2/builtins.c (setup_func): Add a VSTa fs entry into
  1365. STAGE1_5_MAP.
  1366. 2002-02-05 Yoshinori K. Okuji <okuji@enbug.org>
  1367. * stage2/shared.h (BUILTIN_HELP_LIST): New macro. Used for
  1368. commands whose help messages are listed when no argument is
  1369. specified to the command "help".
  1370. * stage2/builtins.c (builtin_blocklist): Added the attribute
  1371. BUILTIN_HELP_LIST.
  1372. (builtin_boot): Likewise.
  1373. (builtin_bootp): Likewise.
  1374. (builtin_cat): Likewise.
  1375. (builtin_chainloader): Likewise.
  1376. (builtin_color): Likewise.
  1377. (builtin_configfile): Likewise.
  1378. (builtin_device): Likewise.
  1379. (builtin_dhcp): Likewise.
  1380. (builtin_displayapm): Likewise.
  1381. (builtin_displaymem): Likewise.
  1382. (builtin_find): Likewise.
  1383. (builtin_geometry): Likewise.
  1384. (builtin_halt): Likewise.
  1385. (builtin_help): Likewise.
  1386. (builtin_hide): Likewise.
  1387. (builtin_ifconfig): Likewise.
  1388. (builtin_initrd): Likewise.
  1389. (builtin_kernel): Likewise.
  1390. (builtin_makeactive): Likewise.
  1391. (builtin_map): Likewise.
  1392. (builtin_md5crypt): Likewise.
  1393. (builtin_module): Likewise.
  1394. (builtin_modulenounzip): Likewise.
  1395. (builtin_partnew): Likewise.
  1396. (builtin_parttype): Likewise.
  1397. (builtin_quit): Likewise.
  1398. (builtin_rarp): Likewise.
  1399. (builtin_reboot): Likewise.
  1400. (builtin_root): Likewise.
  1401. (builtin_rootnoverify): Likewise.
  1402. (builtin_serial): Likewise.
  1403. (builtin_setkey): Likewise.
  1404. (builtin_setup): Likewise.
  1405. (builtin_terminal): Likewise.
  1406. (builtin_testvbe): Likewise.
  1407. (builtin_tftpserver): Likewise.
  1408. (builtin_unhide): Likewise.
  1409. (builtin_uppermem): Likewise.
  1410. (builtin_vbeprobe): Likewise.
  1411. (help_func): When no argument is specified, if the last entry
  1412. was at the left column, print an extra newline.
  1413. 2002-02-05 Yoshinori K. Okuji <okuji@enbug.org>
  1414. * stage2/shared.h (BUILTIN_HIDDEN): Renamed to ...
  1415. (BUILTIN_NO_ECHO): ... this. The old name was too difficult to
  1416. see _what_ was hidden.
  1417. 2002-02-05 Yoshinori K. Okuji <okuji@enbug.org>
  1418. * netboot/misc.c (twiddle): Go back to the bar progress, copied
  1419. from etherboot-5.0.5/src/misc.c. Execute the code only if DEBUG
  1420. is true.
  1421. 2002-02-05 Yoshinori K. Okuji <okuji@enbug.org>
  1422. * stage2/builtins.c (displaymem_func): Use hex digits to display
  1423. for consistency.
  1424. 2002-02-04 Jason Thomas <jason@topic.com.ah>
  1425. From Denis Kitzman <dkitzman@blue.weeg.uiowa.edu>:
  1426. * stage2/Makefile.am (libgrub_a_CFLAGS): Fixed a typo.
  1427. FSYS_XFS, USE_MD5_PASSWORDS, SUPPORT_SERIAL, and
  1428. SUPPORT_HERCULES did not get defined.
  1429. 2002-01-20 Yoshinori K. Okuji <okuji@gnu.org>
  1430. * util/grub-image.in: Check stage2 instead of stage2.c to
  1431. determine where the script is invoked, because srcdir may not
  1432. be used for the compilation.
  1433. 2002-01-20 Yoshinori K. Okuji <okuji@gnu.org>
  1434. * grub/asmstub.c (console_putchar): When not using curses,
  1435. ignore a carriage return, because a newline in Unix is only a
  1436. line feed.
  1437. 2002-01-18 Klaus Reichl <Klaus.Reichl@alcatel.at>
  1438. * stage2/fsys_minix.c (minix_dir): Fixed bug getting filenames
  1439. with MAXNAMELEN right.
  1440. * stage2/char_io.c (get_cmdline, cl_refresh): If TERMINAL_DUMB
  1441. section is always 0.
  1442. Line is only cleared if !TERMINAL_DUMB.
  1443. * grub/main.c (use_curses): Initialize to 0 if !HAVE_LIBCURSES
  1444. (main): Check for curses use and set terminal to dumb if we
  1445. don't use it (helps for --batch and variants of non-curses
  1446. setup).
  1447. 2002-01-15 Yoshinori K. Okuji <okuji@gnu.org>
  1448. * configure.in (AM_INIT_AUTOMAKE): The version number is
  1449. upgraded to 0.91.
  1450. 2002-01-15 Yoshinori K. Okuji <okuji@gnu.org>
  1451. * docs/grub.texi (Preset Menu): New chapter.
  1452. 2002-01-15 Yoshinori K. Okuji <okuji@gnu.org>
  1453. * docs/grub.texi: Added some text about JFS and XFS.
  1454. 2002-01-08 Yoshinori K. Okuji <okuji@gnu.org>
  1455. * grub/main.c (use_preset_menu): New variable.
  1456. (OPT_PRESET_MENU): New macro.
  1457. (longopts): Added an entry for "--preset-menu".
  1458. (usage): Added a description for "--preset-menu". Also, change
  1459. the first character of the description for "--device-map" to
  1460. lower case for consistency.
  1461. (main): Set USE_PRESET_MENU to 1 in the case of OPT_PRESET_MENU.
  1462. * stage2/shared.h (use_preset_menu): Declared.
  1463. * stage2/stage2.c [PRESET_MENU_STRING || SUPPORT_DISKLESS]
  1464. (open_preset_menu) [GRUB_UTIL]: If USE_PRESET_MENU is false,
  1465. return zero immediately.
  1466. 2002-01-08 Yoshinori K. Okuji <okuji@gnu.org>
  1467. * stage2/common.c [SUPPORT_DISKLESS]
  1468. (setup_diskless_environment): Removed. The feature is moved to
  1469. the preset menu.
  1470. * stage2/stage2.c [SUPPORT_DISKLESS] (preset_menu): Set to the
  1471. string "bootp\n".
  1472. [SUPPORT_DISKLESS] (preset_menu_offset): Defined, as if
  1473. PRESET_MENU_STRING is defined.
  1474. [SUPPORT_DISKLESS] (open_preset_menu): Likewise.
  1475. [SUPPORT_DISKLESS] (read_from_preset_menu): Likewise.
  1476. [SUPPORT_DISKLESS] (close_preset_menu): Likewise.
  1477. 2002-01-06 Yoshinori K. Okuji <okuji@gnu.org>
  1478. The preset menu has a priority over the configuration file.
  1479. Suggested by Christoph Plattner.
  1480. * stage2/stage2.c [PRESET_MENU_STRING] (open_preset_menu):
  1481. Check if PRESET_MENU is not NULL.
  1482. [PRESET_MENU_STRING] (close_preset_menu): Set PRESET_MENU to
  1483. NULL.
  1484. (cmain): New internal function, reset. This function resets
  1485. AUTO_FILL, CONFIG_LEN, MENU_LEN, NUM_ENTRIES, CONFIG_ENTRIES,
  1486. MENU_ENTRIES and call init_config.
  1487. Try to open the preset menu first, and try to open the
  1488. configuration file, only if that failed.
  1489. Even if the preset menu was read, try to open the configuration
  1490. file. This time, opening the preset menu never succeed, because
  1491. close_preset_menu ensures that the preset menu is available at
  1492. most once.
  1493. 2002-01-06 Yoshinori K. Okuji <okuji@gnu.org>
  1494. * netboot/misc.c (inet_aton): Don't check if *P is an asterisk,
  1495. if I is 3. Reported by Rick (his real name and address are
  1496. unknown).
  1497. 2002-01-03 Yoshinori K. Okuji <okuji@gnu.org>
  1498. Update the netboot stuff to Etherboot-5.0.5.
  1499. * configure.in (--enable-3c590): Removed. This was a mistake.
  1500. (--enable-davicom): New option.
  1501. (--enable-eepro): Likewise.
  1502. (--enable-natsemi): Likewise.
  1503. (--enable-ni5010): Likewise.
  1504. (--enable-sis900): Likewise.
  1505. (--enable-w89c840): Likewise.
  1506. (--enable-3c509-hack): Removed.
  1507. (--enable-ns8390-force-16bit): Likewise.
  1508. * netboot/Makefile.am (libdrivers_a_SOURCES): Added timer.c and
  1509. timer.h.
  1510. (EXTRA_libdrivers_a_SOURCES): Added davicom.c, eepro.c, fa311.c,
  1511. natsemi.c, ni5010.c, sis900.c, sis900.h, tlan.c and w89c840.c.
  1512. (EXTRA_DIST): Added sis900.txt.
  1513. (3c595_drivers): Remove 3c590.o from this.
  1514. (davicom_drivers): New variable.
  1515. (eepro_drivers): Likewise.
  1516. (natsemi_drivers): Likewise.
  1517. (ni5010_drivers): Likewise.
  1518. (sis900_drivers): Likewise.
  1519. (w89c840_drivers): Likewise.
  1520. (3c590_o_CFLAGS): Removed.
  1521. (davicom_o_CFLAGS): New variable.
  1522. (eepro_o_CFLAGS): Likewise.
  1523. (natsemi_o_CFLAGS): Likewise.
  1524. (ni5010_o_CFLAGS): Likewise.
  1525. (sis900_o_CFLAGS): Likewise.
  1526. (w89c840_o_CFLAGS): Likewise.
  1527. * netboot/davicom.c: New file, from Etherboot-5.0.5.
  1528. * netboot/eepro.c: Likewise.
  1529. * netboot/natsemi.c: Likewise.
  1530. * netboot/ni5010.c: Likewise.
  1531. * netboot/sis900.c: Likewise.
  1532. * netboot/sis900.h: Likewise.
  1533. * netboot/sis900.txt: Likewise.
  1534. * netboot/timer.c: Likewise.
  1535. * netboot/timer.h: Likewise.
  1536. * netboot/w89c840.c: Likewise.
  1537. * netboot/fa311.c: Likewise.
  1538. * netboot/tlan.c: Likewise.
  1539. * netboot/3c509.c: Copied from Etherboot-5.0.5.
  1540. * netboot/3c509.h: Likewise.
  1541. * netboot/3c595.c: Likewise.
  1542. * netboot/3c90x.c: Likewise.
  1543. * netboot/3c90x.txt: Likewise.
  1544. * netboot/cards.h: Likewise.
  1545. * netboot/cs89x0.c: Likewise.
  1546. * netboot/depca.c: Likewise.
  1547. * netboot/eepro100.c: Likewise.
  1548. * netboot/epic100.c: Likewise.
  1549. * netboot/i82586.c: Likewise.
  1550. * netboot/lance.c: Likewise.
  1551. * netboot/linux-asm-string.h: Likewise.
  1552. * netboot/nic.h: Likewise.
  1553. * netboot/ns8390.c: Likewise.
  1554. * netboot/ns8390.h: Likewise.
  1555. * netboot/otulip.c: Likewise.
  1556. * netboot/pci.h: Likewise.
  1557. * netboot/rtl8139.c: Likewise.
  1558. * netboot/sk_g16.c: Likewise.
  1559. * netboot/smc9000.c: Likewise.
  1560. * netboot/tiara.c: Likewise.
  1561. * netboot/tulip.c: Likewise.
  1562. * netboot/via-rhine.c: Likewise.
  1563. * netboot/config.c: Applied a diff between Etherboot-4.6.4 and
  1564. Etherboot-5.0.5 manually.
  1565. * netboot/main.c: Likewise.
  1566. * netboot/pci.c: Likewise.
  1567. * netboot/etherboot.h: Rewritten mostly from scratch, based on
  1568. the same file in Etherboot-5.0.5.
  1569. * netboot/misc.c: Likewise.
  1570. * netboot/osdep.h: Likewise.
  1571. * netboot/fsys_tftp.c (GRUB): Defined.
  1572. (buf_fill): Use rfc2131_sleep_interval instead of rfc951_sleep.
  1573. * stage2/builtins.c [SUPPORT_NETBOOT] (GRUB): Defined.
  1574. (boot_func) [SUPPORT_NETBOOT]: Call cleanup_net.
  1575. * stage2/cmdline.c [SUPPORT_DISKLESS] (GRUB): Defined.
  1576. * stage2/common.c [SUPPORT_DISKLESS] (GRUB): Likewise.
  1577. 2002-01-02 Jeremy Katz <katzj@redhat.com>
  1578. * util/grub-install.in: Support using mktemp as well as tempfile
  1579. for secure temporary file creation.
  1580. 2002-01-02 Jeremy Katz <katzj@redhat.com>
  1581. * stage2/md5.c (md5_password): Ensure the password exists before
  1582. trying to check against the md5 crypted version.
  1583. 2001-12-30 Yoshinori K. Okuji <okuji@gnu.org>
  1584. * stage1/stage1.S: Don't call INT 13, AH=48H, because it is
  1585. difficult to call this function with the workaround implemented
  1586. in the previous change due to the size limit of Stage 1.
  1587. (lba_mode) [NO_BUGGY_BIOS_IN_THE_WORLD]: Don't check the
  1588. geometry explicitly. This shouldn't be harmful, as INT 13,
  1589. AH=42H should take care of it, and if you cannot read Stage 2
  1590. even with LBA because of a geometry problem, you can never read
  1591. it.
  1592. * stage2/start.S (lba_mode) [NO_BUGGY_BIOS_IN_THE_WORLD]:
  1593. Likewise.
  1594. 2001-12-30 Yoshinori K. Okuji <okuji@gnu.org>
  1595. * stage2/bios.c (get_diskinfo): Clear out the structure DRP
  1596. before calling get_diskinfo_int13_extensions, because the Ralf
  1597. Brown's Interrupt List says that Dell machines using PhoenixBIOS
  1598. 4.0 Release 6.0 fail, if DRP.FLAGS is not zero. Setting the
  1599. entire structure to zero may be overkill, but it should be safe.
  1600. * stage2/char_io.c [STAGE1_5] (grub_memset): Defined.
  1601. 2001-12-30 Yoshinori K. Okuji <okuji@gnu.org>
  1602. From John Goerzen <jgoerzen@complete.org>:
  1603. * util/grub-install.in (convert): Added NetBSD support.
  1604. 2001-12-30 Yoshinori K. Okuji <okuji@gnu.org>
  1605. * util/grub-install.in: Set GRUB_PREFIX and BOOTDIR to "/grub"
  1606. and "${rootdir}" respectively in NetBSD.
  1607. 2001-12-30 Yoshinori K. Okuji <okuji@gnu.org>
  1608. * stage2/builtins.c (builtin_geometry): Add extra space
  1609. characters into the long description.
  1610. (builtin_kernel): Likewise.
  1611. (builtin_vbeprobe): Likewise.
  1612. 2001-12-19 Yoshinori K. Okuji <okuji@gnu.org>
  1613. From Michael Sullivan <mike@trdlnk.com>:
  1614. * stage1/stage1.S (real_start): Added a workaround for AST BIOS,
  1615. because it clobbers %dl with INT 13, AH=41H.
  1616. 2001-12-19 Yoshinori K. Okuji <okuji@gnu.org>
  1617. * stage2/fsys_fat.c (fat_read): Fix the contradictory comment.
  1618. Reported by Filip Van Raemdonck <mechanix@digibel.org>.
  1619. 2001-12-11 Yoshinori K. Okuji <okuji@gnu.org>
  1620. * stage2/builtins.c (displayapm_func): Don't use multi-line
  1621. string literals but string concatenation instead, to suppress
  1622. warnings from gcc-3.0.x.
  1623. * stage2/cmdline.c (print_cmdline_message): Likewise.
  1624. * util/mbchk.c (usage): Likewise.
  1625. * stage2/smp-imps.c (imps_read_config_table): Add a break
  1626. statement after the label ``default''.
  1627. * util/mbchk.c: Include <stdlib.h> for the prototype of exit.
  1628. * stage2/serial.c (serial_port): Initialize with 0 instead of
  1629. -1, as an invalid value, because SERIAL_PORT is unsigned. This
  1630. change shouldn't affect anything.
  1631. (serial_exists): For the above change, check SERIAL_PORT with 0
  1632. instead of -1.
  1633. 2001-12-10 Yoshinori K. Okuji <okuji@gnu.org>
  1634. * stage2/shared.h (ERR_NO_DISK_SPACE): New constant.
  1635. * stage2/common.c (err_list): Added an entry for
  1636. ERR_NO_DISK_SPACE.
  1637. * docs/grub.texi (Stage2 errors): Added the description.
  1638. * stage2/builtins.c (embed_func): Use ERR_NO_DISK_SPACE instead
  1639. of ERR_DEV_VALUES when the spare space is too small. Suggested
  1640. by Eric Mumpower <nocturne@permabit.com>.
  1641. 2001-12-10 Yoshinori K. Okuji <okuji@gnu.org>
  1642. * grub/asmstub.c: Include <signal.h>.
  1643. (grub_stage2) [HAVE_LIBCURSES]: If USE_CURSES is true, ignore
  1644. the signal SIGWINCH. Reported by Christian Hudon
  1645. <chrish@debian.org>.
  1646. 2001-11-29 Yoshinori K. Okuji <okuji@gnu.org>
  1647. From Jason Thomas:
  1648. * stage2/disk_io.c (set_partition_hidden_flag): Complete rewrite
  1649. of this function which now supports logical partitions.
  1650. 2001-11-12 Yoshinori K. Okuji <okuji@gnu.org>
  1651. * docs/grub.texi: The copyright of this file is only held by
  1652. Free Software Foundation, Inc., as Erich Boleyn has assigned his
  1653. copyright to the FSF.
  1654. * stage1/stage1.S: Likewise.
  1655. * stage2/asm.S: Likewise.
  1656. * stage2/boot.c: Likewise.
  1657. * stage2/builtins.c: Likewise.
  1658. * stage2/char_io.c: Likewise.
  1659. * stage2/cmdline.c: Likewise.
  1660. * stage2/common.c: Likewise.
  1661. * stage2/disk_io.c: Likewise.
  1662. * stage2/fat.h: Likewise.
  1663. * stage2/filesys.h: Likewise.
  1664. * stage2/freebsd.h: Likewise.
  1665. * stage2/fsys_ext2fs.c: Likewise.
  1666. * stage2/fsys_fat.c: Likewise.
  1667. * stage2/fsys_ffs.c: Likewise.
  1668. * stage2/gunzip.c: Likewise.
  1669. * stage2/i386-elf.h: Likewise.
  1670. * stage2/mb_header.h: Likewise.
  1671. * stage2/mb_info.h: Likewise.
  1672. * stage2/pc_slice.h: Likewise.
  1673. * stage2/shared.h: Likewise.
  1674. * stage2/stage1_5.c: Likewise.
  1675. * stage2/stage2.c: Likewise.
  1676. * stage2/start.S: Likewise.
  1677. 2001-11-07 Yoshinori K. Okuji <okuji@gnu.org>
  1678. * stage2/builtins.c (terminal_func) [!SUPPORT_SERIAL]: Disable
  1679. the wait code, as it is usable only when serial support is on.
  1680. Reported by Karl Hammar <karl@kalle.csb.ki.se>.
  1681. 2001-10-27 Yoshinori K. Okuji <okuji@gnu.org>
  1682. JFS and XFS support is added.
  1683. From Serguei Tzukanov <tzukanov@narod.ru>:
  1684. * configure.in (--disable-jfs): New option.
  1685. (--disable-xfs): Likewise.
  1686. * stage2/Makefile.am (noinst_HEADERS): Added jfs.h and xfs.h.
  1687. (libgrub_a_SOURCES): Added fsys_jfs.c and fsys_xfs.c.
  1688. (libgrub_a_CFLAGS): Added -DFSYS_JFS=1 and -DFSYS_XFS=1.
  1689. (pkgdata_DATA): Added jfs_stage1_5 and xfs_stage1_5.
  1690. (noinst_PROGRAMS): Added jfs_stage1_5.exec and
  1691. xfs_stage1_5.exec.
  1692. (pre_stage2_exec_SOURCES): Added fsys_jfs.c and fsys_xfs.c.
  1693. (jfs_stage1_5_exec_SOURCES): New variable.
  1694. (jfs_stage1_5_exec_CFLAGS): Likewise.
  1695. (jfs_stage1_5_exec_ASFLAGS): Likewise.
  1696. (jfs_stage1_5_exec_LDFLAGS): Likewise.
  1697. (xfs_stage1_5_exec_SOURCES): Likewise.
  1698. (xfs_stage1_5_exec_CFLAGS): Likewise.
  1699. (xfs_stage1_5_exec_ASFLAGS): Likewise.
  1700. (xfs_stage1_5_exec_LDFLAGS): Likewise.
  1701. * stage2/builtins.c (setup_func): Add items for JFS and XFS into
  1702. STAGE1_5_MAP.
  1703. * stage2/disk_io.c (fsys_table): Added entries for JFS and XFS.
  1704. * stage2/filesys.h [FSYS_JFS] (FSYS_JFS_NUM): Set to 1.
  1705. [FSYS_JFS] (jfs_mount): Declared.
  1706. [FSYS_JFS] (jfs_read): Likewise.
  1707. [FSYS_JFS] (jfs_dir): Likewise.
  1708. [FSYS_JFS] (jfs_embed): Likewise.
  1709. [!FSYS_JFS] (FSYS_JFS_NUM): Set to 0.
  1710. [FSYS_XFS] (FSYS_XFS_NUM): Set to 1.
  1711. [FSYS_XFS] (xfs_mount): Declared.
  1712. [FSYS_XFS] (xfs_read): Likewise.
  1713. [FSYS_XFS] (xfs_dir): Likewise.
  1714. (NUM_FSYS): Added FSYS_JFS_NUM and FSYS_XFS_NUM.
  1715. * stage2/shared.h (STAGE2_ID_JFS_STAGE1_5): New macro.
  1716. (STAGE2_ID_XFS_STAGE1_5): Likewise.
  1717. [FSYS_JFS] (STAGE2_ID): Set to STAGE2_ID_JFS_STAGE1_5.
  1718. [FSYS_XFS] (STAGE2_ID): Set to STAGE2_ID_XFS_STAGE1_5.
  1719. * stage2/fsys_jfs.c: New file.
  1720. * stage2/fsys_xfs.c: Likewise.
  1721. * stage2/jfs.h: Likewise.
  1722. * stage2/xfs.h: Likewise.
  1723. 2001-10-27 Yoshinori K. Okuji <okuji@gnu.org>
  1724. * stage2/apm.S: Always disconnect from APM. Written by Erich
  1725. Stefan Boleyn.
  1726. * util/Makefile.am (noinst_DATA): Removed.
  1727. (EXTRA_DIST): Likewise.
  1728. 2001-10-14 Gordon Matzigkeit <gord@fig.org>
  1729. * configure.in: Explicitly call _AM_DEPENDENCIES(CC) for the
  1730. benefit of older Autoconfs.
  1731. 2001-10-13 Yoshinori K. Okuji <okuji@gnu.org>
  1732. * netboot/fsys_tftp.c (tftp_read): Move the unused data
  1733. forwards, only if AMT is more than zero. If AMT is not positive,
  1734. subtract BUF_READ from SAVED_FILEPOS and set BUF_READ to zero,
  1735. to skip the whole buffer. Reported by Frank Mehnert.
  1736. 2001-10-13 Yoshinori K. Okuji <okuji@gnu.org>
  1737. Don't use get_diskinfo_floppy. Reported by Ben Liblit
  1738. <liblit@eecs.berkeley.edu>.
  1739. * stage2/asm.S (get_diskinfo_floppy): Removed (by cpp).
  1740. * stage2/bios.c (get_diskinfo_floppy): Removed.
  1741. (get_diskinfo): Don't call get_diskinfo_floppy any longer.
  1742. 2001-10-13 Yoshinori K. Okuji <okuji@gnu.org>
  1743. Based on a patch from Jeremy Katz <katzj@redhat.com>:
  1744. * docs/grub.texi (Stage2 errors): Added documentation on the
  1745. error number 33 (Serial device not configured).
  1746. * grub/asmstub.c (serial_exists): New function.
  1747. * stage2/serial.c (serial_exists): Likewise.
  1748. * stage2/serial.h (serial_exists): New prototype.
  1749. * stage2/shared.h (grub_error_t): ERR_NEED_SERIAL is added.
  1750. * stage2/builtins.c (terminal_func) [SUPPORT_SERIAL]: If a
  1751. serial device is not configured yet, restore the terminal and
  1752. set ERRNUM to ERR_NEED_SERIAL.
  1753. * stage2/common.c (err_list): Added an item for ERR_NEED_SERIAL.
  1754. 2001-10-13 Yoshinori K. Okuji <okuji@gnu.org>
  1755. From Jason Thomas <jason@topic.com.au>:
  1756. * util/grub-install.in (convert): Add support for DAC960.
  1757. From Adrian Phillips <a.phillips@dnmi.no>:
  1758. * lib/device.c (get_dac960_disk_name): New function.
  1759. (init_device_map) [__linux__]: Add support for DAC960.
  1760. 2001-10-11 Jochen Hoenicke <jochen@gnu.org>
  1761. * stage2/fsys_reiserfs.c (reiserfs_super_block): Updated
  1762. to better match recent reiserfs versions.
  1763. (reiserfs_mount): Handle cases where journal can't be found,
  1764. e.g. journal on another disk or unexpected journal parameters.
  1765. In that case the journal isn't used.
  1766. 2001-10-10 Jochen Hoenicke <jochen@gnu.org>
  1767. * stage2/fsys_reiserfs.c (reiserfs_mount): Don't look at
  1768. the superblock field s_journal_block_count anymore. It used
  1769. to contain 0, it never contained a valid value, and now I
  1770. have a report that it can contain an invalid value.
  1771. Bug reported by Jim Caley <caley@chesco.com>.
  1772. 2001-09-24 Jochen Hoenicke <jochen@gnu.org>
  1773. * stage2/fsys_reiserfs.c (reiserfs_dir): Set errnum to
  1774. ERR_FSYS_CORRUPT if a symlink can't be read for some reason,
  1775. but no error is set by read.
  1776. 2001-08-08 OKUJI Yoshinori <okuji@gnu.org>
  1777. From Derrik Pates <dpates@dsdk12.net>:
  1778. * stage2/asm.S [!STAGE1_5] (grub_halt): Set the level of APM
  1779. support to 1.1, before turning off the power state.
  1780. 2001-08-08 OKUJI Yoshinori <okuji@gnu.org>
  1781. * util/grub-md5-crypt.in: Prefix backquotes with backslashes in
  1782. strings. From Fernando Silveira.
  1783. 2001-08-02 Gordon Matzigkeit <gord@fig.org>
  1784. * stage2/common.c (init_bios_info): Ignore zero-length memory
  1785. ranges. From Derrik Pates <dpates@dsdk12.net>.
  1786. 2001-07-26 Jochen Hoenicke <jochen@gnu.org>
  1787. * stage2/Makefile.am (libgrub_a_CFLAGS): Enable USE_MD5_PASSWORDS
  1788. for libgrub. Previously that was implicitly done by configure.in
  1789. until the patch from 2001-07-04, which moved that flag from CFLAGS
  1790. to FSYS_CFLAGS. Reported by YAMAGUCHI Shingo
  1791. <shingo@kip.iis.toyama-u.ac.jp>
  1792. 2001-07-13 OKUJI Yoshinori <okuji@gnu.org>
  1793. * util/grub-install.in (convert): Recognize the naming scheme
  1794. for Linux devfs floppy devices. Reported by Jason Thomas
  1795. <jason@topic.com.au>.
  1796. 2001-07-07 OKUJI Yoshinori <okuji@gnu.org>
  1797. * netboot/compile: New file. This was also missing... How many
  1798. ``compile''s does automake want?
  1799. 2001-07-07 OKUJI Yoshinori <okuji@gnu.org>
  1800. From Jan Zerebecki <jan.list@elite-pferde.de>:
  1801. * acinclude.m4 (grub_DEFINE_FILE): Escape double-quotations as
  1802. well.
  1803. 2001-07-05 OKUJI Yoshinori <okuji@gnu.org>
  1804. * configure.in (AM_INIT_AUTOMAKE): Set the version number to
  1805. 0.90.
  1806. 2001-07-05 OKUJI Yoshinori <okuji@gnu.org>
  1807. Ughh! I forgot to add this file to the CVS.
  1808. * docs/compile: New file.
  1809. 2001-07-05 OKUJI Yoshinori <okuji@gnu.org>
  1810. * docs/grub.texi: Updated.
  1811. 2001-07-05 OKUJI Yoshinori <okuji@gnu.org>
  1812. * stage2/boot.c (load_initrd) [!NO_DECOMPRESSION]: Set
  1813. NO_DECOMPRESSION to one before opening INITRD, so that GRUB
  1814. doesn't decompress an initrd automatically. Reported by
  1815. Thierry Laronde.
  1816. 2001-07-04 OKUJI Yoshinori <okuji@gnu.org>
  1817. * stage2/compile: New file.
  1818. * docs/mdate-sh: Likewise.
  1819. * docs/texinfo.tex: Likewise.
  1820. * compile: Removed.
  1821. * mdate-sh: Likewise.
  1822. * texinfo.tex: Likewise.
  1823. * config.guess: Updated from automake-1.4h.
  1824. * config.sub: Likewise.
  1825. * depcomp: Likewise.
  1826. * install-sh: Likewise.
  1827. * missing: Likewise.
  1828. * mkinstalldirs: Likewise.
  1829. * configure.in (AS): New variable.
  1830. (ASFLAGS): Likewise.
  1831. (--disable-md5-password): Use FSYS_CFLAGS instead of CFLAGS.
  1832. * stage1/Makefile.am (AM_CFLAGS): Renamed to ...
  1833. (AM_ASFLAGS): ... this.
  1834. * stage2/Makefile.am (pre_stage2_exec_ASFLAGS): New variable.
  1835. (start_exec_CFLAGS): Renamed to ...
  1836. (start_exec_ASFLAGS): ... this.
  1837. (start_exec-start.o): Renamed to ...
  1838. (start_exec-start.$(OBJEXT)): ... this.
  1839. (e2fs_stage1_5_exec_ASFLAGS): New variable.
  1840. (fat_stage1_5_exec_ASFLAGS): Likewise.
  1841. (ffs_stage1_5_exec_ASFLAGS): Likewise.
  1842. (minix_stage1_5_exec_ASFLAGS): Likewise.
  1843. (reiserfs_stage1_5_exec_ASFLAGS): Likewise.
  1844. (vstafs_stage1_5_exec_ASFLAGS): Likewise.
  1845. (diskless_exec_ASFLAGS): Likewise.
  1846. (nbloader_exec_CFLAGS): Renamed to ...
  1847. (nbloader_exec_ASFLAGS): ... this.
  1848. (nbloader_exec-nbloader.o): Renamed to ...
  1849. (nbloader_exec-nbloader.$(OBJEXT)): ... this.
  1850. (pxeloader_exec_CFLAGS): Renamed to ...
  1851. (pxeloader_exec_ASFLAGS): ... this.
  1852. (pxeloader_exec-pxeloader.$(OBJEXT)): New target.
  1853. 2001-07-03 OKUJI Yoshinori <okuji@gnu.org>
  1854. From Julien Bordet <julien.bordet@int-evry.fr>:
  1855. * stage2/i386-elf.h (Elf32_Shdr): New type.
  1856. * stage2/boot.c (load_image): Added ELF symbol loading support.
  1857. 2001-06-22 OKUJI Yoshinori <okuji@gnu.org>
  1858. * stage2/char_io.c [STAGE1_5] (grub_strcmp): Defined, even
  1859. for Stage 1.5. See thecomment, for a possible future strategy.
  1860. * stage2/fsys_vstafs.c [!FSYS_VSTAFS]: Don't define anything.
  1861. [STAGE1_5] (grub_strcmp): Removed.
  1862. (get_file_info): Made static.
  1863. (vstafs_readdir): Likewise.
  1864. (vstafs_nextdir): Likewise.
  1865. (curr_ext): Likewise.
  1866. (current_direntry): Likewise.
  1867. (current_blockpos): Likewise.
  1868. (a): Likewise.
  1869. 2001-06-22 OKUJI Yoshinori <okuji@gnu.org>
  1870. VSTa filesystem support is added.
  1871. From Kristoffer Brånemyr <ztion@swipnet.se>:
  1872. * stage2/configure.in (--disable-vstafs): New option.
  1873. * stage2/Makefile.am (noinst_HEADERS): Added vstafs.h.
  1874. (libgrub_a_SOURCES): Added fsys_vstafs.c.
  1875. (libgrub_a_CFLAGS): Added -DFSYS_VSTAFS=1.
  1876. (pkgdata_DATA): Added vstafs_stage1_5.
  1877. (noinst_PROGRAMS): Added vstafs_stage1_5.exec.
  1878. (pre_stage2_exec_SOURCES): Added fsys_vstafs.c.
  1879. (vstafs_stage1_5_exec_SOURCES): New variable.
  1880. (vstafs_stage1_5_exec_CFLAGS): Likewise.
  1881. (vstafs_stage1_5_exec_LDFLAGS): Likewise.
  1882. * stage2/disk_io.c (fsys_table): Added an entry for vstafs.
  1883. * stage2/filesys.h [FSYS_VSTAFS] (FSYS_VSTAFS_NUM): Defined as
  1884. 1.
  1885. [FSYS_VSTAFS] (vstafs_mount): New prototype.
  1886. [FSYS_VSTAFS] (vstafs_read): Likewise.
  1887. [FSYS_VSTAFS] (vstafs_dir): Likewise.
  1888. [!FSYS_VSTAFS] (FSYS_VSTAFS_NUM): Defined as 0.
  1889. (NUM_FSYS): Added FSYS_VSTAFS_NUM.
  1890. * stage2/pc_slice.h (PC_SLICE_TYPE_VSTAFS): New macro.
  1891. * stage2/shared.h (STAGE2_ID_VSTAFS_STAGE1_5): Likewise.
  1892. [STAGE1_5 && FSYS_VSTAFS] (STAGE2_ID): Defined as
  1893. STAGE2_ID_VSTAFS_STAGE1_5.
  1894. * stage2/vstafs.h: New file.
  1895. * stage2/fsys_vstafs.c: Likewise.
  1896. 2001-06-22 OKUJI Yoshinori <okuji@gnu.org>
  1897. From Thierry Laronde <thierry@cri74.org>:
  1898. * stage2/builtins.c (configfile_func): Added a prototype.
  1899. (bootp_func): If `--with-configfile' is given, set
  1900. WITH_CONFIGFILE to one, and call configfile_func with
  1901. CONFIG_FILE.
  1902. 2001-06-21 OKUJI Yoshinori <okuji@gnu.org>
  1903. * docs/grub.texi: Update the location of the CVS repository
  1904. [/home/cvs -> /cvsroot/grub].
  1905. * README: Likewise.
  1906. 2001-06-19 OKUJI Yoshinori <okuji@gnu.org>
  1907. * stage2/boot.c (load_image): If the image is a Multiboot ELF OS
  1908. image, get the physical entry address, when a loaded memory
  1909. segment contains it. And, set ENTRY_ADDR to it, after printing
  1910. out the virtual one. Suggested by Rogelio M. Serrano Jr.
  1911. <rogelio@victorio.com>.
  1912. 2001-05-30 OKUJI Yoshinori <okuji@gnu.org>
  1913. * docs/grub.texi: Fix some typos. Reported by Florian Hatat
  1914. <mininet@wanadoo.fr>.
  1915. 2001-05-29 Pavel Roskin <proski@gnu.org>
  1916. * configure.in (AC_OUTPUT): Remove debian/Makefile.
  1917. 2001-05-28 Gordon Matzigkeit <gord@fig.org>
  1918. * Makefile.am (SUBDIRS): Remove reference to debian directory.
  1919. Packaging is no longer done by the GRUB team.
  1920. 2001-05-03 Gordon Matzigkeit <gord@fig.org>
  1921. * stage1/stage1.S (nt_magic): Explicitly reserve space for the NT
  1922. magic number.
  1923. 2001-05-25 Klaus Reichl <Klaus.Reichl@alcatel.at>
  1924. * stage2/stage2.c (print_entries_raw): New function.
  1925. (run_menu): Use it to implement menu & command-list if on dumb
  1926. terminals.
  1927. Changes are:
  1928. Adjust FIRST_ENTRY only on non-dumb terminals.
  1929. Setting of SHOW_MENU is honoured also on dumb
  1930. terminals.
  1931. Likely if SHOW_MENU is false, ESC brings her to the
  1932. menu - not to the command-line as before.
  1933. PRINT_BORDER, GOTOXY, SET_LINE_xxx are only called if
  1934. not on dumb terminals.
  1935. Show entry number when timeout is running if terminal is dumb.
  1936. Prompt with entry number when waiting for keys.
  1937. 2001-05-14 Pavel Roskin <proski@gnu.org>
  1938. * stage2/shared.h (ENTRY): Remove unnecessary `##'.
  1939. 2001-05-03 Jochen Hoenicke <jochen@gnu.org>
  1940. * grub/asmstub.c (biosdisk): Work around a bug in linux's ez
  1941. remapping. Problem reported by Ben Byer <bbyer@rice.edu>.
  1942. 2001-03-28 Gordon Matzigkeit <gord@fig.org>
  1943. * stage2/boot.c (load_image): Don't cast entry_addr to an int, or
  1944. the top bit will be interpreted as the sign.
  1945. 2001-03-16 OKUJI Yoshinori <okuji@gnu.org>
  1946. From Bodo Rueskamp <br@itchigo.com>:
  1947. * stage2/boot.c (load_initrd): Avoid the last 64kb for
  1948. Linux 2.2.x bug.
  1949. 2001-03-03 OKUJI Yoshinori <okuji@gnu.org>
  1950. * docs/multiboot.texi (History): Written.
  1951. 2001-02-28 OKUJI Yoshinori <okuji@gnu.org>
  1952. From HASEGAWA Tomoki <thasegawa@mta.biglobe.ne.jp>:
  1953. * lib/device.c (get_ide_disk_name) [__FreeBSD__]: Add support
  1954. for FreeBSD-4.0 or later. Use "/dev/rad0".
  1955. * util/grub-install.in (convert): Add code for FreeBSD
  1956. disklabels.
  1957. 2001-02-28 OKUJI Yoshinori <okuji@gnu.org>
  1958. From Thierry Laronde <thierry@cri74.org>:
  1959. * stage2/stage2.c (cmain): If the default entry is wrong, set it
  1960. to FALLBACK_ENTRY if FALLBACK_ENTRY is valid, otherwise set it
  1961. to zero. Suggested by Nicolas Boos <nicolas.boos@wanadoo.fr>.
  1962. 2001-02-28 OKUJI Yoshinori <okuji@gnu.org>
  1963. * acconfig.h (AUTO_LINUX_MEM_OPT): New entry.
  1964. * configure.in (--disable-auto-linux-mem-opt): New option.
  1965. * stage2/builtins.c (kernel_func) [!AUTO_LINUX_MEM_OPT]: Add
  1966. KERNEL_LOAD_NO_MEM_OPTION into LOAD_FLAGS, whether the user
  1967. specifies --no-mem-option or not.
  1968. 2001-02-27 OKUJI Yoshinori <okuji@gnu.org>
  1969. * stage2/builtins.c (chainloader_func): Don't check if the
  1970. current partition is FAT, but check if it has a FAT partition
  1971. type and the BPB has a system id starting with "MSWIN".
  1972. 2001-02-27 OKUJI Yoshinori <okuji@gnu.org>
  1973. Added hercules support based on a patch by Frank Mehnert
  1974. <fm3@os.inf.tu-dresden.de>. I translated his assembly code into
  1975. C, and separated hercules from the normal console.
  1976. * configure.in (--disable-hercules): New option.
  1977. * grub/asmstub.c: Include <hercules.h>.
  1978. (set_attrib): Renamed to ...
  1979. (console_set_attrib): ... this.
  1980. (herc_cls): New function.
  1981. (herc_getxy): Likewise.
  1982. (herc_gotoxy): Likewise.
  1983. (herc_putchar): Likewise.
  1984. (herc_set_attrib): Likewise.
  1985. * stage2/Makefile.am (noinst_HEADERS): Added hercules.h.
  1986. (libgrub_a_CFLAGS): Added -DSUPPORT_HERCULES=1.
  1987. (HERCULES_FLAGS): New variable.
  1988. (STAGE2_COMPILE): Added $(HERCULES_FLAGS).
  1989. (pre_stage2_exec_SOURCES): Added hercules.c.
  1990. * stage2/asm.S [!STAGE1_5] (set_attrib) Renamed to ...
  1991. [!STAGE1_5] (console_set_attrib): ... this.
  1992. * stage2/builtins.c [SUPPORT_HERCULES] (terminal_func): Added
  1993. hercules support.
  1994. (builtin_table) [SUPPORT_HERCULES]: Added a pointer to
  1995. BUILTIN_TERMINAL.
  1996. * stage2/char_io.c [SUPPORT_HERCULES]: Include <hercules.h>.
  1997. [!STAGE1_5] (get_cmdline) [SUPPORT_HERCULES]: Added hercules
  1998. support.
  1999. [!STAGE1_5] (getkey) [SUPPORT_HERCULES]: Likewise.
  2000. [!STAGE1_5] (checkkey) [SUPPORT_HERCULES]: Likewise.
  2001. (grub_putchar) [SUPPORT_HERCULES]: Likewise.
  2002. [!STAGE1_5] (gotoxy) [SUPPORT_HERCULES]: Likewise.
  2003. [!STAGE1_5] (getxy) [SUPPORT_HERCULES]: Likewise.
  2004. [!STAGE1_5] (cls) [SUPPORT_HERCULES]: Likewise.
  2005. (set_attrib): New function.
  2006. * stage2/shared.h (console_set_attrib): Declared.
  2007. (TERMINAL_HERCULES): New macro.
  2008. * stage2/stage2.c (run_menu) [SUPPORT_HERCULES]: Added hercules
  2009. support.
  2010. * stage2/hercules.h: New file.
  2011. * stage2/hercules.c: Likewise.
  2012. 2001-02-17 OKUJI Yoshinori <okuji@gnu.org>
  2013. From "Treutwein; Bernhard"
  2014. <Bernhard.Treutwein@Verwaltung.Uni-Muenchen.DE>:
  2015. * docs/grub.texi (DOS/Windows): Improved the readability.
  2016. 2001-02-11 OKUJI Yoshinori <okuji@gnu.org>
  2017. * docs/grub.texi (Command-line and menu commands): Renamed to ...
  2018. (General commands): ... this.
  2019. 2001-02-08 OKUJI Yoshinori <okuji@gnu.org>
  2020. * stage2/asm.S [STAGE1_5] (chain_stage2): Save the second sector
  2021. of stage2 in %ecx temporarily, and set %ebp to %ecx after
  2022. switching to protected mode. I forgot that %ebp is broken by
  2023. rot_to_real. Reported by Torvald Riegel
  2024. <tr16@inf.tu-dresden.de>.
  2025. 2001-02-08 OKUJI Yoshinori <okuji@gnu.org>
  2026. * docs/grub-new.texi: Moved to ...
  2027. * docs/grub.texi: ... here. And, include internals.texi.
  2028. * docs/internals.texi: New file.
  2029. * docs/prog-ref.texi: Removed.
  2030. * docs/user-ref.texi: Likewise.
  2031. * docs/tutorial.texi: Likewise.
  2032. * docs/appendices.texi: Likewise.
  2033. * docs/Makefile.am (grub_TEXINFOS): Removed prog-ref.texi,
  2034. user-ref.texi, tutorial.texi, and appendices.texi. Added
  2035. internals.texi.
  2036. 2001-02-03 OKUJI Yoshinori <okuji@gnu.org>
  2037. From Erik Schoenfelder <schoenfr@gaertner.de>:
  2038. * stage2/shared.h (LINUX_INITRD_MAX_ADDRESS): Changed from
  2039. 0x3C000000 to 0x38000000.
  2040. 2001-02-03 OKUJI Yoshinori <okuji@gnu.org>
  2041. * stage2/builtins.c (savedefault_func)
  2042. [!SUPPORT_DISKLESS && !GRUB_UTIL]: Check if the version
  2043. contained in the buffer matches to current one as well.
  2044. 2001-02-02 OKUJI Yoshinori <okuji@gnu.org>
  2045. * stage2/builtins.c (savedefault_func)
  2046. [!SUPPORT_DISKLESS && !GRUB_UTIL]: Check if the stage2 id is
  2047. STAGE2_ID_STAGE2. Suggested by Jochen Hoenicke.
  2048. * stage2/stage2.c (cmain): If DEFAULT_ENTRY is out of entries,
  2049. reset DEFAULT_ENTRY to zero.
  2050. 2001-02-02 OKUJI Yoshinori <okuji@gnu.org>
  2051. Make savedefault workable even with Stage 1.5. Reported by
  2052. Thierry Laronde <thierry@cri74.org>.
  2053. * grub/asmstub.c (chain_stage2): Added an additional argument,
  2054. SECOND_SECTOR.
  2055. * stage2/asm.S [STAGE1_5] (chain_stage2): Set %ebp to
  2056. SECOND_SECTOR.
  2057. * stage2/disk_io.c [STAGE1_5] (disk_read_hook): Defined.
  2058. [STAGE1_5] (disk_read_func): Likewise.
  2059. (rawread) [STAGE1_5]: Handle DISK_READ_FUNC.
  2060. (grub_read) [STAGE1_5]: Likewise.
  2061. * stage2/fsys_ext2fs.c (ext2fs_read) [STAGE1_5]: Likewise.
  2062. * stage2/fsys_fat.c (fat_read) [STAGE1_5]: Likewise.
  2063. * stage2/fsys_ffs.c (ffs_read) [STAGE1_5]: Likewise.
  2064. * stage2/fsys_minix.c (minix_read) [STAGE1_5]: Likewise.
  2065. * stage2/fsys_reiserfs.c (reiserfs_read) [STAGE1_5]: Likewise.
  2066. 2001-02-02 OKUJI Yoshinori <okuji@gnu.org>
  2067. * netboot/config.c [GRUB && INCLUDE_PCI] (pci_dispatch_table):
  2068. New structure.
  2069. [GRUB && INCLUDE_PCI] (PCI_NIC): New variable.
  2070. (eth_probe) [GRUB && INCLUDE_PCI]: If a PCI NIC candidate is
  2071. present, probe it first.
  2072. 2001-01-27 OKUJI Yoshinori <okuji@gnu.org>
  2073. From Danilo Godec <danci@agenda.si>:
  2074. * stage2/pc_slice.h (PC_SLICE_TYPE_LINUX_RAID): New macro.
  2075. * stage2/fsys_ext2fs.c (ext2fs_mount): Add a check for
  2076. PC_SLICE_LINUX_RAID.
  2077. 2001-01-27 OKUJI Yoshinori <okuji@gnu.org>
  2078. From Bernhard Treutwein
  2079. <Bernhard.Treutwein@Verwaltung.Uni-Muenchen.DE>:
  2080. * docs/grub-new.texi (DOS/Windows): Made more readable.
  2081. 2001-01-27 OKUJI Yoshinori <okuji@gnu.org>
  2082. * docs/multiboot.texi: Start reorganizing Multiboot
  2083. Specification.
  2084. 2001-01-15 OKUJI Yoshinori <okuji@gnu.org>
  2085. From Thierry Laronde <thierry.laronde@polynum.com>:
  2086. * docs/user-ref.texi (Command-line and menu commands): Update
  2087. the description about setkey.
  2088. * stage2/builtins.c (setkey_func): When checking if TO_KEY and
  2089. FROM_KEY are specified, see *TO_KEY and *FROM_KEY instead of
  2090. TO_KEY and FROM_KEY, respectively.
  2091. 2001-01-13 OKUJI Yoshinori <okuji@gnu.org>
  2092. From Thierry Laronde <thierry.laronde@polynum.com>:
  2093. * util/grub-md5-crypt.in (prefix): New variable.
  2094. (exec_prefix): Likewise.
  2095. (sbindir): Likewise.
  2096. 2001-01-12 OKUJI Yoshinori <okuji@gnu.org>
  2097. * docs/multiboot.h [__ELF__] (MULTIBOOT_HEADER_FLAGS): Defined
  2098. as 0x00000003 instead of 0x00010003.
  2099. * docs/boot.S (multiboot_header) [__ELF__]: Don't define a.out
  2100. kludge information.
  2101. * docs/Makefile.am (EXTRA_PROGRAMS): New variable.
  2102. [BUILD_EXAMPLE_KERNEL] (noinst_DATA): Removed.
  2103. [BUILD_EXAMPLE_KERNEL] (noinst_PROGRAMS): Changed to kernel.
  2104. [BUILD_EXAMPLE_KERNEL] (kernel_exec_SOURCES): Renamed to ...
  2105. [BUILD_EXAMPLE_KERNEL] (kernel_SOURCES): ... this.
  2106. [BUILD_EXAMPLE_KERNEL] (kernel_exec_CFLAGS): Renamed to ...
  2107. [BUILD_EXAMPLE_KERNEL] (kernel_CFLAGS): ... this.
  2108. [BUILD_EXAMPLE_KERNEL] (kernel_exec_LDFLAGS): Renamed to ...
  2109. [BUILD_EXAMPLE_KERNEL] (kernel_LDFLAGS): ... this.
  2110. [BUILD_EXAMPLE_KERNEL] (kernel): Removed.
  2111. [BUILD_EXAMPLE_KERNEL] (boot.o): New dependency.
  2112. (CLEANFILES): New variable.
  2113. 2001-01-11 OKUJI Yoshinori <okuji@gnu.org>
  2114. * stage2/builtins.c [SUPPORT_NETBOOT] (ifconfig_func): Always
  2115. print current network configuration.
  2116. [SUPPORT_NETBOOT] (tftpserver_func): Use ifconfig instead of
  2117. arp_server_override.
  2118. * netboot/main.c (arp_server_override): Removed.
  2119. * netboot/etherboot.h (arp_server_override): Likewise.
  2120. 2001-01-11 Eugene Doudine <dudin@np.nk.nornik.ru>
  2121. * stage2/builtins.c [SUPPORT_NETBOOT] (ifconfig_func): New
  2122. function to configure network interface from command line.
  2123. [SUPPORT_NETBOOT] (builtin_ifconfig): New variable.
  2124. [SUPPORT_NETBOOT] (builtin_table): Added a pointer to
  2125. BUILTIN_IFCONFIG.
  2126. * netboot/main.c (ifconfig): New function.
  2127. * netboot/etherboot.h (ifconfig): Added the prototype.
  2128. 2001-01-11 OKUJI Yoshinori <okuji@gnu.org>
  2129. * docs/Makefile.am [BUILD_EXAMPLE_KERNEL] (noinst_DATA): New
  2130. variable.
  2131. [BUILD_EXAMPLE_KERNEL] (noinst_PROGRAMS): Likewise.
  2132. [BUILD_EXAMPLE_KERNEL] (kernel_exec_SOURCES): Likewise.
  2133. [BUILD_EXAMPLE_KERNEL] (kernel_exec_CFLAGS): Likewise.
  2134. [BUILD_EXAMPLE_KERNEL] (kernel_exec_LDFLAGS): Likewise.
  2135. [BUILD_EXAMPLE_KERNEL] (kernel): New target.
  2136. * configure.in (--enable-example-kernel): New option.
  2137. * docs/kernel.c (cmain): Cast unsigned long variables to
  2138. unsigned explicitly, to suppress GCC warnings.
  2139. 2001-01-08 OKUJI Yoshinori <okuji@gnu.org>
  2140. * stage2/shared.h (BOOTSEC_BPB_HIDDEN_SECTORS): New macro.
  2141. * stage2/builtins.c (chainloader_func): If CURRENT_PARTITION is
  2142. FAT, set the hidden sectors field of the BPB to PART_START, to
  2143. avoid a Windows bug which affects only when Windows is booted
  2144. from a logical partition. And, clear ERRNUM after testing if a
  2145. partition is FAT, because open_partition or fat_mount may set
  2146. ERRNUM. Reported by Ingo Korb <ingo@akana.de>.
  2147. 2001-01-07 OKUJI Yoshinori <okuji@gnu.org>
  2148. * stage2/builtins.c (boot_func): In the chain-loading mode,
  2149. clear the active flag of each of the loaded partition entries,
  2150. and then set the active flag of the booted partition image.
  2151. 2001-01-04 Jochen Hoenicke <jochen@gnu.org>
  2152. * stage2/builtins.c (embed_func): Call open_partition() even for
  2153. MBR, so that part_start is correct. This fixes a bug reported by
  2154. Matthias Granberry <matthias@slurpee.org>.
  2155. 2000-12-22 OKUJI Yoshinori <okuji@gnu.org>
  2156. * stage2/disk_io.c (make_saved_active): Change the variable name
  2157. ``MBR'' to lower case.
  2158. (set_partition_hidden_flag): Likewise.
  2159. 2000-12-20 Jochen Hoenicke <jochen@gnu.org>
  2160. From Cedric Ware <ware@com.enst.fr>:
  2161. * stage2/fsys_ext2.c (ext2fs_mount): Detect ext2 partitions in
  2162. a OpenBSD/NetBSD FS_EXT2FS slice.
  2163. * stage2/pc_slice.h (FS_ADOS): New Macro from OpenBSD/NetBSD.
  2164. (FS_HFS): Likewise.
  2165. (FS_FILECORE): Likewise.
  2166. (FS_EXT2FS): Likewise.
  2167. 2000-12-17 Jochen Hoenicke <jochen@gnu.org>
  2168. * stage2/disk_io.c (rawread): Check if there is a EZD partition
  2169. and remap sector 0 to sector 1 like EZ-BIOS does.
  2170. (rawwrite): New function to write to disk. Also does EZD
  2171. remapping.
  2172. (devwrite): New function. Does the special remapping to
  2173. partitions needed for linux. This contains the code that was
  2174. previously duplicated in embed_func and install_func at several
  2175. places.
  2176. (make_saved_active): Use rawwrite. Don't use SCRATCHSEG, as it is
  2177. needed by devwrite.
  2178. (set_partition_hidden_flag): Likewise.
  2179. * stage2/disk_io.h (rawwrite): New function.
  2180. (devwrite): Likewise.
  2181. * stage2/pc_slice.h (PC_SLICE_TYPE_EZD): New macro.
  2182. * stage2/builtins.c (embed_info): New variable to store the
  2183. position of the embedded stage1_5 for setup_func.
  2184. (embed_func): Don't embed after the MBR if an EZ-BIOS is detected
  2185. there. Use the new devwrite method. If embedding is successful
  2186. store position in embed_info.
  2187. (install_func): Use devwrite. Don't use SCRATCHSEG.
  2188. (partnew_func): Use rawwrite. Don't use SCRATCHSEG.
  2189. (parttype_func): Likewise.
  2190. (savedefault_func): Likewise.
  2191. (setup_func): New nested function embed_stage1_5. Stage1_5 is now
  2192. also be embedded into filesystems which supports that.
  2193. 2000-12-17 OKUJI Yoshinori <okuji@gnu.org>
  2194. * stage2/builtins.c (chainloader_func): Set ERRNUM to
  2195. ERR_EXEC_FORMAT, when ERRNUM is ERR_NONE, even if grub_read
  2196. fails in reading one sector.
  2197. 2000-12-14 OKUJI Yoshinori <okuji@gnu.org>
  2198. * docs/prog-ref.texi (Partition types): Rewrite the footnotes.
  2199. Suggested by Ralf.Medow@t-online.de (Ralf Medow).
  2200. 2000-12-14 OKUJI Yoshinori <okuji@gnu.org>
  2201. From Erik Schoenfelder <schoenfr@gaertner.de>:
  2202. * util/grub-install.in (convert): Revised the fix for floppy
  2203. device handling.
  2204. 2000-12-14 OKUJI Yoshinori <okuji@gnu.org>
  2205. From HORIKAWA Kazunori <kaz-hori@tkd.att.ne.jp>:
  2206. * stage2/bios.c (get_diskinfo): Append 16 bytes dummy data to
  2207. DRP, because the BIOS of Thinkpad X20 write a garbage beyond the
  2208. size of the structure.
  2209. 2000-12-09 Jochen Hoenicke <jochen@gnu.org>
  2210. * stage2/disk_io.c (next_partition): Mask out bsd partition sub
  2211. type when checking if last partition was a bsd partition.
  2212. Reported by Heikki Vatiainen <hessu@cs.tut.fi>.
  2213. 2000-12-09 OKUJI Yoshinori <okuji@gnu.org>
  2214. From Leendert Meyer <leen.meyer@home.nl>:
  2215. * util/grub-install.in (convert): If a floppy device is
  2216. specified, remove everything from $tmp_part.
  2217. 2000-12-09 OKUJI Yoshinori <okuji@gnu.org>
  2218. * lib/device.c [__linux__] (write_to_partition): Use strcpy
  2219. instead of strcat, to overwrite "/disc". Reported by Thiago
  2220. Macieira <thiagom@mail.com>.
  2221. 2000-12-05 Jochen Hoenicke <jochen@gnu.org>
  2222. * stage2/fsys_minix.c (minix_mount): Corrected the check for
  2223. IS_PC_SLICE_TYPE_MINIX; minix was only working if slice type was
  2224. wrong! Reported by Ralf Medow <ralf.medow@t-online.de>.
  2225. 2000-11-27 Jochen Hoenicke <jochen@gnu.org>
  2226. * stage2/fsys_reiserfs.c: Handle items with old version key on
  2227. new version reiserfs partition.
  2228. (K_OFFSET): Removed.
  2229. (IH_KEY_OFFSET): New Macro, which checks item head version.
  2230. (IH_KEY_ISOFFSET): Likewise.
  2231. (reiserfs_read): Use new macros.
  2232. (reiserfs_dir): Fixed version check for >4GB stat entries.
  2233. 2000-11-27 OKUJI Yoshinori <okuji@gnu.org>
  2234. * stage2/common.c (init_bios_info) [!STAGE1_5]: Don't call
  2235. track_int13, because the current implementation hangs up in some
  2236. environments.
  2237. 2000-11-27 OKUJI Yoshinori <okuji@gnu.org>
  2238. * grub/asmstub.c (serial_init) [!O_SYNC]: Don't specify O_SYNC
  2239. to open SERIAL_DEVICE.
  2240. (serial_init) [O_FSYNC]: Specify O_FSYNC to open SERIAL_DEVICE.
  2241. Reported by Farid Hajji <farid.hajji@ob.kamp.net>.
  2242. 2000-11-22 OKUJI Yoshinori <okuji@gnu.org>
  2243. From Vesa Jaaskelainen <jaaskela@tietomyrsky.fi>:
  2244. * stage2/builtins.c (testvbe_func): Don't set the bit 14 of a
  2245. VBE mode number explicitly when calling get_vbe_mode_info.
  2246. (vbeprobe_func): Likewise.
  2247. 2000-11-22 OKUJI Yoshinori <okuji@gnu.org>
  2248. The code for the "INT 13H tracking technique" is somewhat
  2249. simplified.
  2250. * stage2/asm.S [!STAGE1_5] (track_int13): Don't replace an int13
  2251. handler with set_tf_int13_handler. Instead, track_int13 itself
  2252. emulates an int13 interrupt.
  2253. [!STAGE1_5] (set_tf_int13_handler): Removed.
  2254. [!STAGE1_5] (int1_handler): Use movzbw instead of xorb and movb.
  2255. 2000-11-15 OKUJI Yoshinori <okuji@gnu.org>
  2256. * acconfig.h (PRESET_MENU_STRING): New entry.
  2257. * acinclude.m4 (grub_DEFINE_FILE): New M4 macro.
  2258. * configure.in (--enable-preset-menu): New option.
  2259. * stage2/stage2.c [PRESET_MENU_STRING] (preset_menu): New
  2260. variable.
  2261. [PRESET_MENU_STRING] (preset_menu_offset): Likewise.
  2262. [PRESET_MENU_STRING] (open_preset_menu): New function.
  2263. [PRESET_MENU_STRING] (read_from_preset_menu): Likewise.
  2264. [PRESET_MENU_STRING] (close_preset_menu): Likewise.
  2265. [!PRESET_MENU_STRING] (open_preset_menu): New macro.
  2266. [!PRESET_MENU_STRING] (read_from_preset_menu): Likewise.
  2267. [!PRESET_MENU_STRING] (close_preset_menu): Likewise.
  2268. (get_line_from_config): Accept a new argument READ_FROM_FILE.
  2269. If it is false, read data from the preset menu instead.
  2270. (cmain): If grub_open fails in opening the configuration file,
  2271. then try to open the preset menu.
  2272. 2000-11-11 OKUJI Yoshinori <okuji@gnu.org>
  2273. From Jan Fricke <fricke@uni-greifswald.de>:
  2274. * stage2/asm.S [!STAGE1_5] (set_vbe_mode): Add a missing `$'
  2275. prefix.
  2276. 2000-11-11 OKUJI Yoshinori <okuji@gnu.org>
  2277. * stage2/bios.c (get_diskinfo): If BIOS supports LBA but doesn't
  2278. return the correct total number of sectors, compute this by
  2279. C/H/S returned by get_diskinfo_int13_extensions instead of
  2280. get_diskinfo_standard.
  2281. 2000-11-09 OKUJI Yoshinori <okuji@gnu.org>
  2282. * stage2/disk_io.c (make_saved_active): Set ERRNUM to
  2283. ERR_DEV_VALUES instead of ERR_NO_PART, when the save partition
  2284. is not a primary partition.
  2285. 2000-11-05 OKUJI Yoshinori <okuji@gnu.org>
  2286. * docs/user-ref.texi (Features): Update the URL of grub/98.
  2287. 2000-11-03 OKUJI Yoshinori <okuji@gnu.org>
  2288. VBE support is _partially_ implemented.
  2289. * stage2/mb_header.h (multiboot_header): Added new fields,
  2290. mode_type, width, height, and depth.
  2291. (MULTIBOOT_FOUND): Check if MULTIBOOT_VIDEO_MODE is set, and
  2292. check if LEN is greater than or equal to 48, if set.
  2293. (MULTIBOOT_UNSUPPORTED): Set to 0x0000FFF8.
  2294. (MULTIBOOT_VIDEO_MODE): New macro.
  2295. * stage2/mb_info.h (multiboot_info): Added new fields,
  2296. vbe_control_info, vbe_mode_info, vbe_mode, vbe_interface_seg,
  2297. vbe_interface_off, and vbe_interface_len.
  2298. (MB_INFO_VIDEO_INFO): New macro.
  2299. * stage2/shared.h (vbe_controller): New structure.
  2300. (vbe_mode): Likewise.
  2301. (get_vbe_controller_info): Declared.
  2302. (get_vbe_mode_info): Likewise.
  2303. (set_vbe_mode): Likewise.
  2304. * stage2/asm.S [!STAGE1_5] (get_vbe_controller_info): New
  2305. function.
  2306. [!STAGE1_5] (get_vbe_mode_info): Likewise.
  2307. [!STAGE1_5] (set_vbe_mode): Likewise.
  2308. * grub/asmstub.c (get_vbe_controller_info): Likewise.
  2309. (get_vbe_mode_info): Likewise.
  2310. (set_vbe_mode): Likewise.
  2311. * stage2/builtins.c (testvbe_func): New function.
  2312. (builtin_testvbe): New variable.
  2313. (vbeprobe_func): New function.
  2314. (builtin_vbeprobe): New variable.
  2315. (builtin_table): Added pointers to BUILTIN_TESTVBE and
  2316. BUILTIN_VBEPROBE.
  2317. 2000-11-01 OKUJI Yoshinori <okuji@gnu.org>
  2318. * docs/help2man: Copied from help2man-1.23.
  2319. 2000-10-29 OKUJI Yoshinori <okuji@gnu.org>
  2320. * stage2/asm.S [STAGE1_5]: Don't include setjmp.S or apm.S.
  2321. 2000-10-27 OKUJI Yoshinori <okuji@gnu.org>
  2322. * lib/device.c (read_device_map): Don't parse a line, if it is
  2323. empty. Reported by Holger Bauer <bauer@itsm.uni-stuttgart.de>.
  2324. 2000-10-25 Jochen Hoenicke <jochen@gnu.org>
  2325. * stage2/builtins.c (md5crypt_func): Use all bits of currticks ()
  2326. to generate the salt. The old code would often produce the same
  2327. one character salt.
  2328. 2000-10-25 OKUJI Yoshinori <okuji@gnu.org>
  2329. * stage2/apm.S (get_apm_info): Fix a serious typo: prot_to_real
  2330. -> real_to_prot. Umm, I can't understand why it worked for me!
  2331. 2000-10-24 Jochen Hoenicke <jochen@gnu.org>
  2332. * stage2/builtins.c (setup_func): When invoking install with an
  2333. embedded stage1_5 give the path to menu.lst as real_config_file.
  2334. 2000-10-23 OKUJI Yoshinori <okuji@gnu.org>
  2335. * docs/multiboot.texi: Upgraded to 0.6.92.
  2336. (Boot information format): Re-designed the graphics table.
  2337. 2000-10-22 OKUJI Yoshinori <okuji@gnu.org>
  2338. * docs/tutorial.texi: Miscellaneous updates.
  2339. * docs/user-ref.texi: Likewise.
  2340. * docs/appendices.texi: Likewise.
  2341. 2000-10-22 OKUJI Yoshinori <okuji@gnu.org>
  2342. * util/grub-install.in (usage): Removed unnecessary commas.
  2343. * util/grub-md5-crypt.in: New file.
  2344. * util/Makefile.am (sbin_SCRIPTS): Added grub-md5-crypt.
  2345. * configure.in (AC_OUTPUT): Added util/grub-md5-crypt.
  2346. * docs/Makefile.am (man_MANS): Added grub-md5-crypt.8.
  2347. [MAINTAINER_MODE] ($(srcdir)/grub-md5-crypt.8): New target.
  2348. * docs/grub-md5-crypt.8: New file. Generated by help2man.
  2349. * docs/grub.texi (grub-md5-crypt): New direntry.
  2350. (Invoking grub-md5-crypt): New entry.
  2351. * docs/user-ref.texi (Invoking grub-md5-crypt): New chapter.
  2352. 2000-10-22 OKUJI Yoshinori <okuji@gnu.org>
  2353. From Matthias Granberry <matthias@slurpee.org>:
  2354. * util/grub-install.in (convert): Added backslashes into
  2355. continuous lines.
  2356. 2000-10-21 OKUJI Yoshinori <okuji@gnu.org>
  2357. * stage2/md5.c (check_md5_password): Removed.
  2358. (md5_password): New function. Mostly copied from
  2359. check_md5_password.
  2360. (md5_init): Made static.
  2361. (md5_update): Likewise.
  2362. (md5_final): Likewise.
  2363. * stage2/md5.h (check_md5_password): Changed to just a macro.
  2364. (md5_password): Declared.
  2365. (make_md5_password): New macro.
  2366. * stage2/char_io.c [!STAGE1_5] (grub_strstr): Rewriten, because
  2367. it was too buggy.
  2368. * stage2/builtins.c [USE_MD5_PASSWORDS] (md5crypt_func): New
  2369. function.
  2370. [USE_MD5_PASSWORDS] (builtin_md5crypt): New variable.
  2371. (builtin_table) [USE_MD5_PASSWORDS]: Added a pointer to
  2372. BUILTIN_MD5CRYPT.
  2373. * docs/tutorial.texi (Security): Added a paragraph about
  2374. md5crypt.
  2375. 2000-10-21 OKUJI Yoshinori <okuji@gnu.org>
  2376. * docs/user-ref.texi: Fixed several typos and some inappropriate
  2377. texinfo commands, and update the descriptions about some
  2378. commands.
  2379. 2000-10-20 OKUJI Yoshinori <okuji@gnu.org>
  2380. * stage2/builtins.c (displayapm_func): New function.
  2381. (builtin_displayapm): New variable.
  2382. (builtin_table): Added a pointer to BUILTIN_DISPLAYAPM.
  2383. 2000-10-20 OKUJI Yoshinori <okuji@gnu.org>
  2384. APM BIOS table support is added, based on a patch by Matt Yourst
  2385. <yourst@mit.edu>.
  2386. * docs/multiboot.texi (Boot information format): Added the
  2387. definition of APM table format.
  2388. * stage2/mb_info.h (apm_info): New structure.
  2389. (multiboot_info): Added a new element, apm_table.
  2390. (MB_INFO_APM_TABLE): New macro.
  2391. * stage2/asm.S (apm_bios_info): New variable.
  2392. Include "apm.S".
  2393. * stage2/apm.S: New file.
  2394. * stage2/common.c (init_bios_info) [!STAGE1_5]: Added APM BIOS
  2395. table support.
  2396. * stage2/shared.h (apm_bios_info): Declared.
  2397. (get_apm_info): Likewise.
  2398. * stage2/Makefile.am (EXTRA_DIST): Added apm.S.
  2399. * grub/asmstub.c (apm_bios_info): New variable.
  2400. (get_apm_info): New function.
  2401. 2000-10-19 OKUJI Yoshinori <okuji@gnu.org>
  2402. Segregate functions which are copyrighted differently.
  2403. * stage2/setjmp.S: New file.
  2404. * stage2/Makefile.am (EXTRA_DIST): Added setjmp.S.
  2405. * stage2/asm.S: Include "setjmp.S".
  2406. (grub_setjmp): Moved to ...
  2407. * stage2/setjmp.S (grub_setjmp): ... here.
  2408. * stage2/asm.S (grub_longjmp): Moved to ...
  2409. * stage2/setjmp.S (grub_longjmp): ... here.
  2410. 2000-10-18 OKUJI Yoshinori <okuji@gnu.org>
  2411. * stage2/Makefile.am (noinst_HEADERS): Added md5.h. Reported by
  2412. Volker Augustin <Volker.Augustin@stud.uni-regensburg.de>.
  2413. 2000-10-17 OKUJI Yoshinori <okuji@gnu.org>
  2414. * configure.in (--disable-md5password): Renamed to ...
  2415. (--disable-md5-password): ... this. Just for my preference.
  2416. 2000-10-17 Jochen Hoenicke <jochen@gnu.org>
  2417. Added MD5 passwords and extended password command:
  2418. * configure.in (--disable-md5password): New option.
  2419. * stage2/Makefile.am (libgrub_a_SOURCES): Added md5.c.
  2420. (pre_stage2_exec_SOURCES): Likewise.
  2421. * stage2/md5.c: New file.
  2422. * stage2/shared.h (password_t): New type.
  2423. (password_type): New variable.
  2424. (BUILTIN_HIDDEN): New flag, describing that a command should not
  2425. be printed when booting the entry.
  2426. (check_password): New function.
  2427. * stage2/cmdline.c (run_script): Don't show commands that have
  2428. the hidden attribute.
  2429. * stage2/builtins.c (password_type): New variable.
  2430. (check_password): New function.
  2431. (password_func): Handle the --md5 option and set password_type.
  2432. Check if in CMDLINE or SCRIPT mode and ask password immediately.
  2433. (builtin_password): Also allow passwords in CMDLINE mode, make
  2434. it hidden, so the user wont see the password he should enter.
  2435. Changed command description.
  2436. (builtin_pause): Make the command hidden.
  2437. (pause_func): Print argument, since the command is now hidden.
  2438. * stage2/stage2.c (run_menu): Call check_password to check password.
  2439. * docs/tutorial.texi (Security): Describe the new features of the
  2440. password commands.
  2441. * docs/user-ref.texi (Menu-specific commands): password command
  2442. moved ...
  2443. (Command-line and menu commands): ... to here. New features
  2444. doumented.
  2445. 2000-10-17 OKUJI Yoshinori <okuji@gnu.org>
  2446. * stage2/builtins.c (setkey_func): Clear the all elements of
  2447. BIOS_KEY_MAP and ASCII_KEY_MAP instead of only the first
  2448. elements, when TO_KEY is NULL.
  2449. 2000-10-16 OKUJI Yoshinori <okuji@gnu.org>
  2450. * stage2/boot.c (load_image): When handling Linux cmdline, don't
  2451. copy a null character from SRC to DEST, because this inserted an
  2452. extra null character into the cmdline. Reported by Robert
  2453. Bihlmeyer <robbe@orcus.priv.at>.
  2454. 2000-10-16 OKUJI Yoshinori <okuji@gnu.org>
  2455. Some of the new Multiboot features are supported. APM support
  2456. and VESA support are not strictly defined or implemented yet.
  2457. * docs/multiboot.texi (Top): Increase the version number.
  2458. (Boot information format): Changed the drive information format,
  2459. because it was not straightforward.
  2460. * grub/asmstub.c (io_map): New variable.
  2461. (track_int13): New function.
  2462. (get_rom_config_table): Likewise.
  2463. * stage2/stage2.c (cmain): Set CONFIG_ENTRIES to MBI.DRIVES_ADDR
  2464. + MBI.DRIVES.LENGTH instead of MBI.MMAP_ADDR + MBI.MMAP_LENGTH.
  2465. * stage2/common.c (init_bios_info) [!STAGE1_5]: Added support
  2466. for drive info, ROM config table, and boot loader name features
  2467. of the Multiboot Specification.
  2468. * stage2/mb_info.h (drive_info): New structure.
  2469. (MB_DI_CHS_MODE): New macro.
  2470. (MB_DI_LBA_MODE): Likewise.
  2471. (multiboot_info): Added drives_length, drives_addr,
  2472. config_table, and boot_loader_name.
  2473. (MB_INFO_DRIVE_INFO): New macro.
  2474. (MB_INFO_CONFIG_TABLE): Likewise.
  2475. (MB_INFO_BOOT_LOADER_NAME): Likewise.
  2476. * stage2/asm.S (get_rom_config_table): New function.
  2477. * stage2/shared.h (get_rom_config_table): Declared.
  2478. 2000-10-16 OKUJI Yoshinori <okuji@gnu.org>
  2479. * util/grub-install.in (convert): Check only if the file exists,
  2480. instead of checking if the file is a block device as well.
  2481. Because, in a sane operating system, it should be a char device
  2482. but not a block device (unlike Linux), and it may be a symbolic
  2483. link (this can happen if you use Linux's devfs without devfsd).
  2484. (recheck): New variable. Set to "no" by default, and set to
  2485. "yes", if you specify the new option ``--recheck''. If $recheck
  2486. is "yes", remove the device map file, if present.
  2487. 2000-10-16 OKUJI Yoshinori <okuji@gnu.org>
  2488. From Roderich Schupp:
  2489. * lib/device.c: Include <limits.h>.
  2490. [__linux__] (have_devfs): New function.
  2491. (get_floppy_disk_name) [__linux__]: If devfs is supported, use
  2492. the name "/dev/floppy/N" instead.
  2493. (init_device_map) [__linux__]: If devfs is supported, use
  2494. "/dev/discs/discN" instead.
  2495. [__linux__] (write_to_partition): Change the size of DEV to
  2496. PATH_MAX instead of 64.
  2497. If devfs is supported, replace "/disc" in the device name with
  2498. "/part".
  2499. 2000-10-15 OKUJI Yoshinori <okuji@gnu.org>
  2500. From Roderich Schupp <rsch@ExperTeam.de>:
  2501. * util/grub-install.in (convert): Added support for "native"
  2502. devfs device names.
  2503. 2000-10-14 OKUJI Yoshinori <okuji@gnu.org>
  2504. * docs/tutorial.texi (Serial terminal): Fixed a typo.
  2505. * docs/user-ref.texi (GRUB images): New chapter.
  2506. * docs/grub.texi: Added an entry for the chapter "GRUB images".
  2507. 2000-10-14 OKUJI Yoshinori <okuji@gnu.org>
  2508. * stage2/builtins.c (setkey_func): If TO_KEY is NULL (i.e. the
  2509. user specifies no argument), clear BIOS_KEY_MAP and
  2510. ASCII_KEY_MAP.
  2511. If TO_KEY is non-NULL but FROM_KEY is NULL, set ERRNUM to
  2512. ERR_BAD_ARGUMENT and return one.
  2513. 2000-10-13 OKUJI Yoshinori <okuji@gnu.org>
  2514. * docs/grub.texi: Added an entry for the new chapter "Security",
  2515. and the order of the chapters in the Tutorial Manual was
  2516. changed.
  2517. * docs/tutorial.texi (Configuration): Moved to right after the
  2518. chapter "Booting".
  2519. (Security): New chapter.
  2520. 2000-10-10 OKUJI Yoshinori <okuji@gnu.org>
  2521. From Alessandro Rubini:
  2522. * util/grub-install.in (root_device): Use the regular expression
  2523. 's%.*\(/dev/[^ ]*\).*%\1%' instead of
  2524. 's%.*\(/dev/[a-z0-9]*\).*%\1%'.
  2525. (bootdir_device): Likewise.
  2526. (grubdir_device): Likewise.
  2527. 2000-10-10 OKUJI Yoshinori <okuji@gnu.org>
  2528. * stage2/start.S (copy_buffer): Use pusha and popa instead of
  2529. pushing and poping %di and %si individually, to reduce the code
  2530. size and save %cx as well. Reported by Herbert Nachtnebel
  2531. <nachtneb@iaee.tuwien.ac.at>.
  2532. 2000-10-10 OKUJI Yoshinori <okuji@gnu.org>
  2533. From Daniel Pittman <daniel@rimspace.net>:
  2534. * stage2/builtins.c (setkey_func): Check if
  2535. KEYSYM_TABLE[I].UNSHIFTED_NAME and KEYSYM_TABLE[I].SHIFTED_NAME
  2536. are not NULLs, before calling grub_strcmp.
  2537. 2000-10-08 OKUJI Yoshinori <okuji@gnu.org>
  2538. * util/grub-install.in (grub_prefix): New variable. The default
  2539. is "/boot/grub".
  2540. If the user has a separate boot partition, set grub_prefix
  2541. instead of grubdir to "/grub".
  2542. When running the command "setup", specify $grub_prefix instead
  2543. of $grubdir to the option "--prefix".
  2544. Report by Thierry Laronde.
  2545. 2000-10-08 OKUJI Yoshinori <okuji@gnu.org>
  2546. * stage2/builtins.c (find_func): Clear ERRNUM after the last
  2547. call of next_partition, because it always sets ERRNUM. Reported
  2548. by Thierry Laronde <thierry.laronde@polynum.com>.
  2549. 2000-10-07 OKUJI Yoshinori <okuji@gnu.org>
  2550. * lib/device.c [__linux__] (write_to_partition): Open DEV with
  2551. O_RDWR instead of O_ORONLY.
  2552. 2000-10-06 Alessandro Rubini <rubini@gnu.org>
  2553. * docs/user-ref.texi (Commands): Added missing commands and
  2554. reworded part of the text.
  2555. * stage2/builtins.c (serial_func): Unswap the setting of "speed"
  2556. and "port".
  2557. 2000-10-06 OKUJI Yoshinori <okuji@gnu.org>
  2558. * stage2/builtins.c (setup_func): Append "... " to the
  2559. messages when calling embed_func and install_func, and print
  2560. the result.
  2561. Don't jump to the label "fail", even when embed_func failed.
  2562. 2000-10-05 Gordon Matzigkeit <gord@fig.org>
  2563. * stage2/disk_io.c (real_open_partition): Make sure that buf_geom
  2564. corresponds to the current drive before using it.
  2565. * lib/device.c (get_drive_geometry): Use fstat if the native
  2566. geometry methods fail, such as when the drive is mapped to a
  2567. regular file.
  2568. * docs/tutorial.texi: Add `@kbd{...}' to examples in order to
  2569. differentiate between command output and characters the user
  2570. should type.
  2571. * docs/user-ref.texi: Likewise.
  2572. 2000-10-05 OKUJI Yoshinori <okuji@gnu.org>
  2573. * docs/grub.texi: Added an entry for the chapter "Serial
  2574. terminal".
  2575. * docs/tutorial.texi (Serial terminal): New chapter.
  2576. 2000-10-04 Gordon Matzigkeit <gord@fig.org>
  2577. * util/grub-image (VERSION): Fix version calculation to tolerate
  2578. `(GNU GRUB 0.5.96)'-style versions.
  2579. * docs/grub.texi: Remove braces from `@unnumbered' sections so
  2580. that texi2html doesn't complain.
  2581. * debian/rules: Build HTML documentation to appease the Debian
  2582. masses.
  2583. 2000-10-04 OKUJI Yoshinori <okuji@gnu.org>
  2584. * stage2/fsys_reiserfs.c (reiserfs_mount): Compare PART_LENGTH
  2585. with SUPERBLOCK + (sizeof(super) >> SECTOR_BITS) instead of
  2586. sizeof(struct reiserfs_super_block). Reported by Jochen
  2587. Hoenicke.
  2588. 2000-10-05 OKUJI Yoshinori <okuji@gnu.org>
  2589. * configure.in (AM_INIT_AUTOMAKE): The version number is set to
  2590. 0.5.97. This version number is a dummy, as we will never release
  2591. 0.5.97 actually.
  2592. 2000-10-01 OKUJI Yoshinori <okuji@gnu.org>
  2593. * lib/device.c [__linux__]: Don't include <linux/cdrom.h>.
  2594. [__linux__ && !CDROM_GET_CAPABILITY] (CDROM_GET_CAPABILITY):
  2595. Defined as 0x5331.
  2596. 2000-10-01 OKUJI Yoshinori <okuji@gnu.org>
  2597. * lib/device.c (get_drive_geometry) [__GNU__]: Get the number of
  2598. total sectors by fstat. The rest are filled with arbitrary
  2599. values.
  2600. 2000-09-30 OKUJI Yoshinori <okuji@gnu.org>
  2601. * util/grub-install.in (convert): The code for gnu* (i.e.
  2602. GNU/Hurd) was rewritten, since it didn't work for BSD
  2603. partitions.
  2604. Use "$tmp_disk *$" instead of "$tmp_disk" to get the drive name.
  2605. 2000-09-30 OKUJI Yoshinori <okuji@gnu.org>
  2606. * stage2/fsys_reiserfs.c (reiserfs_mount): Check if the length
  2607. of the partition is less than the size of a super block, before
  2608. attempting to read the super block.
  2609. * grub/asmstub.c (console_putchar)
  2610. [HAVE_LIBCURSES_H && REFRESH_IMMEDIATELY]: Call refresh, to ease
  2611. debugging.
  2612. 2000-09-30 OKUJI Yoshinori <okuji@gnu.org>
  2613. Added two new commands, "partnew" and "parttype", based on the
  2614. patch by Stefan Ondrejicka <ondrej@idata.sk>:
  2615. * stage2/builtins.c (partnew_func): New function.
  2616. (builtin_partnew): New variable.
  2617. (parttype_func): New function.
  2618. (builtin_parttype): New variable.
  2619. (builtin_table): Added pointers to BUILTIN_PARTNEW and to
  2620. BUILTIN_PARTTYPE.
  2621. 2000-09-29 OKUJI Yoshinori <okuji@gnu.org>
  2622. * stage2/builtins.c (find_func): New variable GOT_FILE is set to
  2623. one if FILENAME is found. Otherwise, it is set to zero.
  2624. Clear ERRNUM at the end in the loop for floppies, to ensure that
  2625. ERRNUM is cleared before examining hard disks.
  2626. Rewrite the loop for hard disks using next_partitions, so this
  2627. function now checks all partitions you have certainly.
  2628. If GOT_FILE is non-zero, set ERRNUM to ERR_FILE_NOT_FOUND and
  2629. return one.
  2630. 2000-09-29 OKUJI Yoshinori <okuji@gnu.org>
  2631. * stage2/disk_io.c (check_BSD_parts): Removed.
  2632. (next_partition): New function.
  2633. (real_open_partition): Rewritten using next_partition.
  2634. (set_device) [!STAGE1_5]: Skip a comma in DEVICE, even when the
  2635. BSD partition is not specified.
  2636. [!STAGE1_5] (print_completions): Don't append ')' if the
  2637. partition is a PC slice which may have BSD partitions. Instead,
  2638. try to complete the command-line with possible partitions.
  2639. * stage2/shared.h (next_partition): Declared.
  2640. 2000-09-27 OKUJI Yoshinori <okuji@gnu.org>
  2641. * configure.in (--enable-serial): Changed to ...
  2642. (--disable-serial): ... this. Now the serial support is enabled
  2643. by default.
  2644. 2000-09-27 OKUJI Yoshinori <okuji@gnu.org>
  2645. * stage2/char_io.c [!STAGE1_5] (get_cmdline) [!SUPPORT_SERIAL]:
  2646. Don't check if the terminal is dumb. If the terminal is console,
  2647. always use console functions.
  2648. * stage2/builtins.c [!SUPPORT_NETBOOT] (bootp_func): Undefined.
  2649. [!SUPPORT_NETBOOT] (builtin_bootp): Likewise.
  2650. [!GRUB_UTIL] (device_func): Likewise.
  2651. [!GRUB_UTIL] (builtin_device): Likewise.
  2652. [!SUPPORT_NETBOOT] (dhcp_func): Likewise.
  2653. [!SUPPORT_NETBOOT] (builtin_dhcp): Likewise.
  2654. [!GRUB_UTIL] (quit_func): Likewise.
  2655. [!GRUB_UTIL] (builtin_quit): Likewise.
  2656. [!SUPPORT_NETBOOT] (rarp_func): Likewise.
  2657. [!SUPPORT_NETBOOT] (builtin_rarp): Likewise.
  2658. [!SUPPORT_SERIAL] (serial_func): Likewise.
  2659. [!SUPPORT_SERIAL] (builtin_serial): Likewise.
  2660. [!SUPPORT_SERIAL] (terminal_func): Likewise.
  2661. [!SUPPORT_SERIAL] (builtin_terminal): Likewise.
  2662. [!SUPPORT_NETBOOT] (tftpserver_func): Likewise.
  2663. [!SUPPORT_NETBOOT] (builtin_tftpserver): Likewise.
  2664. (builtin_table) [!SUPPORT_NETBOOT]: Removed the pointers to
  2665. BUILTIN_BOOTP, BUILTIN_DHCP, BUILTIN_RARP, and
  2666. BUILTIN_TFTPSERVER.
  2667. (builtin_table) [!SUPPORT_SERIAL]: Removed the pointers to
  2668. BUILTIN_SERIAL and BUILTIN_TERMINAL.
  2669. (builtin_table) [!GRUB_UTIL]: Removed the pointers to
  2670. BUILTIN_DEVICE and BUILTIN_QUIT.
  2671. 2000-09-26 OKUJI Yoshinori <okuji@gnu.org>
  2672. * util/grub-install.in (bootdir_device): New variable. If
  2673. $bootdir_device is not the same as $root_device, set root_device
  2674. and grubdir to $bootdir_device and "/grub", respectively.
  2675. Add --prefix=$grubdir into the command "setup".
  2676. 2000-09-26 OKUJI Yoshinori <okuji@gnu.org>
  2677. Add --prefix=DIR to the command "setup".
  2678. * stage2/builtins.c (setup_func): New nested function,
  2679. check_file checks if the file FILE exists.
  2680. Remove the prefix "/boot/grub" in STAGE1_5_MAP.
  2681. Don't hardcode "/boot/grub/stage1", "/boot/grub/stage2", or
  2682. "/boot/grub/menu.lst". Instead, check if ARG contains
  2683. "--prefix=", and if specified, set PREFIX to the value.
  2684. If not specified, check "/boot/grub/stage1" and, if not found,
  2685. check "/grub/stage1". If a stage1 was found, set PREFIX to the
  2686. directory which contains the stage1.
  2687. 2000-09-12 OKUJI Yoshinori <okuji@gnu.org>
  2688. Add additional magic to avoid a bug in Linux. *sigh*
  2689. * stage2/boot.c (load_image): Copy SRC to DEST first, and append
  2690. a "mem=" option to DEST instead of prepending.
  2691. 2000-09-11 OKUJI Yoshinori <okuji@gnu.org>
  2692. Reported by Alessandro Rubini:
  2693. * stage2/fsys_minix.c (minix_mount): Check if CURRENT_SLICE is a
  2694. partition type for minix fs, using the macro
  2695. IS_PC_SLICE_TYPE_MINIX.
  2696. * stage2/pc_slice.h (PC_SLICE_TYPE_LINUX_MINIX): New macro.
  2697. (IS_PC_SLICE_TYPE_MINIX): Likewise.
  2698. 2000-09-09 Alessandro Rubini <rubini@morgana.systemy.it>
  2699. * stage1/stage1.S (notification_string): Print "GRUB " instead
  2700. of "stage1 ".
  2701. * stage2/start.S [STAGE1_5] (notification_string): Print
  2702. "Loading stage1.5" instead of "stage1.5 ".
  2703. [!STAGE1_5] (notification_string): Print "Loading stage2"
  2704. instead of "stage2 ".
  2705. (notification_step): New label, followed by a string ".".
  2706. (notification_done): New label, followed by a string "\r\n".
  2707. (copy_buffer): Print NOTIFICATION_STEP after copying the buffer.
  2708. (bootit): Print NOTIFICATION_DONE before restoring %dx.
  2709. 2000-09-09 OKUJI Yoshinori <okuji@gnu.org>
  2710. From Alessandro Rubini:
  2711. * configure.in (CPPFLAGS): Added -malign-jumps=1,
  2712. -malign-loops=1 and -malign-functions=1.
  2713. 2000-09-07 OKUJI Yoshinori <okuji@gnu.org>
  2714. From Hal Snyder <hal@vailsys.com>:
  2715. * lib/device.c (get_drive_geometry) [__FreeBSD__ || __NetBSD__
  2716. || __OpenBSD__]: Call ioctl for FD instead of
  2717. DISKS[DRIVE].FLAGS. This was a mistake when I segregated this
  2718. function from asmstub.c.
  2719. 2000-09-07 Alessandro Rubini <rubini@gnu.org>
  2720. * docs/tutorial.texi: Fixed a few typos and minor imprecisions.
  2721. * docs/prog-ref.texi: Likewise.
  2722. * docs/user-ref.texi: Likewise.
  2723. 2000-09-07 OKUJI Yoshinori <okuji@gnu.org>
  2724. From Alessandro Rubini:
  2725. * stage2/builtins.c (terminal_func): Rename TIMEOUT to TO, to
  2726. suppress GCC warnings.
  2727. * grub/asmstub.c (serial_checkkey): Likewise.
  2728. 2000-09-06 OKUJI Yoshinori <okuji@gnu.org>
  2729. * stage2/char_io.c [!STAGE1_5] (auto_fill): New variable.
  2730. [!STAGE1_5] (get_cmdline): Save AUTO_FILL in SAVED_AUTO_FILL in
  2731. the beginning and restore AUTO_FILL before return.
  2732. Set AUTO_FILL to one and zero before and after calling
  2733. print_completions, respectively.
  2734. (grub_putchar) [!STAGE1_5]: Use a static variable COL to track
  2735. the position of the cursor. If C is a carriage return, clear
  2736. COL. If C is a backspace and COL is positive, decrease COL. If C
  2737. is a printable character, increase COL. In this case, if
  2738. AUTO_FILL is non-zero and COL is greater than or equal to 79,
  2739. put a newline automatically.
  2740. * stage2/shared.h (auto_fill): Declared.
  2741. * stage2/stage2.c (run_menu): In the menu interface, disable the
  2742. auto fill mode (i.e. set AUTO_FILL to zero), and enable it again
  2743. when booting an entry.
  2744. (cmain): Initialize AUTO_FILL (i.e. set it to one) in the
  2745. beginning of the loop.
  2746. 2000-09-06 OKUJI Yoshinori <okuji@gnu.org>
  2747. Add support for "boot previously booted entry by default", based
  2748. on the patch by Mike Meyer <mwm@mired.org>, but I've modified
  2749. his patch thoroughly.
  2750. * grub/asmstub.c (saved_entryno): New variable. This is a dummy.
  2751. * stage1/stage1.h (COMPAT_VERSION_MINOR): Incremented.
  2752. * stage2/asm.S (saved_entryno): New variable.
  2753. (codestart) [!SUPPORT_DISKLESS]: Set INSTALL_SECOND_SECTOR to
  2754. %ebp. %ebp is set in start.S.
  2755. (install_second_sector): New variable.
  2756. * stage2/builtins.c (current_entryno): New variable.
  2757. (default_func) [!SUPPORT_DISKLESS]: If ARG is "saved", set
  2758. DEFAULT_ENTRY to SAVED_ENTRYNO.
  2759. (savedefault_func): New function.
  2760. (builtin_savedefault): New variable.
  2761. (builtin_table): Added a pointer to BUILTIN_SAVEDEFAULT.
  2762. * stage2/shared.h (STAGE2_SAVED_ENTRYNO): New macro.
  2763. (STAGE2_STAGE2_ID): Changed to 0x10.
  2764. (STAGE2_FORCE_LBA): Chaged to 0x11.
  2765. (STAGE2_VER_STR_OFFS): Changed to 0x12.
  2766. (install_second_sector): Declared.
  2767. (saved_entryno): Likewise.
  2768. (current_entryno): Likewise.
  2769. * stage2/stage2.c (run_menu): Set CURRENT_ENTRYNO to FIRST_ENTRY
  2770. + ENTRYNO, right before calling run_script.
  2771. * stage2/start.S (start): Save the sector number of the second
  2772. sector in %ebp.
  2773. 2000-09-05 OKUJI Yoshinori <okuji@gnu.org>
  2774. * stage1/stage1.S (lba_mode) [!NO_BUGGY_BIOS_IN_THE_WORLD]:
  2775. Don't check for the geometry, since some BIOSes don't return the
  2776. number of total sectors correctly, even if they have working LBA
  2777. support.
  2778. * stage2/start.S (lba_mode) [!NO_BUGGY_BIOS_IN_THE_WORLD]:
  2779. Likewise.
  2780. * stage2/bios.c (biosdisk) [!NO_BUGGY_BIOS_IN_THE_WORLD]:
  2781. Likewise.
  2782. Reported by Jan Fricke <fricke@uni-greifswald.de> and Pixel
  2783. <pixel@mandrakesoft.com>.
  2784. 2000-09-05 OKUJI Yoshinori <okuji@gnu.org>
  2785. From Alessandro Rubini <rubini@gnu.org>:
  2786. * stage2/char_io.c (print_error) [!STAGE1_5]: Print ERRNUM like
  2787. "Error 9: Unknown boot failure".
  2788. (print_error) [STAGE1_5]: Don't print a colon.
  2789. * util/grub-install.in: When checking if an error occurred, use
  2790. the expression "Error [0-9]*: " instead of "Error: ".
  2791. * docs/user-ref.texi (Stage1.5 errors): Updated, since the error
  2792. form changed.
  2793. 2000-09-04 OKUJI Yoshinori <okuji@gnu.org>
  2794. * stage2/stage2.c (run_menu) [GRUB_UTIL]: Set DISP_UP and
  2795. DISP_DOWN to ACS_UARROW and ACS_DARROW, respectively. Don't call
  2796. grub_printf here.
  2797. (run_menu) [!GRUB_UTIL]: Don't call grub_printf here. Instead,
  2798. call it...
  2799. (run_menu): ... here.
  2800. * stage2/shared.h (ACS_ULCORNER): Always define this ourselves,
  2801. whether your curses library has the definition.
  2802. (ACS_URCORNER): Likewise.
  2803. (ACS_LLCORNER): Likewise.
  2804. (ACS_LRCORNER): Likewise.
  2805. (ACS_HLINE): Likewise.
  2806. (ACS_VLINE): Likewise.
  2807. (ACS_LARROW): Likewise.
  2808. (ACS_RARROW): Likewise.
  2809. (ACS_UARROW): Likewise.
  2810. (ACS_DARROW): Likewise.
  2811. * stage2/char_io.c [SUPPORT_SERIAL] (serial_cls): If the
  2812. terminal is dumb, just put a newline.
  2813. * stage2/builtins.c (terminal_func) [SUPPORT_SERIAL]: When
  2814. choosing a terminal, don't set TERMINAL to the type of the
  2815. terminal. Instead, apply a logical AND operation with
  2816. TERMINAL_DUMB, since previous code brushed off the dumb
  2817. attribute.
  2818. 2000-09-04 OKUJI Yoshinori <okuji@gnu.org>
  2819. * stage2/stage2.c (run_menu): If SHOW_MENU is zero, print a
  2820. message with the timeout per second.
  2821. If GRUB_TIMEOUT is negative, set SHOW_MENU to one, since the
  2822. condition "no timeout and no interface" is nonsense.
  2823. If GRUB_TIMEOUT is equal to or greater than zero and the
  2824. terminal is dumb, set SHOW_MENU to zero.
  2825. If SHOW_MENU is non-zero and the terminal is dumb, enter the
  2826. command-line interface instead. If AUTH is false and PASSWORD is
  2827. non-NULL, prompt the user to enter a password until the entered
  2828. password is identical to PASSWORD.
  2829. 2000-09-03 OKUJI Yoshinori <okuji@gnu.org>
  2830. * util/grub-install.in: Fix a typo: grub_dir -> grubdir.
  2831. * stage2/builtins.c (install_func) [GRUB_UTIL]: Open a Stage 2
  2832. with "r+" instead of "r", as GRUB needs to overwrite it.
  2833. 2000-09-02 OKUJI Yoshinori <okuji@gnu.org>
  2834. * stage2/stage2.c (run_menu): Don't use either `p' or `n' to
  2835. move the cursor, because `p' is already used for another
  2836. purpose (password).
  2837. (run_menu) [SUPPORT_SERIAL]: Don't set the variables DISP_UP and
  2838. DISP_DOWN at the start time. Instead, set them just before using
  2839. them actually, because TERMINAL may change when running a menu.
  2840. 2000-09-01 Klaus Reichl <Klaus.Reichl@alcatel.at>
  2841. * stage2/stage2.c (run_menu): Setup and use disp_up, disp_down
  2842. depending on the terminal mode.
  2843. (run_menu): Allow '^' (resp. 'p') and 'v' (resp 'n') keys we
  2844. described in our help above (resp. authors preferences).
  2845. 2000-08-31 Klaus Reichl <Klaus.Reichl@alcatel.at>
  2846. * stage2/stage2.c (set_line): Go back one char, which is
  2847. consistent with the original situation, when a timeout was
  2848. running.
  2849. (run_menu): If GRUB_TIMEOUT is stopped don't loop busy over
  2850. CHECKKEY, just relax in GETKEY.
  2851. * stage2/builtins.c (serial_func): --speed handling: corrected
  2852. typo: set SPEED instead of PORT.
  2853. 2000-08-31 OKUJI Yoshinori <okuji@gnu.org>
  2854. * stage2/builtins.c (terminal_func): Added two new options,
  2855. --dumb and --timeout=SECS.
  2856. * stage2/char_io.c [!STAGE1_5] (getkey): Use logical AND
  2857. operations, when checking if the terminal is a console or a
  2858. serial terminal.
  2859. [!STAGE1_5] (getkey) [SUPPORT_SERIAL]: Don't check if both
  2860. TERMINAL_CONSOLE and TERMINAL_SERIAL are set in TERMINAL.
  2861. 2000-08-31 OKUJI Yoshinori <okuji@gnu.org>
  2862. * stage1/stage1.S (MOV_MEM_TO_AL): New macro.
  2863. (real_start): Use the macro MOV_MEM_TO_AL instead of using movb
  2864. directly, because binutils-2.9.1.0.x doesn't produce a short
  2865. opcode for it automatically. Reported by Alessandro Rubini
  2866. <rubini@gnu.org>.
  2867. 2000-08-30 OKUJI Yoshinori <okuji@gnu.org>
  2868. * configure.in (CPPFLAGS): Remove -Wundef by default. Add the
  2869. option only if the C compiler supports it, because GCC 2.7.x
  2870. doesn't support it.
  2871. * grub/main.c (longopts): The type of the argument for "hold" is
  2872. changed to OPTIONAL_ARGUMENT.
  2873. (main): If --hold is specified, check if OPTARG is zero. If so,
  2874. set HOLD to -1, otherwise, set it to the digit OPTARG.
  2875. If HOLD is greater than zero, decrease it once per loop.
  2876. 2000-08-30 OKUJI Yoshinori <okuji@gnu.org>
  2877. The command-line interface is switched to single-line editing
  2878. mode.
  2879. * stage2/char_io.c [!STAGE1_5] (get_cmdline): Extensively
  2880. rewritten. The nested functions cl_print and cl_kill_to_end are
  2881. removed, cl_refresh, cl_backward, cl_forward and cl_delete are
  2882. added, and, cl_init and cl_insert are rewritten from scratch.
  2883. See the source code, for more information. I don't think this
  2884. kind of changes can be represented in ChangeLog.
  2885. [!STAGE1_5] (CMDLINE_WIDTH): New macro.
  2886. [!STAGE1_5] (CMDLINE_MARGIN): Likewise.
  2887. * stage2/shared.h (TERMINAL_DUMB): Likewise.
  2888. 2000-08-28 OKUJI Yoshinori <okuji@gnu.org>
  2889. * grub/asmstub.c (console_putchar) [HAVE_LIBCURSES]: If
  2890. USE_CURSES is true, emulate a new line like a ordinary terminal,
  2891. because ncurses treats it badly. If current position on y-axis
  2892. is the bottom of the screen, call scroll. Otherwise, call move
  2893. with the arguments, Y + 1 and X, where X and Y are current
  2894. position of the cursor.
  2895. 2000-08-28 OKUJI Yoshinori <okuji@gnu.org>
  2896. * stage2/asm.S (console_putchar): Don't print a carriage return
  2897. when C is a newline.
  2898. * stage2/char_io.c (grub_putchar): Call grub_putchar with the
  2899. arugment set to a carriage return, if C is a newline.
  2900. [!STAGE1_5 && SUPPORT_SERIAL]: Don't print a carriage return
  2901. when C is a newline.
  2902. 2000-08-27 OKUJI Yoshinori <okuji@gnu.org>
  2903. * lib/device.c [__linux__]: Don't include linux/fs.h.
  2904. [!BLKGETSIZE] (BLKGETSIZE): Defined as _IO(0x12,96).
  2905. * grub/asmstub.c [__linux__]: Don't include linux/fs.h.
  2906. 2000-08-27 OKUJI Yoshinori <okuji@gnu.org>
  2907. Preserve a magic number used by Windows NT in a MBR. Shit!
  2908. Reported by Khimenko Victor.
  2909. * stage1/stage1.h (STAGE1_WINDOWS_NT_MAGIC): New macro.
  2910. * stage1/stage1.S (copy_buffer): Use pusha and popa, instead of
  2911. pushing/poping %cx and %si separately, to reduce the code size.
  2912. (nt_magic): New label. Set the offset to _start plus
  2913. STAGE1_WINDOWS_NT_MAGIC
  2914. (part_start): New label.
  2915. * stage2/builtins.c (install_func): If DEST_DRIVE is a hard
  2916. disk, copy the possible partition table and Windows NT magic to
  2917. STAGE1_BUFFER from OLD_SECT.
  2918. 2000-08-26 OKUJI Yoshinori <okuji@gnu.org>
  2919. * stage2/char_io.c (translate_keycode) [SUPPORT_SERIAL]: Don't
  2920. drain the input buffer, since that was irritating.
  2921. 2000-08-26 OKUJI Yoshinori <okuji@gnu.org>
  2922. Don't save/restore fragile registers unnecessarily.
  2923. * stage2/asm.S [!STAGE1_5] (track_int13): Don't save/restore
  2924. %ecx, %edx, or %eax.
  2925. [!STAGE1_5] (set_int13_handler): Likewise.
  2926. (biosdisk_int13_extensions): Likewise.
  2927. (biosdisk_standard): Likewise.
  2928. (check_int13_extensions): Likewise.
  2929. (get_diskinfo_int13_extensions): Likewise.
  2930. (get_diskinfo_standard): Likewise.
  2931. (get_diskinfo_floppy): Likewise.
  2932. [!STAGE1_5] (get_eisamemsize): Likewise.
  2933. [!STAGE1_5] (get_mmap_entry): Likewise.
  2934. [!STAGE1_5] (console_cls): Likewise.
  2935. [!STAGE1_5] (nocursor): Likewise.
  2936. [!STAGE1_5] (console_getxy): Likewise.
  2937. [!STAGE1_5] (console_gotoxy): Likewise.
  2938. [!STAGE1_5] (set_attrib): Likewise.
  2939. [!STAGE1_5] (getrtsecs): Likewise.
  2940. [!STAGE1_5] (currticks): Likewise, and don't zero %eax
  2941. explicitly, since prot_to_real does that.
  2942. 2000-08-25 OKUJI Yoshinori <okuji@gnu.org>
  2943. * stage2/char_io.c [!STAGE1_5] (translate_keycode): New
  2944. function. The serial part is stolen from the patch by Christoph
  2945. Plattner.
  2946. [!STAGE1_5] (get_cmdline): Call translate_keycode instead of
  2947. translating special key codes into ASCII characters by itself.
  2948. * stage2/stage2.c (run_menu): Wrap getkey with the macro
  2949. ASCII_CHAR, when checking if ESC is pressed.
  2950. Call translate_keycode as well as getkey, unless checkkey
  2951. returns -1. So don't check if C is KEY_DOWN or KEY_UP. And don't
  2952. use the macro ASCII_CHAR for C explicitly.
  2953. * stage2/shared.h (translate_keycode): Declared.
  2954. 2000-08-24 OKUJI Yoshinori <okuji@gnu.org>
  2955. * stage2/builtins.c [GRUB_UTIL]: Include stdio.h before
  2956. shared.h. Reported by Mathieu Chouquet-Stringer
  2957. <mchouque@cs.stevens-tech.edu>.
  2958. 2000-08-21 OKUJI Yoshinori <okuji@gnu.org>
  2959. * configure.in (--enable-serial-speed-emulation): New option.
  2960. (SERIAL_SPEED_SIMULATION): New conditional.
  2961. * grub/Makefile.am (SERIAL_FLAGS): New variable. Set
  2962. -DSUPPORT_SERIAL=1 and -DSIMULATE_SLOWNESS_OF_SERIAL=1, if
  2963. SERIAL_SPEED_SIMULATION is defined, otherwise, set it to
  2964. only -DSUPPORT_SERIAL=1.
  2965. (AM_CFLAGS): Removed -DSUPPORT_SERIAL=1 and added
  2966. $(SERIAL_FLAGS).
  2967. * grub/asmstub.c [SIMULATE_SLOWNESS_OF_SERIAL] (serial_speed):
  2968. New variable.
  2969. (grub_setjmp): Removed.
  2970. (grub_longjmp): Likewise.
  2971. (serial_getkey) [SIMULATE_SLOWNESS_OF_SERIAL]: Wait for
  2972. 1000000 / (SERIAL_SPEED >> 3) microseconds using gettimeofday.
  2973. (serial_putchar) [SIMULATE_SLOWNESS_OF_SERIAL]: Likewise.
  2974. (serial_init) [SIMULATE_SLOWNESS_OF_SERIAL]: Set SERIAL_SPEED to
  2975. SPEED.
  2976. * stage2/builtins.c (serial_func) [SUPPORT_SERIAL]: Added
  2977. a new option, `--speed'.
  2978. (builtin_serial): Added a description about --speed.
  2979. (terminal_func): When get a key from a serial device, if GRUB is
  2980. in the command-line interface, call grub_longjmp with
  2981. RESTART_CMDLINE_ENV, instead of init_page.
  2982. * stage2/cmdline.c (restart_cmdline_env): New variable.
  2983. (enter_cmdline): Call grub_setjmp with RESTART_CMDLINE_ENV after
  2984. calling init_cmdline.
  2985. (run_script): Run BUILTIN->FUNC with BUILTIN_SCRIPT instead of
  2986. BUILTIN_CMDLINE.
  2987. * stage2/shared.h (BUILTIN_SCRIPT): New macro.
  2988. [GRUB_UTIL] (grub_setjmp): Defined as setjmp.
  2989. [GRUB_UTIL] (grub_longjmp): Defined as longjmp.
  2990. (restart_cmdline_env): Declared.
  2991. 2000-08-20 OKUJI Yoshinori <okuji@gnu.org>
  2992. * configure.in (--enable-serial): New option. Serial terminal
  2993. support will be enabled by default, once it is stabilized.
  2994. (SERIAL_SUPPORT): New conditional.
  2995. * grub/Makefile.am (AM_CFLAGS): Added -DSUPPORT_SERIAL=1.
  2996. * grub/asmstub.c (cls): Renamed to ...
  2997. (console_cls): ... this.
  2998. (getxy): Renamed to ...
  2999. (console_getxy): ... this.
  3000. (gotoxy): Renamed to ...
  3001. (console_gotoxy): ... this.
  3002. * stage2/Makefile.am (libgrub_a_CFLAGS): Added
  3003. -DSUPPORT_SERIAL=1.
  3004. (NETBOOT_FLAGS): New variable.
  3005. (SERIAL_FLAGS): Likewise.
  3006. (STAGE2_COMPILE): Added $(NETBOOT_FLAGS) and $(SERIAL_FLAGS).
  3007. * stage2/asm.S [!STAGE1_5] (cls): Renamed to ...
  3008. [!STAGE1_5] (console_cls): ... this.
  3009. [!STAGE1_5] (getxy): Renamed to ...
  3010. [!STAGE1_5] (console_getxy): ... this.
  3011. [!STAGE1_5] (gotoxy): Renamed to ...
  3012. [!STAGE1_5] (console_gotoxy): ... this.
  3013. * stage2/builtins.c (terminal_func): If the bit flag
  3014. BUILTIN_CMDLINE in FLAGS is set, call init_page. But this should
  3015. be fixed so that it restarts enter_cmdline instead.
  3016. * stage2/char_io.c [!STAGE1_5] (gotoxy): New function.
  3017. [!STAGE1_5] (serial_gotoxy): Likewise.
  3018. [!STAGE1_5] (getxy): Likewise.
  3019. [!STAGE1_5] (serial_getxy): Likewise.
  3020. [!STAGE1_5] (cls): Likewise.
  3021. [!STAGE1_5] (serial_cls): Likewise.
  3022. * stage2/serial.h (serial_cls): Declared.
  3023. (serial_getxy): Likewise.
  3024. (serial_gotoxy): Likewise.
  3025. * stage2/shared.h (console_cls): Likewise.
  3026. (console_getxy): Likewise.
  3027. (console_gotoxy): Likewise.
  3028. * stage2/stage2.c (print_entries): If serial terminal is
  3029. enabled, print ACS_UARROW and ACS_DARROW instead of DISP_UP and
  3030. DISP_DOWN, respectively.
  3031. (print_border): If serial terminal is enabled, print
  3032. ACS_ULCORNER, ACS_URCORNER, ACS_LLCORNER, ACS_LRCORNER,
  3033. ACS_HLINE and ACS_VLINE instead of DISP_UL, DISP_UR, DISP_LL,
  3034. DISP_LR, DISP_HORIZ and DISP_VERT, respectively.
  3035. (print_border) [SUPPORT_SERIAL]: Color the menu only if console
  3036. is used.
  3037. (set_line): Take two more arguments, ENTRYNO and MENU_ENTRIES.
  3038. (set_line_normal): Likewise.
  3039. (set_line_highlight): Likewise.
  3040. (set_line) [SUPPORT_SERIAL]: If serial terminal is enabled, get
  3041. the menu entry whose attributes are being changed and redraw the
  3042. line.
  3043. (set_line_highlight) [SUPPORT_SERIAL]: If serial terminal is
  3044. enabled, print `ESC [ 7 m' and `ESC [ 0 m' before and after
  3045. calling set_line, respectively.
  3046. (run_menu) [SUPPORT_SERIAL]: Call nocursor only if console is
  3047. used.
  3048. 2000-08-20 OKUJI Yoshinori <okuji@gnu.org>
  3049. Now the serial console support is partially working.
  3050. * grub/asmstub.c (serial_checkkey): Specify a pointer to TIMEOUT
  3051. as the fifth argument to select.
  3052. (serial_get_port): New function. Just a dummy.
  3053. (serial_init): If a serial device is opened, close SERIAL_FD
  3054. before opeing a new serial device.
  3055. Don't specify O_NDELAY to open.
  3056. * stage2/builtins.c [SUPPORT_SERIAL]: Include serial.h.
  3057. (serial_func): New function.
  3058. (builtin_serial): New variable.
  3059. (terminal_func): New function.
  3060. (builtin_terminal): New variable.
  3061. (builtin_table): Add pointers to BUILTIN_SERIAL and
  3062. BUILTIN_TERMINAL.
  3063. * stage2/char_io.c [SUPPORT_SERIAL]: Include serial.h.
  3064. (getkey) [SUPPORT_SERIAL]: If both TERMINAL_CONSOLE and
  3065. TERMINAL_SERIAL are set in TERMINAL simultaneously, print a
  3066. warning and force the console terminal.
  3067. (checkkey) [SUPPORT_SERIAL]: If TERMINAL_SERIAL is set in
  3068. TERMINAL, call serial_checkkey.
  3069. (grub_putchar) [SUPPORT_SERIAL]: If TERMINAL_SERIAL is set in
  3070. TERMINAL, call serial_putchar. If C is a newline, print a
  3071. carriage return, before printing a newline.
  3072. 2000-08-15 OKUJI Yoshinori <okuji@gnu.org>
  3073. The image `nbgrub' now relocates itself from 0x10000 to 0x8000,
  3074. since the Network Boot Image Proposal doesn't permit a second
  3075. loader to be loaded below 0x10000. Reported by Matthias
  3076. Kretschmer <McCratch@gmx.net>.
  3077. * Makefile.am (NBLOADER_LINK): New variable.
  3078. (nbloader_exec_LDFLAGS): Set to $(NBLOADER_LINK) instead of
  3079. $(START_LINK).
  3080. * stage2/nbi.h (NBI_DEST_ADDR): Changed to 0x10000.
  3081. (NBI_DEST_SEG): New macro.
  3082. (NBI_DEST_OFF): Likewise.
  3083. (RELOCATED_ADDR): Likewise.
  3084. (RELOCATED_SEG): Likewise.
  3085. (RELOCATED_OFF): Likewise.
  3086. (STAGE2_START_ADDR): Likewise.
  3087. * stage2/nbloader.S: Added .code16 directive at the start of the
  3088. code.
  3089. Set the segment and the offset of the load address to
  3090. NBI_DEST_SEG and NBI_DEST_OFF, respectively.
  3091. Set the segment and the offset of the start address to
  3092. NBI_DEST_SEG and NBI_DEST_OFF + relocate - _start, respectively.
  3093. Added a routine for relocating itself.
  3094. (relocate): New label.
  3095. (copy_rest): Likewise.
  3096. (copy_loop): Likewise.
  3097. (copy): Likewise.
  3098. (boot_stage2): Likewise.
  3099. 2000-08-13 OKUJI Yoshinori <okuji@gnu.org>
  3100. * grub/main.c (main): Move the version number inside the
  3101. parentheses, since the grub shell is merely one of the programs
  3102. included in GNU GRUB.
  3103. 2000-08-13 OKUJI Yoshinori <okuji@gnu.org>
  3104. Add a serial device emulation into the grub shell.
  3105. * grub/asmstub.c: Include sys/time.h and termios.h.
  3106. (serial_fd): New variable.
  3107. (serial_device): Likewise.
  3108. (serial_getkey): New function.
  3109. (serial_checkkey): Likewise.
  3110. (serial_putchar): Likewise.
  3111. (get_termios_speed): Likewise.
  3112. (serial_init): Likewise.
  3113. (set_serial_device): Likewise.
  3114. (grub_stage2): Restore SERIAL_DEVICE and SERIAL_FD, if they were
  3115. allocated.
  3116. * stage2/serial.h [GRUB_UTIL] (set_serial_device): Declared.
  3117. 2000-08-13 OKUJI Yoshinori <okuji@gnu.org>
  3118. * stage2/asm.S (codestart) [SUPPORT_DISKLESS]: Don't reset a
  3119. disk system. That is not only uncessary but also harmful.
  3120. 2000-08-12 OKUJI Yoshinori <okuji@gnu.org>
  3121. Add a serial device driver (but only the driver).
  3122. * stage2/serial.c: New file.
  3123. * stage2/serial.h: Likewise.
  3124. * stage2/shared.h (serial_getkey): Moved to stage2/serial.h.
  3125. (serial_checkkey): Likewise.
  3126. (serial_putchar): Likewise.
  3127. * stage2/Makefile.am (noinst_HEADERS): Added serial.h.
  3128. (pre_stage2_exec_SOURCES): Added serial.c.
  3129. 2000-08-10 Pavel Roskin <proski@gnu.org>
  3130. * docs/tutorial.texi: Minor fixes.
  3131. 2000-08-10 OKUJI Yoshinori <okuji@gnu.org>
  3132. * docs/tutorial.texi (Installation): Divided into three sections
  3133. instead of two sections. Don't describe the usage of the the
  3134. grub shell any longer. Instead, how to use grub-install is
  3135. documented.
  3136. 2000-08-09 OKUJI Yoshinori <okuji@gnu.org>
  3137. * stage2/builtins.c [GRUB_UTIL]: Include stdio.h.
  3138. (embed_func) [GRUB_UTIL && __linux__]: When embedding a Stage
  3139. 1.5 into a partition, call write_to_partition instead of
  3140. biosdisk.
  3141. (install_func): Set DEST_PARTITION to the partition where Stage
  3142. 1 resides.
  3143. Set SRC_PART_START to the starting address of the partition
  3144. where Stage 2 resides.
  3145. (install_func) [GRUB_UTIL]: Set STAGE2_OS_FILE to the file name
  3146. of Stage 2 under an OS, if the new option "--stage2" is
  3147. specified. Otherwise, set it to null.
  3148. If STAGE2_OS_FILE is not null, modify the Stage 2 via the
  3149. filesystem serviced by the OS.
  3150. (install_func) [GRUB_UTIL && __linux__]: If STAGE2_OS_FILE is
  3151. null but the Stage2 resides in a partition, use
  3152. write_to_partition.
  3153. If DEST_PARTITION is not 0xFFFFFF, use write_to_partition, to
  3154. embed Stage 1.
  3155. (setup_func) [GRUB_UTIL]: If --stage2 is specified, set
  3156. STAGE2_ARG to the string pointing to the option. Otherwise, set
  3157. it to null.
  3158. (setup_func) [!GRUB_UTIL]: Set STAGE2_ARG to null.
  3159. (setup_func): If STAGE2_ARG is not null, add STAGE2_ARG and a
  3160. space character into CMD_ARG.
  3161. * lib/device.c (_LARGEFILE_SOURCE): Defined.
  3162. (_FILE_OFFSET_BITS): Likewise.
  3163. [__linux__] (write_to_partition): New function.
  3164. * lib/device.h [__linux__] (write_to_partition): Declared.
  3165. * util/grub-install.in: Specify the option "--stage2" for the
  3166. command "setup".
  3167. 2000-08-04 Jochen Hoenicke <jochen@gnu.org>
  3168. * stage2/fsys_fat.c (fat_superblock): clust_eof_marker added.
  3169. (fat_mount): Initialize clust_eof_marker to 0xff8, 0xfff8, or
  3170. 0xffffff8, depending on fat size. Support for single active FAT
  3171. added (FAT32 extension). Changed the boundary between FAT12 and
  3172. FAT16, again. The Microsoft KB article Q65541 seems to be wrong
  3173. here, I go with mtools and the previous behaviour of grub: FAT12
  3174. iff number of clusters (without counting the two nonexisting
  3175. clusters) is less or equal 4095.
  3176. (fat_read): Report error if cluster number is too big, but not
  3177. greater or equal clust_eof_marker.
  3178. * stage2/fsys_reiserfs.c (journal_init): Fixed calculation of
  3179. journal_transaction.
  3180. 2000-08-01 Jochen Hoenicke <jochen@gnu.org>
  3181. * stage2/fsys_reiserfs.c: Symlink support added.
  3182. (S_ISLNK): New macro.
  3183. (PATH_MAX): Likewise.
  3184. (MAX_LINK_COUNT): Likewise.
  3185. (reiserfs_dir): Check for symlink and handle them.
  3186. (read_tree_node): Take a block number and check if tree node was
  3187. already read in. If not update the INFO->blocks field.
  3188. (next_key): Changed call of read_tree_node.
  3189. (search_stat): Likewise.
  3190. (journal_init): Fixed a small bug. Some debugging messages added.
  3191. 2000-07-31 Pavel Roskin <proski@gnu.org>
  3192. * grub/asmstub.c (biosdisk) [__linux__]: The first argument for
  3193. _llseek renamed from "seeked_fd" to "filedes".
  3194. 2000-07-30 OKUJI Yoshinori <okuji@gnu.org>
  3195. * docs/appendices.texi (FAQ): Added the answer for the separate
  3196. boot partition problem.
  3197. 2000-07-30 OKUJI Yoshinori <okuji@gnu.org>
  3198. Update the network support to Etherboot-4.6.4.
  3199. From Daniel Wagner <wagi@gmx.ch>:
  3200. * netboot/3c509.c: Copied from Etherboot-4.6.4.
  3201. * netboot/3c509.h: Likewise.
  3202. * netboot/cards.h: Likewise.
  3203. * netboot/ns8390.c: Likewise.
  3204. * netboot/sk_g16.c: Likewise.
  3205. * netboot/sk_g16.h: Likewise.
  3206. * netboot/tulip.c: Likewise.
  3207. * netboot/pci.h: Likewise.
  3208. * netboot/main.c (dhcpdiscover): Updated.
  3209. (dhcprequest): Likewise.
  3210. (bootp): Likewise.
  3211. * netboot/README.netboot: Added the information about the new
  3212. option --enable-ns8390-force-16bit.
  3213. * configure.in (--enable-ns8390-force-16bit): New option.
  3214. * netboot/config.c: Updated.
  3215. 2000-07-29 OKUJI Yoshinori <okuji@gnu.org>
  3216. The Linux zImage support is working now.
  3217. * stage2/asm.S (linux_boot): Add 3 into %ecx and shift %ecx to
  3218. the right by 2 bits, instead of shift %ecx to the left by 2
  3219. bits.
  3220. 2000-07-29 Jochen Hoenicke <jochen@gnu.org>
  3221. * stage2/fsys_reiserfs.c (block_read): Changed the variable "len"
  3222. to "j_len" (it shadowed a parameter).
  3223. 2000-07-29 OKUJI Yoshinori <okuji@gnu.org>
  3224. * configure.in (CPPFLAGS): Added -Wshadow, -Wpointer-arith and
  3225. -Wundef, as GCC sometimes more clever than me. :)
  3226. * stage2/shared.h [!ASM_FILE] (multi_boot): Change the name of
  3227. the second argument from "mbi" to "mb_info".
  3228. [!ASM_FILE] (biosdisk): Rename the first argument "read" to
  3229. "subfunc".
  3230. * lib/device.h (init_device_map): Change the name of the third
  3231. argument from "floppy_disks" to "no_floppies".
  3232. * lib/device.c (read_device_map): Rename the internal function
  3233. "print_error" to "show_error".
  3234. * stage2/builtins.c (install_func): Rename CONFIG_FILE to
  3235. REAL_CONFIG.
  3236. (setup_func): Rename INSTALL_DRIVE, INSTALL_PARTITION and
  3237. CONFIG_FILE to INSTALLED_DRIVE, INSTALLED_PARTITION and
  3238. CONFIG_FILENAME, respectively.
  3239. * stage2/char_io.c (convert_to_ascii): Rename the internal
  3240. variable C to TMP.
  3241. (get_cmdline): Rename KILL to KILL_BUF.
  3242. Rename the second argument for cl_print to REAL_ECHO_CHAR from
  3243. ECHO_CHAR.
  3244. * stage2/stage2.c (run_menu): Rename the internal variable
  3245. NUM_ENTRIES to NEW_NUM_ENTRIES.
  3246. (cmain): Rename KILL to KILL_BUF.
  3247. * stage2/disk_inode_ffs.h: Check if BYTE_MSF is defined before
  3248. checking the value.
  3249. * stage2/fsys_ext2fs.c (ext2fs_dir): Check if E2DEBUG is
  3250. defined, instead of if the value is non-zero.
  3251. * grub/asmstub.c: Check if __GLIBC__ is defined before checking
  3252. the value.
  3253. (biosdisk) [__linux__]: Likewise.
  3254. Rename the first argument for _llseek to "seeked_fd" from "fd".
  3255. (multi_boot): Rename the second argument to "mb_info" from
  3256. "mbi".
  3257. 2000-07-27 Gordon Matzigkeit <gord@fig.org>
  3258. * util/grub-image.in: Initial cut at a script for creating GRUB
  3259. boot images.
  3260. * util/Makefile.am (noinst_SCRIPTS): Added grub-image.
  3261. * configure.in (AC_OUTPUT): Added util/grub-image.
  3262. 2000-07-27 Jochen Hoenicke <jochen@gnu.org>
  3263. * stage2/asm.S (check_int13_extensions): Fixed the effect of
  3264. the --force-lba switch in stage2/stage1_5.
  3265. 2000-07-25 Jochen Hoenicke <jochen@gnu.org>
  3266. * stage2/fsys_fat.c (fat_mount): Fixed calculation of num_clust.
  3267. It was off by two, since the two non existing clusters 0 and 1
  3268. were not taken into account. Also fixed the boundary between
  3269. FAT12 and FAT16.
  3270. 2000-07-25 OKUJI Yoshinori <okuji@gnu.org>
  3271. * stage2/asm.S [!STAGE1_5] (linux_text_len): New variable.
  3272. [!STAGE1_5] (linux_boot): Don't set %eax to LINUX_SETUP
  3273. meaninglessly.
  3274. Set %ecx to LINUX_TEXT_LEN instead of LINUX_KERNEL_MAXLEN.
  3275. [!STAGE1_5] (big_linux_boot): Disable interrupts before changing
  3276. the stack pointer.
  3277. Change %ss right before %sp.
  3278. Reverse the arguments for ljmp. A segment must be after an
  3279. offset. *sigh*
  3280. * stage2/boot.c (load_image): Set LINUX_TEXT_LEN to TEXT_LEN,
  3281. if a Linux kernel is loaded successfully.
  3282. * stage2/shared.h (LINUX_VID_MODE_OFFSET): Removed.
  3283. [!ASM_FILE] (linux_kernel_header): Change the type of the member
  3284. `heap_end_ptr' to unsigned short.
  3285. [!ASM_FILE] (linux_text_len): Declared.
  3286. 2000-07-24 OKUJI Yoshinori <okuji@gnu.org>
  3287. Comply with the Linux/i386 boot protocol version 2.02.
  3288. * stage2/asm.S [!STAGE1_5] (linux_boot): Set the length of moved
  3289. bytes to LINUX_KERNEL_MAXLEN instead of
  3290. LINUX_KERNEL_LEN_OFFSET(%eax), since the field is obsolete.
  3291. [!STAGE1_5] (big_linux_boot): Don't use SEGMENT or OFFSET.
  3292. Instead, embed the segment and the offset in the code itself.
  3293. Set %ds, %es, %fs and %gs to %ax (LINUX_INIT_SEG).
  3294. * stage2/boot.c (load_image): Rewrite the Linux support code
  3295. heavily. Use a structure instead of a batch of macros, to access
  3296. a Linux kernel header.
  3297. (load_initrd): If MOVETO plus LEN is greater than or equal to
  3298. LINUX_INITRD_MAX_ADDRESS, set MOVETO to LINUX_INITRD_MAX_ADDRESS
  3299. minus LEN with page aligned.
  3300. * stage2/shared.h (LINUX_MAGIC_SIGNATURE): New macro.
  3301. (LINUX_DEFAULT_SETUP_SECTS): Likewise.
  3302. (LINUX_FLAG_CAN_USE_HEAP): Likewise.
  3303. (LINUX_INITRD_MAX_ADDRESS): Likewise.
  3304. (LINUX_MAX_SETUP_SECTS): Likewise.
  3305. (LINUX_BOOT_LOADER_TYPE): Likewise.
  3306. (LINUX_HEAP_END_OFFSET): Likewise.
  3307. (LINUX_SETUP_MAXLEN): Removed.
  3308. (LINUX_KERNEL_LEN_OFFSET): Likewise.
  3309. (LINUX_SETUP_LEN_OFFSET): Likewise.
  3310. (LINUX_SETUP_STACK): Set to 0x7F00 instead of 0x3FF4 (why was it
  3311. this value?).
  3312. (LINUX_SETUP_LOADER): Removed.
  3313. (LINUX_SETUP_LOAD_FLAGS): Likewise.
  3314. (LINUX_SETUP_CODE_START): Likewise.
  3315. (LINUX_SETUP_INITRD): Likewise.
  3316. (CL_MY_LOCATION): Set to RAW_ADDR(0x97F00) instead of
  3317. RAW_ADDR(0x92000).
  3318. (CL_MY_END_ADDR): Set to RAW_addr(0x97FFF) instead of
  3319. RAW_ADDR(0x920FF).
  3320. (CL_MAGIC_ADDR): Removed.
  3321. (CL_OFFSET): Likewise.
  3322. [!ASM_FILE] (struct linux_kernel_header): New structure tag.
  3323. 2000-07-23 OKUJI Yoshinori <okuji@gnu.org>
  3324. * docs/tutorial.texi: Fix some syntax errors and ambiguous
  3325. sentences. Suggested by M. Meiarashi <mes@st.rim.or.jp>.
  3326. 2000-07-14 Khimenko Victor <grub@khim.sch57.msk.ru>
  3327. * stage2/boot.c (load_image): When getting the text length of a
  3328. Linux kernel, use unsigned long instead of unsigned short.
  3329. 2000-07-13 OKUJI Yoshinori <okuji@gnu.org>
  3330. * lib/device.c: Include errno.h. Reported by Thierry DELHAISE
  3331. <thierry.delhaise@delhaise.com>.
  3332. 2000-07-12 OKUJI Yoshinori <okuji@gnu.org>
  3333. Just to start implementing serial console support...
  3334. * stage2/asm.S (grub_putchar): Renamed to ...
  3335. (console_putchar): ... this.
  3336. [!STAGE1_5] (getkey): Renamed to ...
  3337. [!STAGE1_5] (console_getkey): ... this.
  3338. [!STAGE1_5] (checkkey): Renamed to ...
  3339. [!STAGE1_5] (console_checkkey): ... this.
  3340. * stage2/char_io.c [!STAGE1_5] (getkey): New function.
  3341. [!STAGE1_5] (checkkey): Likewise.
  3342. (grub_putchar): Likewise.
  3343. * stage2/shared.h [!STAGE1_5] (terminal): Declared.
  3344. [!STAGE1_5] (TERMINAL_CONSOLE): New macro.
  3345. [!STAGE1_5] (TERMINAL_SERIAL): Likewise.
  3346. (console_putchar): Declared.
  3347. (serial_putchar): Likewise.
  3348. (console_getkey): Likewise.
  3349. (serial_getkey): Likewise.
  3350. (console_checkkey): Likewise.
  3351. (serial_checkkey): Likewise.
  3352. * stage2/builtins.c (terminal): New global variable. The default
  3353. is TERMINAL_CONSOLE.
  3354. * grub/asmstub.c (grub_putchar): Renamed to ...
  3355. (console_putchar): ... this.
  3356. (getkey): Renamed to ...
  3357. (console_getkey): ... this.
  3358. (checkkey): Renamed to ...
  3359. (console_checkkey): ... this.
  3360. 2000-07-12 OKUJI Yoshinori <okuji@gnu.org>
  3361. * stage2/Makefile.am (libgrub_a_CFLAGS): Added
  3362. -I$(top_srcdir)/lib.
  3363. * stage2/builtins.c [GRUB_UTIL]: Include device.h.
  3364. 2000-07-12 OKUJI Yoshinori <okuji@gnu.org>
  3365. Segreate OS-specific helper functions from asmstub.c.
  3366. * grub/asmstub.c [__linux__]: Don't include linux/hdreg.h,
  3367. linux/major.h, linux/kdev_t.h, or linux/cdrom.h.
  3368. [__FreeBSD__ || __NetBSD__ || __OpenBSD__]: Don't include
  3369. sys/ioctl.h, sys/disklabel.h, or sys/ioctl.h.
  3370. [HAVE_OPENDISK]: Don't include util.h.
  3371. Include device.h.
  3372. (DEFAULT_FD_CYLINDERS): Removed.
  3373. (DEFAULT_FD_HEADS): Likewise.
  3374. (DEFAULT_FD_SECTORS): Likewise.
  3375. (DEFAULT_HD_CYLINDERS): Likewise.
  3376. (DEFAULT_HD_HEADS): Likewise.
  3377. (DEFAULT_HD_SECTORS): Likewise.
  3378. (NUM_DISKS): Likewise.
  3379. (init_device_map): Likewise.
  3380. (get_floppy_disk_name): Likewise.
  3381. (get_ide_disk_name): Likewise.
  3382. (get_scsi_disk_name): Likewise.
  3383. (check_device): Likewise.
  3384. (get_drive_geometry): Likewise.
  3385. * grub/main.c (no_floppy): Removed.
  3386. (probe_second_floppy): Likewise.
  3387. (floppy_disks): New global variable.
  3388. (main): Set FLOPPY_DISKS to zero, if OPT_NO_FLOPPY. Set
  3389. FLOPPY_DISKS to two, if OPT_PROBE_SECOND_FLOPPY.
  3390. * lib/Makefile.am (AM_CFLAGS): New variable.
  3391. * lib/device.h: New file.
  3392. * lib/device.c: Likewise.
  3393. * stage2/shared.h (no_floppy): Removed.
  3394. (probe_second_floppy): Likewise.
  3395. (check_device): Likewise.
  3396. (floppy_disks): Declared.
  3397. 2000-07-02 OKUJI Yoshinori <okuji@gnu.org>
  3398. * grub/main.c (usage): Enclose the mail address with parentheses
  3399. and add a period into the end of the line. That's just a
  3400. cosmetic change.
  3401. 2000-07-02 OKUJI Yoshinori <okuji@gnu.org>
  3402. * docs/appendices.texi (Obtaining and Building GRUB): Indicate
  3403. the Cygnus's binutils webpage instead of the hjl's site, since
  3404. you can now use a public release (i.e. 2.10).
  3405. 2000-06-23 OKUJI Yoshinori <okuji@gnu.org>
  3406. * stage2/boot.c (load_image): Take an additional argument
  3407. LOAD_FLAGS.
  3408. If the kernel type is Linux and the bit
  3409. KERNEL_LOAD_NO_MEM_OPTION in LOAD_FLAGS is set, don't pass a
  3410. Linux's mem option automatically.
  3411. * stage2/shared.h (load_image): Added the new argument.
  3412. * stage2/builtins.c (kernel_func): If `--no-mem-option' is
  3413. specified, set the bit KERNEL_LOAD_NO_MEM_OPTION in LOAD_FLAGS,
  3414. otherwise, LOAD_FLAGS is zero.
  3415. 2000-06-22 OKUJI Yoshinori <okuji@gnu.org>
  3416. * docs/tutorial.texi: Fixed some typos and syntax errors.
  3417. * docs/user-ref.texi: Likewise.
  3418. 2000-06-21 OKUJI Yoshinori <okuji@gnu.org>
  3419. * stage2/stage2.c (run_menu): Initialize CUR_ENTRY at the
  3420. definition.
  3421. If SHOW_MENU is zero, don't display the menu interface. Instead,
  3422. wait until the timeout is expired and then boot the default
  3423. entry. If the user presses `ESC' during the timeout, set
  3424. SHOW_MENU to one and break the loop.
  3425. Display the menu if SHOW_MENU is true, instead of if
  3426. GRUB_TIMEOUT is non-zero.
  3427. Set SHOW_MENU to one before go to the label `restart'.
  3428. * stage2/builtins.c (show_menu): New global variable.
  3429. (hiddenmenu_func): New function.
  3430. (builtin_hiddenmenu): New variable.
  3431. (builtin_table): Added a pointer to BUILTIN_HIDDENMENU.
  3432. * stage2/shared.h (show_menu): Declared.
  3433. 2000-06-19 OKUJI Yoshinori <okuji@gnu.org>
  3434. * docs/mdate-sh: Moved to ...
  3435. * mdate-sh: ... here.
  3436. * docs/texinfo.tex: Moved to ...
  3437. * texinfo.tex: ... here.
  3438. 2000-06-09 OKUJI Yoshinori <okuji@gnu.org>
  3439. * stage2/mb_info.h (AddrRangeDesc): Use one 64bits field instead
  3440. of two 32bits fields for BaseAddr and Length, respectively.
  3441. BaseAddrLow + BaseAddrHigh -> BaseAddr, LengthLow + LengthHigh
  3442. -> Length.
  3443. * stage2/builtins.c (displaymem_func): Print BaseAddr >> 32,
  3444. BaseAddr & 0xFFFFFFFF, Length >> 32 and Length & 0xFFFFFFFF,
  3445. instead of BaseAddrLow, BaseAddrHigh, LengthLow and LengthHigh,
  3446. for MAP.
  3447. * stage2/common.c (fakemap): Adjusted to the new definition of
  3448. AddrRangeDesc.
  3449. (mmap_avail_at): Change the type of TOP to unsigned long long.
  3450. If TOP is greater than 0xFFFFFFFF, set it to 0xFFFFFFFF, since
  3451. GRUB itself cannot deal with 64bits addresses at the moment.
  3452. (init_bios_info): When getting a maximum available address from
  3453. the memory map, use a new unsigned long long variable MAX_ADDR
  3454. as the temporary variable instead of MEMTMP. This should allow
  3455. GRUB to detect at most 4TB.
  3456. 2000-06-18 OKUJI Yoshinori <okuji@gnu.org>
  3457. * docs/appendices.texi (FAQ): Added an question about Linux's
  3458. `mem=' option and the answer.
  3459. 2000-06-17 OKUJI Yoshinori <okuji@gnu.org>
  3460. * stage2/boot.c (load_image): Pass a mem option to Linux, only
  3461. if SRC has no substring "mem=".
  3462. 2000-06-17 OKUJI Yoshinori <okuji@gnu.org>
  3463. * stage2/compile: Removed.
  3464. * netboot/compile: Likewise.
  3465. * compile: New file. Copied from Automake.
  3466. 2000-06-16 OKUJI Yoshinori <okuji@gnu.org>
  3467. * stage2/boot.c (load_image): Don't remove the vga option after
  3468. parsing it. Suggested by Tim Riker.
  3469. 2000-06-15 OKUJI Yoshinori <okuji@gnu.org>
  3470. * stage2/asm.S (grub_halt): Use jmp instead of jc, if INT 15
  3471. AX=5307h fails.
  3472. 2000-06-15 OKUJI Yoshinori <okuji@gnu.org>
  3473. * configure.in (AM_INIT_AUTOMAKE): Increase the version number.
  3474. I wish that 0.5.96 will not be released actually...
  3475. * stage2/builtins.c (halt_func): New function.
  3476. (builtin_halt): New variable.
  3477. (reboot_func): New function.
  3478. (builtin_reboot): New variable.
  3479. (builtin_table): Added pointers to BUILTIN_HALT and
  3480. BUILTIN_REBOOT.
  3481. * stage2/asm.S (grub_halt): New function.
  3482. (grub_reboot): Likewise.
  3483. * stage2/shared.h (grub_halt): Declared.
  3484. (grub_reboot): Likewise.
  3485. * grub/asmstub.c (grub_reboot): New function.
  3486. (grub_halt): Likewise.
  3487. 2000-06-12 Gordon Matzigkeit <gord@fig.org>
  3488. * stage2/stage2.c (run_menu): Don't display the menu if the
  3489. timeout is zero. This makes for cleaner use as a noninteractive
  3490. bootloader.
  3491. 2000-06-11 OKUJI Yoshinori <okuji@gnu.org>
  3492. * docs/tutorial.texi (GNU/Linux): Added a caution about the
  3493. "mem=" option.
  3494. 2000-06-11 OKUJI Yoshinori <okuji@gnu.org>
  3495. * util/grub-install.in (convert): When $host_os is linux*, use
  3496. the expression 's%\([sh]d[a-z]\)[0-9]*$%\1%' instead of
  3497. 's%[0-9]*$%%', to get rid of the partition part. This fixes the
  3498. bug "/dev/fd0" -> "/dev/fd". (But don't you think the naming is
  3499. quite inconsistent with hard disks? Why not /dev/fd[a-z]?)
  3500. Report by Pavel Roskin.
  3501. 2000-06-08 OKUJI Yoshinori <okuji@gnu.org>
  3502. * docs/tutorial.texi (Network): The body is moved to ...
  3503. (General usage of network support): ... this new section.
  3504. (Diskless): New section.
  3505. * docs/user-ref.texi (General commands): Added a description
  3506. about the command "tftpserver".
  3507. 2000-06-08 OKUJI Yoshinori <okuji@gnu.org>
  3508. * netboot/main.c (decode_rfc1533) [GRUB]: Eliminate trailing
  3509. NULs in the NVT string for a configuration file name, if any.
  3510. (decode_rfc1533): Likewise, if Extensions Path is present,
  3511. eliminate the trailing NULs, if any.
  3512. Also, check the length carefully to ensure that EXTPATH can fit
  3513. in FNAME.
  3514. 2000-06-06 Jochen Hoenicke <jochen@gnu.org>
  3515. * stage2/fsys_reiserfs.c: Added journaling to reiser.
  3516. (reiserfs_journal_desc): new structure.
  3517. (reiserfs_journal_commit): likewise.
  3518. (reiserfs_journal_header): likewise.
  3519. (fsys_reiser_info): Added fields for journaling.
  3520. (journal_read): new function.
  3521. (journal_init) likewise.
  3522. (block_read): New function to read reiserfs blocks, which reads
  3523. from the journal if it contains newer versions. All relevant
  3524. devread calls are replaced with calls to this method.
  3525. (reiserfs_mount): Check for journaling super block and call
  3526. journal_init.
  3527. 2000-06-06 OKUJI Yoshinori <okuji@gnu.org>
  3528. * netboot/main.c (dhcprequest) [GRUB]: Set the length of the
  3529. Parameter Request List to (4 + 2).
  3530. Set the list to RFC1533_VENDOR_MAGIC and
  3531. RFC1533_VENDOR_CONFIGFILE in addition to the standard
  3532. parameters.
  3533. (decode_rfc1533) [GRUB]: If C is equal to
  3534. RFC1533_VENDOR_CONFIGFILE, copy the contents of the tag to
  3535. CONFIG_FILE.
  3536. If C is equal to RFC1533_VENDOR_MAGIC, increment
  3537. VENDOREXT_ISVALID.
  3538. * netboot/etherboot.h [GRUB] (RFC1533_VENDOR_CONFIGFILE): New
  3539. macro. Defined as 150.
  3540. 2000-06-03 OKUJI Yoshinori <okuji@gnu.org>
  3541. * stage2/asm.S (check_int13_extensions): Check the bitmap only
  3542. if FORCE_LBA is zero.
  3543. * stage2/bios.c (get_diskinfo): Get rid of the wrong check for
  3544. the bit 0 of DRP.FLAGS. Now the bitmap check is correctly
  3545. performed in the function check_int13_extensions.
  3546. 2000-06-02 OKUJI Yoshinori <okuji@gnu.org>
  3547. * docs/user-ref.texi (Invoking the grub shell): Added a caution.
  3548. Why don't so many people still understand that BIOS drive
  3549. numbering are different from OS device naming? How many cautions
  3550. and warnings should we write in the documentation? Sigh.
  3551. 2000-06-01 OKUJI Yoshinori <okuji@gnu.org>
  3552. From Chip Salzenberg:
  3553. * stage2/cmdline.c (enter_cmdline) [SUPPORT_DISKLESS]: Redisplay
  3554. network configuration after clearing screen, before first prompt.
  3555. * stage2/cmdline.c: Include <shared.h> instead of "shared.h".
  3556. [SUPPORT_DISKLESS]: Include <etherboot.h>.
  3557. 2000-06-01 OKUJI Yoshinori <okuji@gnu.org>
  3558. * stage2/builtins.c (setup_func): Check if INSTALL_DRIVE is a
  3559. hard disk as well as IMAGE_DRIVE, before trying to install a
  3560. Stage 1.5. Reported by Pavel Roskin.
  3561. 2000-05-31 OKUJI Yoshinori <okuji@gnu.org>
  3562. * acinclude.m4 (grub_ASM_ABSOLUTE_WITHOUT_ASTERISK): New
  3563. function. Check if GAS requires absolute indirect calls/jumps
  3564. with NO asterisk.
  3565. * configure.in: Call grub_ASM_ABSOLUTE_WITHOUT_ASTERISK.
  3566. * acconfig.h (ABSOLUTE_WITHOUT_ASTERISK): New macro entry.
  3567. * netboot/pci.c (bios32_service) [!ABSOLUTE_WITHOUT_ASTERISK]:
  3568. Prefix the operand to "lcall" with `*'.
  3569. (pcibios_read_config_byte) [!ABSOLUTE_WITHOUT_ASTERISK]:
  3570. Likewise.
  3571. (pcibios_read_config_word) [!ABSOLUTE_WITHOUT_ASTERISK]:
  3572. Likewise.
  3573. (pcibios_read_config_dword) [!ABSOLUTE_WITHOUT_ASTERISK]:
  3574. Likewise.
  3575. (pcibios_write_config_byte) [!ABSOLUTE_WITHOUT_ASTERISK]:
  3576. Likewise.
  3577. (pcibios_write_config_word) [!ABSOLUTE_WITHOUT_ASTERISK]:
  3578. Likewise.
  3579. (pcibios_write_config_dword) [!ABSOLUTE_WITHOUT_ASTERISK]:
  3580. Likewise.
  3581. (check_pcibios) [!ABSOLUTE_WITHOUT_ASTERISK]: Likewise.
  3582. * stage2/asm.S (chain_stage1) [!ABSOLUTE_WITHOUT_ASTERISK]:
  3583. Prefix the operand to "ljmp" with `*'.
  3584. (chain_stage2) [!ABSOLUTE_WITHOUT_ASTERISK]: Likewise.
  3585. (big_linux_boot) [!ABSOLUTE_WITHOUT_ASTERISK]: Likewise.
  3586. 2000-05-29 Chip Salzenberg <chip@valinux.com>
  3587. * stage2/shared.h (grub_memmove): Prototype to use void *.
  3588. * stage2/char_io.c (grub_memmove): Define likewise.
  3589. 2000-05-30 Gordon Matzigkeit <gord@fig.org>
  3590. * docs/user-ref.texi (Stage2 errors): Update error messages.
  3591. 2000-05-29 Pavel Roskin <pavel_roskin@geocities.com>
  3592. * util/grub-install.in: Fix a typo that prevented error messages
  3593. from appearing.
  3594. Copy and remove files individually and exit with an error as
  3595. soon as it fails.
  3596. Show $log_file if --debug was given on the command line.
  3597. 2000-04-19 Gordon Matzigkeit <gord@fig.org>
  3598. * stage2/cmdline.c (enter_cmdline): Don't give errors on empty
  3599. command lines.
  3600. * stage2/common.c (err_list): Clean up wordings slightly.
  3601. 2000-05-29 OKUJI Yoshinori <okuji@gnu.org>
  3602. Based on a patch by Neal H Walfield <neal@walfield.org>:
  3603. * netboot/misc.c [GRUB] (inet_aton): Defined.
  3604. * netboot/main.c (arp_server_override): New function.
  3605. * netboot/etherboot.h [GRUB] (arp_server_override): Declared.
  3606. (inet_aton): Likewise.
  3607. * stage2/builtins.c (tftpserver_func): New function.
  3608. (builtin_tftpserver): New variable.
  3609. (builtin_table): Added a pointer to BUILTIN_TFTPSERVER.
  3610. 2000-05-28 OKUJI Yoshinori <okuji@gnu.org>
  3611. * stage2/asm.S (codestart): Fix a typo: DISKLESS_SUPPORT ->
  3612. SUPPORT_DISKLESS.
  3613. * stage2/nbloader.S: Fix the image length and the memory length
  3614. fields. They shouldn't contain the first sector for a tag.
  3615. Mmh..., that is unclear as far as I see the Net Boot Image
  3616. Proposal...
  3617. * stage2/shared.h (STACKOFF): Enclosed with parentheses.
  3618. (PROTSTACKINIT): Likewise.
  3619. 2000-05-27 OKUJI Yoshinori <okuji@gnu.org>
  3620. Add diskless support, mostly based on patches by Christoph
  3621. Plattner <Christoph.Plattner@dot.at>, but also based on a patch
  3622. by Chip Salzenberg <chip@valinux.com> for PXE. Of course, I've
  3623. modified both the patches thoroughly to adapt them to my
  3624. preference.
  3625. * configure.in (--enable-diskless): New option. Set a
  3626. conditional DISKLESS_SUPPORT.
  3627. * stage2/Makefile.am (noinst_HEADERS): Added nbi.h.
  3628. (EXTRA_PROGRAMS): New variable.
  3629. (pkgdata_DATA) [DISKLESS_SUPPORT]: Added
  3630. nbgrub and pxegrub.
  3631. (noinst_DATA) [DISKLESS_SUPPORT]: Added nbloader, pxeloader and
  3632. diskless.
  3633. (noinst_PROGRAMS) [DISKLESS_SUPPORT]: Added nbloader.exec,
  3634. pxeloader.exec and diskless.exec.
  3635. (PXELOADER_LINK): New variable.
  3636. (BUILT_SOURCES) [DISKLESS_SUPPORT]: Added diskless_size.h.
  3637. (diskless_exec_SOURCES): New variable.
  3638. (diskless_exec_CFLAGS): Likewise.
  3639. (diskless_exec_LDFLAGS): Likewise.
  3640. (diskless_exec_LDADD): Likewise.
  3641. (diskless_size.h): New target.
  3642. (nbloader_exec_SOURCES): New variable.
  3643. (nbloader_exec_CFLAGS): Likewise.
  3644. (nbloader_exec_LDFLAGS): Likewise.
  3645. (nbloader_exec-nbloader.o): New dependency.
  3646. (nbgrub): New target.
  3647. (pxeloader_exec_SOURCES): new variable.
  3648. (pxeloader_exec_CFLAGS): Likewise.
  3649. (pxeloader_exec_LDFLAGS): Likewise.
  3650. (pxegrub): New target.
  3651. * stage2/asm.S (install_partition): Set to 0xFFFFFF instead of
  3652. 0x020000. What was the benefit from the previous setting?
  3653. (codestart) [SUPPORT_DISKLESS]: Don't move %dl to BOOT_DRIVE.
  3654. (boot_drive) [SUPPORT_DISKLESS]: Set to NETWORK_DRIVE instead of
  3655. zero.
  3656. * stage2/common.c: Include <shared.h> instead of "shared.h",
  3657. just for a cosmetic reason.
  3658. [SUPPORT_DISKLESS]: Include etherboot.h.
  3659. [SUPPORT_DISKLESS] (setup_diskless_environment): New internal
  3660. function.
  3661. (init_bios_info) [SUPPORT_DISKLESS]: Call
  3662. setup_diskless_environment after the memory initialization is
  3663. finished. Return if fails.
  3664. * stage2/nbloader.S: New file.
  3665. * stage2/pxeloader.S: Likewise.
  3666. * stage2/nbi.h: Likewise.
  3667. 2000-05-25 OKUJI Yoshinori <okuji@gnu.org>
  3668. * netboot/fsys_tftp.c (buf_fill): Warn when amazing things
  3669. happen.
  3670. (tftp_dir): Revert previous change. Don't use TFTP_MIN_PACKET
  3671. but calculate the appropriate length.
  3672. 2000-05-23 OKUJI Yoshinori <okuji@gnu.org>
  3673. * netboot/fsys_tftp.c (tftp_dir): Append "0\0" to the request
  3674. string, because the "tsize" option must be followed by zero,
  3675. according to RFC 2349.
  3676. 2000-05-22 OKUJI Yoshinori <okuji@gnu.org>
  3677. Synchronize the documentation with the code.
  3678. * docs/user-ref.texi: Added ReiserFS as a supported filesystem.
  3679. Updated the descriptions about `password', `install', `kernel',
  3680. and `setup'.
  3681. Added a description about `lock'.
  3682. Added descriptions about ERR_UNALIGNED and ERR_PRIVILEGED.
  3683. Added a description about the option `--force-lba' of
  3684. the program `grub-install'.
  3685. * docs/tutorial.texi: Updated the subsection for NetBSD.
  3686. 2000-05-21 OKUJI Yoshinori <okuji@gnu.org>
  3687. * stage2/asm.S (set_int13_handler): Don't use MBI to get the
  3688. lower memory size. Instead, decrease it in the BIOS memory
  3689. directly and set %eax to it, since MBI.MEM_LOWER may not be the
  3690. same as [0x413] any longer due to the previous change.
  3691. * grub/asmstub.c (CONVENTIONAL_MEMSIZE): Changed to 640 * 1024
  3692. from 640. You didn't like the inconsistency between
  3693. EXTENDED_MEMSIZE and CONVENTIONAL_MEMSIZE, did you?
  3694. (get_memsize): Return CONVENTIONAL_MEMSIZE >> 10 instead of
  3695. CONVENTIONAL_MEMSIZE, if TYPE is zero.
  3696. (get_eisamemsize): Return EXTENDED_MEMSIZE >> 10 instead of
  3697. EXTENDED_MEMSIZE / 1024. Just a cosmetic change.
  3698. (MMAR_DESC_LENGTH): New macro. Defined as 20.
  3699. (get_mmap_entry): Define a new variable DESC_TABLE statically,
  3700. and copy the CONTth entry to *DESC if CONT is a correct index.
  3701. 2000-05-21 Chip Salzenberg <chip@valinux.com>
  3702. * stage2/common.c (mmap_avail_at): New function, abstracted out
  3703. of init_bios_info, to scan E820 memory map.
  3704. (init_bios_info): Use mmap_avail_at for _both_ MBI.MEM_UPPER and
  3705. MBI.MEM_LOWER.
  3706. 2000-05-17 OKUJI Yoshinori <okuji@gnu.org>
  3707. Update the network support to Etherboot-4.6.1.
  3708. * netboot/config.c (pci_nic_list) [INCLUDE_TULIP]: Added an
  3709. entry for Davicom 9102.
  3710. * netboot/epic100.c: Just copied.
  3711. * netboot/pci.h: Likewise.
  3712. * netboot/tulip.c: Likewise.
  3713. * netboot/etherboot.h (tftp): Change the type of the first
  3714. argument to const char * from char *.
  3715. * netboot/main.c (tftp): Likewise.
  3716. 2000-05-13 OKUJI Yoshinori <okuji@gnu.org>
  3717. * util/grub-install.in: If the program `cp' fails, exit with the
  3718. status code 1. Suggested by Pavel Roskin.
  3719. 2000-05-13 OKUJI Yoshinori <okuji@gnu.org>
  3720. From Pixel <pixel@mandrakesoft.com>:
  3721. * stage2/pc_slice.h (PC_SLICE_TYPE_LINUX_EXTENDED): New macro.
  3722. (IS_PC_SLICE_TYPE_EXTENDED): Added a check for
  3723. PC_SLICE_TYPE_LINUX_EXTENDED.
  3724. 2000-05-05 OKUJI Yoshinori <okuji@gnu.org>
  3725. * stage2/common.c (init_bios_info) [!STAGE1_5]: When the memory
  3726. map is present, search the maximum for MEMTMP in bytes instead
  3727. of kilobytes and set EXTENDED_MEMORY to MEMTMP minus 1MB in
  3728. kilobytes.
  3729. 2000-05-05 OKUJI Yoshinori <okuji@gnu.org>
  3730. Ignore any memory holes when passing the maximum memory address
  3731. to non-Multiboot kernels (i.e. Linux and *BSD).
  3732. * stage2/common.c [!STAGE1_5] (extended_memory): New global
  3733. variable.
  3734. (init_bios_info) [!STAGE1_5]: Change the type of CONT, MEMTMP
  3735. and ADDR to unsigned long from int.
  3736. Set EXTENDED_MEMORY to MBI.MEM_UPPER by default.
  3737. If MBI.MMAP_LENGTH is not zero, set EXTENDED_MEMORY to the
  3738. maximum available address, ignoring any memory holes.
  3739. If MBI.MMAP_LENGTH is zero but get_eisamemsize returns other
  3740. than -1, set EXTENDED_MEMORY to (CONT >> 10) + 0x3c00 if CONT is
  3741. non-zero, otherwise, set it to MEMTMP.
  3742. * stage2/shared.h [!STAGE1_5] (extended_memory): Declared.
  3743. * stage2/boot.c (load_image): Always pass the "mem=" option to a
  3744. Linux kernel, using EXTENDED_MEMORY instead of MBI.MEM_UPPER.
  3745. (bsd_boot): Use EXTENDED_MEMORY instead of MBI.MEM_UPPER.
  3746. 2000-04-30 OKUJI Yoshinori <okuji@gnu.org>
  3747. * stage1/stage1.S (message): Use lodsb instead of incw and movb.
  3748. From Andrew Clausen <clausen@gnu.org>.
  3749. * stage1/stage1.S (copy_buffer): Set %cx to 0x100 and use movsw
  3750. instead of movsb, since it is guaranteed that the region is
  3751. properly aligned.
  3752. 2000-04-29 OKUJI Yoshinori <okuji@gnu.org>
  3753. * stage2/builtins.c (setup_func): Use SECTOR_BITS instead of
  3754. SECTOR_SIZE to compute BLOCKSIZE.
  3755. 2000-04-26 OKUJI Yoshinori <okuji@gnu.org>
  3756. * netboot/depca.c: Copied from Etherboot-4.6.0.
  3757. 2000-04-23 OKUJI Yoshinori <okuji@gnu.org>
  3758. More security-related features.
  3759. * stage2/builtins.c (auth): New global variable.
  3760. (configfile_func): Clear AUTH before jumping to cmain.
  3761. (lock_func): New function.
  3762. (builtin_lock): New variable.
  3763. (password_func): Make sure that LEN + 2 is less than or equal to
  3764. PASSWORD_BUFLEN, because now the password must be terminated
  3765. with double NULs, in order to permit an empty configuration file
  3766. name.
  3767. Copy LEN bytes from ARG to PASSWORD, instead of LEN + 1 bytes.
  3768. Clear the rest of the buffer PASSWORD.
  3769. (builtin_table): Added a pointer to BUILTIN_LOCK.
  3770. * stage2/common.c (err_list): Added an entry for ERR_PRIVILEGED.
  3771. * stage2/stage2.c (run_menu): If AUTH is true, show the messages
  3772. for a non-password configuration, even if PASSWORD is not NULL.
  3773. Likewise, if AUTH is true, allow the user to use privileged
  3774. instructions (such as `c').
  3775. If a correct password is entered, check if *PPTR is NUL or not.
  3776. If it is NUL, set AUTH to 1 and go to the label restart,
  3777. otherwise, copy PPTR to NEW_FILE, clear AUTH, and return.
  3778. * stage2/shared.h (grub_error_t): Added a new constant
  3779. ERR_PRIVILEGED.
  3780. (auth): Declared.
  3781. 2000-04-23 OKUJI Yoshinori <okuji@gnu.org>
  3782. * docs/user-ref.texi (Command-line-specific commands): Don't use
  3783. the command @var for the argument "file" to the command
  3784. "configfile" on the definition.
  3785. 2000-04-22 OKUJI Yoshinori <okuji@gnu.org>
  3786. Update the network support to Etherboot 4.5.8.
  3787. * configure.in (--enable-3c590): New option.
  3788. (--enable-3c595): Likewise.
  3789. (--enable-depca): Likewise.
  3790. (--enable-lance): Likewise.
  3791. (--enable-ns8390): Likewise.
  3792. (--enable-ntulip): Likewise.
  3793. (--enable-lancepci): Removed.
  3794. (--enable-nepci): Likewise.
  3795. (--enable-otulip): Likewise.
  3796. (--enable-smc9000): The duplicated one is named to ...
  3797. (--enable-smc9000-scan): ... this. This was a typo, perhaps.
  3798. * netboot/Makefile.am (libdrivers_a_SOURCES): Removed
  3799. byteorder.h, if.h, netboot_config.h and netdevice.h, and added
  3800. cards.h.
  3801. (EXTRA_libdrivers_a_SOURCES): Removed ntulip.c and tulip.h, and
  3802. added 3c595.c, 3c595.h, depca.c, otulip.c and otulip.h.
  3803. (libdrivers_a_CFLAGS): Define FSYS_TFTP as 1 instead of empty.
  3804. (EXTRA_DIST): Removed ntulip.txt, and added cs89x0.txt and
  3805. tulip.txt.
  3806. (3c595_drivers): New variable.
  3807. (depca_drivers): Likewise.
  3808. (lance_drivers): Removed lancepci.o and added lance.o.
  3809. (ns8390_drivers): Removed nepci.o and added ns8390.o.
  3810. (ntulip_drivers): Deleted.
  3811. (otulip_drivers): New variable.
  3812. ($(3c595_drivers)): New target.
  3813. ($(depca_drivers)): Likewise.
  3814. ($(ntulip_drivers)): Deleted.
  3815. ($(otulip_drivers)): New target.
  3816. (3c590_o_CFLAGS): New variable.
  3817. (3c595_o_CFLAGS): Likewise.
  3818. (depca_o_CFLAGS): Likewise.
  3819. (lancepci_o_CFLAGS): Deleted.
  3820. (lance_o_CFLAGS): New variable.
  3821. (nepci_o_CFLAGS): Deleted.
  3822. (ns8390_o_CFLAGS): New variable.
  3823. (ntulip_o_CFLAGS): Deleted.
  3824. (otulip_o_CFLAGS): New variable.
  3825. * netboot/3c90x.c: Updated to Etherboot-4.5.8.
  3826. * netboot/3c90x.txt: Likewise.
  3827. * netboot/cs89x0.c: Likewise.
  3828. * netboot/cs89x0.h: Likewise.
  3829. * netboot/eepro100.c: Likewise.
  3830. * netboot/epic100.c: Likewise.
  3831. * netboot/epic100.h: Likewise.
  3832. * netboot/i82586.c: Likewise.
  3833. * netboot/lance.c: Likewise.
  3834. * netboot/linux-asm-io.h: Likewise.
  3835. * netboot/linux-asm-string.h: Likewise.
  3836. * netboot/nic.h: Likewise.
  3837. * netboot/ns8390.c: Likewise.
  3838. * netboot/ns8390.h: Likewise.
  3839. * netboot/pci.c: Likewise.
  3840. * netboot/pci.h: Likewise.
  3841. * netboot/rtl8139.c: Likewise.
  3842. * netboot/sk_g16.c: Likewise.
  3843. * netboot/sk_g16.h: Likewise.
  3844. * netboot/smc9000.c: Likewise.
  3845. * netboot/smc9000.h: Likewise.
  3846. * netboot/tiara.c: Likewise.
  3847. * netboot/tulip.c: Likewise.
  3848. * netboot/via-rhine.c: Likewise.
  3849. * netboot/config.c: Updated to Etherboot-4.5.8 and modified (see
  3850. below).
  3851. [GRUB] (print_config): Undefined.
  3852. (eth_probe) [GRUB]: If PROBED is true, do nothing. Otherwise,
  3853. clear NETWORK_READY and ARPTABLE, set ROM to ROM_INFO_LOCATION,
  3854. and set PROBED to 1 if succeeds.
  3855. * netboot/etherboot.h: Likewise,
  3856. (GRUB): New macro.
  3857. [GRUB]: Include <shared.h>.
  3858. [GRUB] (NO_DHCP_SUPPORT): Undefined.
  3859. [GRUB] (RELOC): Defined as zero.
  3860. [GRUB] (INTERNAL_BOOTP_DATA): Defined as one.
  3861. [GRUB] (USE_INTERNAL_BUFFER): Likewise.
  3862. [GRUB] (BACKOFF_LIMIT): Defined as 7.
  3863. [GRUB] (CTRL_C): New macro.
  3864. [GRUB] (print_network_configuration): Declared.
  3865. [GRUB] (ip_abort): Likewise.
  3866. [GRUB] (network_ready): Likewise.
  3867. * netboot/fsys_tftp.c: Don't include <netboot_config.h>.
  3868. (isocket): Renamed to ...
  3869. (iport): ... this.
  3870. (osocket): Renamed to ...
  3871. (oport): ... this.
  3872. (bcounter): New variable.
  3873. (buf_fill): When checking the block order, see BCOUNTER as well
  3874. as BLOCK.
  3875. Don't process a packet, if BLOCK minus PREVBLOCK is not 1,
  3876. instead of if BLOCK is less than or equal to PREVBLOCK.
  3877. Increment BCOUNTER after reseting RETRY.
  3878. (send_rrq): Clear BCOUNTER.
  3879. Call await_reply with AWAIT_QDRAIN.
  3880. * netboot/main.c: Don't include <netboot_config.h>.
  3881. (dhcpdiscover): Made const.
  3882. (dhcprequest): Likewise. Updated the contents.
  3883. (broadcast): Made const.
  3884. (udp_transmit): Copied.
  3885. (tftp): Likewise.
  3886. (bootp): Likewise.
  3887. (rarp): Likewise.
  3888. (await_reply): Likewise.
  3889. (decode_rfc1533): Likewise.
  3890. (rfc951_sleep): Likewise.
  3891. (cleanup_net): Likewise.
  3892. * netboot/misc.c (sleep): Copied.
  3893. (twiddle): Likewise.
  3894. (getdec): Likewise.
  3895. * netboot/osdep.h: Copied and modified (see below).
  3896. [GRUB] (ETHERBOOT32): Used the same definition as Linux and
  3897. FreeBSD.
  3898. [GRUB] (ntohl): Likewise.
  3899. [GRUB] (htonl): Likewise.
  3900. [GRUB] (ntohs): Likewise.
  3901. [GRUB] (htons): Likewise.
  3902. [GRUB] (swap32): Likewise.
  3903. [GRUB] (swap16): Likewise.
  3904. [GRUB]: Include "linux-asm-io.h".
  3905. * netboot/byteorder.h: Removed.
  3906. * netboot/if.h: Likewise.
  3907. * netboot/netboot_config.h: Likewise.
  3908. * netboot/netdevice.h: Likewise.
  3909. * netboot/ntulip.c: Likewise.
  3910. * netboot/ntulip.txt: Likewise.
  3911. * netboot/tulip.h: Likewise.
  3912. * netboot/3c595.c: New file. Copied from Etherboot-4.5.8.
  3913. * netboot/3c595.h: Likewise.
  3914. * netboot/cards.h: Likewise.
  3915. * netboot/cs89x0.txt: Likewise.
  3916. * netboot/depca.c: Likewise.
  3917. * netboot/otulip.c: Likewise.
  3918. * netboot/otulip.h: Likewise.
  3919. * netboot/tulip.txt: Likewise.
  3920. 2000-02-29 Jochen Hoenicke <jochen@gnu.org>
  3921. * stage2/common.c (err_list): Added message for ERR_UNALIGNED.
  3922. * stage2/shared.h [!STAGE1_5] (disk_read_hook,disk_read_func): New
  3923. parameters offset and length.
  3924. (ERR_UNALIGNED): New error code.
  3925. * stage2/disk_io.c (rawread) [!STAGE1_5]: Call disk_read_func with
  3926. offset and length.
  3927. * stage2/builtin.c (disk_read_print_func): Print offset and length.
  3928. (blocklist_func): Print detailed byte ranges for partial sectors.
  3929. (install_func): Detect partial sectors and print error message.
  3930. 2000-04-18 Pavel Roskin <pavel_roskin@geocities.com>
  3931. * util/grub-install.in: Don't use `!' in `test' for more
  3932. portability.
  3933. Don't use `for' without `in' for compatability with ash.
  3934. Check install_device before running grub if possible. Added
  3935. error messages if install_device is not set or not unique.
  3936. Exit if mkdir fails.
  3937. Add a message about successful installation.
  3938. Remove unneeded backslash in the final message.
  3939. (convert): use `test -b' instead of `test -e' because ash
  3940. doesn't understand the later. Correct error message accordingly.
  3941. 2000-04-17 OKUJI Yoshinori <okuji@gnu.org>
  3942. The user doesn't have to recompile GRUB for his/her buggy BIOS
  3943. any longer. It is configurable to ignore the LBA support bitmap
  3944. at the installation time.
  3945. * stage1/stage1.S (force_lba): New variable.
  3946. (stage2_address): Moved forwards, to align some variables in
  3947. natural boundaries.
  3948. (real_start): Check if FORCE_LBA is non-zero, if so, jump to
  3949. skip_lba_bitmap_check, otherwise, check if bit 0 of the support
  3950. bitmap is non-zero.
  3951. Don't use #ifdef for CHECK_LBA_SUPPORT_BITMAP.
  3952. (skip_lba_bitmap_check): New label.
  3953. * stage1/stage1.h (COMPAT_VERSION_MINOR): Set to 1.
  3954. (STAGE1_FORCE_LBA): New macro.
  3955. (STAGE1_STAGE2_ADDRESS): Set to 0x42.
  3956. (STAGE1_STAGE2_SECTOR): Set to 0x44.
  3957. (STAGE1_STAGE2_SEGMENT): Set to 0x48.
  3958. * stage2/asm.S (force_lba): New variable.
  3959. * stage2/bios.c (get_diskinfo): Don't use #ifdef for
  3960. CHECK_LBA_SUPPORT_BITMAP. Instead, check if FORCE_LBA is
  3961. non-zero. If so, don't check the bit 0 of DRP.FLAG.
  3962. * stage2/builtins.c (install_func): Check if a new option
  3963. `--force-lba' is specified. If specified, set IS_FORCE_LBA to 1
  3964. and set ARG to a value returned by skip_to. Otherwise,
  3965. IS_FORCE_LBA is zero.
  3966. Set the "force LBA" flag in STAGE1_BUFFER (the offset is
  3967. STAGE1_FORCE_LBA) to IS_FORCE_LBA.
  3968. Likewise, set the "force LBA" flag in STAGE2_SECOND_BUFFER
  3969. (the offset is STAGE2_FORCE_LBA) to IS_FORCE_LBA.
  3970. If IS_STAGE1_5 is true, then modify the Stage2, regardless of
  3971. the presence of the option REAL_CONFIG_FILE. Set the "force LBA"
  3972. flag in SCRATCHADDR (the offset is STAGE2_FORCE_LBA) to
  3973. IS_FORCE_LBA.
  3974. (builtin_install): Added description about `--force-lba' into
  3975. the docs.
  3976. (setup_func): Check if `--force-lba' is specified in ARG. If
  3977. specified, set IS_FORCE_LBA to 1 and set ARG to a value returned
  3978. by skip_to. Otherwise, IS_FORCE_LBA is zero.
  3979. If IS_FORCE_LBA is true, prepend "--force-lba " to CMD_ARG.
  3980. (builtin_setup): Added descriptions about `--force-lba' into the
  3981. docs.
  3982. * stage2/shared.h (STAGE2_FORCE_LBA): New macro.
  3983. (STAGE2_VER_STR_OFFS): Set to 0xe.
  3984. (force_lba): Declared.
  3985. * util/grub-install.in (force_lba): New variable. Set to an
  3986. empty sting by default.
  3987. (usage): Added a description about `--force-lba'.
  3988. (--force-lba): Checked in the option handling code. If
  3989. specified, set FORCE_LBA to "--force-lba".
  3990. Run the command "setup" with $force_lba added before
  3991. $install_drive.
  3992. * configure.in (--disable-lba-support-bitmap): Removed.
  3993. 2000-04-15 OKUJI Yoshinori <okuji@gnu.org>
  3994. * util/grub-install.in (root_device): Append `/' to ${rootdir},
  3995. since ROOTDIR may be empty. Reported by Satoshi Nagayasu
  3996. <snaga@oak.forus.or.jp>.
  3997. 2000-04-15 Jochen Hoenicke <jochen@gnu.org>
  3998. * configure.in: Added --disable-reiserfs option.
  3999. * stage2/Makefile.am (libgrub_a_SOURCES): Added fsys_reiserfs.c.
  4000. (libgrub_a_CFLAGS): Added -DFSYS_REISERFS=1.
  4001. (pkgdata_DATA): Added reiserfs_stage1_5.
  4002. (noinst_PROGRAMS): Added reiserfs_stage1_5.exec.
  4003. (pre_stage2_exec_SOURCES): Added fsys_reiserfs.c.
  4004. (reiserfs_stage1_5_exec_SOURCES): New variable.
  4005. (reiserfs_stage1_5_exec_CFLAGS): Likewise.
  4006. (reiserfs_stage1_5_exec_LDFLAGS): Likewise.
  4007. * stage2/disk_io.c (fsys_table): Added reiserfs entry.
  4008. * stage2/filesys.h (FSYS_REISERFS_NUM): New macro.
  4009. [FSYS_REISERFS] (reiserfs_mount, reiserfs_read, reiserfs_dir,
  4010. reiserfs_embed): Declare external function from fsys_reiserfs.c.
  4011. [!NUM_FSYS] (NUM_FSYS): Added FSYS_REISERFS_NUM.
  4012. * stage2/builtins.c (setup_func): Added reiserfs to
  4013. STAGE1_5_MAP.
  4014. * stage2/shared.h (STAGE2_ID_REISERFS_STAGE1_5): New macro.
  4015. [STAGE1_5] [FSYS_REISERFS] (STAGE2_ID): Defined to
  4016. STAGE2_ID_REISERFS_STAGE1_5.
  4017. * stage2/fsys_reiserfs.c: New file.
  4018. * stage2/builtins.c (embed_func): Call open_device instead of
  4019. open_partition.
  4020. Don't check if the filesystem is FFS. Instead, check if
  4021. FSYS_TABLE[FSYS_TYPE].EMBED_FUNC is NULL and, if not, call it.
  4022. (find_func): When CURRENT_SLICE is not a BSD slice, check if the
  4023. file can be opened, only if open_device succeeds.
  4024. * stage2/filesys.h (fsys_table): New entry embed_func.
  4025. (ffs_embed): Declared.
  4026. * stage2/disk_io.c (fsys_table): Fill embed_func entries. The
  4027. entry for FFS is ffs_embed and the others are NULLs.
  4028. * stage2/fsys_ffs.c (ffs_embed): New function.
  4029. * stage2/shared.h (SECTOR_SHIFT): New constant with
  4030. (1 << SECTOR_SHIFT) == SECTOR_SIZE.
  4031. * stage2/shared.h [!NO_BLOCK_FILES] (block_files): No longer
  4032. extern.
  4033. * stage2/disk_io.c [!NO_BLOCK_FILES] (block_files): Likewise.
  4034. (rawread, devread): Use SECTOR_BITS.
  4035. (rawread): Fixed calculation of BUFADDR if an error occured. Set
  4036. it to BUFFERADDR + BYTE_OFFSET instead of BUFFERSEG +
  4037. BYTE_OFFSET.
  4038. (grub_close) [!NO_BLOCK_FILES]: If BLOCK_FILE is non-zero,
  4039. return immediately.
  4040. (grub_close): Don't check if FSYS_TYPE is NUM_FSYS.
  4041. * stage2/fsys_fat.c (log2): New inline function.
  4042. (fat_mount): Use log2 instead of calculating the size/bit by a
  4043. loop.
  4044. 2000-04-12 OKUJI Yoshinori <okuji@gnu.org>
  4045. * configure.in: Use AC_PATH_PROG instead of AC_PATH_TOOL,
  4046. because I don't want to use the CVS version. Now you can use
  4047. autoconf 2.13.
  4048. 2000-04-10 OKUJI Yoshinori <okuji@gnu.org>
  4049. * stage2/stage2.c (run_menu): In the case where C is `o', check
  4050. if ENTRYNO is less than 11. If not, increase FIRST_ENTRY instead
  4051. of ENTRYNO. Reported by Pixel <pixel@mandrakesoft.com>.
  4052. 2000-04-09 OKUJI Yoshinori <okuji@gnu.org>
  4053. * stage1/depcomp: Removed, because it makes `make dist'
  4054. unworkable.
  4055. For developers: Don't run automake with --add-missing. Instead,
  4056. you should specify --force-missing. If you really want to add a
  4057. script from automake, copy it at hand. *sigh*
  4058. 2000-04-05 OKUJI Yoshinori <okuji@gnu.org>
  4059. * stage2/builtins.c (kernel_func): Added missing ``size''
  4060. arguments into `grub_memcmp's. Reported by Christoph Plattner
  4061. <christoph.plattner@dot.at>.
  4062. From Torsten Duwe <duwe@caldera.de>:
  4063. * stage2/boot.c (load_initrd): Mask the address with 0x3FFFFFFF
  4064. instead of 0xFFFFFFFF to place the initrd below 1GB.
  4065. (load_image): In Linux boot, add the option "mem=" only if more
  4066. than 64MB are present.
  4067. * grub/asmstub.c [__linux__]: Include <linux/cdrom.h> for
  4068. CDROM_GET_CAPABILITY.
  4069. [__FreeBSD__ || __NetBSD__ || __OpenBSD__]: Include <sys/cdio.h>
  4070. for CDIOCCLRDEBUG.
  4071. (check_device) [__linux__] [CDROM_GET_CAPABILITY]: If ioctl for
  4072. CDROM_GET_CAPAIBILITY succeeds, return zero.
  4073. [__FreeBSD__ || __NetBSD__ || __OpenBSD__] [CDIOCCLRDEBUG]: If
  4074. ioctl for CDIOCCLRDEBUG succeeds, return zero.
  4075. * stage2/boot.c (load_initrd): Subtract 0x1000 (one page size)
  4076. from MOVETO, to avoid a Linux 2.3.xx's bug.
  4077. 2000-04-03 OKUJI Yoshinori <okuji@gnu.org>
  4078. Add a dirty hack into the kernel loader so that the user can
  4079. force GRUB to load NetBSD ELF kernels. The support code is
  4080. mostly stolen from a patch by Pavel Roskin.
  4081. * stage2/boot.c (load_image): Added an optional argument
  4082. SUGGESTED_TYPE.
  4083. If BUFFER is a bootable ELF image and SUGGESTED_TYPE is
  4084. KERNEL_TYPE_NETBSD, then load it as an ELF image and set STR2 to
  4085. "NetBSD" and TYPE to SUGGESTED_TYPE.
  4086. If the image is a Linux kernel and SUGGESTED_TYPE is not
  4087. KERNEL_TYPE_NONE, make sure that SUGGESTED_TYPE matches up to
  4088. the Linux kernel type.
  4089. If TYPE is KERNEL_TYPE_NETBSD, set MEMADDR to
  4090. RAW_ADDR (phdr->paddr & 0xFFFFFF) like FreeBSD.
  4091. If SUGGESTED_TYPE is not KERNEL_TYPE_NONE, make sure that
  4092. SUGGESTED_TYPE is equal to TYPE.
  4093. (bsd_boot): If TYPE is not KERNEL_TYPE_FREEBSD (i.e. NetBSD or
  4094. OpenBSD) and the bit MB_INFO_AOUT_SYMS is set, set END_MARK to
  4095. MBI.SYMS.A.ADDR + 4 + MBI.SYMS.A.TABSIZE + MBI.SYMS.A.STRSIZE.
  4096. If the bit is clear, set END_MARK to 0.
  4097. Pass END_MARK to *ENTRY_ADDR instead of directly calculating the
  4098. end of symbols.
  4099. * stage2/shared.h (load_image): Added the argument
  4100. SUGGESTED_TYPE to the prototype.
  4101. * stage2/builtins.c (kernel_func): Added a new option,
  4102. `--type=TYPE'. Check if ARG is started with "--type=".
  4103. If so, set SUGGESTED_TYPE to KERNEL_TYPE_NETBSD,
  4104. KERNEL_TYPE_FREEBSD, KERNEL_TYPE_NETBSD, KERNEL_TYPE_LINUX,
  4105. KERNEL_TYPE_BIG_LINUX, KERNEL_TYPE_MULTIBOOT if ARG is "netbsd",
  4106. "freebsd", "openbsd", "linux", "biglinux", "multiboot",
  4107. respectively. Otherwise, set ERRNUM to ERR_BAD_ARGUMENT and
  4108. return 1. Set KERNEL_ARG to a string after the option.
  4109. (builtin_kernel): Added a description about the new option.
  4110. 2000-04-03 OKUJI Yoshinori <okuji@gnu.org>
  4111. * stage2/stage2.c (run_menu) [GRUB_UTIL]: Removed a nested
  4112. "#ifdef GRUB_UTIL" ... "#endif".
  4113. * stage2/builtins.c (unhide_func): Don't modify SAVED_DRIVE or
  4114. SAVED_PARTITION.
  4115. (hide_func): Likewise.
  4116. * stage2/disk_io.c (set_partition_hidden_flag): Use
  4117. CURRENT_DRIVE and CURRENT_PARTITION instead of SAVED_DRIVE and
  4118. SAVED_PARTITION. Check if bit 7 in CURRENT_DRIVE is non-zero
  4119. instead of if CURRENT_DRIVE is non-zero.
  4120. * grub/asmstub.c (init_device_map): Change the message
  4121. "Probe devices..." to "Probing devices...". Suggested by Neal H
  4122. Walfield.
  4123. * stage2/pc_slice.h (PC_SLICE_TYPE_HIDDEN_FLAG): Move the
  4124. definition before the PC partition type definitions.
  4125. (IS_PC_SLICE_TYPE_FAT): Clear the hidden flag in TYPE before
  4126. checking if TYPE is either of the FAT partition types. Reported
  4127. by Thomas Schweikle <tschweikle@fiducia.de>.
  4128. 2000-04-02 OKUJI Yoshinori <okuji@gnu.org>
  4129. * stage2/builtins.c (setup_func): Don't read a stage 1.5 to get
  4130. the size. Use FILEMAX instead.
  4131. If embed_func fails (i.e. ERRNUM is non-zero), goto fail.
  4132. 2000-04-02 OKUJI Yoshinori <okuji@gnu.org>
  4133. Suggested by Neal H Walfield <neal@walfield.org>:
  4134. * stage2/common.c (init_bios_info): Removed a nested
  4135. "#ifndef STAGE1_5" ... "#endif".
  4136. * util/grub-install.in: Quote most of the references to
  4137. shell variables by double quotation marks.
  4138. (usage): Added a description about the argument.
  4139. * stage2/builtins.c (setup_func): Change each of the messages
  4140. when running embed_func and install_func. "Run" -> "Running".
  4141. If install_func succeeds, print a message ("Done.").
  4142. From Frank Mehnert <fm3@os.inf.tu-dresden.de>:
  4143. * stage2/char_io.c (convert_to_ascii) [!STAGE1_5]: Accept 'X'
  4144. and 'b' as well. If C is 'X' or 'b', then set MULT to 16.
  4145. (grub_printf): Set a new variable MASK to 0xFFFFFFFF by default.
  4146. Mask *DATAPTR with MASK when calling convert_to_ascii.
  4147. (grub_printf) [!STAGE1_5]: Added 'b' and 'X'. If C is 'b', set
  4148. MASK to 0xFF and fall through to the case 'u'. 'X' is the same
  4149. as 'x'.
  4150. From Josip Rodin <joy@cibalia.gkvk.hr>:
  4151. * grub.texi: Several awkward English sentences are fixed.
  4152. * tutorial.texi: Likewise.
  4153. * user-ref.texi: Likewise.
  4154. * appendices.texi: Likewise.
  4155. 2000-03-27 OKUJI Yoshinori <okuji@gnu.org>
  4156. * stage1/depcomp: New file. Automake forces to install it. This
  4157. is a known bug, so I will remove this when Tom fixes it.
  4158. * configure.in (AM_INIT_AUTOMAKE): Don't get the package name
  4159. and the version from debian/changelog. This is a workaround.
  4160. 2000-03-20 OKUJI Yoshinori <okuji@gnu.org>
  4161. * stage2/Makefile.am (nodist_pkgdata_DATA): Renamed to ...
  4162. (pkgdata_DATA): ... this. DATA is not distributed by default.
  4163. (CLEANFILES): Delete the first one. I don't know why this
  4164. variable was duplicated.
  4165. Set to $(pkgdata_DATA) instead of $(nodist_pkgdata_DATA).
  4166. (start_exec_DEPENDENCIES): Removed. This doesn't make sense.
  4167. (start_exec-start.o): New rule.
  4168. * depcomp: New file. Copied from automake.
  4169. * missing: Updated from automake.
  4170. 2000-03-15 OKUJI Yoshinori <okuji@gnu.org>
  4171. * netboot/Makefile.am (EXTRA_libdrivers_a_SOURCES): 3c89x0.h ->
  4172. cs89x0.h. Just a typo.
  4173. 2000-03-10 Gordon Matzigkeit <gord@fig.org>
  4174. * debian/rules: Strip mbchk.
  4175. * debian/postinst: Fix up /usr/doc symlink creation.
  4176. 2000-03-01 OKUJI Yoshinori <okuji@gnu.org>
  4177. * netboot/fsys_tftp.c (tftp_dir): Add BUF_READ into FILEMAX
  4178. after BUF_EOF becomes non-zero. Reported by Per Lundberg.
  4179. 2000-03-01 OKUJI Yoshinori <okuji@gnu.org>
  4180. * stage2/builtins.c (color_func): Return 1 if safe_parse_maxint
  4181. returns zero instead of non-zero. Reported by Magnus Holmberg
  4182. <pucko@lysator.liu.se>.
  4183. 2000-02-29 OKUJI Yoshinori <okuji@gnu.org>
  4184. * grub/asmstub.c [__linux__]: Include <linux/kdev_t.h> for the
  4185. macro MAJOR. From Kalle Olavi Niemitalo <tosi@ees2.oulu.fi>.
  4186. 2000-02-27 OKUJI Yoshinori <okuji@gnu.org>
  4187. * docs/tutorial.texi (Network): New chapter.
  4188. 2000-02-26 OKUJI Yoshinori <okuji@gnu.org>
  4189. * docs/help2man: Upgraded to 1.020.
  4190. * docs/grub.8: Regenerated.
  4191. * docs/grub-install.8: Likewise.
  4192. * docs/mbchk.1: Likewise.
  4193. * docs/tutorial.texi (Boot): Rewritten heavily. Added the notes
  4194. on FreeBSD, NetBSD, OpenBSD, DOS/Windows and SCO UnixWare.
  4195. * docs/menu.lst: Load "/boot/loader" instead of "/kernel" in the
  4196. FreeBSD entry. This is consistent with the documentation.
  4197. 2000-02-25 OKUJI Yoshinori <okuji@gnu.org>
  4198. * netboot/fsys_tftp.c (tftp_read): Set BUF_READ to zero if
  4199. FILEPOS is less than SAVED_FILEPOS, before calling buf_fill.
  4200. Don't discard all of the copied data so that we can move FILEPOS
  4201. backwards cheaply. Now SAVED_FILEPOS indicates the file position
  4202. corresponding to the first byte of BUF. If (FILEPOS -
  4203. SAVED_FILEPOS) is greater than (FSYS_BUFLEN / 2), move the data
  4204. forwards and add (FSYS_BUFLEN / 2) into SAVED_FILEPOS and
  4205. subtract the same value from BUF_READ.
  4206. 2000-02-24 OKUJI Yoshinori <okuji@gnu.org>
  4207. * stage2/disk_io.c [!STAGE1_5] (print_fsys_type): Mask
  4208. CURRENT_SLICE with 0xFF when printing the partition type.
  4209. * grub/asmstub.c [__linux__]: Include <linux/major.h> for the
  4210. definition FLOPPY_MAJOR.
  4211. (check_device) [__linux__]: Skip the HDIO_GETGEO ioctl if the
  4212. major number of ST.ST_RDEV is FLOPPY_MAJOR.
  4213. 2000-02-21 OKUJI Yoshinori <okuji@gnu.org>
  4214. * stage2/disk_io.c (check_BSD_parts) [!STAGE1_5]: Use the term
  4215. "BSD sub-partition" instead of "BSD slice" for consistency.
  4216. * stage2/builtins.c (boot_func): Copy the partition table to
  4217. BOOT_PART_TABLE instead of (BOOTSEC_LOCATION +
  4218. BOOTSEC_PART_OFFSET). Don't use grub_memmove, but copy it
  4219. directly, since memcheck is too strict.
  4220. * stage2/disk_io.c (real_open_partition) [!STAGE1_5]: Set
  4221. CUR_PART_ADDR to (BOOT_PART_TABLE + (i << 4)).
  4222. * stage2/shared.h (BOOT_PART_TABLE): New macro.
  4223. (chain_stage1): Change the types of all the arguments to
  4224. unsigned long.
  4225. (chain_stage2): Likewise.
  4226. * grub/asmstub.c (chain_stage1): Adjusted to the prototype.
  4227. (chain_stage2): Likewise.
  4228. 2000-02-21 OKUJI Yoshinori <okuji@gnu.org>
  4229. * stage2/disk_io.c (check_BSD_parts) [!STAGE1_5]: If the BSD
  4230. label is invalid, print a message with the partition type in the
  4231. case where FLAGS is non-zero and DO_COMPLETION is zero.
  4232. 2000-02-20 OKUJI Yoshinori <okuji@gnu.org>
  4233. * docs/user-ref.texi (Command-line-specific commands): Added a
  4234. description about "cmp".
  4235. * docs/appendices.texi (Reporting bugs): Rewritten.
  4236. 2000-02-20 OKUJI Yoshinori <okuji@gnu.org>
  4237. Update the netboot code to Etherboot 4.4.3.
  4238. * netboot/netboot_config.h: Copied from etherboot-4.4.3.
  4239. * netboot/cs89x0.h: Likewise.
  4240. * netboot/cs89x0.c: Likewise.
  4241. * netboot/i82586.c: Likewise.
  4242. * netboot/lance.c: Likewise.
  4243. * netboot/linux-asm-string.h: Likewise.
  4244. * netboot/nic.h: Likewise.
  4245. * netboot/ntulip.c: Likewise.
  4246. * netboot/osdep.h: Likewise.
  4247. * netboot/pci.h: Likewise.
  4248. * netboot/pci.c: Likewise.
  4249. * netboot/rtl8139.c: Likewise.
  4250. * netboot/tiara.c: Likewise.
  4251. 2000-02-19 OKUJI Yoshinori <okuji@gnu.org>
  4252. * stage2/builtins.c (cmp_func): New function.
  4253. (builtin_cmp): New variable.
  4254. (builtin_table): Added a pointer to BUILTIN_CMP.
  4255. * stage2/fsys_fat.c (fat_mount): Check if BPB.SECTS_PER_CLUST is
  4256. zero after reading the BPB to avoid zero division.
  4257. 2000-02-18 OKUJI Yoshinori <okuji@gnu.org>
  4258. * stage2/disk_io.c [!STAGE1_5] (make_saved_active): Make sure
  4259. that SAVED_PARTITION is not an extended partition.
  4260. If SAVED_DRIVE is not a hard disk drive, set ERRNUM to
  4261. ERR_DEV_VALUES and return zero.
  4262. * netboot/3c59x.c: Removed.
  4263. * netboot/Makefile.am (EXTRA_libdrivers_a_SOURCES): Deleted
  4264. 3c59x.c.
  4265. (3c59x_drivers): Deleted.
  4266. (3c59x_o_CFLAGS): Likewise.
  4267. * configure.in (--enable-3c59x): Likewise.
  4268. 2000-02-17 OKUJI Yoshinori <okuji@gnu.org>
  4269. * configure.in (--enable-3c90x): Add -DINCLUDE_3C90X=1 instead
  4270. of -DINCLUDE_3C90x=1. This was just a typo. Reported by Per
  4271. Lundberg.
  4272. 2000-02-17 Jochen Hoenicke <jochen@gnu.org>
  4273. * stage2/fsys_fat.c (fat_read): Forgot to increase BUF.
  4274. (fat_dir): Use fat_read instead of grub_read; this makes
  4275. setting the FSMAX unnecessary.
  4276. (fat_mount): FSMAX is no longer set.
  4277. 2000-02-16 Jochen Hoenicke <jochen@gnu.org>
  4278. * stage2/char_io.c (grub_isspace): Make carriage return a white
  4279. space.
  4280. * stage2/fsys_fat.c (fat_dir): Long filename support.
  4281. (NAME_BUF): New macro.
  4282. * stage2/fat.h (FAT_LONGDIR_ID, FAT_LONGDIR_ALIASCHECKSUM,
  4283. FAT_ATTRIB_LONGNAME): New Macros.
  4284. * stage2/fsys_fat.c (fat_create_blocklist): Deleted, instead
  4285. fat_read is implemented.
  4286. (fat_read): new function.
  4287. * stage2/disk_io.c (fsys_table): Use fat_read.
  4288. * stage2/filesys.h: Declare fat_read, remove NO_BLOCK_FILES
  4289. hack.
  4290. * stage2/Makefile.am: Compile fat_stage1_5 with
  4291. -DNO_BLOCK_FILES=1.
  4292. * stage2/fat.h (fat_bpb): New structure describing bpb.
  4293. (FAT_CVT_U16): New macro.
  4294. (FAT_BPB_CHECK_SIG, FAT_BPB_NUM_SECTORS,
  4295. FAT_BPB_BYTES_PER_SECTOR, FAT_BPB_SECT_PER_CLUS, FAT_BPB_NUMFAT,
  4296. FAT_BPB_RESERVED_SECTORS, FAT_BPB_FAT_SECTORS_16,
  4297. FAT_BPB_FAT_SECTORS_32, FAT_BPB_IS_FAT32, FAT_BPB_FAT_SECTORS,
  4298. FAT_BPB_FAT_START, FAT_BPB_ROOT_DIR_CLUSTER,
  4299. FAT_BPB_HIDDEN_SECTORS, FAT_BPB_ROOT_DIR_START,
  4300. FAT_BPB_ROOT_DIR_LENGTH, FAT_BPB_DATA_OFFSET,
  4301. FAT_BPB_NUM_CLUST): Macros removed.
  4302. * stage2/fsys_fat.c (fat_superblock): New structure containing
  4303. all info about currently mounted filesystem.
  4304. (FAT_SUPER): New Macro.
  4305. (BPB): Macro removod.
  4306. (fat_mount): Use fat_bpb structure, fill FAT_SUPER.
  4307. (fat_read, fat_dir): Use FAT_SUPER info.
  4308. 2000-02-16 OKUJI Yoshinori <okuji@gnu.org>
  4309. Pass the boot partition information to a chain-loader, in the
  4310. partition table area of the loader, instead of right before the
  4311. loaded address. Reported by takehiro@coral.ocn.ne.jp (Takehiro
  4312. Suzuki).
  4313. * stage2/builtins.c (chainloader_func): Embed the partition
  4314. table of the boot drive in the partition table area of the
  4315. chain-loader, if the boot drive is a hard disk drive.
  4316. Pass BOOT_PART_ADDR instead of (BOOTSEC_LOCATION - 16) as the
  4317. third argument for the function chain_stage1.
  4318. * stage2/disk_io.c [!STAGE1_5] (boot_part_addr): New variable.
  4319. [!STAGE1_5] (boot_part_offset): Likewise.
  4320. [!STAGE1_5] (cur_part_offset): Likewise.
  4321. [!STAGE1_5] (cur_part_addr): Likewise.
  4322. [!STAGE1_5] (cur_part_desc): Removed.
  4323. (real_open_partition) [!STAGE1_5]: Set CUR_PART_OFFSET and
  4324. CUR_PART_ADDR to PART_OFFSET and (BOOTSEC_LOCATION +
  4325. PC_SLICE_OFFSET + (i << 4)), respectively.
  4326. [!STAGE1_5] (set_bootdev): Set BOOT_PART_OFFSET and
  4327. BOOT_PART_ADDR to CUR_PART_OFFSET and CUR_PART_ADDR,
  4328. respectively.
  4329. * stage2/shared.h (boot_part_addr): Declared.
  4330. (boot_part_offset): Likewise.
  4331. 2000-02-12 OKUJI Yoshinori <okuji@gnu.org>
  4332. * stage2/builtins.c (geometry_func): Attempt to read the first
  4333. sector to examine if LBA mode is really supported.
  4334. * netboot/fsys_tftp.c (buf_fill) [TFTP_DEBUG]: Added some debug
  4335. messages.
  4336. (send_rrq) [TFTP_DEBUG]: Likewise.
  4337. (tftp_read) [TFTP_DEBUG]: Likewise.
  4338. (tftp_dir) [TFTP_DEBUG]: Likewise.
  4339. (tftp_close) [TFTP_DEBUG]: Likewise.
  4340. (tftp_read): Call buf_fill with the argument 1 first, if FILEPOS
  4341. has been moved backwards, and use grub_memmove for copying
  4342. SAVED_TP to TP instead of a direct assignment.
  4343. If send_rrq fails, set ERRNUM to ERR_WRITE instead of ERR_READ.
  4344. Check if BUF_READ is zero instead of if BUF_EOF is non-zero at
  4345. the end of the loop.
  4346. (tftp_dir): Set ERRNUM to ERR_WRITE instead of ERR_READ, if
  4347. send_rrq fails.
  4348. Save TP and LEN in SAVED_TP and SAVED_LEN respectively before
  4349. buf_fill instead of after it, because it destroys the contents
  4350. of TP.
  4351. * netboot/main.c (print_network_configuration): The order of the
  4352. arguments for grub_sprintf in the local function sprint_ip_addr
  4353. is reversed.
  4354. * configure.in (--enable-packet_retransmission): Renamed to ...
  4355. (--disable-packet-retransmission): ... this. Assume that a
  4356. network is congested by default.
  4357. 2000-02-11 OKUJI Yoshinori <okuji@gnu.org>
  4358. From Pavel Roskin:
  4359. * stage2/shared.h [!GRUB_SHARED_HEADER] (GRUB_SHARED_HEADER):
  4360. Defined.
  4361. [GRUB_SHARED_HEADER]: Don't declare or define anything.
  4362. * netboot/main.c (print_network_configuration): New function.
  4363. (await_reply): Check for Control-C instead of ESC, because GRUB
  4364. already uses ESC for another purpose.
  4365. (rfc951_sleep): Check for the key input in the loop. If
  4366. Control-C is pushed, return immediately.
  4367. * netboot/etherboot (print_network_configuration): Declared.
  4368. (CTRL_C): New macro.
  4369. (ESC): Undefined.
  4370. * netboot/config.c (eth_probe): Clear ARPTABLE after clearing
  4371. NETWORK_READY.
  4372. * stage2/builtins.c (bootp_func): Call
  4373. print_network_configuration if bootp succeeds.
  4374. (rarp_func): Call print_network_configuration if rarp succeeds.
  4375. 2000-02-11 OKUJI Yoshinori <okuji@gnu.org>
  4376. From Per Lundberg <plundis@byggdok.se>:
  4377. * docs/multiboot.texi: Added graphics support.
  4378. 2000-02-10 OKUJI Yoshinori <okuji@gnu.org>
  4379. * docs/multiboot.texi (Top): Downgrade the version to 0.6.90,
  4380. since we need more work to release it as 0.7.
  4381. 2000-02-10 OKUJI Yoshinori <okuji@gnu.org>
  4382. * stage2/Makefile.am [NETBOOT_SUPPORT] (STAGE2_COMPILE): Added
  4383. -I$(top_srcdir)/netboot and -DSUPPORT_NETBOOT=1.
  4384. * stage2/builtins.c (bootp_func): New function.
  4385. (dhcp_func): Likewise.
  4386. (rarp_func): Likewise.
  4387. (builtin_bootp): New variable.
  4388. (builtin_dhcp): Likewise.
  4389. (builtin_rarp): Likewise.
  4390. (builtin_table): Added pointers to BUILTIN_BOOTP, BUILTIN_DHCP
  4391. and BUILTIN_RARP.
  4392. * docs/user-ref.texi (General Commands): Added descriptions
  4393. about "bootp", "dhcp" and "rarp".
  4394. * netboot/main.c (bootp) [!NO_DHCP_SUPPORT]: Added casts to
  4395. suppress gcc warnings.
  4396. (decode_rfc1533) [!NO_DHCP_SUPPORT]: Likewise.
  4397. * netboot/3c90x.c: Include the local "pci.h" instead of
  4398. <linux/pci.h> even if __FreeBSD__ is undefined.
  4399. 2000-02-09 OKUJI Yoshinori <okuji@gnu.org>
  4400. From Jochen Hoenicke:
  4401. * stage2/fsys_fat.c (fat_create_blocklist): The previous change
  4402. is reversed. Set FIRST_FAT_ENTRY to a unsigned long value in
  4403. FAT_BUF + (NEW_MAPBLOCK - MAPBLOCK) instead of a unsigned short
  4404. value. Mask FIRST_FAT_ENTRY with 0xFFF if FAT_SIZE is equal to
  4405. 3, whether the bit 0 of LAST_FAT_ENTRY is set or not.
  4406. * netboot/config.c (eth_probe): If PROBED is set to non-zero,
  4407. return 1 without probing ethernet cards. Clear NETWORK_READY. If
  4408. *T->ETH_PROBE return sucessfully, set PROBED to 1.
  4409. * netboot/main.c (rarp): Call eth_probe and return zero if
  4410. fails. Clear NETWORK_READY at first, and set NETWORK_READY to 1
  4411. if RETRY is less than MAX_ARP_RETRIES. If IP_ABORT is non-zero,
  4412. return zero instead of one.
  4413. (bootp): Call eth_probe and return zero if fails. Clear
  4414. NETWORK_READY at first, and set NETWORK_READY to 1 if
  4415. await_reply returns successfully.
  4416. (bootp) [T509HACK]: If FLAG is non-zero, skip calling
  4417. await_reply. Don't call await_reply here any more.
  4418. (bootp) [!NO_DHCP_SUPPORT]: If any ack packet is not reached
  4419. within MAX_BOOTP_RETRIES times, return zero. If DHCP_REPLY isn't
  4420. DHCPOFFER, set NETWORK_READY to one and return one.
  4421. * netboot/etherboot.h (NO_DHCP_SUPPORT): Undefined.
  4422. * stage2/builtins.c (print_root_device): Use the macro
  4423. NETWORK_DRIVE instead of 0x20.
  4424. * stage2/disk_io.c [!STAGE1_5] (sane_partition): Likewise.
  4425. (real_open_partition) [!STAGE1_5]: Likewise.
  4426. (set_device) [!STAGE1_5]: Likewise.
  4427. 2000-02-08 OKUJI Yoshinori <okuji@gnu.org>
  4428. * grub/asmstub.c (biosdisk) [__linux__]: Use _llseek when
  4429. __GLIBC_MINOR__ is less than 1 even if __GLIBC__ is 2. Reported
  4430. by Goran Koruga <goran.koruga@hermes.si>.
  4431. * configure.in (--disable-lba-support-bitmap-check): New option.
  4432. Don't define CHECK_LBA_SUPPORT_BITMAP if specified.
  4433. * stage1/stage1.S (real_start): Check if AH=0x42 is supported if
  4434. CHECK_LBA_SUPPORT_BITMAP instead of NO_BUGGY_BIOS_IN_THE_WORLD
  4435. is defined.
  4436. * stage2/bios.c (get_diskinfo): Check if LBA read/write
  4437. functions are supported iff CHECK_LBA_SUPPORT_BITMAP is defined,
  4438. instead of NO_BUGGY_BIOS_IN_THE_WORLD.
  4439. 2000-02-07 OKUJI Yoshinori <okuji@gnu.org>
  4440. The netboot support is heavily rewritten, based on
  4441. Etherboot-4.4.2. The current one doesn't work yet, so check out
  4442. GRUB with the tag "dresden_netboot_code" if you need working
  4443. one.
  4444. * configure.in (--enable-tftp): Deleted.
  4445. (FSYS_CFLAGS): `AC_SUBST'ed right before AC_OUTPUT.
  4446. (NETBOOT_DRIVERS): New variable. AC_SUBST this after examining
  4447. the driver options.
  4448. (--enable-packet-retransmission): New option.
  4449. (--enable-pci-direct): Likewise.
  4450. (--enable-3c509): Likewise.
  4451. (--enable-3c529): Likewise.
  4452. (--enable-3c90x): Likewise.
  4453. (--enable-cs89x0): Likewise.
  4454. (--enable-epic100): Likewise.
  4455. (--enable-3c507): Likewise.
  4456. (--enable-exos205): Likewise.
  4457. (--enable-ni5210): Likewise.
  4458. (--enable-lancepci): Likewise.
  4459. (--enable-ne2100): Likewise.
  4460. (--enable-ni6510): Likewise.
  4461. (--enable-3c503): Likewise.
  4462. (--enable-ntulip): Likewise.
  4463. (--enable-rtl8139): Likewise.
  4464. (--enable-sk-g16): Likewise.
  4465. (--enable-smc9000): Likewise.
  4466. (--enable-tiara): Likewise.
  4467. (--enable-tulip): Likewise.
  4468. (--enable-via-rhine): Likewise.
  4469. (--enable-3c503-shmem): Likewise.
  4470. (--enable-3c503-aui): Likewise.
  4471. (--enable-3c509-hack): Likewise.
  4472. (--enable-compex-rl2000-fix): Likewise.
  4473. (--enable-smc9000-scan): Likewise.
  4474. (--enable-t503): Deleted.
  4475. (--enable-lance): Likewise.
  4476. (--enable-cs): Likewise.
  4477. * netboot/main.c: New file. Copied and modified.
  4478. * netboot/linux-asm-io.h: Likewise.
  4479. * netboot/etherboot.h: Likewise.
  4480. * netboot/misc.c: Likewise.
  4481. * netboot/via-rhine.c: Likewise.
  4482. * netboot/3c90x.c: Likewise.
  4483. * netboot/3c90x.txt: Likewise.
  4484. * netboot/epic100.c: Likewise.
  4485. * netboot/epic100.h: Likewise.
  4486. * netboot/i82586.c: Likewise.
  4487. * netboot/linux-asm-string.h: Likewise.
  4488. * netboot/ntulip.c: Likewise.
  4489. * netboot/ntulip.txt: Likewise.
  4490. * netboot/osdep.h: Likewise.
  4491. * netboot/rtl8139.c: Likewise.
  4492. * netboot/sk_g16.c: Likewise.
  4493. * netboot/sk_g16.h: Likewise.
  4494. * netboot/smc9000.c: Likewise.
  4495. * netboot/smc9000.h: Likewise.
  4496. * netboot/tiara.c: Likewise.
  4497. * netboot/tulip.c: Likewise.
  4498. * netboot/tulip.h: Likewise.
  4499. * netboot/README.netboot: New file. Most information is stolen
  4500. from Makefile and Config.32 in Etherboot.
  4501. * netboot/3c509.c: Copied from Etherboot. The original is
  4502. removed.
  4503. * netboot/3c509.h: Likewise.
  4504. * netboot/cs89x0.c: Likewise.
  4505. * netboot/eepro100.c: Likewise.
  4506. * netboot/lance.c: Likewise.
  4507. * netboot/ns8390.c: Likewise.
  4508. * netboot/ns8390.h: Likewise.
  4509. * netboot/pci.c: Likewise.
  4510. * netboot/3c59x.c: Include etherboot.h instead netboot.h.
  4511. * netboot/config.c: Copied from Etherboot and added the 3c59x
  4512. entries.
  4513. * netboot/pci.h: Likewise.
  4514. * netboot/fsys_tftp.c: Entirely rewritten based on main.c in
  4515. Etherboot.
  4516. * netboot/io.h: Removed.
  4517. * netboot/ip.h: Likewise.
  4518. * netboot/ip.c: Likewise.
  4519. * netboot/netboot.h: Likewise.
  4520. * netboot/Makefile.am (INCLUDES): Added -I$(top_srcdir)/stage2.
  4521. (DRIVERS): Removed.
  4522. (libdrivers_a_SOURCES): Added etherboot.h, linux-asm-io.h,
  4523. linux-asm-string.h, main.c, misc.c and osdep.h. Deleted io.h,
  4524. ip.h, ip.c, netboot.h and $(DRIVERS).
  4525. (EXTRA_libdrivers_a_SOURCES): New variable.
  4526. (libdrivers_a_LIBADD): Set to @NETBOOT_DRIVERS@.
  4527. (libdrivers_a_DEPENDENCIES): New variable.
  4528. (EXTRA_DIST): Likewise.
  4529. (3c509_drivers): New variable. Define a new rule for the value.
  4530. (3c59x_drivers): Likewise.
  4531. (3c90x_drivers): Likewise.
  4532. (cs89x0_drivers): Likewise.
  4533. (eepro100_drivers): Likewise.
  4534. (epic100_drivers): Likewise.
  4535. (i82586_drivers): Likewise.
  4536. (lance_drivers): Likewise.
  4537. (ns8390_drivers): Likewise.
  4538. (ntulip_drivers): Likewise.
  4539. (rtl8139_drivers): Likewise.
  4540. (sk_g16_drivers): Likewise.
  4541. (smc9000_drivers): Likewise.
  4542. (tiara_drivers): Likewise.
  4543. (tulip_drivers): Likewise.
  4544. (via_rhine_drivers): Likewise.
  4545. (t503_o_CFLAGS): Removed.
  4546. (nepci_o_CFLAGS): Set to -DINCLUDE_NEPCI=1.
  4547. (ne_o_CFLAGS): Set to -DINCLUDE_NE=1.
  4548. (wd_o_CFLAGS): Set to -DINCLUDE_WD=1.
  4549. (3c509_o_CFLAGS): Likewise.
  4550. (3c529_o_CFLAGS): Likewise.
  4551. (3c59x_o_CFLAGS): Likewise.
  4552. (3c90x_o_CFLAGS): Likewise.
  4553. (cs89x0_o_CFLAGS): Likewise.
  4554. (eepro100_o_CFLAGS): Likewise.
  4555. (epic100_o_CFLAGS): Likewise.
  4556. (3c507_o_CFLAGS): Likewise.
  4557. (exos205_o_CFLAGS): Likewise.
  4558. (ni5210_o_CFLAGS): Likewise.
  4559. (lancepci_o_CFLAGS): Likewise.
  4560. (ne2100_o_CFLAGS): Likewise.
  4561. (ni6510_o_CFLAGS): Likewise.
  4562. (3c503_o_CFLAGS): Likewise.
  4563. (ntulip_o_CFLAGS): Likewise.
  4564. (rtl8139_o_CFLAGS): Likewise.
  4565. (sk_g16_o_CFLAGS): Likewise.
  4566. (smc9000_o_CFLAGS): Likewise.
  4567. (tiara_o_CFLAGS): Likewise.
  4568. (tulip_o_CFLAGS): Likewise.
  4569. (via_rhine_o_CFLAGS): Likewise.
  4570. * stage2/char_io.c (nul_terminate): Changed the type of the
  4571. return value to int. Return the original character changed to
  4572. NUL.
  4573. * stage2/shared.h (NETWORK_DRIVE): New macro.
  4574. (nul_terminate): Adjusted to the definition.
  4575. * stage2/gunzip.c (gunzip_test_header): Removed the TFTP check
  4576. entirely. It is no longer necessary because we now can obtain
  4577. the correct size of a file even for TFTP.
  4578. 2000-02-07 OKUJI Yoshinori <okuji@gnu.org>
  4579. * stage2/asm.S: Undo the previous changes. Is
  4580. binutils-2.9.5.0.25 too strict to retain the compatibility?
  4581. Reported by Kalle Olavi Niemitalo <tosi@ees2.oulu.fi>.
  4582. 2000-02-03 OKUJI Yoshinori <okuji@gnu.org>
  4583. * stage2/cmdline.c (enter_cmdline): Set BUF_DRIVE to -1 before
  4584. running a command to invalidate the cache.
  4585. (run_script): Likewise.
  4586. * stage2/char_io.c (get_cmdline): Set BUF_DRIVE to -1 before the
  4587. completion to invalidate the cache.
  4588. Reported by Jeff Sheinberg <jeffsh@erols.com>.
  4589. * configure.in: Use AC_PATH_TOOL instead of AC_PATH_PROG.
  4590. * stage2/asm.S (chain_stage1): Prepend `*' to the argument for
  4591. ljmp.
  4592. (chain_stage2): Likewise.
  4593. (big_linux_boot): Likewise.
  4594. 2000-01-19 OKUJI Yoshinori <okuji@gnu.org>
  4595. * util/grub-install.in (--root): Renamed to ...
  4596. (--root-directory): ... this, since "root" is vague.
  4597. * docs/user-ref.texi (Invoking grub-install): Adjusted to the
  4598. change above, and added an example how to use --root-directory.
  4599. * docs/grub-install.8: Regenerated.
  4600. * docs/appendices.texi (FAQ): Added an item about the sucked
  4601. SCSI problem.
  4602. 2000-01-15 OKUJI Yoshinori <okuji@gnu.org>
  4603. * stage2/builtins.c (chainloader_func): If --force is specified
  4604. in ARG, don't check for the signature.
  4605. * docs/tutorial.texi (Chain-loading): Added a caution about some
  4606. defective boot loaders and --force.
  4607. * docs/user-ref.texi (Command-line-specific commands): Added a
  4608. description about --force.
  4609. 2000-01-11 OKUJI Yoshinori <okuji@gnu.org>
  4610. * docs/prog-ref.texi (LBA mode disk I/O): Added a footnote about
  4611. a buggy BIOS.
  4612. 2000-01-11 OKUJI Yoshinori <okuji@gnu.org>
  4613. * stage1/stage1.S [!NO_BUGGY_BIOS_IN_THE_WORLD]: Don't check if
  4614. LBA read is supported. Anyway, fallback to the CHS mode if
  4615. fails.
  4616. 2000-01-10 OKUJI Yoshinori <okuji@gnu.org>
  4617. * stage2/bios.c (NO_INT13_FALLBACK): Undefined.
  4618. (get_diskinfo) [!NO_BUGGY_BIOS_IN_THE_WORLD]: Do not check if
  4619. bit 0 in DRP.FLAGS is set, because at least one BIOS does not
  4620. set it correctly. Reported by "Forever shall I be."
  4621. <zinx@linuxfreak.com>.
  4622. * util/grub-install.in: Handle the new options `--root' and
  4623. `--grub-shell'.
  4624. (rootdir): New variable.
  4625. (usage): Print the help messages about the options --root and
  4626. --grub-shell.
  4627. (bootdir): Initialized after the option analysis.
  4628. (grubdir): Likewise.
  4629. (device_map): Likewise.
  4630. (root_device): Set to the result for the directory ROOTDIR
  4631. instead of "/".
  4632. * docs/user-ref.texi (Invoking grub-install): Added the
  4633. descriptions about --root and --grub-shell.
  4634. * docs/grub-install.8: Regenerated.
  4635. 2000-01-08 OKUJI Yoshinori <okuji@gnu.org>
  4636. * util/grub-install.in (grubdir_device): New variable.
  4637. If GRUBDIR_DEVICE is not equal to ROOT_DEVICE, print an error
  4638. message and exit.
  4639. * README: Added a caution about Automake.
  4640. * TODO: Updated. Only the things that should be done until 0.6
  4641. have one or more exclamations. Things with zero exclamation
  4642. will be done after 0.6 unless someone sends a patch for it.
  4643. 2000-01-05 OKUJI Yoshinori <okuji@gnu.org>
  4644. * grub/asmstub.c: Include the header shared.h after including
  4645. all the system headers, but not before.
  4646. (EXTENDED_MEMSIZE): Reduced to 3MB.
  4647. (grub_setjmp): New function.
  4648. (grub_longjmp): Likewise.
  4649. * grub/main.c: Include setjmp.h.
  4650. * stage2/asm.S (grub_setjmp): New function. Stolen from the
  4651. OSKit (which stole it from Mach).
  4652. (grub_longjmp): Likewise.
  4653. * stage2/shared.h [GRUB_UTIL] (grub_jmp_buf): New type.
  4654. [!GRUB_UTIL] (grub_jmp_buf): New macro. Defined as jmp_buf.
  4655. (grub_setjmp): Declared.
  4656. (grub_longjmp): Likewise.
  4657. (restart_env): Likewise.
  4658. * stage2/builtins.c (configfile_func): Use grub_longjmp instead
  4659. of invoking cmain again.
  4660. * stage2/stage2.c (restart_env): New variable.
  4661. (cmain): Call grub_setjmp first to initialize RESTART_ENV.
  4662. 2000-01-03 OKUJI Yoshinori <okuji@gnu.org>
  4663. * docs/multiboot.texi (Boot information format): Added the
  4664. descriptions about the fields "config_table" and
  4665. "boot_loader_name".
  4666. 1999-12-31 OKUJI Yoshinori <okuji@gnu.org>
  4667. * stage2/builtins.c (setup_func) [!NO_BUGGY_BIOS_IN_THE_WORLD]:
  4668. Specify the option `d', whether INSTALL_DRIVE is identical with
  4669. IMAGE_DRIVE or not.
  4670. * docs/user-ref.texi (Command-line-specific commands): Added a
  4671. caution about buggy BIOSes which don't pass a booting drive
  4672. properly.
  4673. * docs/src2texi: Added an extra space into the first line, for
  4674. the portability issue.
  4675. * docs/appendices.texi (Obtaining and Building GRUB): Update the
  4676. information on the ftp site and the CVS repository.
  4677. 1999-12-30 OKUJI Yoshinori <okuji@gnu.org>
  4678. * stage2/builtins.c (blocklist_func): New function.
  4679. (builtin_blocklist): New variable.
  4680. (builtin_table): Added a pointer to BUILTIN_BLOCKLIST.
  4681. * docs/user-ref.texi (Command-line-specific commands): Added a
  4682. description about the command "blocklist".
  4683. 1999-12-30 OKUJI Yoshinori <okuji@gnu.org>
  4684. * stage2/disk_io.c (grub_seek): New function.
  4685. * stage2/shared.h (grub_seek): Declared.
  4686. * stage2/boot.c (load_image): Use grub_seek instead of setting
  4687. FILEPOS to a new value directly.
  4688. * stage2/builtins.c (install_func): Likewise.
  4689. (testload_func): Likewise.
  4690. * docs/grub.texi: Use a single direntry command for all the
  4691. entries instead of one per entry.
  4692. 1999-12-29 OKUJI Yoshinori <okuji@gnu.org>
  4693. * grub/asmstub.c (check_device) [__linux__]: Check if DEVICE is
  4694. a CD-ROM drive by the HDIO_GETGEO ioctl. If so, then return
  4695. zero. Reported by Pavel Roskin.
  4696. * stage2/Makefile.am (nodist_noinst_DATA): Renamed to ...
  4697. (noinst_DATA): ... this. The primary DATA is `nodist' by
  4698. default, at least theoretically. Reported by Klaus Reichl.
  4699. * stage2/bios.c (get_diskinfo): Set the LBA flag in GEOMETRY
  4700. only if bit 0 in DRP.FLAGS is set. Reported by Zack Weinberg
  4701. <zack@rabi.columbia.edu>.
  4702. From Pavel Roskin:
  4703. * grub/asmstub.c (init_device_map): Increase the number of
  4704. devices to be probed to 8 for IDE disks and 16 for SCSI
  4705. disks. Reported by Anton Anisimov <aa@bestlinux.net>.
  4706. 1999-12-06 Gordon Matzigkeit <gord@fig.org>
  4707. * README (DEVELOPERS): Change CVS location to subversions.
  4708. 1999-11-30 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  4709. * stage2/disk_io.c (real_open_partition): If SLICE_NO is greater
  4710. than or equal to PC_SLICE_MAX, skip any extended partition, when
  4711. searching for the right partition. Reported by Weil, Stefan 3732
  4712. EPE-24 <Stefan.Weil@de.heidelberg.com>.
  4713. 1999-11-19 Gordon Matzigkeit <gord@fig.org>
  4714. * grub/asmstub.c (getkey): Stop immediately if we get an EOF.
  4715. * stage2/stage2.c (cmain): Tell enter_cmdline to run forever.
  4716. (run_menu): Tell print_cmdline_message and enter_cmdline that we
  4717. won't run forever.
  4718. * stage2/cmdline.c (enter_cmdline): New argument, FOREVER, for
  4719. when ESC shouldn't allow an exit. Pass it to
  4720. print_cmdline_message.
  4721. (print_cmdline_message): Use new argument, FOREVER, to decide
  4722. whether to tell the user that ESC exits.
  4723. 1999-11-18 Gordon Matzigkeit <gord@fig.org>
  4724. * debian/rules (binary-arch): Don't strip or generate shared
  4725. library dependencies for /usr/sbin/grub-install, since it's a
  4726. script.
  4727. * util/grub-install.in: Create safe temporary log files using
  4728. /bin/tempfile if it is executable.
  4729. 1999-11-17 Gordon Matzigkeit <gord@fig.org>
  4730. * stage1/Makefile.am (LDFLAGS): Consolidate multiple -Wl flags.
  4731. * stage2/Makefile.am (PRE_STAGE2_LINK): Likewise.
  4732. (START_LINK): Likewise.
  4733. (STAGE1_5_LINK): Likewise.
  4734. 1999-11-19 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  4735. * util/grub-install.in (debug): New variable.
  4736. (convert): If the device file does not exist, then emit an
  4737. error. Get the GRUB drive instead of the OS device.
  4738. If --debug is specified, then set $debug to yes.
  4739. If $debug is yes, run "set -x".
  4740. Make sure that stage1 and stage2 exist.
  4741. When checking for INSTALL_DEVICE, use "case" instead of "elif"s.
  4742. Make sure that $install_drive is not empty.
  4743. Likewise, make sure that $root_drive is not empty.
  4744. Any error message is redirected to the standard error.
  4745. 1999-11-19 Pavel Roskin <pavel_roskin@geocities.com>
  4746. * stage2/Makefile.am (noinst_DATA): Renamed to ...
  4747. (nodist_noinst_DATA): ... this.
  4748. * util/Makefile.am: sbin_SCRIPS -> sbin_SCRIPTS.
  4749. * util/grub-install.in: grub_dir -> grubdir.
  4750. Check if $grub_shell exists before running it.
  4751. (convert): Added a missing "test" after "if".
  4752. 1999-11-18 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  4753. * configure.in: Output grub-install.
  4754. * util/Makefile.am (sbin_SCRIPTS): New variable.
  4755. * util/grub-install.in: New file.
  4756. * docs/Makefile.am (man_MANS): Added grub-install.8.
  4757. [MAINTAINER_MODE] ($(srcdir)/grub-install.8): New target.
  4758. * docs/grub-install.8: New file. Generated by help2man.
  4759. * docs/user-ref.texi (Invoking grub-install): New chapter.
  4760. 1999-11-16 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  4761. From Pavel Roskin:
  4762. * stage1/stage1.S: Check for the API subset support bitmap
  4763. returned by INT 13 AH=48h, and jump to chs_mode if AH=42h is not
  4764. supported.
  4765. 1999-11-13 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  4766. * stage2/builtins.c (install_func): When using a Stage 1.5, set
  4767. CURRENT_DRIVE to SAVED_DRIVE and CURRENT_PARTITION to
  4768. SAVED_PARTITION if set_device fails. If CURRENT_DRIVE is equal
  4769. to SRC_DRIVE, then set CURRENT_DRIVE to 0xFF. We don't want to
  4770. embed any drive number whenever possible.
  4771. * stage2/disk_io.c (set_device) [STAGE1_5]: Always set
  4772. CURRENT_PARTITION to PARTITION.
  4773. 1999-11-13 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  4774. From Pavel Roskin:
  4775. * stage1/stage1.S (lba_mode): Jump to chs_mode if INT 13 AH=42h
  4776. fails.
  4777. 1999-11-12 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  4778. Do not use the device map file unless --device-map is specified.
  4779. * grub/main.c (device_map_file): Set to 0.
  4780. (default_device_map_file): Removed.
  4781. (usage): Do not print DEFAULT_DEVICE_MAP_FILE.
  4782. * grub/asmstub.c (init_device_map): If DEVICE_MAP_FILE is NULL,
  4783. do not try to open the device map file.
  4784. Set FP to NULL by default.
  4785. * docs/grub.8: Regenerated.
  4786. 1999-11-11 Michael Hohmuth <hohmuth@innocent.com>
  4787. * stage2/boot.c (load_image): grub_close was called after
  4788. return, so exchange the order.
  4789. * stage2/stage1_5.c (cmain): Call grub_close after grub_read.
  4790. Set RET to the value returned by grub_read, and if RET is
  4791. non-zero, call chain_stage2.
  4792. * stage1/Makefile.am (BUILT_SOURCES): Removed.
  4793. (CLEANFILES): Set to $(nodist_pkgdata_DATA).
  4794. 1999-11-11 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  4795. Suggested by Klaus Reichl:
  4796. * stage2/builtins.c (print_root_device): New function.
  4797. (root_func): If no argument is specified, call the function
  4798. print_root_device and return.
  4799. (rootnoverify_func): Likewise.
  4800. * stage2/disk_io.c [!STAGE1_5] (print_completions): Call
  4801. print_error even if IS_FILENAME is zero.
  4802. If ERRNUM is non-zero, then return -1.
  4803. * stage2/char_io.c [!STAGE1_5] (get_cmdline): Clear ERRNUM after
  4804. calling print_completions to print the list as well.
  4805. * stage2/asm.S [!STAGE1_5] (currticks): Set %eax to %cx:%dx
  4806. correctly. Reported by Michael Hohmuth.
  4807. 1999-11-06 Klaus Reichl <Klaus.Reichl@alcatel.at>
  4808. * grub/asmstub.c (get_diskinfo) [__linux__]: After opening the
  4809. drive, flush the cache, other progs may have left over something
  4810. in the cache.
  4811. 1999-11-03 Gordon Matzigkeit <gord@fig.org>
  4812. * debian/rules: Add variables for cross-compilation.
  4813. * debian/control (Standards-Version): Update to version 3.1.0.
  4814. * debian/rules (build): Install manpages into /usr/share/man, and
  4815. info into /usr/share/info in accordance with FHS.
  4816. (binary-arch): Likewise, and put docs into /usr/share/doc.
  4817. * debian/postinst: Use /usr/share/info, and manage compatibility
  4818. /usr/doc/grub -> /usr/share/doc/grub symlink.
  4819. * debian/prerm: Likewise.
  4820. * stage2/Makefile.am (CLEANFILES): Change to
  4821. $(nodist_pkgdata_DATA) so that the raw binary files are deleted.
  4822. * stage1/Makefile.am (CLEANFILES): Likewise.
  4823. 1999-11-06 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  4824. * grub/asmstub.c (grub_putchar) [HAVE_LIBCURSES]: Do not call
  4825. wrefresh. This was just an accident. Sorry.
  4826. Reported by Alan McLean <amcl@flash.net>:
  4827. * stage2/builtins.c (embed_func): The sector argument for the
  4828. function biosdisk is changed from SECTOR + I * SECTOR_SIZE to
  4829. SECTOR + I.
  4830. (find_func): Clear ERRNUM before each of the attempts.
  4831. 1999-11-05 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  4832. * docs/multiboot.texi (Boot information format): Add the members
  4833. `drives_addr' and `drives_count' into the Multiboot information
  4834. structure, and added the descriptions.
  4835. 1999-11-03 Gordon Matzigkeit <gord@fig.org>
  4836. * util/mbchk.c (main): Move the version number inside the
  4837. parentheses since it is the GRUB package version, not just an
  4838. mbchk-specific version.
  4839. 1999-10-30 Gordon Matzigkeit <gord@fig.org>
  4840. * debian/rules (binary-arch): Compress man pages.
  4841. Strip the grub shell.
  4842. Install examples.
  4843. 1999-11-03 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  4844. * docs/tutorial.texi: Fix typos by ispell.
  4845. * docs/user-ref.texi: Likewise.
  4846. * docs/prog-ref.texi: Likewise.
  4847. * docs/appendices.texi: Likewise.
  4848. 1999-11-03 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  4849. * stage2/fsys_ext2fs.c (struct ext2_dir_entry): Changed the type
  4850. of `name_len' to __u8 and added the new member `file_type' after
  4851. it. This is stolen from linux/ext2_fs.h in Linux 2.2.13.
  4852. Reported by Ben Harris <bjh21@cam.ac.uk>.
  4853. * stage2/builtins.c (device_func) [GRUB_UTIL]: Call
  4854. nul_terminate before calling check_device.
  4855. 1999-11-02 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  4856. * stage2/disk_io.c (real_open_partition): Check for the right
  4857. partition for any extended partition as well. Set EXT to I after
  4858. the check is done. Reported by Jeff Scheinberg
  4859. <jeffsh@erols.com>.
  4860. * stage2/builtins.c (color_func): Use the function
  4861. nul_terminate.
  4862. (device_func) [GRUB_UTIL]: Likewise.
  4863. (help_func): Likewise.
  4864. (install_func): Save CURRENT_DRIVE, CURRENT_PARTITION and
  4865. BUG_GEOM in SRC_DRIVE, SRC_PARTITION and SRC_GEOM respectively,
  4866. and use them when patching the Stage 2.
  4867. NUL-terminate the configuration filename CONFIG_FILENAME.
  4868. If IS_STAGE1_5 is true, then check if the "real config file"
  4869. option is present, and, if so, patch the Stage 2 CONFIG_FILENAME
  4870. with the configuration filename REAL_CONFIG_FILENAME.
  4871. (setkey_func): Use nul_terminate instead of the local function
  4872. null_terminate.
  4873. * stage2/char_io.c [!STAGE1_5] (nul_terminate): New function.
  4874. * stage2/shared.h (nul_terminate): Declared.
  4875. 1999-11-01 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  4876. * docs/grub.texi: Add "I/O ports detection" into the menu.
  4877. * docs/user-ref.texi: Added a description about the command
  4878. "ioprobe".
  4879. * docs/prog-ref.texi (I/O ports detection): New chapter.
  4880. 1999-11-01 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  4881. From Pavel Roskin:
  4882. * stage2/asm.S (int1_handler): Use EXT_C(io_map) instead of
  4883. io_map.
  4884. (int1_handler): Use EXT_C(bios_key_map) instead of bios_key_map.
  4885. * grub/asmstub.c [__OpenBSD__]: Include <sys/ioctl.h> and
  4886. <sys/disklabel.h>.
  4887. [__OpenBSD__] (get_floppy_disk_name): Added support for OpenBSD.
  4888. [__OpenBSD__] (get_ide_disk_name): Likewise.
  4889. [__OpenBSD__] (get_scsi_disk_name): Likewise.
  4890. (get_drive_geometry) [__OpenBSD__]: Use for OpenBSD the same
  4891. ioctl as for NetBSD and FreeBSD.
  4892. 1999-10-31 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  4893. * grub/asmstub.c (init_device_map): Add a floppy device name
  4894. into the device map file even if check_device fails.
  4895. * stage2/char_io.c [!STAGE1_5] (get_cmdline): Clear ERRNUM after
  4896. calling print_completions.
  4897. 1999-10-29 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  4898. * stage2/asm.S (track_int13): Defined unconditionally. Do not
  4899. use int3 any more, but replace the int13 handler with
  4900. set_tf_int13_handler.
  4901. (int1_handler): Defined unconditionally. Do not check for 0x0F.
  4902. Add missing `$'s. If the code is 0xEC-0xEF, use %dx instead of
  4903. immediate. If the code is 0xE4-0xE7, use immediate instead of
  4904. %dx. Set %ds to zero before scanning IO_MAP. Check for the
  4905. buffer overrun of IO_MAP before adding a port.
  4906. [!DEFINE_TRACK_INT13] (int13_first_instruction): Removed.
  4907. [!DEFINE_TRACK_INT13] (int3_handler): Likewise.
  4908. (set_tf_int13_handler): New interrupt handler.
  4909. (set_tf_int13_offset): New variable.
  4910. (set_tf_int13_segment): Likewise.
  4911. * stage2/builtins.c (ioprobe_func): New function.
  4912. (builtin_ioprobe): New variable.
  4913. (builtin_table): Added a pointer to BUILTIN_IOPROBE.
  4914. * stage2/shared.h (IO_MAP_SIZE): New macro.
  4915. (track_int13): Declared.
  4916. (io_map): Likewise.
  4917. 1999-10-29 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  4918. * stage2/char_io.c (print_error) [!STAGE1_5]: Print "Error:"
  4919. before print the error message.
  4920. (print_error): Do not clear ERRNUM.
  4921. * stage2/cmdline.c (run_script): If ERRNUM is non-zero, set
  4922. ERRNUM to ERR_NONE.
  4923. (enter_cmdline): Clear ERRNUM after print_error.
  4924. 1999-10-28 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  4925. From Pavel Roskin:
  4926. * stage2/stage2.c (run_menu) [GRUB_UTIL]: Do not use IBM special
  4927. characters in the message, but use ascii names instead.
  4928. (run_menu) [!GRUB_UTIL]: Use DISP_UP and DISP_DOWN instead of
  4929. the ascii codes.
  4930. * stage2/shared.h [!ACS_ULCORNER] (ACS_ULCORNER): New macro.
  4931. [!ACS_ULCORNER] (ACS_URCORNER): Likewise.
  4932. [!ACS_ULCORNER] (ACS_LLCORNER): Likewise.
  4933. [!ACS_ULCORNER] (ACS_LRCORNER): Likewise.
  4934. [!ACS_ULCORNER] (ACS_HLINE): Likewise.
  4935. [!ACS_ULCORNER] (ACS_VLINE): Likewise.
  4936. [!ACS_ULCORNER] (ACS_LARROW): Likewise.
  4937. [!ACS_ULCORNER] (ACS_RARROW): Likewise.
  4938. [!ACS_ULCORNER] (ACS_UARROW): Likewise.
  4939. [!ACS_ULCORNER] (ACS_DARROW): Likewise.
  4940. [GRUB_UTIL] (DISP_UL): Set to ACS_ULCORNER.
  4941. [GRUB_UTIL] (DISP_UR): Set to ACS_URCORNER.
  4942. [GRUB_UTIL] (DISP_LL): Set to ACS_LLCORNER.
  4943. [GRUB_UTIL] (DISP_LR): Set to ACS_LRCORNER.
  4944. [GRUB_UTIL] (DISP_HORIZ): Set to ACS_HLINE.
  4945. [GRUB_UTIL] (DISP_VERT): Set to ACS_VLINE.
  4946. [GRUB_UTIL] (DISP_LEFT): Set to ACS_LARROW.
  4947. [GRUB_UTIL] (DISP_RIGHT): Set to ACS_RARROW.
  4948. [GRUB_UTIL] (DISP_UP): Set to ACS_UARROW.
  4949. [GRUB_UTIL] (DISP_DOWN): Set to ACS_DARROW.
  4950. 1999-10-28 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  4951. * stage2/builtins.c (keycode_func): Removed.
  4952. (builtin_keycode): Likewise.
  4953. (struct keysym): New structure.
  4954. (keysym_table): New variable.
  4955. (setkey_func): New function.
  4956. (builtin_setkey): New variable.
  4957. (builtin_table): Removed the pointer to BUILTIN_KEYCODE, and
  4958. added a pointer to BUILTIN_SETKEY.
  4959. * stage2/common.c [!STAGE1_5] (err_list): Added
  4960. ERR_BAD_ARGUMENT.
  4961. * stage2/shared.h (grub_error_t): Added ERR_BAD_ARGUMENT.
  4962. (KEY_MAP_SIZE): Set to 128.
  4963. (ascii_key_map): Declared.
  4964. * stage2/asm.S [!STAGE1_5] (remap_ascii_char): New function.
  4965. [!STAGE1_5] (ascii_key_map): New variable.
  4966. [!STAGE1_5] (getkey): Call remap_ascii_char after int16.
  4967. [!STAGE1_5] (checkkey): Likewise.
  4968. * grub/asmstub.c (ascii_key_map): New variable.
  4969. * docs/user-ref.texi (General commands): Added a description
  4970. about the command "setkey".
  4971. (Stage2 errors): Added a description about ERR_BAD_ARGUMENT.
  4972. 1999-10-27 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  4973. * stage2/disk_io.c (set_device) [!STAGE1_5]: Remove the
  4974. preliminary Mach-style device name support. I've decided that
  4975. the support is not necessary.
  4976. (setup_part) [!STAGE1_5]: Do not strip the leading "/dev/".
  4977. * docs/help2man: Upgraded to 1.016.
  4978. * docs/mbchk.1: Regenerated.
  4979. * docs/grub.8: Likewise.
  4980. * grub/asmstub.c: Rename KEY_MAP to BIOS_KEY_MAP.
  4981. * stage2/asm.S [!STAGE1_5] (set_int15_handler): Use 0 instead of
  4982. the maximum number for the segment.
  4983. [!STAGE1_5] (unset_int15_handler): Likewise.
  4984. [!STAGE1_5] (int15_handler): Almost rewritten. If non-carrier,
  4985. ignore the scancode. If the scancode is E1 or E0, then set
  4986. INT15_SKIP_FLAG to 0x74, and if the previous scancode is E1 or
  4987. E0, set INT15_SKIP_FLAG to 0xea. Clear bit 7 in %dl. Save bit 7
  4988. of %al in %bl. Do not lcall. Use ljmp instead.
  4989. [!STAGE1_5] (key_map): Renamed to ...
  4990. [!STAGE1_5] (bios_key_map): ... this.
  4991. * stage2/builtins.c (keycode_func): Check if FROM is greater
  4992. than 0xff instead of double-checking for TO. Use BIOS_KEY_MAP
  4993. instead of KEY_MAP.
  4994. * stage2/shared.h (KEY_MAP_SIZE): Set to 32.
  4995. (key_map): Removed.
  4996. (bios_key_map): Declared.
  4997. 1999-10-26 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  4998. Now the BIOS drive remapping is functional.
  4999. * stage2/asm.S [DEFINE_TRACK_INT13] (track_int13): Use %edi
  5000. instead of direct addresses.
  5001. Prefix DATA32 to the calls for real_to_prot and prot_to_real.
  5002. Fix the address of DRIVE: 4(%ebp) -> 8(%ebp).
  5003. (set_int15_handler): Use %edi instead of direct addresses.
  5004. (unset_int15_handler): Likewise.
  5005. (set_int13_handler): Copy DRIVE_MAP_SIZE * 2 bytes instead of
  5006. DRIVE_MAP_SIZE bytes of MAP.
  5007. Fix the address of MAP: 4(%ebp) -> 8(%ebp).
  5008. Use %edi instead of direct addresses.
  5009. (int13_handler): Do not set %ds to %cs. Use the segment override
  5010. prefix of %cs instead.
  5011. Push the flags pushed by the callee instead of the current.
  5012. Set the flags in the stack to the flags returned by the original
  5013. int13 call.
  5014. (drive_map): 4bytes-aligned.
  5015. * stage2/disk_io.c (grub_close): Do not set ERRNUM even if
  5016. FSYS_TYPE is NUM_FSYS.
  5017. 1999-10-25 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5018. * stage1/stage1.S: Long jump to real_start, because some bogus
  5019. BIOSes jump to 07C0:0000 instead of 0000:7C00.
  5020. (real_start): New label.
  5021. * docs/Makefile.am (grub.info): Removed. Use the default rule
  5022. instead.
  5023. 1999-10-25 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5024. * stage2/asm.S [DEFINE_TRACK_INT13] (int3_handler): Save the
  5025. modified FLAGS in 6(%bp) instead of 4(%bp).
  5026. Decrease %bx before restoring the first instruction.
  5027. [DEFINE_TRACK_INT13] (track_int13): Go to the real mode before
  5028. setting up the registers for the int13 call.
  5029. 1999-10-24 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5030. Add the prototype of a function to probe I/O ports used for a
  5031. BIOS drive.
  5032. * stage2/asm.S [DEFINE_TRACK_INT13] (track_int13): New function.
  5033. [DEFINE_TRACK_INT13] (int1_handler): New interrupt handler for
  5034. the real mode.
  5035. [DEFINE_TRACK_INT13] (int3_handler): Likewise.
  5036. [DEFINE_TRACK_INT13] (io_map): New variable.
  5037. * stage2/builtins.c (quit_func) [!GRUB_UTIL]: Fix a typo.
  5038. 1999-10-24 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5039. The new GRUB manual becomes official.
  5040. * docs/grub.texi: Replaced with new-grub.texi.
  5041. * docs/new-grub.texi: Removed.
  5042. * docs/Makefile.am (grub_TEXINFOS): New variable.
  5043. (UNFINISHED_MANUALS): Removed.
  5044. (EXTRA_DIST): Deleted $(UNFINISHED_MANUALS).
  5045. 1999-10-24 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5046. * stage2/builtins.c (device_func) [!GRUB_UTIL]: Set ERRNUM to
  5047. ERR_UNRECOGINIZED and return 1.
  5048. (impsprobe_func) [GRUB_UTIL]: Likewise.
  5049. (quit_func) [!GRUB_UTIL]: Likewise.
  5050. * docs/tutorial.texi: Rename "Device Syntax" to "Filename".
  5051. Added many cross-references.
  5052. * docs/new-grub.texi: "Device Syntax" -> "Filename".
  5053. * docs/user-ref.texi: Fix typos and added some cross-references.
  5054. * docs/prog-ref.texi: Likewise.
  5055. * docs/appendices.texi: Likewise.
  5056. 1999-10-23 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5057. * stage2/builtins.c (map_func): If BIOS_DRIVE_MAP already
  5058. contains FROM, override the existsing entry.
  5059. If TO is equal to FROM, delete the existing entry if any.
  5060. (keycode_func): Likewise.
  5061. * docs/user-ref.texi (Command): Use the list of `@deffn's
  5062. instead of @table.
  5063. (Basic usage): Use @option instead of @code.
  5064. (Invoking mbchk): Likewise.
  5065. 1999-10-23 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5066. * stage2/asm.S [!STAGE1_5] (set_int15_handler): New function.
  5067. [!STAGE1_5] (unset_int15_handler): Likewise.
  5068. [!STAGE1_5] (int15_handler): New interrupt handler for the real
  5069. mode.
  5070. [!STAGE1_5] (int15_offset): New variable.
  5071. [!STAGE1_5] (int15_segment): Likewise.
  5072. [!STAGE1_5] (key_map): Likewise.
  5073. [!STAGE1_5] (set_int13_handler): Use the macro ABS for
  5074. INT13_OFFSET and INT13_SEGMENT.
  5075. * stage2/shared.h (KEY_MAP_SIZE): New macro.
  5076. (set_int15_handler): Declared.
  5077. (unset_int15_handler): Likewise.
  5078. * stage2/builtins.c (boot_func): Do not allow I to be equal to
  5079. DRIVE_MAP_SIZE.
  5080. Call unset_int15_handler unless KERNEL_TYPE is KERNEL_TYPE_NONE.
  5081. (map_func): Search for an empty slot till I is less than
  5082. DRIVE_MAP_SIZE.
  5083. Check if I is equal to DRIVE_MAP_SIZE instead of if I is greater
  5084. than DRIVE_MAP_SIZE.
  5085. (keycode_func): New function.
  5086. (builtin_keycode): New variable.
  5087. (builtin_table): Added a pointer to BUILTIN_KEYCODE.
  5088. * grub/asmstub.c (set_int15_handler): New function.
  5089. (unset_int15_handler): Likewise.
  5090. (key_map): New variable.
  5091. 1999-10-23 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5092. From Michael Hohmuth <hohmuth@innocent.com>:
  5093. * acconfig.h (HAVE_USCORE_USCORE_BSS_START_SYMBOL): Added the
  5094. `undef' entry.
  5095. (HAVE_EDATA_SYMBOL): Likewise.
  5096. (HAVE_USCORE_EDATA_SYMBOL): Likewise.
  5097. * acinclude.m4 (grub_CHECK_USCORE_USCORE_BSS_START_SYMBOL): New
  5098. function.
  5099. (grub_CHECK_EDATA_SYMBOL): Likewise.
  5100. (grub_CHECK_USCORE_EDATA_SYMBOL): Likewise.
  5101. * configure.in: Check for __bss, edata and _edata.
  5102. * netboot/Makefile.am (DRIVERS): Deleted ns8390.c and ns8390.h.
  5103. (libdrivers_a_LIBADD): New variable.
  5104. ($(libdrivers_a_LIBADD)): New target.
  5105. (nepci_o_CFLAGS): New variable.
  5106. (ne_o_CFLAGS): Likewise.
  5107. (wd_o_CFLAGS): Likewise.
  5108. (t503_o_CFLAGS): Likewise.
  5109. * netboot/fsys_tftp.c (tftp_close): New function.
  5110. * stage2/boot.c (load_image): Call grub_close before return.
  5111. (load_initrd): Likewise.
  5112. (load_module): Likewise.
  5113. * stage2/builtins.c (cat_func): Likewise.
  5114. (chainloader_func): Likewise.
  5115. (configfile_func): Likewise.
  5116. (embed_func): Likewise.
  5117. (find_func): Likewise.
  5118. (install_func): Set IS_OPEN to the value returned by grub_open.
  5119. If IS_OPEN is non-zero, call grub_close before return.
  5120. (setup_func): Call grub_close after grub_open.
  5121. (testload): Call grub_close before return.
  5122. * stage2/disk_io.c (fsys_table): Add the `close' member into
  5123. each of the entries. For TFTP, tftp_close is added, and for the
  5124. rest, NULL is added.
  5125. (grub_read): "|" -> "||".
  5126. (grub_close): New function.
  5127. * stage2/filesys.h [FSYS_TFTP] (tftp_close): Declared.
  5128. (struct fsys_entry): Added close_func.
  5129. * stage2/shared.h (grub_close): Declared.
  5130. * stage2/stage1_5.c (cmain): Call grub_close after grub_open.
  5131. * stage2/stage2.c (cmain): Clear ERRNUM after calling
  5132. find_command to just ignore the error code.
  5133. Call grub_close after loading the configuration file.
  5134. * stage2/asm.S (main): Clean out the bss.
  5135. 1999-10-23 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5136. * docs/new-grub.texi: Updated.
  5137. * docs/user-ref.texi: Likewise.
  5138. * docs/tutorial.texi: Likewise.
  5139. * docs/prog-ref.texi: Likewise.
  5140. * docs/appendices.texi: Likewise.
  5141. 1999-10-22 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5142. * docs/prog-ref.texi: New file.
  5143. * docs/appendices.texi: Likewise.
  5144. * docs/Makefile.am (UNFINISHED_MANUALS): Added prog-ref.texi and
  5145. appendices.texi.
  5146. 1999-10-22 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5147. * docs/user-ref.texi: New file.
  5148. * docs/Makefile.am (UNFINISHED_MANUALS): Added user-red.texi.
  5149. 1999-10-21 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5150. Add BIOS drive remapping support for chain-loading some foolish
  5151. operating systems.
  5152. * stage2/builtins.c (bios_drive_map): New variable.
  5153. (boot_func): If KERNEL_TYPE is KERNEL_TYPE_CHAINLOADER, check
  5154. if BIOS_DRIVE_MAP contains meaningful values. If so, search for
  5155. SAVED_DRIVE in BIOS_DRIVE_MAP and exchange SAVED_DRIVE with the
  5156. mapped drive if found. And then call set_int13_handler.
  5157. (map_func): New function.
  5158. (builtin_map): New variable.
  5159. (builtin_table): Added a pointer to BUILTIN_MAP.
  5160. * stage2/asm.S (ABS): New macro.
  5161. [!STAGE1_5] (set_int13_handler): New function.
  5162. [!STAGE1_5] (int13_handler): New interrupt handler for the real
  5163. mode.
  5164. [!STAGE1_5] (drive_map): New variable.
  5165. [!STAGE1_5] (int13_handler_end): New label used for just
  5166. computing the end address of int13_handler.
  5167. * stage2/shared.h (DRIVE_MAP_SIZE): New macro.
  5168. (set_int13_handler): Declared.
  5169. * grub/asmstub.c (set_int13_handler): New function. Do nothing.
  5170. 1999-10-20 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5171. * stage2/builtins.c (find_func): Print only the device names.
  5172. * docs/tutorial.texi: New file.
  5173. * docs/Makefile.am (UNFINISHED_MANUALS): Added tutorial.texi.
  5174. (%.c.texi): Use $(SHELL) instead of /bin/sh.
  5175. (%.h.texi): Likewise.
  5176. (%.S.texi): Likewise.
  5177. 1999-10-20 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5178. * stage2/char_io.c (memcheck): Fix the checks: "<=" -> "<".
  5179. Reported by Mike Hicks <hick0088@umn.edu>.
  5180. 1999-10-19 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5181. * stage2/builtins.c (find_func): New function.
  5182. (builtin_find): New variable.
  5183. (hide_func): Save SAVED_DRIVE and SAVED_PARTITION to TMP_DRIVE
  5184. and TMP_PARTITION, respectively, and resotre them before return.
  5185. (unhide_func): Likewise.
  5186. (setup_func): Likewise. And set SAVED_DRIVE and SAVED_PARTITION
  5187. instead of CURRENT_DRIVE and CURRENT_PARTITION to IMAGE_DRIVE
  5188. and IMAGE_PARTITION before running install_func.
  5189. (builtin_table): Added a pointer to BUILTIN_FIND.
  5190. 1999-10-19 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5191. * docs/Makefile.am (UNFINISHED_MANUALS): New variable.
  5192. (EXTRA_DIST): Added $(UNFINISHED_MANUALS).
  5193. * docs/new-grub.texi: New file.
  5194. 1999-10-19 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5195. * docs/Makefile.am (man_MANS): Added mbchk.1.
  5196. [MAINTAINER_MODE] (mbchk.1): New target.
  5197. * docs/mbchk.1: New file. Generated by help2man.
  5198. 1999-10-18 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5199. * Makefile.am (SUBDIRS): Added util.
  5200. * configure.in: Output util/Makefile.
  5201. * util/Makefile.am: New file.
  5202. * util/mbchk.c: Likewise.
  5203. * util/Makefile.in: Likewise. Generated by automake.
  5204. 1999-10-17 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5205. * docs/Makefile.am (.texi): Canceled because the dependecies can
  5206. be circulated.
  5207. * stage2/builtins.c (embed_func): Set BUF_TRACK to -1 before
  5208. writing the Stage 1.5 to the disk to clear the cache.
  5209. 1999-10-17 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5210. * stage2/boot.c (load_initrd): Change types of *RAMDISK and
  5211. MOVETO to unsigned long.
  5212. Apply the macro RAW_ADDR to MOVETO.
  5213. 1999-10-16 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5214. * docs/multiboot.texi: Include the example source files of a
  5215. Multiboot kernel.
  5216. * docs/src2texi: New file.
  5217. * docs/boot.S: Likewise.
  5218. * docs/multiboot.h: Likewise.
  5219. * docs/kernel.c: Likewise.
  5220. * docs/boot.S.texi: Likewise.
  5221. * docs/multiboot.h.texi: Likewise.
  5222. * docs/kernel.c.texi: Likewise.
  5223. * docs/Makefile.am (EXAMPLES): New varilable.
  5224. (multiboot_TEXINFOS): Likewise.
  5225. (SRC2TEXI): Likewise.
  5226. (noinst_SCRIPTS): Added $(SRC2TEXI).
  5227. (EXTRA_DIST): Added $(EXAMPLES) and $(multiboot_TEXINFOS).
  5228. (%.c.texi): New target.
  5229. (%.h.texi): Likewise.
  5230. (%.S.texi): Likewise.
  5231. 1999-09-22 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5232. * multiboot.texi (BIOS device mapping techniques): New section.
  5233. Stolen from bios_mapping.txt in grub-0.5.
  5234. (Data comparison technique): New subsection.
  5235. (I/O restriction technique): Likewise.
  5236. (Example OS code): Rewrited from scratch.
  5237. 1999-09-21 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5238. * multiboot.texi: Rename Multiboot Standard to Multiboot
  5239. Specification and upgrade the version to 0.7. Many cleanups
  5240. are done.
  5241. 1999-10-15 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5242. * stage2/builtins.c (setup_func): Save CURRENT_DRIVE and
  5243. CURRENT_PARTITION into IMAGE_DRIVE and IMAGE_PARTITION
  5244. respectively, and restore them before running install_func.
  5245. Use DEVICE instead of BUFFER to store the device name.
  5246. Change each type of STAGE1, STAGE2 and CONFIG_FILE to an array
  5247. of char.
  5248. If installing the Stage 1 into a MBR, embed the Stage 1.5 in the
  5249. sectors right after it.
  5250. Return the result of install_func instead of zero.
  5251. 1999-10-14 Pavel Roskin <pavel_roskin@geocities.com>
  5252. * configure.in: Check for opendisk in libutil.
  5253. * grub/asmstub.c [__FreeBSD__ || __NetBSD__]: Include
  5254. <sys/ioctl.h>.
  5255. [HAVE_OPENDISK]: Include <util.h>.
  5256. [__NetBSD__] (get_floppy_disk_name): Added support for NetBSD.
  5257. [__NetBSD__ && HAVE_OPENDISK] (get_ide_disk_name): Likewise.
  5258. [__NetBSD__ && HAVE_OPENDISK] (get_scsi_disk_name): Likewise.
  5259. (get_drive_geometry) [__NetBSD__]: Use for NetBSD the same ioctl
  5260. as for FreeBSD.
  5261. 1999-10-13 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5262. * grub/asmstub.c (assign_device_name): If DEVICE is NULL, set
  5263. DEVICE_MAP[DRIVE] to NULL.
  5264. (get_diskinfo): If open or read fails, call assign_device_name
  5265. to disable accessing the drive DRIVE.
  5266. (grub_stage2): The device mapping routine is moved to ...
  5267. (init_device_map): ... here. This new function also reads/writes
  5268. a device map file. If DEVICE_MAP_FILE already exists, then use
  5269. the data in it instead of probing devices. Otherwise, guess the
  5270. map between BIOS drives and OS devices, and write it to the file
  5271. DEVICE_MAP_FILE if it can be opened.
  5272. * grub/main.c (device_map_file): New variable.
  5273. (default_device_map_file): Likewise.
  5274. (OPT_DEVICE_MAP): New macro.
  5275. (longopts): Added an entry for "device-map".
  5276. (usage): Print the usage about --device-map as well.
  5277. (main): Set DEFAULT_DEVICE_MAP_FILE to DEVICE_MAP_FILE. If
  5278. OPT_DEVICE_MAP is found, set DEVICE_MAP_FILE to a duplicated
  5279. string of OPTARG.
  5280. * stage2/shared.h [GRUB_UTIL] (device_map_file): Declared.
  5281. * docs/grub.8: Regenerated.
  5282. 1999-10-13 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5283. * stage2/builtins.c (color_func): Do not set NORMAL_COLOR or
  5284. HIGHLIGHT_COLOR directly, but use NEW_NORMAL_COLOR and
  5285. NEW_HIGHLIGHT_COLOR as temporary storages instead.
  5286. New internal function `color_number' is used to convert a
  5287. symbolic color representation into a color number.
  5288. Try color_number at first, and if fails, then try
  5289. safe_parse_maxint for each of NORMAL and HIGHLIGHT.
  5290. (builtin_color): The long doc does not describe the raw number
  5291. syntax but the symbolic color name syntax.
  5292. * docs/grub.texi (Commands): Adjusted to the long doc of
  5293. BUILTIN_COLOR.
  5294. * docs/menu.lst: Add examples of "fallback" and "color".
  5295. 1999-10-13 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5296. * stage2/char_io.c [!STAGE1_5] (get_cmdline): If C is a newline
  5297. or a return, then set LPOS to LLEN and call the function
  5298. cl_setcpos.
  5299. [!STAGE1_5] (grub_strncat): New function.
  5300. * stage2/builtins.c (embed_func): New function.
  5301. (builtin_embed): New varilable.
  5302. (setup_func): New function.
  5303. (builtin_setup): New varilable.
  5304. (builtin_table): Added a pointer to BUILTIN_EMBED and a pointer
  5305. to BUILTIN_SETUP.
  5306. * stage2/shared.h (grub_strncat): Declared.
  5307. * stage2/Makefile.am (stage2_size.h): ../stage2/stage2 ->
  5308. pre_stage2. Reported by Pavel Roskin.
  5309. 1999-10-12 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5310. From Pavel Roskin:
  5311. * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): main -> cmain.
  5312. * stage2/boot.c (load_image): Only CUR_ADDR, not ENTRY_ADDR
  5313. should be 1M-aligned for NetBSD. Don't align symbol table on 4k
  5314. boundaries if the kernel doesn't require it.
  5315. 1999-10-10 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5316. * stage2/asm.S [!STAGE1_5] (start): New label to force ld quiet.
  5317. [!STAGE1_5] (_start): Likewise.
  5318. * stage2/builtins.c (install_func): Rewritten heavily almost
  5319. from scratch. As the blocklist was moved to the first sector of
  5320. Stage 2, always write sectors of Stage 2 to the disk.
  5321. * stage1/stage1.h (STAGE1_STAGE2_SECTOR): 0x40 -> 0x41.
  5322. (STAGE1_STAGE2_ADDRESS): 0x44 -> 0x45.
  5323. (STAGE1_STAGE2_SEGMENT): 0x46 -> 0x47.
  5324. (STAGE1_BOOT_DRIVE): 0x3f -> 0x40.
  5325. 1999-10-09 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5326. Stage1 supports both the CHS mode and the LBA mode.
  5327. * stage1/Makefile.am (nodist_pkgdata_DATA): Removed stage1_lba.
  5328. (BUILT_SOURCES): Deleted.
  5329. (CLEANFILES): Likewise.
  5330. (noinst_PROGRAMS): Removed stage1_lba.exec.
  5331. (stage1_exec_SOURCES): Removed stage2_size.h.
  5332. (stage2_size.h): Deleted.
  5333. (stage1_lba_exec_SOURCES): Likewise.
  5334. * stage1/stage1.S: Rewritten from scratch.
  5335. * stage1/stage1_lba.S: Deleted.
  5336. * stage1/stage1.h (COMPAT_VERSION_MAJOR): Set to 3.
  5337. (COMPAT_VERSION_MINOR): Set to 0.
  5338. (STAGE1_VER_MAJ_OFFS): Set to 0x3e.
  5339. (STAGE1_FIRSTLIST): Deleted.
  5340. (STAGE1_INSTALLSEG): Likewise.
  5341. (STAGE1_INSTALLADDR): Likewise.
  5342. (STAGE1_MINPARAMSIZE): Likewise.
  5343. (STAGE1_LISTSIZE): Likewise.
  5344. (STAGE1_ID_OFFSET): Likewise.
  5345. (STAGE1_ID_CHS): Likewise.
  5346. (STAGE1_ID_LBA): Likewise.
  5347. (STAGE1_STAGE2_SECTOR): New macro.
  5348. (STAGE1_STAGE2_ADDRESS): Likewise.
  5349. (STAGE1_STAGE2_SEGMENT): Likewise.
  5350. (STAGE1_BOOT_DRIVE): Likewise.
  5351. * stage2/start.S: New file.
  5352. * stage2/Makefile.am (noinst_DATA): New variable.
  5353. (CLEANFILES): Set to "$(nodist_pkgdata_DATA) $(noinst_DATA)
  5354. $(BUILT_SOURCES)".
  5355. (noinst_PROGRAMS): Removed stage2.exec, and added start.exec and
  5356. pre_stage2.exec.
  5357. (STAGE2_LINK): Deleted.
  5358. (PRE_STAGE2_LINK): New variable.
  5359. (START_LINK): Likewise.
  5360. (stage2_exec_SOURCES): Deleted.
  5361. (stage2_exec_CFLAGS): Likewise.
  5362. (stage2_exec_LDFLAGS): Likewise.
  5363. [NETBOOT_SUPPORT] (stage2_exec_LDADD): Likewise.
  5364. (pre_stage2_exec_SOURCES): New variable.
  5365. (pre_stage2_exec_CFLAGS): Likewise.
  5366. (pre_stage2_exec_LDFLAGS): Likewise.
  5367. [NETBOOT_SUPPORT] (pre_stage2_exec_LDADD): Likewise.
  5368. (BUILT_SOURCES): Likewise.
  5369. (start_exec_SOURCES): Likewise.
  5370. (start_exec_CFLAGS): Likewise.
  5371. (start_exec_LDFLAGS): Likewise.
  5372. (start_exec_DEPENDENCIES): Likewise.
  5373. (stage2_size.h): New rule.
  5374. (stage2): Likewise.
  5375. (e2fs_stage1_5_exec_SOURCES): Added start.S.
  5376. (fat_stage1_5_exec_SOURCES): Likewise.
  5377. (ffs_stage1_5_exec_SOURCES): Likewise.
  5378. (minix_stage1_5_exec_SOURCES): Likewise.
  5379. * stage2/asm.S (start): Renamed to ...
  5380. (main): ... this.
  5381. [STAGE1_5] (main): Jump to (codestart - EXT_C(main) + 0x2200)
  5382. instead of (codestart - EXT_C(start) + 0x2000).
  5383. [!STAGE1_5] (main): Jump to (codestart - EXT_C(main) + 0x8200)
  5384. instead of (codestart - EXT_C(start) + 0x8000).
  5385. [STAGE1_5] (chain_stage2): Use main instead of start.
  5386. * stage2/shared.h (BOOTSEC_LISTSIZE): New macro.
  5387. * stage2/stage1_5.c: Change the second argument for chain_stage2
  5388. to 0x8200.
  5389. 1999-10-08 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5390. * configure.in (--with-binutils): New option to specify a
  5391. directory to find binutils.
  5392. (CFLAGS): If WITH_BINUTILS is not empty, added the option `-B'.
  5393. (LD): Do not check for this. We don't use ld directly anyway.
  5394. (RANLIB): If WITH_BINUTILS is not empty, search the directory
  5395. WITH_BINUTILS first.
  5396. (OBJCOPY): Likewise.
  5397. * acinclude.m4 (grub_ASM_USCORE): Add CFLAGS into
  5398. AC_TRY_COMMAND.
  5399. (grub_ASM_ADDR32): Likewise.
  5400. (grub_ASM_PREFIX_REQUIREMENT): Likewise.
  5401. (grub_PROG_OBJCOPY_ABSOLUTE): Use CC instead of LD.
  5402. 1999-10-04 Pavel Roskin <pavel_roskin@geocities.com>
  5403. * stage2/freebsd.h (struct bootinfo): New member, bi_bios_dev.
  5404. * stage2/boot.c (bsd_boot): Set BI.BI_BIOS_DEV to SAVED_DRIVE.
  5405. 1999-10-04 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5406. From Pavel Roskin:
  5407. * docs/grub.texi: Fix typos.
  5408. * stage2/builtins.c (install_func): Reformat the warning message
  5409. about the option `d'.
  5410. 1999-10-03 Gordon Matzigkeit <gord@fig.org>
  5411. * stage2/builtins.c (install_func): Fix check for the Stage 2 id.
  5412. From Pavel Roskin.
  5413. * debian/Makefile.am (EXTRA_DIST): Add postinst and prerm.
  5414. 1999-10-03 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5415. * stage2/builtins.c (boot_func): Pass MBI.CMDLINE instead of ARG
  5416. to bsd_boot.
  5417. 1999-10-03 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5418. * stage2/gunzip.c (gunzip_test_header): Check if CURRENT_DRIVE
  5419. is 0x20 instead of if the fs type is TFTP, because GRUB does not
  5420. mount CURRENT_DRIVE when using a block file. Reported by Pavel
  5421. Roskin.
  5422. 1999-10-02 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5423. * stage2/builtins.c (cat_func): Do not read the whole of a file
  5424. at one time. Instead, repeat reading one byte and print it on
  5425. the screen.
  5426. * docs/grub.texi (Command line): List the available key
  5427. bindings.
  5428. (Commands): Added descriptions about "geometry", "device" and
  5429. "cat".
  5430. 1999-10-02 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5431. Now it is possible to build the grub shell with old BSD curses.
  5432. * stage2/shared.h [!A_NORMAL] (A_NORMAL): Set to zero.
  5433. [!A_REVERSE && A_STANDOUT] (A_REVERSE): Set to A_STANDOUT.
  5434. [!A_REVERSE && !A_STANDOUT] (A_REVERSE): Set to zero.
  5435. 1999-09-30 Pavel Roskin <pavel_roskin@geocities.com>
  5436. * stage2/disk_io.c (set_bootdev): Mask 0x7F instead of 0x79 of
  5437. the device number.
  5438. 1999-10-01 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5439. * configure.in (--without-curses): New option. If WITH_CURSES is
  5440. no, do not check for curses.
  5441. * stage2/disk_io.c (set_device) [STAGE1_5]: Change the type of
  5442. DEV to unsigned long.
  5443. * stage2/builtins.c (install_func): Always check for the Stage 2
  5444. id in FILE.
  5445. Reported by Pavel Roskin.
  5446. 1999-09-30 Gordon Matzigkeit <gord@fig.org>
  5447. * debian/postinst: New file to call install-info.
  5448. * debian/prerm: Likewise.
  5449. * debian/rules (binary-arch): Add postinst and prerm, compress the
  5450. info files, and call dpkg-shlibdeps.
  5451. * stage2/cmdline.c (skip_to): Restructure, and count tabs as
  5452. whitespace.
  5453. (find_command): Likewise.
  5454. 1999-09-30 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5455. * grub/getopt.c: Moved to ...
  5456. * lib/getopt.c: ... here.
  5457. * grub/getopt1.c: Moved to ...
  5458. * lib/getopt1.c: ... here.
  5459. * grub/getopt.h: Moved to ...
  5460. * lib/getopt.h: ... here.
  5461. * grub/Makefile.am (AM_CFLAGS): Added -I$(top_srcdir)/lib.
  5462. (grub_LDADD): Added ../lib/libcommon.a.
  5463. * lib/Makefile.am: New file.
  5464. * Makefile.am (SUBDIRS): Added lib.
  5465. * configure.in: lib/Makefile is added into the arguments for
  5466. AC_OUTPUT.
  5467. 1999-09-30 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5468. From Pavel Roskin:
  5469. * stage2/defs.h (time_t): Renamed to ...
  5470. (mach_time_t): ... this.
  5471. (daddr_t): Renamed to ...
  5472. (mach_daddr_t): ... this.
  5473. (uid_t): Renamed to ...
  5474. (mach_uid_t): ... this.
  5475. (gid_t): Renamed to ...
  5476. (mach_gid_t): ... this.
  5477. (ino_t): Renamed to ...
  5478. (mach_ino_t): ... this.
  5479. * stage2/disk_inode.h (FFS_MAX_FASTLINK_SIZE): Use mach_daddr_t
  5480. instead of daddr_t.
  5481. (struct icommon): Use mach_uid_t, mach_gid_t, mach_time_t and
  5482. mach_daddr_t, instead of uid_t, gid_t, time_t and daddr_t.
  5483. * stage2/fs.h (BBLOCK): Use mach_daddr_t instead of addr_t.
  5484. (SBLOCK): Likewise.
  5485. (ROOTINO): Use mach_ino_t instead of ino_t.
  5486. (struct fs): Use mach_daddr_t and mach_time_t instead of daddr_t
  5487. and time_t.
  5488. (struct cg): Use mach_time_t instead of time_t.
  5489. (struct ocg): Likewise.
  5490. (cgbase): Use mach_daddr_t instead of daddr_t.
  5491. (itod): Likewise.
  5492. 1999-09-30 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5493. * acinclude.m4 (grub_CHECK_START_SYMBOL): Use AC_TRY_LINK
  5494. instead of AC_TRY_COMMAND.
  5495. (grub_CHECK_USCORE_START_SYMBOL): Likewise.
  5496. (grub_CHECK_END_SYMBOL): Likewise.
  5497. (grub_CHECK_USCORE_END_SYMBOL): Likewise.
  5498. * stage2/disk_io.c (set_device) [!STAGE1_5]: Use RESULT instead
  5499. of RETVAL to check if the analysis succeeds.
  5500. 1999-09-29 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5501. * stage2/builtins.c (install_func): If the Stage 2 id in FILE is
  5502. not STAGE2_ID_STAGE2, set IS_STAGE1_5 to 1, otherwise to 0.
  5503. Use CONFIG_FILE_LOCATION to point to the location of the name of
  5504. a configuration file in Stage 2.
  5505. If the option `p' is present and IS_STAGE1_5 is non-zero, reset
  5506. the device information in CONFIG_FILE_LOCATION.
  5507. (cat_func): New function.
  5508. (builtin_cat): New variable.
  5509. (builtin_table): Added a pointer to BUILTIN_CAT.
  5510. (geometry_func): Call real_open_partition with the argument 1
  5511. after printing out the drive information.
  5512. * stage2/disk_io.c (real_open_partition): Made global.
  5513. [!STAGE1_5] (print_completions): In the command completion and
  5514. the filename completion, print a newline at the last if
  5515. IS_COMPLETION is zero.
  5516. * stage2/shared.h (real_open_partition): Declared.
  5517. * stage2/fsys_ext2fs.c (ext2fs_dir): Do not print a newline even
  5518. if PRINT_POSSIBILITIES is less than zero.
  5519. * stage2/fsys_ffs.c (ffs_dir): Likewise.
  5520. * stage2/fsys_fat.c (fat_dir): Likewise.
  5521. * stage2/fsys_minix.c (minix_dir): Likewise.
  5522. 1999-09-29 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5523. * stage1/stage1.S [!FFS_STAGE1_5] (blocklist_default_len): Do
  5524. not divide the size by 512, but shift the size to the right by
  5525. 9 instead, because of a binutils-2.9.1.0.x bug.
  5526. * stage1/stage1_lba.S [!FFS_STAGE1_5] (blocklist_default_len):
  5527. Likewise.
  5528. * stage2/builtins.c (install_func): When installing Stage 1.5,
  5529. if set_device returns NULL, then set CURRENT_DRIVE to 0xFF and
  5530. CONFIG_FILE to PTR.
  5531. 1999-09-26 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5532. * stage2/char_io.c [!STAGE1_5] (get_cmdline): In cl_insert, call
  5533. cl_setcpos before printing BUF, even if LPOS is equal to LLEN.
  5534. In the completion, if RET is zero, do not call cl_init.
  5535. * stage2/disk_io.c [!STAGE1_5] (print_completions): In the
  5536. filename completion, if UNIQUE is 1, check if UNIQUE_STRING is a
  5537. directory or not. If so, append '/' to BUF.
  5538. In the partition completion, if IS_COMPLETION is non-zero and
  5539. *UNIQUE_STRING is not NUL, copy UNIQUE_STRING to PTR. Do not
  5540. append '/'.
  5541. (real_open_partition) [!STAGE1_5]: If DO_COMPRESSION is non-zero,
  5542. call print_a_completion.
  5543. (check_BSD_parts) [!STAGE1_5]: Likewise.
  5544. [!STAGE1_5] (print_a_completion): Ignore NAME if it is "." or
  5545. "..".
  5546. 1999-09-25 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5547. * acinclude.m4 (grub_CHECK_USCORE_END_SYMBOL): Do not call
  5548. AC_DEFINE within AC_CACHE_VAL. Call it after AC_CACHE_VAL.
  5549. * stage2/Makefile.am (STAGE1_5_COMPILE): Do not define
  5550. CONFIG_FILE_ASM.
  5551. * stage2/asm.S (config_file) [STAGE1_5]: Set the first 4 bytes
  5552. to 0xffffffff and the following to "/boot/grub/stage2".
  5553. (config_file) [!STAGE1_5]: Set to "/boot/grub/menu.lst".
  5554. * stage2/builtins.c (install_func): Read a Stage 2 before
  5555. handling the `p' option.
  5556. If the `configfile' option is present and FILE is a Stage 2,
  5557. translate the device name to the internal device representation
  5558. and copy the result to STR.
  5559. * stage2/disk_io.c [STAGE1_5] (sane_partition): Eliminated.
  5560. [STAGE1_5] (incomplete): Likewise.
  5561. [STAGE1_5] (disk_choice): Likewise.
  5562. [STAGE1_5] (part_choice): Likewise.
  5563. (set_device) [STAGE1_5]: Assume that the first 4 bytes of DEVICE
  5564. is a device number. Set DRIVE to the forth byte of DEV and
  5565. PARTITION to the first 3 bytes of DEV. If DRIVE is 0xFF, set
  5566. CURRENT_DRIVE and CURRENT_PARTITION to SAVED_DRIVE and
  5567. SAVED_PARTITION, respectively. Otherwise set to DRIVE and
  5568. PARTITION, respectively.
  5569. (setup_part) [STAGE1_5]: Always call set_device.
  5570. 1999-09-24 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5571. * acinclude.m4 (grub_CHECK_END_SYMBOL): Add a missing
  5572. double-quote. Reported by Johannes Kroeger
  5573. <hanne@squirrel.owl.de>.
  5574. 1999-09-14 Gordon Matzigkeit <gord@fig.org>
  5575. * stage1/stage1.S (blocklist_default_start): New label for default
  5576. blocklist start sector.
  5577. (blocklist_default_len): New label for default blocklist length.
  5578. (blocklist_default_seg): New label for default blocklist segment.
  5579. * stage1/stage1_lba.S (blocklist_default_start): Likewise.
  5580. (blocklist_default_len): Likewise.
  5581. (blocklist_default_seg): Likewise.
  5582. 1999-09-23 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5583. * acinclude.m4 (grub_ASM_ADDR32): First, create a template
  5584. source file "conftest.s.in", and then, replace @ADDR32@ with
  5585. "addr32" if GRUB_CV_ASM_PREFIX_REQUIREMENT is yes, otherwise,
  5586. replace it with "addr32;". Reported by John Tobey
  5587. <spam@john-edwin-tobey.org>.
  5588. 1999-09-23 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5589. * stage2/builtins.c (debug_fs_print_func): Renamed to ...
  5590. (disk_read_print_func): ... this.
  5591. (fstest_func): Use DISK_READ_HOOK instead of DEBUG_FS.
  5592. (install_func): Rename debug_fs_savesect_func to
  5593. disk_read_savesect_func.
  5594. Rename debug_fs_blocklist_func to disk_read_blocklist_func.
  5595. Use DISK_READ_HOOK instead of DEBUG_FS.
  5596. (testload_func): Use DISK_READ_HOOK instead of DEBUG_FS.
  5597. * stage2/disk_io.c [!STAGE1_5] (debug_fs): Renamed to ...
  5598. [!STAGE1_5] (disk_read_hook): ... this.
  5599. [!STAGE1_5] (debug_fs_func): Renamed to ...
  5600. [!STAGE1_5] (disk_read_func): ... this.
  5601. (rawread) [!STAGE1_5]: Use DISK_READ_HOOK and DISK_READ_FUNC
  5602. instead of DEBUG_FS and DEBUG_FS_FUNC.
  5603. (grub_read) [!STAGE1_5]: Likewise.
  5604. (devread) [!STAGE1_5]: Use DISK_READ_HOOK instead of DEBUG_FS.
  5605. * stage2/fsys_ext2fs.c (ext2fs_read) [!STAGE1_5]: Use
  5606. DISK_READ_HOOK and DISK_READ_FUNC instead of DEBUG_FS and
  5607. DEBUG_FS_FUNC.
  5608. * stage2/fsys_ffs.c (ffs_read) [!STAGE1_5]: Likewise.
  5609. * stage2/fsys_minix.c (minix_read) [!STAGE1_5]: Likewise.
  5610. * stage2/shared.h [!STAGE1_5] (debug_fs): Renamed to ...
  5611. [!STAGE1_5] (disk_read_hook): ... this.
  5612. [!STAGE1_5] (debug_fs_func): Renamed to ...
  5613. [!STAGE1_5] (disk_read_func): ... this.
  5614. * docs/grub.texi: Likewise, replace debug_fs and debug_fs_func
  5615. with disk_read_hook and disk_read_func, respectively.
  5616. 1999-09-23 Pavel Roskin <pavel_roskin@geocities.com>
  5617. * stage2/builtins.c (install_func): New local function,
  5618. debug_fs_savesect_func. Use debug_fs_savesect_func to determine
  5619. the first sector of Stage2. Write Stage 1 after patching Stage
  5620. 2.
  5621. 1999-09-22 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5622. * acinclude.m4 (grub_ASM_USCORE): Do not define HAVE_ASM_USCORE
  5623. within AC_CACHE_VAL. Define it after AC_CACHE_VAL if
  5624. GRUB_CV_ASM_USCORE is yes.
  5625. 1999-09-20 Edmund GRIMLEY EVANS <edmundo@rano.demon.co.uk>
  5626. * netboot/3c59x.c: INCLUDE_3c59x is replaced by INCLUDE_3C59X
  5627. throughout.
  5628. * netboot/config.c: Likewise.
  5629. * netboot/io.h (__INS): New macro.
  5630. (__OUTS): Likewise.
  5631. (outl): Likewise.
  5632. (inl): Likewise.
  5633. (outl_p): Likewise.
  5634. (inl_p): Likewise.
  5635. Call __INS with the argument `b', with `w' and with `l' to
  5636. define insb, insw and insl, respectively. Likewise, Call __OUTS
  5637. with `b', with `w' and with `l' to define outsb, outw and outl,
  5638. respectively.
  5639. * netboot/pci.h (PCI_VENDOR_ID_VORTEX): New macro.
  5640. (PCI_DEVICE_ID_VORTEX_3c595): Likewise. Defined as a random
  5641. value.
  5642. 1999-09-20 Edward Killips <ekillips@triton.net>
  5643. * stage2/disk_io.c (set_partition_hidden_flag): Set/clear the
  5644. hidden flag, whether the hidden flag is set or not.
  5645. 1999-09-21 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5646. * stage2/builtins.c (install_func): Do not set DEBUG_FS at the
  5647. first read. Set it to DEBUG_FS_BLOCKLIST_FUNC when reading the
  5648. whole of Stage 2. Set FILEPOS to zero at the same time to read
  5649. from the beginning of Stage 2. Reported by Pavel Roskin.
  5650. 1999-09-20 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5651. The argument ADDR for the command install is now optional.
  5652. * stage2/builtins.c (install_func): If parsing ADDR fails, set
  5653. INSTALLADDR to zero and set PTR to ADDR.
  5654. If INSTALLADDR is zero after parsing the command-line, check if
  5655. the Stage 2 id is STAGE2_ID_STAGE2. If so, set INSTALLADDR to
  5656. 0x8000, otherwise set it to 0x2000.
  5657. Set the install address in the Stage 1 after the automatic
  5658. determination is completed.
  5659. (builtin_install): Say that ADDR is optional in the help
  5660. message.
  5661. * docs/grub.texi: Synchronize the description about install to
  5662. builtins.c. Remove explicit address arguments from all the
  5663. examples. Add a description about help.
  5664. * docs/menu.lst: Do not specify the address argument for
  5665. install.
  5666. 1999-09-19 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5667. The completion code is heavily modified.
  5668. * stage2/char_io.c [!STAGE1_5] (get_cmdline): In the completion
  5669. code, use COMPLETION_BUFFER to get the completion instead of
  5670. writing to BUF directly.
  5671. Save the position of a possible equal character after a command
  5672. in EQUAL_POS and replace the equal character with a space
  5673. temporarily for the code simplicity.
  5674. At first, just get completions, and, if there is more than one
  5675. completions, then print the list of the completions.
  5676. * stage2/disk_io.c [!STAGE1_5] (do_completion): New variable.
  5677. [!STAGE1_5] (unique): Moved the definition near the beginning.
  5678. [!STAGE1_5] (unique_string): Likewise. And changed the type to
  5679. char *.
  5680. (check_BSD_parts) [!STAGE1_5]: If DO_COMPLETION is non-zero, do
  5681. not print anything.
  5682. (real_open_partition) [!STAGE1_5]: Likewise.
  5683. [!STAGE1_5] (print_fsys_type): Likewise.
  5684. [!STAGE1_5] (print_a_completion): The argument FILENAME is
  5685. renamed to NAME.
  5686. If DO_COMPLETION is non-zero, get the unique part from NAME and
  5687. set UNIQUE_STRING to it.
  5688. If DO_COMPLETION is zero, just print NAME.
  5689. Do not call printf unconditionally.
  5690. [!STAGE1_5] (print_completions): Accept two arguements
  5691. IS_FILENAME and IS_COMPLETION instead of FILENAME.
  5692. Set UNIQUE_STRING to UNIQUE_BUF.
  5693. Set DO_COMPLETION to IS_COMPLETION and set it to zero before
  5694. returning.
  5695. If IS_FILENAME is zero, then complete builtin commands and
  5696. return UNIQUE - 1.
  5697. Use BUF instead of FILENAME.
  5698. If IS_COMPLETION is non-zero, do not print anything.
  5699. Copy UNIQUE_STRING to PTR only if IS_COMPLETION and
  5700. *UNIQUE_STRING are non-zero.
  5701. * stage2/shared.h (COMPLETION_BUF): New macro.
  5702. (COMPLETION_BUFLEN): Likewise.
  5703. (UNIQUE_BUF): Likewise.
  5704. (UNIQUE_BUFLEN): Likewise.
  5705. (MENU_BUF): Set to UNIQUE_BUF + UNIQUE_BUFLEN.
  5706. (MENU_BUFLEN): Set to 0x8000 + PASSWORD_BUF - UNIQUE_BUF.
  5707. (print_completions): Adjusted to the definition.
  5708. 1999-09-19 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5709. * acinclude.m4 (grub_ASM_PREFIX_REQUIREMENT): Do not call
  5710. AC_DEFINE_UNQUOTEs within AC_CACHE_VAL. Define ADDR32 and DATA32
  5711. after it.
  5712. (grub_CHECK_START_SYMBOL): Do not call AC_DEFINE within
  5713. AC_CACHE_VAL. Define HAVE_START_SYMBOL after it.
  5714. (grub_CHECK_USCORE_START_SYMBOL): Do not call AC_DEFINE within
  5715. AC_CACHE_VAL. Define HAVE_USCORE_START_SYMBOL after it.
  5716. (grub_CHECK_END_SYMBOL): Do not call AC_DEFINE within
  5717. AC_CACHE_VAL. Define HAVE_END_SYMBOL after it.
  5718. (grub_CHECK_USCORE_END_SYMBOL): Do not call AC_DEFINE within
  5719. AC_CACHE_VAL. Define HAVE_USCORE_END_SYMBOL after it.
  5720. 1999-09-17 Pavel Roskin <pavel_roskin@geocities.com>
  5721. * acconfig.h (ADDR32): Removed. This entry is automatically
  5722. created by autoheader.
  5723. (DATA32): Likewise.
  5724. * acinclude.m4 (grub_ASM_ADD32): Use ADDR32 instead of addr32.
  5725. Require grub_ASM_PREFIX_REQUIREMENT.
  5726. (grub_ASM_PREFIX_REQUIREMENT): Define ADDR32 and DATA32.
  5727. * configure.in: Call grub_ASM_PREFIX_REQUIREMENT before
  5728. grub_ASM_ADDR32. Do not define ADDR32 and DATA32.
  5729. * stage1/stage1.S (after_BPB): Use ABS(firstlist) instead of
  5730. firstlist.
  5731. (MSG): Use ABS(x) instead of x.
  5732. (probe_loop): Use the macro MSG for fd_probe_error_string.
  5733. * stage1/stage1_lba.S (after_BPB): Use ABS(firstlist) instead of
  5734. firstlist.
  5735. (MSG): Use ABS(x) instead of x.
  5736. * stage2/asm.S (putchar): Renamed to ...
  5737. (grub_putchar): ... this.
  5738. 1999-09-18 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5739. * stage2/gunzip.c (reset_linalloc): Use the macro RAW_ADDR
  5740. before setting LINALLOC_TOPADDR.
  5741. * stage2/shared.h [!GRUB_UTIL] (RAW_ADDR): Added parenthesises
  5742. to avoid a gcc warning.
  5743. [!GRUB_UTIL] (RAW_SEG): Likewise.
  5744. 1999-09-18 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5745. * acinclude.m4 (grub_CHECK_START_SYMBOL): New function.
  5746. (grub_CHECK_USCORE_START_SYMBOL): Likewise.
  5747. (grub_CHECK_END_SYMBOL): Likewise.
  5748. (grub_CHECK_USCORE_SYMBOL): Likewise.
  5749. * configure.in: Call grub_CHECK_START_SYMBOL and
  5750. grub_CHECK_USCORE_START_SYMBOL, and if neither start nor _start
  5751. is defined, print an error message and exit.
  5752. Likewise, call grub_CHECK_END_SYMBOL and
  5753. grub_CHECK_USCORE_END_SYMBOL, and if neither end nor _end is
  5754. defined, print an error message and exit.
  5755. * acconfig.h (HAVE_START_SYMBOL): Added the "undef" entry.
  5756. (HAVE_USCORE_START_SYMBOL): Likewise.
  5757. (HAVE_END_SYMBOL): Likewise.
  5758. (HAVE_USCORE_END_SYMBOL): Likewise.
  5759. * stage2/char_io.c (memcheck): Rename the argument START to
  5760. ADDR. Added two missing equal characters.
  5761. [GRUB_UTIL]: Define new local functions start_addr and end_addr.
  5762. [GRUB_UTIL && HAVE_START_SYMBOL]: The function start_addr
  5763. returns START.
  5764. [GRUB_UTIL && HAVE_USCORE_START_SYMBOL]: The function start_addr
  5765. returns _START.
  5766. [GRUB_UTIL && HAVE_END_SYMBOL]: The function end_addr returns
  5767. END.
  5768. [GRUB_UTIL && HAVE_USCORE_END_SYMBOL]: The function end_addr
  5769. returns _END.
  5770. [GRUB_UTIL]: If ADDR is equal to or greater than the address
  5771. returned by start_addr, and ADDR plus LEN is less than the
  5772. address returned by end_addr, return ! ERRNUM.
  5773. * stage2/asm.S (get_code_end) [HAVE_END_SYMBOL]: Use $end as the
  5774. end of the bss.
  5775. [HAVE_USCORE_END_SYMBOL]: Use $_end as the end of the bss.
  5776. * stage2/disk_io.c [!STAGE1_5] (cur_part_desc): Made static.
  5777. Need not to be global any longer.
  5778. 1999-09-17 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5779. * stage2/char_io.c [!STAGE1_5] (get_cmdline): The argument
  5780. COMPLETION is renamed to READLINE.
  5781. Do not initialize KILL here.
  5782. TAB, C-a, C-e, C-f, C-b, C-u, C-k, C-y, C-p and C-n are handled
  5783. only if READLINE is non-zero.
  5784. If ECHO_CHAR is not NUL, do not remove the leading spaces in BUF.
  5785. Add CMDLINE into the history list only if READLINE is non-zero.
  5786. * stage2/stage2.c (cmain): Initialize the kill buffer.
  5787. 1999-09-17 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5788. Killing, yanking and manipulating the history are supported.
  5789. * stage2/shared.h (cur_cmdline): Removed.
  5790. (MAX_CMDLINE): Moved near the beginning of the file.
  5791. (NEW_HEAPSIZE): Likewise.
  5792. (CMDLINE_BUFLEN): Set to MAX_CMDLINE.
  5793. (KILL_BUF): New macro.
  5794. (KILL_BUFLEN): Likewise.
  5795. (HISTORY_BUF): Likewise.
  5796. (HISTORY_SIZE): Likewise.
  5797. (HISTORY_BUFLEN): Likewise.
  5798. (MENU_BUF): Set to HISTORY_BUF + HISTORY_BUFLEN.
  5799. (MENU_BUFLEN): Set to 0x8000 + PASSWORD_BUF - HISTORY_BUF.
  5800. (strcpy): New macro.
  5801. (grub_strcpy): Delared.
  5802. * stage2/boot.c (cur_cmdline): Removed.
  5803. * stage2/char_io.c [!STAGE1_5] (grub_strcpy): New function.
  5804. [!STAGE1_5] (get_history): Likewise.
  5805. [!STAGE1_5] (add_history): Likewise.
  5806. [!STAGE1_5] (get_cmdline): Use BUF instead of CMDLINE for the
  5807. working buffer for the command-line.
  5808. A new function cl_insert is used to insert a string to the
  5809. command-line.
  5810. In the case where C-u or C-k is pressed, copy the string being
  5811. deleted to KILL.
  5812. If C-y is pressed, insert KILL to the command-line.
  5813. If C-p is pressed, fetch the previous command from the history
  5814. list HISTORY, and if C-n is pressed, fetch the next command from
  5815. it.
  5816. If LPOS is less than LLEN, add CMDLINE into the history list.
  5817. If C is equal to KEY_UP, set C to 16, and if C is equal to
  5818. KEY_DOWN, set C to 14.
  5819. [!STAGE1_5] (num_history): New variable.
  5820. 1999-09-15 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5821. * stage2/size_test: Do not check for the size of Stage 2.
  5822. * stage1/Makefile.am (stage2_size.h): Use `set' and `echo'
  5823. instead of awk, since we cannot expect awk is present. Remove
  5824. stage2_size.h before creating it.
  5825. 1999-09-15 Pavel Roskin <pavel_roskin@geocities.com>
  5826. * Makefile.am (SUBDIRS): Put stage1 after stage2 so that stage2
  5827. is built before stage1.
  5828. * stage1/Makefile.am (BUILT_SOURCES): New varilable.
  5829. (CLEANFILES): Added BUILT_SOURCES.
  5830. (stage1_exec_SOURCES): Added stage2_size.h.
  5831. (stage1_lba_exec_SOURCES): Likewise.
  5832. (stage2_size.h): New rule.
  5833. * stage1/stage1.S: Include <stage2_size.h> and use STAGE2_SIZE
  5834. to determine how much number of sectors to be read when loading
  5835. Stage 2.
  5836. * stage1/stage1_lba.S: Likewise.
  5837. 1999-09-15 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5838. * netboot/config.h: Moved to ...
  5839. * netboot/netboot_config.h: ... here.
  5840. * netboot/config.c: Include netboot_config.h instead of config.h.
  5841. * netboot/fsys_tftp.c: Likewise.
  5842. * netboot/ip.c: Likewise.
  5843. * netboot/Makefile.am (libdrivers_a_SOURCES): Removed config.h
  5844. and added netboot_config.h.
  5845. 1999-09-14 Pavel Roskin <pavel_roskin@geocities.com>
  5846. * grub/asmstub.c [__linux__]: On GLibc 2.0 and newer use lseek,
  5847. don't include <linux/fs.h> and define BLKFLSBUF if needed.
  5848. 1999-09-14 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5849. Now the grub shell works fine on FreeBSD. A patch by Pavel
  5850. Roskin is modified and applied.
  5851. * grub/asmstub.c (get_drive_geometry): New function.
  5852. (get_diskinfo): Use get_drive_geometry to set the geometry of
  5853. DRIVE.
  5854. 1999-09-14 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5855. * configure.in (--enable-ne): Made the description more clear.
  5856. (--enable-nepci): Likewise.
  5857. (--enable-wd): Likewise.
  5858. (--enable-t503): Likewise.
  5859. (--enable-t509): Likewise.
  5860. (--enable-3c59x): Likewise.
  5861. (--enable-lance): Likewise.
  5862. (--enable-cs): Likewise.
  5863. (--enable-eepro100): Likewise.
  5864. (--enable-wd-default_mem): Renamed to ...
  5865. (--enable-wd-default-mem): ... this.
  5866. (--enable-cs-scan): Corrected the description.
  5867. (NETBOOT_SUPPORT): Defined if NET_CFLAGS is not empty.
  5868. * stage2/Makefile.am (stage2_exec_LDADD): Defined only if
  5869. NETBOOT_SUPPORT is true.
  5870. * netboot/Makefile.am (LIBDRIVERS): New variable. If
  5871. NETBOOT_SUPPORT is true, set to libdriver.a, otherwise set to an
  5872. empty string.
  5873. (noinst_LIBRARIES): Set to LIBDRIVERS.
  5874. (DRIVERS): Added 3c509.h, cs89x0.h and ns8390.h.
  5875. (libdrivers_a_SOURCES): Added byteorder.h, config.h, if.h, io.h,
  5876. ip.h, netboot.h, netdevice.h, nic.h and pic.h.
  5877. (libdrivers_a_CFLAGS): Added -fno-builtin and -nostdinc and
  5878. removed -O2.
  5879. * stage2/char_io.c (grub_sprintf): Added parenthesises to avoid
  5880. gcc warnings.
  5881. * stage2/gunzip.c (gunzip_test_header): Check if FSYS_TYPE is
  5882. TFTP. If so, set IS_TFTP to non-zero, otherwise to zero. And,
  5883. use IS_TFTP to check if we have GZIP_CRC instead of the equation
  5884. "FILEMAX == 16 * 1024 * 1024".
  5885. 1999-09-13 Edmund GRIMLEY EVANS <edmundo@rano.demon.co.uk>
  5886. The netboot support in the Dresden version of GRUB is integrated.
  5887. * Makefile.am (SUBDIRS): Added netboot.
  5888. * configure.in (--enable-tftp): New option.
  5889. (--enable-ne): Likewise.
  5890. (--enable-nepci): Likewise.
  5891. (--enable-wd): Likewise.
  5892. (--enable-t503): Likewise.
  5893. (--enable-t509): Likewise.
  5894. (--enable-3c59x): Likewise.
  5895. (--enable-lance): Likewise.
  5896. (--enable-cs): Likewise.
  5897. (--enable-eepro100): Likewise.
  5898. (--enable-ne-scan): Likewise.
  5899. (--enable-wd-default_mem): Likewise.
  5900. (--enable-cs-scan): Likewise.
  5901. (NET_CFLAGS): New variable.
  5902. (NET_EXTRAFLAGS): Likewise.
  5903. Do AC_OUTPUT for netboot/Makefile as well.
  5904. * stage1/stage1.S: Set the number of sectors for Stage 2 to 130.
  5905. * stage1/stage1_lba.S: Likewise.
  5906. * stage2/Makefile.am (stage2_exec_LDADD): Added
  5907. ../netboot/libdrivers.a.
  5908. * stage2/asm.S [!STAGE1_5] (currticks): New function.
  5909. * stage2/char_io.c [!STAGE1_5] (grub_sprintf): Likewise.
  5910. [!STAGE1_5] (grub_memcmp): Likewise.
  5911. * stage2/disk_io.c (fsys_table) [FSYS_TFTP]: Added an entry for
  5912. tftp.
  5913. (sane_partition) [!STAGE1_5]: If CURRENT_DRIVE is a network
  5914. drive, return 1.
  5915. (real_open_partition) [!STAGE1_5]: Likewise.
  5916. (set_device): If DEVICE contains a network drive, set
  5917. CURRENT_DRIVE to 0x20.
  5918. * stage2/filesys.h [FSYS_TFTP] (FSYS_TFTP_NUM): Defined as 1.
  5919. [!FSYS_TFTP] (FSYS_TFTP_NUM): Defined as 0.
  5920. (NUM_FSYS): Added FSYS_TFTP_NUM.
  5921. * stage2/gunzip.c (gunzip_test_header): If FILEMAX >= 16MB, do
  5922. not try to examine the last 8 bytes of the file. This is
  5923. required for compressed files by TFTP.
  5924. * stage2/shared.h (sprintf): New macro.
  5925. (memcmp): Likewise.
  5926. (currticks): Declared.
  5927. (grub_sprintf): Likewise.
  5928. (grub_memcmp): Likewise.
  5929. * stage2/size_test: Set the maximum size of Stage 2 to 66560.
  5930. * netboot/3c509.c: New file.
  5931. * netboot/3c509.h: Likewise.
  5932. * netboot/3c59x.c: Likewise.
  5933. * netboot/Makefile.am: Likewise.
  5934. * netboot/Makefile.in: Likewise.
  5935. * netboot/byteorder.h: Likewise.
  5936. * netboot/compile: Likewise.
  5937. * netboot/config.c: Likewise.
  5938. * netboot/config.h: Likewise.
  5939. * netboot/cs89x0.c: Likewise.
  5940. * netboot/cs89x0.h: Likewise.
  5941. * netboot/eepro100.c: Likewise.
  5942. * netboot/fsys_tftp.c: Likewise.
  5943. * netboot/if.h: Likewise.
  5944. * netboot/io.h: Likewise.
  5945. * netboot/ip.c: Likewise.
  5946. * netboot/ip.h: Likewise.
  5947. * netboot/lance.c: Likewise.
  5948. * netboot/netboot.h: Likewise.
  5949. * netboot/netdevice.h: Likewise.
  5950. * netboot/nic.h: Likewise.
  5951. * netboot/ns8390.c: Likewise.
  5952. * netboot/ns8390.h: Likewise.
  5953. * netboot/pci.c: Likewise.
  5954. * netboot/pci.h: Likewise.
  5955. 1999-09-13 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5956. * configure.in (--enable-maintainer-mode): Do not use our own
  5957. rule, but use AM_MAINTAINER_MODE instead. If the maintainer mode
  5958. is enabled, then check for perl, and if it is not found, print
  5959. an error message and abort.
  5960. * docs/Makefile.am (grub.8): Regenerated if MAINTAINER_MODE is
  5961. defined, instead of GRUB_MAINT. Use the variable PERL rather
  5962. than running help2man directly.
  5963. 1999-09-13 Pavel Roskin <pavel_roskin@geocities.com>
  5964. * stage2/pc_slice.h (IS_PC_SLICE_TYPE_EXTENDED): New macro.
  5965. * stage2/disk_io.c (real_open_partition): Use
  5966. IS_PC_SLICE_TYPE_EXTENDED instead of comparing CURRENT_SLICE
  5967. with the extended partition types.
  5968. 1999-09-11 Pavel Roskin <pavel_roskin@geocities.com>
  5969. * acconfig.h: New file for autoheader support.
  5970. * acinclude.m4 (grub_ASM_EXT_C) Renamed to ...
  5971. (grub_ASM_USCORE): ... this. Define HAVE_ASM_USCORE if a C
  5972. symbol gets an underscore after compiling to assembler.
  5973. * configure.in: Added AM_CONFIG_HEADER. Autoconf 2.13 is now
  5974. required. Test for wgetch(), not getch() in -l[n]curses.
  5975. * stage2/shared.h (EXT_C): Defined.
  5976. Include the best existing header for [n]curses.
  5977. 1999-09-12 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5978. * stage2/boot.c (load_image): Use CURRENT_DRIVE and
  5979. CURRENT_PARTITION instead of SAVED_DRIVE and SAVED_PARTITION for
  5980. the boot device in the Multiboot information. Reported by
  5981. Stephen Early <steve@greenend.org.uk>.
  5982. 1999-09-12 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5983. * stage2/disk_io.c (sane_partition) [STAGE1_5]: Defined.
  5984. (set_device): Use sane_partition to make sure that CURRENT_DRIVE
  5985. has a valid value. Reported by Pavel Roskin.
  5986. 1999-09-11 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  5987. From Pavel Roskin:
  5988. * stage2/builtins.c (device_func) [GRUB_UTIL]: Use check_device
  5989. in order to make sure that DEVICE exists.
  5990. * grub/asmstub.c (check_device): New function.
  5991. (grub_stage2): Use check_device to probe a device.
  5992. * stage2/builtins.c (geometry_func) [GRUB_UTIL]: Copy the
  5993. modified geometry to GEOM and reset BUF_DRIVE. Reported by Pavel
  5994. Roskin.
  5995. * grub/main.c (no_floppy): New variable.
  5996. (probe_second_floppy): Likewise.
  5997. (OPT_NO_FLOPPY): New macro.
  5998. (OPT_PROBE_SECOND_FLOPPY): Likewise.
  5999. (longopts): Added no-floppy and probe-second-floppy.
  6000. (usage): Added the descriptions about --no-floppy and
  6001. --probe-second-floppy.
  6002. (main): Handle OPT_PROBE_SECOND_FLOPPY and OPT_NO_FLOPPY.
  6003. * grub/asmstub.c (grub_stage2): Print a message before the probe
  6004. routine. If NO_FLOPPY is non-zero, do not probe any floppy drive.
  6005. If PROBE_SECOND_FLOPPY is zero, skip the probe of the second
  6006. floppy drive.
  6007. (get_floppy_disk_name): New function.
  6008. (get_ide_disk_name): Likewise.
  6009. (get_scsi_disk_name): Likewise.
  6010. 1999-09-10 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6011. * stage2/builtins.c (device_func): New function.
  6012. (builtin_device): New variable.
  6013. (builtin_table): Added the pointer to BUILTIN_DEVICE.
  6014. (builtin_geometry) [GRUB_UTIL]: Accept extra arguments,
  6015. CYLINDER, HEAD, SECTOR and TOTAL_SECTOR, and, if they are found,
  6016. set the geometry of a drive specified to them.
  6017. * grub/asmstub.c (disks): Made global.
  6018. (assign_device_name): New function.
  6019. 1999-09-09 Gordon Matzigkeit <gord@fig.org>
  6020. * docs/grub.texi (Commands): Synchronize descriptions with
  6021. builtins.c.
  6022. * stage2/builtins.c (hide_func): Use set_partition_hidden_flag.
  6023. (unhide_func): Likewise.
  6024. Many help message cleanups. From Pavel Roskin.
  6025. * stage2/shared.h (set_partition_hidden_flag): Declare.
  6026. * stage2/disk_io.c (set_partition_hidden_flag): New function
  6027. merged from hide_partition and unhide_partition. Make sure we OR
  6028. with the inverse of the flag bit rather than XORing to unhide the
  6029. partition.
  6030. 1999-09-10 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6031. * grub/asmstub.c (_FILE_OFFSET_BITS): Defined.
  6032. (biosdisk) [!__linux__]: Pass the offset argument as off_t
  6033. instead of int to lseek, and compare the return value with
  6034. OFFSET. Reported by Pavel Roskin.
  6035. (grub_stage2) [!__linux__ && !__GNU__]: Print a warning message.
  6036. 1999-09-08 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6037. * stage2/stage2.c (run_menu): If run_script is successfully
  6038. finished, break the loop. Reported by Pavel Roskin.
  6039. Do not wait an input character when FALLBACK_ENTRY is less than
  6040. zero.
  6041. * stage2/cmdline.c (run_script): If ERRNUM is non-zero, wait an
  6042. input character, whether FALLBACK is less than zero or not.
  6043. 1999-09-06 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6044. * stage2/builtins.c (configfile_func): New function.
  6045. (builtin_configfile): New variable.
  6046. (builtin_table): Added the pointer to BUILTIN_CONFIGFILE.
  6047. 1999-09-06 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6048. From Pavel Roskin:
  6049. * stage2/asm.S [!STAGE1_5] (chain_stage2): Deleted.
  6050. [STAGE1_5] (get_code_end): Likewise.
  6051. * stage2/char_io.c (grub_strncat): Likewise.
  6052. * stage2/common.c [STAGE1_5] (saved_mem_upper): Likewise.
  6053. * stage2/smp-imps.c (imps_release_cpus): Likewise.
  6054. (imps_any_new_apics): Made static.
  6055. (imps_enabled): Likewise.
  6056. (imps_num_cpus): Likewise.
  6057. (imps_lapic_addr): Likewise.
  6058. (imps_cpu_apic_map): Likewise.
  6059. (imps_apic_cpu_map): Likewise.
  6060. 1999-09-06 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6061. * stage2/builtins.c (testload_func): Fix the typos: 0x2000000 ->
  6062. 0x200000 and 0x3000000 -> 0x300000.
  6063. 1999-09-06 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6064. From Hisazumi Kenji <nel@soraneko.com>:
  6065. * stage2/fsys_ffs.c (mapblock_offset): New variable.
  6066. (mapblock_bsize): Likewise.
  6067. (MAPBUF): New macro.
  6068. (MAPBUF_LEN): Likewise.
  6069. (ffs_mount): Set MAPBLOCK_OFFSET to -1.
  6070. (block_map): Added partial read support.
  6071. 1999-09-06 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6072. * stage2/cmdline.c (find_command): If COMMAND is less than
  6073. (*BUILTIN)->NAME in dictionary order, break the loop.
  6074. * stage2/builtins.c (builtin_chainloader): Capitalize the
  6075. variable name in the short doc.
  6076. (builtin_color): Likewise.
  6077. (builtin_geometry): Likewise.
  6078. (builtin_help): Likewise.
  6079. (builtin_hide): Likewise.
  6080. (builtin_initrd): Likewise.
  6081. (builtin_install): Likewise.
  6082. (builtin_kernel): Likewise.
  6083. (builtin_module): Likewise.
  6084. (builtin_modulenounzip): Likewise.
  6085. (builtin_pause): Likewise.
  6086. (builtin_read): Likewise.
  6087. (builtin_root): Likewise.
  6088. (builtin_testload): Likewise.
  6089. (builtin_unhide): Likewise.
  6090. (builtin_uppermem): Likewise.
  6091. 1999-09-05 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6092. The internal of the command handling is heavily modified, and
  6093. a new command "help" is added.
  6094. * stage1/stage1.S: Set the number of sectors for Stage 2 to 110.
  6095. * stage1/stage1_lba.S: Likewise.
  6096. * stage2/builtins.c: New file.
  6097. * stage2/Makefile.am (libgrub_a_SOURCES): Added builtins.c.
  6098. (stage2_exec_SOURCES): Likewise.
  6099. * stage2/boot.c (load_image): Return kernel_t instead int.
  6100. (bsd_boot): Change the type of the first argument to kernel_t.
  6101. * stage2/char_io.c (get_cmdline): Do not accept the argument
  6102. COMMANDS and accept the argument COMPLETION.
  6103. Print completions only if COMPLETION is non-zero.
  6104. Print the list of short docs when the command is completed.
  6105. * stage2/cmdline.c [GRUB_UTIL]: Do not include apic.h and
  6106. smp-imps.h.
  6107. (fallback): Deleted.
  6108. (password): Likewise.
  6109. (debug): Likewise.
  6110. (normal_color): Likewise.
  6111. (highlight_color): Likewise.
  6112. (print_cmdline_message): New function.
  6113. (commands): Deleted.
  6114. (debug_fs_print_func): Likewise.
  6115. (installaddr): Likewise.
  6116. (installlist): Likewise.
  6117. (installsect): Likewise.
  6118. (debug_fs_blocklist_func): Likewise.
  6119. (find_command): New function.
  6120. (init_cmdline): Initialize the data for the command-line
  6121. interface. The function to print the message is moved to
  6122. print_cmdline_message.
  6123. (enter_cmdline): Rewritten from scratch. Now deal with only the
  6124. pure command-line and the function to deal with a menu entry is
  6125. moved to run_script.
  6126. (run_script): New function.
  6127. * stage2/shared.h (PASSWORD_BUF): New macro.
  6128. (PASSWORD_BUFLEN): Likewise.
  6129. (CMDLINE_BUF): Likewise.
  6130. (CMDLINE_BUFLEN): Likewise.
  6131. (MENU_BUF): Likewise.
  6132. (MENU_BUFLEN): Likewise.
  6133. (fallback): Deleted.
  6134. (fallback_entry): Declared.
  6135. (default_entry): Likewise.
  6136. (BUILTIN_CMDLINE): New macro.
  6137. (BUILTIN_MENU): Likewise.
  6138. (BUILTIN_TITLE): Likewise.
  6139. (struct builtin): New tag.
  6140. (builtin_table): Declared.
  6141. (cmdline_t): Deleted.
  6142. (kernel_t): New type.
  6143. (kernel_type): Declared.
  6144. (grub_timeout): Likewise.
  6145. (init_builtins): Likewise.
  6146. (init_config): Likewise.
  6147. (find_command): Likewise.
  6148. (print_cmdline_message): Likewise.
  6149. (run_script): Likewise.
  6150. [!STAGE1_5] (bsd_boot): Deleted.
  6151. [!STAGE1_5] (load_image): Likewise.
  6152. [!STAGE1_5] (load_module): Likewise.
  6153. [!STAGE1_5] (load_initrd): Likewise.
  6154. * stage2/size_test: Set the maximum size of Stage 2 to 56320.
  6155. * stage2/stage2.c (grub_timeout): Deleted.
  6156. (menu_t): Likewise.
  6157. (run_menu): Changed the return type to void.
  6158. Use FALLBACK_ENTRY instead of FALLBACK.
  6159. Do not check the return value of enter_cmdline.
  6160. (run_menu) [GRUB_UTIL]: Call stop instead of returning
  6161. MENU_ABORT.
  6162. (cmain): Set MENU_ENTRIES to MENU_BUF.
  6163. Call init_config instead of clearing the variables directly.
  6164. Use CMDLINE_BUF for the command-line buffer instead of the
  6165. stack.
  6166. Adapted the analysis routine for the configuration file to the
  6167. new builtin commands interface.
  6168. Run enter_cmdline forever.
  6169. If run_menu returns, restart the loop.
  6170. 1999-09-04 Pavel Roskin <pavel_roskin@geocities.com>
  6171. * docs/menu.lst: More meaningful examples. Not using (0x80,0)
  6172. notation anymore.
  6173. * stage2/stage2.c (run_menu): Erase the entered password before
  6174. get_cmdline(). Help on TAB disabled when entering the password.
  6175. * stage2/char_io.c (get_cmdline): Restore command-line even if
  6176. there is no help string.
  6177. * configure.in: --disable-gunzip disables decompression in
  6178. stage2.
  6179. * stage2/gunzip.c [NO_DECOMPRESSION]: Disable all code if
  6180. decompression is disabled.
  6181. 1999-09-03 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6182. * stage2/boot.c (load_image): Use PHDR->P_PADDR instead of
  6183. PHDR->P_VADDR. Reported by Ramon van Handel <vhandel@chem.vu.nl>.
  6184. 1999-09-03 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6185. * docs/help2man: Upgraded to 1.013.
  6186. * docs/grub.8: Regenerated.
  6187. 1999-09-02 Pavel Roskin <pavel_roskin@geocities.com>
  6188. * stage2/cmdline.c (enter_cmdline) [GRUB_UTIL]: Add a space in
  6189. the LBA warning message.
  6190. 1999-09-02 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6191. The character `=' after a command is now optional.
  6192. * stage2/char_io.c (get_cmdline): Search for a space or a equal
  6193. character after the first word in CMDLINE when TAB lists
  6194. completions, instead of just searching for a eqaul character.
  6195. * stage2/cmdline.c (skip_to): Treat the character `=' as a space
  6196. if AFTER_EQUAL is non-zero.
  6197. (commands): Delete all the equal characters.
  6198. * docs/menu.lst: Likewise.
  6199. * docs/grub.texi: Likewise.
  6200. 1999-09-01 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6201. * grub/asmstub.c (env_for_exit): New variable.
  6202. (grub_stage2): Do a setjmp in doit, and when it returns
  6203. non-zero, set STATUS to 1 if ERRNUM is non-zero.
  6204. (stop): Call longjmp instead of exit.
  6205. 1999-08-31 Pavel Roskin <pavel_roskin@geocities.com>
  6206. * stage2/boot.c [GRUB_UTIL] (bsd_boot_entry): New function.
  6207. (bsd_boot) [GRUB_UTIL]: Set ENTRY_ADDR to BSD_BOOT_ENTRY to fake
  6208. the *BSD boot.
  6209. 1999-08-31 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6210. * stage2/fsys_fat.c (fat_create_blocklist): Cast FAT_BUF to
  6211. unsigned short * instead of unsigned long *. Suggested by Pavel
  6212. Roskin.
  6213. 1999-08-30 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6214. From Edward Killips <ekillips@triton.net>:
  6215. * stage2/cmdline.c (commands): Added hide and unhide.
  6216. (enter_cmdline): Likewise.
  6217. * stage2/disk_io.c (unhide_partition): New function.
  6218. (hide_partition): Likewise.
  6219. * stage2/pc_slice.h (PC_SLICE_TYPE_HIDDEN_FLAG): New macro.
  6220. 1999-08-29 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6221. From Pavel Roskin <pavel_roskin@geocities.com>:
  6222. * stage2/fsys_minix.c (namelen): New variable.
  6223. (MINIX_NAME_LEN): Deleted.
  6224. (minix_mount): Set NAMELEN to 14 if SUPRTBLOCK->S_MAGIC is
  6225. MINIX_SUPER_MAGIC, and set NAMELEN to 30 if it is
  6226. MINIX_SUPER_MAGIC2.
  6227. (minix_dir): Use NAMELEN instead of MINIX_NAME_LEN.
  6228. 1999-08-29 Pavel Roskin <pavel_roslin@geocities.com>
  6229. * grub/Makefile.am, stage1/Makefile.am, stage2/Makefile.am:
  6230. Avoid using variables inclosed in '@' because they cannot be
  6231. overridden at the make time.
  6232. 1999-08-29 Pavel Roskin <pavel_roskin@geocities.com>
  6233. * stage2/fsys_fat.c (fat_create_blocklist): Return 1 for the
  6234. root directory on FAT12 and FAT16.
  6235. 1999-08-27 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6236. * stage2/boot.c (load_image): Accept two arguments, KERNEL and
  6237. ARG. And use them instead of CUR_CMDLINE.
  6238. (load_module): Accept two arguments, MODULE and ARG. And use
  6239. them instead of CUR_CMDLINE.
  6240. (load_initrd): Accept one argument, INITRD. And use it instead
  6241. of CUR_CMDLINE.
  6242. (bsd_boot): Accept one additional argument, ARG. And use it
  6243. instead of CUR_CMDLINE.
  6244. * stage2/cmdline.c (enter_cmdline): Use MB_CMDLINE instead of
  6245. HEAP for the Multiboot command-line buffer.
  6246. * stage2/shared.h (MB_CMDLINE_BUF): New macro.
  6247. (MB_CMDLINE_BUFLEN): Likewise.
  6248. 1999-08-26 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6249. * docs/Makefile.am [GRUB_MAINT] (grub.8): The argument for the
  6250. option --name is changed to "the grub shell".
  6251. * docs/grub.8: Regenerated.
  6252. * docs/grub.texi: Do not use the name "the Stage 2 emulator" any
  6253. more. Use the name "the grub shell" instead.
  6254. 1999-08-26 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6255. From Klaus Reichl <klaus.reichl@alcatel.at>:
  6256. * stage2/fsys_minix.c: New file.
  6257. * stage2/size_test: Added a check for the size of minix_stage1_5.
  6258. * stage2/Makefile.am (libgrub_a_SOURCES): Added fsys_minix.c.
  6259. (libgrub_a_CFLAGS): Added -DFSYS_MINIX=1.
  6260. (nodist_pkgdata_DATA): Added minix_stage1_5.
  6261. (noinst_PROGRAMS): Added minix_stage1_5.exec.
  6262. (stage2_exec_SOURCES): Added fsys_minix.c.
  6263. (minix_stage1_5_exec_SOURCES): New variable.
  6264. (minix_stage1_5_exec_CFLAGS): Likewise.
  6265. (minix_stage1_5_exec_LDFLAGS): Likewise.
  6266. * stage2/pc_slice.h (PC_SLICE_TYPE_MINIX): New macro.
  6267. * stage2/disk_io.c (fsys_table) [FSYS_MINIX]: Added minix entry.
  6268. * stage2/filesys.h [FSYS_MINIX] (FSYS_MINIX_NUM): Set to 1.
  6269. [!FSYS_MINIX] (FSYS_MINIX_NUM): Set to 0.
  6270. [!NUM_FSYS] (NUM_FSYS): Added FSYS_MINIX_NUM.
  6271. * stage2/shared.h (STAGE2_ID_MINIX_STAGE1_5): New macro.
  6272. [STAGE1_5 && FSYS_MINIX] (STAGE2_ID): Set to
  6273. STAGE2_ID_MINIX_STAGE1_5.
  6274. * grub/Makefile.am (AM_CFLAGS): Added -DFSYS_MINIX=1.
  6275. * configure.in (--disable-minix): New option.
  6276. 1999-08-25 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6277. From Jochen Hoenicke <jochen@gnu.org>:
  6278. * stage2/fat.h (FAT_BPB_FAT_SECTORS_16): New macro.
  6279. (FAT_BPB_FAT_SECTORS_32): Likewise.
  6280. (FAT_BPB_IS_FAT32): Likewise.
  6281. (FAT_BPB_ROOT_DIR_CLUSTER): Likewise.
  6282. (FAT_BPB_FAT_SECTORS): If FAT_BPB_FAT_SECTORS_16 returns
  6283. a non-zero value, return it. Otherwise return
  6284. FAT_BPB_FAT_SECTORS_32.
  6285. (FAT_DIRENTRY_FIRST_CLUSTER): Corrected.
  6286. * stage2/fsys_fat.c (root_dir): New variable.
  6287. (fat_mount): Use the macro IS_PC_SLICE_TYPE_FAT instead of
  6288. checking for each fs types directly.
  6289. Omit the >64 sectors check.
  6290. If the current fs type is FAT32, then set FAT_SIZE to 8 and
  6291. get the root from BPB.
  6292. (fat_create_blocklist): Use the macro SECTOR_SIZE instead of a
  6293. magic number.
  6294. (fat_dir): Set MAP to ROOT_DIR instead of -1.
  6295. * stage2/pc_slice.h (PC_SLICE_TYPE_FAT32): New macro.
  6296. (PC_SLICE_TYPE_FAT32_LBA): Likewise.
  6297. (PC_SLICE_TYPE_FAT16_LBA): Likewise.
  6298. (IS_PC_SLICE_TYPE_FAT): Likewise.
  6299. 1999-08-25 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6300. * stage2/fsys_ffs.c (ffs_mount): Do not shift the fs type
  6301. FS_BSDFFS. Reported by Takehiro Suzuki
  6302. <takehiro@coral.ocn.ne.jp>.
  6303. * stage2/fsys_fat.c (fat_mount): Do not shift the fs type
  6304. FS_MSDOS.
  6305. 1999-08-13 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6306. Pavel Roskin's patch that adds new options to disable arbitrary
  6307. filesystems is heavily modified and applied.
  6308. * configure.in (--disable-ext2fs): New option.
  6309. (--disable-fat): Likewise.
  6310. (--disable-ffs): Likewise.
  6311. (FSYS_CFLAGS): New variable. Set to filesystems the user choose.
  6312. * grub/Makefile.am (AM_CFLAGS): Added -DFSYS_EXT2FS=1,
  6313. -DFSYS_FAT=1 and -DFSYS_FFS=1.
  6314. * stage2/Makefile.am (libgrub_a_CFLAGS): Likewise.
  6315. (stage2_exec_CFLAGS): Added @FSYS_CFLAGS@.
  6316. * stage2/filesys.h
  6317. [!(FSYS_FFS || FSYS_FAT || FSYS_EXT2FS)] (FSYS_FFS): Deleted.
  6318. [!(FSYS_FFS || FSYS_FAT || FSYS_EXT2FS)] (FSYS_FAT): Likewise.
  6319. [!(FSYS_FFS || FSYS_FAT || FSYS_EXT2FS)] (FSYS_EXT2FS): Likewise.
  6320. * stage2/fsys_ext2fs.c [!FSYS_EXT2FS]: Do not define anything.
  6321. * stage2/fsys_fat.c [!FSYS_FAT]: Likewise.
  6322. * stage2/fsys_ffs.c [!FSYS_FFS]: Likewise.
  6323. 1999-08-12 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6324. * stage1/stage1_lba.S: Use STAGE1_DRP_ADDR for the address of
  6325. drive parameters instead of DRIVE_PARAMETER.
  6326. (drive_parameter): Deleted.
  6327. * stage1/stage1.h (STAGE1_DRP_ADDR): New macro.
  6328. (STAGE1_DRP_SIZE): Likewise.
  6329. 1999-08-11 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6330. * stage2/bios.c (get_diskinfo): In LBA mode, set TOTAL_SECTORS
  6331. to the low 32bits of DRP.TOTAL_SECTORS instead of the multiple
  6332. of CHS.
  6333. * stage2/cmdline.c (enter_cmdline) [GRUB_UTIL]: In the command
  6334. "geometry", print the device file name instead of CHS/LBA
  6335. information.
  6336. * stage2/shared.h (device_map): Declared.
  6337. * grub/asmstub.c (device_map): Defined as a global variable
  6338. instead of a local variable.
  6339. 1999-08-10 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6340. Support the NetBSD and OpenBSD partition slices.
  6341. * stage2/pc_slice.h (PC_SLICE_TYPE_BSD): Deleted.
  6342. (PC_SLICE_TYPE_FREEBSD): New macro.
  6343. (PC_SLICE_TYPE_OPENBSD): Likewise.
  6344. (PC_SLICE_TYPE_NETBSD): Likewise.
  6345. (IS_PC_SLICE_TYPE_BSD_WITH_FS): Likewise.
  6346. (IS_PC_SLICE_TYPE_BSD): Likewise.
  6347. * stage2/fsys_ffs.c (ffs_mount): Use the macro
  6348. IS_PC_SLICE_TYPE_BSD_WITH_FS instead of checking if
  6349. CURRECT_SLICE is equal to the BSD partition type directly.
  6350. * stage2/fsys_ext2fs.c (ext2fs_mount): Likewise.
  6351. * stage2/fsys_fat.c (fat_mount): Likewise.
  6352. * stage2/disk_io.c (check_BSD_parts): Set the low bits of
  6353. CURRENT_SLICE to PC_SLICE_TYPE_FREEBSD instead of
  6354. PC_SLICE_TYPE_BSD.
  6355. (real_open_partition): Use the macro IS_PC_SLICE_TYPE_BSD instead
  6356. of checking if CURRENT_SLICE is equal to the BSD partition type
  6357. directly.
  6358. 1999-08-09 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6359. * stage2/cmdline.c (commands): Added geometry.
  6360. (enter_cmdline): If CUR_HEAP has the string "geometry", print
  6361. out the information about a drive that the argument represents.
  6362. 1999-08-09 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6363. * stage2/stage2.c (run_menu): Terminate the string PASSWORD
  6364. before checking if ENTERED is identical to PASSWORD. Reported
  6365. by Mark Lundeberg <aa026@pgfn.bc.ca>.
  6366. 1999-08-08 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6367. * stage2/stage2.c (set_line_normal): New function.
  6368. (set_line_highlight): Likewise.
  6369. (run_menu): Do not call the function set_line directly any
  6370. longer, call set_line_normal and set_line_highlight instead.
  6371. From Pavel Roskin:
  6372. * stage2/stage2.c (run_menu) [GRUB_UTIL]: Quit when pushing the
  6373. key `q'.
  6374. 1999-08-05 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6375. * acinclude.m4 (grub_ASM_PREFIX_REQUIREMENT): New function.
  6376. * configure.in: Call grub_ASM_PREFIX_REQUIREMENT, and define
  6377. ADDR32 and DATA32 based on the result.
  6378. * stage2/asm.S: Replace addr32 and data32 prefixes with ADDR32
  6379. and DATA32 respectively.
  6380. 1999-08-05 Pavel Roskin <pavel_roskin@geocities.com>
  6381. * stage2/boot.c (load_image): Use RAW_ADDR macro when loading
  6382. an a.out kernel.
  6383. 1999-08-04 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6384. * stage2/asm.S: Make each of the addr32 and data32 prefixes
  6385. appear in the same line as it modifies, as the gas manual in
  6386. binutils-2.9.5.0.4 says "it must be in the same line".
  6387. 1999-08-04 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6388. * boot.c (load_image): Fix a strcmp test. Reported by Pavel
  6389. Roskin <pavel_roskin@geocities.com>.
  6390. 1999-08-03 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6391. From "Dan J. Walters" <djw@cs.utexas.edu>:
  6392. * stage2/i386-elf.h (EI_BRAND): New macro.
  6393. * stage2/boot.c (load_image): If the kernel is ELF, check if it
  6394. is a FreeBSD kernel as well as a Multiboot kernel, and if it is
  6395. a FreeBSD kernel, then mask ENTRY_ADDR since FreeBSD requires
  6396. that. Likewise, mask MEMADDR.
  6397. (bsd_boot): Set the bi_symtab and the bi_esymtab members of BI
  6398. only if MBI.FLAGS has the flag MB_INFO_AOUT_SYMS. Otherwise,
  6399. clear them.
  6400. 1999-07-30 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6401. From Pavel Roskin <pavel_roskin@geocities.com>:
  6402. * grub/getopt.c: New file. Copied from texinfo-3.12n.
  6403. * grub/getopt1.c: Likewise.
  6404. * grub/getopt.h: Likewise.
  6405. * grub/Makefile.am (grub_SOURCES): Added getopt.c, getopt1.c and
  6406. getopt.h.
  6407. * configure.in: Check for string.h and strings.h.
  6408. * grub/asmstub.c (grub_stage2): Fix a misordering in the output
  6409. format of the inline assembly.
  6410. 1999-07-30 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6411. From Pavel Roskin <pavel_roskin@geocities.com>:
  6412. * stage2/asm.S (get_diskinfo_standard): If the number of sectors
  6413. returned is zero, then return an error code, even if non-carrier.
  6414. 1999-07-15 Gordon Matzigkeit <gord@zen.fig.org>
  6415. * docs/Makefile.am (grub.info): Use an ugly hack to downgrade
  6416. grub.texi so that it works with Debian's version of texinfo.
  6417. 1999-07-26 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6418. * stage2/bios.c (get_diskinfo): When DRIVE is a floppy drive,
  6419. try standard probe routine at first. Reported by Peter Astrand
  6420. <altic@lysator.liu.se>.
  6421. * grub/main.c (main): Call printf instead of grub_printf.
  6422. Reported by Klaus Reichl <a8709182@unet.univie.ac.at>.
  6423. 1999-07-15 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6424. * stage2/cmdline.c (skip_to): Don't increase CMDLINE if the
  6425. character to which CMDLINE points is NUL.
  6426. * stage2/Makefile.am (EXTRA_DIST): Removed smp-imps.c.
  6427. (stage2_exec_SOURCES): Added smp-imps.c.
  6428. * stage2/cmdline.c [!GRUB_UTIL] (IMPS_DEBUG) (KERNEL_PRINT)
  6429. (CMOS_WRITE_BYTE) (CMOS_READ_BYTE) (PHYS_TO_VIRTUAL)
  6430. (VIRTUAL_TO_PHYS) (inb) (outb) (cmos_write_byte)
  6431. (cmos_read_byte): These are now defined in ...
  6432. * stage2/smp-imps.c (IMPS_DEBUG) (KERNEL_PRINT)
  6433. (CMOS_WRITE_BYTE) (CMOS_READ_BYTE) (PHYS_TO_VIRTUAL)
  6434. (VIRTUAL_TO_PHYS) (inb) (outb) (cmos_write_byte)
  6435. (cmos_read_byte): ... here.
  6436. * stage2/cmdline.c [!GRUB_UTIL]: Include apic.h and smp-imps.h.
  6437. 1999-07-14 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6438. The function ungetch is simulated so that the user can use a
  6439. buggy curses.
  6440. * grub/asmstub.c [HAVE_LIBCURSES] (save_char): New variable.
  6441. (getkey) [HAVE_LIBCURSES]: If SAVE_CHAR is not ERR, return
  6442. SAVE_CHAR and clear it.
  6443. (checkkey) [HAVE_LIBCURSES]: If SAVE_CHAR is not ERR, return
  6444. SAVE_CHAR. If C is not ERR, set SAVE_CHAR to C.
  6445. 1999-07-14 Pavel Roskin <pavel_roskin@geocities.com>
  6446. * stage2/char_io.c (get_cmdline) [GRUB_UTIL]: Recognize
  6447. backspace when ncurses fails to do this.
  6448. * grub/asmstub.c (grub_stage2) [HAVE_LIBCURSES]: Call wtimeout
  6449. instead of nodelay.
  6450. (getkey) [HAVE_LIBCURSES]: Likewise.
  6451. 1999-07-14 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6452. * stage1/stage1_lba.S (probe_values): New variable. This is not
  6453. used actually, but prevents `install' command from failing
  6454. bogusly.
  6455. 1999-07-14 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6456. All constants in stage1s are moved to stage1.h and renamed
  6457. appropriately, and include stage1.h instead.
  6458. * grub/Makefile.am (AM_CFLAGS): Added the include path to stage1.
  6459. * stage2/Makefile.am (INCLUDES): New variable.
  6460. * stage1/Makefile.am (stage1_exec_SOURCES): Added stage1.h
  6461. (stage1_lba_exec_SOURCES): Likewise.
  6462. * stage1/stage1.h: New file.
  6463. * stage1/stage1.S (SIGNATURE): Renamed to ...
  6464. * stage1/stage1.h (STAGE1_SIGNATURE): ... this.
  6465. * stage1/stage1.S (BPBEND): Renamed to ...
  6466. * stage1/stage1.h (STAGE1_BPBEND): ... this.
  6467. * stage1/stage1.S (PARTSTART): Renamed to ...
  6468. * stage1/stage1.h (STAGE1_PARTSTART): ... this.
  6469. * stage1/stage1.S (MINPARMSIZ): Renamed to ...
  6470. * stage1/stage1.h (STAGE1_MINPARMSIZE): ... this.
  6471. * stage1/stage1.S (LISTSIZ): Renamed to ...
  6472. * stage1/stage1.h (STAGE1_LISTSIZE): ... this.
  6473. * stage1/stage1.S (REALSTACK): Renamed to ...
  6474. * stage1/stage1.h (STAGE1_STACKSEG): ... this.
  6475. * stage1/stage1.S (BUFFERSEG): Renamed to ...
  6476. * stage1/stage1.h (STAGE1_BUFFERSEG): ... this.
  6477. * stage1/stage1.S (BIOS_HD_FLAG): Renamed to ...
  6478. * stage1/stage1.h (STAGE1_BIOS_HD_FLAG): ... this.
  6479. * stage1/stage1_lba.S (SIGNATURE): Removed.
  6480. * stage1/stage1_lba.S (BPBEND): Likewise.
  6481. * stage1/stage1_lba.S (PARTSTART): Likewise.
  6482. * stage1/stage1_lba.S (MINPARMSIZ): Likewise.
  6483. * stage1/stage1_lba.S (LISTSIZ): Likewise.
  6484. * stage1/stage1_lba.S (REALSTACK): Likewise.
  6485. * stage1/stage1_lba.S (BUFFERSEG): Likewise.
  6486. * stage1/stage1_lba.S (BIOS_HD_FLAG): Likewise.
  6487. * stage1/stage1.S (stage1_id): New variable.
  6488. * stage1/stage1_lba.S (stage1_id): Likewise.
  6489. * stage1/stage1.h (COMPAT_VERSION_MINOR): Set to 2.
  6490. (STAGE1_ID_OFFSET): New macro.
  6491. (STAGE1_ID_CHS): Likewise.
  6492. (STAGE1_ID_LBA): Likewise.
  6493. * stage2/cmdline.c (enter_cmdline) [!GRUB_UTIL]: When running
  6494. the command `install' and STAGE1_FILE is stage1_lba, check if
  6495. LBA is supported.
  6496. (enter_cmdline) [GRUB_UTIL]: In the same case above, check only
  6497. if CURRENT_DRIVE is a hard disk and, if so, print a warning
  6498. message, because /sbin/grub cannot detect if LBA is supported or
  6499. not.
  6500. * stage1/stage1_lba.S: Fix a bug that incorrectly assigns the
  6501. segment of buffer address.
  6502. 1999-07-13 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6503. * stage2/boot.c (load_image): When removing "vga=...", memmove
  6504. the length of VGA_END plus one.
  6505. 1999-07-12 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6506. * stage2/bios.c (get_diskinfo): In LBA mode, compute
  6507. TOTAL_SECTORS from DRP instead of GEOMETRY.
  6508. Clear GEOMETRY->FLAGS first.
  6509. * stage2/boot.c (load_image): Fix inverted lines.
  6510. 1999-07-12 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6511. Support Linux video mode selection.
  6512. * stage2/shared.h (LINUX_VID_MODE_OFFSET): New macro.
  6513. (LINUX_VID_MODE_NORMAL): Likewise.
  6514. (LINUX_VID_MODE_EXTENDED): Likewise.
  6515. (LINUX_VID_MODE_ASK): Likewise.
  6516. [!WITHOUT_LIBC_STUBS] (strlen): Likewise.
  6517. (grub_strlen): Declared.
  6518. * stage2/boot.c (load_image): Added Linux video mode selection.
  6519. * stage2/char_io.c [!STAGE1_5] (grub_strlen): New function.
  6520. 1999-07-12 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6521. * stage2/char_io.c (print_error): Print ERRNUM in the format of
  6522. %u instead of %d.
  6523. (convert_to_ascii) [STAGE1_5]: Eliminate the `x' and `d'
  6524. handling code.
  6525. (grub_printf): Declare FORMAT as `const char *'.
  6526. (grub_printf) [STAGE1_5]: Eliminate the `x' and `d' handling
  6527. code.
  6528. (get_based_digit): Removed.
  6529. (safe_parse_maxint): Remove unnecessary `register' prefixes,
  6530. because GCC does better optimization.
  6531. Declare DIGIT as `unsigned int' and calculate the value by more
  6532. compact instructions.
  6533. [!STAGE1_5] (grub_strncat): Declare S2 as `const char *'.
  6534. [!STAGE1_5] (grub_strcmp): Declare S1 and S2 as `const char *'.
  6535. [!STAGE1_5] (grub_strstr): Likewise.
  6536. (grub_memmove): Declare FROM as `const char *'.
  6537. The copy code is replaced with inline assembly code stolen from
  6538. Linux-2.2.2.
  6539. * stage2/shared.h (grub_printf) : Corrected.
  6540. (grub_strncat): Likewise.
  6541. (grub_memmove): Likewise.
  6542. (grub_strstr): Likewise.
  6543. (grub_strcmp): Likewise.
  6544. 1999-07-11 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6545. * stage1/stage1.S (sectors): Change the size to long.
  6546. (heads): Likewise.
  6547. (sector_start): New variable.
  6548. (head_start): Likewise.
  6549. (cylinder_start): Likewise.
  6550. (final_init): Set %si to SECTORS first, and use %si for memory
  6551. references.
  6552. Zero %eax so that the high 16 bits are always zero.
  6553. Set %di to FIRSTLIST - LISTSIZ instead of FIRSTLIST.
  6554. (bootloop): Omit the complex CHS recomputation, and always
  6555. compute them from LBA address instead.
  6556. Call 32bits div instructions instead of 16bits div instructions.
  6557. Update the position where to load data from at the end of this
  6558. loop, instead of the beginning.
  6559. * stage1/stage1_lba.S: New file.
  6560. * stage1/Makefile.am (nodist_pkgdata_DATA): Added stage1_lba.
  6561. (LDFLAGS): New variable.
  6562. (noinst_PROGRAMS): Added stage1_lba.exec.
  6563. (stage1_lba_exec_SOURCES): New variable.
  6564. (%: %.exec): New rule.
  6565. 1999-06-28 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6566. * grub/main.c (main): The third argument for strtoul is changed
  6567. to 0 in the case where an option is OPT_INSTALL_PARTIION.
  6568. Reported by Pavel Roskin <pavel_roskin@geocities.com>.
  6569. 1999-06-27 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6570. * stage2/shared.h (STAGE2_STAGE2_ID): New macro.
  6571. (STAGE2_VER_STR_OFFS): Set to 0xd.
  6572. (STAGE2_ID_STAGE2): New macro.
  6573. (STAGE2_ID_FFS_STAGE1_5): Likewise.
  6574. (STAGE2_ID_E2FS_STAGE1_5): Likewise.
  6575. (STAGE2_ID_FAT_STAGE1_5): Likewise.
  6576. (STAGE2_ID) [!STAGE1_5]: Defined as STAGE2_ID_STAGE2.
  6577. (STAGE2_ID) [STAGE1_5] [FSYS_FFS]: Defined as
  6578. STAGE2_ID_FFS_STAGE1_5.
  6579. (STAGE2_ID) [STAGE1_5] [FSYS_EXT2FS]: Defined as
  6580. STAGE2_ID_STAGE1_5.
  6581. (STAGE2_ID) [STAGE1_5] [FSYS_FAT]: Defined as
  6582. STAGE2_ID_FAT_STAGE1_5.
  6583. (COMPAT_VERSION_MINOR): Set to 1.
  6584. * stage2/asm.S (stage2_id): New variable.
  6585. * stage1/stage1.S: Change the minor version to 1.
  6586. 1999-06-27 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6587. * configure.in (CFLAGS): Set to "-g", since only this flag is
  6588. always sharable.
  6589. (STAGE1_CFLAGS): Set to "-O2", and AC_SUBST this.
  6590. (GRUB_CFLAGS): Likewise.
  6591. (saved_CFLAGS): New variable for temporarily saving CFLAGS.
  6592. (STAGE2_CFLAGS): Set to "-Os" if this option is available,
  6593. otherwise set to "-fno-strength-reduce -fno-unroll-loops",
  6594. and then AC_SUBST this.
  6595. * grub/Makefile.am (AM_CFLAGS): Prepended @GRUB_CFLAGS@.
  6596. * stage1/Makefile.am (AM_CFLAGS): Prepended @STAGE1_CFLAGS@.
  6597. * stage2/Makefile.am (libgrub_a_CFLAGS): Prepened @GRUB_CFLAGS@.
  6598. (STAGE2_COMPILE): Prepended @STAGE2_CFLAGS@.
  6599. * stage2/asm.S (chain_stage2): Pass CURRENT_PARTITION and
  6600. CURRENT_DRIVE, instead of INSTALL_PARTITION and BOOT_DRIVE.
  6601. 1999-06-27 Pavel Roskin <pavel_roskin@geocities.com>
  6602. * configure.in: set CFLAGS to "-Os -g" for compilers which
  6603. understand "-Os" if CFLAGS is not already set. Use
  6604. "-O2 -fno-strength-reduce -fno-unroll-loops -g" for older gcc
  6605. versions.
  6606. 1999-06-25 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6607. * stage2/disk_io.c (attempt_mount) [STAGE1_5]: Set FSYS_TYPE to
  6608. 0, and set it to NUM_FSYS if mount fails.
  6609. (real_open_partition): Call rawread in Stage 1.5 as well.
  6610. 1999-06-24 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6611. * Makefile.am (SUBDIRS): Change the order of the directories so
  6612. that a directory will be made after the dependent directories
  6613. are made. `grub' depends on `stage2', and `docs' depends on
  6614. `grub'. Do not make in parallel.
  6615. * docs/help2man: Copied from help2man-1.012, which contains my
  6616. previous change.
  6617. * docs/grub.8: Regenerated.
  6618. 1999-06-24 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6619. Build process is cleaned up. Stage 2 and Stage 1.5's are all
  6620. built in the directory stage2.
  6621. From Pavel Roskin <pavel_roskin@geocities.com>:
  6622. * Makefile.am (SUBDIRS): e2fs_stage1_5, ffs_stage1_5,
  6623. fat_stage1_5 and shared_src are removed.
  6624. (DISTCLEANFILES): Deleted.
  6625. * configure.in: Call AC_PROG_RANLIB.
  6626. (AC_INIT): Change the argument to stage2/stage2.c.
  6627. (LIBS): Renamed to ...
  6628. (GRUB_LIBS): ... this, and call AC_SUBST for this.
  6629. Our own rules are removed.
  6630. (AC_OUTPUT): e2fs_stage1_5/Makefile, ffs_stage1_5/Makefile,
  6631. fat_stage1_5/Makefile and shared_src/Makefile are removed.
  6632. * docs/Makefile.am (HELP2MAN): The prefix $(srcdir) is removed.
  6633. [GRUB_MAINT]: Prepend $(srcdir) to $(HELP2MAN).
  6634. * e2fs_stage1_5/Makefile.am: Deleted.
  6635. * e2fs_stage1_5/Makefile.in: Likewise.
  6636. * fat_stage1_5/Makefile.am: Likewise.
  6637. * fat_stage1_5/Makefile.in: Likewise.
  6638. * ffs_stage1_5/Makefile.am: Likewise.
  6639. * ffs_stage1_5/Makefile.in: Likewise.
  6640. * grub/Makefile.am (CLEANFILES): Likewise.
  6641. (COMPILE): Likewise.
  6642. (INCLUDES): Likewise.
  6643. (DEP_FILES): Likewise.
  6644. (@SHARED_SRC_RULES@): Likewise.
  6645. (AM_CFLAGS): New variable.
  6646. (grub_LDADD): Set to the library libgrub.a and @GRUB_LIBS@.
  6647. * shared_src/Makefile.am: Deleted.
  6648. * shared_src/Makefile.in: Likewise.
  6649. * shared_src/apic.h: Moved to ...
  6650. * stage2/apic.h: ... here.
  6651. * shared_src/asm.S: Moved to ...
  6652. * stage2/asm.S: ... here.
  6653. * shared_src/bios.c: Moved to ...
  6654. * stage2/bios.c: ... here.
  6655. * shared_src/boot.c: Moved to ...
  6656. * stage2/boot.c: ... here.
  6657. * shared_src/char_io.c: Moved to ...
  6658. * stage2/char_io.c: ... here.
  6659. * shared_src/cmdline.c: Moved to ...
  6660. * stage2/cmdline.c: ... here.
  6661. * shared_src/common.c: Moved to ...
  6662. * stage2/common.c: ... here.
  6663. * shared_src/defs.h: Moved to ...
  6664. * stage2/defs.h: ... here.
  6665. * shared_src/dir.h: Moved to ...
  6666. * stage2/dir.h: ... here.
  6667. * shared_src/disk_inode.h: Moved to ...
  6668. * stage2/disk_inode.h: ... here.
  6669. * shared_src/disk_inode_ffs.h: Moved to ...
  6670. * stage2/disk_inode_ffs.h: ... here.
  6671. * shared_src/disk_io.c: Moved to ...
  6672. * stage2/disk_io.c: ... here.
  6673. * shared_src/fat.h: Moved to ...
  6674. * stage2/fat.h: ... here.
  6675. * shared_src/filesys.h: Moved to ...
  6676. * stage2/filesys.h: ... here.
  6677. * shared_src/freebsd.h: Moved to ...
  6678. * stage2/freebsd.h: ... here.
  6679. * shared_src/fs.h: Moved to ...
  6680. * stage2/fs.h: ... here.
  6681. * shared_src/fsys_ext2fs.c: Moved to ...
  6682. * stage2/fsys_ext2fs.c: ... here.
  6683. * shared_src/fsys_fat.c: Moved to ...
  6684. * stage2/fsys_fat.c: ... here.
  6685. * shared_src/fsys_ffs.c: Moved to ...
  6686. * stage2/fsys_ffs.c: ... here.
  6687. * shared_src/gunzip.c: Moved to ...
  6688. * stage2/gunzip.c: ... here.
  6689. * shared_src/i386-elf.h: Moved to ...
  6690. * stage2/i386-elf.h: ... here.
  6691. * shared_src/imgact_aout.h: Moved to ...
  6692. * stage2/imgact_aout.h: ... here.
  6693. * shared_src/mb_header.h: Moved to ...
  6694. * stage2/mb_header.h: ... here.
  6695. * shared_src/mb_info.h: Moved to ...
  6696. * stage2/mb_info.h: ... here.
  6697. * shared_src/pc_slice.h: Moved to ...
  6698. * stage2/pc_slice.h: ... here.
  6699. * shared_src/shared.h: Moved to ...
  6700. * stage2/shared.h: ... here.
  6701. * shared_src/smp-imps.c: Moved to ...
  6702. * stage2/smp-imps.c: ... here.
  6703. * shared_src/smp-imps.h: Moved to ...
  6704. * stage2/smp-imps.h: ... here.
  6705. * shared_src/stage1_5.c: Moved to ...
  6706. * stage2/stage1_5.c: ... here.
  6707. * shared_src/stage2.c: Moved to ...
  6708. * stage2/stage2.c: ... here.
  6709. * stage1/Makefile.am (pkgdata_DATA): Renamed to ...
  6710. (nodist_pkgdata_DATA): ... this.
  6711. (COMPILE): Deleted.
  6712. (AM_CFLAGS): New variable.
  6713. * stage2/Makefile.am: Completely rewritten from scratch.
  6714. (TESTS): New variable.
  6715. (noinst_SCRIPTS): Likewise.
  6716. (noinst_HEADERS): Likewise.
  6717. (EXTRA_DIST): Set to smp-imps.c and $(noinst_SCRIPTS).
  6718. (noinst_LIBRARIES): New variable.
  6719. (libgrub_a_SOURCES): Likewise.
  6720. (libgrub_a_CFLAGS): Likewise.
  6721. (pkgdata_DATA): Deleted.
  6722. (nodist_pkgdata_DATA): New variable.
  6723. (MOSTLYCLEANFILES): Set to $(noinst_PROGRAMS).
  6724. (COMPILE): Deleted.
  6725. (INCLUDES): Likewise.
  6726. (stage2_exec_LDADD): Likewise.
  6727. (DEP_FILES): Likewise.
  6728. (stage2_exec_SOURCES): Set to the actual source files instead of
  6729. dummy.
  6730. (DISTFILES): Deleted.
  6731. (stage2.exec): Likewise.
  6732. (stage2): Likewise.
  6733. (@SHARED_SRC_RULES@): Likewise.
  6734. (noinst_PROGRAMS): Set to executable formats of Stage 2 and
  6735. Stage 1.5's.
  6736. (STAGE2_LINK): New variable.
  6737. (STAGE2_COMPILE): Likewise.
  6738. (STAGE1_5_LINK): Likewise.
  6739. (STAGE1_5_COMPILE): Likewise.
  6740. (stage2_exec_CFLAGS): Likewise.
  6741. (stage2_exec_LDFLAGS): Likewise.
  6742. (e2fs_stage1_5_exec_SOURCES): Likewise.
  6743. (e2fs_stage1_5_exec_CFLAGS): Likewise.
  6744. (e2fs_stage1_5_exec_LDFLAGS): Likewise.
  6745. (fat_stage1_5_exec_SOURCES): Likewise.
  6746. (fat_stage1_5_exec_CFLAGS): Likewise.
  6747. (fat_stage1_5_exec_LDFLAGS): Likewise.
  6748. (ffs_stage1_5_exec_SOURCES): Likewise.
  6749. (ffs_stage1_5_exec_CFLAGS): Likewise.
  6750. (ffs_stage1_5_exec_LDFLAGS): Likewise.
  6751. (% : %.exec): New rule.
  6752. * stage2/size_test: New file, for checking for the sizes of
  6753. Stage 2 and Stage 1.5's.
  6754. 1999-06-24 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6755. * stage1/stage1.S: Call testb instead of andb when checking if
  6756. the drive is a floppy.
  6757. 1999-06-23 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6758. * grub/asmstub.c [__linux__]: Include linux/fs.h for BLKFLSBUF.
  6759. (grub_stage2): Call sync before and after calling doit.
  6760. (gurb_stage2) [__linux__]: Invalidate buffer caches by BLKFLSBUF
  6761. ioctl.
  6762. * grub/main.c (main): Call sync first. Suggested by Pavel Roskin
  6763. <pavel_roskin@geocities.com>.
  6764. * configure.in: Curses libraries are always checked.
  6765. (--enable-sbin-grub): Deleted. Now /sbin/grub is always built.
  6766. (--enable-maintainer-mode): New option.
  6767. * grub/Makefile.am (EXTRA_PROGRAMS): Deleted.
  6768. (sbin_PROGRAMS): Just set to grub.
  6769. * docs/Makefile.am (man_MANS): New variable.
  6770. (HELP2MAN): Likewise.
  6771. (noinst_SCRIPTS): Likewise.
  6772. (EXTRA_DIST): Add $(man_MANS) and $(noinst_SCRIPTS).
  6773. [GRUB_MAINT]: Define the rule for the /sbin/grub manual.
  6774. * docs/help2man: Copied from texinfo-3.12i.
  6775. (--section): New option to specify which section a manual
  6776. belongs to.
  6777. (opt_section): New variable.
  6778. (section): Likewise.
  6779. * docs/grub.8: Produced by help2man automatically.
  6780. 1999-06-22 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6781. * shared_src/char_io.c (get_cmdline): Add two missing `break's.
  6782. * shared_src/cmdline.c (commands): Add quit.
  6783. (enter_cmdline): Change the return type to cmdline_t, and return
  6784. CMDLINE_OK if successful, otherwise CMDLINE_ERROR if fail.
  6785. (enter_cmdline) [GRUB_UTIL]: Return CMDLINE_ABORT if CUR_HEAP
  6786. contains "quit".
  6787. [!GRUB_UTIL]: Just print an annotation message.
  6788. * shared_src/shared.h (cmdline_t): New enum type.
  6789. (enter_cmdline): Change the return type to cmdline_t.
  6790. (cmain): Remove ``noreturn'' attribute.
  6791. * shared_src/stage2.c (menu_t): New enum type.
  6792. (run_menu): Change the return type to menu_t.
  6793. If enter_cmdline returns CMDLINE_ABORT, then return MENU_ABORT,
  6794. otherwise return MENU_OK.
  6795. (cmain): If enter_cmdline aborts, then break the command-line
  6796. loop and return. If run_menu aborts, then return.
  6797. 1999-06-22 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6798. * shared_src/Makefile.am (EXTRA_DIST): Add bios.c. Reported by
  6799. Pavel Roskin <pavel_roskin@geocities.com>.
  6800. 1999-06-21 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6801. * docs/Makefile.am (html): Deleted.
  6802. (txt): Likewise.
  6803. (EXTRA_DIST): $(txt) and $(html) are removed.
  6804. * docs/boot-proposal.html: Removed.
  6805. * docs/errors.html: Likewise.
  6806. * docs/faq.html: Likewise.
  6807. * docs/grub.html: Likewise.
  6808. * docs/install.html: Likewise.
  6809. * docs/mem64mb.html: Likewise.
  6810. * docs/technical.html: Likewise.
  6811. * docs/using.html: Likewise.
  6812. * docs/PC_partitioning.txt: Likewise.
  6813. * docs/bios_mapping.txt: Likewise.
  6814. * docs/commands.txt: Likewise.
  6815. * docs/embedded_data.txt: Likewise.
  6816. * docs/filesystem.txt: Likewise.
  6817. 1999-06-21 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6818. From Alexander K. Hudek <alexhudek@home.com>:
  6819. * shared_src/disk_io.c (real_open_partition): Check if
  6820. CURRENT_SLICE is equal to PC_SLICE_TYPE_WIN95_EXTENDED as well.
  6821. * shared_src/pc_slice.c (PC_SLICE_TYPE_WIN95_EXTENDED): New
  6822. macro.
  6823. * shared_src/bios.c (biosdisk): Clear the reserved member of DAP.
  6824. 1999-06-08 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6825. Color-menu support based on Peter Astrand
  6826. <altic@lysator.liu.se>'s patch.
  6827. * shared_src/asm.S (nocursor): New function.
  6828. * shared_src/cmdline.c (normal_color): New variable.
  6829. (highlight_color): Likewise.
  6830. (commands): Added "color" command.
  6831. (enter_cmdline): Handle the color command.
  6832. * shared_src/shared.h (normal_color): Declared.
  6833. (highlight_color): Likewise.
  6834. [!GRUB_UTIL] (nocursor): Likewise.
  6835. * shared_src/stage2.c (print_border) [!GRUB_UTIL]: Color the
  6836. menu.
  6837. (run_menu) [!GRUB_UTIL]: Call nocursor, and call set_line with
  6838. the second argument HIGHLIGHT_COLOR when highlighting a line,
  6839. and NORMAL_COLOR when drawing a normal line.
  6840. (cmain): Initialize normal_color and highlight_color. Handle
  6841. the color command in the same way as the command-line
  6842. interface.
  6843. 1999-06-07 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6844. * e2fs_stage1_5/Makefile.am (IMPORTANT_SIZE_LIMIT): Set to 31744.
  6845. * fat_stage1_5/Makefile.am (IMPORTANT_SIZE_LIMIT): Likewise.
  6846. 1999-06-06 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6847. The debug version of Stage 2 is removed.
  6848. * shared_src/cmdline.c: The imps code is now defined if GRUB_UTIL
  6849. is not defined, but not if DEBUG.
  6850. (debug): New global variable.
  6851. (commands): All commands are always enabled, and added "debug".
  6852. (debug_fs_print_func): Defined unconditionally.
  6853. (debug_fs_blocklist_func): If DEBUG is true, then call printf.
  6854. (enter_cmdline): Handle "testload", "read", "fstest",
  6855. "impsprobe" and "displaymem" unconditionally, and added "debug"
  6856. handling.
  6857. [GRUB_UTIL]: If a command is impsprobe, just fails.
  6858. * shared_src/disk_io.c (devread) [!STAGE1_5]: If DEBUG_FS and
  6859. DEBUG are true, then call printf.
  6860. * shared_src/asm.S (patch_code): Defined unconditionally.
  6861. (patch_code_end): Likewise.
  6862. * stage1/stage1.S (firstlist) [!FFS_STAGE1_5]: Increase the
  6863. number of sectors to 90, because Stage 2 is larger than 80
  6864. sectors.
  6865. * configure.in: The option --enable-debug is removed, and do
  6866. not output "stage2_debug/Makefile".
  6867. * Makefile.am (SUBDIRS): stage2_debug is removed.
  6868. * stage2_debug/Makefile.am: Deleted.
  6869. * stage2_debug/Makefile.in: Likewise.
  6870. 1999-06-02 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6871. * grub/main.c (verbose): New variable.
  6872. (read_only): Likewise.
  6873. (OPT_VERBOSE): New macro.
  6874. (OPT_READ_ONLY): Likewise.
  6875. (longopts): Add --read-only and --verbose options.
  6876. (usage): Add the descriptions about --read-only and --verbose.
  6877. (main): Handle OPT_VERBOSE and OPT_READ_ONLY.
  6878. If HOLD and VERBOSE are non-zero, then display the message
  6879. about how to restart /sbin/grub.
  6880. * shared_src/shared.h (verbose) [GRUB_UTIL]: Declared.
  6881. (read_only) [GRUB_UTIL]: Likewise.
  6882. * grub/asmstub.c (hex_dump): New function.
  6883. (biosdisk): In the case where SUBFUNC is
  6884. BIOSDISK_WRITE, check for READ_ONLY and call nwrite if
  6885. READ_ONLY is zero. If VERBOSE is non-zero, display what GRUB
  6886. will try to do.
  6887. (get_diskinfo): Open DEVNAME with the mode O_RDWR if READ_ONLY
  6888. is zero, and attempt to open DEVNAME with the mode O_RDONLY
  6889. regardless of ERRNO if READ_ONLY is non-zero. If VERBOSE is
  6890. non-zero, then display the drive DRIVE and the file DEVNAME.
  6891. * shared_src/disk_io.c (set_device) [STAGE1_5]: Eliminate
  6892. completion code.
  6893. 1999-06-01 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6894. * grub/asmstub.c: Do not use I_AM_VERY_BRAVE any more.
  6895. (grub_stage2): Delete first_scsi_disk and add a variable
  6896. num_hd, which is used for counting how many drives are
  6897. detected.
  6898. Initialize the flags member of each element of disks to -1
  6899. instead of 0, and check if it is equal to -1 instead of 0 when
  6900. close it.
  6901. (get_diskinfo): Treat -1 as non-caching state instead of 0.
  6902. 1999-06-01 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6903. Reported from Klaus Reichl <a8709182@unet.univie.ac.at>:
  6904. * docs/.cvsignore: New file.
  6905. * shared_src/disk_io.c (print_a_completion): New function
  6906. which saves what has been printed to UNIQUE_STRING and printf
  6907. it.
  6908. (unique) [!STAGE1_5]: New variable.
  6909. (unique_string): Likewise.
  6910. (print_completions): Use print_a_completion, and improve the
  6911. completion facility.
  6912. * shared_src/fsys_ext2fs.c (ext2fs_dir) [!STAGE1_5]: Use
  6913. print_a_completion instead of just printf.
  6914. * shared_src/fsys_ffs.c (ffs_dir) [!STAGE1_5]: Likewise.
  6915. * shared_src/fsys_fat.c (fat_dir) [!STAGE1_5]: Likewise.
  6916. * shared_src/shared.h (print_a_completion): Declared.
  6917. * shared_src/cmdline.c (enter_cmdline): Explicitly cast
  6918. int to pointer to char for grub_read.
  6919. * grub/asmstub.c (grub_stage2) [__linux__]: Don't use /dev/fd1.
  6920. Probe 4 IDE drives instead of 2.
  6921. (biosdisk) [__linux__]: Add a prototype for _llseek.
  6922. * shared_src/char_io.c (get_cmdline): Update LPOS and LLEN_OLD
  6923. when the functon print_completion modifies CMDLINE.
  6924. * shared_src/stage2.c (get_line_from_config): Fix LITERAL
  6925. handling.
  6926. 1999-05-25 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6927. * grub/asmstub.c (grub_stage2): Fix a memory leak that FP is
  6928. not closed.
  6929. 1999-05-25 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6930. * grub/main.c: Replace OPT_DISABLE_CONFIG_FILE and
  6931. OPT_DISABLE_CURSES with OPT_NO_CONFIG_FILE and OPT_NO_CURSES
  6932. respectively.
  6933. (longopts): Rename from "disable-config-file" to
  6934. "no-config-file", and from "disable-curses" to "no-curses".
  6935. (usage): Use "grub" instead of ARGV[0], read the standards.
  6936. Change the help message according to the changes above.
  6937. (main): Handle OPT_NO_CONFIG_FILE and OPT_NO_CURSES, instead
  6938. of OPT_DISABLE_CONFIG_FILE and OPT_DISABLE_CURSES.
  6939. 1999-05-21 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6940. * docs/TODO: Moved to ...
  6941. * TODO: ... here.
  6942. * docs/BUGS: Moved to ...
  6943. * BUGS: ... here.
  6944. * docs/COPYING: Removed.
  6945. * docs/Makefile.am (EXTRA_DIST): Get rid of BUGS.
  6946. * Makefile.am (EXTRA_DIST): Set to BUGS.
  6947. 1999-05-17 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6948. * acinclude.m4 (grub_ASM_EXT_C): Do not overrun the command
  6949. shift. Reported by Pavel Roskin <pabel_roskin@geocities.com>.
  6950. 1999-05-14 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6951. * docs/Makefile.am (info_TEXINFOS): Added multiboot.texi.
  6952. * docs/multiboot.texi: New file. From Kunihiro Ishiguro.
  6953. 1999-05-12 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6954. * grub/asmstub.c: Include <errno.h>. Reported by Kunihiro
  6955. Ishiguro <kunihiro@zebra.org>.
  6956. 1999-05-11 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6957. Reported by Brian Brunswick <brian@skarpsey.demon.co.uk>:
  6958. * shared_src/asm.S (start) [STAGE1_5]: Jump to 0x0:0x2000.
  6959. * shared_src/cmdline.c (enter_cmdline): Doesn't check for the jump
  6960. address in stage2. We are not paranoid.
  6961. Add a missing RAW_ADDR macro.
  6962. * shared_src/diskio.c (grub_open): Call setup_part even in stage1.5.
  6963. And, include necessary functions that were eliminated incorrectly.
  6964. * shared_src/char_io.c [STAGE1_5]: Eliminate unnecessary functions
  6965. for stage1.5.
  6966. * grub/asmstub.c (nread): New function. Handle EINTR.
  6967. (nwrite): Likewise.
  6968. (biosdisk) [I_AM_VERY_BRAVE]: When SUBFUNC is BIOSDISK_WRITE, call
  6969. nwrite.
  6970. Reported by Pavel Roskin <pavel_roskin@geocities.com>:
  6971. * shared_src/fsys_ext2fs.c (off_t): Renamed to ...
  6972. (linux_off_t): ... this.
  6973. * shared_src/defs.h (off_t): Renamed to ...
  6974. (mach_off_t): ... this.
  6975. * shared_src/fs.h (BBOFF): Use mach_off_t instead of off_t.
  6976. (SBOFF): Likewise.
  6977. * e2fs_stage1_5/Makefile.am (IMPORTANT_SIZE_LIMIT): Set to 81920.
  6978. * fat_stage1_5/Makefile.am (IMPORTANT_SIZE_LIMIT): Likewise.
  6979. * ffs_stage1_5/Makefile.am (IMPORTANT_SIZE_LIMIT): Set to 7168.
  6980. 1999-05-03 Gordon Matzigkeit <gord@trick.fig.org>
  6981. From Pavel Roskin:
  6982. * shared_src/shared.h: Redeclare.
  6983. * grub/main.c (main): Use strncpy rather than pointer assignment
  6984. to set the config file name.
  6985. * grub/asmstub.c: Make config_file a static array, not a pointer.
  6986. Correct the value of VERSION_STRING.
  6987. 1999-04-10 Gordon Matzigkeit <gord@trick.fig.org>
  6988. * debian/rules (build): Install into /lib instead of /share.
  6989. 1999-05-03 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  6990. Preliminary non-interactive use support.
  6991. * grub/main.c (use_config_file): New variable.
  6992. (use_curses): Likewise.
  6993. (OPT_DISABLE_CONFIG_FILE): New constant.
  6994. (OPT_DISABLE_CURSES): Likewise.
  6995. (OPT_BATCH): Likewise.
  6996. (longopts): Add new options, --disable-config-file, --disable-curses,
  6997. and --batch.
  6998. (usage): Print the help messages about these new options.
  6999. (main): Handle them.
  7000. * grub/asmstub.c (grub_stage2) [HAVE_LIBCURSES]: If ! USE_CURSES,
  7001. fallback non-curses code.
  7002. (stop) [HAVE_LIBCURSES]: Likewise.
  7003. (cls) [HAVE_LIBCURSES]: Likewise.
  7004. (getxy) [HAVE_LIBCURSES]: Likewise.
  7005. (gotoxy) [HAVE_LIBCURSES]: Likewise.
  7006. (grub_putchar) [HAVE_LIBCURSES]: Likewise.
  7007. (getkey) [HAVE_LIBCURSES]: Likewise.
  7008. (checkkey) [HAVE_LIBCURSES]: Likewise.
  7009. (set_attrib) [HAVE_LIBCURSES]: Likewise.
  7010. * shared_src/cmdline.c (enter_cmdline): Do not use getc, but use
  7011. getkey.
  7012. * shared_src/stage2.c (cmain) [GRUB_UTIL]: Check if USE_CONFIG_FILE
  7013. is non-zero or not.
  7014. * shared_src/shared.h (getc): Removed.
  7015. (use_config_file) [GRUB_UTIL]: Add the declaration.
  7016. (use_curses) [GRUB_UTIL]: Likewise.
  7017. 1999-05-02 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  7018. * shared_src/asm.S (biosdisk_standard): Pop %ebp correctly, reported
  7019. by Pavel Roskin <pavel_roskin@geocities.com>.
  7020. 1999-04-25 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  7021. * docs/menu.lst: Rewritten, so that it contains up-to-date
  7022. information and FAQish configuration examples.
  7023. 1999-04-09 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  7024. * shared_src/asm.S (get_diskinfo_floppy): Correct the number of heads
  7025. and the one of cylinders.
  7026. 1999-04-06 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  7027. * grub/asmstub.c (get_diskinfo): Compute the total number of sectors
  7028. for DRIVE.
  7029. * shared_src/asm.S (get_diskinfo_standard): Clear the data segment
  7030. after calling int 0x13. Restore the base pointer after returning
  7031. to protected mode.
  7032. (get_diskinfo_floppy): Likewise.
  7033. * shared_src/bios.c (get_diskinfo): Always set the size of DRP to
  7034. the max size of DRP, regardless of the major version of extensions.
  7035. 1999-04-03 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  7036. * shared_src/shared.h (struct geometry): Declare total_sectors as
  7037. unsigned long instead of unsigned long long, because GRUB represents
  7038. a sector number by 4bytes integer, so it doesn't make sense.
  7039. * shared_src/bios.c (biosdisk) [!NO_INT13_FALLBACK]: Recompute
  7040. TOTAL_SECTORS according to CHS information.
  7041. (get_diskinfo) [DEBUG]: Print the geometry of DRIVE.
  7042. * shared_src/disk_io.c (real_open_partition): Set PART_LENGTH to
  7043. BUF_GEOM.TOTAL_SECTORS.
  7044. 1999-04-01 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  7045. * docs/texinfo.tex: Copied from automake-1.4a.
  7046. * configure.in (SHARED_SRC_RULES): Add bios into shared sources.
  7047. * e2fs_stage1_5/Makefile.am (e2fs_stage1_5_exec_LDADD): Added bios.o.
  7048. * fat_stage1_5/Makefile.am (fat_stage1_5_exec_LDADD): Likewise.
  7049. * ffs_stage1_5/Makefile.am (ffs_stage1_5_exec_LDADD): Likewise.
  7050. * stage2/Makefile.am (stage2_exec_LDADD): Likewise.
  7051. * stage2_debug/Makefile.am (stage2_debug_exec_LDADD): Likewise.
  7052. * shared_src/Makefile.am (EXTRA_DIST): Added bios.c.
  7053. * shared_src/asm.S (biosdisk): Deleted. Now defined in bios.c.
  7054. (get_diskinfo): Likewise.
  7055. (biosdisk_int13_extensions): New function.
  7056. (biosdisk_standard): Likewise.
  7057. (check_int13_extensions): Likewise.
  7058. (get_diskinfo_int13_extensions): Likewise.
  7059. (get_diskinfo_standard): Likewise.
  7060. (get_diskinfo_floppy): Likewise.
  7061. * shared_src/bios.c: New file.
  7062. * shared_src/shared.h (struct geometry): Added new member,
  7063. total_sectors.
  7064. 1999-03-28 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  7065. * shared_src/stage2.c (print_entries): Correctly assign MENU_ENTRIES
  7066. the entries starting from FIRST.
  7067. 1999-03-27 Gordon Matzigkeit <gord@trick.fig.org>
  7068. * Change everything to use memset and memmove instead of bzero and
  7069. bcopy. GNB's Not BSD.
  7070. * shared_src/shared.h (grub_memset): Adapted from grub_bzero.
  7071. (grub_memmove): Adapted from grub_bcopy.
  7072. * grub/asmstub.c (checkkey): Fix unterminated comment.
  7073. * shared_src/char_io.c (grub_printf): Renamed from printf.
  7074. (grub_tolower): Renamed from tolower.
  7075. (grub_isspace): Renamed from isspace.
  7076. (grub_strncat): Renamed from strncat.
  7077. (grub_strstr): Renamed from strstr.
  7078. (grub_bcopy): Renamed from bcopy.
  7079. (grub_bzero): Renamed from bzero.
  7080. From Bradford Hovinen:
  7081. * shared_src/char_io.c (get_cmdline): Add new argument to hide
  7082. password entry.
  7083. (grub_strcmp): New function.
  7084. * shared_src/shared.h (get_cmdline): Fix declaration.
  7085. (grub_strcmp): Declare.
  7086. * shared_src/stage2.c (run_menu): Use get_cmdline with an
  7087. ECHO_CHAR of `*'. This protects against both brute-force and
  7088. sidelong-glance password cracking attempts.
  7089. * grub/main.c (usage): Display defaults for stage2 options.
  7090. * grub/asmstub.c [WITHOUT_LIBC_STUBS]: Renamed from
  7091. NO_REMAPPING_LIBC_FUNCTIONS.
  7092. * grub/main.c: Likewise.
  7093. * shared_src/shared.h: Likewise.
  7094. 1999-03-27 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  7095. * grub/asmstub.c (set_attrib): Use inch and addch, instead of
  7096. chgat, because chgat doesn't work as expected.
  7097. 1999-03-26 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  7098. * grub/asmstub.c (grub_stage2) [HAVE_LIBCURSES]: Call nodelay.
  7099. (checkkey) [HAVE_LIBCURSES]: If getting an input character, then
  7100. ungetch it, because checkkey shouldn't modify the input queue.
  7101. Use file descriptors instead of file pointers to support
  7102. >4GB disks in Linux.
  7103. * grub/asmstub.c (grub_stage2): Call close instead of fclose.
  7104. (get_diskinfo): Call open instead of fopen.
  7105. (biosdisk) [__linux__]: Use _llseek instead of lseek.
  7106. (biosdisk): Call read instead of fread.
  7107. Add options so that the user can specify the config file.
  7108. * grub/Makefile.am (CPPFLAGS): Use -fwritable-strings, because
  7109. grub assumes that all strings resides at the data section.
  7110. * grub/main.c: Define NO_REMAPPING_LIBC_FUNCTIONS before including
  7111. shared.h.
  7112. (OPT_CONFIG_FILE): New macro.
  7113. (OPT_INSTALL_PARTITION): Likewise.
  7114. (OPT_BOOT_DRIVE): Likewise.
  7115. (longopts): Add new options, config-file, install-partition and
  7116. boot-drive.
  7117. (usage): Add the documentation for them.
  7118. (main): Add handling code for OPT_CONFIG_FILE, OPT_INSTALL_PARTITION
  7119. and OPT_BOOT_DRIVE.
  7120. * grub/asmstub.c: Define NO_REMAPPING_LIBC_FUNCTIONS before including
  7121. shared.h.
  7122. (config_file): Make it char * instead of char [].
  7123. (getrtsecs): Return current time instead of 0xff.
  7124. * shared_src/shared.h [NO_REMAPPING_LIBC_FUNCTIONS]: Don't define
  7125. libc-API-compatible function names.
  7126. (config_file): Change the prototype from char [] to char *.
  7127. (grub_putchar): Renamed from putchar.
  7128. 1999-03-25 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  7129. * char_io.c (get_cmdline): Call cl_setcpos even if lpos == llen,
  7130. because ncurses won't update the cursor position.
  7131. * grub/main.c (OPT_HOLD): New macro.
  7132. (longopts): New option --hold.
  7133. (usage): Add the documentation about --hold.
  7134. (main): Set hold if --hold is specified. Wait until cleared.
  7135. 1999-03-22 Gordon Matzigkeit <gord@trick.fig.org>
  7136. * shared_src/cmdline.c (enter_cmdline): Check the return value of
  7137. set_device in the `root' command.
  7138. * shared_src/char_io.c (memcheck): Special-case cur_part_desc and
  7139. reenable memory checking.
  7140. 1999-03-21 Gordon Matzigkeit <gord@trick.fig.org>
  7141. * shared_src/boot.c (load_image): Make sure we use the mapped
  7142. address before actually writing data to memaddr.
  7143. * shared_src/char_io.c (get_cmdline): Only zero-terminate if there
  7144. were leading blanks. This prevents accidental truncation of
  7145. commands.
  7146. * grub/asmstub.c (get_diskinfo): Cache device geometries as well
  7147. as file handles.
  7148. Use the Linux HDIO_GETGEO ioctl to make a better guess at hard
  7149. disk geometries.
  7150. 1999-03-16 Gordon Matzigkeit <gord@trick.fig.org>
  7151. * shared_src/shared.h (geometry_t): Delete typedef, until we
  7152. actually use it.
  7153. 1999-03-16 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
  7154. * shared_src/asm.S (biosdisk): Use a structure for geometry
  7155. instead of a integer.
  7156. (get_diskinfo): Take a pointer to a geometry structure as the
  7157. second argument, and fill a geometry in it. Return 1 if an error
  7158. occurs, otherwise return 0.
  7159. * shared_src/boot.c (bsd_boot): Compute BIOS geometries for BSD.
  7160. * shared_src/cmdline.c (enter_cmdline): Declare dest_geom as
  7161. struct geometry.
  7162. * shared_src/disk_io.c (buf_geom): Declare as struct geometry.
  7163. * shared_src/filesys.h (SECTORS): Deleted.
  7164. (HEADS): Likewise.
  7165. (CYLINDERS): Likewise.
  7166. * shared_src/shared.h (BIOSDISK_FLAG_LBA_EXTENSION): New macro.
  7167. (struct geometry): New structure.
  7168. (buf_geom): Correct the prototype.
  7169. (get_diskinfo): Likewise.
  7170. (biosdisk): Likewise.
  7171. 1999-03-15 Gordon Matzigkeit <gord@trick.fig.org>
  7172. * grub/asmstub.c (doit): Nested function to get a clean stack
  7173. frame while in grub_stage2.
  7174. Use different assembler magic. From OKUJI Yoshinori.
  7175. 1999-03-14 Gordon Matzigkeit <gord@trick.fig.org>
  7176. * shared_src/stage2.c (run_menu): Use A_REVERSE and A_NORMAL
  7177. constants instead of magic numbers.
  7178. * shared_src/shared.h (A_REVERSE): Renamed from ATTR_INVERSE for
  7179. compatibility with curses.
  7180. (A_NORMAL): Renamed from ATTR_NORMAL.
  7181. * shared_src/cmdline.c (enter_cmdline): Change prompt to "grub> ".
  7182. (enter_cmdline): Only abort the boot if we are in a script.
  7183. * shared_src/stage2.c (run_menu): Change prompts to "grub edit> ".
  7184. * shared_src/char_io.c (memcheck): Use RAW_ADDR to compute memory
  7185. locations.
  7186. (get_cmdline): Change the `goto next line' code to account for
  7187. newlines deleting to end of line under curses.
  7188. * Innumerable cleanups to fix warnings. There are still too many
  7189. typecasts in the wrong places (int variables used to hold
  7190. pointers, then casted to a pointer type), but things look better.
  7191. * configure.in (CPPFLAGS): Bump up GCC warnings to -Wall
  7192. -Wmissing-prototypes -Wunused.
  7193. * shared_src/shared.h: Delete stupid declarations, and totally
  7194. rearrange for clarity.
  7195. (inb, outb): Move to cmdline.c, since it's only used there.
  7196. (print_possibilities, fsmax, fsys_table): Move definitions to
  7197. disk_io.c.
  7198. * grub/asmstub.c: Fill in more stubs.
  7199. 1999-03-13 Gordon Matzigkeit <gord@trick.fig.org>
  7200. * shared_src/gunzip.c (border): Rename to bitorder, to resolve
  7201. clash with curses.
  7202. * shared_src/stage2.c (timeout): Rename to grub_timeout.
  7203. * configure.in: Check for curses libraries for use with
  7204. /sbin/grub.
  7205. * shared_src/shared.h (KEY_DELETE): Rename to KEY_DC, for
  7206. compatibility with curses.
  7207. (KEY_INSERT): Rename to KEY_IC.
  7208. (KEY_PGDN): Rename to KEY_NPAGE.
  7209. (KEY_PGUP): Rename to KEY_PPAGE.
  7210. * shared_src/asm.S (asm_getkey): Renamed to getkey.
  7211. * shared_src/char_io.c (getkey): Delete, because it's useless.
  7212. * shared_src/shared.h: Resolve name clashes with libc by renaming
  7213. overlapping functions to have grub_ prefixes, then defining
  7214. macros.
  7215. * grub/asmstub.c (start_stage2): Make some assertions about our
  7216. scratch memory area.
  7217. * shared_src/shared.h (end): Delete declaration.
  7218. (RAW_ADDR, RAW_SEG): Macros to redirect /sbin/grub memory requests
  7219. through grub_scratch_mem.
  7220. * grub/asmstub.c (get_mem_map): Implement, simulating 4MB
  7221. contiguous memory.
  7222. (get_code_end): Implement, simulating with a malloced area.
  7223. grub/asmstub.c (start_stage2): Initialize grub_scratch_mem.
  7224. * shared_src/asm.S (get_mem_map): Some BIOSes expect the high word
  7225. of %eax to be zero.
  7226. (get_code_end): Move this from common.c so that we can stub it out
  7227. in the simulator.
  7228. * debian/rules: Make sure info files end up in /usr/info, not
  7229. /info.
  7230. 1999-03-10 Gordon Matzigkeit <gord@trick.fig.org>
  7231. * shared_src/asm.S (biosdisk): Make LBA mode work correctly. From
  7232. OKUJI Yoshinori.
  7233. Unconditionally define NO_INT13_FALLBACK until we release GRUB
  7234. 0.6. This will help debug any problems with the LBA support until
  7235. then.
  7236. 1999-03-09 Gordon Matzigkeit <gord@trick.fig.org>
  7237. * shared_src/asm.S (biosdisk): Compute location of
  7238. disk_address_packet correctly. From OKUJI Yoshinori.
  7239. 1999-03-08 Gordon Matzigkeit <gord@trick.fig.org>
  7240. * docs/grub.texi: New Texinfo documentation.
  7241. * shared_src/disk_io.c (set_device): First stab at interpreting
  7242. Mach-style partition naming.
  7243. * shared_src/stage2.c (run_menu): Don't say it was a failure if
  7244. enter_cmdline returns nonzero... just wait for a key.
  7245. * shared_src/cmdline.c (enter_cmdline): Return nonzero, and avoid
  7246. the fallback command if we did an install.
  7247. * shared_src/asm.S (_start): New explicit symbol to supress
  7248. warnings.
  7249. * e2fs_stage1_5/Makefile.am (NO_FANCY_STUFF): Renamed to STAGE1_5,
  7250. since that describes this conditional more accurately.
  7251. * fat_stage1_5/Makefile.am: Likewise.
  7252. * ffs_stage1_5/Makefile.am: Likewise.
  7253. * shared_src/asm.S: Likewise.
  7254. * shared_src/char_io.c: Likewise.
  7255. * shared_src/common.c: Likewise.
  7256. * shared_src/disk_io.c: Likewise.
  7257. * shared_src/fsys_ext2fs.c: Likewise.
  7258. * shared_src/fsys_ffs.c: Likewise.
  7259. * shared_src/shared.h: Likewise.
  7260. 1999-03-07 Gordon Matzigkeit <gord@trick.fig.org>
  7261. * configure.in (SHARED_SRC_RULES): Automatically generate
  7262. Makefile dependencies for files in shared_src.
  7263. e2fs_stage1_5/Makefile.am: Use them.
  7264. fat_stage1_5/Makefile.am: Likewise.
  7265. ffs_stage1_5/Makefile.am: Likewise.
  7266. grub/Makefile.am: Likewise.
  7267. stage2/Makefile.am: Likewise.
  7268. stage2_debug/Makefile.am: Likewise.
  7269. * shared_src/disk_inode.h: Fix typo: i_ic shouldn't be defined.
  7270. * shared_src/fsys_ffs.c (block_map): Make static, since this
  7271. function isn't used outside of its defining file.
  7272. * shared_src/disk_io.c [NO_FANCY_STUFF]: Eliminate a whole bunch
  7273. more functions from the stage1.5. From OKUJI Yoshinori.
  7274. * shared_src/fsys_ffs.c: Likewise.
  7275. * shared_src/char_io.c: Likewise.
  7276. 1999-03-05 Gordon Matzigkeit <gord@trick.fig.org>
  7277. * shared_src/char_io.c (getkey): Don't set BUF_DRIVE to -1.
  7278. BUF_DRIVE has nothing at all to do with getkey.
  7279. * shared_src/common.c (err_list): Change description of ERR_GEOM
  7280. to be more informative.
  7281. * Makefile.am (configure): Depend on debian/changelog.
  7282. * configure.in (host_cpu): Make all fully i386-compatible CPUs be
  7283. identified as i386.
  7284. (AM_INIT_AUTOMAKE): Fetch values for PACKAGE and VERSION from
  7285. debian/changelog, so that we only have one file to update.
  7286. * shared_src/asm.S (get_diskinfo): Fix a few bit-twiddling bugs in
  7287. the BIOS extension detection code.
  7288. (biosdisk) [AWARD_INT13_EXTENSIONS]: Preliminary implementation
  7289. of Award's encoding of cylinder bits 10 and 11.
  7290. (biosdisk) [NO_INT13_FALLBACK]: If defined, don't use the standard
  7291. disk interface if the extended interface fails.
  7292. * configure.in: Make sure $(host_cpu) and $(host_vendor) are
  7293. substituted into the Makefile.
  7294. * e2fs_stage1_5/Makefile.am (pkgdatadir): Install files in
  7295. $(datadir)/grub/$(host_cpu)-$(host_vendor).
  7296. * fat_stage1_5/Makefile.am: Likewise.
  7297. * ffs_stage1_5/Makefile.am: Likewise.
  7298. * stage1/Makefile.am: Likewise.
  7299. * stage2/Makefile.am: Likewise.
  7300. * stage2_debug/Makefile.am: Likewise.
  7301. 1999-03-03 Gordon Matzigkeit <gord@trick.fig.org>
  7302. * shared_src/asm.S (biosdisk): Use LBA mode if high nibble of
  7303. GEOMETRY is nonzero.
  7304. (get_diskinfo): Set high nibble of GEOMETRY (0xf0000000) to 1 if
  7305. LBA mode is detected.
  7306. 1999-03-02 Gordon Matzigkeit <gord@trick.fig.org>
  7307. * shared_src/disk_io.c (make_saved_active): Use BIOSDISK_READ and
  7308. BIOSDISK_WRITE.
  7309. * shared_src/cmdline.c (enter_cmdline): Use BIOSDISK_WRITE.
  7310. * shared_src/shared.h (BIOSDISK_SUBFUNC_READ,
  7311. BIOSDISK_SUBFUNC_WRITE): Delete constants.
  7312. * shared_src/asm.S (biosdisk): Change subfunc argument to be
  7313. read=0, write=1.
  7314. * configure.in: Drop redundant AC_PROG_INSTALL. From OKUJI
  7315. Yoshinori.
  7316. 1999-03-01 Gordon Matzigkeit <gord@trick.fig.org>
  7317. * debian/rules (binary-arch): Properly install README.debian.
  7318. * acinclude.m4 (grub_OBJCOPY_ABSOLUTE): Don't forget to move the
  7319. old binary out of the way before reentering the loop.
  7320. (grub_ASM_ADDR32): Delete conftest files after running the test.
  7321. * debian/rules (binary-arch): Remove empty /sbin directory until
  7322. /sbin/grub is installed. Use $(DESTDIR) instead of $(prefix) to
  7323. install files.
  7324. * shared_src/asm.S (version_string): Set the version string from
  7325. the VERSION specified in configure.in.
  7326. * Change all Makefiles into Makefile.ams. Many major build
  7327. environment changes to get Automake/Autoconf working nicely.
  7328. 1999-02-28 Gordon Matzigkeit <gord@trick.fig.org>
  7329. * NEWS: Moved from docs/NEWS.
  7330. * configure.in, acinclude.m4: New files for Autoconf. From OKUJI
  7331. Yoshinori.
  7332. * AUTHORS, INSTALL: New files.
  7333. 1999-02-24 Gordon Matzigkeit <gord@trick.fig.org>
  7334. * stage1/stage1.S (after_BPB): Do a hard disk probe first, so that
  7335. we can work with IDE floppies (like the LS-120).
  7336. * Run GNU Indent on */*.[ch].
  7337. 1999-02-21 Gordon Matzigkeit <gord@trick.fig.org>
  7338. * debian: Add to the distribution, since we maintain the GRUB
  7339. Debian package ourselves.
  7340. * grub/asmstub.c: New file to implement stubbed assembly functions
  7341. under Unix.
  7342. * stage1/Makefile: Delete spurious dependencies on Makefile.
  7343. * stage2/Makefile: Likewise.
  7344. * stage2_debug/Makefile: Likewise.
  7345. * grub/Makefile: Likewise.
  7346. * shared_src/fsys_ext2fs.c (ext2fs_dir): Follow symbolic links
  7347. rather than giving an error.
  7348. * shared_src/common.c (err_list): Use labeled elements to
  7349. associate messages with error codes.
  7350. * shared_src/shared.h: Make error codes into an enumerated type.
  7351. * shared_src/common.c (err_list): Add ERR_SYMLINK_LOOP.
  7352. * shared_src/shared.h: Likewise.
  7353. * shared_src/char_io.c (bcopy): Don't make any assumptions about
  7354. the length of an unsigned long.
  7355. * grub/Makefile: Treat CFLAGS, CPPFLAGS, LDFLAGS according to
  7356. GNU standards.
  7357. * stage2/Makefile: Likewise.
  7358. * e2fs_stage1_5/Makefile: Likewise.
  7359. * fat_stage1_5/Makefile: Likewise.
  7360. * ffs_stage1_5/Makefile: Likewise.
  7361. 1999-02-20 Gordon Matzigkeit <gord@trick.fig.org>
  7362. * docs/index.html: Rename to grub.html, so that we don't hide
  7363. files in this directory from a web browser.
  7364. 1999-02-15 Gordon Matzigkeit <gord@trick.fig.org>
  7365. * Makefile.end (PROGS): Add grub.
  7366. * grub/main.c: New file.
  7367. * grub/Makefile: New directory to contain the stage2 Unix program.
  7368. * shared_src/cmdline.c: Use substring.
  7369. * shared_src/fsys_ext2fs.c: Likewise.
  7370. * shared_src/fsys_fat.c: Likewise.
  7371. * shared_src/fsys_ffs.c: Likewise.
  7372. * shared_src/stage2.c: Likewise.
  7373. * shared_src/shared.h: Delete strcmp, declare substring.
  7374. * shared_src/char_io.c (strcmp): Rename to `substring', because
  7375. this function doesn't behave the same as libc's strcmp.
  7376. 1999-02-14 Gordon Matzigkeit <gord@trick.fig.org>
  7377. * shared_src/shared.h: (addr32, data32): Delete definitions.
  7378. * stage1/stage1.S: Modify to use GAS's new .code16 semantics.
  7379. shared_src/asm.S: Likewise.
  7380. * configure: Test to see if the `addr32' instruction is supported.
  7381. Ian Lance Taylor says that GAS's interpretation of `.code16' has
  7382. changed. Older versions always generated 32-bit code, but
  7383. implicitly inserted addr32 and data32 when .code16 was given.
  7384. Newer versions generate 16-bit code, and require manual addr32 and
  7385. data32 overrides.
  7386. * shared_src/shared.h: Add some assertions to check that buffer
  7387. addresses are properly defined.
  7388. 1999-02-12 Gordon Matzigkeit <gord@trick.fig.org>
  7389. * shared_src/stage2.c (run_menu): Pause if we failed to boot both
  7390. the default and fallback entries.
  7391. * configure: Check to make sure that GAS actually honors .code16
  7392. directives.
  7393. 1999-02-02 Gordon Matzigkeit <gord@trick.fig.org>
  7394. * shared_src/asm.S: Fix typo that called interrupt 0xd (decimal
  7395. 13) instead of 0x13.
  7396. 1999-01-31 Gordon Matzigkeit <gord@trick.fig.org>
  7397. * e2fs_stage1_5/Makefile: Avoid gratuitous dependencies on
  7398. Makefile.
  7399. * fat_stage1_5/Makefile: Likewise.
  7400. * ffs_stage1_5/Makefile: Likewise.
  7401. * Makefile.end (PROGS): Add e2fs_stage1_5, fat_stage1_5, and
  7402. grubinst.
  7403. (distclean): New GNU standard rule.
  7404. 1998-10-23 Gordon Matzigkeit <gord@trick.fig.org>
  7405. * configure: Accept `--host' as a synonym for `--target', and
  7406. accept a non-optional argument as the target name. Join the
  7407. prefix to the tool name with a hyphen.
  7408. * shared_src/disk_io.c (print_fsys_type): Always print the
  7409. partition type.
  7410. * shared_src/stage2.c (run_menu): Check to make sure that the
  7411. fallback entry is nonnegative.
  7412. (run_menu): For consistency, use `e' rather than enter to edit the
  7413. command entry.