Proceeded to compile kernel and modules - without error.
Followed steps in attached file.
Fails to boot and because I have no access to u-boot prompt am unable to troubleshoot.
Anyone have any comments on my compile process?

Thanks
.................................

I didn't get far:
make -j5 ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf- defconfig sunxi_defconfig
  HOSTCC  scripts/basic/fixdep
  HOSTCC  scripts/kconfig/conf.o
  SHIPPED scripts/kconfig/zconf.tab.c
  SHIPPED scripts/kconfig/zconf.lex.c
  SHIPPED scripts/kconfig/zconf.hash.c
  HOSTCC  scripts/kconfig/conf.o
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTCC  scripts/kconfig/zconf.tab.o
  HOSTLD  scripts/kconfig/conf
fixdep: error opening depfile: scripts/kconfig/.zconf.tab.o.d: No such file or directory
make[1]: *** [scripts/kconfig/zconf.tab.o] Error 2
make: *** [defconfig] Error 2
make: *** Waiting for unfinished jobs....
#
# configuration written to .config

I have scripts/kconfig/.zconf.tab.o.cmd and scripts/kconfig/.zconf.tab.o.tmp
How do I report an issue with this?

I still got a .config so I will proceed and see what happens.

Thanks
Rob


-------- Original Message --------
Subject:        Re: Cross Compile Module for armv7
Date:   Mon, 19 May 2014 22:39:51 +1000
From:   Robert Brown <[email protected]>
To:     Chris Samuel <[email protected]>



Wow thanks I would never have found that. I will give it a go over the
next day or two.
Can I expect most things to be working yet e.g. usb, network, HDMI
display,wireless?

Regards
Rob

On 19/05/14 21:34, Chris Samuel wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Rob,

On Mon, 19 May 2014 06:36:48 PM Robert Brown wrote:

Thanks for the info.
Pleasure!

Looking here:
https://github.com/linux-sunxi/linux-sunxi/tree/sunxi-devel

it looks like 3.15 rc1. Should I be checking somewhere else?
If the architecture is supported in the mainline kernel then you can just use
the standard place, which is:

https://www.kernel.org/

The latest tarball is here:

https://www.kernel.org/pub/linux/kernel/v3.x/testing/linux-3.15-rc5.tar.xz

but there are currently 77 commits beyond that (not a lot, but that's because
Linus's travelling and is off-net), including some for Allwinner chips, so you
may want to use git to clone his repo and build from there.

Browse here:

https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/

Clone with this:

git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git

cheers!
Chris
- --
  Chris Samuel  :http://www.csamuel.org/   :  Melbourne, VIC






My starting point is Fedora 19 booting ok on my MK802II ( so working u-boot).
Because I have not found a way to access the u-boot prompt on the MK802II the 
steps I have used are:

make -j5 ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf- menuconfig
make -j5 ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf- 
LOADADDR=0x40008000 uImage dtbs
make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf- -j5 
INSTALL_MOD_PATH=output modules
make ARCH=arm CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf- -j5 
INSTALL_MOD_PATH=output modules_install

put a copy of the created uImage and arch/arm/boot/sun4i-a10-a1000.dtb into the 
boot partition of the sdcard
copy the created modules to the /lib/modules on the rootfs partition

In case the existing boot.scr has some incocnsistency I save this to boot.cmd:
setenv bootargs console=ttyS0,115200 root=/dev/sda1 rootwait ro earlyprintk 
debug
ext2load mmc 0 0x46000000 uImage
ext2load mmc 0 0x49000000 sun4i-a10-a1000.dtb
env set fdt_high ffffffff
bootm 0x46000000 - 0x49000000

and run:
mkimage -C none -A arm -T script -d boot.cmd boot.scr

copy this boot.scr to the boot partition of the sdcard

But alas it fails to boot so I am missing something somewhere.

Also tried this alternative method:

cat arch/arm/boot/zImage arch/arm/boot/dts/sun4i-a10-a1000.dtb > zImage_w_dtb
mkimage -A arm -O linux -C none -T kernel -a 40008000 -e 40008000 -d 
zImage_w_dtb uImage

but maybe should be .....     -a 0x00008000 -e 0x00008000
Any thoughts?
_______________________________________________
luv-main mailing list
[email protected]
http://lists.luv.asn.au/listinfo/luv-main

Reply via email to