1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Dismiss Notice

Slackware inside Pandora.

Discussion in 'Alternative OS' started by Linux-SWAT, Feb 7, 2011.

  1. Linux-SWAT

    Linux-SWAT Advanced Member

    Joined:
    Feb 13, 2010
    Messages:
    7,203
    Last edited by a moderator: Nov 17, 2012
  2. Linux-SWAT

    Linux-SWAT Advanced Member

    Joined:
    Feb 13, 2010
    Messages:
    7,203
    ***bump***
     
  3. skelso

    skelso Still Fresh

    Joined:
    Sep 12, 2008
    Messages:
    16
    Location:
    Dumbarton, Scotland
  4. Linux-SWAT

    Linux-SWAT Advanced Member

    Joined:
    Feb 13, 2010
    Messages:
    7,203
    Interesting link, thanks.


    Still no answer to my post...
     
  5. notaz

    notaz Certified Guru

    Joined:
    Aug 23, 2005
    Messages:
    4,750
    Location:
    Lithuania
    With the right kernel it should work, but it will be sub-optimal. For best performance userspace should be compiled for ARMv7a VFP EABI.
     
    Last edited by a moderator: Feb 11, 2011
  6. Linux-SWAT

    Linux-SWAT Advanced Member

    Joined:
    Feb 13, 2010
    Messages:
    7,203
    Ok, thanks for the info.


    My first try just failed miserably ^^. New things to learn. Good.
     
  7. Linux-SWAT

    Linux-SWAT Advanced Member

    Joined:
    Feb 13, 2010
    Messages:
    7,203
    Went further : the Kernel Panic ^^


    Followed :


    http://www.armedslack.org/doku.php?id=installation


    Mini root filesystems for unsupported platforms.


    slack-current-miniroot_18Jan11.tar.xz


    Ext2 filesystem.


    1- Boot : only the logo.


    2- Took autoboot from http://vminko.org/gentoo_manuals/pandora


    Adapted it.

    Boot : only the logo.


    3- Took kernel from http://vminko.org/gentoo_manuals/pandora


    Adapted autoboot


    Boot :


    [ 7.545959] USB: No board-specific platform config found


    [11.104731] Kernel panic - not syncing: Attempted to kill init!


    What is this "board-specific platform config" ?
     
    Last edited by a moderator: Feb 13, 2011
  8. Linux-SWAT

    Linux-SWAT Advanced Member

    Joined:
    Feb 13, 2010
    Messages:
    7,203
    Built my own kernel.


    Fun to see its tiny .config compared to PC ones.


    Not tried it yet.


    ---Edit : Boot : only the logo. :/


    Followed http://pandorawiki.org/Kernel_build_instructions


    Choosed the hard way :


    http://www.codesourcery.com/sgpp/lite/arm/portal/release1592


    Sourcery G++ Lite 2010.09-51 for ARM EABI

    Questions :


    1- Magic sysrq : i suppose power on + pandora button = hard reset aka alt-printscr + b ?


    Other combination ?


    2- Is that supposed to be off in the default .config ?


    Power management options --> none


    CPU Frequency scaling --> none


    3- No iptables ?


    4- No utf8 for fat mounting ?


    5- At power on, is it possible to see a message, not the very fist pandora logo ?


    6- And same question as above post : What is this "board-specific platform config" ?
     
    Last edited by a moderator: Aug 19, 2011
  9. notaz

    notaz Certified Guru

    Joined:
    Aug 23, 2005
    Messages:
    4,750
    Location:
    Lithuania
    power+pandora is handled by hardware, don't know how to make use of magic sysreq with custom keypads.

    Yeah, this is still not implemented for OMAP3.

    The default config is only for hardware support, you add extra features yourself.

    Remove 'quiet' from autoboot bootargs?


    Note that for output kernel has to reach display driver stage, there is no x86-like VGA mode that could be used for very early messages.

    That's something USB related, not the reason it doesn't boot for you.


    I'm guessing the real problem is it doesn't mount rootfs, what fs do you have on your SD?
     
  10. Linux-SWAT

    Linux-SWAT Advanced Member

    Joined:
    Feb 13, 2010
    Messages:
    7,203
    I should have known that because it works even before kernel boot... :/


    Any Pandora sysrq guru around ?

    So the clocking user space tool controls what ? The processor itself ?

    Are the official firmwares shipped with this default .config kernel ?

    Removing 'quiet' did nothing.


    Ok.

    Maybe the usb stack is mandatory at some point in the init process ?

    ext2


    But it first needs to access the filesystem, therefore the SD device. :huh:


    I just added some stuff in my kernel, checking around all options. seeing ext2 compiled inside kernel etc...


    7- Is autoboot mandatory (on a SD) ?


    ----Edit : Went further again :)


    Some documentation here :


    http://neuvoo.org/wiki/index.php?title=Install_Pre-Built_Image


    Just copied uImage, /lib/modules and /lib/firmware from http://openpandora.org/firmware/pandora-rootfs.tar.bz2


    Had bluetooth lines


    set system clock


    waiting 2sec


    mmcblk0: p1


    EXT2-fs warning: mounting unchecked fs, running e2fsck is recommended


    VFS: Mounted root ext2


    Freeing Init memory


    Kernel panic ^^


    Reading this thread :
     
    Last edited by a moderator: Feb 14, 2011
  11. Linux-SWAT

    Linux-SWAT Advanced Member

    Joined:
    Feb 13, 2010
    Messages:
    7,203
    Tried what i can...


    Recompiled my own kernel, took one from official rootfs : always the same.


    VFS: Mounted root ext2


    Freeing Init memory: 140K


    Kernel panic


    I'm stuck for now. Good fstab, good autoboot, a custom kernel which works on official firmware, ext2 compiled in...


    I even copied /bin/busybox and linked it to /linuxrc


    Copied official /dev/* to slack:/dev/
     
    Last edited by a moderator: Feb 22, 2011
  12. notaz

    notaz Certified Guru

    Joined:
    Aug 23, 2005
    Messages:
    4,750
    Location:
    Lithuania
    No other messages?


    What are your current bootargs?


    Try enabling CONFIG_DEBUG and CONFIG_DEBUG_ERRORS, maybe that'll give better message.
     
  13. Linux-SWAT

    Linux-SWAT Advanced Member

    Joined:
    Feb 13, 2010
    Messages:
    7,203
    Nothing more.



    Code:
    setenv bootargs root=/dev/mmcblk0p1 rw rootdelay=2 vram=6272K omapfb.vram=0:3000K
    
    ext2load mmc 0 0x80300000 /boot/uImage
    
    bootm 0x80300000


    /boot/uImage is not a symbolic link.



    Those DEBUG are configured in the default kernel.

    I added some more debug things without producing more output...



    My fstab :





    Code:
    
    /dev/mmcblk0p1       /                    ext2       defaults,noatime      1  1
    
    proc                 /proc                proc       defaults              0  0
    
    devpts               /dev/pts             devpts     mode=0620,gid=5       0  0
    
    usbfs                /proc/bus/usb        usbfs      defaults              0  0
    
    tmpfs                /var/volatile        tmpfs      defaults              0  0
    
    tmpfs                /dev/shm             tmpfs      mode=0777             0  0
    
    tmpfs                /media/ram           tmpfs      defaults              0  0
    
    

    /dev/mmcblk0p1 replaced /rootfs


    I use the stable 13.1 release now.


    With the same exact result...


    Mmm device mapper problem ?


    Ext3 try ?


    Separate /boot partition ?


    . . . birds flying . . .
     
  14. notaz

    notaz Certified Guru

    Joined:
    Aug 23, 2005
    Messages:
    4,750
    Location:
    Lithuania
    It's strange that kernel prints so little info. If you want you can give me your rootfs and I'll try it myself.
     
  15. klaxonn

    klaxonn Still Fresh

    Joined:
    Feb 25, 2011
    Messages:
    88
    I don't know much, but can't it help ?
     
  16. Linux-SWAT

    Linux-SWAT Advanced Member

    Joined:
    Feb 13, 2010
    Messages:
    7,203
    Oh thanks !


    Just followed this :


    http://www.armedslack.org/doku.php?id=installation


    Down the page : Mini root filesystems for unsupported platforms.


    Used slack-13.1-miniroot_14Jun10.tar.xz
     
  17. Linux-SWAT

    Linux-SWAT Advanced Member

    Joined:
    Feb 13, 2010
    Messages:
    7,203
    Dunno kernel programming... Maybe devs will like it.


    I don't know how the frequency is handled by now. Some trick maybe ^^.
     
  18. Linux-SWAT

    Linux-SWAT Advanced Member

    Joined:
    Feb 13, 2010
    Messages:
    7,203
  19. notaz

    notaz Certified Guru

    Joined:
    Aug 23, 2005
    Messages:
    4,750
    Location:
    Lithuania
    Tried it, their init process crashes, looks like it needs a newer kernel, as chrooting into that rootfs results in:



    Code:
    
    chroot /media/mmcblk0p2/
    
    FATAL: kernel too old
    
    


    Try building 2.6.37 kernel from pandora-37 branch at git.openpandora.org . Start with



    Code:
    
    make omap3_pandora_defconfig
    
    
    and then do menuconfig for tuning.
     
    Last edited by a moderator: Feb 27, 2011
  20. Linux-SWAT

    Linux-SWAT Advanced Member

    Joined:
    Feb 13, 2010
    Messages:
    7,203
    Newer than 2.6.27, if i understand right ?


    Will try.


    A 2.6.37 ! ...Woot !


    Thx for your time.


    ----EDIT :


    $ git clone git://openpandora.org/pandora-kernel.git


    Checking out files: 100% (24654/24654), done.


    $ git checkout --track -b pandora-37 origin/pandora-37


    Checking out files: 100% (34166/34166), done.


    Branch pandora-37 set up to track remote branch refs/remotes/origin/pandora-37.


    Switched to a new branch "pandora-37"


    ----EDIT :


    $ make omap3_pandora_defconfig


    HOSTLD scripts/kconfig/conf


    ***


    *** Can't find default configuration "arch/x86/configs/omap3_pandora_defconfig"!


    ***


    So i did a make mrproper, and then manually copied arch/arm/configs/omap3_pandora_defconfig to .config , followed by a make clean.


    ----EDIT :


    $ make -j4 uImage


    HOSTLD scripts/kconfig/conf


    scripts/kconfig/conf --silentoldconfig Kconfig


    make: *** Pas de règle pour fabriquer la cible « uImage ». Arrêt.


    TT. Seems the kernel is going on x86 mode :


    Processor type and features ---> Processor family (Pentium-Pro)


    Of course i exported the path of compiler and the cross compile...


    ----EDIT :


    Seems i have to :


    $ export ARCH=arm


    before :


    $ make omap3_pandora_defconfig


    ----EDIT :


    CRAP !


    Built kernel fine, built modules fine, and :


    # INSTALL_MOD_PATH="/mnt/sd/1/" make modules_install


    cp: cannot stat `/home/me/pandora/pandora-kernel/modules.builtin': No such file or directory


    make: *** [_modinst_] Error 1
     
    Last edited by a moderator: Feb 27, 2011

Share This Page