CubieBoard Forum

Pre-Made Images => Images => Cubieboard v2 Images (A20 Based) => Topic started by: patwood on September 05, 2013, 11:15:36 am

Title: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 05, 2013, 11:15:36 am
I have uploaded a new CUBIUNTU for the A20 with the latest 3.4.43+ kernel.  Mali GPU is working in this one, HW video decode isn't.

As before passwords are root/root linaro/linaro.

Full distro: http://dl.cubieforums.com/patwood/Cubiuntu0.6-a20.img.gz http://dl.cubieforums.com/patwood/Cubiuntu0.6.4-a20.img.xz http://dl.cubieforums.com/patwood/Cubiuntu0.6.5a-a20.img.xz.
3.4.43 A20 kernel with lots of modules: http://dl.cubieforums.com/patwood/A20-kernel-3.4.43.tar.gz 3.4.61 A20 kernel with even more modules: http://dl.cubieforums.com/patwood/A20-kernel-3.4.61.tar.gz.

Edit: new version uploaded that supports AXP poweroff and audio.  Also has netplug installed so auto up/down of eth0 works: http://dl.cubieforums.com/patwood/Cubiuntu0.6.4-a20.img.xz.  You'll need unxz to decompress it; xz image is much smaller than gzip.

Edit2: Even newer version referenced above.

Cubiuntu0.6.5a-a20 has been discontinued and removed from the ftp site; Cubiuntu0.6.5b-a20.img should be considered obsolete and deprecated.  Cubiuntu0.6.5c-a20.img is now the latest version: http://dl.cubieforums.com/patwood/Cubiuntu0.6.5c-a20.img.xz
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: Billa on September 05, 2013, 11:42:13 am
Thanks Pat, downloading now for some testing this evening. I just really hope that 1080p works.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 05, 2013, 02:26:44 pm
Quote from: Billa on September 05, 2013, 11:42:13 am
Thanks Pat, downloading now for some testing this evening. I just really hope that 1080p works.

It's a very recent kernel, but I didn't see anything since the Fedora release that would impact HDMI.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: sanyigz on September 05, 2013, 03:56:50 pm
why? what's wrong with 1080p?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: Billa on September 05, 2013, 05:59:52 pm
Woop woop 1080p working like a charm!  :D
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: sanyigz on September 05, 2013, 06:18:03 pm
I suppose this is a nand image again.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 05, 2013, 06:37:00 pm
Quote from: sanyigz on September 05, 2013, 06:18:03 pm
I suppose this is a nand image again.

No this is an SD image (as far as I know, all the CUBIUNTU images on this site are SD card images).  Writing it to nand isn't very hard, though.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: ikeeki on September 05, 2013, 06:40:23 pm
Great job¡¡¡ at least¡¡
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: DigitalDaz on September 05, 2013, 07:18:34 pm
Not in anyway being critical here but is this the sort of standard of images for the cubieboard2?

No DHCP, none of my personal videos on youtube will play, thats just the couple of things I immediately found. I'm assuming the my youtube videos thing is format related.

It seems very fast.

I'm very new to cubieboard, got the first last week and just today the cubieboard2.

Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 05, 2013, 11:17:53 pm
Video playback is not working on any Linux distros for the a20.  This is a problem cubietech knows about and has passed along to allwinner, so in one sense, yes this is the standard for cubieboard2 Linux distributions for now. If you require video, you're stuck with android for now.

As for dhcp, it should be enabled, but I have noticed the Ethernet not starting automatically in cases I have yet to identify.  If that's still happening, add 'ifup eth0' to /etc/rc.local.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 06, 2013, 12:40:33 am
Quote from: patwood on September 05, 2013, 11:17:53 pm
If that's still happening, add 'ifup eth0' to /etc/rc.local.

Ignore that suggestion.  You need to install netplug.  Either do "apt-get install netplug" or if you don't have a working internet connection on the cubieboard (cause the ethernet isn't up  :) ), you can download the package here: http://dl.cubieforums.com/patwood/netplug_1.2.9.2-1_armhf.deb (http://dl.cubieforums.com/patwood/netplug_1.2.9.2-1_armhf.deb), copy it onto the SD card, and do "dpkg -i netplug_1.2.9.2-1_armhf.deb".

Not sure why allow-hotplug is working in /etc/network/interfaces on A10 but not on A20; maybe it depends on some event that's not getting generated by the A20 kernel, but netplug fixes this.

Edit: latest upload has netplug already installed; eth0 should come up automatically now any time it's plugged in.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: DigitalDaz on September 06, 2013, 03:52:45 am
Thanks for your suggestions.

I think this little board is going to satisfy my needs regardless anyway. I only want to be able to run a few amateur radio applications for one project.

For some time I have been trying to find a device like this that I can use as a small VoIP PBX that will serve up to 10 users, I think I have just found it!! :) That application will be running headless anyway.

Thanks to all for the great work already achieved with this device.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: sanyigz on September 06, 2013, 08:43:26 am
Wow this is the fastest distribution for A20.

As i see screen resolution still can't be set from os, just by editing script.bin. Is this true?

Yesterday i've ran the off script included, it stopped some services, and hang at "stopping V compatibility something" with blinking cursor, i needed to press the power button on cubie manually. Is this normal?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 06, 2013, 08:55:44 am
Quote from: sanyigz on September 06, 2013, 08:43:26 am
Wow this is the fastest distribution for A20.

As i see screen resolution still can't be set from os, just by editing script.bin. Is this true?

Yesterday i've ran the off script included, it stopped some services, and hang at "stopping V compatibility something" with blinking cursor, i needed to press the power button on cubie manually. Is this normal?

Yes. It appears this kernel can't talk to the power chip to shut off power.  Watching the serial port shows it does go through the entire shutdown process, though.

Edit: For me, the "System halted" message appears on the serial port about 5 seconds after the "Stopping System V Iniitialization compatibility" message on the HDMI console.

Edit 2: The latest version now powers off properly from the "off" script/GUI button.  Also, you should be able to set the screen resolution in uEnv.txt like this:

extraargs=disp.screen0_output_mode=1280x720p60
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: Uwes on September 06, 2013, 10:29:27 am
Quote from: sanyigz on September 06, 2013, 08:43:26 am
Wow this is the fastest distribution for A20.

Wow, this really is the fastest and configured very well. Thanks patwood. :)
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: sanyigz on September 06, 2013, 12:05:12 pm
There is no sound coming from hdmi, nor any real audio output devices are listed in the pulseaudio settings. Why is that?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 07, 2013, 12:06:51 am
Quote from: sanyigz on September 06, 2013, 12:05:12 pm
There is no sound coming from hdmi, nor any real audio output devices are listed in the pulseaudio settings. Why is that?

I haven't done anything with audio or video on the A20 (mainly for lack of a video decoder) at all.  Perhaps you need an /etc/asound.conf file?  I've mainly used vlc for video audio/decoding on the CB1, and bypassed pulseaudio completely (I used alsa directly).

I'll poke around a bit this weekend to see if I can get audio working on mine.

What do you have in /proc/asound/cards?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 07, 2013, 12:23:57 am
Quote from: patwood on September 07, 2013, 12:06:51 am
Quote from: sanyigz on September 06, 2013, 12:05:12 pm
There is no sound coming from hdmi, nor any real audio output devices are listed in the pulseaudio settings. Why is that?

I haven't done anything with audio or video on the A20 (mainly for lack of a video decoder) at all.  Perhaps you need an /etc/asound.conf file?  I've mainly used vlc for video audio/decoding on the CB1, and bypassed pulseaudio completely (I used alsa directly).

I'll poke around a bit this weekend to see if I can get audio working on mine.

What do you have in /proc/asound/cards?


Well, that was easy!  CONFIG_SOUND_SUNXI wasn't set in the kernel config.  I'll upload a new kernel with this enabled.

Edit: latest upload now supports sound.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: pacopad on September 07, 2013, 03:18:54 am
Hi Patwood,

Which sources did you used to compile this kernel ?

Thank you
Pacopad
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: mihu on September 07, 2013, 07:29:18 am
Hi Patwood,

is this patch for the touchscreen controller already included in your kernel?
https://groups.google.com/forum/#!topic/linux-sunxi/-mOm162syQ4

After

modprobe sun4i-ts

dmesg gives me

sun4i-ts sun4i-ts: Cannot request keypad IRQ
sun4i-ts.c: sun4i_ts_probe failed!
sun4i-ts: probe of sun4i-ts failed with error -22
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 07, 2013, 10:36:00 am
Quote from: mihu on September 07, 2013, 07:29:18 am
Hi Patwood,

is this patch for the touchscreen controller already included in your kernel?
https://groups.google.com/forum/#!topic/linux-sunxi/-mOm162syQ4

After

modprobe sun4i-ts

dmesg gives me

sun4i-ts sun4i-ts: Cannot request keypad IRQ
sun4i-ts.c: sun4i_ts_probe failed!
sun4i-ts: probe of sun4i-ts failed with error -22

No, that patch wasn't integrated into the main repository until last night.

Edit: this patch is now in the latest upload.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 07, 2013, 10:38:41 am
Quote from: pacopad on September 07, 2013, 03:18:54 am
Hi Patwood,

Which sources did you used to compile this kernel ?

Thank you
Pacopad

https://github.com/linux-sunxi/linux-sunxi/tree/stage/sunxi-3.4 as of noon EST yesterday (this is the last commit in my clone: c27e1d97d0465c6a643cb3b89b693169b4052ced).
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 08, 2013, 10:18:51 pm
New CUBIUNTU 0.6-04 0.6-05 uploaded; supports poweroff command (HW power off), audio, and eth0 hotplug.  Also has latest 3.4.75 kernel.

Download is here: http://dl.cubieforums.com/patwood/Cubiuntu0.6.5c-a20.img.xz (http://dl.cubieforums.com/patwood/Cubiuntu0.6.5c-a20.img.xz), A20 kernel only here: http://dl.cubieforums.com/patwood/A20-kernel-3.4.75.tar.gz (http://dl.cubieforums.com/patwood/A20-kernel-3.4.75.tar.gz).  Note that I also uploaded a new A10 kernel with all the same config options (other than SMP) and drivers.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: Billa on September 09, 2013, 01:24:34 pm
One question, do I need to replace the script.bin while switching kernels? Or can I keep the uBoot, script.bin and uImage that are already in place?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: Ascomar on September 09, 2013, 01:45:59 pm
You can keep uboot and script.bin. uImage IS the kernel; so you have to replace it with the new image.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: Billa on September 09, 2013, 03:49:56 pm
Quote from: Ascomar on September 09, 2013, 01:45:59 pm
You can keep uboot and script.bin. uImage IS the kernel; so you have to replace it with the new image.


Thanks!
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: sanyigz on September 09, 2013, 04:08:37 pm
so if i have the previous version of cubiuntu, then i just need to replace uimage, with the one in the tar.gz and that's all?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: Billa on September 09, 2013, 05:16:26 pm
No, you will have to copy the /modules folder into the correctly kernel or otherwise you will not have drivers.

Check here: http://www.cubieforums.com/index.php/topic,528.msg4197.html#msg4197
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on September 10, 2013, 02:46:33 am
Quote from: patwood on September 05, 2013, 11:15:36 am
I have uploaded a new CUBIUNTU for the A20 with the latest 3.4.43+ kernel.  Mali GPU is working in this one, HW video decode isn't.

As before passwords are root/root linaro/linaro.

Full distro: http://dl.cubieforums.com/patwood/Cubiuntu0.6-a20.img.gz http://dl.cubieforums.com/patwood/Cubiuntu0.6.4-a20.img.xz
3.4.43 A20 kernel with lots of modules: http://dl.cubieforums.com/patwood/A20-kernel-3.4.43.tar.gz

Edit: new version uploaded that supports AXP poweroff and audio.  Also has netplug installed so auto up/down of eth0 works: http://dl.cubieforums.com/patwood/Cubiuntu0.6.4-a20.img.xz (http://dl.cubieforums.com/patwood/Cubiuntu0.6.4-a20.img.xz).  You'll need unxz to decompress it; xz image is much smaller than gzip.


thnx ptwood
I have download Cubiuntu0.6.4-a20.img.xz but in vga mode it fails to boot due to following fault:

<0>Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    3.922033] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[<c0014d74>] (unwind_backtrace+0x0/0x138) from [<c0572cec>] (panic+0x8c/0x1cc)
[    3.937267] [<c0014d74>] (unwind_backtrace+0x0/0x138) from [<c0572cec>] (panic+0x8c/0x1cc)
[<c0572cec>] (panic+0x8c/0x1cc) from [<c07eed58>] (mount_block_root+0x178/0x22c)
[    3.952653] [<c0572cec>] (panic+0x8c/0x1cc) from [<c07eed58>] (mount_block_root+0x178/0x22c)
[<c07eed58>] (mount_block_root+0x178/0x22c) from [<c07eefe0>] (mount_root+0xe8/0x108)
[    3.968640] [<c07eed58>] (mount_block_root+0x178/0x22c) from [<c07eefe0>] (mount_root+0xe8/0x108)
[<c07eefe0>] (mount_root+0xe8/0x108) from [<c07ef160>] (prepare_namespace+0x160/0x1c4)
[    3.985147] [<c07eefe0>] (mount_root+0xe8/0x108) from [<c07ef160>] (prepare_namespace+0x160/0x1c4)
[<c07ef160>] (prepare_namespace+0x160/0x1c4) from [<c07eea08>] (kernel_init+0x1d0/0x214)
[    4.001913] [<c07ef160>] (prepare_namespace+0x160/0x1c4) from [<c07eea08>] (kernel_init+0x1d0/0x214)
[<c07eea08>] (kernel_init+0x1d0/0x214) from [<c000f49c>] (kernel_thread_exit+0x0/0x8)
[    4.018595] [<c07eea08>] (kernel_init+0x1d0/0x214) from [<c000f49c>] (kernel_thread_exit+0x0/0x8)
<2>CPU1: stopping
[    4.029120] CPU1: stopping
[<c0014d74>] (unwind_backtrace+0x0/0x138) from [<c00138d4>] (handle_IPI+0x198/0x1cc)
[    4.039300] [<c0014d74>] (unwind_backtrace+0x0/0x138) from [<c00138d4>] (handle_IPI+0x198/0x1cc)
[<c00138d4>] (handle_IPI+0x198/0x1cc) from [<c0008504>] (gic_handle_irq+0x50/0x58)
[    4.055371] [<c00138d4>] (handle_IPI+0x198/0x1cc) from [<c0008504>] (gic_handle_irq+0x50/0x58)
[<c0008504>] (gic_handle_irq+0x50/0x58) from [<c000e580>] (__irq_svc+0x40/0x70)
[    4.071000] [<c0008504>] (gic_handle_irq+0x50/0x58) from [<c000e580>] (__irq_svc+0x40/0x70)
Exception stack(0xef065f88 to 0xef065fd0)
[    4.083069] Exception stack(0xef065f88 to 0xef065fd0)
5f80:                   ffffffed 00000001 0ffee000 00000000 ef064000 c088fb88
[    4.094974] 5f80:                   ffffffed 00000001 0ffee000 00000000 ef064000 c088fb88
5fa0: c057db14 ef064000 c083ab50 410fc074 ef064000 00000000 ffff8c5e ef065fd0
[    4.109993] 5fa0: c057db14 ef064000 c083ab50 410fc074 ef064000 00000000 ffff8c5e ef065fd0
5fc0: c000f500 c000f504 60000013 ffffffff
[    4.121898] 5fc0: c000f500 c000f504 60000013 ffffffff
[<c000e580>] (__irq_svc+0x40/0x70) from [<c000f504>] (default_idle+0x28/0x30)
[    4.133807] [<c000e580>] (__irq_svc+0x40/0x70) from [<c000f504>] (default_idle+0x28/0x30)
[<c000f504>] (default_idle+0x28/0x30) from [<c000f83c>] (cpu_idle+0xd0/0x114)
[    4.148838] [<c000f504>] (default_idle+0x28/0x30) from [<c000f83c>] (cpu_idle+0xd0/0x114)
[<c000f83c>] (cpu_idle+0xd0/0x114) from [<4056f654>] (0x4056f654)
[    4.162828] [<c000f83c>] (cpu_idle+0xd0/0x114) from [<4056f654>] (0x4056f654)
<6>[hotplug]: cpu(0) try to kill cpu(1)
[    4.173521] [hotplug]: cpu(0) try to kill cpu(1)
<3>[hotplug]: try to kill cpu:1 failed!
[    5.179355] [hotplug]: try to kill cpu:1 failed!
<0>Rebooting in 10 seconds..[    5.186409] Rebooting in 10 seconds..


and it reboot it repeats again

but in hdmi mode it has no problem.

Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 10, 2013, 09:36:27 am
Quote from: stu.mahdi on September 10, 2013, 02:46:33 am
Quote from: patwood on September 05, 2013, 11:15:36 am
I have uploaded a new CUBIUNTU for the A20 with the latest 3.4.43+ kernel.  Mali GPU is working in this one, HW video decode isn't.

As before passwords are root/root linaro/linaro.

Full distro: http://dl.cubieforums.com/patwood/Cubiuntu0.6-a20.img.gz http://dl.cubieforums.com/patwood/Cubiuntu0.6.4-a20.img.xz
3.4.43 A20 kernel with lots of modules: http://dl.cubieforums.com/patwood/A20-kernel-3.4.43.tar.gz

Edit: new version uploaded that supports AXP poweroff and audio.  Also has netplug installed so auto up/down of eth0 works: http://dl.cubieforums.com/patwood/Cubiuntu0.6.4-a20.img.xz (http://dl.cubieforums.com/patwood/Cubiuntu0.6.4-a20.img.xz).  You'll need unxz to decompress it; xz image is much smaller than gzip.


thnx ptwood
I have download Cubiuntu0.6.4-a20.img.xz but in vga mode it fails to boot due to following fault:

