Michael Decker: Driver Development

Week 2


4 June

  • More coding.
  • Renamed some functions for more consistency.
  • Migrated global state into net_device private data structure.
  • Separated some EEPROM code into a separate routine.
  • Proliferated comments.
  • Encapsulated SCB command routine.

5 June

  • More code, of course. 8-)
  • Shifted defines and enums into a new eepro100.h to reduce the clutter.
  • More renaming to enhance organization & match Intel datasheet.
  • Added error checking into eepro100_poll()
  • Migrated Etherboot packet rx to gXE rx in eepro100_poll()
  • Lost power mid-day; discovered need for more frequent commits & pushes :-/

6 June

I spoke with mdc & mcb30 this morning during our weekly meeting. My commits contained both code changes and formatting changes, intermingled, which made reviewing the code difficult. So the previous commits need to be respun to make for easier review.

I found that my existing commits contained too much variation to be cleaned up without making more fine-grained commits. Thus, I spent the day working on this. I had some trouble with git, mainly in that I managed to spend a few hours making new commits only to realize I had not replaced the spaces with tabs (argh!). So I had to start over. At this point I'm still respinning so I have no commit to post tonight.

This should be a one-time event as SCM and making commits is all new to me. From now on I plan to make fine-grained commits such that my code is reviewable. (As the ultimate goal of my code is a positive review.)

7 June

Spent the day attempting to respin, although it was slow-going as small problems with git added up into redoing things many times. Spent quite some time trying to find the cause of changes git reported that looked like identical lines. Discovered pasting code from Firefox inserts weird line feeds which were getting converted when I reopened the file. Realized git-cherry-pick will create a new commit if it succeeds, but will not create a new commit if it fails. I think. :-? Expect to push soon.

8 June

Reached a point where I wouldn't mind pushing, although more respinning is still pending. However, git spat out a mysterious error:

$ git-push personal drivers4
mdeck@rom.etherboot.org's password:
fatal: invalid number of threads specified (0)
$ git-gc
fatal: invalid number of threads specified (0)
error: failed to run repack

I don't know what caused this to suddenly happen, but now I can not push from any repository or branch. I spent a few hours working with Marty to fix this, but for now we decided I would use a work-around by uploading the repository to rom.etherboot.org and pushing from there, which works.

More commits on the way. –
Solved!!
Shortly later Marty mentioned something in ~/.gitconfig, whereupon I found a setting:

[pack]
        threads = 0

Which I promptly changed to:

[pack]
        threads = 1

Which fixed the problem! I must have accidentally changed that setting and caused such headaches.


Navigation

* [[:start|Home]] * [[:about|About our Project]] * [[:download|Download]] * [[:screenshots|Screenshots]] * Documentation * [[:howtos|HowTo Guides]] * [[:appnotes|Application Notes]] * [[:faq:|FAQs]] * [[:doc|General Doc]] * [[:talks|Videos, Talks, and Papers]] * [[:hardwareissues|Hardware Issues]] * [[:mailinglists|Mailing lists]] * [[http://support.etherboot.org/|Bugtracker]] * [[:contributing|Contributing]] * [[:editing_permission|Wiki Edit Permission]] * [[:wiki:syntax|Wiki Syntax]] * [[:contact|Contact]] * [[:relatedlinks|Related Links]] * [[:commerciallinks|Commercial Links]] * [[:acknowledgements|Acknowledgements]] * [[:logos|Logo Art]]

QR Code
QR Code soc:2008:mdeck:journal:week2 (generated for current page)