Jump to content


Photo

Slackware inside Pandora.


  • Please log in to reply
206 replies to this topic

#1 OFFLINE   Linux-SWAT

Linux-SWAT

    Advanced Member

  • Members
  • PipPipPip
  • 6335 posts
  • Local time: 09:51 AM
  • LocationParis, France

Posted 07 February 2011 - 06:30 PM

http://www.armedslack.org/
Slackware ARM 13.1 and onwards is built for ARMv4t, little endian, soft float, EABI.

As i'm a total ARM rookie, i'm not yet able to answer this ^^'

BTW, official OP's ARM page :
http://www.arm.com/p...a/cortex-a8.php


----EDIT :

Spoiler :

Yes, i succeeded.
Check this out:
http://pandorawiki.o...ts/OS/Slackware

#2 OFFLINE   Linux-SWAT

Linux-SWAT

    Advanced Member

  • Members
  • PipPipPip
  • 6335 posts
  • Local time: 09:51 AM
  • LocationParis, France

Posted 11 February 2011 - 08:05 PM

***bump***

#3 OFFLINE   skelso

skelso

    Member

  • Members
  • PipPip
  • 11 posts
  • Local time: 07:51 AM
  • LocationDumbarton, Scotland, UK

Posted 11 February 2011 - 08:38 PM

Hi there,

I'm a Slackware user but I know very little about compiling on ARM.

I did find this though: http://comments.gman....armedslack/596

so people are porting it to the BeagleBoard.

But it looks very hard by my standards! I like Slackbuilds..

#4 OFFLINE   Linux-SWAT

Linux-SWAT

    Advanced Member

  • Members
  • PipPipPip
  • 6335 posts
  • Local time: 09:51 AM
  • LocationParis, France

Posted 11 February 2011 - 09:01 PM

Interesting link, thanks.

Still no answer to my post...

#5 OFFLINE   notaz

notaz

    Advanced Member

  • Official OpenPandora Team
  • PipPipPip
  • 2348 posts
  • Local time: 10:51 AM

Donator

Posted 11 February 2011 - 09:42 PM

With the right kernel it should work, but it will be sub-optimal. For best performance userspace should be compiled for ARMv7a VFP EABI.

#6 OFFLINE   Linux-SWAT

Linux-SWAT

    Advanced Member

  • Members
  • PipPipPip
  • 6335 posts
  • Local time: 09:51 AM
  • LocationParis, France

Posted 11 February 2011 - 11:12 PM

Ok, thanks for the info.
My first try just failed miserably ^^. New things to learn. Good.

#7 OFFLINE   Linux-SWAT

Linux-SWAT

    Advanced Member

  • Members
  • PipPipPip
  • 6335 posts
  • Local time: 09:51 AM
  • LocationParis, France

Posted 13 February 2011 - 12:57 AM

Went further : the Kernel Panic ^^

Followed :
http://www.armedslac...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/ge...manuals/pandora
Adapted it.

setenv bootargs root=/dev/mmcblk0p1 rw rootdelay=2 vram=6272K omapfb.vram=0:3000K quiet
ext2load mmc 0 0x80300000 /boot/zImage-versatile-2.6.36.3
bootm 0x80300000


Boot : only the logo.

3- Took kernel from http://vminko.org/ge...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" ?

#8 OFFLINE   Linux-SWAT

Linux-SWAT

    Advanced Member

  • Members
  • PipPipPip
  • 6335 posts
  • Local time: 09:51 AM
  • LocationParis, France

Posted 13 February 2011 - 02:41 AM

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.o...ld_instructions
Choosed the hard way :
http://www.codesourc...tal/release1592
Sourcery G++ Lite 2010.09-51 for ARM EABI

cd /home/ME/arm-2010.09-51-arm-none-eabi-i686-pc-linux-gnu/arm-2010.09/bin/

ln -s arm-none-eabi-objcopy arm-none-linux-gnueabi-objcopy
ln -s arm-none-eabi-nm arm-none-linux-gnueabi-nm
ln -s arm-none-eabi-ld arm-none-linux-gnueabi-ld
ln -s arm-none-eabi-gcc arm-none-linux-gnueabi-gcc
ln -s arm-none-eabi-ar arm-none-linux-gnueabi-ar
ln - arm-none-eabi-ar arm-none-linux-gnueabi-ar
ln -s arm-none-eabi-ld arm-none-linux-gnueabi-ld
etc...

cd /home/ME/pandora-kernel/

export PATH=$PATH:/home/ME/arm-2010.09-51-arm-none-eabi-i686-pc-linux-gnu/arm-2010.09/bin/
export CROSS_COMPILE=arm-none-linux-gnueabi-
make omap3_pandora_defconfig
make menuconfig
make uImage


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" ?

#9 OFFLINE   notaz

notaz

    Advanced Member

  • Official OpenPandora Team
  • PipPipPip
  • 2348 posts
  • Local time: 10:51 AM

Donator

Posted 13 February 2011 - 02:03 PM

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

power+pandora is handled by hardware, don't know how to make use of magic sysreq with custom keypads.

2- Is that supposed to be off in the default .config ?
Power management options --> none
CPU Frequency scaling --> none

