Difference between revisions of "EBC Exercise 27 BusyBox"
(→Compiling BusyBox: Added git instructions) |
m (→installing) |
||
(11 intermediate revisions by 3 users not shown) | |||
Line 3: | Line 3: | ||
{{YoderHead}} | {{YoderHead}} | ||
− | == | + | == Getting BusyBox == |
− | === | + | === downloading === |
+ | |||
Get the busybox sources from the busybox site | Get the busybox sources from the busybox site | ||
host$ '''git clone git://busybox.net/busybox.git''' | host$ '''git clone git://busybox.net/busybox.git''' | ||
host$ '''cd busybox''' | host$ '''cd busybox''' | ||
− | host$ '''source ~ | + | |
+ | === compiling === | ||
+ | host$ '''source ~/crossCompileEnv.sh''' | ||
host$ '''make help''' | host$ '''make help''' | ||
host$ '''make defconfig''' | host$ '''make defconfig''' | ||
host$ '''make -j9''' # use -j''X'' for ''X-1'' cores | host$ '''make -j9''' # use -j''X'' for ''X-1'' cores | ||
− | === | + | === configuring === |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | You can now configure BusyBox (In the event that none of the graphical tools work you can use "make config" to use the text based tool as a method of last resort). First be sure you have the graphics libraries loaded. | |
− | host$ ''' | + | host$ '''sudo apt-get install libglade2-dev''' |
− | host$ ''' | + | host$ '''make gconfig''' |
− | + | After saving the configuration changes to update the .config file, it is a simple matter of running make. | |
− | + | host$ '''make -j4''' | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | After saving the configuration changes to update the .config file, it is a simple matter of running make. | ||
− | |||
− | host$ '''make''' | ||
My make took about 1.5 minutes to compile (25 seconds with make -j8!). | My make took about 1.5 minutes to compile (25 seconds with make -j8!). | ||
+ | === installing === | ||
Copy it to your Beagle and test it out. Just typing '''busybox''' will tell you what commands it knows. Try some of them. | Copy it to your Beagle and test it out. Just typing '''busybox''' will tell you what commands it knows. Try some of them. | ||
host$ '''scp busybox root@beagle:.''' | host$ '''scp busybox root@beagle:.''' | ||
beagle$ '''busybox''' | beagle$ '''busybox''' | ||
− | beagle$ '''busybox ls''' | + | beagle$ '''./busybox''' |
+ | beagle$ '''./busybox ls''' | ||
+ | What's the difference between running '''busybox''' and '''./busybox'''? | ||
Try some other commands... | Try some other commands... | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
{{YoderFoot}} | {{YoderFoot}} |
Latest revision as of 11:02, 1 November 2013
Embedded Linux Class by Mark A. Yoder
Getting BusyBox
downloading
Get the busybox sources from the busybox site
host$ git clone git://busybox.net/busybox.git host$ cd busybox
compiling
host$ source ~/crossCompileEnv.sh host$ make help host$ make defconfig host$ make -j9 # use -jX for X-1 cores
configuring
You can now configure BusyBox (In the event that none of the graphical tools work you can use "make config" to use the text based tool as a method of last resort). First be sure you have the graphics libraries loaded.
host$ sudo apt-get install libglade2-dev host$ make gconfig
After saving the configuration changes to update the .config file, it is a simple matter of running make.
host$ make -j4
My make took about 1.5 minutes to compile (25 seconds with make -j8!).
installing
Copy it to your Beagle and test it out. Just typing busybox will tell you what commands it knows. Try some of them.
host$ scp busybox root@beagle:. beagle$ busybox beagle$ ./busybox beagle$ ./busybox ls
What's the difference between running busybox and ./busybox? Try some other commands...
Embedded Linux Class by Mark A. Yoder