<0>Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    3.922033] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[<c0014d74>] (unwind_backtrace+0x0/0x138) from [<c0572cec>] (panic+0x8c/0x1cc)
[    3.937267] [<c0014d74>] (unwind_backtrace+0x0/0x138) from [<c0572cec>] (panic+0x8c/0x1cc)
[<c0572cec>] (panic+0x8c/0x1cc) from [<c07eed58>] (mount_block_root+0x178/0x22c)
[    3.952653] [<c0572cec>] (panic+0x8c/0x1cc) from [<c07eed58>] (mount_block_root+0x178/0x22c)
[<c07eed58>] (mount_block_root+0x178/0x22c) from [<c07eefe0>] (mount_root+0xe8/0x108)
[    3.968640] [<c07eed58>] (mount_block_root+0x178/0x22c) from [<c07eefe0>] (mount_root+0xe8/0x108)
[<c07eefe0>] (mount_root+0xe8/0x108) from [<c07ef160>] (prepare_namespace+0x160/0x1c4)
[    3.985147] [<c07eefe0>] (mount_root+0xe8/0x108) from [<c07ef160>] (prepare_namespace+0x160/0x1c4)
[<c07ef160>] (prepare_namespace+0x160/0x1c4) from [<c07eea08>] (kernel_init+0x1d0/0x214)
[    4.001913] [<c07ef160>] (prepare_namespace+0x160/0x1c4) from [<c07eea08>] (kernel_init+0x1d0/0x214)
[<c07eea08>] (kernel_init+0x1d0/0x214) from [<c000f49c>] (kernel_thread_exit+0x0/0x8)
[    4.018595] [<c07eea08>] (kernel_init+0x1d0/0x214) from [<c000f49c>] (kernel_thread_exit+0x0/0x8)
<2>CPU1: stopping
[    4.029120] CPU1: stopping
[<c0014d74>] (unwind_backtrace+0x0/0x138) from [<c00138d4>] (handle_IPI+0x198/0x1cc)
[    4.039300] [<c0014d74>] (unwind_backtrace+0x0/0x138) from [<c00138d4>] (handle_IPI+0x198/0x1cc)
[<c00138d4>] (handle_IPI+0x198/0x1cc) from [<c0008504>] (gic_handle_irq+0x50/0x58)
[    4.055371] [<c00138d4>] (handle_IPI+0x198/0x1cc) from [<c0008504>] (gic_handle_irq+0x50/0x58)
[<c0008504>] (gic_handle_irq+0x50/0x58) from [<c000e580>] (__irq_svc+0x40/0x70)
[    4.071000] [<c0008504>] (gic_handle_irq+0x50/0x58) from [<c000e580>] (__irq_svc+0x40/0x70)
Exception stack(0xef065f88 to 0xef065fd0)
[    4.083069] Exception stack(0xef065f88 to 0xef065fd0)
5f80:                   ffffffed 00000001 0ffee000 00000000 ef064000 c088fb88
[    4.094974] 5f80:                   ffffffed 00000001 0ffee000 00000000 ef064000 c088fb88
5fa0: c057db14 ef064000 c083ab50 410fc074 ef064000 00000000 ffff8c5e ef065fd0
[    4.109993] 5fa0: c057db14 ef064000 c083ab50 410fc074 ef064000 00000000 ffff8c5e ef065fd0
5fc0: c000f500 c000f504 60000013 ffffffff
[    4.121898] 5fc0: c000f500 c000f504 60000013 ffffffff
[<c000e580>] (__irq_svc+0x40/0x70) from [<c000f504>] (default_idle+0x28/0x30)
[    4.133807] [<c000e580>] (__irq_svc+0x40/0x70) from [<c000f504>] (default_idle+0x28/0x30)
[<c000f504>] (default_idle+0x28/0x30) from [<c000f83c>] (cpu_idle+0xd0/0x114)
[    4.148838] [<c000f504>] (default_idle+0x28/0x30) from [<c000f83c>] (cpu_idle+0xd0/0x114)
[<c000f83c>] (cpu_idle+0xd0/0x114) from [<4056f654>] (0x4056f654)
[    4.162828] [<c000f83c>] (cpu_idle+0xd0/0x114) from [<4056f654>] (0x4056f654)
<6>[hotplug]: cpu(0) try to kill cpu(1)
[    4.173521] [hotplug]: cpu(0) try to kill cpu(1)
<3>[hotplug]: try to kill cpu:1 failed!
[    5.179355] [hotplug]: try to kill cpu:1 failed!
<0>Rebooting in 10 seconds..[    5.186409] Rebooting in 10 seconds..


and it reboot it repeats again

but in hdmi mode it has no problem.

Can you attach your script.bin?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on September 10, 2013, 09:56:26 am
Quote from: patwood on September 10, 2013, 09:36:27 am
Quote from: stu.mahdi on September 10, 2013, 02:46:33 am
Quote from: patwood on September 05, 2013, 11:15:36 am
I have uploaded a new CUBIUNTU for the A20 with the latest 3.4.43+ kernel.  Mali GPU is working in this one, HW video decode isn't.

As before passwords are root/root linaro/linaro.

Full distro: http://dl.cubieforums.com/patwood/Cubiuntu0.6-a20.img.gz http://dl.cubieforums.com/patwood/Cubiuntu0.6.4-a20.img.xz
3.4.43 A20 kernel with lots of modules: http://dl.cubieforums.com/patwood/A20-kernel-3.4.43.tar.gz

Edit: new version uploaded that supports AXP poweroff and audio.  Also has netplug installed so auto up/down of eth0 works: http://dl.cubieforums.com/patwood/Cubiuntu0.6.4-a20.img.xz (http://dl.cubieforums.com/patwood/Cubiuntu0.6.4-a20.img.xz).  You'll need unxz to decompress it; xz image is much smaller than gzip.


thnx ptwood
I have download Cubiuntu0.6.4-a20.img.xz but in vga mode it fails to boot due to following fault:

<0>Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    3.922033] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[<c0014d74>] (unwind_backtrace+0x0/0x138) from [<c0572cec>] (panic+0x8c/0x1cc)
[    3.937267] [<c0014d74>] (unwind_backtrace+0x0/0x138) from [<c0572cec>] (panic+0x8c/0x1cc)
[<c0572cec>] (panic+0x8c/0x1cc) from [<c07eed58>] (mount_block_root+0x178/0x22c)
[    3.952653] [<c0572cec>] (panic+0x8c/0x1cc) from [<c07eed58>] (mount_block_root+0x178/0x22c)
[<c07eed58>] (mount_block_root+0x178/0x22c) from [<c07eefe0>] (mount_root+0xe8/0x108)
[    3.968640] [<c07eed58>] (mount_block_root+0x178/0x22c) from [<c07eefe0>] (mount_root+0xe8/0x108)
[<c07eefe0>] (mount_root+0xe8/0x108) from [<c07ef160>] (prepare_namespace+0x160/0x1c4)
[    3.985147] [<c07eefe0>] (mount_root+0xe8/0x108) from [<c07ef160>] (prepare_namespace+0x160/0x1c4)
[<c07ef160>] (prepare_namespace+0x160/0x1c4) from [<c07eea08>] (kernel_init+0x1d0/0x214)
[    4.001913] [<c07ef160>] (prepare_namespace+0x160/0x1c4) from [<c07eea08>] (kernel_init+0x1d0/0x214)
[<c07eea08>] (kernel_init+0x1d0/0x214) from [<c000f49c>] (kernel_thread_exit+0x0/0x8)
[    4.018595] [<c07eea08>] (kernel_init+0x1d0/0x214) from [<c000f49c>] (kernel_thread_exit+0x0/0x8)
<2>CPU1: stopping
[    4.029120] CPU1: stopping
[<c0014d74>] (unwind_backtrace+0x0/0x138) from [<c00138d4>] (handle_IPI+0x198/0x1cc)
[    4.039300] [<c0014d74>] (unwind_backtrace+0x0/0x138) from [<c00138d4>] (handle_IPI+0x198/0x1cc)
[<c00138d4>] (handle_IPI+0x198/0x1cc) from [<c0008504>] (gic_handle_irq+0x50/0x58)
[    4.055371] [<c00138d4>] (handle_IPI+0x198/0x1cc) from [<c0008504>] (gic_handle_irq+0x50/0x58)
[<c0008504>] (gic_handle_irq+0x50/0x58) from [<c000e580>] (__irq_svc+0x40/0x70)
[    4.071000] [<c0008504>] (gic_handle_irq+0x50/0x58) from [<c000e580>] (__irq_svc+0x40/0x70)
Exception stack(0xef065f88 to 0xef065fd0)
[    4.083069] Exception stack(0xef065f88 to 0xef065fd0)
5f80:                   ffffffed 00000001 0ffee000 00000000 ef064000 c088fb88
[    4.094974] 5f80:                   ffffffed 00000001 0ffee000 00000000 ef064000 c088fb88
5fa0: c057db14 ef064000 c083ab50 410fc074 ef064000 00000000 ffff8c5e ef065fd0
[    4.109993] 5fa0: c057db14 ef064000 c083ab50 410fc074 ef064000 00000000 ffff8c5e ef065fd0
5fc0: c000f500 c000f504 60000013 ffffffff
[    4.121898] 5fc0: c000f500 c000f504 60000013 ffffffff
[<c000e580>] (__irq_svc+0x40/0x70) from [<c000f504>] (default_idle+0x28/0x30)
[    4.133807] [<c000e580>] (__irq_svc+0x40/0x70) from [<c000f504>] (default_idle+0x28/0x30)
[<c000f504>] (default_idle+0x28/0x30) from [<c000f83c>] (cpu_idle+0xd0/0x114)
[    4.148838] [<c000f504>] (default_idle+0x28/0x30) from [<c000f83c>] (cpu_idle+0xd0/0x114)
[<c000f83c>] (cpu_idle+0xd0/0x114) from [<4056f654>] (0x4056f654)
[    4.162828] [<c000f83c>] (cpu_idle+0xd0/0x114) from [<4056f654>] (0x4056f654)
<6>[hotplug]: cpu(0) try to kill cpu(1)
[    4.173521] [hotplug]: cpu(0) try to kill cpu(1)
<3>[hotplug]: try to kill cpu:1 failed!
[    5.179355] [hotplug]: try to kill cpu:1 failed!
<0>Rebooting in 10 seconds..[    5.186409] Rebooting in 10 seconds..


and it reboot it repeats again

but in hdmi mode it has no problem.

Can you attach your script.bin?



I have to mention that it is exactly your script.bin file and I have just change display mode and reconvert to fex
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 10, 2013, 11:08:42 am
Quote from: stu.mahdi on September 10, 2013, 09:56:26 am
Quote from: patwood on September 10, 2013, 09:36:27 am
Quote from: stu.mahdi on September 10, 2013, 02:46:33 am
thnx ptwood
I have download Cubiuntu0.6.4-a20.img.xz but in vga mode it fails to boot due to following fault:

<0>Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    3.922033] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

<snip>

and it reboot it repeats again

but in hdmi mode it has no problem.

Can you attach your script.bin?



I have to mention that it is exactly your script.bin file and I have just change display mode and reconvert to fex

Hmmm, I don't know what's going on here, or why the display settings have any effect on the SD card driver  :(.  I've asked the linux-sunxi mailing list if they have any ideas.

Pat
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: nmartinho on September 10, 2013, 11:38:51 am
Hi,

I'm unable to mount CIFS share. It seems that the module is not present.
How can i enable the module? Recompile kernel?

Thanks.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 10, 2013, 11:42:35 am
Quote from: nmartinho on September 10, 2013, 11:38:51 am
Hi,

I'm unable to mount CIFS share. It seems that the module is not present.
How can i enable the module? Recompile kernel?

Thanks.

CIFS is compiled into the kernel so you won't see it with lsmod.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: nmartinho on September 10, 2013, 11:54:55 am
Quote from: patwood on September 10, 2013, 11:42:35 am
Quote from: nmartinho on September 10, 2013, 11:38:51 am
Hi,

I'm unable to mount CIFS share. It seems that the module is not present.
How can i enable the module? Recompile kernel?

Thanks.

CIFS is compiled into the kernel so you won't see it with lsmod.


Something is wrong. ???
mount error: cifs filesystem not supported by the system

Note: cifs-utils is installed.

Are you able to mount samba shares?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 10, 2013, 03:47:29 pm
Quote from: nmartinho on September 10, 2013, 11:54:55 am
Something is wrong. ???
mount error: cifs filesystem not supported by the system

Note: cifs-utils is installed.

Are you able to mount samba shares?


Normally I don't use samba much, but I gave it a try:

root@linaro-ubuntu-desktop:~# mount -t cifs -o 'username=EFI/pwood' '//njsmbview.nj.efi.com/views' /mnt
mount: wrong fs type, bad option, bad superblock on //njsmbview.nj.efi.com/views,
       missing codepage or helper program, or other error
       (for several filesystems (e.g. nfs, cifs) you might
       need a /sbin/mount.<type> helper program)
       In some cases useful info is found in syslog - try
       dmesg | tail  or so

root@linaro-ubuntu-desktop:~# dmesg | tail -5
[   35.564496] init: plymouth-stop pre-start process (1054) terminated with status 1
[   35.600471] init: tty1 main process (1055) killed by TERM signal
[   36.649826] eth0: no IPv6 routers present
[  147.928487] CIFS VFS: Connecting to DFS root not implemented yet
[  147.941769] CIFS VFS: cifs_mount failed w/return code = -22



A quick check indicates that the cifs-utils are out of date, so:

root@linaro-ubuntu-desktop:~# apt-get update
root@linaro-ubuntu-desktop:~# apt-get install cifs-utils


And now I can mount samba shares.

Note that I encountered the same problem on the A10 CUBIUNTU, so perhaps ikeeki might want to take a look at updating this in his next release (which I will track).
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: ikeeki on September 10, 2013, 06:47:32 pm
Yes, I'll do  ::)   ;D ;D ;D
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: Billa on September 10, 2013, 07:25:41 pm
I'm sorry to post this but this is the second time I botched up trying to replace the kernel. Can anybody of you write a step by step comprehensive guide on how to do it? (using the Cubieboard).

Whenever I tried to cp the kernel into the /lib thingie it said that some folders were omited. So I'm not sure if I did the thing right (almost not because the system stopped responding to wifi even though the modules folder was also copied).

Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on September 11, 2013, 01:04:50 am
Quote from: Billa on September 10, 2013, 07:25:41 pm
I'm sorry to post this but this is the second time I botched up trying to replace the kernel. Can anybody of you write a step by step comprehensive guide on how to do it? (using the Cubieboard).

Whenever I tried to cp the kernel into the /lib thingie it said that some folders were omited. So I'm not sure if I did the thing right (almost not because the system stopped responding to wifi even though the modules folder was also copied).


i am sorry my English is not good

I always use this step. i write it hear , I'll be so thankful if it is not correct some one write the correct way.

you can put your microsd card in your PC with Linux OS.

# you need root permissions #
1- replace your uimage with /your-microsd-address/boot/uimage.3.34.43-sun7i+ (first make a backup of it   -- sudo cp /your-microsd-address/boot/uimage.3.34.43-sun7i+ /your-microsd-address/boot/uimage.3.34.43-sun7i+.back ) 
2- if you build you kernel , you need your modules to be replaced in  /your-microsd-address/lib/modules and your firmware to /your-microsd-address/lib/firmware
else if you get it from somewhere else copy them to that place.
3. maybe you need check disk
4. do sync , and umount microsd
5. insert microsd to you cubieboard and turn it on
6. finally you need install modules so in terminal do (with root permissions) :sudo depmod -a
7. some time you need to install module manualy, you should write : sudo insmod /path-to-your-module.ko
7. reboot


Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on September 11, 2013, 02:38:44 am
Quote from: patwood on September 10, 2013, 11:08:42 am
Quote from: stu.mahdi on September 10, 2013, 09:56:26 am
Quote from: patwood on September 10, 2013, 09:36:27 am
Quote from: stu.mahdi on September 10, 2013, 02:46:33 am
thnx ptwood
I have download Cubiuntu0.6.4-a20.img.xz but in vga mode it fails to boot due to following fault:

<0>Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    3.922033] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)

<snip>

and it reboot it repeats again

but in hdmi mode it has no problem.

Can you attach your script.bin?



I have to mention that it is exactly your script.bin file and I have just change display mode and reconvert to fex

Hmmm, I don't know what's going on here, or why the display settings have any effect on the SD card driver  :(.  I've asked the linux-sunxi mailing list if they have any ideas.

Pat

i have check  http://dl.cubieforums.com/patwood/Cubiuntu0.6-a20.img.gz  with 3.4.43 kernel but it dosnt have this problem but it has problem with network(eth0), i have install  http://dl.cubieforums.com/patwood/netplug_1.2.9.2-1_armhf.deb but still it has problem.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: Shak7 on September 11, 2013, 07:01:02 am
Edit: OK, I got the answer.

With version 0.6.4, I can't log in (login sequence is always repeating, never goes to desktop) and I get these errors with every command I put in terminal SSH "/-bash: /sbin/poweroff: Input/output error/". Is anyone have same problem ? Tks ! And also tks to patwood and others for putting a large amount of efforts to make a good a20 image (looks HARD...).
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: Billa on September 11, 2013, 10:00:38 am
Quote from: stu.mahdi on September 11, 2013, 01:04:50 am
Quote from: Billa on September 10, 2013, 07:25:41 pm
I'm sorry to post this but this is the second time I botched up trying to replace the kernel. Can anybody of you write a step by step comprehensive guide on how to do it? (using the Cubieboard).

Whenever I tried to cp the kernel into the /lib thingie it said that some folders were omited. So I'm not sure if I did the thing right (almost not because the system stopped responding to wifi even though the modules folder was also copied).


i am sorry my English is not good

I always use this step. i write it hear , I'll be so thankful if it is not correct some one write the correct way.

you can put your microsd card in your PC with Linux OS.

# you need root permissions #
1- replace your uimage with /your-microsd-address/boot/uimage.3.34.43-sun7i+ (first make a backup of it   -- sudo cp /your-microsd-address/boot/uimage.3.34.43-sun7i+ /your-microsd-address/boot/uimage.3.34.43-sun7i+.back ) 
2- if you build you kernel , you need your modules to be replaced in  /your-microsd-address/lib/modules and your firmware to /your-microsd-address/lib/firmware
else if you get it from somewhere else copy them to that place.
3. maybe you need check disk
4. do sync , and umount microsd
5. insert microsd to you cubieboard and turn it on
6. finally you need install modules so in terminal do (with root permissions) :sudo depmod -a
7. some time you need to install module manualy, you should write : sudo insmod /path-to-your-module.ko
7. reboot


Thanks man, with the next kernel to come I'll try that. If not, I'll have to ask Pat to write a bit about this.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: Bruce on September 11, 2013, 05:18:35 pm
I installed the new image to my sd card, and see that there is no script.bin in the first partition.  I am using an LCD display that requires script.bin code to setup.  My earlier sd image had the kernel, uEnv.txt and script.bin in the first partition.  Where should I place my updated script.bin?

Thanks!
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 11, 2013, 06:20:22 pm
Quote from: Bruce on September 11, 2013, 05:18:35 pm
I installed the new image to my sd card, and see that there is no script.bin in the first partition.  I am using an LCD display that requires script.bin code to setup.  My earlier sd image had the kernel, uEnv.txt and script.bin in the first partition.  Where should I place my updated script.bin?

Thanks!

Try /boot on the ext4 linux partition.  If you don't like it there, just move it back to the first partition; uboot checks both locations.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 11, 2013, 06:21:25 pm
Quote from: Shak7 on September 11, 2013, 07:01:02 am
Edit: OK, I got the answer.

With version 0.6.4, I can't log in (login sequence is always repeating, never goes to desktop) and I get these errors with every command I put in terminal SSH "/-bash: /sbin/poweroff: Input/output error/". Is anyone have same problem ? Tks ! And also tks to patwood and others for putting a large amount of efforts to make a good a20 image (looks HARD...).

If it's a problem someone else here might encounter, please post the solution.

Pat
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: acamposxp on September 11, 2013, 06:27:03 pm
Is there any progress in porting XBMC to the A20? Some light at the end of the tunnel?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: Shak7 on September 11, 2013, 10:21:29 pm
Quote from: patwood on September 11, 2013, 06:21:25 pm
Quote from: Shak7 on September 11, 2013, 07:01:02 am
Edit: OK, I got the answer.

With version 0.6.4, I can't log in (login sequence is always repeating, never goes to desktop) and I get these errors with every command I put in terminal SSH "/-bash: /sbin/poweroff: Input/output error/". Is anyone have same problem ? Tks ! And also tks to patwood and others for putting a large amount of efforts to make a good a20 image (looks HARD...).

If it's a problem someone else here might encounter, please post the solution.

Pat


Sorry Pat, everyone,

I found an answer that I thought was working this morning after my post, but trying to no avail. Still can't do any commands and can't log in with root or linaro. Just to say that in login screen I tried to switch from "default" to "LXDE" in Desktop settings and was up (!) but couldn't use interface, was flicking when clicking... Will stick to 0.6.2 for now. If someone have solution/hints, I will take. Tks always. I admire your efforts. Sincerely. I wish, like a lot cb2 owners, to have full hardware working image to take full advantages of the product. I know it will come.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: Bruce on September 12, 2013, 12:42:41 am
I did find script.bin in the second partition under /boot.  After modifying this for my LCD, everything is working fine.  It even fixed a resolution problem I was having under a 3.3 kernel.

Thanks, Pat!
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 12, 2013, 12:54:51 am
Quote from: stu.mahdi on September 10, 2013, 09:56:26 am
Quote from: patwood on September 10, 2013, 09:36:27 am
Quote from: stu.mahdi on September 10, 2013, 02:46:33 am
Quote from: patwood on September 05, 2013, 11:15:36 am
I have uploaded a new CUBIUNTU for the A20 with the latest 3.4.43+ kernel.  Mali GPU is working in this one, HW video decode isn't.

As before passwords are root/root linaro/linaro.

Full distro: http://dl.cubieforums.com/patwood/Cubiuntu0.6-a20.img.gz http://dl.cubieforums.com/patwood/Cubiuntu0.6.4-a20.img.xz
3.4.43 A20 kernel with lots of modules: http://dl.cubieforums.com/patwood/A20-kernel-3.4.43.tar.gz

Edit: new version uploaded that supports AXP poweroff and audio.  Also has netplug installed so auto up/down of eth0 works: http://dl.cubieforums.com/patwood/Cubiuntu0.6.4-a20.img.xz (http://dl.cubieforums.com/patwood/Cubiuntu0.6.4-a20.img.xz).  You'll need unxz to decompress it; xz image is much smaller than gzip.


thnx ptwood
I have download Cubiuntu0.6.4-a20.img.xz but in vga mode it fails to boot due to following fault:

<0>Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    3.922033] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[<c0014d74>] (unwind_backtrace+0x0/0x138) from [<c0572cec>] (panic+0x8c/0x1cc)
[    3.937267] [<c0014d74>] (unwind_backtrace+0x0/0x138) from [<c0572cec>] (panic+0x8c/0x1cc)
[<c0572cec>] (panic+0x8c/0x1cc) from [<c07eed58>] (mount_block_root+0x178/0x22c)

