Re: Qi - how do I make it boot from another partition on the SD card?

2009-09-21 Thread Radek Polak
Paul Fertser wrote:

 So what do you suggest?

My suggestion, please ignore it if you dont like it :)

Pressing any key brings Qi in interactive mode. It can work the same way
as uboot. AUX switches between partitions, POWER boots selected one.
Selected partition can be indicated with AUX led blinking. Blinking
could work like 2second OFF followed by fast blinks for selected
partition number.

time-   2s  4s

NAND |   .   .
P1   |   ..  ..
P2   |   ... ...
P3   |   

It could be that booting in interactive mode starts with NAND, because
it's better then start booting from SD (one needs to know number of
bootable partitions in SD and also NAND is very common boot option).

I know it's quite a big change, but i dont think that current partition
switching is usable.

Regards

Radek


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Qi - how do I make it boot from another partition on the SD card?

2009-09-21 Thread Paul Fertser
Radek Polak pson...@seznam.cz writes:
 So what do you suggest?

 My suggestion, please ignore it if you dont like it :)

 Pressing any key brings Qi in interactive mode. It can work the same way
 as uboot. AUX switches between partitions, POWER boots selected one.
 Selected partition can be indicated with AUX led blinking. Blinking
 could work like 2second OFF followed by fast blinks for selected
 partition number.

Hm, interesting idea. I'll think about it.

 I know it's quite a big change, but i dont think that current partition
 switching is usable.

Well, i have one partition on SD and i can boot from nand when i want,
usually one-two tries is enough.

-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Qi - how do I make it boot from another partition on the SD card?

2009-09-21 Thread Marc Andre Tanner
On Sun, Sep 20, 2009 at 10:11:55PM +0400, Paul Fertser wrote:
 Michele Brocco ssj2mi...@gmail.com writes:
  On 9/20/09, Torfinn Ingolfsen tin...@gmail.com wrote:
  Is anybody at all able to get Qi to bott from several partitions on a SD
  card?
  If so, how?
 
 ...
  I have one distro on flash and one on SD Card. When i try to start the
  one on the flash i need quite a few tries until I manage to press the
  aux button in the correct instant, such that the correct distro is
  loaded. 70% of the time the one on the first partition on the SD Card
  is loaded. 
 
 So what do you suggest?

A tiny root filesystem which presents some kind of menu and then uses
kexec to start the new kernel. I have recently started to work (well 
if time permits) on this kind of thing.

Marc 

-- 
 Marc Andre Tanner  http://www.brain-dump.org/  GPG key: CF7D56C0

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Qi - how do I make it boot from another partition on the SD card?

2009-09-21 Thread Paul Fertser
Marc Andre Tanner openm...@brain-dump.org writes:
 On Sun, Sep 20, 2009 at 10:11:55PM +0400, Paul Fertser wrote:
 Michele Brocco ssj2mi...@gmail.com writes:
  On 9/20/09, Torfinn Ingolfsen tin...@gmail.com wrote:
  Is anybody at all able to get Qi to bott from several partitions on a SD
  card?
  If so, how?
 
 ...
  I have one distro on flash and one on SD Card. When i try to start the
  one on the flash i need quite a few tries until I manage to press the
  aux button in the correct instant, such that the correct distro is
  loaded. 70% of the time the one on the first partition on the SD Card
  is loaded. 
 
 So what do you suggest?

 A tiny root filesystem which presents some kind of menu and then uses
 kexec to start the new kernel. I have recently started to work (well 
 if time permits) on this kind of thing.

Feel free to ping me on irc for suggestions how to use external
initramfs with Qi.

-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Qi - how do I make it boot from another partition on the SD card?

2009-09-21 Thread Petr Vanek
 So what do you suggest?

 A tiny root filesystem which presents some kind of menu and then uses
 kexec to start the new kernel. I have recently started to work (well 
 if time permits) on this kind of thing.

Feel free to ping me on irc for suggestions how to use external
initramfs with Qi.

i have tried this before by using kexec, please search the devel
archives. as i am not a coder, i needed to use X that made it huge and
quite slow for this purpose, if you can make it working directly with fb
it would be awesome :)

cheers

Petr





___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Qi - how do I make it boot from another partition on the SD card?

