130 points · by johncole · 10y ago · 35 comments
I wrote this, just documenting what I was doing as I went along, but you're absolutely right, it could use a branch and install script.
Still, this is a very useful tutorial on how to adapt a RaspPi robotics kit to the CHIP computer.
A side note on the chassis. It's similar - not the same - to the ones I've been using in high school classes for a few years. I've bought mine off amazon/ebay for 15$ and while they're good enough to get started they have several weak points: motors are undersized, power supply is too low for 5V boards, assembly is not so good with parts not fitting well. They're certainly not an example of good design. Unfortunately I couldn't find any better option in the sub 100$ range with two DC motors so I understand why OP chose something similar. Does anybody know of a better chassis for these kind of projets?
https://www.amazon.com/Elegoo-Four-wheel-Ultrasonic-Intellig...
Al these kits and chassis look like a different mix of the same - not so good - parts.
With that said, we[0] build a product called MRK-1 which is a programmable autonomous robot built using a custom board we developed using similar technology to Arduino. Our kits are around $100, very simple to build an operate, and we have a sweet textbook written by some awesome guy named blister[1]. :D
We're geared more towards selling to individual schools and school districts, but if you're interested, I can hook you up with a kit and a digital copy of the programming book.
1: https://www.amazon.com/Introduction-Robot-Programming-Robots...
You program our board using the Arduino IDE and can configure the actual robot any way you want. :)
It's not an indictment of the C.H.I.P., which is a massive effort (although having played around a bit with two I'm sad to say it has too many problems for me to stick with), but more a testament to the Pi.
Steps to set up a Raspberry Pi Zero on WiFi:
1. buy the Pi Zero ($5), MicroSD card ($5), USB WiFi adapter ($10), and USB OTG adapter ($1) (total = ~$21)
2. flash the MicroSD card
3. either:
a. mount the SD card on your computer and figure out which WiFi configuration files to edit
b. buy a serial cable, open a serial console, configure WiFi
c. buy a mini HDMI adapter + mouse/keyboard, connect to a monitor, configure WiFi
Steps to set up a C.H.I.P. on WiFi: 1. buy C.H.I.P ($9)
2. connect to USB, open serial console, configure WiFiI did notice later on that I needed to install libusb drivers for it to work with Windows 10, after installing it to flash, flashing worked but I haven't tried the serial connection yet.
The larger PIs, on the other hand, will boot from a potato battery but will corrupt your SD-card doing so. If you can get away with using a PI-Zero (100mA max draw), you should do so. You can basically use anything to power it.
1. The Allwinner chipset was a bad choice. It's non-free, flaky, underpowered (performs worse than a Pi Zero in my non-scientific tests so far).
2. The use of full fat Debian may contribute to 1. I think the AllWinner SBC is more suited to Android phones than general purpose SBC use, and using full fat Debian as a primary OS is potentially throwing away resources on things like a full fat libc. Yes there's Angstrom Linux as an option, but Angstrom's not really well maintained. Again, not limited to CHIP but definitely including it.
3. The PocketCHIP as interesting as it is, is a ballache compared to using a Pi Zero. For a Pi Zero I can install retropie and be up and running in under 10 mins. For PocketCHIP I have to hand configure each emulator, not all the debian packages work (weird segfaults and errors ahoy) and so on. Again, the PocketCHIP is not the only thing that experiences this, but once you've played Pico-8 for a bit, you start to realise that this is the only game in town for this platform unless you're willing to expend serious effort on work already done elsewhere.
4. The flash mechanism. Good god, where do I begin. Firmware flash updates require Chrome to be installed. That's right, the flash updater is a Chrome extension - a web browser extension. This is a ludicrous choice. A web browser is for browsing the web, not flashing firmware onto devices. There is an alternative route buried deep in the docs, but this is pretty convoluted. To flash the firmware in order to get hardware accelerated CPU support, I had to install chrome on my mac, fail several times thanks to the GUI interface clearing errors after they appear, try again with different combinations of USB hub, swear at the damned thing, then repeat the entire process on Windows.
5. I've alluded to this elsewhere, but the Debian build is broken in places. Various packages break because they don't take the architecture into account. Again, this isn't limited to the CHIP, but includes it.
The bottom line is that a $9 computer has a lot of competition depending on target use. Against a Pi Zero it loses to the incredible Pi Ecosystem. Against a Beaglebone it loses to a completely open design. Against a ZSun Wifi reader or plenty of cheap WRT devices, it loses on performance because of the full fat libc and the tightly specialised nature of the underlying distro.
At best (and without some serious work) the CHIP is destined to be a footnote amongst closed and partially broken Pi clones. At worst the PocketCHIP will be forgotten about in a couple of years. It's a shame, from a hardware perspective PocketCHIP has a lot of potential, being pretty hackable. Sure, the keyboard is terrible, the screen's pretty crappy and the peeling plastic is a nightmare, but it's got huge potential. I just don't see the resources there to bring it up to the same level as the Pi ecosystem.
Again, this isn't just limited to the CHIP - we'll see the same thing with the Onion Omega2, we've seen this with the Pine64 and various Pi type devices.
The fact that this post is about a port of a Pi-specific device sadly says more about CHIP's future than anything else.
2. I think you're right but I don't know what the better answer is -- I don't like the idea of raspbian being the only answer. Maybe they'll motivate Debian to improve in this regard?
3. This is a strange comparison. The PocketCHIP is a bit of a unique offering -- I'm not aware of a self-contained anything based on the pi zero that I can order off the shelf and use out of the box. I'd be delighted to see a counterexample!
4. There are linux-based tools to flash the firmware. I've never actually used the Chrome approach. Here: http://docs.getchip.com/chip.html#flash-chip-firmware
5. Please report these problems! If not to debbugs, at least make a blog post or a gist or something. Get the information out there!
I agree with most of your conclusions, with the caveat that the Pocket CHIP is a unique device, in a world of years-long any-day-now products. It is very refreshing to see someone accomplish what they set out to do, warts and all.
1. The Allwinner chipset is 100% libre at this point [1], and they chose a cheap chip (the R8) so they could not have to subsidize their board unlike the Rpi Zero. If you want a more powerful board, buy an OrangePi PC Plus for $20.
2. "Full Fat" Debian is not very heavy, and you can easily disable what you don't need. The only "fat" is used disk space, which you can easily free up with a quick apt remove.
3. Can't comment much on the PocketCHIP, as I don't own one.
4. You want a secure way to get your OS onto your device, right? Even Signal for Desktop relies on Chrome, its virtually the only universally installable, secure way to distribute an application.
5. I have other A13 based boards and I've yet to encounter package breakage. The architecture is plain jane ARMv7, nothing specifically needs to be changed from the main Debian repos unlike the Raspberry Pi.
>At best (and without some serious work) the CHIP is destined to be a footnote amongst closed and partially broken Pi clones.
Its definitely far from closed, and it has decent software support unlike Pine64 and other failed boards, with the people behind the board writing eMMC drivers and working to build a better BBB. Compared to the BBB it is basically all there at this point.
Whether or not other cheaper boards like the OrangePi Zero wipe it out is yet to be seen though. The Pi ecosystem seems very caustic from what little I've seen with my Pi 3, reminds me of the Android modding community, hence why I've yet to build anything useful with my Pi 3.
[1] - http://linux-sunxi.org/Linux_mainlining_effort#Status_Matrix