flat assembler
Message board for the users of flat assembler.

Index > OS Construction > USB: The Universal Serial Bus

Goto page 1, 2, 3  Next
Author
Thread Post new topic Reply to topic
Mike Gonta



Joined: 26 Dec 2010
Posts: 243
Mike Gonta 27 Jan 2012, 11:17
This book explains, from the beginning, how to write code to communicate with the USB, to be able to write a driver for the
four major types of USB controllers; the UHCI, OHCI, EHCI, and the new xHCI. It explains how to send requests to the
devices attached, to return the device's descriptors to be able to configure and use the devices. Some examples include drives,
mice, keyboards, printers, and external hubs. This is all done without any outside help. In other words, you are communicating
directly with the hardware. You are not relying on an existing operating system's function calls. This book also contains example
descriptions of why your driver may not be working and then gives details on how to fix it. If you are an operating system
development enthusiast, a beginner or a more advanced developer, this is a book for your desk.

The author fully supports this book and upon request and receipt of purchase, will send you an .ISO image with example source
code to retrieve a device's Device Descriptor, plugged in to one of the four controller types, along with other source code
described within the book.
USB: The Universal Serial Bus by Benjamin David Lunt.


Description: USB: The Universal Serial Bus
Filesize: 17.35 KB
Viewed: 11137 Time(s)

USB - The Universal Serial Bus.png



_________________
Mike Gonta
look and see - many look but few see

https://mikegonta.com


Last edited by Mike Gonta on 02 Jun 2015, 08:25; edited 10 times in total
Post 27 Jan 2012, 11:17
View user's profile Send private message Visit poster's website Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20335
Location: In your JS exploiting you and your system
revolution 27 Jan 2012, 11:23
Post 27 Jan 2012, 11:23
View user's profile Send private message Visit poster's website Reply with quote
Mac2004



Joined: 15 Dec 2003
Posts: 314
Mac2004 27 Jan 2012, 19:59
Mike: Thanx for the link. The book looks very promising.

Regards,
Mac2004
Post 27 Jan 2012, 19:59
View user's profile Send private message Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u 27 Jan 2012, 20:38
Cool, thanks Mike, that books a must have and Benjamin David Lunt code is so readable.
Hope they will post to UK.
Post 27 Jan 2012, 20:38
View user's profile Send private message Reply with quote
cvtss2sd



Joined: 30 Sep 2010
Posts: 48
cvtss2sd 28 Jan 2012, 06:41
I order on that site there not finding it on amazon, but it said it'd take 'til friday to get here. I go to amazon again and search for it after ordering, and found it and it says it can get it here by monday at the same price. Considering i can't cancel the order, i feel jipped.
Post 28 Jan 2012, 06:41
View user's profile Send private message Reply with quote
Mac2004



Joined: 15 Dec 2003
Posts: 314
Mac2004 28 Jan 2012, 08:22
For those who are interested in. The book seems be available here.

http://www.amazon.com/USB-Universal-Serial-Bus-8/dp/1468151983/ref=sr_1_1?s=books&ie=UTF8&qid=1327736975&sr=1-1

Regards
Mac2004
Post 28 Jan 2012, 08:22
View user's profile Send private message Reply with quote
cvtss2sd



Joined: 30 Sep 2010
Posts: 48
cvtss2sd 28 Jan 2012, 10:14
Mac2004 wrote:
For those who are interested in. The book seems be available here.

http://www.amazon.com/USB-Universal-Serial-Bus-8/dp/1468151983/ref=sr_1_1?s=books&ie=UTF8&qid=1327736975&sr=1-1

Regards
Mac2004


A little too late for me...
Post 28 Jan 2012, 10:14
View user's profile Send private message Reply with quote
Mike Gonta



Joined: 26 Dec 2010
Posts: 243
Mike Gonta 28 Jan 2012, 18:53

_________________
Mike Gonta
look and see - many look but few see

https://mikegonta.com