2009-09-21 Thread Marc Andre Tanner
On Mon, Sep 21, 2009 at 01:10:40PM +0100, Petr Vanek wrote:
  So what do you suggest?
 
  A tiny root filesystem which presents some kind of menu and then uses
  kexec to start the new kernel. I have recently started to work (well 
  if time permits) on this kind of thing.
 
 Feel free to ping me on irc for suggestions how to use external
 initramfs with Qi.

Thanks Paul I will come back to that later (I actually have some questions
regarding it).

 i have tried this before by using kexec, please search the devel
 archives. as i am not a coder, i needed to use X that made it huge and
 quite slow for this purpose, if you can make it working directly with fb
 it would be awesome :)

Yeah I have read the thread. You got it down to ~12sec if I remember
correctly. I will probably post to -devel to outline my ideas and get
some general input from others once I got a bit further.

Marc

-- 
 Marc Andre Tanner  http://www.brain-dump.org/  GPG key: CF7D56C0

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Qi - how do I make it boot from another partition on the SD card?

2009-09-21 Thread Torfinn Ingolfsen
Hi,

On Sun, Sep 20, 2009 at 8:37 PM, Radek Polak pson...@seznam.cz wrote:

 Torfinn Ingolfsen wrote:

  Is anybody at all able to get Qi to bott from several partitions on a
  SD card?
  If so, how?

 For me noboot-GTA02 file in /boot works just fine. I am using qi from

 https://people.openmoko.org/andy/

 I am using the same Qi. But - here the noboot file doesn't work :-/


 Btw you can simply boot from 3 partitions. Uboot can boot NAND, FAT
 +mmcblk0p2 and if you put noboot-GTA02 in that partition, Qi can boot
 from mmcblk0p3.


As I understand it Qi does this:
1: try to boot from 1st SD card partition
2: try to boot from 2nd SD card partition
3. try to boot from 3rd SD card partition
4. try to boot from NAND (aka built-in flash)

My SD card partition layout looks like this
p1 - vfat data partition (only data, nothing else)
p2 - ext3 primary partition, this is my main os. Currently holds QtMoko v8)
p3 - this is aother ext3 primary partition, for me to keep a backup os on.
Currently, it holds a copy of QtMoko v8.
p4 - swap, 128Megs


But - when I put a noboot-GTA02 file in /boot  on p2, Qi just stops. It
doesn't boot anything, not even the NAND.
I have to boot from NOR U-boot, select NAND and from there I mount p2 and
remove the noboot file.
(BTW, my NAND contains an old Om2008 image.)
-- 
Regards,
Torfinn Ingolfsen
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Qi - how do I make it boot from another partition on the SD card?

2009-09-20 Thread Torfinn Ingolfsen
Is anybody at all able to get Qi to bott from several partitions on a SD
card?
If so, how?

-- 
Regards,
Torfinn Ingolfsen
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Qi - how do I make it boot from another partition on the SD card?

2009-09-20 Thread Michele Brocco
On 9/20/09, Torfinn Ingolfsen tin...@gmail.com wrote:
 Is anybody at all able to get Qi to bott from several partitions on a SD
 card?
 If so, how?

 --

for what it's worth, I am having also some troubles with Qi concerning
booting from the partition I would like to. I think its unrelated to
your issue but I post it anyway:
I have one distro on flash and one on SD Card. When i try to start the
one on the flash i need quite a few tries until I manage to press the
aux button in the correct instant, such that the correct distro is
loaded. 70% of the time the one on the first partition on the SD Card
is loaded. Maybe you can try to press very often the aux button (as I
do :)) and look if u have more luck. Additionally, as far as i
understood, each partition has to have its own boot directory with the
kernel on it to be able to boot.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Qi - how do I make it boot from another partition on the SD card?

2009-09-20 Thread Paul Fertser
Michele Brocco ssj2mi...@gmail.com writes:
 On 9/20/09, Torfinn Ingolfsen tin...@gmail.com wrote:
 Is anybody at all able to get Qi to bott from several partitions on a SD
 card?
 If so, how?

...
 I have one distro on flash and one on SD Card. When i try to start the
 one on the flash i need quite a few tries until I manage to press the
 aux button in the correct instant, such that the correct distro is
 loaded. 70% of the time the one on the first partition on the SD Card
 is loaded. 

So what do you suggest?

-- 
Be free, use free (http://www.gnu.org/philosophy/free-sw.html) software!
mailto:fercer...@gmail.com

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Qi - how do I make it boot from another partition on the SD card?

2009-09-20 Thread Radek Polak
Torfinn Ingolfsen wrote:

 Is anybody at all able to get Qi to bott from several partitions on a
 SD card?
 If so, how?

For me noboot-GTA02 file in /boot works just fine. I am using qi from

https://people.openmoko.org/andy/

Btw you can simply boot from 3 partitions. Uboot can boot NAND, FAT
+mmcblk0p2 and if you put noboot-GTA02 in that partition, Qi can boot
from mmcblk0p3.

Regards

Radek


___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Qi - how do I make it boot from another partition on the SD card?

2009-09-20 Thread Michele Brocco
On 9/20/09, Paul Fertser fercer...@gmail.com wrote:
 Michele Brocco ssj2mi...@gmail.com writes:
 On 9/20/09, Torfinn Ingolfsen tin...@gmail.com wrote:
 Is anybody at all able to get Qi to bott from several partitions on a SD
 card?
 If so, how?

 ...
 I have one distro on flash and one on SD Card. When i try to start the
 one on the flash i need quite a few tries until I manage to press the
 aux button in the correct instant, such that the correct distro is
 loaded. 70% of the time the one on the first partition on the SD Card
 is loaded.

 So what do you suggest?


I think one way would be to increase the led blinking interval in qi
between the partitions. So maybe it would be easier to catch the
desired partition.

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Qi - how do I make it boot from another partition on the SD card?

2009-09-18 Thread Torfinn Ingolfsen
No hint on how to make Qi boot from other partitions on the SD card?

-- 
Regards,
Torfinn Ingolfsen
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


RE: Qi - how do I make it boot from another partition on the SD card?

2009-09-18 Thread Niels Heyvaert

 No hint on how to make Qi boot from other partitions on the SD card?

Could this be of help to you?
 
http://wiki.openmoko.org/wiki/Qi
 
But no guarantee you'll find an answer there.
 
I, for one, still haven't found a way to make Qi boot from SD, let alone to 
make it skip partitions. Despite the fact all of this are standard features, 
according to the wiki.
 
_
Reageer op foto’s van je vrienden en bekijk hun reacties op de jouwe. 
Gegarandeerd hilariteit! 
http://www.microsoft.com/belux/nl/windows/windowslive/products/photos.aspx
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Qi - how do I make it boot from another partition on the SD card?

2009-09-18 Thread Torfinn Ingolfsen
Hello,

On Fri, Sep 18, 2009 at 2:07 PM, Niels Heyvaert
nielsheyva...@hotmail.comwrote:


  No hint on how to make Qi boot from other partitions on the SD card?
 
 Could this be of help to you?

 http://wiki.openmoko.org/wiki/Qi


Thanks - I know about  and have read that page. And it hasn't been updated
since I read it last time. :-)


 But no guarantee you'll find an answer there.


Nope. according to that page, putting a file named noboot-GTA02 in the /boot
directory on a partition makes Qi skip that parttion in the boot process.
This semms to be true - if I put that file on p2 (partition 2) of my SD
card, Qi doesn't boot that partition.
Unfortunately, it doesn't boot p3 (partition 3) either. AFAICT, p3 has the
layout and the files necessary to boot from (it is a copy of a working set
of files from p2).
Why Qi doesn't want to boot it, I don't know.
Is anybody able to select which partition to boot (on a SD card) by using
the noboot-GTA02 file?


 I, for one, still haven't found a way to make Qi boot from SD


How is the layout of your SD card, partition-wise?
Mine (a 2GB sd card) is like this:
p1, vfat, 792 MB - I use this for data, it is mounted as /media/card
p2, ext3, 500 MB - this is my main os, root partition
p3, ext3, 500 MB - this is another os, for testing purposes (ths is the one
that Qi don't want to boot)
p4, swap, 128 MB - this is a swap partition, needed in some cases

or in fdisk 'p' output:
Disk /dev/mmcblk0: 1967 MB, 1967128576 bytes
57 heads, 56 sectors/track, 1203 cylinders
Units = cylinders of 3192 * 512 = 1634304 bytes
Disk identifier: 0x

Device Boot  Start End  Blocks   Id  System
/dev/mmcblk0p1 6941203  8139606  FAT16
/dev/mmcblk0p2   1 307  489944   83  Linux
/dev/mmcblk0p3 308 614  489972   83  Linux
/dev/mmcblk0p4 615 693  126084   82  Linux swap /
Solaris

The kernel lives in /boot, øike this:
r...@neo:/root# ls -l /boot
total 1844
-rw-r--r-- 1 root root  36 Aug  4 14:50 append-GTA02
-rw-r--r-- 1 1000 1000 1877860 Sep  8 23:10 uImage-GTA02.bin

Following hte name standard is necessary for this to work.

With this layout, p1 is skipped and p2 is automatically booted whenever I
turn on my FreeRunner with a short press of the power button. Note: it will
taake 2 minutes or more before anything shows on the screen if you use
QtMoko. Qi doesn't output anything unless told to do so.

Note (from the Qi wiki page) that Qi will not boot from fat partitions, if
that's what your are trying to do.
HTH
-- 
Regards,
Torfinn Ingolfsen
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Qi - how do I make it boot from another partition on the SD card?

2009-09-18 Thread Linus Gasser
Torfinn Ingolfsen a écrit :
 Here goes:
 
 neo:~# mount /dev/mmcblk0p3 /mnt
 neo:~# ls -l /mnt/boot
 total 1844
 -rw-r--r-- 1 root root  36 Aug  4 14:50 append-GTA02
 -rw-r--r-- 1 1000 1000 1877704 Aug 27 21:42 uImage-GTA02.bin
 neo:~# more /mnt/boot/append-GTA02
 console=tty0 loglevel=3 rootdelay=1
 
 Everything is a copy off p2 o I don't undertsnad why it doesn't work.

Give us a cat of /etc/fstab ...

Linus

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Qi - how do I make it boot from another partition on the SD card?

2009-09-18 Thread Torfinn Ingolfsen
Hi,

On Fri, Sep 18, 2009 at 7:14 PM, Linus Gasser ine...@markas-al-nour.orgwrote:


 Give us a cat of /etc/fstab ...


Here is the fstab off p2:
r...@neo:/root# more /etc/fstab
rootfs  /autodefaults,errors=remount-ro,noatime 0 1
/dev/mmcblk0p1 /media/card auto  defaults   0 0
/dev/mmcblk0p4 swap  swapdefaults   0 0
proc/procprocdefaults   0 0
tmpfs   /etc/network/run tmpfs   defaults,noatime   0 0
tmpfs   /tmp tmpfs   defaults,noatime   0 0
tmpfs   /var/locktmpfs   defaults,noatime   0 0
tmpfs   /var/run tmpfs   defaults,noatime   0 0
tmpfs   /var/tmp tmpfs   defaults,noatime   0 0
tmpfs   /var/cache/apt   tmpfs   defaults,noatime   0 0
192.168.0.200:/ /mnt/nfs  nfs noauto,nolock,soft,rsize=32768,wsize=32768 0 0

As you can see, the one on p3 is equal:
r...@neo:/root# df /mnt
Filesystem   1K-blocks  Used Available Use% Mounted on
/dev/mmcblk0p3  474464313797136169  70% /mnt
r...@neo:/root# more /mnt/etc/fstab
rootfs  /autodefaults,errors=remount-ro,noatime 0 1
/dev/mmcblk0p1 /media/card auto  defaults   0 0
/dev/mmcblk0p4 swap  swapdefaults   0 0
proc/procprocdefaults   0 0
tmpfs   /etc/network/run tmpfs   defaults,noatime   0 0
tmpfs   /tmp tmpfs   defaults,noatime   0 0
tmpfs   /var/locktmpfs   defaults,noatime   0 0
tmpfs   /var/run tmpfs   defaults,noatime   0 0
tmpfs   /var/tmp tmpfs   defaults,noatime   0 0
tmpfs   /var/cache/apt   tmpfs   defaults,noatime   0 0
192.168.0.200:/ /mnt/nfs  nfs noauto,nolock,soft,rsize=32768,wsize=32768 0 0

As long as Qi adds the 'root=' parameterto the kernel cmd line, this should
work, right?
r...@neo:/root# cat /proc/cmdline
loglevel=4 console=tty0 console=ttySAC2,115200 init=/sbin/init ro
mtdparts=physmap-flash:-(nor);neo1973-nand:0x0004(qi),0x0004(depr-ub-env),0x0080(kernel),0x000a(depr),0x0004(identity-ext2),0x0f6a(rootfs)
g_ether.host_addr=00:1F:11:01:0D:38 g_ether.dev_addr=00:1F:11:01:0D:38
root=/dev/mmcblk0p2 rootdelay=1 console=tty0 loglevel=3 rootdelay=1


-- 
Regards,
Torfinn Ingolfsen
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Qi - how do I make it boot from another partition on the SD card?

2009-09-12 Thread David Reyes Samblas Martinez
can you post the list of files on p3?, also the contents of append-GTA02

2009/9/12 Torfinn Ingolfsen tin...@gmail.com:
 Hi,

 I use Qi as the bootloader on my FreeRunner.
 I have sevaral partitions on my SDcard:
 p1 - vfat data partition (only data, nothing else)
 p2 - ext3 primary partition, this is my main os. Currently holds QtMoko v8)
 p3 - this is aother ext3 primary partition, for me to keep a backup os on.
 Currently, it holds a copy of QtMoko v8.
 p4 - swap, 128Megs

 First I thought that the press AUX trick from the Qi wiki page would let
 me select which partition to boot from, but it seems like it only selects
 kernel, so not useful for me in this situation.

 Then I read about the /boot/noboot-GTA02 file, so I did 'touch
 /boot/noboot-GTA02' (when /dev/mmcblk0p2 was my root partition).
 Now Qi skips the p2 partition, but after that  it justs sits therr, it won't
 boot the p3 partition.

 What can be wrong?
 And how do I fix it?
 (I have checked, and the files in  /boot and elsehwere looks correct)

 --
 Regards,
 Torfinn Ingolfsen

 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community





