Advertisement
Guest User

Untitled

a guest
Feb 4th, 2015
821
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.47 KB | None | 0 0
  1. Recommended parts:
  2. -BeagleBone Black: http://www.digikey.ca/product-detail/en/BB-BBLK-000/BB-BBLK-000-REVC-ND/4842211
  3. -LCD4 cape: http://boardzoo.com/index.php/beaglebone-black/bone-lcd4.html#.VNLpQv54rYg
  4. -5v power supply: http://boardzoo.com/index.php/accessories-64/power-supply.html#.VNLp0P54rYg
  5. -Broken and irreparable N64 controller, as long as the plug still works. Can be first or third party, because you'll just be chopping the wire off and using the plug.
  6. -MicroSD card, 4GB minimum
  7.  
  8.  
  9.  
  10.  
  11. [22/06/2014 7:23:40 PM] Herbert Von Karajan: OK for now, do this:
  12. [22/06/2014 7:23:41 PM] Herbert Von Karajan: Download the latest Ubuntu Flasher Img from the link provided here: (make sure you get the img.xz file, not the .sh script file )
  13. http://elinux.org/Beagleboard:Ubuntu_On_BeagleBone_Black#Main_Process
  14.  
  15. For now you could use this link but it may be outdated after a month or so:
  16. https://rcn-ee.net/deb/flasher/trusty/BBB-eMMC-flasher-ubuntu-14.04-console-2014-06-05-2gb.img.xz
  17.  
  18. After downloading it, use 7-zip to extract. Placing the micro SD card into the computer. Use win32diskimager (right click to run as administrator, found at the elinux link) or dd to write the img to the card
  19.  
  20. After that is finished, plug the micro-usb into the bbb, hold down the small button near the sd card slot, and then plug in the power. Wait for the 4 lights to start flashing then you can let go of the small button and walk away. When all 4 lights stay lit up, the thing is done flashing.
  21.  
  22. Ubuntu is now installed on the device. (plug in your usb keyboard and ethernet)
  23. username = ubuntu
  24. password = temppwd (for root also)
  25.  
  26. Get the BBB hooked up with a display (a large one is good for now, or you can use a small one, or better yet ssh into it after you figure out its IP)
  27. [22/06/2014 8:07:14 PM] Herbert Von Karajan: https://rcn-ee.net/deb/flasher/trusty/BBB-eMMC-flasher-ubuntu-14.04-console-2014-06-05-2gb.img.xz
  28. [22/06/2014 8:07:23 PM] Herbert Von Karajan: its this one ^^^
  29.  
  30.  
  31.  
  32. once you're logged in:
  33. [22/06/2014 9:52:33 PM] Herbert Von Karajan: do these things:
  34. [22/06/2014 9:52:33 PM] Herbert Von Karajan: sudo apt-get update
  35. sudo apt-get upgrade
  36. sudo apt-get install vim build-essential libsdl1.2debian libsdl1.2-dev libsdl-ttf2.0 libsdl-ttf2.0-dev xorg
  37. sudo apt-get install --install-recommends jstest* joystick xboxdrv
  38.  
  39.  
  40.  
  41. If you're running windows, download cygwin at https://cygwin.com/install.html and install.
  42.  
  43. To make sure you dont make the same mistake I did andn ow have any ssh commands supported, make sure you do the following:
  44. [22/06/2014 10:34:41 PM] Herbert Von Karajan: get to the select packages window
  45. [22/06/2014 10:35:11 PM] BBQ | NFL | Stef: uncheck hide obsoletE?
  46. [22/06/2014 10:35:14 PM] Herbert Von Karajan: no
  47. [22/06/2014 10:35:24 PM] Herbert Von Karajan: by defalult like nothing is checked lol
  48. [22/06/2014 10:35:31 PM] Herbert Von Karajan: so go to the NET tab
  49. [22/06/2014 10:35:37 PM] Herbert Von Karajan: or treeview item
  50. [22/06/2014 10:36:03 PM] Herbert Von Karajan: or just search for ssh at the top
  51. [22/06/2014 10:36:53 PM] Herbert Von Karajan: check all the ssh stuff
  52. [22/06/2014 10:36:59 PM] Herbert Von Karajan: then install
  53.  
  54.  
  55. [22/06/2014 10:25:15 PM] Herbert Von Karajan: ok
  56. [22/06/2014 10:25:25 PM] Herbert Von Karajan: put that tar file on it
  57. [22/06/2014 10:26:26 PM] Herbert Von Karajan: scp [FOLDER LOCATION]/usb2nintendo.tar ubuntu@[LOCAL IP]:~
  58. [22/06/2014 10:26:30 PM] Herbert Von Karajan: ex:
  59. [22/06/2014 10:26:56 PM] Herbert Von Karajan: scp ./usb2nintendo ubuntu@10.0.0.14:~
  60. [22/06/2014 10:27:23 PM] Herbert Von Karajan: scp = linux command for secure file copy
  61. [22/06/2014 10:27:33 PM] Herbert Von Karajan: so if you can run that from putty
  62. [22/06/2014 10:30:21 PM] BBQ | NFL | Stef: so instead of 10.0.0.14 i can use 192.168.7.2?
  63. [22/06/2014 10:30:27 PM] Herbert Von Karajan: yeah
  64. [22/06/2014 10:30:29 PM] Herbert Von Karajan: uh
  65. [22/06/2014 10:30:40 PM] Herbert Von Karajan: if that is the ip address of the bb
  66. [22/06/2014 10:30:48 PM] BBQ | NFL | Stef: thats the one that got me in on putty
  67. [22/06/2014 10:30:51 PM] BBQ | NFL | Stef: im trying cygwin
  68. [22/06/2014 10:31:22 PM] Herbert Von Karajan: ok
  69.  
  70. (it will most likely be 192.168.7.2, try putting that address in a web browser just to make sure)
  71. [26/06/2014 12:26:20 AM] BBQ | NFL | Stef: i couldnt find the file so i ended up using ssh-keygen -R 192.168.7.2 but it seems to be working okay now
  72.  
  73.  
  74. [22/06/2014 10:38:22 PM] Herbert Von Karajan: usb2nintendo should be in ubuntu's home directory
  75. [22/06/2014 10:38:30 PM] Herbert Von Karajan: the tar file
  76. [22/06/2014 10:38:34 PM] Herbert Von Karajan: extract it with
  77. [22/06/2014 10:38:44 PM] Herbert Von Karajan: tar -xf usb2nintendo.tar
  78.  
  79.  
  80. [23/06/2014 7:32:24 PM] Herbert Von Karajan: cd into usb2nintendo/etc/deviceTree
  81. [23/06/2014 7:32:45 PM] Herbert Von Karajan: then
  82. [23/06/2014 7:32:58 PM] Herbert Von Karajan: sudo cp PRU-GPIO-Enable-00A0.dtbo /lib/firmware
  83. [23/06/2014 7:33:50 PM] BBQ | NFL | Stef: done
  84. [23/06/2014 7:33:59 PM] Herbert Von Karajan: cd back to usb2nintendo
  85. [23/06/2014 7:34:02 PM] Herbert Von Karajan: run
  86. [23/06/2014 7:34:10 PM] Herbert Von Karajan: ./build.sh
  87. [23/06/2014 7:35:20 PM] BBQ | NFL | Stef: done
  88. [23/06/2014 7:35:27 PM] Herbert Von Karajan: any errors?
  89. [23/06/2014 7:35:33 PM] BBQ | NFL | Stef: nope
  90. [23/06/2014 7:35:37 PM] Herbert Von Karajan: ok
  91. [23/06/2014 7:36:01 PM] Herbert Von Karajan: now every time you turn on the BBB you need to do the following until this is put into the startup scripts:
  92.  
  93. The procedure:
  94. Turn on the bbb,
  95. Log in,
  96. Do the following commands:
  97.  
  98. sudo su
  99. export SLOTS=/sys/devices/bone_capemgr.*/slots
  100. cd /lib/firmware
  101. echo PRU-GPIO-Enable > $SLOTS
  102. exit
  103.  
  104. If the person is using an xbox controller, you need to do ***:
  105. alt+F2 or F3 or whatever to get into a different termina
  106. Login, Then run
  107. echo "blacklist xpad" | sudo tee -a /etc/modprobe.d/blacklist.conf
  108. sudo rmmod xpad
  109. xboxdrv --silent
  110. This is assuming you had installed this thing:
  111. sudo apt-get install --install-recommends jstest* joystick xboxdrv
  112.  
  113. Press alt+F1 to get back to your original terminal
  114.  
  115. To run the app, Do:
  116. startx
  117.  
  118. then cd to usb2nintendo/bin/arm, do
  119. sudo ./usb2nintendo
  120.  
  121.  
  122. ***Alternatevely you could should be able to do
  123. xboxdrv --silent &
  124.  
  125. Issues:
  126. A num lock or caps lock button that is turned on will always register as being pressed. This can effect mapping stuff correctly.
  127. Xbox L/R triggers are finicky, have the user push them in a couple times before trying to assign anything.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement