STK1160 media_build compiling: make prepare failed

Started by Zipbier, January 13, 2015, 10:23:56 AM

Previous topic - Next topic

Zipbier

Hi,

I have followed this step by step manual:
https://www.olimex.com/wiki/STK1160-howto-linux-sunxi-3_4

I do exactly the same, only difference I made this on my A20-OLinuXino-MICRO.

I have an error on step: 'make prepare'

root@a20-olimex:~/media_build# sudo make prepare
make -C /root/media_build/v4l prepare
make[1]: Entering directory `/root/media_build/v4l'
No version yet, using 3.4.90+
make[1]: Leaving directory `/root/media_build/v4l'
make[1]: Entering directory `/root/media_build/v4l'
scripts/make_makefile.pl
Updating/Creating .config
make[2]: Entering directory `/root/media_build/linux'
Applying patches for kernel 3.4.90+
patch -s -f -N -p1 -i ../backports/api_version.patch
patch -s -f -N -p1 -i ../backports/pr_fmt.patch
patch -s -f -N -p1 -i ../backports/debug.patch
patch -s -f -N -p1 -i ../backports/drx39xxj.patch
patch -s -f -N -p1 -i ../backports/v3.16_netdev.patch
patch -s -f -N -p1 -i ../backports/v3.16_wait_on_bit.patch
patch -s -f -N -p1 -i ../backports/v3.16_void_gpiochip_remove.patch
patch -s -f -N -p1 -i ../backports/v3.11_dev_groups.patch
patch -s -f -N -p1 -i ../backports/v3.10_fw_driver_probe.patch
patch -s -f -N -p1 -i ../backports/v3.10_ir_hix5hd2.patch
patch -s -f -N -p1 -i ../backports/v3.9_pfn_warning.patch
patch -s -f -N -p1 -i ../backports/v3.9_drxj_warnings.patch
patch -s -f -N -p1 -i ../backports/v3.8_config_of.patch
patch -s -f -N -p1 -i ../backports/v3.6_pci_error_handlers.patch
patch -s -f -N -p1 -i ../backports/v3.6_i2c_add_mux_adapter.patch
patch -s -f -N -p1 -i ../backports/v3.4_i2c_add_mux_adapter.patch
Patched drivers/media/dvb-core/dvbdev.c
Patched drivers/media/v4l2-core/v4l2-dev.c
Patched drivers/media/rc/rc-main.c
make[2]: Leaving directory `/root/media_build/linux'
Preparing to compile for kernel version 3.4.90
File not found: /lib/modules/3.4.90+/build/.config at ./scripts/make_kconfig.pl line 33, <IN> line 4.
make[1]: Leaving directory `/root/media_build/v4l'
make[1]: Entering directory `/root/media_build/v4l'
Updating/Creating .config
make[2]: Entering directory `/root/media_build/linux'
Patches for 3.4.90+ already applied.
make[2]: Leaving directory `/root/media_build/linux'
Preparing to compile for kernel version 3.4.90
File not found: /lib/modules/3.4.90+/build/.config at ./scripts/make_kconfig.pl line 33, <IN> line 4.
make[1]: *** No rule to make target `.myconfig', needed by `config-compat.h'.  Stop.
make[1]: Leaving directory `/root/media_build/v4l'
make: *** [prepare] Error 2


Can anybody help me, I am quite noob on linux. Any other previous step working well. Only this one failed.
My GCC:

gcc (Debian 4.7.2-5) 4.7.2
Target: arm-linux-gnueabihf

Thanks

Zipbier

The problem was:

The .config was missing:

zcat /proc/config.gz > /lib/modules/3.4.90+/build/.config

The kernel header was missing, I copied from source:

cp -r root/linux-sunxi/include/ lib/modules/3.4.90+/build/include/

Zipbier

Something not ok. The last step is not clear for me: 'Installing the new kernel and modules'


I had copied /linux-sunxi/out/lib/modules/3.x.xx+ to lib/modules/3.x.xx+
and uImage to sd
is this ok?

I don't see any sign of stk1160 with lsmod and dmesg

Module                  Size  Used by
videobuf2_memops        2714  0
videobuf2_core         39097  0
cpufreq_powersave       1197  0
cpufreq_userspace       3294  0
cpufreq_conservative     5966  0
cpufreq_stats           5901  0
disp_ump                 861  0
mali_drm                2608  1
drm                   208086  2 mali_drm
mali                  110440  0
g_ether                56007  0
pwm_sunxi               9263  0
videobuf_dma_contig     6745  0
videobuf_core          19999  1 videobuf_dma_contig
v4l2_common             5652  1 videobuf2_core
videodev              125002  2 v4l2_common,videobuf2_core
sun4i_keyboard          2142  0
ledtrig_heartbeat       1362  0
led_class               3521  0
sunxi_emac             33985  0
sunxi_gmac             29939  0
sunxi_cedar_mod         9856  0
ump                    50923  4 mali,disp_ump
lcd                     3746  0