From: Jeff R. <jef...@gm...> - 2010-04-30 09:21:09
|
I have also been trying to use the git repo with a Verdex Pro w/ netpro (R2210) and wifi module. No success with the wifi module yet, but I have built 2.6.31 and a rootfs and booted them from the on-board flash. The good news: 1) If you're already running u-boot 1.2.0 you don't have to flash u-boot, you can get away with just doing the following instead: GUM> setenv bootcmd "icache on; setenv stderr nulldev; setenv stdout nulldev; if pinit on && fatload ide 0 a2000000 gumstix-factory.script; then setenv stdout serial; setenv stderr serial; echo Found gumstix-factory.scrit on CF...; autoscr; else if mmcinit && fatload mmc 0 a2000000 gumstix-factory.script; then setenv stdout serial; setenv stderr serial; echo Found gumstix-factory.script on MMC...; autoscr; else setenv stdout serial; setenv stderr serial; katload 160000 && bootm; fi; fi" GUM> saveenv 2) Some tweaks have to be made to the kernel in order for the large kernel size to work. Patch follows: >From 5b3af3b4502704772f14dc48a04767ed75961ad2 Mon Sep 17 00:00:00 2001 From: neek <ne...@wh...> Date: Fri, 30 Apr 2010 01:21:20 -0700 Subject: [PATCH] Modify kernel 2.6.31 to boot from u-boot Enables necessary config options to make kernels bootable. Including building-in JFFS2. Changes kernel size in Verdex's flash patch to 0x160000 -- without this the kernel WILL overwrite itself. --- recipes/linux/gumstix-kernel-2.6.31/defconfig | 8 ++++---- recipes/linux/gumstix-kernel-2.6.31/flash.patch | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/recipes/linux/gumstix-kernel-2.6.31/defconfig b/recipes/linux/gumstix-kernel-2.6.31/defconfig index db1fe91..bcacaa5 100644 --- a/recipes/linux/gumstix-kernel-2.6.31/defconfig +++ b/recipes/linux/gumstix-kernel-2.6.31/defconfig @@ -1,7 +1,7 @@ # # Automatically generated make config: don't edit # Linux kernel version: 2.6.31 -# Wed Apr 7 11:23:47 2010 +# Thu Apr 29 12:55:52 2010 # CONFIG_ARM=y CONFIG_SYS_SUPPORTS_APM_EMULATION=y @@ -724,7 +724,7 @@ CONFIG_MTD_MAP_BANK_WIDTH_2=y # CONFIG_MTD_MAP_BANK_WIDTH_16 is not set # CONFIG_MTD_MAP_BANK_WIDTH_32 is not set CONFIG_MTD_CFI_I1=y -# CONFIG_MTD_CFI_I2 is not set +CONFIG_MTD_CFI_I2=y # CONFIG_MTD_CFI_I4 is not set # CONFIG_MTD_CFI_I8 is not set CONFIG_MTD_OTP=y @@ -743,7 +743,7 @@ CONFIG_MTD_CFI_UTIL=y CONFIG_MTD_COMPLEX_MAPPINGS=y # CONFIG_MTD_PHYSMAP is not set CONFIG_MTD_GUMSTIX=y -# CONFIG_MTD_PXA2XX is not set +CONFIG_MTD_PXA2XX=y # CONFIG_MTD_ARM_INTEGRATOR is not set # CONFIG_MTD_PLATRAM is not set @@ -1800,7 +1800,7 @@ CONFIG_MISC_FILESYSTEMS=y # CONFIG_BEFS_FS is not set # CONFIG_BFS_FS is not set # CONFIG_EFS_FS is not set -CONFIG_JFFS2_FS=m +CONFIG_JFFS2_FS=y CONFIG_JFFS2_FS_DEBUG=0 CONFIG_JFFS2_FS_WRITEBUFFER=y # CONFIG_JFFS2_FS_WBUF_VERIFY is not set diff --git a/recipes/linux/gumstix-kernel-2.6.31/flash.patch b/recipes/linux/gumstix-kernel-2.6.31/flash.patch index c890022..aaf52af 100644 --- a/recipes/linux/gumstix-kernel-2.6.31/flash.patch +++ b/recipes/linux/gumstix-kernel-2.6.31/flash.patch @@ -47,7 +47,7 @@ index e69de29..5ee1a85 100644 + .offset = MTDPART_OFS_NXTBLK + },{ + .name = "Kernel", -+ .size = 0x00100000, ++ .size = 0x00160000, + .offset = MTDPART_OFS_NXTBLK + } +}; -- 1.5.6.5 3) rootfs is bloated with a bunch of stuff inherited from Angstrom, which I don't have a use for, so I hacked it all out. You'll probably want to pass on this patch but if you want a quick and dirty head-start towards a rootfs that will fit on the Pro, here you go: (BONUS: Also fixes a typo.) >From 372719dc04bf5b14ffe2b3d467d7ad8e258863d4 Mon Sep 17 00:00:00 2001 From: neek <ne...@wh...> Date: Fri, 30 Apr 2010 01:08:14 -0700 Subject: [PATCH] Tweak distro and task to shrink rootfs Disables a bunch of packages that I don't need in order to create a smaller rootfs (one that will fit on the Verdex Pro, 16MB.) YMMV! --- conf/distro/angstrom-2008.1.conf | 5 +---- conf/distro/include/angstrom.inc | 4 ++-- recipes/tasks/task-base-gumstix.bb | 12 ++---------- 3 files changed, 5 insertions(+), 16 deletions(-) diff --git a/conf/distro/angstrom-2008.1.conf b/conf/distro/angstrom-2008.1.conf index 2b03e71..a40085d 100644 --- a/conf/distro/angstrom-2008.1.conf +++ b/conf/distro/angstrom-2008.1.conf @@ -35,7 +35,7 @@ require conf/distro/include/sane-srcrevs.inc require conf/distro/include/angstrom-2008-preferred-versions.inc require conf/distro/include/preferred-opie-versions-1.2.4.inc -#Images built can have to modes: +#Images built can have two modes: # 'debug': empty rootpassword, strace included # 'release' no root password, no strace and gdb by default DISTRO_TYPE ?= "debug" @@ -193,9 +193,6 @@ DISTRO_EXTRA_RRECOMMENDS += " \ kernel-module-ext2 \ kernel-module-ext3 \ kernel-module-af-packet \ - avahi-daemon \ - avahi-autoipd \ - openssh-sftp-server \ ${DEBUG_APPS} \ " diff --git a/conf/distro/include/angstrom.inc b/conf/distro/include/angstrom.inc index 8bbd28e..4665c6c 100644 --- a/conf/distro/include/angstrom.inc +++ b/conf/distro/include/angstrom.inc @@ -196,7 +196,7 @@ SEPPUKU_COMPONENT = "org.openembedded.dev" OESTATS_SERVER ?= "tinderbox.openembedded.org" # We want images supporting the following features (for task-base) -DISTRO_FEATURES = "nfs smbfs wifi ppp alsa bluetooth ext2 vfat irda pcmcia usbgadget usbhost pci pam" +DISTRO_FEATURES = "wifi ext2 vfat pcmcia usbgadget" # Use-like features -DISTRO_FEATURES += "tk" +#DISTRO_FEATURES += "tk" diff --git a/recipes/tasks/task-base-gumstix.bb b/recipes/tasks/ task-base-gumstix.bb index 858e833..e2e6cb3 100644 --- a/recipes/tasks/task-base-gumstix.bb +++ b/recipes/tasks/task-base-gumstix.bb @@ -236,18 +236,11 @@ RRECOMMENDS_task-base-alsa = "\ RDEPENDS_task-base-pcmcia = "\ ${PCMCIA_MANAGER} \ - ${@base_contains('DISTRO_FEATURES', 'wifi', 'prism-firmware', '',d)} \ - ${@base_contains('DISTRO_FEATURES', 'wifi', 'spectrum-fw', '',d)} \ " RRECOMMENDS_task-base-pcmcia = "\ ${@base_contains('MACHINE_FEATURES', 'kernel26', '${task-base-pcmcia26}', '${task-base-pcmcia24}',d)} \ kernel-module-pcmcia \ - kernel-module-airo-cs \ - kernel-module-pcnet-cs \ - kernel-module-serial-cs \ - kernel-module-ide-cs \ - kernel-module-ide-disk \ ${@base_contains('MACHINE_FEATURES', 'cfroot', '', 'kernel-module-pxa2xx-core',d)} \ ${@base_contains('MACHINE_FEATURES', 'cfroot', '', 'kernel-module-pxa2xx-cs',d)} \ " @@ -354,14 +347,14 @@ RRECOMMENDS_task-base-ipsec = "\ # # task-base-wifi contain everything needed to get WiFi working -# WEP/WPA connection needs to be supported out-of-box +# WEP connections need to be supported out-of-box # RDEPENDS_task-base-wifi = "\ task-base-pcmcia \ wireless-tools \ ${@base_contains('COMBINED_FEATURES', 'hostap', 'hostap-utils', '',d)} \ ${@base_contains('COMBINED_FEATURES', 'madwifi', 'madwifi-ng-tools', '',d)} \ - wpa-supplicant" + " RRECOMMENDS_task-base-wifi = "\ ${@base_contains('COMBINED_FEATURES', 'madwifi', 'madwifi-ng-modules', '',d)} \ @@ -459,7 +452,6 @@ RRECOMMENDS_task-base-gumstix-ethernet = "\ RDEPENDS_task-boot-gumstix = "\ pxaregs \ - bonjour \ sysfsutils \ util-linux-mount util-linux-umount \ " -- 1.5.6.5 --------------------------------------------- I haven't yet unlocked the magic that'll make the wifi module work but I do have a buildable system. Hooray! Here's what happens when I try to fire up the wifi: root@gumstix-verdex:/# modprobe libertas-cs lib80211: common routines for IEEE802.11 drivers root@gumstix-verdex:/# /etc/init.d/cf8385 start Starting Marvell Wifi CF8385... pcmcia_socket pcmcia_socket0: pccard: PCMCIA card inserted into slot 0 pcmcia 0.0: pcmcia: registering new device pcmcia0.0 libertas_cs 0.0: firmware: requesting libertas_cs_helper.fw /* pauses for about a minute here */ libertas_cs: can't load helper firmware root@gumstix-verdex:/# :-( root@gumstix-verdex:/# ls /lib/firmware/ libertas_cs.fw libertas_cs_helper.fw libertas_license.txt root@gumstix-verdex:/# Any ideas? I'm not familiar with the firmware-binary-blob-handling subsystem, so this could be a simple fix. FINALLY, Major props to you, Ash, for getting a git repo going. I don't know how much is your influence and how much comes from how things are done with the Overo but the layout of the files is waaaaay cleaner than the svn setup. BitBake/OE still seem like messy spaghetti* to to me but working with your repo has made me feel like I have a fighting chance :-P Okay, I'm sure I missed a lot of stuff but I hope there is something helpful in here for someone. G'nite! -- Jeff * Someday I'll learn to accept it for what it is and wield its power. In the mean time I'll keep saying stuff like that. Today "bitbake -c mrproper gumstix-kernel" deleted the _entire_ contents of my _/usr/share/sources_ _directory_. What the f-ck is that?! Gigs and gigs and gigs down the drain. Poof. I will never talk to mrproper ever again. 'clean' ftw. On Thu, Apr 29, 2010 at 7:31 AM, ck-...@ti... <ck-...@ti...>wrote: > Hi, > > the ethernet with the 'old' net-cf is not working with the 2.6.31 kernel. > I tried several modules: smc91x.ko, smc911x.ko. > No log, no message, no eth0/eth1. > > The 2.6.21 works fine. A module named gumstix-smc91x.ko is loaded > additionaly. > I checked the patch in 2.6.21 and there is some initialization done. > But i am not familar with the gpio and ethernet and cf stuff and it will > be difficult for me to move the patch to > 2.6.31. > Is there somebody who already has the 'old' verdex net-cf running with > the latest oe 2.6.31 kernel? > > Thanks > Clemens > > Am 29.04.2010 08:19, schrieb Ash Charles: > > Hi Clemens, > > > > On Wed, Apr 28, 2010 at 10:42 PM, ck-...@ti... > > <ck-...@ti...> wrote: > > > >> Hi Ash, > >> > >> that works fine! > >> i tested the u-boot with an 'old' verdex + netcf and the kernel boots > >> fine, loading the root-fs > >> from the compact flash. > >> Now i have two more questions, > >> did  you ever try to get a root-fs with oe  smaller than 16 Mb ( > that's > >> the size of my onboard verdex flash ) > >> to be able to store the root fs also on the verdex flash? > >> > > I haven't tried this---I'll give it a whirl tomorrow morning and see > > what I can get. > > > >> and is there a patch for the 2.6.31 kernel to work with the 'old' net-cf > >> ( smc91x ) ethernet? > >> > > I think this is the old LAN91C111 chip. The kernel is built with > > CONFIG_SMSC911X=m and CONFIG_PCMCIA_SMC91C92=m which should cover both > > the LAN91C111 and the LAN9117 chips. I haven't tried anything with a > > LAN91C111 chip though---let me know if you have problems. > > > >> i know (tested) 2.6.21 was working ( a prebuilt gumstix image had that > >> version ). > >> > >> Thanks very much > >> Clemens > >> > >> > > Ash > > > >> Am 28.04.2010 21:19, schrieb ck-...@ti...: > >> > >>> That's great news( for me), i'll try that! > >>> > >>> Thanks > >>> Clemens > >>> > >>> Am 28.04.2010 17:53, schrieb Ash Charles: > >>> > >>> > >>>> Hi Clemens, > >>>> > >>>> U-boot is available in the Verdex git repo (see this thread and > >>>> associated caveats: > >>>> > http://old.nabble.com/Buildable-U-boot-available-for-VerdexPRO-td28298831.html#a28298831 > ). > >>>>  I've changed the default katinstall command to flash the kernel to > >>>> ~1.6MB off the top of the memory.  Have a look at > >>>> org.openembedded.dev/conf/machine/gumstix-verdex.conf if you need to > >>>> do additional setup. > >>>> > >>>> -Ash > >>>> > >>>> On Wed, Apr 28, 2010 at 3:10 AM, ck-...@ti... > >>>> <ck-...@ti...> wrote: > >>>> > >>>> > >>>> > >>>>> Hi, > >>>>> > >>>>> has anybody found a solution to store the 'bigger' > >>>>> verdex kernel to onboard flash on a verdex board? > >>>>> I found some posts to load from micro-SD or to reduce the size. > >>>>> But has somebody found a solution � to store and run � a 1.2 MB big > Kernel > >>>>> from the Flash on the verdex board? > >>>>> It looks like the limit is because of partition sizes, can these > >>>>> definitions be changed? > >>>>> > >>>>> Thanks > >>>>> Clemens > >>>>> > >>>>> > >>>>> > ------------------------------------------------------------------------------ > >>>>> _______________________________________________ > >>>>> gumstix-users mailing list > >>>>> gum...@li... > >>>>> https://lists.sourceforge.net/lists/listinfo/gumstix-users > >>>>> > >>>>> > >>>>> > >>>>> > >>>> > ------------------------------------------------------------------------------ > >>>> _______________________________________________ > >>>> gumstix-users mailing list > >>>> gum...@li... > >>>> https://lists.sourceforge.net/lists/listinfo/gumstix-users > >>>> > >>>> > >>>> > >>> > ------------------------------------------------------------------------------ > >>> _______________________________________________ > >>> gumstix-users mailing list > >>> gum...@li... > >>> https://lists.sourceforge.net/lists/listinfo/gumstix-users > >>> > >>> > >>> > >> > >> > ------------------------------------------------------------------------------ > >> _______________________________________________ > >> gumstix-users mailing list > >> gum...@li... > >> https://lists.sourceforge.net/lists/listinfo/gumstix-users > >> > >> > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > gumstix-users mailing list > > gum...@li... > > https://lists.sourceforge.net/lists/listinfo/gumstix-users > > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > gumstix-users mailing list > gum...@li... > https://lists.sourceforge.net/lists/listinfo/gumstix-users > |