Stock Debian 3.2 kernels now run on XO-1 without modification (finally!).
However, they require some mount and boot option changes for our custom
hardware.
Since OFW does not support JFFS2 with LZO compression, we need to be
sure to mount /boot with compr=zlib so that any blocks written out to
the partition use zlib instead of lzo.
The Debian kernels also compile the redboot directory number to -1, so
we have to override that through a boot argument.
Note that a newer version of olpc-xo1-hw (0.3) is necessary to ensure
that all needed kernel modules are included in the initramfs images.
Signed-off-by: Andres Salomon <dilinger@queued.net>
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0 # <partition size in MB>
-mtd:boot /boot jffs2 defaults,noatime 1 1 # 50
+mtd:boot /boot jffs2 defaults,noatime,compr=zlib 1 1 # 50
ubi:root / ubifs defaults,noatime 1 1
then
then
-" ro ubi.mtd=root root=ubi:root rootfstype=ubifs video=lxfb fbcon=font:SUN12x22" to boot-file
+" ro redboot.directory=0 ubi.mtd=root root=ubi:root rootfstype=ubifs video=lxfb fbcon=font:SUN12x22" to boot-file
game-key-mask h# 80 and if
\ boot from backup kernel
" ${DN}\vmlinuz.bak" expand$ to boot-device
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0 # <partition size in MB>
-mtd:boot /boot jffs2 defaults,noatime 1 1 # 50
+mtd:boot /boot jffs2 defaults,noatime,compr=zlib 1 1 # 50
ubi:root / ubifs defaults,noatime 1 1
then
then
-" ro ubi.mtd=root root=ubi:root rootfstype=ubifs video=lxfb fbcon=font:SUN12x22" to boot-file
+" ro redboot.directory=0 ubi.mtd=root root=ubi:root rootfstype=ubifs video=lxfb fbcon=font:SUN12x22" to boot-file
game-key-mask h# 80 and if
\ boot from backup kernel
" ${DN}\vmlinuz.bak" expand$ to boot-device
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0 # <partition size in MB>
-mtd:boot /boot jffs2 defaults,noatime 1 1 # 50
+mtd:boot /boot jffs2 defaults,noatime,compr=zlib 1 1 # 50
ubi:root / ubifs defaults,noatime 1 1
then
then
-" ro ubi.mtd=root root=ubi:root rootfstype=ubifs video=lxfb fbcon=font:SUN12x22" to boot-file
+" ro redboot.directory=0 ubi.mtd=root root=ubi:root rootfstype=ubifs video=lxfb fbcon=font:SUN12x22" to boot-file
game-key-mask h# 80 and if
\ boot from backup kernel
" ${DN}\vmlinuz.bak" expand$ to boot-device
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0 # <partition size in MB>
-mtd:boot /boot jffs2 defaults,noatime 1 1 # 50
+mtd:boot /boot jffs2 defaults,noatime,compr=zlib 1 1 # 50
ubi:root / ubifs defaults,noatime 1 1
then
then
-" ro ubi.mtd=root root=ubi:root rootfstype=ubifs video=lxfb fbcon=font:SUN12x22" to boot-file
+" ro redboot.directory=0 ubi.mtd=root root=ubi:root rootfstype=ubifs video=lxfb fbcon=font:SUN12x22" to boot-file
game-key-mask h# 80 and if
\ boot from backup kernel
" ${DN}\vmlinuz.bak" expand$ to boot-device
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0 # <partition size in MB>
-mtd:boot /boot jffs2 defaults,noatime 1 1 # 50
+mtd:boot /boot jffs2 defaults,noatime,compr=zlib 1 1 # 50
ubi:root / ubifs defaults,noatime 1 1
then
then
-" ro ubi.mtd=root root=ubi:root rootfstype=ubifs video=lxfb fbcon=font:SUN12x22" to boot-file
+" ro redboot.directory=0 ubi.mtd=root root=ubi:root rootfstype=ubifs video=lxfb fbcon=font:SUN12x22" to boot-file
game-key-mask h# 80 and if
\ boot from backup kernel
" ${DN}\vmlinuz.bak" expand$ to boot-device