Highlights of setting up Cubieboard with linux

I’ll tell you what difficulties I encountered when setting up my Cubieboard, which forced me to spend a lot of time with red eyes at night. I do not pretend to disclose something new, perhaps for many those things that I will tell are obvious, for others it will be a good help when setting up Cubieboard.

So, the main points of customization are written in Cubietruck. Travel mini server. Part 2 " and " Cubietruck. A 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 cpu load in 1%. The fact is that an erroneous config is registered in the cube by default, in the script.bin file, in the [usbc0] section. It needs to be changed. I put my system in nand, therefore:

sudo -i
mount /dev/nanda /mnt
cd /mnt
bin2fex script.bin script.fex 
rm script.bin

Open vim with script.fex and look for the usb_detect_type = 1 option in usbc0, then make it usb_detect_type = 0. Save:

fex2bin script.fex script.bin

Reboot and see that la> = 0;

The second problem was the transfer of the system from nand to the HDD. Following the guide “Moving Rootfs From Nandflash To Hard Drive” I was not brought to good. The cube refused to load, 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 loader. However, the old solution turned out to be more correct. Following the instructions in the article Cubietruck. Cozy, home server ” I managed to get 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 repositories that responded 404 in lubuntu arm. The solution is simple - change sources.list:

nano /etc/apt/sources.list

And replace with:

sources.list
deb old-releases.ubuntu.com/ubuntu raring main universe restricted multiverse
deb-src old-releases.ubuntu.com/ubuntu raring main universe restricted multiverse
deb old-releases.ubuntu.com/ubuntu raring-security main universe restricted multiverse
deb -src old-releases.ubuntu.com/ubuntu raring-security main universe restricted multiverse
deb old-releases.ubuntu.com/ubuntu raring-updates main universe restricted multiverse
deb-src old-releases.ubuntu.com/ubuntu raring-updates main universe restricted multiverse
deb old-releases.ubuntu.com/ubunturaring-backports main restricted universe multiverse
deb old-releases.ubuntu.com/ubuntu raring-backports main restricted universe multiverse
deb old-releases.ubuntu.com/ubuntu raring-proposed main restricted universe multiverse
deb-src old-releases. ubuntu.com/ubuntu raring-proposed main restricted universe multiverse


The fourth problem was related to configuring the cube as an access point. DNS categorically refused to resolve, adding the provider dnsov from /etc/resolv.conf directly to /etc/dnsmasq.conf helped:

dnsmasq.conf
bind-interfaces
interface = wlan0
dhcp-range = 192.168.1.10,192.168.1.100
server = xxxx (your provider's DNS)


Also a small trifle. Add the line allow-hotplug wlan0 to / etc / network / interfaces, which will enable wi-fi after reboots.

The problem now is the unstable operation of torrents. The cube behaves very strange, periodically turns off wifi, cuts the speed. While I'm sitting in 10 threads and limiting the download speed, but this is a crutch.

That's all. Further information can be found here avsnippets.blogspot.ru/2014/03/cubietruck-nas-arduino.html Thank you av0000!

Also popular now: