This document describe some tests done with latest linux-omap 2.6.33, Ubuntu Karmic and N800/N810. ####### Compile linux kernel 2.6.33 to N8x0 # Signed-off-by: Francisco Alecrim Download codesourcery ARM toolchain and uncompress. mkdir toolchain && cd toolchain wget tar -xf cd .. Create a source file to export toolchain and arch. echo " #export toolchain bin FIXME : replace path export PATH=:$PATH #export arch to kernel export ARCH=arm #export cross compiler prefix export CROSS_COMPILE=arm-mamona-linux-gnueabi- #change terminal prefix to identify arm env export PS1="(arm) "$PS1 " > arm-compiler source arm-compiler Download and compile kernel. git clone git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap-2.6.git #last test with linux-omap commit 3f7bd0e4830753dc567b60711f0d88117813fb5c cd linux-omap-2.6 git remote add alecrim http://gitorious.org/~alecrim/linux-omap/alecrim-linux-omap git fetch alecrim git checkout alecrim/master -b alecrim-n8x0 make n8x0_defconfig make -j8 The result is a kernel binary arch/arm/boot/zImage # Maemo flasher required # WARNING : I'm not responsible by your acts. :P You're by your own. sudo flasher -k arch/arm/boot/zImage -f cd .. ####### Create Ubuntu Karmic image to N800/N810 ### Basic image ### sudo apt-get install rootstock sudo rootstock --fqdn n810 --login ubuntu --password ubuntu --imagesize 250M mkdir ubuntu-karmic-minimal cd ubuntu-karmic-minimal tar -xf ../armel-rootfs-201002251105.tgz cd .. ### Chroot rootfs ### sudo cp /etc/resolv.conf ubuntu-karmic-minimal/etc/resolv.conf # using mamona script :P http://gitorious.org/mamona/tools sudo mamona-chroot ubuntu-karmic-minimal ### Serial console ### # WARNING : procedure below INSIDE CHROOT cat << EOF > /etc/init/ttyS2.conf # ttyS2 - getty # # This service maintains a getty on ttyS2 from the point the system is # started until it is shut down again. start on stopped rc RUNLEVEL=[2345] stop on runlevel [!2345] respawn exec /sbin/getty -L ttyS2 115200 vt100 EOF ##### USB network ######### # WARNING : procedure below INSIDE CHROOT cat << EOF > /etc/udev/rules.d/99-usbnet.rules SUBSYSTEM=="net", DRIVERS=="?*", GOTO="net_start_tt" GOTO="net_end_tt" LABEL="net_start_tt" # Bring devices up and down only if they're marked auto. # Use start-stop-daemon so we don't wait on dhcp ACTION=="add", RUN+="/sbin/ifconfig usb0 10.0.1.10" LABEL="net_end_tt" EOF ### Repositories ### # WARNING : procedure below INSIDE CHROOT cat << EOF > /etc/apt/sources.list deb http://ports.ubuntu.com/ubuntu-ports karmic main universe deb-src http://ports.ubuntu.com/ubuntu-ports karmic main universe EOF apt-get update ### SSH ### # WARNING : procedure below INSIDE CHROOT apt-get install -y openssh-server openssh-client #dropbear install fails apt-get clean ### custom apt ### #I re-compile some changes to work with jffs2. # WARNING : procedure below INSIDE CHROOT apt-get install -y wget wget http://franciscoalecrim.com/down/ubuntu/20100227/changes/apt_0.7.23.1ubuntu3_armel.deb wget http://franciscoalecrim.com/down/ubuntu/20100227/changes/apt-utils_0.7.23.1ubuntu3_armel.deb dpkg -i apt*ubuntu3*.deb rm apt*.deb apt-get update # Generate image #Exit chroot and generate image. exit # WARNING: procedure below OUTside chroot # using mamona script :P http://gitorious.org/mamona/tools mamona-gen-utils image -r ubuntu-karmic-minimal -i ubuntu-karmic-minimal.jffs2 sudo tar -czf ubuntu-karmic-minimal.tar.gz ubuntu-karmic-minimal #backup # Maemo flasher required # WARNING : I'm not responsible by your acts. :P You're by your own. sudo flasher -r ubuntu-karmic-minimal.jffs2 -f -R Configure your desktop to access device over SSH. I won't re-write this procedure http://dev.openbossa.org/trac/mamona/wiki/UsbNetworking OBS: * N800 requires to unplug/plug USB to get USB networki working. * Username and password is ubuntu References: 1 - https://wiki.ubuntu.com/ARM/RootfsFromScratch 2 - http://gitorious.org/mamona/openembedded 3 - http://dev.openbossa.org/trac/mamona/wiki/UsbNetworking Document under Creative Commons License Changes: Feb 27 2010 - Alecrim - Initial version Signed-off-by: Francisco Alecrim