<snip>

and it reboot it repeats again

but in hdmi mode it has no problem.

Can you attach your script.bin?



I have to mention that it is exactly your script.bin file and I have just change display mode and reconvert to fex


Okay, try this: in your uEnv.txt, add rootwait to the root= line like this:

root=/dev/mmcblk0p2 rootwait


Might be that the SD card isn't ready before the root file system needs to be mounted.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on September 12, 2013, 01:13:23 am
Quote from: patwood on September 12, 2013, 12:54:51 am
Quote from: stu.mahdi on September 10, 2013, 09:56:26 am
Quote from: patwood on September 10, 2013, 09:36:27 am
Quote from: stu.mahdi on September 10, 2013, 02:46:33 am
Quote from: patwood on September 05, 2013, 11:15:36 am
I have uploaded a new CUBIUNTU for the A20 with the latest 3.4.43+ kernel.  Mali GPU is working in this one, HW video decode isn't.

As before passwords are root/root linaro/linaro.

Full distro: http://dl.cubieforums.com/patwood/Cubiuntu0.6-a20.img.gz http://dl.cubieforums.com/patwood/Cubiuntu0.6.4-a20.img.xz
3.4.43 A20 kernel with lots of modules: http://dl.cubieforums.com/patwood/A20-kernel-3.4.43.tar.gz

Edit: new version uploaded that supports AXP poweroff and audio.  Also has netplug installed so auto up/down of eth0 works: http://dl.cubieforums.com/patwood/Cubiuntu0.6.4-a20.img.xz (http://dl.cubieforums.com/patwood/Cubiuntu0.6.4-a20.img.xz).  You'll need unxz to decompress it; xz image is much smaller than gzip.


thnx ptwood
I have download Cubiuntu0.6.4-a20.img.xz but in vga mode it fails to boot due to following fault:

<0>Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[    3.922033] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
[<c0014d74>] (unwind_backtrace+0x0/0x138) from [<c0572cec>] (panic+0x8c/0x1cc)
[    3.937267] [<c0014d74>] (unwind_backtrace+0x0/0x138) from [<c0572cec>] (panic+0x8c/0x1cc)
[<c0572cec>] (panic+0x8c/0x1cc) from [<c07eed58>] (mount_block_root+0x178/0x22c)

<snip>

and it reboot it repeats again

but in hdmi mode it has no problem.

Can you attach your script.bin?



I have to mention that it is exactly your script.bin file and I have just change display mode and reconvert to fex


Okay, try this: in your uEnv.txt, add rootwait to the root= line like this:

root=/dev/mmcblk0p2 rootwait


Might be that the SD card isn't ready before the root file system needs to be mounted.


YOU MADE MY DAY! it's working now
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on September 12, 2013, 01:15:51 am
BTW , would you please tell me where is uboot in this image , I couldn't find it?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 12, 2013, 09:43:04 am
Quote from: stu.mahdi on September 12, 2013, 01:15:51 am
BTW , would you please tell me where is uboot in this image , I couldn't find it?

Uboot  is not stored as a file.  It's stored in the boot area before the first partition.  See this for more info:  https://github.com/linux-sunxi/u-boot-sunxi/wiki.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: sanyigz on September 12, 2013, 01:00:58 pm
how can i test if 3D acceleration works? I've looked at the screen savers, and even the simplest 3d screen saver (3d text) have really bad frame rate.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: Bruce on September 12, 2013, 04:23:39 pm
I would like to install 6.4 on my sata disk.  I assume that I will need to dd the sd card contents to the disk and then modify uEenv.txt in the first partition of the sd card to specify the new root device.    However, the stock uEnv.txt specifies "kernel=/uImage.3.4.43-sun7i+", even though the kernel actually seems to be at /boot/uImage.3.4.43-sun7i+ rather than at /uImage.3.4.43-sun7i+.  What should i be putting into uEnv.txt?

Thanks!
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: sanyigz on September 12, 2013, 04:39:10 pm
Ok, 3d is works (can be tested with es2gears).

Everything reports the architecture as arm7l, including uname. Is this normal? As i know A20 is armhf,  and arm7l means armel. Is this normal?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on September 12, 2013, 04:45:38 pm
Quote from: patwood on September 12, 2013, 09:43:04 am
Quote from: stu.mahdi on September 12, 2013, 01:15:51 am
BTW , would you please tell me where is uboot in this image , I couldn't find it?

Uboot  is not stored as a file.  It's stored in the boot area before the first partition.  See this for more info:  https://github.com/linux-sunxi/u-boot-sunxi/wiki.

I'll  be so thankful if you can explain  how i can  install this image to nand?
before I used you instruction for .6-a20 at http://www.cubieforums.com/index.php/topic,511.0.html
but with image with no uboot.bin and ext4 partition , I dont know.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: sanyigz on September 12, 2013, 06:28:39 pm
On cubiuntu 0.64 i've just dried to rename the linaro user, and change password too, and i've created another user. At next reboot i found myself at infinite loop of user and password prompt at gui. No matter which user/password i use, it ask for the same again, without a message like wrong password or anything.
Then I've pressed ctrl-alt-f1 for console, i was automatically logged in as root! I've rebooted the cubie again, then i switched to console without playing the user password game on gui, and i was autologged again as root!

That's not too secure... Is it how it was by default, or how did i do this?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: bcasey on September 12, 2013, 07:56:11 pm
I think this may be what you are looking for:

taken from: http://linux-sunxi.org/More-images

to get rid of annoying root autologins rename "/etc/init/openvt.conf" to "/etc/init/openvt.conf.noboot" and edit "/etc/default/autogetty" to disable tty and serial autologin



I would check for you however I am running a different built on my cb2.

I remember disabling this in the past for security reasons as well.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 12, 2013, 10:07:27 pm
Quote from: Bruce on September 12, 2013, 04:23:39 pm
I would like to install 6.4 on my sata disk.  I assume that I will need to dd the sd card contents to the disk and then modify uEenv.txt in the first partition of the sd card to specify the new root device.    However, the stock uEnv.txt specifies "kernel=/uImage.3.4.43-sun7i+", even though the kernel actually seems to be at /boot/uImage.3.4.43-sun7i+ rather than at /uImage.3.4.43-sun7i+.  What should i be putting into uEnv.txt?

Thanks!

uboot prepends "/boot" to the kernel name (actually, I think it's /boot/, so the leading "/" in kernel= is probably not necessary).

Instead of dd, read up on rsync.  It'll be faster, as it won't copy unused space.  It also means you can format the file system to fit on the disk and not have to resize it after a dd.

The trick with booting from sata is to put the uImage file on the FAT32 boot partition, since uboot doesn't know about SATA (AFIK) and set the root= parameter to something like /dev/sda1 (or whatever your sata root partition shows up as).

Quote
to get rid of annoying root autologins rename "/etc/init/openvt.conf" to "/etc/init/openvt.conf.noboot" and edit "/etc/default/autogetty" to disable tty and serial autologin

You may also need to delete/modify /etc/init/tty1.conf, as this corresponds to the alt-f1 terminal.

It may not seem secure, but as with most systems, physical access trumps just about anything else.  Anybody can remove your SD card and copy its contents or change the root password to NULL; anybody can stick an SD card into your cubie and boot anything they want.  Disabling autologin for either the X console, serial console, or virtual terminal is really just window dressing.

People are always amazed when I walk up to their windows and linux boxes with a linux recovery distro on a USB key and recover files from their systems when they can't boot for some reason.  Nobody bothers to encrypt their file systems, yet they're stunned when I go into their personal directories and access their pix/documents/bookmarks without asking for their password.  None of my friends leaves me alone with their computers anymore  :)

Now buttoning up ssh is a whole different story: disable root login and force certificates with big keys then lock up the system!
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 12, 2013, 10:10:16 pm
Quote from: stu.mahdi on September 12, 2013, 04:45:38 pm
Quote from: patwood on September 12, 2013, 09:43:04 am
Quote from: stu.mahdi on September 12, 2013, 01:15:51 am
BTW , would you please tell me where is uboot in this image , I couldn't find it?

Uboot  is not stored as a file.  It's stored in the boot area before the first partition.  See this for more info:  https://github.com/linux-sunxi/u-boot-sunxi/wiki.

I'll  be so thankful if you can explain  how i can  install this image to nand?
before I used you instruction for .6-a20 at http://www.cubieforums.com/index.php/topic,511.0.html
but with image with no uboot.bin and ext4 partition , I dont know.

You need a different uboot for nand anyway; the one from the SD card isn't designed to boot from nand.  Instructions and download links here: http://www.cubieforums.com/index.php/topic,524
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 12, 2013, 10:13:28 pm
Quote from: sanyigz on September 12, 2013, 04:39:10 pm
Ok, 3d is works (can be tested with es2gears).

Everything reports the architecture as arm7l, including uname. Is this normal? As i know A20 is armhf,  and arm7l means armel. Is this normal?

arm7l means ARM7 little endian architecture.  armhf and armel are both little endian; the architecture shouldn't be confused with the floating-point ABI.  Read this: https://wiki.debian.org/ArmHardFloatPort
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on September 13, 2013, 01:36:12 am
Quote from: patwood on September 12, 2013, 10:10:16 pm
Quote from: stu.mahdi on September 12, 2013, 04:45:38 pm
Quote from: patwood on September 12, 2013, 09:43:04 am
Quote from: stu.mahdi on September 12, 2013, 01:15:51 am
BTW , would you please tell me where is uboot in this image , I couldn't find it?

Uboot  is not stored as a file.  It's stored in the boot area before the first partition.  See this for more info:  https://github.com/linux-sunxi/u-boot-sunxi/wiki.

I'll  be so thankful if you can explain  how i can  install this image to nand?
before I used you instruction for .6-a20 at http://www.cubieforums.com/index.php/topic,511.0.html
but with image with no uboot.bin and ext4 partition , I dont know.

You need a different uboot for nand anyway; the one from the SD card isn't designed to boot from nand.  Instructions and download links here: http://www.cubieforums.com/index.php/topic,524


i have studied that , you mean I Partition my nand (using nand-part), with one big partition starting at sector 2048 (i.e., leave 1MB on the card before the partition for spl and u-boot) and then do this ? ???

MMC=/dev/nand1
dd if=/dev/zero of=$MMC bs=512 seek=1 count=2047
dd if=spl/sunxi-spl.bin of=$MMC bs=1024 seek=8
dd if=u-boot.bin of=$MMC bs=1024 seek=32

then copy rootfs to /dev/nand2
?
if not, whats the right way?

Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 13, 2013, 10:09:02 am
Argh! Sorry, that's a tutorial for programming the SD card in a thread about the nand uboot version.  I'll have to root around for the nand programming post.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: sanyigz on September 13, 2013, 10:57:18 am
Now i've re written this http://dl.cubieforums.com/patwood/Cubiuntu0.6.4-a20.img.xz (http://dl.cubieforums.com/patwood/Cubiuntu0.6.4-a20.img.xz) image to an SD card, and everyone can get root access by default, without any password!
At first boot, i just pressed Ctrl-Alt-F1, and i got a console logged in with root user without authentication!
And i can't disable the root user nor stop this autologin, by setting a root password. How can i do it?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 13, 2013, 11:11:51 am
Quote from: patwood on September 13, 2013, 10:09:02 am
Argh! Sorry, that's a tutorial for programming the SD card in a thread about the nand uboot version.  I'll have to root around for the nand programming post.


See http://www.cubieforums.com/index.php/topic,511.msg2408.html#msg2408.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 13, 2013, 11:23:11 am
Quote from: sanyigz on September 13, 2013, 10:57:18 am
Now i've re written this http://dl.cubieforums.com/patwood/Cubiuntu0.6.4-a20.img.xz (http://dl.cubieforums.com/patwood/Cubiuntu0.6.4-a20.img.xz) image to an SD card, and everyone can get root access by default, without any password!
At first boot, i just pressed Ctrl-Alt-F1, and i got a console logged in with root user without authentication!
And i can't disable the root user nor stop this autologin, by setting a root password. How can i do it?


To disable virtual terminal 1 autologin, delete /etc/init/openvt.conf; to disable serial port autologin, delete auto-serial-console.conf.

Note that getty will continue to run on virtual terminals 1 and 2, but you'll need to enter a user name and password to log in.  If you want to disable this as well, delete /etc/init/tty*.conf.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on September 13, 2013, 12:08:51 pm
Quote from: patwood on September 13, 2013, 11:11:51 am
Quote from: patwood on September 13, 2013, 10:09:02 am
Argh! Sorry, that's a tutorial for programming the SD card in a thread about the nand uboot version.  I'll have to root around for the nand programming post.


See http://www.cubieforums.com/index.php/topic,511.msg2408.html#msg2408.

i am a little confused ,this instruction is based on cb3.3  with uboot with fat16 support,  can you explain a boat this uboot and 3.4.43 kernel?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: sanyigz on September 13, 2013, 01:16:46 pm
How can i prevent the cubie to make my TV automatically switch to the HDMI where cubieboard2 is connected?

And how can i make keyboard layout settings permanent. As lxkeymap not works, i used dpkg-reconfigure keyboard-configuration, but after reboot, the key layout is reverted to US, while the keyboard-configuration stores the previous choices.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: Bruce on September 13, 2013, 02:26:46 pm
Following Pat's advice, I copied the kernel to the first partition of the sd card and changed the uEnv.txt file to set the root to /dev/sda2 and the system now runs off the SATA drive.  Thanks!
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: vierax on September 13, 2013, 02:57:28 pm
Quote from: sanyigz on September 13, 2013, 01:16:46 pm
How can i prevent the cubie to make my TV automatically switch to the HDMI where cubieboard2 is connected?
This is a TV behaviour problem, I doubt you can fix that in the cubieboard.
QuoteAnd how can i make keyboard layout settings permanent. As lxkeymap not works, i used dpkg-reconfigure keyboard-configuration, but after reboot, the key layout is reverted to US, while the keyboard-configuration stores the previous choices.
You can try to add a line in the init script with the tool setxkbmap or create a separate script file to run manually or automatically in boot process.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: sanyigz on September 13, 2013, 03:32:34 pm
Quote from: vierax on September 13, 2013, 02:57:28 pmThis is a TV behaviour problem, I doubt you can fix that in the cubieboard.


I don't think so as cubieboard gets the focus through HDMI-CEC, but my PC doesn't do this, which doesn't supports CEC.

How can i disable the blue led? i've tried this "sudo echo 0 > /sys/class/leds/ph21:blue:led2/brightness" but i got "permission denied".
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 13, 2013, 06:10:00 pm
Quote from: stu.mahdi on September 13, 2013, 12:08:51 pm
Quote from: patwood on September 13, 2013, 11:11:51 am
Quote from: patwood on September 13, 2013, 10:09:02 am
Argh! Sorry, that's a tutorial for programming the SD card in a thread about the nand uboot version.  I'll have to root around for the nand programming post.


See http://www.cubieforums.com/index.php/topic,511.msg2408.html#msg2408.

i am a little confused ,this instruction is based on cb3.3  with uboot with fat16 support,  can you explain a boat this uboot and 3.4.43 kernel?


sed "s/3.3.0/3.4.43/"
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 14, 2013, 04:21:28 pm
I have uploaded CUBIUNTU 0.6.5 to http://dl.cubieforums.com/patwood/Cubiuntu0.6.5-a20.img.xz (http://dl.cubieforums.com/patwood/Cubiuntu0.6.5-a20.img.xz).  It has the following improvements over 0.6.4:

1. Working G2D and CedarX drivers (consider them experimental for now).
2. /etc/asound.conf set to default to HDMI.
3. rootwait added to root= line in uEnv.txt.

At this point, I don't expect to update the entire distro again; updates will be in the form of new kernels, drivers, config files, libraries, etc.

The 0.6.4 distro will go away soon.

Pat
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 14, 2013, 10:39:34 pm
Quote from: sanyigz on September 13, 2013, 03:32:34 pm
Quote from: vierax on September 13, 2013, 02:57:28 pmThis is a TV behaviour problem, I doubt you can fix that in the cubieboard.


I don't think so as cubieboard gets the focus through HDMI-CEC, but my PC doesn't do this, which doesn't supports CEC.

How can i disable the blue led? i've tried this "sudo echo 0 > /sys/class/leds/ph21:blue:led2/brightness" but i got "permission denied".

First, the file is /sys/class/leds/blue:ph21:led2/brightness

Second, a quick linux tutorial: when you do "sudo echo blah > somefile" the "> somefile" is interpreted by your shell, not root's (the redirection is performed by opening a file for writing an cloning it onto standard output and passed along in the process' runtime environment to sudo).  So if you're not logged in as root, you need to do:

sudo sh -c "echo 0 > /sys/class/leds/blue:ph21:led2/brightness"

which runs "sh -c blah" as root, and "sh -c blah" runs "blah" as a shell command.  In this case "blah" needs to be quoted as it contains spaces and special characters (i.e., ">").
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: pedro on September 14, 2013, 11:22:19 pm
Quote from: patwood on September 14, 2013, 04:21:28 pm
I have uploaded CUBIUNTU 0.6.5 to http://dl.cubieforums.com/patwood/Cubiuntu0.6.5-a20.img.xz (http://dl.cubieforums.com/patwood/Cubiuntu0.6.5-a20.img.xz).  It has the following improvements over 0.6.4:

1. Working G2D and CedarX drivers (consider them experimental for now).
2. /etc/asound.conf set to default to HDMI.
3. rootwait added to root= line in uEnv.txt.

At this point, I don't expect to update the entire distro again; updates will be in the form of new kernels, drivers, config files, libraries, etc.

The 0.6.4 distro will go away soon.

Pat


Hi
I installed version 0.6.5 to my sdcard with win32 disk imager but i get no image on my tv. I don't know what may be wrong
Thanks for your work
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: Billa on September 15, 2013, 03:17:08 am
Nothing on my monitor too Pat with 6.5 (HDMI).
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: mdevil666 on September 15, 2013, 09:20:23 am
Same problem here, no picture over HDMI.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: acamposxp on September 15, 2013, 11:32:59 am
Me too.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: Vladimir on September 15, 2013, 02:03:11 pm
Me too  :)
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 15, 2013, 02:08:56 pm
Okay, I can take a look at the distro later today.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: DigitalDaz on September 15, 2013, 02:15:34 pm
I'm not sure its actually even booting the USB receiver doesn't flash when I press keys like it usually does, I'm trying to find a serial cable now to see what I can see happening
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: vivusman on September 15, 2013, 03:31:26 pm
Seems like it doesn't boot at all. The red and green leds are ON, but the blue led is never blinking.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 15, 2013, 09:48:50 pm
Okay, I've fixed the problem and will be uploading a new image shortly.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 15, 2013, 10:20:04 pm
New image at http://dl.cubieforums.com/patwood/Cubiuntu0.6.5a-a20.img.xz (http://dl.cubieforums.com/patwood/Cubiuntu0.6.5a-a20.img.xz).  md5 checksum: bbd34eff5e5530ba5699ca026d62d4f4, compressed size: 779716712.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: mazut on September 15, 2013, 11:24:19 pm
patwood hi
you can do img without a X, gnome and etc?
only a standard, a fresh set of programs as just installed ubuntu server
only sshd
all modules
and kernel
without redundant software
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: vivusman on September 16, 2013, 03:38:39 am
Quote from: patwood on September 15, 2013, 10:20:04 pm
New image at http://dl.cubieforums.com/patwood/Cubiuntu0.6.5a-a20.img.xz (http://dl.cubieforums.com/patwood/Cubiuntu0.6.5a-a20.img.xz).  md5 checksum: bbd34eff5e5530ba5699ca026d62d4f4, compressed size: 779716712.

it works, it even auto-switched screen to 1920x1200p60 to match my monitor, but youtube videos are still quite laggy.

but webcam performance is finally very good. with other kernels i was getting around 1fps, now it's very smooth. time to start working on my opencv project!

patwood, thanks for your work!
i hope to see more kernel performance improvements in future. thank you!
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on September 16, 2013, 08:46:03 am
Quote from: mazut on September 15, 2013, 11:24:19 pm
patwood hi
you can do img without a X, gnome and etc?
only a standard, a fresh set of programs as just installed ubuntu server
only sshd
all modules
and kernel
without redundant software


hi patwood,
it seems a good idea , it will be so useful, it's highly appreciated.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on September 16, 2013, 08:57:18 am
Quote from: patwood on September 13, 2013, 06:10:00 pm
Quote from: stu.mahdi on September 13, 2013, 12:08:51 pm
Quote from: patwood on September 13, 2013, 11:11:51 am
Quote from: patwood on September 13, 2013, 10:09:02 am
Argh! Sorry, that's a tutorial for programming the SD card in a thread about the nand uboot version.  I'll have to root around for the nand programming post.


See http://www.cubieforums.com/index.php/topic,511.msg2408.html#msg2408.

i am a little confused ,this instruction is based on cb3.3  with uboot with fat16 support,  can you explain a boat this uboot and 3.4.43 kernel?


sed "s/3.3.0/3.4.43/"


this article is about uboot with fat partition, how can I make it by uboot nand-ext4 with i-cashe?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: acamposxp on September 16, 2013, 10:21:25 am
Perfect ... Now the way to a player or MediaCenter is closer, I think ... I hope the XBMC or PLEX are coming ...
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 16, 2013, 11:18:43 am
Quote from: mazut on September 15, 2013, 11:24:19 pm
patwood hi
you can do img without a X, gnome and etc?
only a standard, a fresh set of programs as just installed ubuntu server
only sshd
all modules
and kernel
without redundant software

I don't really build distributions.  The CUBIUNTU A20 image is simply the CUBIUNTU A10 image with an A20 kernel+modules+script.bin and a couple of packages added with apt-get.  Anyone can take an existing A10 image and replace the kernel with the A20 one.  Some packages might not work if the drivers aren't available, but you shouldn't have any problems with basic functionality.

There's an old linaro developer distro with the 3.3.0 kernel that I may update with the latest kernel in the next day or two.  It's a headless (no GUI) image with development tools installed.  It's based on this release from linaro.org : https://releases.linaro.org/13.04/ubuntu/quantal-images/developer.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 16, 2013, 11:21:45 am
Quote from: vivusman on September 16, 2013, 03:38:39 am
it works, it even auto-switched screen to 1920x1200p60 to match my monitor, but youtube videos are still quite laggy.

Don't know how youtube videos get played, but my understanding is that even for the A10, the current video HW drivers don't support in-browser playing, only standalone, full-screen video like Android.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 16, 2013, 11:41:35 am
Quote from: acamposxp on September 16, 2013, 10:21:25 am
Perfect ... Now the way to a player or MediaCenter is closer, I think ... I hope the XBMC or PLEX are coming ...

Sorry, but not from me -- I'm not a distro builder, I'm a kernel guy.

If you have an A10 distro with xbmc, you can try replacing the kernel with the A20 one I uploaded along with the A20 CUBIUNTU.  Lots of posts here on replacing the kernel.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: rainer on September 16, 2013, 12:51:44 pm
Hi Patwood !

Thanks for all, but the new 0.6.5.a Image switches to 1080p60 and i get the black screen with the two linux penguins on the upper left, the blue LED is blinking two times in circle, but then nothing...

can you please help?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: ikeeki on September 16, 2013, 04:12:46 pm
Does sound work for you guys???
Maybe I've missing something, been travelling these days.
the .img:
http://dl.cubieforums.com/patwood/Cubiuntu0.6.5a-a20.img.xz
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 16, 2013, 06:17:59 pm
Quote from: ikeeki on September 16, 2013, 04:12:46 pm
Does sound work for you guys???
Maybe I've missing something, been travelling these days.
the .img:
http://dl.cubieforums.com/patwood/Cubiuntu0.6.5a-a20.img.xz

There are two sound devices: sunxicodec (I believe this is the audio out on the CB) on card 0 and sunxisndhdmi on card 1.  If I set card 1 as the default in /etc/asound.conf, I can get sound from my video files on my hdmi monitor with

cvlc --codec cedar --vout cedarfb --no-osd -A alsa,none --alsa-audio-device default file.mp4
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: sanyigz on September 16, 2013, 07:09:57 pm
Which media players support cedar hw accelerated decode? For me VLC not worksif i start it from command line, it freezes after few seconds of video play, and i cant get back the desktop, just by logging in on SSH and kill VLC process.
How can i check that g2d is works or not?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 16, 2013, 07:19:35 pm
Quote from: rainer on September 16, 2013, 12:51:44 pm
Hi Patwood !

Thanks for all, but the new 0.6.5.a Image switches to 1080p60 and i get the black screen with the two linux penguins on the upper left, the blue LED is blinking two times in circle, but then nothing...

can you please help?

On the first partition there's a file called uEnv.txt.  The part of extraargs that does this:

disp.screen0_output_mode=EDID:1280x720p60

Sets the screen to whatever your monitor is specifying as its supported resolution, and only if the kernel doesn't get a resolution it can handle does it fall back on 1280x720p60.  If you are having problems with the resolution, try removing the EDID: part:

disp.screen0_output_mode=1280x720p60

This will force the resolution to 1280x720.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 16, 2013, 07:30:23 pm
Quote from: stu.mahdi on September 16, 2013, 08:57:18 am
Quote from: patwood on September 13, 2013, 06:10:00 pm
Quote from: stu.mahdi on September 13, 2013, 12:08:51 pm
Quote from: patwood on September 13, 2013, 11:11:51 am
Quote from: patwood on September 13, 2013, 10:09:02 am
Argh! Sorry, that's a tutorial for programming the SD card in a thread about the nand uboot version.  I'll have to root around for the nand programming post.


See http://www.cubieforums.com/index.php/topic,511.msg2408.html#msg2408.

i am a little confused ,this instruction is based on cb3.3  with uboot with fat16 support,  can you explain a boat this uboot and 3.4.43 kernel?


sed "s/3.3.0/3.4.43/"


this article is about uboot with fat partition, how can I make it by uboot nand-ext4 with i-cashe?

The boot0/1 nand bootloader requires uboot to be on a FAT partition. You can put the kernel on ext4 and have uboot load it from there, but uboot must be on the first partition, and it must be a FAT file system.

Read this: http://rhombus-tech.net/allwinner_a10/a10_boot_process
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: sbfreddie on September 16, 2013, 10:11:29 pm
Patwood:
I am trying to get this latest release to boot from a SATA drive but have so far been unable to get it to boot from the SATA.  Can you give directions for setting up the boot properly to boot from the SATA disk.

Thanks,
Freddie
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 16, 2013, 10:56:59 pm
Quote from: sbfreddie on September 16, 2013, 10:11:29 pm
Patwood:
I am trying to get this latest release to boot from a SATA drive but have so far been unable to get it to boot from the SATA.  Can you give directions for setting up the boot properly to boot from the SATA disk.

Thanks,
Freddie

You can't boot an a10 or a20 cpu from sata.  Uboot and the kernel must be on nand or mmc with your root file system on sata.  Same goes for any USB storage.  See http://rhombus-tech.net/allwinner_a10/a10_boot_process
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: Billa on September 17, 2013, 09:09:45 am
Pat, just out of curiosity, could you please tell what was broken in the image you uploaded the first time and how did you fix it? (the no-display thingie).
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: sbfreddie on September 17, 2013, 11:48:51 am
Quote from: patwood on September 16, 2013, 10:56:59 pm
Quote from: sbfreddie on September 16, 2013, 10:11:29 pm
Patwood:
I am trying to get this latest release to boot from a SATA drive but have so far been unable to get it to boot from the SATA.  Can you give directions for setting up the boot properly to boot from the SATA disk.

Thanks,
Freddie

You can't boot an a10 or a20 cpu from sata.  Uboot and the kernel must be on nand or mmc with your root file system on sata.  Same goes for any USB storage.  See http://rhombus-tech.net/allwinner_a10/a10_boot_process


Pat:
I understand from an earlier post that you said the same thing.

QuoteFollowing Pat's advice, I copied the kernel to the first partition of the sd card and changed the uEnv.txt file to set the root to /dev/sda2 and the system now runs off the SATA drive.  Thanks!


I used the above advice and it did not work.  It seems that uboot is looking for the uEnv.txt file somewhere other than on the first mmc partition, here is the output from the monitor port:

QuoteU-Boot SPL 2013.04-07297-gc8f265c-dirty (Jul 30 2013 - 01:43:52)
Board: Cubieboard2
DRAM: 1024MB
CPU: 960000000Hz, AXI/AHB/APB: 3/2/2
SUNXI SD/MMC: 0


U-Boot 2013.07-07795-g645e901-dirty (Aug 18 2013 - 16:15:54) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
Board: Cubieboard2
I2C:   ready
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   emac
Hit any key to stop autoboot:  1 ... 0
reading uEnv.txt
137 bytes read in 3 ms (43.9 KiB/s)
Loaded environment from uEnv.txt
** Unrecognized filesystem type **
** File not found boot/boot.scr **
** File not found boot.scr **
** File not found /boot/script.bin **
** Unrecognized filesystem type **
** File not found /script.bin **
sun7i#.


The script.bin, uImage, and uEnv.txt from this new distribution are on the first partition of the mmc which is formatted in FAT32.  The other partition is ext4 with nothing on it.

Thanks,
Freddie
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: PathFinder on September 17, 2013, 04:13:56 pm
Hi patwood

how i configure LIRC in cubiuntu ? is the kernel exist in 0.6.5a ?

i found some compiled kernel files in 'kernel/drivers/staging/media/lirc' but i don't know how do i use them !
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 17, 2013, 11:34:36 pm
Quote from: Billa on September 17, 2013, 09:09:45 am
Pat, just out of curiosity, could you please tell what was broken in the image you uploaded the first time and how did you fix it? (the no-display thingie).


Sure.  There's a bug in uboot that sometimes causes it to fail loading large files from ext2/ext4 file systems (guess what -- the kernel is about the biggest thing uboot will ever load).  It's elusive and I haven't seen it on a10 yet.  Simply copying the file to something else and renaming it has fixed the problem every time (not that this is guaranteed to work -- the occurrence is low enough that the probability of it occurring twice in a row are really small).  Diagnosing requires a serial cable, since uboot drops into a command line mode if it can't load the kernel, and fsck on the partition doesn't report any errors.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 17, 2013, 11:51:53 pm
Quote from: sbfreddie on September 17, 2013, 11:48:51 am
I used the above advice and it did not work.  It seems that uboot is looking for the uEnv.txt file somewhere other than on the first mmc partition, here is the output from the monitor port:

QuoteU-Boot SPL 2013.04-07297-gc8f265c-dirty (Jul 30 2013 - 01:43:52)
Board: Cubieboard2
DRAM: 1024MB
CPU: 960000000Hz, AXI/AHB/APB: 3/2/2
SUNXI SD/MMC: 0


U-Boot 2013.07-07795-g645e901-dirty (Aug 18 2013 - 16:15:54) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
Board: Cubieboard2
I2C:   ready
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   emac
Hit any key to stop autoboot:  1 ... 0
reading uEnv.txt
137 bytes read in 3 ms (43.9 KiB/s)
Loaded environment from uEnv.txt
** Unrecognized filesystem type **
** File not found boot/boot.scr **
** File not found boot.scr **
** File not found /boot/script.bin **
** Unrecognized filesystem type **
** File not found /script.bin **
sun7i#.


The script.bin, uImage, and uEnv.txt from this new distribution are on the first partition of the mmc which is formatted in FAT32.  The other partition is ext4 with nothing on it.

Thanks,
Freddie

uEnv.txt is loading fine.  That's what the "137 bytes read in 3 ms (43.9 KiB/s)" message means.  The problem is that it's not loading script.bin (the "File not found .../script.bin" messages).

In the uEnv.txt file, there's a line that says: "partition=0:2"; change the 0:2 to 0:1.  This tells uboot where to look for script.bin and whatever is specified on the "kernel=" line in uEnv.txt.  Also make sure the "root=
" line specifies the correct SATA partition.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on September 18, 2013, 12:01:32 am
Quote from: patwood on September 16, 2013, 11:18:43 am
Quote from: mazut on September 15, 2013, 11:24:19 pm
patwood hi
you can do img without a X, gnome and etc?
only a standard, a fresh set of programs as just installed ubuntu server
only sshd
all modules
and kernel
without redundant software

I don't really build distributions.  The CUBIUNTU A20 image is simply the CUBIUNTU A10 image with an A20 kernel+modules+script.bin and a couple of packages added with apt-get.  Anyone can take an existing A10 image and replace the kernel with the A20 one.  Some packages might not work if the drivers aren't available, but you shouldn't have any problems with basic functionality.

There's an old linaro developer distro with the 3.3.0 kernel that I may update with the latest kernel in the next day or two.  It's a headless (no GUI) image with development tools installed.  It's based on this release from linaro.org : https://releases.linaro.org/13.04/ubuntu/quantal-images/developer.


hi patwood
when do you think can upload new image?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 18, 2013, 01:11:38 am
Quote from: stu.mahdi on September 18, 2013, 12:01:32 am
Quote from: patwood on September 16, 2013, 11:18:43 am
Quote from: mazut on September 15, 2013, 11:24:19 pm
patwood hi
you can do img without a X, gnome and etc?
only a standard, a fresh set of programs as just installed ubuntu server
only sshd
all modules
and kernel
without redundant software

I don't really build distributions.  The CUBIUNTU A20 image is simply the CUBIUNTU A10 image with an A20 kernel+modules+script.bin and a couple of packages added with apt-get.  Anyone can take an existing A10 image and replace the kernel with the A20 one.  Some packages might not work if the drivers aren't available, but you shouldn't have any problems with basic functionality.

There's an old linaro developer distro with the 3.3.0 kernel that I may update with the latest kernel in the next day or two.  It's a headless (no GUI) image with development tools installed.  It's based on this release from linaro.org : https://releases.linaro.org/13.04/ubuntu/quantal-images/developer.


hi patwood
when do you think can upload new image?


Unfortunately, I've been very busy lately getting ready to go on holiday, and I just don't have time to put this together and test it.

However replacing the kernel and modules is simple; you don't have to remove the old ones if you want to retain a backup.  There are descriptions in a couple of places.  Here: http://www.cubieforums.com/index.php/topic,757.msg4419.html#msg4419 (http://www.cubieforums.com/index.php/topic,757.msg4419.html#msg4419) or here: http://www.cubieforums.com/index.php/topic,528.msg4195.html#msg4195 (http://www.cubieforums.com/index.php/topic,528.msg4195.html#msg4195)
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 18, 2013, 01:50:00 am
There's an A20 kernel update here: http://dl.cubieforums.com/patwood/A20-kernel-3.4.43.tar.gz (http://dl.cubieforums.com/patwood/A20-kernel-3.4.43.tar.gz).

Information about it here: http://www.cubieforums.com/index.php/topic,757.msg4550.html#msg4550 (http://www.cubieforums.com/index.php/topic,757.msg4550.html#msg4550).

The main difference is it improves video decoding speed while not affecting Mali performance.  If you're not using video, ignore it; if you're not using Mali, just copy over your script.bin with the one in /boot/script-cubie-A20.bin.

As I'm very busy now getting ready to go away on holiday, I can't make a new distro until I get back.  Hopefully, this will hold you all until then.

Pat
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: mihu on September 18, 2013, 04:13:39 am
Pat,

thank you for all your work on the Cubieboard, and thank you very much for providing great instructions with all your work. Enjoy your holiday!

Michael
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: DigitalDaz on September 18, 2013, 04:59:20 am
Quote from: patwood
I don't really build distributions.


You should  :P
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: sbfreddie on September 18, 2013, 11:50:50 am
Quote from: patwood on September 17, 2013, 11:51:53 pm
Quote from: sbfreddie on September 17, 2013, 11:48:51 am
I used the above advice and it did not work.  It seems that uboot is looking for the uEnv.txt file somewhere other than on the first mmc partition, here is the output from the monitor port:

QuoteU-Boot SPL 2013.04-07297-gc8f265c-dirty (Jul 30 2013 - 01:43:52)
Board: Cubieboard2
DRAM: 1024MB
CPU: 960000000Hz, AXI/AHB/APB: 3/2/2
SUNXI SD/MMC: 0


U-Boot 2013.07-07795-g645e901-dirty (Aug 18 2013 - 16:15:54) Allwinner Technology

CPU:   Allwinner A20 (SUN7I)
Board: Cubieboard2
I2C:   ready
DRAM:  1 GiB
MMC:   SUNXI SD/MMC: 0
*** Warning - bad CRC, using default environment

In:    serial
Out:   serial
Err:   serial
Net:   emac
Hit any key to stop autoboot:  1 ... 0
reading uEnv.txt
137 bytes read in 3 ms (43.9 KiB/s)
Loaded environment from uEnv.txt
** Unrecognized filesystem type **
** File not found boot/boot.scr **
** File not found boot.scr **
** File not found /boot/script.bin **
** Unrecognized filesystem type **
** File not found /script.bin **
sun7i#.


The script.bin, uImage, and uEnv.txt from this new distribution are on the first partition of the mmc which is formatted in FAT32.  The other partition is ext4 with nothing on it.

Thanks,
Freddie

uEnv.txt is loading fine.  That's what the "137 bytes read in 3 ms (43.9 KiB/s)" message means.  The problem is that it's not loading script.bin (the "File not found .../script.bin" messages).

In the uEnv.txt file, there's a line that says: "partition=0:2"; change the 0:2 to 0:1.  This tells uboot where to look for script.bin and whatever is specified on the "kernel=" line in uEnv.txt.  Also make sure the "root=
" line specifies the correct SATA partition.


Pat:

Thank you very much.

Freddie
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 18, 2013, 04:03:21 pm
Quote from: DigitalDaz on September 18, 2013, 04:59:20 am
Quote from: patwood
I don't really build distributions.


You should  :P

Too much work  ;)
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: Billa on September 18, 2013, 04:28:32 pm
Enjoy your vacations man, God knows you deserve it.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 18, 2013, 09:39:54 pm
Anyone looking to build this kernel can get the sources from my github repo: https://github.com/patrickhwood/linux-sunxi/tree/cedar-sunxi-3.4.43 (https://github.com/patrickhwood/linux-sunxi/tree/cedar-sunxi-3.4.43).

Pat
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: drkbcn on September 19, 2013, 03:10:58 pm
Quote from: patwood on September 18, 2013, 09:39:54 pm
Anyone looking to build this kernel can get the sources from my github repo: https://github.com/patrickhwood/linux-sunxi/tree/cedar-sunxi-3.4.43 (https://github.com/patrickhwood/linux-sunxi/tree/cedar-sunxi-3.4.43).

Pat


Patwood, git is giving an error when cloning: "refs not found".
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on September 19, 2013, 03:59:28 pm
thanks patwood  and Have a happy holiday

i have some questions about gpio :
1-  can i map usb ports to gpio pin headers  or no ?
2- can i use gpio-sunxi to mange power of usb by controlling usb_drv_vbus_gpio (ph03)?
now I am using another gpio (pg03) and a MOSFET to control the power of my usb device.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: magno on September 20, 2013, 10:15:47 pm
Can I do

apt-get update
apt-get upgrade


Last time I do that my system freezes on initial tuks...
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: mazut on September 22, 2013, 07:18:36 am
Quote from: patwood on September 18, 2013, 01:11:38 am
Quote from: stu.mahdi on September 18, 2013, 12:01:32 am
Quote from: patwood on September 16, 2013, 11:18:43 am
Quote from: mazut on September 15, 2013, 11:24:19 pm
patwood hi
you can do img without a X, gnome and etc?
only a standard, a fresh set of programs as just installed ubuntu server
only sshd
all modules
and kernel
without redundant software

I don't really build distributions.  The CUBIUNTU A20 image is simply the CUBIUNTU A10 image with an A20 kernel+modules+script.bin and a couple of packages added with apt-get.  Anyone can take an existing A10 image and replace the kernel with the A20 one.  Some packages might not work if the drivers aren't available, but you shouldn't have any problems with basic functionality.

There's an old linaro developer distro with the 3.3.0 kernel that I may update with the latest kernel in the next day or two.  It's a headless (no GUI) image with development tools installed.  It's based on this release from linaro.org : https://releases.linaro.org/13.04/ubuntu/quantal-images/developer.


hi patwood
when do you think can upload new image?


Unfortunately, I've been very busy lately getting ready to go on holiday, and I just don't have time to put this together and test it.

However replacing the kernel and modules is simple; you don't have to remove the old ones if you want to retain a backup.  There are descriptions in a couple of places.  Here: http://www.cubieforums.com/index.php/topic,757.msg4419.html#msg4419 (http://www.cubieforums.com/index.php/topic,757.msg4419.html#msg4419) or here: http://www.cubieforums.com/index.php/topic,528.msg4195.html#msg4195 (http://www.cubieforums.com/index.php/topic,528.msg4195.html#msg4195)


in linaro-quantal-developer /etc/network/interfaces none eth0 item
i dont connect to arm box via network, dhcp eth0 not listen
and i not have USB keyboard to edit interfaces file
how i can to connect to device?
Are there emulate (like vmware) arm box img for win7?

patwood, beseech, make ultra-minimal img for cubieboard2 without X
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: sanyigz on September 22, 2013, 09:31:35 am
Is there any way to use apt repositories that have not so ancient packages like the default has? I want to install cryptsetup 1.6 (because of the benchmark functionality), but 1.4 is in repository, and it have so many dependencies that i can't install manually.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on September 22, 2013, 03:29:05 pm
Quote from: stu.mahdi on September 19, 2013, 03:59:28 pm
thanks patwood  and Have a happy holiday

i have some questions about gpio :
1-  can i map usb ports to gpio pin headers  or no ?
2- can i use gpio-sunxi to mange power of usb by controlling usb_drv_vbus_gpio (ph03)?
now I am using another gpio (pg03) and a MOSFET to control the power of my usb device.


nothing ?? ...
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 22, 2013, 07:10:03 pm
Quote from: drkbcn on September 19, 2013, 03:10:58 pm
Quote from: patwood on September 18, 2013, 09:39:54 pm
Anyone looking to build this kernel can get the sources from my github repo: https://github.com/patrickhwood/linux-sunxi/tree/cedar-sunxi-3.4.43 (https://github.com/patrickhwood/linux-sunxi/tree/cedar-sunxi-3.4.43).

Pat


Patwood, git is giving an error when cloning: "refs not found".

You probably  need to pull from https://github.com/patrickhwood/linux-sunxi and checkout the branch.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 22, 2013, 07:12:25 pm
Quote from: magno on September 20, 2013, 10:15:47 pm
Can I do

apt-get update
apt-get upgrade


Last time I do that my system freezes on initial tuks...

apt-get update  --- okay
apt-get upgrade --- bad bad bad!
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: magno on September 22, 2013, 10:29:25 pm
Quote from: patwood on September 22, 2013, 07:12:25 pm
Quote from: magno on September 20, 2013, 10:15:47 pm
Can I do

apt-get update
apt-get upgrade


Last time I do that my system freezes on initial tuks...

apt-get update  --- okay
apt-get upgrade --- bad bad bad!


So, it's safe to "apt-get install" things like apache server, java sdk, tomcat...
I want to give a try on XMBC and Plex MC. What repos should I use? Need to download the DEB file and install?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 22, 2013, 10:51:54 pm
Quote from: mazut on September 22, 2013, 07:18:36 am
in linaro-quantal-developer /etc/network/interfaces none eth0 item
i dont connect to arm box via network, dhcp eth0 not listen
and i not have USB keyboard to edit interfaces file
how i can to connect to device?
Are there emulate (like vmware) arm box img for win7?

patwood, beseech, make ultra-minimal img for cubieboard2 without X

You can run an x86 linux with vmware, mount the sdcard, and edit anything.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on September 22, 2013, 10:57:59 pm
Quote from: magno on September 22, 2013, 10:29:25 pm
Quote from: patwood on September 22, 2013, 07:12:25 pm
Quote from: magno on September 20, 2013, 10:15:47 pm
Can I do

apt-get update
apt-get upgrade


Last time I do that my system freezes on initial tuks...

apt-get update  --- okay
apt-get upgrade --- bad bad bad!


So, it's safe to "apt-get install" things like apache server, java sdk, tomcat...
I want to give a try on XMBC and Plex MC. What repos should I use? Need to download the DEB file and install?

yes.  update and install are fine. they work off of ubuntu arm repositories.  upgrade will usually perform a kernel upgrade in addition to other packages, which will trash your existing kernel.  that's bad, because your current kernel is custom and ubuntu doesn't support allwinner CPUs.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: ararog on September 26, 2013, 02:35:51 pm
No matter what I do, I can't get my RTL8188CUS dongle to connect to accesspoint, the dongle is detected as lsusb is reporting, I'm specifying the correct SSID/key, but nothing happens.

Updates:

1. In order to get wlan0 interface working on Cubiuntu 0.6.4, I had to do what is described here:

http://askubuntu.com/questions/211347/networkmanager-refuses-to-manage-my-wlan-interface

2. lxkeymap is crashing on startup
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: lexxksb on September 27, 2013, 04:32:26 am
Does XBMC on this image? Someone installed?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on September 27, 2013, 05:38:13 pm
Quote from: patwood on September 16, 2013, 07:30:23 pm
Quote from: stu.mahdi on September 16, 2013, 08:57:18 am
Quote from: patwood on September 13, 2013, 06:10:00 pm
Quote from: stu.mahdi on September 13, 2013, 12:08:51 pm
Quote from: patwood on September 13, 2013, 11:11:51 am
Quote from: patwood on September 13, 2013, 10:09:02 am
Argh! Sorry, that's a tutorial for programming the SD card in a thread about the nand uboot version.  I'll have to root around for the nand programming post.


See http://www.cubieforums.com/index.php/topic,511.msg2408.html#msg2408.

i am a little confused ,this instruction is based on cb3.3  with uboot with fat16 support,  can you explain a boat this uboot and 3.4.43 kernel?


sed "s/3.3.0/3.4.43/"


this article is about uboot with fat partition, how can I make it by uboot nand-ext4 with i-cashe?

The boot0/1 nand bootloader requires uboot to be on a FAT partition. You can put the kernel on ext4 and have uboot load it from there, but uboot must be on the first partition, and it must be a FAT file system.

Read this: http://rhombus-tech.net/allwinner_a10/a10_boot_process


i use
uboot   :      http://dl.cubieforums.com/patwood/u-boot-nand-ext4.bin.gz
kernel   :     http://dl.cubieforums.com/patwood/A20-kernel-3.4.43.tar.gz

but boot fails because:


<6>Booting Linux on physical CPU 0
<6>Initializing cgroup subsys cpuset
<6>Initializing cgroup subsys cpu
<5>Linux version 3.4.43-sun7i+ (pwood@pwood-laptop.patrickhwood.dyndns.org) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #112 SMP PREEMPT Wed Sep 18 00:45:49 EDT 2013
CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache

Error: unrecognized/unsupported machine ID (r1 = 0x00000f35).


Error: unrecognized/unsupported machine ID (r1 = 0x00000f35).

Available machine support:

ID (hex)        NAME
Available machine support:

ID (hex)        NAME
000010bb        sun7i
000010bb        sun7i
0000102a        sun5i
0000102a        sun5i
00001008        sun4i
00001008        sun4i

Please check your kernel config and/or bootloader.

Please check your kernel config and/or bootloader.

Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: magno on September 29, 2013, 02:32:17 pm
Quote from: ararog on September 26, 2013, 02:35:51 pm
No matter what I do, I can't get my RTL8188CUS dongle to connect to accesspoint, the dongle is detected as lsusb is reporting, I'm specifying the correct SSID/key, but nothing happens.

Updates:

1. In order to get wlan0 interface working on Cubiuntu 0.6.4, I had to do what is described here:

http://askubuntu.com/questions/211347/networkmanager-refuses-to-manage-my-wlan-interface

2. lxkeymap is crashing on startup


Well, I will post here my adventures in RTL8188CUS dongle world:

First, try to see if the driver is installed:

linaro@cubieboard:~$ lsmod

In my distro ( http://www.cubieforums.com/index.php/topic,807.0.html ) it's the 8192cu driver.

Next step, verify the USB bus:


linaro@cubieboard:~$ lsusb
Bus 004 Device 002: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS 802.11n WLAN Adapter
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub


Seems all is going fine untill now !

Lets see the interface:


linaro@cubieboard:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 02:18:04:42:02:20
          inet addr:192.168.25.23  Bcast:192.168.25.255  Mask:255.255.255.0
          inet6 addr: fe80::18:4ff:fe42:220/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:603 errors:0 dropped:0 overruns:0 frame:0
          TX packets:386 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:109436 (109.4 KB)  TX bytes:65767 (65.7 KB)
          Interrupt:87 Base address:0x4000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:480 (480.0 B)  TX bytes:480 (480.0 B)


Oops! wlan0 is not here !
Try this:


linaro@cubieboard:~$ iwconfig

wlan0     unassociated  Nickname:"<WIFI@REALTEK>"
          Mode:Auto  Frequency=2.412 GHz  Access Point: Not-Associated
          Sensitivity:0/0
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:off
          Power Management:off
          Link Quality=0/100  Signal level=0 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0


Wee need wifi tools!


linaro@cubieboard:~$ apt-get update
linaro@cubieboard:~$ apt-get install wireless-tools wpasupplicant



Check if wlan0 is working:


root@cubieboard:~# iwlist wlan0 scan
wlan0     Scan completed :
          Cell 01 - Address: 00:D9:98:00:62:99
                    ESSID:"HomeAP"
                    Protocol:IEEE 802.11bg
                    Mode:Master
                    Frequency:2.412 GHz (Channel 1)
                    Encryption key:on
                    Bit Rates:54 Mb/s
                    Extra:wpa_ie=88776655f20101000050f20201000050f2020100005099887766
                    IE: WPA Version 1
                        Group Cipher : TKIP
                        Pairwise Ciphers (1) : TKIP
                        Authentication Suites (1) : PSK
                    Quality=100/100  Signal level=-71 dBm


Generate your passphrase hash:


linaro@cubieboard:~$ wpa_passphrase THE_ACCES_POINT_NAME MY_PASSWORD


Example:


linaro@cubieboard:~$ wpa_passphrase HomeAP MyVoiceIsMyPassword


The hash:


network={
        ssid="HomeAP"
        #psk="MyVoiceIsMyPassword"
        psk=bb0b83bc262d39fb4ed122234567b2a3e1f347cfb692a7129178a65045ebeb1c
}


Edit /etc/network/interfaces


linaro@cubieboard:~$ vim /etc/network/interfaces


Add this:


auto wlan0
iface wlan0 inet dhcp
wireless-essid "HomeAP"
wireless-key bb0b83bc262d39fb4ed122234567b2a3e1f347cfb692a7129178a65045ebeb1c


This point I do a reboot. Don't know is realy necessary.
Set the wlan0 up


linaro@cubieboard:~$ ifconfig wlan0 up


A little check:

linaro@cubieboard:~$ dmesg

...
[ 3238.438525] ADDRCONF(NETDEV_UP): wlan0: link is not ready
...



root@cubieboard:~# ifup wlan0
Internet Systems Consortium DHCP Client 4.2.4
Copyright 2004-2012 Internet Systems Consortium.
All rights reserved.
For info, please visit https://www.isc.org/software/dhcp/

Listening on LPF/wlan0/00:00:b8:18:82:27
Sending on   LPF/wlan0/00:00:b8:18:82:27
Sending on   Socket/fallback
DHCPDISCOVER on wlan0 to 255.255.255.255 port 67 interval 3 (xid=0x245c8fc0)


The "DHCPDISCOVER" enter in a long loop.. So, I CTRL+C the process...


root@cubieboard:~# dhclient wlan0


Wait this for a long, long time .... another boring loop... another CTRL+C
Edit (create) the /etc/wpa_supplicant/wpa_supplicant.conf file:


root@cubieboard:~# vim /etc/wpa_supplicant/wpa_supplicant.conf


Add (change for ) this:


network={
        ssid="HomeAP"
scan_ssid=1
proto=RSN
key_mgmt=WPA-PSK
pairwise=CCMP
group=CCMP
        #psk="MyVoiceIsMyPassword"
        psk=bb0b83bc262d39fb4ed122234567b2a3e1f347cfb692a7129178a65045ebeb1c
}


Try this:


root@cubieboard:~# wpa_supplicant  -B  -iwlan0 -c/etc/wpa_supplicant/wpa_supplicant.conf


This give me a lot of errors, but when I check dmesg:


root@cubieboard:~# dmesg
...
[ 3238.438525] ADDRCONF(NETDEV_UP): wlan0: link is not ready
[ 4012.585304] ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
[ 4022.832512] wlan0: no IPv6 routers present


Strange... lets see wlan0 :


root@cubieboard:~# iwconfig wlan0

wlan0     IEEE 802.11bgn  ESSID:"HomeAP"  Nickname:"<WIFI@REALTEK>"
          Mode:Managed  Frequency:2.442 GHz  Access Point: 00:00:12:96:A5:00
          Bit Rate:150 Mb/s   Sensitivity:0/0
          Retry:off   RTS thr:off   Fragment thr:off
          Encryption key:****-****-****-****-****-****-****-****   Security mode:open
          Power Management:off
          Link Quality=100/100  Signal level=-45 dBm  Noise level=0 dBm
          Rx invalid nwid:0  Rx invalid crypt:0  Rx invalid frag:0
          Tx excessive retries:0  Invalid misc:0   Missed beacon:0


Connected !!!!
Lets check address :


root@cubieboard:~# dhclient wlan0


No more boring infinite loop !! (takes a little time)


root@cubieboard:~# ip address show


4: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP qlen 1000
    link/ether 00:00:b8:18:82:27 brd ff:ff:ff:ff:ff:ff
    inet 192.168.25.22/24 brd 192.168.25.255 scope global wlan0
    inet6 fe80::200:b8ff:fe18:8227/64 scope link  valid_lft forever preferred_lft forever


Voilà !!! check your AP DHCP table.

Don't forget to verify the resolv.conf :


root@cubieboard:~# vim /etc/resolv.conf
domain home
search home
nameserver 192.168.25.1   <<<--- your AP address


Considerations:
1) I think my success was an ACCIDENT !
2) When reboot, I need to call wpa_supplicant and dhclient again ( somebody help me )
3) This tutorial is a "try and error" method. I need somebody to put only the necessary stuff here.
4) Need to auto connect (no supplicant and dhclient calls )
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on October 01, 2013, 06:21:30 pm
Quote from: stu.mahdi on September 27, 2013, 05:38:13 pm
i use
uboot   :      http://dl.cubieforums.com/patwood/u-boot-nand-ext4.bin.gz
kernel   :     http://dl.cubieforums.com/patwood/A20-kernel-3.4.43.tar.gz

but boot fails because:

<snip>

Error: unrecognized/unsupported machine ID (r1 = 0x00000f35).


Error: unrecognized/unsupported machine ID (r1 = 0x00000f35).

Available machine support:

ID (hex)        NAME
Available machine support:

ID (hex)        NAME
000010bb        sun7i
000010bb        sun7i
0000102a        sun5i
0000102a        sun5i
00001008        sun4i
00001008        sun4i

Please check your kernel config and/or bootloader.

Please check your kernel config and/or bootloader.


Put the line

machid=0x10bb


in your uEnv.txt on /dev/nand1.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on October 01, 2013, 07:48:00 pm
Quote from: stu.mahdi on September 19, 2013, 03:59:28 pm
thanks patwood  and Have a happy holiday

i have some questions about gpio :
1-  can i map usb ports to gpio pin headers  or no ?

According to this: http://linux-sunxi.org/A10/PIO no.

Quote
2- can i use gpio-sunxi to mange power of usb by controlling usb_drv_vbus_gpio (ph03)?
now I am using another gpio (pg03) and a MOSFET to control the power of my usb device.

I don't see why not.  You may need to remove or modify the usb_drv_vbus_gpio entry in script.bin so it doesn't get driven by the USB kernel code.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on October 02, 2013, 12:27:53 pm
Quote from: patwood on October 01, 2013, 07:48:00 pm
Quote from: stu.mahdi on September 19, 2013, 03:59:28 pm
thanks patwood  and Have a happy holiday

i have some questions about gpio :
1-  can i map usb ports to gpio pin headers  or no ?

According to this: http://linux-sunxi.org/A10/PIO no.

Quote
2- can i use gpio-sunxi to mange power of usb by controlling usb_drv_vbus_gpio (ph03)?
now I am using another gpio (pg03) and a MOSFET to control the power of my usb device.

I don't see why not.  You may need to remove or modify the usb_drv_vbus_gpio entry in script.bin so it doesn't get driven by the USB kernel code.


good news from Patric. came back.
I hop you had a good holiday.
thanks
please, i am waiting about uboot and kernel machine Id difference, please

Quote
i use
uboot   :      http://dl.cubieforums.com/patwood/u-boot-nand-ext4.bin.gz
kernel   :     http://dl.cubieforums.com/patwood/A20-kernel-3.4.43.tar.gz

but boot fails because:


<6>Booting Linux on physical CPU 0
<6>Initializing cgroup subsys cpuset
<6>Initializing cgroup subsys cpu
<5>Linux version 3.4.43-sun7i+ (pwood@pwood-laptop.patrickhwood.dyndns.org) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #112 SMP PREEMPT Wed Sep 18 00:45:49 EDT 2013
CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache

Error: unrecognized/unsupported machine ID (r1 = 0x00000f35).


Error: unrecognized/unsupported machine ID (r1 = 0x00000f35).

Available machine support:

ID (hex)        NAME
Available machine support:

ID (hex)        NAME
000010bb        sun7i
000010bb        sun7i
0000102a        sun5i
0000102a        sun5i
00001008        sun4i
00001008        sun4i

Please check your kernel config and/or bootloader.

Please check your kernel config and/or bootloader.

Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on October 02, 2013, 02:04:10 pm
Quote from: patwood on September 18, 2013, 01:11:38 am
Quote from: stu.mahdi on September 18, 2013, 12:01:32 am
Quote from: patwood on September 16, 2013, 11:18:43 am
Quote from: mazut on September 15, 2013, 11:24:19 pm
patwood hi
you can do img without a X, gnome and etc?
only a standard, a fresh set of programs as just installed ubuntu server
only sshd
all modules
and kernel
without redundant software

I don't really build distributions.  The CUBIUNTU A20 image is simply the CUBIUNTU A10 image with an A20 kernel+modules+script.bin and a couple of packages added with apt-get.  Anyone can take an existing A10 image and replace the kernel with the A20 one.  Some packages might not work if the drivers aren't available, but you shouldn't have any problems with basic functionality.

There's an old linaro developer distro with the 3.3.0 kernel that I may update with the latest kernel in the next day or two.  It's a headless (no GUI) image with development tools installed.  It's based on this release from linaro.org : https://releases.linaro.org/13.04/ubuntu/quantal-images/developer.


hi patwood
when do you think can upload new image?


Unfortunately, I've been very busy lately getting ready to go on holiday, and I just don't have time to put this together and test it.

However replacing the kernel and modules is simple; you don't have to remove the old ones if you want to retain a backup.  There are descriptions in a couple of places.  Here: http://www.cubieforums.com/index.php/topic,757.msg4419.html#msg4419 (http://www.cubieforums.com/index.php/topic,757.msg4419.html#msg4419) or here: http://www.cubieforums.com/index.php/topic,528.msg4195.html#msg4195 (http://www.cubieforums.com/index.php/topic,528.msg4195.html#msg4195)


New image is uploaded.  See http://www.cubieforums.com/index.php/topic,838.0.html (http://www.cubieforums.com/index.php/topic,838.0.html) for details.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on October 02, 2013, 02:48:18 pm
Quote from: stu.mahdi on October 02, 2013, 12:27:53 pm

good news from Patric. came back.
I hop you had a good holiday.
thanks
please, i am waiting about uboot and kernel machine Id difference, please

Quote
i use
uboot   :      http://dl.cubieforums.com/patwood/u-boot-nand-ext4.bin.gz
kernel   :     http://dl.cubieforums.com/patwood/A20-kernel-3.4.43.tar.gz

but boot fails because:


<6>Booting Linux on physical CPU 0
<6>Initializing cgroup subsys cpuset
<6>Initializing cgroup subsys cpu
<5>Linux version 3.4.43-sun7i+ (pwood@pwood-laptop.patrickhwood.dyndns.org) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #112 SMP PREEMPT Wed Sep 18 00:45:49 EDT 2013
CPU: ARMv7 Processor [410fc074] revision 4 (ARMv7), cr=10c5387d
CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache

Error: unrecognized/unsupported machine ID (r1 = 0x00000f35).


Error: unrecognized/unsupported machine ID (r1 = 0x00000f35).

Available machine support:

ID (hex)        NAME
Available machine support:

ID (hex)        NAME
000010bb        sun7i
000010bb        sun7i
0000102a        sun5i
0000102a        sun5i
00001008        sun4i
00001008        sun4i

Please check your kernel config and/or bootloader.

Please check your kernel config and/or bootloader.




Did you read my previous message?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on October 02, 2013, 03:30:07 pm
Quote

Did you read my previous message?


message? i am sorry, which message?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on October 02, 2013, 04:47:02 pm
Quote from: stu.mahdi on October 02, 2013, 03:30:07 pm
Quote

Did you read my previous message?


message? i am sorry, which message?

http://www.cubieforums.com/index.php/topic,729.msg4848.html#msg4848
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on October 02, 2013, 05:57:35 pm
Quote from: patwood on October 02, 2013, 04:47:02 pm
Quote from: stu.mahdi on October 02, 2013, 03:30:07 pm
Quote

Did you read my previous message?


message? i am sorry, which message?

http://www.cubieforums.com/index.php/topic,729.msg4848.html#msg4848

prefect ,thanks ,
another question, when i try to build your kernel with your configuration ,  there was this  error:


drivers/md/dm-raid1.c:8:27: fatal error: dm-bio-record.h: No such file or directory
compilation terminated.
make[2]: *** [drivers/md/dm-raid1.o] Error 1
make[1]: *** [drivers/md] Error 2
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....

relay I want to use this boards as a controller in a remote place, I just need a minimal graphic (for adj and report) , wify , gpio , watchdog (halt prevent), and nothing else with robust  and stable  rootfs , -because they are  is in remote place and i cant access them easily- so you think which kernel 3.4.43 or 3.4.61 is better, and which rootfs( robust and stable) , I always use linaro 12.11 alip , or nano (and install lxde)
certainly  I'll google about optimizing nand for it but I ' ll be so thankful if you have any link for this optimization.


Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on October 02, 2013, 06:47:58 pm
Quote from: stu.mahdi on October 02, 2013, 05:57:35 pm
Quote from: patwood on October 02, 2013, 04:47:02 pm
Quote from: stu.mahdi on October 02, 2013, 03:30:07 pm
Quote

Did you read my previous message?


message? i am sorry, which message?

http://www.cubieforums.com/index.php/topic,729.msg4848.html#msg4848

prefect ,thanks ,
another question, when i try to build your kernel with your configuration ,  there was this  error:


drivers/md/dm-raid1.c:8:27: fatal error: dm-bio-record.h: No such file or directory
compilation terminated.
make[2]: *** [drivers/md/dm-raid1.o] Error 1
make[1]: *** [drivers/md] Error 2
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....

relay I want to use this boards as a controller in a remote place, I just need a minimal graphic (for adj and report) , wify , gpio , watchdog (halt prevent), and nothing else with robust  and stable  rootfs , -because they are  is in remote place and i cant access them easily- so you think which kernel 3.4.43 or 3.4.61 is better, and which rootfs( robust and stable) , I always use linaro 12.11 alip , or nano (and install lxde)
certainly  I'll google about optimizing nand for it but I ' ll be so thankful if you have any link for this optimization.


Not sure what's wrong.  Which branch are you building?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on October 03, 2013, 01:14:01 am
Quote from: patwood on October 02, 2013, 06:47:58 pm
Quote from: stu.mahdi on October 02, 2013, 05:57:35 pm
Quote from: patwood on October 02, 2013, 04:47:02 pm
Quote from: stu.mahdi on October 02, 2013, 03:30:07 pm
Quote

Did you read my previous message?


message? i am sorry, which message?

http://www.cubieforums.com/index.php/topic,729.msg4848.html#msg4848

prefect ,thanks ,
another question, when i try to build your kernel with your configuration ,  there was this  error:


drivers/md/dm-raid1.c:8:27: fatal error: dm-bio-record.h: No such file or directory
compilation terminated.
make[2]: *** [drivers/md/dm-raid1.o] Error 1
make[1]: *** [drivers/md] Error 2
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....

relay I want to use this boards as a controller in a remote place, I just need a minimal graphic (for adj and report) , wify , gpio , watchdog (halt prevent), and nothing else with robust  and stable  rootfs , -because they are  is in remote place and i cant access them easily- so you think which kernel 3.4.43 or 3.4.61 is better, and which rootfs( robust and stable) , I always use linaro 12.11 alip , or nano (and install lxde)
certainly  I'll google about optimizing nand for it but I ' ll be so thankful if you have any link for this optimization.


Not sure what's wrong.  Which branch are you building?


I download zip from following site,  12.04 ubuntu server (installed lxde as ui) on virtual machine
https://github.com/patrickhwood/linux-sunxi/tree/cedar-sunxi-3.4.43


Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on October 03, 2013, 10:01:27 am
Quote from: stu.mahdi on October 03, 2013, 01:14:01 am
Quote from: patwood on October 02, 2013, 06:47:58 pm
Quote from: stu.mahdi on October 02, 2013, 05:57:35 pm
Quote from: patwood on October 02, 2013, 04:47:02 pm
Quote from: stu.mahdi on October 02, 2013, 03:30:07 pm
Quote

Did you read my previous message?


message? i am sorry, which message?

http://www.cubieforums.com/index.php/topic,729.msg4848.html#msg4848

prefect ,thanks ,
another question, when i try to build your kernel with your configuration ,  there was this  error:


drivers/md/dm-raid1.c:8:27: fatal error: dm-bio-record.h: No such file or directory
compilation terminated.
make[2]: *** [drivers/md/dm-raid1.o] Error 1
make[1]: *** [drivers/md] Error 2
make: *** [drivers] Error 2
make: *** Waiting for unfinished jobs....

relay I want to use this boards as a controller in a remote place, I just need a minimal graphic (for adj and report) , wify , gpio , watchdog (halt prevent), and nothing else with robust  and stable  rootfs , -because they are  is in remote place and i cant access them easily- so you think which kernel 3.4.43 or 3.4.61 is better, and which rootfs( robust and stable) , I always use linaro 12.11 alip , or nano (and install lxde)
certainly  I'll google about optimizing nand for it but I ' ll be so thankful if you have any link for this optimization.


Not sure what's wrong.  Which branch are you building?


I download zip from following site,  12.04 ubuntu server (installed lxde as ui) on virtual machine
https://github.com/patrickhwood/linux-sunxi/tree/cedar-sunxi-3.4.43


I've never had luck with zip downloads of the kernel.  There are symlinks that don't translate well into a zip archive.

Also, the current branch I'm using is just named "cedar".
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on October 09, 2013, 12:30:38 pm
hi again  patwood
I try to make a read only cubiuntu for cubieboard2, I have read this post
http://www.cubieforums.com/index.php?topic=704.msg3944#msg3944
can you explain more it how I can do it.
thanks in advanced
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on October 09, 2013, 03:03:19 pm
Quote from: stu.mahdi on October 09, 2013, 12:30:38 pm
hi again  patwood
I try to make a read only cubiuntu for cubieboard2, I have read this post
http://www.cubieforums.com/index.php?topic=704.msg3944#msg3944
can you explain more it how I can do it.
thanks in advanced


That post was obviously more a set of guidelines than a tutorial and meant for people who have a lot of existing embedded linux experience.  I haven't done this myself (at least not on the cubieboard), but I did study how android was set up, and the important stuff there is mounted read-only.  Also, android has modified linux quite a lot so that the runtime root file system is a ramdisk.  Almost nothing gets written to flash unless the user or an app explicitly saves something permanently (like the browser storing a cookie or the user downloading an app or saving a contact).

Doing something like this for cubiuntu (with a gui and lots of applications) will be much harder than starting from a headless server.  I am interested in doing something along these lines to make my system more robust to power failures, but will probably start with a headless server like this one: http://dl.cubieforums.com/patwood/linaro-quantal-developer-20130422-342-A20.img.gz.  If I make any headway, I'll post a tutorial.

For now, if you just want to reduce the amount of wear and tear on your SD card or NAND, here are some suggestions:

1. mount /tmp, /var/tmp, /var/cache, and /var/spool on a ramdisk.  Add a line for each of these in /etc/fstab like this:

tmpfs           /var/cache            tmpfs   defaults          0       0

2. either mount /var/log on a ramdisk or install ramlog: http://www.tremende.com/ramlog

Pat
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on October 09, 2013, 04:44:46 pm
Quote from: patwood on October 09, 2013, 03:03:19 pm
Quote from: stu.mahdi on October 09, 2013, 12:30:38 pm
hi again  patwood
I try to make a read only cubiuntu for cubieboard2, I have read this post
http://www.cubieforums.com/index.php?topic=704.msg3944#msg3944
can you explain more it how I can do it.
thanks in advanced


That post was obviously more a set of guidelines than a tutorial and meant for people who have a lot of existing embedded linux experience.  I haven't done this myself (at least not on the cubieboard), but I did study how android was set up, and the important stuff there is mounted read-only.  Also, android has modified linux quite a lot so that the runtime root file system is a ramdisk.  Almost nothing gets written to flash unless the user or an app explicitly saves something permanently (like the browser storing a cookie or the user downloading an app or saving a contact).

Doing something like this for cubiuntu (with a gui and lots of applications) will be much harder than starting from a headless server.  I am interested in doing something along these lines to make my system more robust to power failures, but will probably start with a headless server like this one: http://dl.cubieforums.com/patwood/linaro-quantal-developer-20130422-342-A20.img.gz.  If I make any headway, I'll post a tutorial.

For now, if you just want to reduce the amount of wear and tear on your SD card or NAND, here are some suggestions:

1. mount /tmp, /var/tmp, /var/cache, and /var/spool on a ramdisk.  Add a line for each of these in /etc/fstab like this:

tmpfs           /var/cache            tmpfs   defaults          0       0

2. either mount /var/log on a ramdisk or install ramlog: http://www.tremende.com/ramlog

Pat


thank man , I have studied some post like these :
http://blog.a-netz.de/2013/02/read-only-root-filesystem/
or http://www.raspberrypi.org/phpBB3/viewtopic.php?f=29&t=22596
for raspberrypi ,
I try them and your suggestion,but i am waiting for new post from you.
note : in ubuntu desktop(x86) i always use remastersys, it make a live iso image and I burn it with unetbootin, can I do something like this hear?




Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on October 09, 2013, 06:27:45 pm
Quote from: stu.mahdi on October 09, 2013, 04:44:46 pm
thank man , I have studied some post like these :
http://blog.a-netz.de/2013/02/read-only-root-filesystem/
or http://www.raspberrypi.org/phpBB3/viewtopic.php?f=29&t=22596
for raspberrypi ,
I try them and your suggestion,but i am waiting for new post from you.
note : in ubuntu desktop(x86) i always use remastersys, it make a live iso image and I burn it with unetbootin, can I do something like this hear?

Those links have pretty good instructions, especially the link to the debian wiki.

I'm not sure I understand your question regarding unetbootin and ISOs.  I am familiar with what it does, but not what you want to accomplish on the cubie.  Do you want to know how to create a distribution img?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on October 10, 2013, 01:46:16 am
Quote
Those links have pretty good instructions, especially the link to the debian wiki.

I'm not sure I understand your question regarding unetbootin and ISOs.  I am familiar with what it does, but not what you want to accomplish on the cubie.  Do you want to know how to create a distribution img?

no not a distribution , a readonly-live image , as I said I want to use cubie in a remote place to control some objects , so I need minimum package installation (only what I need)  make it readonly rootfs    , with a small partition rw to save my reports , I always in desktop use ubuntu server and install minimum gui , and some other pakage and then create a iso image of what I have installed with remastersys.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on October 10, 2013, 10:40:50 am
Quote from: stu.mahdi on October 10, 2013, 01:46:16 am
no not a distribution , a readonly-live image , as I said I want to use cubie in a remote place to control some objects , so I need minimum package installation (only what I need)  make it readonly rootfs    , with a small partition rw to save my reports , I always in desktop use ubuntu server and install minimum gui , and some other pakage and then create a iso image of what I have installed with remastersys.


Is this theoretically possible?  Yes, it's possible to create an SD card image that can boot into a readonly rootfs, etc.  This isn't much different than your original question -- once you've set up the rootfs on an SD card to be read only, and set up the directories that need to be read/write on a writable partition or tmpfs, you're most of the way there.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: alphard on October 10, 2013, 11:04:56 am
I can't update the system via apt-get update, it reads reads the package list and just quits (but the Update Manager and apt-get install works fine).

Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on October 10, 2013, 02:47:21 pm
Quote from: alphard on October 10, 2013, 11:04:56 am
I can't update the system via apt-get update, it reads reads the package list and just quits (but the Update Manager and apt-get install works fine).


All apt-get update does is update the package database.  It doesn't update packages; for that you have to use apt-get install.  Don't use apt-get upgrade!

       update
           update is used to resynchronize the package index files from their sources. The indexes of available
           packages are fetched from the location(s) specified in /etc/apt/sources.list. For example, when
           using a Debian archive, this command retrieves and scans the Packages.gz files, so that information
           about new and updated packages is available. An update should always be performed before an upgrade
           or dist-upgrade. Please be aware that the overall progress meter will be incorrect as the size of
           the package files cannot be known in advance.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: alphard on October 10, 2013, 03:49:29 pm
Oh, silly me, I came from yum and I wasn't very familiar with apt-get, so I'll be sticking with the Update Manager for now.
Any ETA/way of getting upgrade fixed?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on October 10, 2013, 10:16:01 pm
Quote from: alphard on October 10, 2013, 03:49:29 pm
Oh, silly me, I came from yum and I wasn't very familiar with apt-get, so I'll be sticking with the Update Manager for now.
Any ETA/way of getting upgrade fixed?


Not really.  Don't know if/when Ubuntu or Debian will start supporting allwinner chips.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on October 11, 2013, 03:25:55 am
Quote from: patwood on October 10, 2013, 10:40:50 am
Quote from: stu.mahdi on October 10, 2013, 01:46:16 am
no not a distribution , a readonly-live image , as I said I want to use cubie in a remote place to control some objects , so I need minimum package installation (only what I need)  make it readonly rootfs    , with a small partition rw to save my reports , I always in desktop use ubuntu server and install minimum gui , and some other pakage and then create a iso image of what I have installed with remastersys.


Is this theoretically possible?  Yes, it's possible to create an SD card image that can boot into a readonly rootfs, etc.  This isn't much different than your original question -- once you've set up the rootfs on an SD card to be read only, and set up the directories that need to be read/write on a writable partition or tmpfs, you're most of the way there.


I  use these setting for my fstab , but it doesn't switch to readonly mode have you any idea?

#UNCONFIGURED FSTAB FOR BASE SYSTEM
proc            /proc           proc    defaults          0       0
tmpfs           /tmp            tmpfs   defaults,noatime,mode=1777      0     0
tmpfs           /var/log        tmpfs   defaults,noatime,mode=0755      0     0
tmpfs           /var/lock       tmpfs   defaults,noatime,mode=0755      0     0
/dev/mmcblk0p2  / ext4 defaults,ro,noatime,errors=remount-ro  0    1


I use this command cat /proc/mounts:
rootfs / rootfs rw 0 0
/dev/root / ext4 rw,relatime,data=ordered 0 0
devtmpfs /dev devtmpfs rw,relatime,size=415316k,nr_inodes=103829,mode=755 0 0
none /dev/pts devpts rw,nosuid,noexec,relatime,mode=600,ptmxmode=000 0 0
none /proc proc rw,nosuid,nodev,noexec,relatime 0 0
none /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,nosuid,nodev,noexec,relatime 0 0
none /sys/fs/fuse/connections fusectl rw,relatime 0 0
none /sys/kernel/debug debugfs rw,relatime 0 0
tmpfs /tmp tmpfs rw,noatime 0 0
none /run tmpfs rw,nosuid,noexec,relatime,size=83088k,mode=755 0 0
none /run/lock tmpfs rw,nosuid,nodev,noexec,relatime,size=5120k 0 0
none /run/shm tmpfs rw,nosuid,nodev,relatime 0 0
tmpfs /var/log tmpfs rw,noatime,mode=755 0 0
/dev/mmcblk0p1 /media/815B-BF7D vfat rw,nosuid,nodev,relatime,uid=1001,gid=1002,fmask=0022,dmask=0077,codepage=cp437,iocharset=ascii,shortname=mixed,showexec,utf8,errors=remount-ro 0 0
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on October 11, 2013, 01:29:00 pm
Quote from: stu.mahdi on October 11, 2013, 03:25:55 am
I  use these setting for my fstab , but it doesn't switch to readonly mode have you any idea?

#UNCONFIGURED FSTAB FOR BASE SYSTEM
proc            /proc           proc    defaults          0       0
tmpfs           /tmp            tmpfs   defaults,noatime,mode=1777      0     0
tmpfs           /var/log        tmpfs   defaults,noatime,mode=0755      0     0
tmpfs           /var/lock       tmpfs   defaults,noatime,mode=0755      0     0
/dev/mmcblk0p2  / ext4 defaults,ro,noatime,errors=remount-ro  0    1


I use this command cat /proc/mounts:
rootfs / rootfs rw 0 0
/dev/root / ext4 rw,relatime,data=ordered 0 0
...


I tried this, and I also tried "mount / -o remount,ro" which generated the following error message:

mount: / is busy

That's probably because files have been opened on the root file system for writing, and the kernel refuses to remount a file system that has open writable files.  I'd guess by the time mountall gets to read /etc/fstab and do its thing, the same condition prevents it from remounting root read only.  (Keep in mind that the kernel mounts the root file system based on the command line parameter root=, either set in uEnv.txt or by uboot, and this occurs before /etc/fstab is processed -- it's quite impossible for /etc/fstab to be processed *before* the root file system is mounted.)

Now there is another option:  try specifying ro in the kernel command line arguments, e.g.,

root=/dev/mmcblk0p2 ro rootwait

This worked for me; however, various other issues popped up -- for example, the system couldn't finish its startup sequence and enter run level 2; if I remounted / read-write, it would immediately continue with the startup and go into run level 2, so you've got some poking around to do if you want to make this into a working system.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: pacopad on October 14, 2013, 06:57:51 am
Hi Patwood,

i tried to enable 1080p by modding the script.bin and script-cubie-A20.bin but no way , my cubie boots in 720p.

What's wrong ?

Thank you
Pacopad
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: bbellido on October 14, 2013, 08:43:22 am
Hello,

someone has flashed cubiuntu in nand? I have tr¡ed several tutorial but never works, any suggestion?

Best regards
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on October 14, 2013, 10:13:00 am
Quote from: pacopad on October 14, 2013, 06:57:51 am
Hi Patwood,

i tried to enable 1080p by modding the script.bin and script-cubie-A20.bin but no way , my cubie boots in 720p.

What's wrong ?

Thank you
Pacopad


Check the uEnv.txt file.  It is probably overriding the script.bin.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: pacopad on October 14, 2013, 10:58:16 am
I changed the resolution in this file too.

Maybe must i remove the parameter ?

Thank you
Pacopad
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on October 14, 2013, 11:07:35 am
This parameter is only needed for monitors and older TVs that have problems reporting EDID values that the A10/20 support.  I added it to allow wider support for HDMI devices on initial setup (including one of mine at home  :) ).  My feeling was it's better to boot at a lower resolution than to have a blank screen; however, I should have noted that folks should try booting without it to test their displays.

Note: people should try booting without disp.screen0_output_mode=1280x720p60 on the extraargs line in uEnv.txt to see if their monitor's EDID is supported (there, I said it!)
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on October 14, 2013, 11:57:13 am
Quote from: stu.mahdi on October 10, 2013, 01:46:16 am
Quote
Those links have pretty good instructions, especially the link to the debian wiki.

I'm not sure I understand your question regarding unetbootin and ISOs.  I am familiar with what it does, but not what you want to accomplish on the cubie.  Do you want to know how to create a distribution img?

no not a distribution , a readonly-live image , as I said I want to use cubie in a remote place to control some objects , so I need minimum package installation (only what I need)  make it readonly rootfs    , with a small partition rw to save my reports , I always in desktop use ubuntu server and install minimum gui , and some other pakage and then create a iso image of what I have installed with remastersys.


See this: http://www.cubieforums.com/index.php/topic,883.0.html
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: sanyigz on October 16, 2013, 07:57:45 pm
Sometimes for me, the HDMI output stops working. The TV tells "no signal", mostly happens if i don't log in on gui, just leave on login screen. Few hours after this, the HDMI gets disabled. But sometimes happen if i logged in on desktop. However the OS doesn't freezes, everything works, except the HDMI output. If i restart the cb2, the HDMI works again.
Why does this happening? (nothing informative about hdmi in syslog).
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on October 16, 2013, 08:47:29 pm
Quote from: sanyigz on October 16, 2013, 07:57:45 pm
Sometimes for me, the HDMI output stops working. The TV tells "no signal", mostly happens if i don't log in on gui, just leave on login screen. Few hours after this, the HDMI gets disabled. But sometimes happen if i logged in on desktop. However the OS doesn't freezes, everything works, except the HDMI output. If i restart the cb2, the HDMI works again.
Why does this happening? (nothing informative about hdmi in syslog).

Did you try consoleblank?

http://www.cubieforums.com/index.php/topic,838.msg4910/topicseen.html#msg4910
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on October 19, 2013, 12:55:35 pm
Quote from: patwood on October 14, 2013, 11:57:13 am
Quote from: stu.mahdi on October 10, 2013, 01:46:16 am
Quote
Those links have pretty good instructions, especially the link to the debian wiki.

I'm not sure I understand your question regarding unetbootin and ISOs.  I am familiar with what it does, but not what you want to accomplish on the cubie.  Do you want to know how to create a distribution img?

no not a distribution , a readonly-live image , as I said I want to use cubie in a remote place to control some objects , so I need minimum package installation (only what I need)  make it readonly rootfs    , with a small partition rw to save my reports , I always in desktop use ubuntu server and install minimum gui , and some other pakage and then create a iso image of what I have installed with remastersys.


See this: http://www.cubieforums.com/index.php/topic,883.0.html


thanks , it's worked fine on mmc.as I requested on http://www.cubieforums.com/index.php/topic,883.0.html  how can I do that for nand?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on October 20, 2013, 01:39:40 am
Quote from: stu.mahdi on October 19, 2013, 12:55:35 pm
Quote from: patwood on October 14, 2013, 11:57:13 am
Quote from: stu.mahdi on October 10, 2013, 01:46:16 am
Quote
Those links have pretty good instructions, especially the link to the debian wiki.

I'm not sure I understand your question regarding unetbootin and ISOs.  I am familiar with what it does, but not what you want to accomplish on the cubie.  Do you want to know how to create a distribution img?

no not a distribution , a readonly-live image , as I said I want to use cubie in a remote place to control some objects , so I need minimum package installation (only what I need)  make it readonly rootfs    , with a small partition rw to save my reports , I always in desktop use ubuntu server and install minimum gui , and some other pakage and then create a iso image of what I have installed with remastersys.


See this: http://www.cubieforums.com/index.php/topic,883.0.html


thanks , it's worked fine on mmc.as I requested on http://www.cubieforums.com/index.php/topic,883.0.html  how can I do that for nand?


First, I'm assuming that you've already managed to get one or more distros running normally on nand; if not, you'll need to follow the directions already posted for doing that. 

Second, what I'm posting here should work with the u-boot-nand-ext4.bin.gz I posted back in August; however, I haven't had time to test it.

You'll have to modify the initrd file system; the file is initrd.gz in the initrd.tar archive.  Uncompress it and mount it with "mount initrd /mnt". 

Modify the /mnt/init/init file to mount your nand rootfs instead of /dev/mmcblk0pX.  Change the --bind mounts as needed.  Unmount /mnt and gzip the initrd file; convert it to uInitrd via mkimage as described in the other thread.

Put the uInitrd file on your first nand partition.

You'll also have to modify the custom uEnv.txt file in this archive; the nand uboot is a little older than the one for mmc, so it doesn't use the autoboot env setting.  All that needs to be folded into the uenvcmd setting, like this:

uenvcmd=fatload nand 0 0x44000000 uInitrd; run setargs loadscript loadkernel; watchdog 0; bootm $kerneladdr 0x44000000


You may need to experiment with this a little to get it to work right, as I can't test this right now.  Also, note that this bypasses loading the boot.scr file.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on October 22, 2013, 04:23:11 pm

Quote
First, I'm assuming that you've already managed to get one or more distros running normally on nand; if not, you'll need to follow the directions already posted for doing that. 

Second, what I'm posting here should work with the u-boot-nand-ext4.bin.gz I posted back in August; however, I haven't had time to test it.

You'll have to modify the initrd file system; the file is initrd.gz in the initrd.tar archive.  Uncompress it and mount it with "mount initrd /mnt". 

Modify the /mnt/init/init file to mount your nand rootfs instead of /dev/mmcblk0pX.  Change the --bind mounts as needed.  Unmount /mnt and gzip the initrd file; convert it to uInitrd via mkimage as described in the other thread.

Put the uInitrd file on your first nand partition.

You'll also have to modify the custom uEnv.txt file in this archive; the nand uboot is a little older than the one for mmc, so it doesn't use the autoboot env setting.  All that needs to be folded into the uenvcmd setting, like this:

uenvcmd=fatload nand 0 0x44000000 uInitrd; run setargs loadscript loadkernel; watchdog 0; bootm $kerneladdr 0x44000000


You may need to experiment with this a little to get it to work right, as I can't test this right now.  Also, note that this bypasses loading the boot.scr file.

thanks for your attention, cubiuntu is the best I think
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: maxim on October 24, 2013, 05:43:22 pm
Hi patwood,

Could you please fix typo in source of script.bin in distros. Correct one is:

ir0_rx = ...

instead of

ir_rx = ...

I've found it in Cubiuntu0.6.5a image.

Also it would be good to add string "sunxi-ir" in /etc/modules. This adds IR support.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on October 25, 2013, 11:11:10 am
Quote from: maxim on October 24, 2013, 05:43:22 pm
Hi patwood,

Could you please fix typo in source of script.bin in distros. Correct one is:

ir0_rx = ...

instead of

ir_rx = ...

I've found it in Cubiuntu0.6.5a image.


Thanks.  Good catch!  I'll make a note of it for any future releases.

Quote
Also it would be good to add string "sunxi-ir" in /etc/modules. This adds IR support.


Well.... I'd prefer not to add any additional modules to /etc/modules; the ones in there came directly from the A10 Cubiuntu distro, and are all pretty relevant to the GUI (except the wifi driver, which would probably get loaded properly on its own if the dongle's present).
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on October 30, 2013, 06:52:21 pm
hi patwood
2 questions please:
1-can I boot cubieboard from usb flash?
2-can I see the nand in windows or linux like a memory (partition) in fel mode or any other way.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on October 31, 2013, 12:23:56 am
Quote from: stu.mahdi on October 30, 2013, 06:52:21 pm
hi patwood
2 questions please:
1-can I boot cubieboard from usb flash?


No.  The boot priority doesn't include the USB port.  You'd need, at a minimum, a partition on nand or SD card with a uboot that can load the kernel from USB, or both uboot and a kernel to load and a root partition on the USB device.  This would work the same as putting the root fs on a SATA drive.

See this:  http://rhombus-tech.net/allwinner_a10/a10_boot_process

Quote
2-can I see the nand in windows or linux like a memory (partition) in fel mode or any other way.


With a linux distro running from SD or nand, you can export any partition (including those on nand) via samba, NFS, or sshfs; any of these will work with windows, although I'd expect samba (SMB) would require the least amount of fussing.

With ssh running on most of these distros, sshfs is probably the simplest to get working on a linux system.  You'll have to install the sshfs command on your linux box if it's not already installed, but it doesn't require any setup on the Cubieboard side.

Oh, and it should be possible to use the USB OTG port in "gadget" mode, where the CB appears to be a hard drive to the host (like a media player).  I've never tried this, so I don't know how to set it up or if it actually works.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on October 31, 2013, 04:01:30 am
Quote from: patwood on October 31, 2013, 12:23:56 am
Oh, and it should be possible to use the USB OTG port in "gadget" mode, where the CB appears to be a hard drive to the host (like a media player).  I've never tried this, so I don't know how to set it up or if it actually works.


thanks
this is what I need, I want to change some part of rootfs when cubie is in fex mode ( "gadget" mode).like what phonixsuit does.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on October 31, 2013, 09:57:36 am
well, fel mode isn't the same as gadget.  Gadget mode  is handled by a driver in the linux kernel, so you need to boot an os to use it.  fel mode is a rpoprietary usb comm stream that allows the host to download code to the cpu and execute it, so you need the code that will be downloaded.  Since there's no os in fel mode, you need to download one.

EDIT: FEL mode looks pretty complicated to get going, but it should allow loading a kernel from a host via the USB OTG port: http://linux-sunxi.org/FEL/USBBoot.  Once that kernel is running, you could use it to turn the CB into a USB gadget: http://linux-sunxi.org/USB_Gadget.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: ldp on November 11, 2013, 04:38:17 pm
CUBIUNTU 0.6.5a working on CubieTruck
U-Boot was patched for 2GB of RAM.

Does the newer kernel 3.4.61 have the ethernet and wifi drivers for CubieTruck?

Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on November 11, 2013, 07:40:58 pm
Quote from: ldp on November 11, 2013, 04:38:17 pm
CUBIUNTU 0.6.5a working on CubieTruck
U-Boot was patched for 2GB of RAM.

Does the newer kernel 3.4.61 have the ethernet and wifi drivers for CubieTruck?

None of the CB2 kernels have the GMAC driver for the CubieTruck.  Don't know whether the 100Mb EMAC driver will work on the CT.  I saw some people who got the CT wifi working, but don't recall whether they were using a CB2 kernel or one of the CT kernels from Cubietech.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: ldp on November 11, 2013, 09:21:19 pm
Thanks Patwood :

It's compiling it's own kernel...now
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on November 11, 2013, 10:03:48 pm
This kernel was branched fairly recently and has the a20 GMAC driver: https://github.com/cubieboard/linux-sunxi
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on November 11, 2013, 11:26:28 pm
For CT wifi, see http://www.cubieforums.com/index.php/topic,1019.msg6093.html#msg6093
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: Zediz on November 28, 2013, 05:47:47 pm
Hi im stock in a problem... .i have cubieboard A20 and i installed Cubiuntu... but i dont know how to install the kernel that you attach to it ..... can you help me guys?? Thanks a lot :D

This is the kernell that i want to install but i dont know how :(
http://dl.cubieforums.com/patwood/A20-kernel-3.4.61.tar.gz.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: kava93 on December 02, 2013, 03:56:47 am
Quote from: Zediz on November 28, 2013, 05:47:47 pm
Hi im stock in a problem... .i have cubieboard A20 and i installed Cubiuntu... but i dont know how to install the kernel that you attach to it ..... can you help me guys?? Thanks a lot :D

This is the kernell that i want to install but i dont know how :(
http://dl.cubieforums.com/patwood/A20-kernel-3.4.61.tar.gz.

In that archive there are boot files (uImage and script.bin) and the "lib/modules" directory.
The installation depends of you MicroSD layout.

If you have one single partition (rootfs) you need to copy the boot and lib directory on your MicroSD's /

If you have two partition (boot and rootfs), you need to copy

script-cubie-A20.bin (rename in script.bin)
uImage.3.4.61-sun7i+ (rename in uImage)

on the boot partition (the same where are store script.bin and uEnv.txt) and the /lib/modules in your rootfs partition (overwriting your existing file, if you are using the same kernel version).
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: Marty068 on December 02, 2013, 11:56:40 am
Hello,

I'm facing the same problem to update my kernel to the last version in my C2.
I'm running the CUBIUNTU 0.6 for A20 3.4.43+ kernel on a SD.
I have downloaded the last kernel: http://dl.cubieforums.com/patwood/A20-kernel-3.4.67.tar.gz
I have unpacked it and I get the files copied in the /boot and /lib directories (as expected).
I modify the file uEnv.txt (located in the 15MB fat partition) to reflect the new kernel.
I have rebooted the C2 and nothing happens, no boot from C2.
I remove my SD card from the C2 and modify my uEnv.txt to reflect the original kernel and everything works (but with old kernel)
What I'm missing?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on December 02, 2013, 10:48:10 pm
Quote from: Marty068 on December 02, 2013, 11:56:40 am
Hello,

I'm facing the same problem to update my kernel to the last version in my C2.
I'm running the CUBIUNTU 0.6 for A20 3.4.43+ kernel on a SD.
I have downloaded the last kernel: http://dl.cubieforums.com/patwood/A20-kernel-3.4.67.tar.gz
I have unpacked it and I get the files copied in the /boot and /lib directories (as expected).
I modify the file uEnv.txt (located in the 15MB fat partition) to reflect the new kernel.
I have rebooted the C2 and nothing happens, no boot from C2.
I remove my SD card from the C2 and modify my uEnv.txt to reflect the original kernel and everything works (but with old kernel)
What I'm missing?


Maybe it's this: http://www.cubieforums.com/index.php/topic,729.msg4540.html#msg4540
You can try copying the uImage file to something else (don't mv it, cp it) and updating uEnv.txt.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: zuzzuz on December 27, 2013, 08:15:30 am
Hi i have problem with youtube video, some news about that problem?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on December 30, 2013, 11:19:47 pm
Quote from: zuzzuz on December 27, 2013, 08:15:30 am
Hi i have problem with youtube video, some news about that problem?

No, not really.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: Tokka on December 31, 2013, 09:14:59 am
For youtube (in A10) the only working resolution are 240 and 480, not 360 or 720. Have you tried?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on January 02, 2014, 03:53:10 pm
hi every body and happy new year
thanks patwood for your valuable help

I have problem with wifi usb module.
my cubiuntu shows wlan0 in /sys/class/net but when I want to start network i get this error

e.g. start networking
<6>sunxi_emac sunxi_emac.0: eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
<3>phy1 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.
[ 1702.375822] phy1 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.


I dont know what's wrong ???
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on January 03, 2014, 12:31:10 am
Quote from: stu.mahdi on January 02, 2014, 03:53:10 pm
hi every body and happy new year
thanks patwood for your valuable help

I have problem with wifi usb module.
my cubiuntu shows wlan0 in /sys/class/net but when I want to start network i get this error

e.g. start networking
<6>sunxi_emac sunxi_emac.0: eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
<3>phy1 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.
[ 1702.375822] phy1 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.


I dont know what's wrong ???


Need more debugging info: set loglevel=7 in the kernel arguments (in uEnv.txt); also run dmesg and attach the output.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: fairlane on January 03, 2014, 07:54:58 am
Quote from: stu.mahdi on January 02, 2014, 03:53:10 pm
hi every body and happy new year
thanks patwood for your valuable help

I have problem with wifi usb module.
my cubiuntu shows wlan0 in /sys/class/net but when I want to start network i get this error

e.g. start networking
<6>sunxi_emac sunxi_emac.0: eth0: link up, 100Mbps, full-duplex, lpa 0xCDE1
<3>phy1 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.
[ 1702.375822] phy1 -> rt2x00lib_request_firmware: Error - Failed to request Firmware.


I dont know what's wrong ???


Missing the firmware file(s) in your /lib/firmware directory.
Search your firmware from http://www.mediatek.com/_en/07_downloads/01_windows.php?sn=501
Firmware RT2501USB(RT2571W/RT2671)

Download the file to any convenient location, your desktop, perhaps. Right click the .zip file and select 'Extract Here.'

Then open a terminal and do:

cd Desktop/RT71W_Firmware_V1.8
cp rt73.bin /lib/firmware
cd /lib/firmware
sudo chown root:root rt73.bin

Now unplug and replug your device and see if it works as expected.

Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on January 03, 2014, 11:00:49 am
Quote

Missing the firmware file(s) in your /lib/firmware directory.
Search your firmware from http://www.mediatek.com/_en/07_downloads/01_windows.php?sn=501
Firmware RT2501USB(RT2571W/RT2671)

Download the file to any convenient location, your desktop, perhaps. Right click the .zip file and select 'Extract Here.'

Then open a terminal and do:

cd Desktop/RT71W_Firmware_V1.8
cp rt73.bin /lib/firmware
cd /lib/firmware
sudo chown root:root rt73.bin

Now unplug and replug your device and see if it works as expected.


I did all you said but ,it still has the problem. my question is that driver for x86 , dos it work on arm.

Quote
Need more debugging info: set loglevel=7 in the kernel arguments (in uEnv.txt); also run dmesg and attach the output.


dmesg attached

my usb wifi is tp-link tl-wn727n



Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: fairlane on January 03, 2014, 12:15:58 pm
This is the linux driver.

There are three versions of this stick (v1,v3 and v4)
V1 and V3 have Ralink chipset, V4 has Realtek.

What is your stick's version number?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on January 03, 2014, 01:43:09 pm
Quote from: fairlane on January 03, 2014, 12:15:58 pm
This is the linux driver.

There are three versions of this stick (v1,v3 and v4)
V1 and V3 have Ralink chipset, V4 has Realtek.

What is your stick's version number?

I checked the chip and I found it is rt5370n,I checked the site and found a complete source cod to make driver, but when I use make it return this error:


gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/home/linaro/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/tools'
/home/linaro/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/tools/bin2h
cp -f os/linux/Makefile.6 /home/linaro/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/Makefile
make -C /lib/modules/3.4.43-sun7i+/build SUBDIRS=/home/linaro/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux modules
make: *** /lib/modules/3.4.43-sun7i+/build: No such file or directory.  Stop.
make: *** [LINUX] Error 2


Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on January 03, 2014, 05:56:04 pm
Quote from: stu.mahdi on January 03, 2014, 01:43:09 pm
Quote from: fairlane on January 03, 2014, 12:15:58 pm
This is the linux driver.

There are three versions of this stick (v1,v3 and v4)
V1 and V3 have Ralink chipset, V4 has Realtek.

What is your stick's version number?

I checked the chip and I found it is rt5370n,I checked the site and found a complete source cod to make driver, but when I use make it return this error:


gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/home/linaro/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/tools'
/home/linaro/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/tools/bin2h
cp -f os/linux/Makefile.6 /home/linaro/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/Makefile
make -C /lib/modules/3.4.43-sun7i+/build SUBDIRS=/home/linaro/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux modules
make: *** /lib/modules/3.4.43-sun7i+/build: No such file or directory.  Stop.
make: *** [LINUX] Error 2


I think the driver is already in the kernel; what you need is the correct firmware file (the firmware is for the embedded processor on the wifi, not for ARM).  When I looked up support for the rt5370n, I found this: https://wiki.debian.org/rt2800usb.  You can look up your USB wifi part by running lsusb and searching for it in the "Supported devices" list.  The firmware for this driver is here: http://packages.debian.org/sid/all/firmware-ralink/download.  They are often not packaged with a given linux distro because they are proprietary code from the device manufacturer and not open source.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on January 04, 2014, 03:03:00 am
Quote from: patwood on January 03, 2014, 05:56:04 pm
Quote from: stu.mahdi on January 03, 2014, 01:43:09 pm
Quote from: fairlane on January 03, 2014, 12:15:58 pm
This is the linux driver.

There are three versions of this stick (v1,v3 and v4)
V1 and V3 have Ralink chipset, V4 has Realtek.

What is your stick's version number?

I checked the chip and I found it is rt5370n,I checked the site and found a complete source cod to make driver, but when I use make it return this error:


gcc -g bin2h.c -o bin2h
make[1]: Leaving directory `/home/linaro/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/tools'
/home/linaro/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/tools/bin2h
cp -f os/linux/Makefile.6 /home/linaro/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux/Makefile
make -C /lib/modules/3.4.43-sun7i+/build SUBDIRS=/home/linaro/Desktop/DPO_RT5572_LinuxSTA_2.6.1.3_20121022/os/linux modules
make: *** /lib/modules/3.4.43-sun7i+/build: No such file or directory.  Stop.
make: *** [LINUX] Error 2


I think the driver is already in the kernel; what you need is the correct firmware file (the firmware is for the embedded processor on the wifi, not for ARM).  When I looked up support for the rt5370n, I found this: https://wiki.debian.org/rt2800usb.  You can look up your USB wifi part by running lsusb and searching for it in the "Supported devices" list.  The firmware for this driver is here: http://packages.debian.org/sid/all/firmware-ralink/download.  They are often not packaged with a given linux distro because they are proprietary code from the device manufacturer and not open source.



thanks , like always it works :) :D ;D

Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: RoboSK on January 06, 2014, 02:25:49 pm
Hello, how increase available ram / where put

sunxi_no_mali_mem_reserve sunxi_g2d_mem_reserve=0 sunxi_ve_mem_reserve=0

thanks

Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: slovenia on January 06, 2014, 02:34:12 pm
Quote from: RoboSK on January 06, 2014, 02:25:49 pm
Hello, how increase available ram / where put

sunxi_no_mali_mem_reserve sunxi_g2d_mem_reserve=0 sunxi_ve_mem_reserve=0

thanks



/boot/uEnv.txt

example:

root=/dev/mmcblk0p1
extraargs=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=discard
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: RoboSK on January 06, 2014, 04:01:26 pm
slovenia: thanks, works

patwood: thanks for CUBIUNTU

q: is still bad idea "apt-get upgrade" ?

Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: Jouniv on January 08, 2014, 04:01:24 am
I use cubiuntu 0.6 with 3.4.61+ kernel. How long uptimes have you gyus had? My uptimes are from about 4 days to two weeks. Suddenly cpu usage jumps to 100% and I can't ssh to cubie and cursor doesn't move/no response to keyboard. Might it be memory or cpu related problem? How can I change the cpu speed to lower value to test if that's the case?
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: magno on January 09, 2014, 06:29:46 pm
Hi Patrick.

You sent me a mail telling "Has been updated to 3.4.75 and now includes libhybris as the default decoder blob for vlc." but the file version says "3.4.61.tar.gz"

I need the correct link and version data to update in my website. (http://cubieboard.cmabreu.com.br/).

Thanks.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on January 09, 2014, 07:55:14 pm
Quote from: magno on January 09, 2014, 06:29:46 pm
Hi Patrick.

You sent me a mail telling "Has been updated to 3.4.75 and now includes libhybris as the default decoder blob for vlc." but the file version says "3.4.61.tar.gz"

I need the correct link and version data to update in my website. (http://cubieboard.cmabreu.com.br/).

Thanks.


This download: http://dl.cubieforums.com/patwood/Cubiuntu0.6.5b-a20.img.xz contains the 3.4.75 kernel.  The announcement is here: http://www.cubieforums.com/index.php/topic,1331.0.html
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: Jojo on January 10, 2014, 02:14:37 am
Hello,

@patwood:
what operating system are you running on your CBs? What would be your recommendations?

Greets
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on January 10, 2014, 10:27:46 am
Quote from: Jojo on January 10, 2014, 02:14:37 am
Hello,

@patwood:
what operating system are you running on your CBs? What would be your recommendations?

Greets

I run mostly Ubuntu variants: cubiuntu for GUI and video, raring or saucy for headless servers.  I've played around with others like cubieez and cubian, but don't use them regularly.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: magno on January 12, 2014, 12:31:35 pm
Catalog updated.
I reseted the counter. The old version have 265 downloads.

check http://cubieboard.cmabreu.com.br/
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: patwood on January 12, 2014, 01:24:57 pm
Quote from: magno on January 12, 2014, 12:31:35 pm
Catalog updated.
I reseted the counter. The old version have 265 downloads.

check http://cubieboard.cmabreu.com.br/


FYI: I have discontinued the 3.4.43 version of cubiuntu, as the kernel is now > 3 months old; the current version has the 3.4.75 kernel at http://dl.cubieforums.com/patwood/Cubiuntu0.6.5b-a20.img.xz with much better video support (I know -- no xbmc; it's just too much for me to build and test it, since vlc is what we've decided to use for now at my job).  Also, I expect this to become the "obsolete" version once the CB2/CT dual boot image is better tested.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: ahrovan on January 22, 2014, 01:03:26 pm
http://linux-sunxi.org/NAND (http://linux-sunxi.org/NAND) you can see this page. why you need make Nand image,already are many nand image with debian and lubuntu rootfs,for 3.4.75 kernel release,now Debian arm hf 7.3 and cubuntu 1.6.5c version is ready for download - (see en.bir-robotic.ir (http://brg.vvs.ir))
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: magno on January 25, 2014, 12:50:28 pm
Quote from: patwood on January 12, 2014, 01:24:57 pm
Quote from: magno on January 12, 2014, 12:31:35 pm
Catalog updated.
I reseted the counter. The old version have 265 downloads.

check http://cubieboard.cmabreu.com.br/


FYI: I have discontinued the 3.4.43 version of cubiuntu, as the kernel is now > 3 months old; the current version has the 3.4.75 kernel at http://dl.cubieforums.com/patwood/Cubiuntu0.6.5b-a20.img.xz with much better video support (I know -- no xbmc; it's just too much for me to build and test it, since vlc is what we've decided to use for now at my job).  Also, I expect this to become the "obsolete" version once the CB2/CT dual boot image is better tested.



Ok. I'll do the catalog changes ASAP.
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on April 19, 2014, 04:16:17 pm
hi dear patwood

I am using usb wifi (my usb wifi is tp-link tl-wn727n , chipset is  rt5370n ) for cubieboard2. at startup  I have no problem with wifi module( you helped me befor to bring it up ) but if I disconnect wifi usb from port i shows an error :

ehci_irq: port change detect
<6>usb 4-1: USB disconnect, device number 3
<3>phy1 -> rt2800_wait_wpdma_ready: Error - WPDMA TX/RX busy, aborting.
[  205.422151] phy1 -> rt2800_wait_wpdma_ready: Error - WPDMA TX/RX busy, aborting.


and after that it dosent work untill next restart:

usb 4-1: new high-speed USB device number 3 using sw-ehci
<6>usb 4-1: reset high-speed USB device number 3 using sw-ehci
<7>ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
<7>Registered led device: rt2800usb-phy1::radio
<7>Registered led device: rt2800usb-phy1::assoc
<7>Registered led device: rt2800usb-phy1::quality
<30>udevd[240]: renamed network interface wlan0 to wlan1
<6>ADDRCONF(NETDEV_UP): wlan1: link is not ready
<6>ADDRCONF(NETDEV_UP): wlan1: link is not ready


ifup wlan1
<6>ADDRCONF(NETDEV_UP): wlan1: link is not ready

can you help me to solve this problem


Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: stu.mahdi on May 03, 2014, 03:36:07 am
Quote from: stu.mahdi on April 19, 2014, 04:16:17 pm
hi dear patwood

I am using usb wifi (my usb wifi is tp-link tl-wn727n , chipset is  rt5370n ) for cubieboard2. at startup  I have no problem with wifi module( you helped me befor to bring it up ) but if I disconnect wifi usb from port i shows an error :

ehci_irq: port change detect
<6>usb 4-1: USB disconnect, device number 3
<3>phy1 -> rt2800_wait_wpdma_ready: Error - WPDMA TX/RX busy, aborting.
[  205.422151] phy1 -> rt2800_wait_wpdma_ready: Error - WPDMA TX/RX busy, aborting.


and after that it dosent work untill next restart:

usb 4-1: new high-speed USB device number 3 using sw-ehci
<6>usb 4-1: reset high-speed USB device number 3 using sw-ehci
<7>ieee80211 phy1: Selected rate control algorithm 'minstrel_ht'
<7>Registered led device: rt2800usb-phy1::radio
<7>Registered led device: rt2800usb-phy1::assoc
<7>Registered led device: rt2800usb-phy1::quality
<30>udevd[240]: renamed network interface wlan0 to wlan1
<6>ADDRCONF(NETDEV_UP): wlan1: link is not ready
<6>ADDRCONF(NETDEV_UP): wlan1: link is not ready


ifup wlan1
<6>ADDRCONF(NETDEV_UP): wlan1: link is not ready

can you help me to solve this problem



does this forum dead??
Title: Re: CUBIUNTU 0.6 for A20 3.4.43+ kernel
Post by: Montala on May 11, 2014, 12:49:15 pm
I am quite new on here myself, but it would appear that Pat Wood is no longer an active participant, which is a great shame, as he has provided a lot of very useful material, and helped out many users.

Are you still around by any chance Pat?