September 20, 2019, 04:56:44 pm

News:

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


Linaro 13.04 developer for A20

Started by patwood, October 02, 2013, 02:02:07 pm

Previous topic - Next topic

patwood

October 02, 2013, 02:02:07 pm Last Edit: October 02, 2013, 02:36:00 pm by patwood
I have uploaded an updated Linaro Quantal developer distribution for the A20 with the latest kernel.  It is at http://dl.cubieforums.com/patwood/linaro-quantal-developer-20130422-342-A20-3.4.61.img.xz.

It's the same distro as http://dl.cubieforums.com/patwood/linaro-quantal-developer-20130422-342-A20.img.gz with the following changes:

1. Newer, faster u-boot.
2. 3.4.61 kernel (about 2 weeks old from last night -- includes working CedarX driver for A20), with lots more drivers.
3. Fix problem in /etc/network/interfaces to allow hotplug of eth0 and auto dhcp.

As before, root/root and linaro/linaro.  Distro is 1GB with about 250MB free; use gparted or fdisk/resizefs to make it bigger.

Edit: I just updated with the stage/sunxi-3.4 kernel pulled last night.  File size is 147603532 bytes, md5 is 3c5db4fc01051b3e9c9cf3b8d9db4f18.

patwood


magno

Patrick, have this distro the same problem of turn the screen off after 10 minutes ?

http://www.cubieforums.com/index.php/topic,807.msg4849.html#msg4849

PathFinder

Does video & audio hardware decoder works ?

patwood

October 02, 2013, 04:34:58 pm #4 Last Edit: October 02, 2013, 04:43:34 pm by patwood
Quote from: magno on October 02, 2013, 03:33:34 pm
Patrick, have this distro the same problem of turn the screen off after 10 minutes ?

http://www.cubieforums.com/index.php/topic,807.msg4849.html#msg4849

Not if you do the

echo 0  > /sys/class/graphics/fb0/blank

However, there is no GUI; this is a basic tty-based build.  You can always install the UI of your choice. It is the same distro as this one I uploaded at the end of July with a newer kernel:      http://www.cubieforums.com/index.php/topic,588.msg2984.html#msg2984.

You can read about it here: https://releases.linaro.org/13.04/ubuntu/quantal-images

patwood

October 02, 2013, 04:39:14 pm #5 Last Edit: October 02, 2013, 04:44:40 pm by patwood
Quote from: PathFinder on October 02, 2013, 04:06:25 pm
Does video & audio hardware decoder works ?

Yes, but there's no video or audio software to use the HW drivers in this image.  You'll need to install/build vlc, mplayer, pulseaudio, xbmc, etc.

For a system with turnkey audio and video support, try cubiuntu 0.6.5a-a20.

karnicero

Quote from: patwood on October 02, 2013, 02:49:58 pm
I have also uploaded the kernel/modules as a standalone archive: http://dl.cubieforums.com/patwood/A20-kernel-3.4.61.tar.gz.


Hi,

Have you updated your git repository? I need to recompile your new kernel because I need to enable hidraw in menuconfig for my Logitech mouse.

Thanks for your hard work!

patwood


sanyigz

Quote from: patwood on October 02, 2013, 04:34:58 pm
Not if you do the

echo 0  > /sys/class/graphics/fb0/blank


But what is this? I've been using your 12.04 linaro distribution, but i never needed this, nor on cubieez.

Is this a new thing?

magno

Quote from: patwood on October 02, 2013, 04:34:58 pm
Quote from: magno on October 02, 2013, 03:33:34 pm
Patrick, have this distro the same problem of turn the screen off after 10 minutes ?

http://www.cubieforums.com/index.php/topic,807.msg4849.html#msg4849

Not if you do the

echo 0  > /sys/class/graphics/fb0/blank

However, there is no GUI; this is a basic tty-based build.  You can always install the UI of your choice. It is the same distro as this one I uploaded at the end of July with a newer kernel:      http://www.cubieforums.com/index.php/topic,588.msg2984.html#msg2984.

You can read about it here: https://releases.linaro.org/13.04/ubuntu/quantal-images


Ok Pat.
But this image don't have GUI (uses framebuffer):