Yeah, this is still not implemented for OMAP3.

3- No iptables ?
4- No utf8 for fat mounting ?

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

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

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.

6- And same question as above post : What is this "board-specific platform config" ?

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 OFFLINE   Linux-SWAT

Linux-SWAT

    Advanced Member

  • Members
  • PipPipPip
  • 6335 posts
  • Local time: 09:51 AM
  • LocationParis, France

Posted 13 February 2011 - 10:26 PM


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

power+pandora is handled by hardware, don't know how to make use of magic sysreq with custom keypads.


I should have known that because it works even before kernel boot... :/
Any Pandora sysrq guru around ?


2- Is that supposed to be off in the default .config ?
Power management options --> none
CPU Frequency scaling --> none

Yeah, this is still not implemented for OMAP3.


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


3- No iptables ?
4- No utf8 for fat mounting ?

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


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



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

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.


Removing 'quiet' did nothing.
Ok.


6- And same question as above post : What is this "board-specific platform config" ?

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


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

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


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/wi...Pre-Built_Image

Just copied uImage, /lib/modules and /lib/firmware from http://openpandora.o...-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 :
http://boards.openpa...h__1#entry19693

#11 OFFLINE   Linux-SWAT

Linux-SWAT

    Advanced Member

  • Members
  • PipPipPip
  • 6335 posts
  • Local time: 09:51 AM
  • LocationParis, France

Posted 22 February 2011 - 10:08 PM

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/

#12 OFFLINE   notaz

notaz

    Advanced Member

  • Official OpenPandora Team
  • PipPipPip
  • 2348 posts
  • Local time: 10:51 AM

Donator

Posted 23 February 2011 - 09:59 AM

No other messages?
What are your current bootargs?
Try enabling CONFIG_DEBUG and CONFIG_DEBUG_ERRORS, maybe that'll give better message.

#13 OFFLINE   Linux-SWAT

Linux-SWAT

    Advanced Member

  • Members
  • PipPipPip
  • 6335 posts
  • Local time: 09:51 AM
  • LocationParis, France

Posted 24 February 2011 - 09:17 PM

Nothing more.

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 :

/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 OFFLINE   notaz

notaz

    Advanced Member

  • Official OpenPandora Team
  • PipPipPip
  • 2348 posts
  • Local time: 10:51 AM

Donator

Posted 25 February 2011 - 10:05 AM

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 OFFLINE   klaxon

klaxon

    Advanced Member

  • Members
  • PipPipPip
  • 85 posts
  • Local time: 08:51 AM

Posted 25 February 2011 - 06:39 PM


2- Is that supposed to be off in the default .config ?
Power management options --> none
CPU Frequency scaling --> none

Yeah, this is still not implemented for OMAP3.


I don't know much, but can't it help ?

#16 OFFLINE   Linux-SWAT

Linux-SWAT

    Advanced Member

  • Members
  • PipPipPip
  • 6335 posts
  • Local time: 09:51 AM
  • LocationParis, France

Posted 25 February 2011 - 08:09 PM

It's strange that kernel prints so little info. If you want you can give me your rootfs and I'll try it myself.


Oh thanks !

Just followed this :
http://www.armedslac...id=installation

Down the page : Mini root filesystems for unsupported platforms.
Used slack-13.1-miniroot_14Jun10.tar.xz

#17 OFFLINE   Linux-SWAT

Linux-SWAT

    Advanced Member

  • Members
  • PipPipPip
  • 6335 posts
  • Local time: 09:51 AM
  • LocationParis, France

Posted 26 February 2011 - 10:43 PM



2- Is that supposed to be off in the default .config ?
Power management options --> none
CPU Frequency scaling --> none

Yeah, this is still not implemented for OMAP3.


I don't know much, but can't it help ?


Dunno kernel programming... Maybe devs will like it.
I don't know how the frequency is handled by now. Some trick maybe ^^.

#18 OFFLINE   Linux-SWAT

Linux-SWAT

    Advanced Member

  • Members
  • PipPipPip
  • 6335 posts
  • Local time: 09:51 AM
  • LocationParis, France

Posted 27 February 2011 - 12:01 AM

Requested help @ armedslack.org mailing list.

http://lists.armedsl...ary/000765.html

First answer : build a monolithic kernel. Will try soon.

#19 OFFLINE   notaz

notaz

    Advanced Member

  • Official OpenPandora Team
  • PipPipPip
  • 2348 posts
  • Local time: 10:51 AM

Donator

Posted 27 February 2011 - 03:24 PM

Tried it, their init process crashes, looks like it needs a newer kernel, as chrooting into that rootfs results in:
chroot /media/mmcblk0p2/
FATAL: kernel too old

Try building 2.6.37 kernel from pandora-37 branch at git.openpandora.org . Start with
make omap3_pandora_defconfig
and then do menuconfig for tuning.

#20 OFFLINE   Linux-SWAT

Linux-SWAT

    Advanced Member

  • Members
  • PipPipPip
  • 6335 posts
  • Local time: 09:51 AM
  • LocationParis, France

Posted 27 February 2011 - 04:42 PM

looks like it needs a newer kernel


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


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users