-- 
David Reyes Samblas Martinez
http://www.tuxbrain.com
Open ultraportable  embedded solutions
Openmoko, Openpandora,  Arduino
Hey, watch out!!! There's a linux in your pocket!!!

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Qi - how do I make it boot from another partition on the SD card?

2009-09-12 Thread David Reyes Samblas Martinez
I'm talking about the files on /boot of p3 partition not whole files list :)

2009/9/12 David Reyes Samblas Martinez da...@tuxbrain.com:
 can you post the list of files on p3?, also the contents of append-GTA02

 2009/9/12 Torfinn Ingolfsen tin...@gmail.com:
 Hi,

 I use Qi as the bootloader on my FreeRunner.
 I have sevaral partitions on my SDcard:
 p1 - vfat data partition (only data, nothing else)
 p2 - ext3 primary partition, this is my main os. Currently holds QtMoko v8)
 p3 - this is aother ext3 primary partition, for me to keep a backup os on.
 Currently, it holds a copy of QtMoko v8.
 p4 - swap, 128Megs

 First I thought that the press AUX trick from the Qi wiki page would let
 me select which partition to boot from, but it seems like it only selects
 kernel, so not useful for me in this situation.

 Then I read about the /boot/noboot-GTA02 file, so I did 'touch
 /boot/noboot-GTA02' (when /dev/mmcblk0p2 was my root partition).
 Now Qi skips the p2 partition, but after that  it justs sits therr, it won't
 boot the p3 partition.

 What can be wrong?
 And how do I fix it?
 (I have checked, and the files in  /boot and elsehwere looks correct)

 --
 Regards,
 Torfinn Ingolfsen

 ___
 Openmoko community mailing list
 community@lists.openmoko.org
 http://lists.openmoko.org/mailman/listinfo/community





 --
 David Reyes Samblas Martinez
 http://www.tuxbrain.com
 Open ultraportable  embedded solutions
 Openmoko, Openpandora,  Arduino
 Hey, watch out!!! There's a linux in your pocket!!!




-- 
David Reyes Samblas Martinez
http://www.tuxbrain.com
Open ultraportable  embedded solutions
Openmoko, Openpandora,  Arduino
Hey, watch out!!! There's a linux in your pocket!!!

___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community


Re: Qi - how do I make it boot from another partition on the SD card?

2009-09-12 Thread Torfinn Ingolfsen
Hi,


On Sat, Sep 12, 2009 at 4:33 PM, David Reyes Samblas Martinez 
da...@tuxbrain.com wrote:

 I'm talking about the files on /boot of p3 partition not whole files list
 :)


Here goes:

neo:~# mount /dev/mmcblk0p3 /mnt
neo:~# ls -l /mnt/boot
total 1844
-rw-r--r-- 1 root root  36 Aug  4 14:50 append-GTA02
-rw-r--r-- 1 1000 1000 1877704 Aug 27 21:42 uImage-GTA02.bin
neo:~# more /mnt/boot/append-GTA02
console=tty0 loglevel=3 rootdelay=1

Everything is a copy off p2 o I don't undertsnad why it doesn't work.
-- 
Regards,
Torfinn Ingolfsen
___
Openmoko community mailing list
community@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/community