CubieBoard Forum

Pre-Made Images => Images => Cubieboard v2 Images (A20 Based) => Topic started by: patwood on October 02, 2013, 02:02:07 pm

Title: Linaro 13.04 developer for A20
Post by: patwood on October 02, 2013, 02:02:07 pm
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 (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.
Title: Re: Linaro 13.04 developer for A20
Post by: 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 (http://dl.cubieforums.com/patwood/A20-kernel-3.4.61.tar.gz).
Title: Re: Linaro 13.04 developer for A20
Post by: 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
Title: Re: Linaro 13.04 developer for A20
Post by: PathFinder on October 02, 2013, 04:06:25 pm
Does video & audio hardware decoder works ?
Title: Re: Linaro 13.04 developer for A20
Post by: 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 (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
Title: Re: Linaro 13.04 developer for A20
Post by: patwood on October 02, 2013, 04:39:14 pm
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.
Title: Re: Linaro 13.04 developer for A20
Post by: 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 (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!
Title: Re: Linaro 13.04 developer for A20
Post by: patwood on October 02, 2013, 05:36:00 pm
I'll be updating it tonight.
Title: Re: Linaro 13.04 developer for A20
Post by: 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?
Title: Re: Linaro 13.04 developer for A20
Post by: 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 (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.
Title: Re: Linaro 13.04 developer for A20
Post by: patwood on October 02, 2013, 06:28:58 pm
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 (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".
Title: Re: Linaro 13.04 developer for A20
Post by: patwood on October 02, 2013, 06:46:10 pm
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.
Title: Re: Linaro 13.04 developer for A20
Post by: patwood on October 02, 2013, 06:54:49 pm
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 (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
Title: Re: Linaro 13.04 developer for A20
Post by: patwood on October 03, 2013, 12:58:20 am
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
Title: Re: Linaro 13.04 developer for A20
Post by: karnicero on October 03, 2013, 10:20:27 am
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...
Title: Re: Linaro 13.04 developer for A20
Post by: patwood on October 03, 2013, 10:55:36 am
You've got include/linux/device.h checked out, and that's where the error is coming from; mine doesn't reference syscore anywhere.
Title: Re: Linaro 13.04 developer for A20
Post by: karnicero on October 03, 2013, 05:20:47 pm
Quote from: patwood on October 03, 2013, 10:55:36 am
You've got include/linux/device.h checked out, and that's where the error is coming from; mine doesn't reference syscore anywhere.


You were right! My repository was not updated correctly. I compiled the kernel successfully:


Image Name:   Linux-3.4.61+
Created:      Thu Oct 3 23:19:45 2013
Image Type:   ARM Linux Kernel Image (uncompressed)
Data Size:    4521328 Bytes = 4415.36 kB = 4.31 MB
Load Address: 40008000
Entry Point:  40008000
  Image arch/arm/boot/uImage is ready
Title: Re: Linaro 13.04 developer for A20
Post by: magno on October 03, 2013, 08:46:12 pm
Patrick, please help me keep my site up to date. I want to put all best distros I found in one place:

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

My e-mail address is in bottom of the page. If you release a new file, please tell me.

Title: Re: Linaro 13.04 developer for A20
Post by: cubee-noob on October 06, 2013, 07:19:13 am
Quote from: karnicero on October 03, 2013, 10:20:27 am

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


Welcome.
I had similar problems when compiling the patwood branch of 3.4.43 for A20.
some of the compile errors i could fix (wrong header files and so on), but i also had unmet dependencies and i was not able to compile a kernel. what is sad because many modules to things i need are missing.

I guess the sunxi git repositories are kinda broken, at least if one clones branches.

it would be helpful if someone could provide the (patched) kernel sources that do not have these compile errors  as tar.gz/tar.bz2 or would fix the git repos and would provide how to clone them properly.
Title: Re: Linaro 13.04 developer for A20
Post by: patwood on October 06, 2013, 01:01:17 pm
Quote from: cubee-noob on October 06, 2013, 07:19:13 am
Quote from: karnicero on October 03, 2013, 10:20:27 am

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


Welcome.
I had similar problems when compiling the patwood branch of 3.4.43 for A20.
some of the compile errors i could fix (wrong header files and so on), but i also had unmet dependencies and i was not able to compile a kernel. what is sad because many modules to things i need are missing.

I guess the sunxi git repositories are kinda broken, at least if one clones branches.

it would be helpful if someone could provide the (patched) kernel sources that do not have these compile errors  as tar.gz/tar.bz2 or would fix the git repos and would provide how to clone them properly.


Actually, the branches I post are simply patched versions of the main sunxi repo.  Part of the problem is that you may be enabling drivers that don't yet work on the A20, or that nobody has yet built and tested.  The 3.4.xx A20 kernel only went live a few months ago, and 3.4.43 is over a month behind 3.4.63 already,  so you can't expect everything to build on it.  Also, not all drivers will necessarily build for any allwinner device, so you also need to make sure something builds on A10 as well.

Anyway, if you want a more recent kernel, try my cedar branch.  I merged in the stage/sunxi-3.4 code this week and is currently (as of right now) up to date with it.

Edit: I know it looks like my github repo is based on the cubieboard2 fork, but that's just because github won't let me fork different branches from different repos on their webui.  The stage/sunxi-3.4, cedar, and pat-/cedar-3.4.43 branches were all cloned from the linux-sunxi repo and pushed up to github from my development system.  A quick compare on github can confirm this:

https://github.com/patrickhwood/linux-sunxi/compare/linux-sunxi:stage%2Fsunxi-3.4...stage%2Fsunxi-3.4
https://github.com/patrickhwood/linux-sunxi/compare/linux-sunxi:stage%2Fsunxi-3.4...cedar

I no longer do any work on the branches from the cubieboard2 fork or the 3.3.0 kernel.
Title: Re: Linaro 13.04 developer for A20
Post by: cubee-noob on October 06, 2013, 03:08:50 pm
hi patwood,
thx for your reply.are there any downloadable tarballs of the kernel sources?
i am not familiar with git.
if there are no tarballs, how can i optain compileable sources from git?
Title: Re: Linaro 13.04 developer for A20
Post by: patwood on October 06, 2013, 06:06:22 pm
Quote from: cubee-noob on October 06, 2013, 03:08:50 pm
hi patwood,
thx for your reply.are there any downloadable tarballs of the kernel sources?
i am not familiar with git.
if there are no tarballs, how can i optain compileable sources from git?

Not from reliable sources, and the .zip downloads from github are a joke -- they don't support symlinks, so the zipped sources are only good for reference, not for building.

You can install git and run:

git clone "http://github/some-git-user/some-git-repository"

Followed by

git checkout "the-branch-you-want"

For example, to get at my most recent branch (as of writing this -- it'll change in the future):

git clone http://github.com/patrickhwood/linux-sunxi
cd linux-sunxi
git checkout cedar
Title: Re: Linaro 13.04 developer for A20
Post by: cubee-noob on October 07, 2013, 02:44:25 am
Thx again patwood.

It did not help :(
make uImage still does not work and throws same error as 3.4.43 from sunxi:

  CC      arch/arm/mach-sun7i/pm/standby/mem_serial.o
  CC      arch/arm/mach-sun7i/pm/standby/mem_printk.o
  CC      arch/arm/mach-sun7i/pm/standby/mem_divlibc.o
  CC      arch/arm/mach-sun7i/pm/standby/mem_int.o
  CC      arch/arm/mach-sun7i/pm/standby/mem_timing.o
  AS      arch/arm/mach-sun7i/pm/standby/mem_divlib.o
  LD      arch/arm/mach-sun7i/pm/standby/standby.elf
arch/arm/mach-sun7i/pm/standby/mem_printk.o: In function `itoa':
/usr/src/kernel/linux-sunxi/arch/arm/mach-sun7i/pm/standby/mem_printk.c:168: undefined reference to `memcpy'
arch/arm/mach-sun7i/pm/standby/mem_printk.o: In function `utoa':
/usr/src/kernel/linux-sunxi/arch/arm/mach-sun7i/pm/standby/mem_printk.c:214: undefined reference to `memcpy'
arch/arm/mach-sun7i/pm/standby/mem_printk.o: In function `print_align':
/usr/src/kernel/linux-sunxi/arch/arm/mach-sun7i/pm/standby/mem_printk.c:369: undefined reference to `memcpy'
make[3]: *** [arch/arm/mach-sun7i/pm/standby/standby.elf] Error 1
make[2]: *** [arch/arm/mach-sun7i/pm/standby/standby.bin] Error 2
make[1]: *** [arch/arm/mach-sun7i/pm] Error 2
make: *** [arch/arm/mach-sun7i] Error 2
root@cubieez:/usr/src/kernel/linux-sunxi#


gcc is gcc (Debian 4.6.3-14) 4.6.3
CLAGS are "", so there none.
.config is /proc/config.gz plus modules for xfs and reiserfs file system.

/usr/src/kernel/linux-sunxi# uname -a
Linux cubieez 3.4.43-sun7i #1 SMP PREEMPT Thu Sep 19 21:43:14 CEST 2013 armv7l GNU/Linux


i am no C programmer bt i guess if there are undefined references, something must be broken.

could you build a kernel with these sources on a cubieboard2?

in case you want my .config, i'll post it here

Title: Re: Linaro 13.04 developer for A20
Post by: Ascomar on October 07, 2013, 03:13:57 am
I had the same problem, which is due to how gcc threats inline functions. I solved it by installing gcc version 4.6 (apt-get install gcc4.6).

Hope this can help.
Title: Re: Linaro 13.04 developer for A20
Post by: cubee-noob on October 07, 2013, 05:56:49 am
Quote from: Ascomar on October 07, 2013, 03:13:57 am
I had the same problem, which is due to how gcc threats inline functions. I solved it by installing gcc version 4.6 (apt-get install gcc4.6).



Hi,
in case you read my posting above, you would have seen i am using gcc4.6.
it is the default gcc in debian wheezy iirc.
Title: Re: Linaro 13.04 developer for A20
Post by: derekdhaas on October 07, 2013, 08:17:10 am
Patwood, can you upload the new u-boot and SPL?

Don't know what you've changed, but it seems to boot much quicker.
Title: Re: Linaro 13.04 developer for A20
Post by: cubee-noob on October 07, 2013, 08:30:45 am
i struggled on with my fight to compile a kernel with the modules i need.

the compile error mentioned above comes the power management in sunxi.
decativated it, next compile error :(

so i changed the gcc from 4.6 zu 4.7 to see if it is not a error in the source code but in the compiler.
i tried, and it failed again.
gcc4.7 threw same error as gcc4.6:
AR      lib/lib.a
  LD      vmlinux.o
  MODPOST vmlinux.o
  GEN     .version
  CHK     include/generated/compile.h
  UPD     include/generated/compile.h
  CC      init/version.o
  LD      init/built-in.o
  LD      .tmp_vmlinux1
net/built-in.o: In function `wiphy_rfkill_start_polling':
/usr/src/kernel/linux-sunxi/net/wireless/core.c:640: undefined reference to `rfkill_resume_polling'
make: *** [.tmp_vmlinux1] Error 1
root@cubieboard2:/usr/src/kernel/linux-sunxi# gcc --version
gcc (Debian 4.7.2-5) 4.7.2
Copyright (C) 2012 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.



i give it up :(

either a cubieboard is inapproriate to be self hosted, or the kernel code is highly broken, or i am just too stupid.

what i do not understand is why the kernels of all cubieboard a20 distros i have seen so far do NOT have kernel modules for reiserfs, xfs, jfs and other usefull modules but do have some hardly needed modules .....
Title: Re: Linaro 13.04 developer for A20
Post by: patwood on October 07, 2013, 10:48:15 am
Quote from: derekdhaas on October 07, 2013, 08:17:10 am
Patwood, can you upload the new u-boot and SPL?

Don't know what you've changed, but it seems to boot much quicker.

Done.  It's at http://dl.cubieforums.com/patwood/u-boot-mmc-ext4.tar.gz (http://dl.cubieforums.com/patwood/u-boot-mmc-ext4.tar.gz).  It boots faster for two reasons: I changed the "Hit any key to stop autoboot" timeout to 1 second, and it has a change made on 11 Aug by Hans de Goede that enabled the caches in u-boot (there was a ~10 second delay here while u-boot loaded and decompressed the kernel).
Title: Re: Linaro 13.04 developer for A20
Post by: patwood on October 07, 2013, 11:02:50 am
Quote from: cubee-noob on October 07, 2013, 02:44:25 am
Thx again patwood.

It did not help :(
make uImage still does not work and throws same error as 3.4.43 from sunxi:


...
/usr/src/kernel/linux-sunxi/arch/arm/mach-sun7i/pm/standby/mem_printk.c:168: undefined reference to `memcpy'
...


gcc is gcc (Debian 4.6.3-14) 4.6.3
CLAGS are "", so there none.
.config is /proc/config.gz plus modules for xfs and reiserfs file system.

/usr/src/kernel/linux-sunxi# uname -a
Linux cubieez 3.4.43-sun7i #1 SMP PREEMPT Thu Sep 19 21:43:14 CEST 2013 armv7l GNU/Linux


i am no C programmer bt i guess if there are undefined references, something must be broken.

could you build a kernel with these sources on a cubieboard2?

in case you want my .config, i'll post it here


I don't build kernels on the CB1 or CB2; I've been cross-compiling ARM kernels for a couple of years on x86 now, and it's much, much faster on a multi-core desktop.  Others have built kernels on the Cubieboards, so there's obviously something different about your setup.

The message you're seeing does look a lot like the one people experience with newer versions of gcc; however, 4.6.3 isn't one that produces it (I use the 4.6.3 armhf cross tools on x86 ubuntu).

You're actually seeing two different errors: one is a missing C library function (memcpy, an ANSI C standard function); the other is a missing driver function (rfkill_resume_polling).  It's the same error, but for two completely different reasons.

You might want to try one thing:  uninstall your gcc *and* libraries and reinstall 4.6.x.  The memcpy error may be due to the function not being in your libc library and not due to the wrong compiler version (i.e., a mismatch between the library and compiler).
Title: Re: Linaro 13.04 developer for A20
Post by: derekdhaas on October 07, 2013, 12:47:28 pm
Quote from: patwood on October 07, 2013, 10:48:15 am
Quote from: derekdhaas on October 07, 2013, 08:17:10 am
Patwood, can you upload the new u-boot and SPL?

Don't know what you've changed, but it seems to boot much quicker.

Done.  It's at http://dl.cubieforums.com/patwood/u-boot-mmc-ext4.tar.gz (http://dl.cubieforums.com/patwood/u-boot-mmc-ext4.tar.gz).  It boots faster for two reasons: I changed the "Hit any key to stop autoboot" timeout to 1 second, and it has a change made on 11 Aug by Hans de Goede that enabled the caches in u-boot (there was a ~10 second delay here while u-boot loaded and decompressed the kernel).


Thanks patwood, by the way, where did you get these changes? Can't find them in the u-boot commit log, are you using a different branch/repository: https://github.com/hno/u-boot/commits/wip/a20
Title: Re: Linaro 13.04 developer for A20
Post by: patwood on October 07, 2013, 01:43:11 pm
Quote from: derekdhaas on October 07, 2013, 12:47:28 pm
Quote from: patwood on October 07, 2013, 10:48:15 am
Quote from: derekdhaas on October 07, 2013, 08:17:10 am
Patwood, can you upload the new u-boot and SPL?

Don't know what you've changed, but it seems to boot much quicker.

Done.  It's at http://dl.cubieforums.com/patwood/u-boot-mmc-ext4.tar.gz (http://dl.cubieforums.com/patwood/u-boot-mmc-ext4.tar.gz).  It boots faster for two reasons: I changed the "Hit any key to stop autoboot" timeout to 1 second, and it has a change made on 11 Aug by Hans de Goede that enabled the caches in u-boot (there was a ~10 second delay here while u-boot loaded and decompressed the kernel).


Thanks patwood, by the way, where did you get these changes? Can't find them in the u-boot commit log, are you using a different branch/repository: https://github.com/hno/u-boot/commits/wip/a20


I'm using the main linux-sunxi repo and main sunxi branch:

https://github.com/linux-sunxi/u-boot-sunxi

I'm working with a fairly old (as if Aug 27th is old these days!) commit: b19e90165ded325eb8d94c5582fba133452ec22d and I changed CONFIG_BOOTDELAY from 3 to 1 in include/configs/sunxi-common.h.
Title: Re: Linaro 13.04 developer for A20
Post by: karnicero on October 07, 2013, 07:47:03 pm
Quote from: cubee-noob on October 07, 2013, 02:44:25 am
Thx again patwood.

It did not help :(
make uImage still does not work and throws same error as 3.4.43 from sunxi:

  CC      arch/arm/mach-sun7i/pm/standby/mem_serial.o
  CC      arch/arm/mach-sun7i/pm/standby/mem_printk.o
  CC      arch/arm/mach-sun7i/pm/standby/mem_divlibc.o
  CC      arch/arm/mach-sun7i/pm/standby/mem_int.o
  CC      arch/arm/mach-sun7i/pm/standby/mem_timing.o
  AS      arch/arm/mach-sun7i/pm/standby/mem_divlib.o
  LD      arch/arm/mach-sun7i/pm/standby/standby.elf
arch/arm/mach-sun7i/pm/standby/mem_printk.o: In function `itoa':
/usr/src/kernel/linux-sunxi/arch/arm/mach-sun7i/pm/standby/mem_printk.c:168: undefined reference to `memcpy'
arch/arm/mach-sun7i/pm/standby/mem_printk.o: In function `utoa':
/usr/src/kernel/linux-sunxi/arch/arm/mach-sun7i/pm/standby/mem_printk.c:214: undefined reference to `memcpy'
arch/arm/mach-sun7i/pm/standby/mem_printk.o: In function `print_align':
/usr/src/kernel/linux-sunxi/arch/arm/mach-sun7i/pm/standby/mem_printk.c:369: undefined reference to `memcpy'
make[3]: *** [arch/arm/mach-sun7i/pm/standby/standby.elf] Error 1
make[2]: *** [arch/arm/mach-sun7i/pm/standby/standby.bin] Error 2
make[1]: *** [arch/arm/mach-sun7i/pm] Error 2
make: *** [arch/arm/mach-sun7i] Error 2
root@cubieez:/usr/src/kernel/linux-sunxi#


gcc is gcc (Debian 4.6.3-14) 4.6.3
CLAGS are "", so there none.
.config is /proc/config.gz plus modules for xfs and reiserfs file system.

/usr/src/kernel/linux-sunxi# uname -a
Linux cubieez 3.4.43-sun7i #1 SMP PREEMPT Thu Sep 19 21:43:14 CEST 2013 armv7l GNU/Linux


i am no C programmer bt i guess if there are undefined references, something must be broken.

could you build a kernel with these sources on a cubieboard2?

in case you want my .config, i'll post it here


Hi,

I compiled the kernel successfully but I changed in the file mem_printk.c:

line 168:
char digit_string[] = "0123456789ABCDEF";
to: char * digit_string = "0123456789ABCDEF";

line 213:
char digit_string[] = "0123456789ABCDEF";
to: char* digit_string = "0123456789ABCDEF";

line 369:
char fill_ch[] = "                ";
to: char* fill_ch = "                ";

and now all compiled ok.

Good luck!
Title: Re: Linaro 13.04 developer for A20
Post by: cubee-noob on October 08, 2013, 03:55:25 am
Quote from: patwood on October 07, 2013, 11:02:50 am

You might want to try one thing:  uninstall your gcc *and* libraries and reinstall 4.6.x.  The memcpy error may be due to the function not being in your libc library and not due to the wrong compiler version (i.e., a mismatch between the library and compiler).


this probem ocurred on a different distro too.
nevertheless i uninstalled gcc, reinstalled libc and libc-dev and so on, installed gcc4.7 again.
the problem still occurs.

maybe i will test cross compile on my Kubuntu pc the next days but i am not very confident it will change anything.
Title: Re: Linaro 13.04 developer for A20
Post by: patwood on October 08, 2013, 09:48:08 am
Quote from: cubee-noob on October 08, 2013, 03:55:25 am
Quote from: patwood on October 07, 2013, 11:02:50 am

You might want to try one thing:  uninstall your gcc *and* libraries and reinstall 4.6.x.  The memcpy error may be due to the function not being in your libc library and not due to the wrong compiler version (i.e., a mismatch between the library and compiler).


this probem ocurred on a different distro too.
nevertheless i uninstalled gcc, reinstalled libc and libc-dev and so on, installed gcc4.7 again.
the problem still occurs.

maybe i will test cross compile on my Kubuntu pc the next days but i am not very confident it will change anything.


I never used GCC 4.7 to build the kernel, but I recall there were issues with this version, which is why 4.5 or 4.6 is recommended-
Title: Re: Linaro 13.04 developer for A20
Post by: stulle on October 08, 2013, 09:54:27 am
HI!

Thanks for your work patwood :) glad to see progress, the image works very well for me. I installed lubuntu-desktop and so far everything "feels fine" with xv :)

i have a question: i compiled gnash from git  with "hardware acceleration: directfb" but chromium wont load the plugin and complains:

"libGL error: failed to load driver: sunxi-mali"

is this expected or is this a bug? shouldn't it load the driver "fbturbo"?

edit: i installed sunxi-mali by the howto on linux-sunxi-website: http://linux-sunxi.org/Binary_drivers, so that is not the problem
Title: Re: Linaro 13.04 developer for A20
Post by: cubieplayer on October 08, 2013, 04:21:42 pm
Quote from: derekdhaas on October 07, 2013, 12:47:28 pm
Quote from: patwood on October 07, 2013, 10:48:15 am
Quote from: derekdhaas on October 07, 2013, 08:17:10 am
Patwood, can you upload the new u-boot and SPL?

Don't know what you've changed, but it seems to boot much quicker.

Done.  It's at http://dl.cubieforums.com/patwood/u-boot-mmc-ext4.tar.gz (http://dl.cubieforums.com/patwood/u-boot-mmc-ext4.tar.gz).  It boots faster for two reasons: I changed the "Hit any key to stop autoboot" timeout to 1 second, and it has a change made on 11 Aug by Hans de Goede that enabled the caches in u-boot (there was a ~10 second delay here while u-boot loaded and decompressed the kernel).


Thanks patwood, by the way, where did you get these changes? Can't find them in the u-boot commit log, are you using a different branch/repository: https://github.com/hno/u-boot/commits/wip/a20

can' t find aslo
Title: Re: Linaro 13.04 developer for A20
Post by: patwood on October 08, 2013, 06:40:41 pm
Quote from: cubieplayer on October 08, 2013, 04:21:42 pm
Quote from: derekdhaas on October 07, 2013, 12:47:28 pm
Quote from: patwood on October 07, 2013, 10:48:15 am
Quote from: derekdhaas on October 07, 2013, 08:17:10 am
Patwood, can you upload the new u-boot and SPL?

Don't know what you've changed, but it seems to boot much quicker.

Done.  It's at http://dl.cubieforums.com/patwood/u-boot-mmc-ext4.tar.gz (http://dl.cubieforums.com/patwood/u-boot-mmc-ext4.tar.gz).  It boots faster for two reasons: I changed the "Hit any key to stop autoboot" timeout to 1 second, and it has a change made on 11 Aug by Hans de Goede that enabled the caches in u-boot (there was a ~10 second delay here while u-boot loaded and decompressed the kernel).


Thanks patwood, by the way, where did you get these changes? Can't find them in the u-boot commit log, are you using a different branch/repository: https://github.com/hno/u-boot/commits/wip/a20

can' t find aslo

http://www.cubieforums.com/index.php/topic,838.msg5056.html#msg5056
Title: Re: Linaro 13.04 developer for A20
Post by: patwood on October 08, 2013, 06:56:36 pm
Quote from: stulle on October 08, 2013, 09:54:27 am
HI!

Thanks for your work patwood :) glad to see progress, the image works very well for me. I installed lubuntu-desktop and so far everything "feels fine" with xv :)

i have a question: i compiled gnash from git  with "hardware acceleration: directfb" but chromium wont load the plugin and complains:

"libGL error: failed to load driver: sunxi-mali"

is this expected or is this a bug? shouldn't it load the driver "fbturbo"?

edit: i installed sunxi-mali by the howto on linux-sunxi-website: http://linux-sunxi.org/Binary_drivers, so that is not the problem


If everything got installed right, you should see something like this in Xorg.0.log:

[   355.184] Loading extension GLX
[   355.184] (II) LoadModule: "sunxifb"
[   355.201] (II) Loading /usr/lib/xorg/modules/drivers/sunxifb_drv.so
[   355.324] (II) Module sunxifb: vendor="X.Org Foundation"
[   355.324]    compiled for 1.13.3, module version = 0.3.1
[   355.324]    Module class: X.Org Video Driver
[   355.325]    ABI class: X.Org Video Driver, version 13.1
[   355.325] (II) SUNXIFB: driver for framebuffer: sunxifb


There are so many possible reasons why it's not working on a fresh install: not renaming mesa-egl, not setting the permissions for /dev/mali, disp, and ump, maybe needing to run ldconf.  Just not really sure.

First, though, make sure either sunxifb or fbturbo is being loaded properly when Xorg starts up (I'm using an older mali build that's named sunxifb).
Title: Re: Linaro 13.04 developer for A20
Post by: magno on October 08, 2013, 07:14:05 pm
Quote from: patwood on October 03, 2013, 12:58:20 am
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


It worked !
Title: Re: Linaro 13.04 developer for A20
Post by: magno on October 08, 2013, 08:52:25 pm
Quote from: patwood on October 02, 2013, 04:39:14 pm
Distro is 1GB with about 250MB free; use gparted or fdisk/resizefs to make it bigger.


When I execute

resize2fs /dev/mmcblk0p1

I get

resize2fs 1.42.5 (29-Jul-2012)
The filesystem is already 230400 blocks long.  Nothing to do!


Can you tell me how to resize the partition?
My SDCard is 2GB.
Title: Re: Linaro 13.04 developer for A20
Post by: patwood on October 08, 2013, 10:48:31 pm
Quote from: magno on October 08, 2013, 08:52:25 pm
Quote from: patwood on October 02, 2013, 04:39:14 pm
Distro is 1GB with about 250MB free; use gparted or fdisk/resizefs to make it bigger.


When I execute

resize2fs /dev/mmcblk0p1

I get

resize2fs 1.42.5 (29-Jul-2012)
The filesystem is already 230400 blocks long.  Nothing to do!


Can you tell me how to resize the partition?
My SDCard is 2GB.


You have to increase the partition size first. See fdisk.
Title: Re: Linaro 13.04 developer for A20
Post by: esiravegna on October 11, 2013, 11:21:51 am
Pat, thanks a lot for your work. I'm trying to build xbmc from scratch using http://linux-sunxi.org/XBMC, the libhybris binaries et all...however, when i try modprobe mali seems that the trivers aren't installed. I'm following http://linux-sunxi.org/Binary_drivers#Mali_kernel_driver, but make install states, which is true, that dev/mali isn't found.

Any ideas on how can install the mali drivers? Thanks!
Title: Re: Linaro 13.04 developer for A20
Post by: patwood on October 11, 2013, 02:03:20 pm
Quote from: esiravegna on October 11, 2013, 11:21:51 am
Pat, thanks a lot for your work. I'm trying to build xbmc from scratch using http://linux-sunxi.org/XBMC, the libhybris binaries et all...however, when i try modprobe mali seems that the trivers aren't installed. I'm following http://linux-sunxi.org/Binary_drivers#Mali_kernel_driver, but make install states, which is true, that dev/mali isn't found.

Any ideas on how can install the mali drivers? Thanks!


Starting from a fresh install of http://dl.cubieforums.com/patwood/linaro-quantal-developer-20130422-342-A20-3.4.61.img.xz, I did a "modprobe mali":

/root: modprobe mali
UMP<2>: Inserting UMP device driver. Compiled: Oct  2 2013, time: 01:12:25
UMP<2>: Using OS memory backend, allocation limit: 134217728
UMP: UMP device driver  loaded
Mali: permit MALI_IOC_MEM_MAP_EXT ioctl for framebuffer (paddr=0x5A000000, size=33554432)
<6>mali: use config clk_div 3
<6>mali: clk_div 3
Mali: mali clock set completed, clock is  320000000 Hz
<6>mali: use config clk_div 3
<6>mali: clk_div 3
Mali: mali clock set completed, clock is  320000000 Hz
Mali: Mali device driver loaded
/root: lsmod
Module                  Size  Used by
mali                  110943  0
ump                    51995  1 mali
cpufreq_powersave       1229  0
cpufreq_conservative     5970  0
cpufreq_userspace       3366  0
cpufreq_stats           3675  0
8192cu                450521  0
/root: ls -l /dev/mali
crw------- 1 root root 242, 0 Jan  1 00:00 /dev/mali
Title: Re: Linaro 13.04 developer for A20
Post by: esiravegna on October 11, 2013, 02:36:53 pm
Thanks a lot!
Title: Re: Linaro 13.04 developer for A20
Post by: cubee-noob on October 12, 2013, 02:27:30 am
Quote from: karnicero on October 07, 2013, 07:47:03 pm

Hi,

I compiled the kernel successfully but I changed in the file mem_printk.c:

line 168:
char digit_string[] = "0123456789ABCDEF";
to: char * digit_string = "0123456789ABCDEF";

line 213:
char digit_string[] = "0123456789ABCDEF";
to: char* digit_string = "0123456789ABCDEF";

line 369:
char fill_ch[] = "                ";
to: char* fill_ch = "                ";



thx a lot and sorry for the belated reply.

i changed mem_printk.c that way.
line 168:
char digit_string[] = "0123456789ABCDEF";
to: char * digit_string = "0123456789ABCDEF";
line 213:
char digit_string[] = "0123456789ABCDEF";
to: char * digit_string = "0123456789ABCDEF";
line 369:
char fill_ch[] = "                ";
to: char * fill_ch = "                ";


yes, i fixed it that way and now it did make uImage.
without errors. gcc version is gcc (Debian) 4.7.2-5

i mainly used /proc/config.gz and added the modules i needed.

i hope the broken code will be fixed soon in git.

by the way: make module pwm-sunxi also threw an error because pwm-sunxi.h was in the wrong directory, but i could fix by copying it to includes/

thx again.
Title: Re: Linaro 13.04 developer for A20
Post by: magno on October 12, 2013, 01:53:10 pm
Quote from: esiravegna on October 11, 2013, 11:21:51 am
Pat, thanks a lot for your work. I'm trying to build xbmc from scratch using http://linux-sunxi.org/XBMC, the libhybris binaries et all...however, when i try modprobe mali seems that the trivers aren't installed. I'm following http://linux-sunxi.org/Binary_drivers#Mali_kernel_driver, but make install states, which is true, that dev/mali isn't found.

Any ideas on how can install the mali drivers? Thanks!


Let me know when you are done. So I can refer your distro in my catalog.
http://www.cubieboard.cmabreu.com.br
Title: Re: Linaro 13.04 developer for A20
Post by: esiravegna on October 12, 2013, 03:04:33 pm
Built it, but the performance is horrible. Maybe it is because I'm trying to play the videos from a network instead the local fs. I will conduct more tests.
BTW, besides pulseaudio what else should I build or modprobe in order to get audio?
Title: Re: Linaro 13.04 developer for A20
Post by: patwood on October 12, 2013, 06:13:56 pm
Quote from: esiravegna on October 12, 2013, 03:04:33 pm
Built it, but the performance is horrible. Maybe it is because I'm trying to play the videos from a network instead the local fs. I will conduct more tests.
BTW, besides pulseaudio what else should I build or modprobe in order to get audio?

Horrible performance (1-2) fps usually means you're not using the hw decoder.  Start here:  http://linux-sunxi.org/CedarX
Title: Re: Linaro 13.04 developer for A20
Post by: esiravegna on October 13, 2013, 08:40:10 am
Quote from: patwood on October 12, 2013, 06:13:56 pm
Quote from: esiravegna on October 12, 2013, 03:04:33 pm
Built it, but the performance is horrible. Maybe it is because I'm trying to play the videos from a network instead the local fs. I will conduct more tests.
BTW, besides pulseaudio what else should I build or modprobe in order to get audio?

Horrible performance (1-2) fps usually means you're not using the hw decoder.  Start here:  http://linux-sunxi.org/CedarX


Thanks for the tip. I followed the http://linux-sunxi.org/XBMC guide, and used the http://linux-sunxi.org/CedarX/libve libhybris method. XBMC reports in sysinfo that I'm using the mali drivers. I'm not sure what I'm doing wrong here.
Title: Re: Linaro 13.04 developer for A20
Post by: magno on October 13, 2013, 11:37:50 am
Quote from: esiravegna on October 13, 2013, 08:40:10 am
Quote from: patwood on October 12, 2013, 06:13:56 pm
Quote from: esiravegna on October 12, 2013, 03:04:33 pm
Built it, but the performance is horrible. Maybe it is because I'm trying to play the videos from a network instead the local fs. I will conduct more tests.
BTW, besides pulseaudio what else should I build or modprobe in order to get audio?

Horrible performance (1-2) fps usually means you're not using the hw decoder.  Start here:  http://linux-sunxi.org/CedarX


Thanks for the tip. I followed the http://linux-sunxi.org/XBMC guide, and used the http://linux-sunxi.org/CedarX/libve libhybris method. XBMC reports in sysinfo that I'm using the mali drivers. I'm not sure what I'm doing wrong here.


Try to put the test movie in a SDCARD. Network videos is not the best way to test performance.
http://samplemedia.linaro.org/H264/big_buck_bunny_1080p_H264_AAC_25fps_7200K.MP4
Title: Re: Linaro 13.04 developer for A20
Post by: patwood on October 13, 2013, 12:36:28 pm
Quote from: esiravegna on October 13, 2013, 08:40:10 am
Quote from: patwood on October 12, 2013, 06:13:56 pm
Quote from: esiravegna on October 12, 2013, 03:04:33 pm
Built it, but the performance is horrible. Maybe it is because I'm trying to play the videos from a network instead the local fs. I will conduct more tests.
BTW, besides pulseaudio what else should I build or modprobe in order to get audio?

Horrible performance (1-2) fps usually means you're not using the hw decoder.  Start here:  http://linux-sunxi.org/CedarX


Thanks for the tip. I followed the http://linux-sunxi.org/XBMC guide, and used the http://linux-sunxi.org/CedarX/libve libhybris method. XBMC reports in sysinfo that I'm using the mali drivers. I'm not sure what I'm doing wrong here.


Mali doesn't perform video decode, cedar does.  Check a few things. 

First, do you have the files /dev/cedar_dev and /dev/disp?  If not, then try "modprobe sun4i_cedar_mod".

Are /dev/cedar_dev and /dev/disp writable by the user running xbmc?  If not, try "chmod 777 /dev/cedar_dev /dev/disp".

Do you have something like this in your uEnv.txt: sunxi_ve_mem_reserve=0?  If you do, remove it, as this reserves zero memory for the cedarx driver, so it'll exit without initializing during setup.

Also, I've never built xbmc for A10/A20, but I believe you need a special version in order for it to use the allwinner HW decoder driversL http://linux-sunxi.org/XBMC.
Title: Re: Linaro 13.04 developer for A20
Post by: esiravegna on October 13, 2013, 06:42:39 pm
modprobe sun4i_cedar_mod did the trick, video looks acceptable now...

THANKS!
Title: Re: Linaro 13.04 developer for A20
Post by: esiravegna on October 14, 2013, 10:10:15 am
Hey Pat, I found that the /lib/modules/3.4.61-sun7i+/build is a symbolic link pointing to /home/a user that doesn't exists. I'm trying to compile https://gitorious.org/hid-aureal-kernel-module, and doensn't find any rules, obvliously. Where can I get the proper  dirs? Thanks!
Title: Re: Linaro 13.04 developer for A20
Post by: patwood on October 14, 2013, 10:58:43 am
Quote from: esiravegna on October 14, 2013, 10:10:15 am
Hey Pat, I found that the /lib/modules/3.4.61-sun7i+/build is a symbolic link pointing to /home/a user that doesn't exists. I'm trying to compile https://gitorious.org/hid-aureal-kernel-module, and doensn't find any rules, obvliously. Where can I get the proper  dirs? Thanks!


The linux make system seems to create three symlinks to full path names.  Here are mine (I put all my builds in an "output/<build-name>" subdirectory):

/home/pwood/arm/mk802/linux-sunxi/output: ll ./3.4.61-sun7i+/source ./3.4.61-sun7i+/output/lib/modules/3.4.61-sun7i+/source ./3.4.61-sun7i+/output/lib/modules/3.4.61-sun7i+/build
lrwxrwxrwx 1 pwood pwood 54 Oct  2 01:24 ./3.4.61-sun7i+/output/lib/modules/3.4.61-sun7i+/build -> /home/pwood/arm/mk802/linux-sunxi/output/3.4.61-sun7i+
lrwxrwxrwx 1 pwood pwood 33 Oct 10 19:53 ./3.4.61-sun7i+/output/lib/modules/3.4.61-sun7i+/source -> /home/pwood/arm/mk802/linux-sunxi
lrwxrwxrwx 1 pwood pwood 33 Oct 10 19:52 ./3.4.61-sun7i+/source -> /home/pwood/arm/mk802/linux-sunxi
Title: Re: Linaro 13.04 developer for A20
Post by: esiravegna on October 14, 2013, 11:31:38 am
Thanks. Seems the problem is related to linux-headers not installed. I suppose I can't install any from the repository as the kernel is modified, right?

pt-get install linux-headers
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package linux-headers is a virtual package provided by:
  linux-headers-3.9.0-1-linaro-lt-vexpress 3.9.0-1.1ubuntu1~ci+130422180640
  linux-headers-3.9.0-1-linaro-omap 3.9.0-1.1ubuntu1~ci+130422195534
  linux-headers-3.9.0-1-linaro-u8500 3.9.0-1.1ubuntu1~ci+130422182708
  linux-headers-3.9.0-1-linaro-arndale 3.9.0-1.1ubuntu1~ci+130422185028
  linux-headers-3.9.0-1-linaro-highbank 3.9.0-1.1ubuntu1~ci+130422191348
  linux-headers-3.9.0-1-linaro-vexpress 3.9.0-1.1ubuntu1~ci+130422174343
  linux-headers-3.8.0-1-linaro-omap 3.8.0-1.1ubuntu1~ci+130225001457
  linux-headers-3.8.0-1-linaro-u8500 3.8.0-1.1ubuntu1~ci+130225033828
  linux-headers-3.8.0-1-linaro-origen 3.8.0-1.1ubuntu1~ci+130222082435
  linux-headers-3.8.0-1-linaro-arndale 3.8.0-1.1ubuntu1~ci+130225052351
  linux-headers-3.8.0-1-linaro-lt-vexpress 3.8.0-1.1ubuntu1~ci+130225011935
  linux-headers-3.8.0-1-linaro-highbank 3.8.0-1.1ubuntu1~ci+130225061748
  linux-headers-3.8.0-1-linaro-vexpress 3.8.0-1.1ubuntu1~ci+130225020935
  linux-headers-3.7.0-1-linaro-arndale 3.7.0-1.1~ci+130118091958
  linux-headers-3.7.0-1-linaro-origen 3.7.0-1.1~ci+130118091510
  linux-headers-3.7.0-1-linaro-u8500 3.7.0-1.1~ci+130118092324
  linux-headers-3.7.0-1-linaro-lt-vexpress 3.7.0-1.1~ci+130118091309
  linux-headers-3.7.0-1-linaro-vexpress 3.7.0-1.1~ci+130118091958
  linux-headers-3.5.0-17-omap 3.5.0-17.28
  linux-headers-3.5.0-17-highbank 3.5.0-17.28
  linux-headers-3.5.0-17 3.5.0-17.28
You should explicitly select one to install.
Title: Re: Linaro 13.04 developer for A20
Post by: tombs on October 14, 2013, 11:49:08 am
I am having a brain fart today. How do you install the image to an sd card?
Title: Re: Linaro 13.04 developer for A20
Post by: patwood on October 14, 2013, 12:00:24 pm
Quote from: esiravegna on October 14, 2013, 11:31:38 am
Thanks. Seems the problem is related to linux-headers not installed. I suppose I can't install any from the repository as the kernel is modified, right?

pt-get install linux-headers
Reading package lists... Done
Building dependency tree
Reading state information... Done
Package linux-headers is a virtual package provided by:
  linux-headers-3.9.0-1-linaro-lt-vexpress 3.9.0-1.1ubuntu1~ci+130422180640
  linux-headers-3.9.0-1-linaro-omap 3.9.0-1.1ubuntu1~ci+130422195534
  ...



Yup.  The allwinner kernel is a branch of the mainline linux source tree, so its headers probably won't match up; however, you've got the kernel installed, so you should be able to make a symlink of your git tree in /usr/src.
Title: Re: Linaro 13.04 developer for A20
Post by: esiravegna on October 14, 2013, 12:24:08 pm

Nm, cloned the https://github.com/patrickhwood/linux-sunxi and did a simlyn from the root to /usr/src , same error.
I'll keep trying.
Thanks.
Title: Re: Linaro 13.04 developer for A20
Post by: esiravegna on October 14, 2013, 02:54:08 pm
oh, dang, now I need a working Module.symvers...does anybody can share a linaro 13.04 with me? I'm running out of space in order to make modules in src...
Title: Re: Linaro 13.04 developer for A20
Post by: magno on March 16, 2014, 05:42:13 pm
I can't recognize the sata disk plugged in my CB 20.
Can someone test this?
Title: Re: Linaro 13.04 developer for A20
Post by: jlacaci on March 19, 2014, 03:45:37 pm
Quote from: magno on March 16, 2014, 05:42:13 pm
I can't recognize the sata disk plugged in my CB 20.
Can someone test this?


Magno, perhaps need to mount disk!? with utility disk (push on play!) triangle icono

(http://s8.postimg.org/gptc97prp/discos.png)
Title: Re: Linaro 13.04 developer for A20
Post by: magno on April 29, 2014, 11:21:02 am
Quote from: jlacaci on March 19, 2014, 03:45:37 pm
Quote from: magno on March 16, 2014, 05:42:13 pm
I can't recognize the sata disk plugged in my CB 20.
Can someone test this?


Magno, perhaps need to mount disk!? with utility disk (push on play!) triangle icono

(http://s8.postimg.org/gptc97prp/discos.png)


Mea Culpa!
Just plug the cubie on a good power source!