logo

Could not compile stylesheet for simplistic. Using last compiled stylesheet.

Android prebuilt image hangs from SD card boot

posted in Uncategorized
Tuesday, September 06 2011, 08:39 AM
coredump9
coredump9
Offline
0
Hi, I\\\'m having a problem getting the Android (Froyo 2.2) [url=http://labs.igep.es/index.php/How_to_get_the_Android_distribution:kjqrztqv]prebuilt images[/url] to run on my IGEPv2 board (Rev B). u-boot loads ok but the kernel hangs when accessing rootfs on the SD card. The last message on the console is: \\\"Waiting for root device /dev/mmcblk0p2...\\\". Furthermore it appears that the board is going into low-power mode. Other things I tried: - ran fsck andfound no errors on my SD card - tried reformatting it and got the same hang - used a 2nd SD card (different brand) and same hang This seems to be an outstanding issue with the IGEPv2, at least with the Rev B version, because another person recently reported the same problem on the [url=http://code.google.com/p/rowboat/issues/detail?id=99:kjqrztqv]Rowboat forum[/url] Interestingly, I saw [url=http://groups.google.com/group/beagleboard/browse_thread/thread/ca23dfc06867c7cf?hide_quotes=no#msg_:kjqrztqv]another thread[/url], this time on the BeagleBoard forum on the same issue. The solution it seems is a change in the TWL4040 (power mgmt IC) defconfig:
[i]OMAP3: MMC needs CONFIG_REGULATOR{,_TWL4030} now in defconfigs MMC doesn\\\'t work after 3fe326511c66ab842ef0a09a1f4c564b1a8beecf unless CONFIG_REGULATOR, CONFIG_REGULATOR_TWL4030 are present in the .config. Add those in for all OMAP3 defconfigs. Tested on BeagleBoard, but this is presumably needed for anything with MMC and TWL4030.[/i]
If so, can someone shed light on exactly how to make this config change or even better, update the prebuilt images with the correction? thanks, Ben Bongalon ben AT borglabs DOTCOM
Responses (4)
  • Accepted Answer

    mcaro
    mcaro
    Offline
    Tuesday, September 06 2011, 09:30 AM - #permalink
    0
    The Android kernel it\\\'s located here: [url=http://git.igep.es/?p=pub/scm/linux-omap-2.6.git;a=shortlog;h=refs/heads/linux-2.6.32.y-android]http://git.igep.es/?p=pub/scm/linux-oma ... .y-android[/url] You can download from git all sources and compile it with your suggested changes .... The way for do that it: a) Download. git clone [url=git://git.igep.es/scm/linux-omap-2.6.git]git://git.igep.es/scm/linux-omap-2.6.git[/url] b) get your desired branch. git checkout linux-2.6.32.y-android -b c) The default defconfig it\\\'s located inside the directory: arch/arm/configs Exist 2 ways for modify the config: a) Edit the defconfig directly (as point c says) b) Edit the file .config located in the root sources after configure the kernel. Please read the howto\\\'s related in our wiki page about how compile or configure the kernel. Manel
    The reply is currently minimized Show
  • Accepted Answer

    coredump9
    coredump9
    Offline
    Wednesday, September 07 2011, 04:13 PM - #permalink
    0
    Hello Manel, Thanks for the quick response. I followed your suggestion and found out that in fact, the igep0020_android_defconfig is already configured properly as shown: jdoe@ubuntu:~/linux-omap-2.6/arch/arm/configs$ grep REGULATOR igep0020_android_defconfig # CONFIG_WIRELESS_OLD_REGULATORY is not set CONFIG_REGULATOR=y # CONFIG_REGULATOR_DEBUG is not set # CONFIG_REGULATOR_FIXED_VOLTAGE is not set # CONFIG_REGULATOR_VIRTUAL_CONSUMER is not set # CONFIG_REGULATOR_USERSPACE_CONSUMER is not set # CONFIG_REGULATOR_BQ24022 is not set # CONFIG_REGULATOR_MAX1586 is not set CONFIG_REGULATOR_TWL4030=y # CONFIG_REGULATOR_LP3971 is not set # CONFIG_REGULATOR_TPS65023 is not set # CONFIG_REGULATOR_TPS6507X is not set Just for kicks, I recompiled the kernel but got the same hang. I will try to debug further. I would welcome any more suggestions you have. /Ben Oh, here were the actual commands I entered: cd $HOME git clone [url=git://git.igep.es/pub/scm/linux-omap-2.6.git]git://git.igep.es/pub/scm/linux-omap-2.6.git[/url] cd linux-omap-2.6/ git checkout origin/linux-2.6.32.y-android -b 2.6.32.y-android ## Did not actually edit the defconfig file because it was ok vi arch/arm/configs/igep0020_android_defconfig # set up build env source /usr/local/poky/eabi-glibc/arm/environment-setup cd $HOME/linux-omap-2.6 make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- igep0020_android_defconfig make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- zImage modules # you shld now have arch/arm/boot/zImage make ARCH=arm CROSS_COMPILE=arm-none-linux-gnueabi- uImage
    The reply is currently minimized Show
  • Accepted Answer

    hedwin
    hedwin
    Offline
    Wednesday, September 14 2011, 09:50 PM - #permalink
    0
    Wonder if there could be a dependency with the u-boot version used. u-boot does initialise mmc as well.
    The reply is currently minimized Show
  • Accepted Answer

    coredump9
    coredump9
    Offline
    Thursday, September 15 2011, 04:26 PM - #permalink
    0
    Thanks for the tip Hedwin. But I\\\'m curious why the bootloader would be in question. From what I can see in the logs, uBoot passes execution to the kernel and it is the kernel that hangs (more specifically, it puts the board in low-power mode) on mounting RootFS from MMC. Are you suspecting that uBoot is not properly initializing the hardware? I also did I more experiment... Instead of booting from MMC, I booted from NFS. I got much further in that the kernel ended up in panic mode (can\\\'t mount RootFS because rpcbind failed to connect to port). For some reason, the kernel couldn\\\'t mount from NFS even though the bootloader properly found and loaded the kernel image via TFTP. What\\\'s clear however is that the board does not go into low-power mode when booting from NFS. I think I may end up debugging the kernel but this would take me a while. :( Ben
    The reply is currently minimized Show
Your Reply

SUPPORT


This email address is being protected from spambots. You need JavaScript enabled to view it.
This email address is being protected from spambots. You need JavaScript enabled to view it.
IGEP Community Wiki
IGEP Community Forum
IGEP Community Online Chat