http://www.cubieforums.com/index.php/topic,807.0.html

and have the bug. After 10 minutes, even using keyboard, the screen is turned off and never come back again.

I have make a little test with your distro, and confirm the bug don't exists.

Some considerations:

1) Please remove the auto login.

2) The screen is turned off when system is idle, but it's possible brings back after a key hit. I hope the

echo 0  > /sys/class/graphics/fb0/blank

solves this.

3) We need an option to "burn" it to NAND.

4) Vladimir successfylly installed xbmc as show in this post:

http://www.cubieforums.com/index.php/topic,807.0.html

but his distro have the "10 minutes of live" bug. I will try to put xbmc in YOUR distro.

patwood

Quote from: karnicero on October 02, 2013, 04:55:20 pm
Quote from: patwood on October 02, 2013, 02:49:58 pm
I have also uploaded the kernel/modules as a standalone archive: http://dl.cubieforums.com/patwood/A20-kernel-3.4.61.tar.gz.


Hi,

Have you updated your git repository? I need to recompile your new kernel because I need to enable hidraw in menuconfig for my Logitech mouse.

Thanks for your hard work!


I just pushed the latest kernel code to my repository; the branch is "cedar".

patwood

October 02, 2013, 06:46:10 pm #11 Last Edit: October 02, 2013, 07:09:22 pm by patwood
Quote from: sanyigz on October 02, 2013, 05:52:03 pm
Quote from: patwood on October 02, 2013, 04:34:58 pm
Not if you do the

echo 0  > /sys/class/graphics/fb0/blank


But what is this? I've been using your 12.04 linaro distribution, but i never needed this, nor on cubieez.

Is this a new thing?


Hmmm, 12.04 linaro?  From where?  The two distros I've uploaded here are 12.11 (cubiuntu) and 13.04 (quantal developer).

Screen blanking isn't new; I've been doing this since 3.4.29 on the A10.

There are two things I've seen that blank the screen: the framebuffer blanking, which is probably a setting in the kernel, and the X screen saver and dpms (power management).  The former is often disabled by X or the window manager when it starts up; if X doesn't start up, then something else needs to disable it, and putting the "echo" line above in an init service that does this every 5 minutes or so is one way.

The X screen saver and power management can be disabled with

xset -display :0 s off -dpms

but needs to be done after the window manger has started up, as it may have its own ideas about power management.  This may not even work with some window managers if they expect to have full control over such settings.

patwood

October 02, 2013, 06:54:49 pm #12 Last Edit: October 02, 2013, 07:00:30 pm by patwood
Quote from: magno on October 02, 2013, 06:19:24 pm
Quote from: patwood on October 02, 2013, 04:34:58 pm
Quote from: magno on October 02, 2013, 03:33:34 pm
Patrick, have this distro the same problem of turn the screen off after 10 minutes ?

http://www.cubieforums.com/index.php/topic,807.msg4849.html#msg4849

Not if you do the

echo 0  > /sys/class/graphics/fb0/blank

However, there is no GUI; this is a basic tty-based build.  You can always install the UI of your choice. It is the same distro as this one I uploaded at the end of July with a newer kernel:      http://www.cubieforums.com/index.php/topic,588.msg2984.html#msg2984.

You can read about it here: https://releases.linaro.org/13.04/ubuntu/quantal-images


Ok Pat.
But this image don't have GUI (uses framebuffer):

http://www.cubieforums.com/index.php/topic,807.0.html

and have the bug. After 10 minutes, even using keyboard, the screen is turned off and never come back again.

I have make a little test with your distro, and confirm the bug don't exists.

Some considerations:

1) Please remove the auto login.


Delete /etc/init/ttyS0.conf (serial auto login), /etc/init/tty2.conf (tty2 auto login), and /etc/init/auto-serial-console.conf (another serial auto login).

Quote
2) The screen is turned off when system is idle, but it's possible brings back after a key hit. I hope the

echo 0  > /sys/class/graphics/fb0/blank

solves this.


It does; however, you need to do that every 5 minutes or so, as the blanking isn't disabled by this -- the screen is simply "unblanked" until the next blanking interval.  I know, it's a pain, but this really isn't a high priority for me, so if you figure out a better way, let us know.

