Start the Development Board, Brush machine is certainly indispensable, as we usually brush Android phone. The Development Board also has a lot of firmware to match. For example, Cubieboard3 Cubietruck have Android, Debian,ubuntu and other custom firmware. Cubieboard3 Cubietruck Factory firmware for Android, get hands on the power, with HDMI connected to the TV, no response, later determined to be my HDMI switch problem. Personal more like Debian, to Cubieboard3 cubietruck Download Center to see, various development version of the firmware have AH. Let's take a look at how the firmware is brushed under Windows. Cubieboard3 Cubietruck with 8G NAND flash, plainly, is to bring 8G of hard disk, we can put the firmware in Flash, one is stable operation, and the second is the speed of flash run fast. You can also buy a TF card, brush the firmware in the FT card, and start from the FT card. Cubieboard3 Cubietruck have ready-made hard disk, you do not have to waste money to buy ft card, and then that card in the card slot, stability is not good to say, careless touch loose on the trouble. Brush the firmware into the CUBIEBOARD3 cubietruck NAND Flash to prepare for the job, and follow the example of Debian. 1. Download the firmware, the following address, is a Debian-customized Http://dl.cubieboard.org/software/a20-cubietruck/debian/debieez/ct-debian-nand.img.gz In Baidu network disk made a mirror download: http://pan.baidu.com/s/1c05Vq72 The above two addresses are the same, whichever one is used quickly. After the download is complete, unzip, get a ct-debian-nand.img file, the following brush confidential use this. For more firmware see: http://dl.cubieboard.org/software/a20-cubietruck/ 2. Download the software phoenixsuit in Windows environment for WIN32/64 bit Baidu Network disk: Http://pan.baidu.com/s/1kTuRBHd Official: Http://ubuntuone.com/3Z95tYxkcpvKq5oc2Zdpka After downloading, installation, in fact, is a mobile phone brush machine software. The main interface is as follows 3. Select the firmware of the brush machine. Click "One-click" and click "Browse" below to find the ct-debian-nand.img you just unzipped. 4. To this step, you are ready to start the brush machine, the following method to operate.
- Mini USB cable to find out, a plug on the computer
- Press and hold Cubieboard3 cubietruck fel key, this motherboard only three keys, all have marked, look carefully.
- The other end of the USB is connected to the mini jack of the motherboard
- At this point, the computer will install the driver. If the computer often meddle in the machine, the general driver is installed, the computer automatically detects the OK. If there is no driver, download a driver wizard or something to install, also soon.
- Appear as, you can release the Fel button, click Yes, format, after the completion of the format, the automatic start brush system.
5. The system is being brushed .... The whole process is about 8-10 minutes. I am in the brush Debian, to 88% not move, I thought broken, after a long time, jumped to 95%, so here more wait, brush machine process can not power off. 6. The firmware brush into the success, here can dial the USB cable, connect the mouse keyboard monitor, the other operation went. Static ip:192.168.1.124 of this firmware, login user name: Root/cubie, Password: cubieboard
Wireless WiFi Setup Method
Nano/etc/network/interfaces
Delete the static settings, plus the following configuration
Auto Eth0
Iface eth0 inet DHCP
Auto Wlan0
Iface Wlan0 inet DHCP
WPA-SSID Wireless Name
WPA-PSK Wireless Password
How to brush the firmware: http://www.acyoo.com/archives/3386.html We have already brushed the firmware in the front, and the next step is to connect to the Internet. One: Connect with the monitor using the mouse keyboard. This method is relatively simple, but also the most practical method. Cubieboard3 has VGA and HDMI two kinds of interface, self-can according to their own needs to connect, the following say the specific connection method. 1. Due to the external keyboard, the normal keyboard inserted after no response, is due to insufficient power supply of the motherboard. 2. There is no problem with the mouse, plug on it can be used. 3. The problem of insufficient power supply, you need to buy a USB hub with power, and then plug the keyboard and mouse on this hub. 4. When booting to the login screen, user name: Cubie, Password: Cubieboard. This is only for the firmware that was previously brushed. 5. This will go to the desktop, similar to win below. This version uses the LXDE desktop. After entering the desktop, open the terminal lxterminal on the desktop. 6. Enter sudo ifconfig to see what the IP address is. 7. Modify the static IP address: nano/etc/network/interfaces, open, change to the desired IP, then press ctrl+x, and then press Y to save the shutdown. Add a Dns,echo "nameserver 8.8.8.8" >>/etc/resolv.conf, restart the network:/etc/init.d/networking Restart 8. Restart reboot To this, the basic start-up is completed, at this time can be connected to the network, you can use SSH login in the LAN, more tossing can be done through SSH, Cubieboard can be thrown into the corner. Cubieboard3 Cubietruck space only 8G, only enough to install a system and a few application software, mount the mobile hard disk is necessary, the hand has a 500G of mobile hard disk, so from the hard disk box to take out, ready to spare. This drive is divided into two zones, all in NTFS format, and there are movies and stuff in it. Mount the hard disk on the Cubieboard3 Cubietruck, and do not format, nfts as can be recognized. The following actions are performed under root, and non-root users are added sudo before the command. 1. Install ntfs-3g to enable CB3 to support NTFS
Apt-get Install ntfs-3g
2. View the hard disk partitions that need to be mounted, and with the following command, you can see two partitions, respectively:/DEV/SDA1 and/dev/sda2
Fdisk-l|grep '/DEV/SDA ' | Grep-v ' NAND ' |grep-v ' Disk ' | awk ' {print '} '
If you need to see the complete information, enter FDISK-L directly 3. Create a new mount directory with one hard disk partition for each directory. This is to say, which of the two partitions to hang under the CB3 directory Mkdir-p/mnt/sda1 Mkdir-p/mnt/sda2 4. Enter the Mount command [Email protected]:~# mount-t ntfs-3g/dev/sda1/mnt/sda1 [Email protected]:~# mount-t ntfs-3g/dev/sda2/mnt/sda2 5. Set the boot auto mount. When it is mounted, it will be lost if restarted, so set it to mount automatically each time it is powered on. Open/etc/fstab and add the following two lines.
Nano/etc/fstab
/DEV/SDA1/MNT/SDA1 ntfs-3g Defaults 0 0 /dev/sda2/mnt/sda2 ntfs-3g Defaults 0 0
According to the above process, wrote a one-click Mount Script, no measured, only for reference, can also be modified by themselves.
#!/bin/bash
#Cubieboard3 Cubietruck automatically mount the hard disk script in one click
Apt-get Install ntfs-3g
#列出需要挂载的硬盘分区 mount_dev=$ (fdisk-l|grep '/dev/sda ' | grep-v ' NAND ' |grep-v ' Disk ' | awk ' {print '} ')
Cat $mount _dev
#新建挂载目录, a hard disk partition corresponds to a directory
For i in $mount _dev; Do Echo $i Read-p "Please input mount dir:" Mount_dir Mkdir-p $mount _dir
Mount-t ntfs-3g $i $mount _dir
#强制挂载 #mount-T Ntfs-3g/dev/sdb1/media/usb-o force
#开机自动挂载移动硬盘 echo >>/etc/fstab EOF $i $mount _dirntfs-3g Defaults 0 0 Eof Done
#卸载硬盘的命令如下: #umount/media/usb
Up to now, Cubieboard3 Cubietruck Toss the same, installed a Web server, samba and download tools aria2, basically enough, and some other settings, but also in this separation. This article continues to update ...
1. Modify the time zone. If the time is different from Beijing, an order is done.
Cp-f/usr/share/zoneinfo/asia/shanghai/etc/localtime Reboot
2. Test the speed of NAND flash, write speed 6.4M per second
DD If=/dev/zero of=test.bin bs=64k count=16k Conv=fdatasync
3. Test the speed of the mounted mobile drive
4. Back up the NAND to the SD card. You can back up any Linux distributions in NAND to an SD card, boot from the SD card, and enter the following command
Backup: # dd If=/dev/nand conv=sync,noerror bs=64k | Gzip-c-9 >/nand.ddimg.gz
Recovery: # CD/; Gunzip nand.ddimg.gz; DD if=/nand.ddimg conv=sync,noerror bs=64k Of=/dev/nand
5. Set IPv4 to take precedence over IPv6. When updating the source, if the following error occurs because the source server has IPv6, the machine is connected, and the machine is not IPv6 caused. We set this machine to be IPv4 first on the line.
w:failed to fetch Http://ftp.debian.org/debian/dists/wheezy-updates/contrib/bin
Ary-armhf/packages cannot initiate the connection to ftp.debian.org:80 (2001:61
0:1908:B000::148:12). -Connect (101:network is unreachable) [ip:2001:610:1908
: B000::148:12 80]
Open/etc/gai.conf and find
#precedence:: ffff:0:0/96 100
Remove the previous # and re-apt-get update
Cubieboard Linaro Building Ultra-energy-saving monitoring platform more 0Monitoring
The Cubieboard is an ARM architecture Development Board with 1GHz all Winner A10 Cortex A8 CPU, Mali-400 GPU, 1GB RAM, 4GB storage. is one-fold higher than the Raspberry Pi configuration. Both the Cubieboard and Raspberry Pi can run Android and Linux operating systems. The biggest feature is the high performance of small power, the most suitable for running some long-running programs.
See Raspberry's 34 cool apps before you start Cubieboard, so try using Cubieboard. At present, the Cubieboard data is relatively raspberry less, after all, is the new veneer, but the cubieboard performance accounted for the absolute advantage. Linaro installation SMPlayer 720P very smooth (1080P not tested).
Let's take a look at the 34 cool applications of Raspberry Pi:
- Web Server
- Home automation
- BitTorrent Server
- Web Cam Server
- Weather Stations
- BitCoin Wallet
- Quadcopter
- VoIP PBX
- XMBC Multimedia Center
- Audio book player
- Arduino Shields
- NAS Server
- Apple Time Machine Support
- Tor Relay
- Home VPN Server
- GPS Tracker (with 3G support)
- Advice machine (useless but cool)
- Analog input
- Super computer
- Kindle as Display
- PIC Programmer
- Pentesting/hacking
- Android system
- Check network status
- Solar Data Logger
- Send me to Space
- Coffee
- Make a cool tank
- Electronic photo Frame
- Add WiFi
- OpenSource Kiosk
- Node JS
- Traffic monitoring
- Overclocking
Some scenarios are crazy and not one person can do it. Home to raise three turtle, usually to work no time to observe, so intends to use cubieboard to make a monitoring platform, the goal is to be able to access any Internet environment to observe the situation of three tortoises in the home.
Start!
Hardware conditions: Cubieboard A, Camera (Logitech C270 Of course you can also try your own), transformer one (5V, 1-2A General smartphone USB charger can), wireless network card (Rtl8188cus I use the Mercury 150M Wireless card), TF card ( 8-32GB, Class 10).
System software: Win32diskimager (used to write berryboot to TF card), Berryboot (used to deploy Linaro system), Linaro (this does not download, Berryboot installed can choose from the network installation Linaro Ubuntu system)
1. Install Linaro in TF Open, how to install Linaro Ubuntu system on Cubieboard: http://cubieboard.org/2012/11/15/install-ubuntu-with-berryboot/
2. Configure the wireless card, with wireless only need a power to move freely, if you do a short time monitoring can also be directly with the mobile power. How to configure wireless in Linaro Ubuntu system: http://ubuntuforums.org/showthread.php?t=202834
3. Simple configuration Linaro system, turn off the X desktop (can save a lot of resources): http://blog.csdn.net/liebergott/article/details/7793408
4. Install OpenSSH, you can access your Cubieboard remotely with the command line.
sudo apt-get install Openssh-server
5.SSH login system after sudo su to root see prompt from $ into # after LSUSB look is denied to your USB device, if the camera can be correctly recognized, you can run the following command to install the Universal camera driver
sudo apt-get install Gspca-source
6. Install capture software, with video streaming monitoring bandwidth requirements are too high, so use pictures instead. Russia, said for a long while forgot to say the realization way! Very simple, is to use the software to take pictures, 10 seconds a continuous 10 and then use the script to automatically upload to the external network web space, every 5 minutes, and then the HTML output image is OK.
sudo apt-get install Fswebcam
7. Photo script, you can first try to take a picture
sudo fswebcam-d/dev/video0-r 640x480–font '/usr/share/fonts/truetype/freefont/freemono.ttf ' –line-colour ' #FF000000 ′–title ' Logitech c270′–timestamp '%y-%m-%d%h:%m:%s (%Z) '/home/linaro/1.jpg Sleep 5
8. Upload photos to FTP script, can be appended directly to the photo script (with sudo apt-get install lftp installation lftp)
/usr/bin/lftp << EOF Open 192.168.1.103 User Username password CD photos Put/home/linaro/*.jpg Bye Eof
9. Run Crontab-e to set the script that was written above to schedule the task, 5 minutes at a time.
*/5 * * * */home/linaro/cam.sh
10. Find a favorite jquery album output on the Internet
Look what I'm doing, my tortoise house!. During the new year will bring them home, can only see empty boxes!
|