September 20, 2019, 06:35:56 am

News:

Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/


Buster, Xenial and Bionic - updated 6.7.2019

Started by slovenia, December 24, 2013, 03:23:11 pm

Previous topic - Next topic

shider

Quote from: slovenia on May 05, 2014, 01:54:12 am
I am using "non fex method" because you can play with leds on the fly if you like.

I understand. Anyway it would be nice to see disable_led script working properly on cubieboard2.

Quote from: slovenia on May 05, 2014, 01:54:12 am
This is a bit strange.  ??? It would be helpful to find out which module is causing problems.
If you have CB2 then remove wireless module for good anyway ...

I checked this problem once more and it is caused by bcmdhd module.
Using Tapatalk

quickpass

Quote from: slovenia on May 04, 2014, 01:02:35 am
Glad to hear that. No, memory reservation does not affect CLI. In this case you probably installed wrong version in term (VGA/HDMI) or I made some bug on the way :) ? You can change this in /boot/uEnv.ct 

Change:
script=/boot/ct-vga.bin
to
script=/boot/ct-hdmi.bin


I double checked and I sure did get the correct image. uEnv.ct has "script=/boot/ct-hdmi.bin" enabled. It doesn't work maybe because I connect it to my TV instead of a monitor? Well, that's not important so I don't worry about it for now.

I spent hours past weekend trying to install Plex Media Server on my CT running this image but failed (I am new to Linux and this kind of stuff so probably I don't know what I was doing). It doesn't seem anybody has done this for ARM Debian yet. I am surprised not many people in the community are interested in this project.

slovenia

Quote from: jedie on May 05, 2014, 05:55:07 am
If i have a SATA SSD, then i should change /etc/sysfs.conf and set
block/sda/queue/scheduler from cfq to noop, isn't it?


yes

@quickpass
QuoteI double checked and I sure did get the correct image. uEnv.ct has "script=/boot/ct-hdmi.bin" enabled. It doesn't work maybe because I connect it to my TV instead of a monitor? Well, that's not important so I don't worry about it for now.


Hmm. It could be some compatibility / hardware problem? It should work.

QuoteI spent hours past weekend trying to install Plex Media Server


No debian ARM  build, yes ...
http://www.raspberrypi.org/forums/viewtopic.php?t=23753&p=224963
no open source no fun :(
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

Chris0706

Is there an easy way to manually install a desktop enviornment afterwards ?

jedie

Quote from: Chris0706 on May 05, 2014, 05:36:34 pm
Is there an easy way to manually install a desktop enviornment afterwards ?

We should add instrution into the Wiki: https://github.com/igorpecovnik/Cubietruck-Debian/wiki

I'm trying to install a MATE desktop, see: http://www.cubieforums.com/index.php?topic=2462.0


Other question:
Is it possible to create a multi boot?
e.g.: copy /dev/sda1 to /dev/sda2 or create a other rootfs into /dev/sda2
Then mount the sdcard and change in uEnv the part root=/dev/sda1 rootwait to root=/dev/sda2 rootwait

Is it possible?

tstorr

Hi Igor,

first thanks for making available a near ideal image and for describing the build process.  You have saved me a great deal of work!

I'm building my own from you github reopos using the build.sh script and have run into a small problem.  I'm building on ubuntu 12.04 64bit.  I get the "can't delete device /dev/loop0: Device or resource busy root@..." error somewhere around lines 318-328 when the modules are being loaded.

Has anyone any idea what is causing this?

Many thanks in advance,

====
Update just checking that having nautilus open when doing this causes the loop0 deleting error.

====

I've just checked and this does not fix the problem.  More poking around and I think it is failing at line 411-413

lib/firmware/emi62/spdif.fw
lib/firmware/emi62/midi.fw
loop: can't delete device /dev/loop0: Device or resource busy

# sunxi-tools
cd $DEST/sunxi-tools
make clean && make $CTHREADS 'fex2bin' CC=arm-linux-gnueabihf-gcc && make $CTHREADS 'bin2fex' CC=arm-linux-gnueabihf-gcc && make $CTHREADS 'nand-part' CC=arm-linux-gnueabihf-gcc

Trevor

Fuzzlix

Hi Slovenia.

First: Thanks for the great Image. It works well for my Cubietruck.

Only one tiny less important suggestion: Please preinstall less! It makes reading man pages much more conviniant, alowing scrolling backward.

Fuzzlix.

jedie

I would like to have a list of all really needed packages, in a clean install.

I saw the two apt-get line here: https://github.com/igorpecovnik/Cubietruck-Debian/blob/master/build.sh#L260-L266 :
chroot $DEST/output/sdcard /bin/bash -c "apt-get -qq -y install locales"
...
chroot $DEST/output/sdcard /bin/bash -c "apt-get -qq -y install bluetooth lirc alsa-utils netselect-apt sysfsutils hddtemp bc figlet toilet screen hdparm libfuse2 ntfs-3g bash-completion lsof console-data sudo git hostapd dosfstools htop openssh-server ca-certificates module-init-tools dhcp3-client udev ifupdown iproute iputils-ping ntpdate ntp rsync usbutils uboot-envtools pciutils wireless-tools wpasupplicant procps libnl-dev parted cpufrequtils console-setup unzip bridge-utils"

But it seems that cron and iptables are also installed. Isn't it?



The chmod -x /etc/init.d/disable_led.sh from the FAQ is not the best solution. It will be create a error messages while booting.
Other solution than just delete the file?

tstorr

@ Jedie,

to list the installed packages:

dpkg-query -l

my vanilla install had these:

https://docs.google.com/document/d/1ef7qIvrcRU3Ern3dwsg0J40692gQoEs7j8oaxORohJI/pub

LEDs can be controlled using using a boot script as outlined here - I have not tested this though.

http://www.cubieforums.com/index.php?topic=1275.msg16074;topicseen#msg16074

trevor

slovenia

QuoteIs there an easy way to manually install a desktop enviornment afterwards ?


One simple/basic one.

apt-get -y install xorg
apt-get -y install lightdm
apt-get -y install xfce4 xfce4-goodies tango-icon-theme gnome-icon-theme
reboot


QuoteOther question:
Is it possible to create a multi boot?
e.g.: copy /dev/sda1 to /dev/sda2 or create a other rootfs into /dev/sda2
Then mount the sdcard and change in uEnv the part root=/dev/sda1 rootwait to root=/dev/sda2 rootwait

Is it possible?


Yes ... ("copy" = rsync)

@tstorr
QuoteI get the "can't delete device /dev/loop0: Device or resource busy root@..."


It's a known bug and it occurs randomly. I think some proper IF sentence should do the fix - obvious solution was not o.k., no alternatives tested yet.

@Fuzzlix
QuoteOnly one tiny less important suggestion: Please preinstall less! It makes reading man pages much more conviniant, alowing scrolling backward.

@jedie
QuoteI would like to have a list of all really needed packages, in a clean install.


I am adding packages carefully but when I added IR, BT and audio support than we distant from minimal bare bone. We can separate images or better only in the build script to "basic" and "featured" server image?

QuoteBut it seems that cron and iptables are also installed. Isn't it?


Yes. In Debian the cron package is installed as part of the base system, and will be running by default and so some other packages. I was manually adding what was needed. Some packages are automatic installed because they are needed by some other package (dependencies).

QuoteIt will be create a error messages while booting.


What kind of error? Do you mean the one on Cubieboard2 only?
Debian and Ubuntu images with kernel 3.4.110, 4.3.3, 4.4
http://www.armbian.com

jedie

How to change the xserver resolution???

I know the line disp.screen0_output_mode=EDID:1280x720p60 in uEnv, but it seems that is doesn't change the resolution :(



btw. What's about to move some filesystem parts into a RAM-Disk? e.g. /etc/fstab:
tmpfs   /tmp   tmpfs   nosuid   0   0
tmpfs   /var/log   tmpfs   noexec,nodev,nosuid   0   0

Maybe add something like "size=15%", too?

Fuzzlix

Quote from: slovenia on May 06, 2014, 06:04:57 am
@Fuzzlix
QuoteOnly one tiny less important suggestion: Please preinstall less! It makes reading man pages much more conviniant, alowing scrolling backward.

I am adding packages carefully but when I added IR, BT and audio support than we distant from minimal bare bone. We can separate images or better only in the build script to "basic" and "featured" server image?

I see it with the eyes of a bloody beginner. May be, i never understood the saying "bare bone" before hitting your image  ;)
Yeah, keep it like it is.

Fuzzlix

tstorr

Quote from: Fuzzlix on May 06, 2014, 07:36:44 am
Quote from: slovenia on May 06, 2014, 06:04:57 am
@Fuzzlix
QuoteOnly one tiny less important suggestion: Please preinstall less! It makes reading man pages much more conviniant, alowing scrolling backward.

I am adding packages carefully but when I added IR, BT and audio support than we distant from minimal bare bone. We can separate images or better only in the build script to "basic" and "featured" server image?

I see it with the eyes of a bloody beginner. May be, i never understood the saying "bare bone" before hitting your image  ;)
Yeah, keep it like it is.

