Showing posts with label bitcoin. Show all posts
Showing posts with label bitcoin. Show all posts

Saturday, November 30, 2013

Reflashing BFL Jalapeno with UDOO

I funded the UDOO kickstarter a while back and received it a few weeks ago. The bot I was planning to put it on already has a controller, so the UDOO now lives a sad life as a BTC mining hub.
JTAG Port Pinout - Jalapeno has silk screen for 1 and 9

Testing the GPIOs on the UDOO manually
I have a couple of Jalapenos which I overpaid for on eBay and are all sold out due to Black Friday, but the prices are going up on BTC and I figured I could make them slightly more desirable for resale by performing a firmware upgrade. There are guides for performing the upgrade using the AVR-Dragon JTAG and the Raspberry Pi. Since the UDOO claims to be 4-Pi's in one it should be more than capable of running urJTAG using the GPIO cable and reflashing. The compilation took a couple of attempts due to the lack of back-up battery on the UDOO, every time I rebooted the time had an epoch reset and make got stuck in an eternal loop, eventually it settled down. You can also apt-get install urjtag, but that version does not have the GPIO cable.
UDOO GPIO pins used

On the UDOO we have a very large selection of GPIO's to choose from, for convenience I selected 4-near the edge - 88,56,105,89 and 144 for reset. Then used the Pandaboard GPIO toggling guide to get into the /sys/class/gpio file structure and quickly test these pins with an LED. The UDOO GPIO's are at 3.3v so it is safe to use them with the Jalapeno. I also colour coded the cables for future reference. Here is the table of the colours and pins on both the UDOO and the Jalapeno. The reset pin can be toggled using the LED testing method above to reset the board if you get stuck, simply output "low" then "high" to GPIO 144.
Cabling between Jalapeno and UDOO
Function Colour Jalapeno  GPIO
RESET Grey 6 144
TCK Yellow 1 89
TDO Purple 3 104
TMS Orange 5 56
TDI Blue 9 88
GND Black 2 GND
Once everything is connected fire up the Jalapeno and reflash it using the JTAG command chain below. I would really like to gather some statistics on the results of the detect command to see which CPU people have.
urJTAG reflashing of Jalapeno AVR
That's it, a great use for the many UDOO GPIO's go crazy and hook up 10 Jalapenos at once and run a reflashing service or send it to me for a reflash. If you found this useful BTC donations are welcome - 1JGoD1muFP5RiGPUWF12ncYz2WreYk35Rh .

Monday, November 18, 2013

Coming late to the party - Coin mining

Deep in the days of custom built ASIC miner boxes, mining with USB miners and hubs is considered a waste of electricity. Unless of course you are the government and own Three Gorges, still large miners are more efficient. Still I needed to get started and picked up a bunch of now collectors item - Icarus USB miners of eBay. Cgminer makes these really easy to use, with proper modules (in linux) or usb driver substituion with Zadig.

Next comes the fun part, choosing a pool to mine at. All say they are fair and there are so many pay-out algorithms, worth a PhD in economics by themselves for rewarding people for work done. Eligius has the CPPSRB, Bitminter uses PPLNS with donations. Some support all SHA256(SHA256) based coins, both BTC and NMC. Miners practice aggresive pool hopping (and currency hopping) to pick up the one with best luck. Some pools require registration, other just the payout address. All fertile ground for bots to play at.

After playing with BTC for a while I looked into LTC. Since it is still mined on the GPU (with scrypt CGMiner 3.7.2) and has less aggresive speculation. It might also just become irrelevant, but not being mainstream has some allure. Indeed these are the days of panning gold in early California or even closer to home at Eureka. Individuals issuing currency causes some disruption to monetary policy and governance. May be there will a tax put on selling mining ASICs, similar to a mining licence. Overall it is an intersting economic experiment.