I'll tell you what difficulties I encountered when setting up my Cubieboard, which made me spend a lot of time with red eyes at night. I do not pretend to reveal something new, perhaps for many those things that I will tell are obvious, for the rest it will be a good help when setting up Cubieboard.
So, the main points of the setting are written in the publications
“Cubietruck. Road mini server. Part 2 " and
" Cubietruck. Cozy, home server . I will only talk about the problems that I encountered when setting up my cube as a router with HDD.
Let's start in order.
The first problem was c load average. This parameter did not fall below 1, in the absence of heavy processes, and load cpu at 1%. The fact is that the default configuration of the cube is an erroneous config, in the file script.bin, in the [usbc0] section. Need to change this. I set my system to nand, therefore:
')
sudo -i mount /dev/nanda /mnt cd /mnt bin2fex script.bin script.fex rm script.bin
Open the vim script.fex and search for usbc0 option usb_detect_type = 1, then make it usb_detect_type = 0. Save:
fex2bin script.fex script.bin
Reboot and see that la> = 0;
The second problem was with the transfer of the system from nand to HDD. Following the
"Moving Rootfs From Nandflash To Hard Drive" Guide did not make me feel good. The cube refused to be loaded, went into an endless reboot, I had to roll the axis again. I tried different things: put a hornbeam, try to edit the standard U-boot bootloader. However, the old decision was more correct. Following the instructions in the article
“Cubietruck. Cozy, home server ” I managed to get to boot from the HDD. As a result, the uEnv.txt file looked like this:
console=tty0 extraargs=console=ttyS0,115200 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x720p50 rootwait panic=10 rootfstype=ext4 rootflags=discard nand_root=/dev/sda1
The third problem was with the repositories, which answered 404 in the lubuntu arm. The solution is simple - change the sources.list:
nano /etc/apt/sources.list
And replace with:
The fourth problem was related to configuring the cube as an access point. DNS categorically refused to resolve, helped add directly to /etc/dnsmasq.conf dns provider from /etc/resolv.conf:
dnsmasq.confbind-interfaces
interface = wlan0
dhcp-range = 192.168.1.10,192.168.1.100
server = xxxx (your provider’s DNS)
Just a small little thing. Add the line allow-hotplug wlan0 to / etc / network / interfaces, which will include wi-fi after rebuses.
The problem that is standing now is the unstable work of torrents. The cube behaves very strangely, periodically turns off wifi, cuts speed. While I sit through 10 threads and limit the download speed, but this is a crutch.
That's all. Additional information can be found here
avsnippets.blogspot.ru/2014/03/cubietruck-nas-arduino.html Thank you av0000!