Last edited by Mike Gonta on 30 Jan 2012, 23:54; edited 2 times in total
Post 28 Jan 2012, 18:53
View user's profile Send private message Visit poster's website Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u 28 Jan 2012, 21:49
I am waiting until its available from amazon uk, if anyone gets it, can you let me know if all examples are in C or are there some in basm (Benjamin's assembler).
Thanks.
Post 28 Jan 2012, 21:49
View user's profile Send private message Reply with quote
cvtss2sd



Joined: 30 Sep 2010
Posts: 48
cvtss2sd 28 Jan 2012, 21:52
Dex4u wrote:
I am waiting until its available from amazon uk, if anyone gets it, can you let me know if all examples are in C or are there some in basm (Benjamin's assembler).
Thanks.


I'll let you know when i get it next friday.
Post 28 Jan 2012, 21:52
View user's profile Send private message Reply with quote
Mike Gonta



Joined: 26 Dec 2010
Posts: 243
Mike Gonta 28 Jan 2012, 22:25
Dex4u wrote:
I am waiting until its available from amazon uk, if anyone gets it, can you let me know if all examples are in C or are there some in basm (Benjamin's assembler).
Thanks.
Hi Craig,
The ISO (with freedos and the utilies - and the source code for the utilities) is available by email from Ben (with proof of purchase).
All the utilities are in C with one in C++.
license wrote:
* This code is included on the disc that is included with the book
* USB: The Universal Serial Bus, and is for that purpose only. You have the
* right to use it for learning purposes only. You may not modify it for
* redistribution for any other purpose unless you have written permission
* from the author.
*
* You may modify and use it in your own projects as long as they are
* for non profit only. Any project for profit that uses this code
* must have written permission from the author.
email received from Ben wrote:
Mike,

Thanks for the kind words on the newsgroup and forums.
I appreciate it.

I should have a finalized .iso image in a few days. I will
send it then. Would you rather have it .zipped down or
just as with the first one I sent.

Thanks,
Ben

_________________
Mike Gonta
look and see - many look but few see

https://mikegonta.com
Post 28 Jan 2012, 22:25
View user's profile Send private message Visit poster's website Reply with quote
Dex4u



Joined: 08 Feb 2005
Posts: 1601
Location: web
Dex4u 28 Jan 2012, 22:34
Thanks for the info Mike.
Post 28 Jan 2012, 22:34
View user's profile Send private message Reply with quote
Mike Gonta



Joined: 26 Dec 2010
Posts: 243
Mike Gonta 28 Jan 2012, 23:09
I'm currently working on the manual for bootstrap32 - a PM32 USB bootloader with a PM32 native motherboard BIOS interface.
I'm planning on loosely translating the USB: The Universal Serial Bus code to fasmx.
This will solve the chicken or the egg dilemma - how to develop USB while booting from USB.

_________________
Mike Gonta
look and see - many look but few see

https://mikegonta.com
Post 28 Jan 2012, 23:09
View user's profile Send private message Visit poster's website Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4333
Location: Now
edfed 28 Jan 2012, 23:29
future of osdev is there, usb boot with everything to code inside.
say: simple system (fasm ide + documents + code templates + funny asm applications) all on a usb pen with a boot time of less than 3 seconds. Smile
Post 28 Jan 2012, 23:29
View user's profile Send private message Visit poster's website Reply with quote
cvtss2sd



Joined: 30 Sep 2010
Posts: 48
cvtss2sd 29 Jan 2012, 00:36
Don't forget all the other drivers out there that are important to. Drivers for power management, APICs, etc.
Post 29 Jan 2012, 00:36
View user's profile Send private message Reply with quote
edfed



Joined: 20 Feb 2006
Posts: 4333
Location: Now
edfed 29 Jan 2012, 01:05
"documents + code templates" are the drivers in assembly programming.

code template to deal with some functionalities can be a sort of primitive driver. a coder using this package can play with all these templates and documents in order to set drivers for the current machine and os design, assuming the user is not lazy.

then, it is important to set a good documentation like would be this usb book.
Post 29 Jan 2012, 01:05
View user's profile Send private message Visit poster's website Reply with quote
Mike Gonta



Joined: 26 Dec 2010
Posts: 243
Mike Gonta 29 Jan 2012, 15:15

_________________
Mike Gonta
look and see - many look but few see

https://mikegonta.com
Post 29 Jan 2012, 15:15
View user's profile Send private message Visit poster's website Reply with quote
cvtss2sd



Joined: 30 Sep 2010
Posts: 48
cvtss2sd 01 Feb 2012, 00:15
What exactly constitutes as proof of purchase for him?
Post 01 Feb 2012, 00:15
View user's profile Send private message Reply with quote
Mac2004



Joined: 15 Dec 2003
Posts: 314
Mac2004 01 Feb 2012, 18:41
cvtss2sd: Why not to send an email to the author and ask what he accepts as a proof of purchase?

regards
Mac2004
Post 01 Feb 2012, 18:41
View user's profile Send private message Reply with quote
Mike Gonta



Joined: 26 Dec 2010
Posts: 243
Mike Gonta 02 Feb 2012, 08:33
USB: The Universal Serial Bus is now available in Canada on amazon.ca
http://www.amazon.ca/USB-Universal-Serial-Bus-8/dp/1468151983/
The first seller listed is The Book Depository in the UK.

_________________
Mike Gonta
look and see - many look but few see

https://mikegonta.com


Last edited by Mike Gonta on 06 Feb 2012, 09:55; edited 1 time in total
Post 02 Feb 2012, 08:33
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page 1, 2, 3  Next

< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.