User Tools

Site Tools


build_env_on_ubuntu_and_build_kernel
no way to compare when less than two revisions

Differences

This shows you the differences between two versions of the page.


build_env_on_ubuntu_and_build_kernel [2010/02/17 17:49] (current) – created - external edit 127.0.0.1
Line 1: Line 1:
 +http://www.gumstix.net/wiki/index.php?title=Bitbake_on_Ubuntu
  
 +for building this outdates build you might need to use older gcc:
 +
 +  sudo ln -sf /usr/bin/gcc-4.1 /usr/bin/gcc
 +  gcc -v
 +  ....
 +  gcc version 4.1.3 20080623 (prerelease) (Ubuntu 4.1.2-24ubuntu1)
 +
 +http://labs.beatcraft.com/en/index.php?bc9%2FSoftware%2FOpenEmbedded%2Fkernel2.6.29%281%2F2%29\\
 +http://labs.beatcraft.com/en/index.php?bc9%2FSoftware%2FOpenEmbedded%2Fkernel2.6.29%282%2F2%29 \\
 +
 +[[ is original build fails ]]
 +
 +[[ if kernel fails at usb-gadget.c ]]
 +
 +http://docwiki.gumstix.com/index.php/Replacing_the_filesystem_image
 +
 +  mkfs.jffs2 -x lzo --root=/home/danja/work/gumstix/gumstix-oe/tmp/rootfs --faketime \
 +  --output=rootfs-new-method.jffs2 --little-endian --eraseblock=0x20000 --squash-uids
 +
 +<code>
 +Creating 3 MTD partitions on "gumstix-flash":
 +0x000000000000-0x000000040000 : "Bootloader"
 +0x000000040000-0x000001f00000 : "RootFS"
 +0x000001f00000-0x000002000000 : "Kernel"
 +</code>
 +
 +!! compute padding side from FLASHsize - uboot = rootfs (HEX) - use gcacl ;)
 +
 +http://docwiki.gumstix.org/index.php/Replacing_the_filesystem_image:
 +> U-Boot (mtd0) - 256K : 262144 Bytes.
 +> Kernel (mtd2) - 1M   : 1048576 Bytes.
 +> Padding size is FlashTotal - Kernel - U-Boot.
 +>
 +> Basic / Connex Standard (4MB) :  2883584 Bytes = 0x2C0000.
 +> XM Series (16MB Flash)        : 15466496 Bytes = 0xEC0000.
 +> Verdex XL6P (32MB Flash)      : 32243712 Bytes = 0x1EC0000.
 +
 +
 +
 +http://www.linux-mtd.infradead.org/faq/jffs2.html
 +
 +kernel must be <= 1024kb (gzip might help a bit)
 +
 +  gzip -9 linux.bin
 +  mkimage -A arm -O linux -T kernel -C gzip -a a0008000 -e a0008000 -n "oe-koala/verdex" -d zuImage-2.6.29.4-k0a1a-r3.gz zuImage-2.6.29.4-k0a1a-r3.bin
 +
 +flash by the book:
 +http://www.gumstix.net/Setup-and-Programming/view/Developer-how-to-s/Reflashing-using-a-serial-connection-and-a-CF-card/111.html \\
 +
 +{{:patch-kernel-2.6.29.4-bc9-r2.tgz|}}\\
 +{{:config.tar|}}\\
 +{{:make-bc9-kernel.sh.tar|}}\\
 +{{:setup-kernel-build.sh.tar|}}\\
 +
 +[[ local dump of labs.beatcraft.com/en/index.php?bc9%2FSoftware%2FOpenEmbedded%2Fkernel2.6.29%281%2F2%29 ]]
build_env_on_ubuntu_and_build_kernel.txt · Last modified: by 127.0.0.1