LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 12-08-2018, 05:06 PM   #1
dsuratman
Member
 
Registered: Nov 2003
Location: CA, USA
Distribution: Ubuntu 7.10
Posts: 32

Rep: Reputation: 15
Learning Device Driver on Virtual Machine


A casual Linux user here. I know a little bit on how to use CLI and have basic understanding in shell scripts, c programming etc..

I would like to learn more about Linux System-level and Device Drivers development, so I started reading a book on Linux Device Drivers. Right now I don't have money to buy a system I can use to run some of examples. I do have a laptop with VirtualBox installed that I use to run Ubuntu. However, It looks like the book I'm reading utilizes serial port as an example, so it looks like without an actual hardware my learning experience won't be optimal.

I just want to check to see if anyone has ever learned Linux system level/device drivers programming using VirtualBox.

I have an old laptop with 4GB RAM that is currently running Windows 10. I'm thinking to install Ubuntu on it, but for learning device driver, maybe a desktop is better? If yes, any recommendation on system setup/configuration you guys can share that would be great!

Thanks a lot!
 
Old 12-09-2018, 11:14 AM   #2
jsbjsb001
Senior Member
 
Registered: Mar 2009
Location: Earth? I would say I hope so but I'm not so sure about that... I could just be a figment of your imagination too.
Distribution: CentOS at the time of this writing, but some others over the years too...
Posts: 2,316

Rep: Reputation: 1041Reputation: 1041Reputation: 1041Reputation: 1041Reputation: 1041Reputation: 1041Reputation: 1041Reputation: 1041
While this isn't exactly your question, it might inform you about making Linux drivers.

Personally, I'd say a driver is a driver regardless of whether it's a laptop or desktop machine you're talking about.

Virtualbox just simulates a real machine, so for all intensive purposes, the OS still works in the same way - it's just not running on a "real" machine.
 
Old 12-09-2018, 06:34 PM   #3
michaelk
Moderator
 
Registered: Aug 2002
Posts: 17,934

Rep: Reputation: 2453Reputation: 2453Reputation: 2453Reputation: 2453Reputation: 2453Reputation: 2453Reputation: 2453Reputation: 2453Reputation: 2453Reputation: 2453Reputation: 2453
I agree with what jsbjsb001 posted.

It depends on what the example driver is trying to illustrate i.e. is it trying to access the hardware pins or just send characters. If just sending characters you probably can get by with configure the VB guest serial port for a tcp connection and then connect it to PuTTy raw connection on the host or pipe it to a file.

Otherwise you probably need a real hardware serial port. These days real serial port hardware is not common on desktops or laptops anymore so I might consider skipping and moving to the next one. I would of thought a Hello World driver would be the first example...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to : Open Virtual Machine Manager to create a new virtual machine BKChicago Linux - Newbie 2 11-08-2016 10:48 PM
LXer: Machine Learning, Deep Learning 101 LXer Syndicated Linux News 0 07-20-2016 12:00 PM
Looking For A Bootable OS + Virtual Machine Combo - Bootable Virtual Machine OS Help angelbabycry Linux - Newbie 7 05-08-2015 09:36 PM
Is base memory of virtual machine used when virtual machine is not running? ravisingh1 Linux - Virtualization and Cloud 3 04-09-2013 04:41 AM
Running virtual pc files in a virtual machine in linux ... preferably virtual box biharibong Linux - Software 4 01-21-2009 02:04 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 08:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration