Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/
Started by slovenia, December 24, 2013, 03:23:11 pm
Quote from: Sloop on March 12, 2014, 06:34:23 pmThe build script (link, you posted), is that the installation procedure for this image offered here on that topic?
QuoteIf you don't matter, could you -please- explain to me how one should choose between official "Cubian" which is offered through cubian.org and your image posted on this thread? what will be different, better, similar ? How should a user decide if one or other will fit to its needs?
QuoteHow should a user decide if one or other will fit to its needs?
Quote from: Sloop on March 12, 2014, 06:34:23 pmcould you -please- explain to me how one should choose between official "Cubian" which is offered through cubian.org and your image posted on this thread?
Quote from: Sloop on March 12, 2014, 06:34:23 pmwhat will be different, better, similar ?
Quote from: Sloop on March 12, 2014, 06:34:23 pmHow should a user decide if one or other will fit to its needs?
Quote from: Sloop on March 13, 2014, 06:21:55 pmThen I did "chmod +x /root/nand-install.sh" and executed the script with "/root/nand-install.sh". The installation told me to reboot the CT and re-execute that script which I did exactly that way. It took some minutes until it finished, and then I was told by the installation that the CT turns off and I should remove the µSD card. I did it. But when I turn on the CT it doesn't do anything, that means: it does NEITHER boot, NORE show any output on my display. Also no LED lights up except of the red power LED. No reaction.What is wrong here?
root=/dev/mmcblk0p1extraargs=console=tty0,115200 sunxi_no_mali_mem_reserve sunxi_g2d_mem_reserve=0 sunxi_ve_mem_reserve=0 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x720p50 rootwait panic=10 rootfstype=ext4 rootflags=discardscript=/boot/ct-hdmi.binkernel=/boot/uImage
QuoteI have tried what "rose28357" have answered relating to the non-working "nand-install.sh" script. I have installed PhoenixSuit, flashed Lubuntu Server Image into NAND, and afterwards I was able to boot Lubuntu from my NAND. That means it worked. Afterwards I executed your script under /root/nand-install.sh two times (with one reboot between as required) and it worked like a charm. The content of my µSD-card were copied successfully to NAND and I am able to boot without the µSD-card. Maybe you can implement this feauture into your next image release ?
Quotedo you know why "free -h" shows me total RAM amount of 1,9G but I would expect 2,0G of total RAM? See my last posting I wrote with the exact explanation how I tried to adjust /boot/uEnv.ct and how it results that the Cubietruck is not booting any more. Is this a known issue or am I doing something wrong? Maybe you could give us some hints.
QuoteIn your image you have implemented a script which will disable the LEDs at each system boot. This script is called /etc/init.d/disable_leds.sh and is integrated in update-rc.d to start automatically in runlevel 2. Just for testing purposes I have disabled this automatic start by executing this command "update-rc.d disable_led.sh remove". This will prevent the Cubietruck to put the LED brightness to zero. All LEDs lit now again. But I would like to know: Why does the blue LED blink every second two times? Where is a description for LED configuration? I'd like to configure the LEDs so I can see, if there is a network link available, if something is read/written to the µSD-card, and stuff like that. Any clues how to do that?
echo disk-activity > /sys/devices/platform/leds-sunxi/leds/blue:ph21:led1/trigger
Quote- The default disk scheduler is cfq. It implements Completely Fair Queuing and is a non optimal choice for flash based block devices. The common choice is using the noop or deadline scheduler by adding the elevator parameter to the kernel command line (/boot/cmdline.txt). Is it possible to change the elevator in Cubietruck to "noop" ? If so, how? I cannot find a /boot/cmdline.txt or similar, as I know it from my RaspberryPi. - When I enter "mount" or "cat /etc/mtab" I see that the mount option "relatime" is used. I don't need that and you can get more performance when using "noatime,nodiratime" as mount option. But I have realized there is no /etc/fstab file. Where is that and how should I intergrate these options?- I would also like to add some performance tweaks, like used on my RaspberryPi in file /etc/sysctl.conf:
Quotevm.swappiness=10vm.min_free_kbytes = 32768vm.vfs_cache_pressure=50
QuoteIf so, how? I cannot find a /boot/cmdline.txt or similar, as I know it from my RaspberryPi. Where do I have to change this queue elevator setting?
Quotedefault disk scheduler
Quote from: slovenia on March 17, 2014, 04:06:32 pmFor example: you can enable disk (sda) activity with:Code Select Expandecho disk-activity > /sys/devices/platform/leds-sunxi/leds/blue:ph21:led1/trigger
Quote from: sloveniaI use ramlog, ramtmp, ram ... and use "noatime,commit=300" in current test build, even without journaling (just for test).
Quote from: sloveniaJust add elevator=noop to the and of the extraargs in uEnv.txt
QuoteI am missing /etc/fstab. Where is it?
/dev/sda1 /ext ext4 defaults,noatime,commit=600,errors=remount-ro 0 1/dev/mmcblk0p1 / ext4 defaults,noatime,commit=600,errors=remount-ro 0 0
QuoteI am afraid that my Cubietruck won't boot when something goes wrong. How can I protect myself?
console=tty0root=/dev/mmcblk0p1 rootwaitextraargs=console=ttyS0,115200 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve sunxi_fb_mem_reserve=16 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x720p60 panic=10 consoleblank=0 elevator=noopscript=/boot/ct-hdmi.binkernel=/boot/uImage
Quote from: Sloop on March 17, 2014, 05:24:47 pmWell, you're updated uEnv.ct settings worked fine. I did "cd /boot && cp uEnv.ct uEnv.bak" and deleted all the previous content of my uEnv.ct and inserted the new one from your updated link you posted. I rebootet my cubietrcuk and it seemed to work fine. 'free -h' showed me 2.0Gigs of total RAM.Then I re-edited /boot/uEnv.ct and added the text "elevator=noop" to the end of the extraargs line. The complete /boot/uEnv.ct looked like that:Code Select Expandconsole=tty0root=/dev/mmcblk0p1 rootwaitextraargs=console=ttyS0,115200 sunxi_ve_mem_reserve=0 sunxi_g2d_mem_reserve=0 sunxi_no_mali_mem_reserve sunxi_fb_mem_reserve=16 hdmi.audio=EDID:0 disp.screen0_output_mode=EDID:1280x720p60 panic=10 consoleblank=0 elevator=noopscript=/boot/ct-hdmi.binkernel=/boot/uImageI saved and rebooted and now I have the problem that my cubietruck doesn't boot anymore damn it! What should I do know?
# cat /sys/block/mmcblk0/queue/schedulernoop deadline [cfq]# echo noop > /sys/block/mmcblk0/queue/scheduler# cat /sys/block/mmcblk0/queue/scheduler[noop] deadline cfq
block/mmcblk0/queue/scheduler = noop
# cat /sys/block/sda/queue/schedulernoop deadline [cfq]# cat /sys/block/mmcblk0/queue/scheduler[noop] deadline cfq
Quote from: slovenia on December 24, 2013, 03:23:11 pmGigabit ethernet transfer rate is around 50% of its theoretical max rate (hardware or firmware issue)
Quote from: jedie on March 18, 2014, 06:01:33 amFirst: good package here! Seems to work fine... But:Quote from: slovenia on December 24, 2013, 03:23:11 pmGigabit ethernet transfer rate is around 50% of its theoretical max rate (hardware or firmware issue)I have installed samba and test the data rate... It's very, very poor The RAM usage, load average and the current system utilisation is very low. So it the samba data rate to low because of the ethernet bottleneck?Any idea to fix that?