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

Torfinn Ingolfsen tingox at gmail.com
Fri Sep 18 19:56:14 CEST 2009


Hi,

On Fri, Sep 18, 2009 at 7:14 PM, Linus Gasser <ineiti at markas-al-nour.org>wrote:

>
> Give us a cat of /etc/fstab ...
>
>
Here is the fstab off p2:
root at neo:/root# more /etc/fstab
rootfs  /                auto    defaults,errors=remount-ro,noatime 0 1
/dev/mmcblk0p1 /media/card auto  defaults                           0 0
/dev/mmcblk0p4 swap      swap    defaults                           0 0
proc    /proc            proc    defaults                           0 0
tmpfs   /etc/network/run tmpfs   defaults,noatime                   0 0
tmpfs   /tmp             tmpfs   defaults,noatime                   0 0
tmpfs   /var/lock        tmpfs   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:
root at neo:/root# df /mnt
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mmcblk0p3          474464    313797    136169  70% /mnt
root at neo:/root# more /mnt/etc/fstab
rootfs  /                auto    defaults,errors=remount-ro,noatime 0 1
/dev/mmcblk0p1 /media/card auto  defaults                           0 0
/dev/mmcblk0p4 swap      swap    defaults                           0 0
proc    /proc            proc    defaults                           0 0
tmpfs   /etc/network/run tmpfs   defaults,noatime                   0 0
tmpfs   /tmp             tmpfs   defaults,noatime                   0 0
tmpfs   /var/lock        tmpfs   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?
root at neo:/root# cat /proc/cmdline
loglevel=4 console=tty0 console=ttySAC2,115200 init=/sbin/init ro
mtdparts=physmap-flash:-(nor);neo1973-nand:0x00040000(qi),0x00040000(depr-ub-env),0x00800000(kernel),0x000a0000(depr),0x00040000(identity-ext2),0x0f6a0000(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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openmoko.org/pipermail/community/attachments/20090918/3d028b78/attachment.htm 


More information about the community mailing list