Quote
3) We need an option to "burn" it to NAND.


Sorry, not my job.  This is a pretty simple operation, and there are lots of posts that describe how to do it, and there are at least two scripts out there on other distros.  As I've mentioned before, most of what I do is kernel work.  I don't even really use this distro much; it's just a nice, small rootfs that allows me to test new kernel builds.  Mostly, I use my own custom build for testing, as I need to test g2d, cedar, and mali.

Quote
4) Vladimir successfylly installed xbmc as show in this post:

http://www.cubieforums.com/index.php/topic,807.0.html

but his distro have the "10 minutes of live" bug. I will try to put xbmc in YOUR distro.


Good luck.  Let us know how it goes.

Pat

patwood

Quote from: magno on October 02, 2013, 06:19:24 pm
Quote from: patwood on October 02, 2013, 04:34:58 pm
Quote from: magno on October 02, 2013, 03:33:34 pm
Patrick, have this distro the same problem of turn the screen off after 10 minutes ?

http://www.cubieforums.com/index.php/topic,807.msg4849.html#msg4849

Not if you do the

echo 0  > /sys/class/graphics/fb0/blank


Some considerations:

2) The screen is turned off when system is idle, but it's possible brings back after a key hit. I hope the

echo 0  > /sys/class/graphics/fb0/blank

solves this.


I got curious about this, and a little googling turned up the consoleblank kernel argument in https://www.kernel.org/doc/Documentation/kernel-parameters.txt:

Quoteconsoleblank=   [KNL] The console blank (screen saver) timeout in
         seconds. Defaults to 10*60 = 10mins. A value of 0
         disables the blank timer.


So just add consoleblank=0 to the extraargs line in /boot/uEnv.txt to disable screen blanking:

extraargs=disp.screen0_output_mode=1280x720p60 consoleblank=0

karnicero

Quote from: patwood on October 02, 2013, 06:28:58 pm
I just pushed the latest kernel code to my repository; the branch is "cedar".


Thanks!! :)

I just tried to compile your new branch named Cedar but...

Quote
root@pablovm:/home/pablo/test/cubieboard/linux-sunxi# git checkout cedar
Checking out files: 100% (1107/1107), done.
M       arch/arm/mach-sun7i/pm/standby/mem_printk.c
M       drivers/media/dvb/Makefile
M       drivers/media/dvb/dvb-core/demux.h
M       drivers/media/dvb/dvb-usb/Makefile
M       drivers/media/dvb/dvb-usb/it913x.c
M       include/Kbuild
M       include/linux/device.h
M       include/linux/dvb/Kbuild
M       include/linux/dvb/dmx.h
M       include/linux/dvb/frontend.h
M       include/linux/dvb/version.h
M       include/linux/dvb/video.h
Branch cedar set up to track remote branch cedar from origin.
Switched to a new branch 'cedar'

root@pablovm:/home/pablo/test/cubieboard/linux-sunxi# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- sun7i_defconfig
#
# configuration written to .config
#
root@pablovm:/home/pablo/test/cubieboard/linux-sunxi# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- menuconfig
scripts/kconfig/mconf Kconfig
#
# configuration written to .config
#


*** End of the configuration.
*** Execute 'make' to start the build or try 'make help'.

root@pablovm:/home/pablo/test/cubieboard/linux-sunxi# make ARCH=arm CROSS_COMPILE=arm-linux-gnueabihf- -j4 uImage
scripts/kconfig/conf --silentoldconfig Kconfig
  CHK     include/linux/version.h
  UPD     include/linux/version.h
  CHK     include/generated/utsrelease.h
  UPD     include/generated/utsrelease.h
  Generating include/generated/mach-types.h
  CC      arch/arm/kernel/asm-offsets.s
In file included from include/linux/dma-mapping.h:5:0,
                 from arch/arm/kernel/asm-offsets.c:15:
include/linux/device.h: In function 'dev_pm_syscore_device':
include/linux/device.h:817:12: error: 'struct dev_pm_info' has no member named 'syscore'
make[1]: *** [arch/arm/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2


I worder if I missed something.... the other branch named sunxi-3.3-cb2 compiled successfully...