Fuzzlix


Exactly...  a really small barebones image for others to customise as they need  :)

tstorr

Quote from: slovenia on May 06, 2014, 06:04:57 am


@tstorr
QuoteI get the "can't delete device /dev/loop0: Device or resource busy root@..."


It's a known bug and it occurs randomly. I think some proper IF sentence should do the fix - obvious solution was not o.k., no alternatives tested yet.



I thought about this today - some process must still be using /dev/loop - that is not detected by fuser losetup - probably a process initiated by the build environment.  So...  I installed vanilla ubuntu 12.04 server inside virtialbox, installed the packages required by the install script after changing to a faster repository and ran ./build.sh.  It built the images!

So while I can't categorically say what was locking /dev/loop0, if others have this problem it may be worth firing up a vm and doing a vanilla install of the development environment.

trevor

Cubieklaus

Hello,

it seems that something wrong in the new release.

I tried to compile a specific driver and got some errors:

Datei oder Verzeichnis nicht gefunden.
Fehlercode: 2
Fehlernachricht vom Server : No such file


when make calls build there a two broken links in /lib/modules/3.4.79-sun7i+

115    0 lrwxrwxrwx 1 root root      29 Apr 27 12:42 build -> /home/cubie/image/linux-sunxi

116    0 lrwxrwxrwx 1 root root      29 Apr 27 12:42 source -> /home/cubie/image/linux-sunxi

The folder /home is empty therefore when build is called the call will fail