diff options
Diffstat (limited to 'target/linux/x86/olpc/base-files')
17 files changed, 644 insertions, 0 deletions
diff --git a/target/linux/x86/olpc/base-files/.svn/entries b/target/linux/x86/olpc/base-files/.svn/entries new file mode 100644 index 0000000..f131670 --- /dev/null +++ b/target/linux/x86/olpc/base-files/.svn/entries @@ -0,0 +1,34 @@ +10 + +dir +36060 +svn://svn.openwrt.org/openwrt/trunk/target/linux/x86/olpc/base-files +svn://svn.openwrt.org/openwrt + + + +2012-12-19T16:07:46.450520Z +34792 +mirko + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +lib +dir + +etc +dir + diff --git a/target/linux/x86/olpc/base-files/etc/.svn/entries b/target/linux/x86/olpc/base-files/etc/.svn/entries new file mode 100644 index 0000000..548ac68 --- /dev/null +++ b/target/linux/x86/olpc/base-files/etc/.svn/entries @@ -0,0 +1,34 @@ +10 + +dir +36060 +svn://svn.openwrt.org/openwrt/trunk/target/linux/x86/olpc/base-files/etc +svn://svn.openwrt.org/openwrt + + + +2010-01-25T17:11:17.955488Z +19331 +nbd + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +config +dir + +X11 +dir + diff --git a/target/linux/x86/olpc/base-files/etc/X11/.svn/entries b/target/linux/x86/olpc/base-files/etc/X11/.svn/entries new file mode 100644 index 0000000..a5e84a3 --- /dev/null +++ b/target/linux/x86/olpc/base-files/etc/X11/.svn/entries @@ -0,0 +1,62 @@ +10 + +dir +36060 +svn://svn.openwrt.org/openwrt/trunk/target/linux/x86/olpc/base-files/etc/X11 +svn://svn.openwrt.org/openwrt + + + +2007-12-17T22:24:17.839371Z +9791 +blogic + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +xorg.conf +file + + + + +2013-03-17T12:12:36.000000Z +be9a61c47dfe81a021d6cb41e04b49ce +2007-12-17T22:24:17.839371Z +9791 +blogic + + + + + + + + + + + + + + + + + + + + + +1276 + diff --git a/target/linux/x86/olpc/base-files/etc/X11/.svn/text-base/xorg.conf.svn-base b/target/linux/x86/olpc/base-files/etc/X11/.svn/text-base/xorg.conf.svn-base new file mode 100644 index 0000000..d98a8f8 --- /dev/null +++ b/target/linux/x86/olpc/base-files/etc/X11/.svn/text-base/xorg.conf.svn-base @@ -0,0 +1,71 @@ +# xorg configuration + +Section "ServerLayout" + Identifier "Default Layout" + Screen 0 "Screen0" 0 0 + InputDevice "Mouse0" "CorePointer" + InputDevice "Keyboard0" "CoreKeyboard" +EndSection + +Section "Files" + FontPath "/usr/lib/X11/fonts/misc" +EndSection + +Section "Module" + Load "dbe" + Load "extmod" + Load "fbdevhw" +# Load "glx" + Load "record" + Load "freetype" + Load "type1" +EndSection + +Section "InputDevice" + Identifier "Keyboard0" + Driver "keyboard" + Option "XkbModel" "pc105" + Option "XkbLayout" "us" +EndSection + +Section "InputDevice" + Identifier "Mouse0" + Driver "mouse" + Option "Protocol" "PS/2" + Option "Device" "/dev/psaux" + Option "ZAxisMapping" "4 5" + Option "Emulate3Buttons" "yes" +EndSection + +Section "Monitor" + Identifier "Monitor0" + VendorName "Monitor Vendor" + ModelName "OWRT" + Option "dpms" +EndSection + +Section "Device" + Identifier "FBDev" + Driver "fbdev" + #Option "shadowfb" "off" + VideoRam 4096 +EndSection + +Section "Screen" + Identifier "Screen0" + Device "FBDev" + Monitor "Monitor0" + DefaultDepth 16 + + SubSection "Display" + Depth 16 + Modes "1200x900-75" + EndSubsection + +EndSection + +Section "DRI" + Group 0 + Mode 0666 +EndSection + diff --git a/target/linux/x86/olpc/base-files/etc/X11/xorg.conf b/target/linux/x86/olpc/base-files/etc/X11/xorg.conf new file mode 100644 index 0000000..d98a8f8 --- /dev/null +++ b/target/linux/x86/olpc/base-files/etc/X11/xorg.conf @@ -0,0 +1,71 @@ +# xorg configuration + +Section "ServerLayout" + Identifier "Default Layout" + Screen 0 "Screen0" 0 0 + InputDevice "Mouse0" "CorePointer" + InputDevice "Keyboard0" "CoreKeyboard" +EndSection + +Section "Files" + FontPath "/usr/lib/X11/fonts/misc" +EndSection + +Section "Module" + Load "dbe" + Load "extmod" + Load "fbdevhw" +# Load "glx" + Load "record" + Load "freetype" + Load "type1" +EndSection + +Section "InputDevice" + Identifier "Keyboard0" + Driver "keyboard" + Option "XkbModel" "pc105" + Option "XkbLayout" "us" +EndSection + +Section "InputDevice" + Identifier "Mouse0" + Driver "mouse" + Option "Protocol" "PS/2" + Option "Device" "/dev/psaux" + Option "ZAxisMapping" "4 5" + Option "Emulate3Buttons" "yes" +EndSection + +Section "Monitor" + Identifier "Monitor0" + VendorName "Monitor Vendor" + ModelName "OWRT" + Option "dpms" +EndSection + +Section "Device" + Identifier "FBDev" + Driver "fbdev" + #Option "shadowfb" "off" + VideoRam 4096 +EndSection + +Section "Screen" + Identifier "Screen0" + Device "FBDev" + Monitor "Monitor0" + DefaultDepth 16 + + SubSection "Display" + Depth 16 + Modes "1200x900-75" + EndSubsection + +EndSection + +Section "DRI" + Group 0 + Mode 0666 +EndSection + diff --git a/target/linux/x86/olpc/base-files/etc/config/.svn/entries b/target/linux/x86/olpc/base-files/etc/config/.svn/entries new file mode 100644 index 0000000..149e28d --- /dev/null +++ b/target/linux/x86/olpc/base-files/etc/config/.svn/entries @@ -0,0 +1,62 @@ +10 + +dir +36060 +svn://svn.openwrt.org/openwrt/trunk/target/linux/x86/olpc/base-files/etc/config +svn://svn.openwrt.org/openwrt + + + +2007-12-15T19:59:21.194834Z +9768 +ryd + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +network +file + + + + +2013-03-17T12:12:36.000000Z +c2040a9000604943179c36f929a18963 +2007-12-15T19:59:21.194834Z +9768 +ryd + + + + + + + + + + + + + + + + + + + + + +267 + diff --git a/target/linux/x86/olpc/base-files/etc/config/.svn/text-base/network.svn-base b/target/linux/x86/olpc/base-files/etc/config/.svn/text-base/network.svn-base new file mode 100644 index 0000000..faa8f0e --- /dev/null +++ b/target/linux/x86/olpc/base-files/etc/config/.svn/text-base/network.svn-base @@ -0,0 +1,11 @@ +# Copyright (C) 2006 OpenWrt.org + +config interface loopback + option ifname lo + option proto static + option ipaddr 127.0.0.1 + option netmask 255.0.0.0 + +config interface wlan + option ifname eth0 + option proto dhcp diff --git a/target/linux/x86/olpc/base-files/etc/config/network b/target/linux/x86/olpc/base-files/etc/config/network new file mode 100644 index 0000000..faa8f0e --- /dev/null +++ b/target/linux/x86/olpc/base-files/etc/config/network @@ -0,0 +1,11 @@ +# Copyright (C) 2006 OpenWrt.org + +config interface loopback + option ifname lo + option proto static + option ipaddr 127.0.0.1 + option netmask 255.0.0.0 + +config interface wlan + option ifname eth0 + option proto dhcp diff --git a/target/linux/x86/olpc/base-files/lib/.svn/entries b/target/linux/x86/olpc/base-files/lib/.svn/entries new file mode 100644 index 0000000..4b609a3 --- /dev/null +++ b/target/linux/x86/olpc/base-files/lib/.svn/entries @@ -0,0 +1,34 @@ +10 + +dir +36060 +svn://svn.openwrt.org/openwrt/trunk/target/linux/x86/olpc/base-files/lib +svn://svn.openwrt.org/openwrt + + + +2012-12-19T16:07:46.450520Z +34792 +mirko + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +upgrade +dir + +preinit +dir + diff --git a/target/linux/x86/olpc/base-files/lib/preinit/.svn/entries b/target/linux/x86/olpc/base-files/lib/preinit/.svn/entries new file mode 100644 index 0000000..a2c9115 --- /dev/null +++ b/target/linux/x86/olpc/base-files/lib/preinit/.svn/entries @@ -0,0 +1,96 @@ +10 + +dir +36060 +svn://svn.openwrt.org/openwrt/trunk/target/linux/x86/olpc/base-files/lib/preinit +svn://svn.openwrt.org/openwrt + + + +2012-12-19T16:07:46.450520Z +34792 +mirko + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +45_failsafe_x86 +file + + + + +2013-03-17T12:12:36.000000Z +140a3ac18367041c393d8daf57fbb8ce +2010-02-01T00:33:34.941359Z +19479 +jow + + + + + + + + + + + + + + + + + + + + + +456 + +15_essential_fs_x86 +file + + + + +2013-03-17T12:12:36.000000Z +dc020e9f42fbfc2e89678bc6121701fd +2012-12-19T16:07:46.450520Z +34792 +mirko + + + + + + + + + + + + + + + + + + + + + +153 + diff --git a/target/linux/x86/olpc/base-files/lib/preinit/.svn/text-base/15_essential_fs_x86.svn-base b/target/linux/x86/olpc/base-files/lib/preinit/.svn/text-base/15_essential_fs_x86.svn-base new file mode 100644 index 0000000..e4a380f --- /dev/null +++ b/target/linux/x86/olpc/base-files/lib/preinit/.svn/text-base/15_essential_fs_x86.svn-base @@ -0,0 +1,7 @@ +#!/bin/sh +# Copyright (C) 2006-2010 OpenWrt.org +# Copyright (C) 2010 Vertical Communications + +do_mount_procfs() { + mount -o noatime -t proc none /proc +} diff --git a/target/linux/x86/olpc/base-files/lib/preinit/.svn/text-base/45_failsafe_x86.svn-base b/target/linux/x86/olpc/base-files/lib/preinit/.svn/text-base/45_failsafe_x86.svn-base new file mode 100644 index 0000000..dd7330d --- /dev/null +++ b/target/linux/x86/olpc/base-files/lib/preinit/.svn/text-base/45_failsafe_x86.svn-base @@ -0,0 +1,14 @@ +#!/bin/sh +# Copyright (C) 2006-2010 OpenWrt.org +# Copyright (C) 2010 Vertical Communications + +failsafe_wait() { + FAILSAFE= + grep -q 'failsafe=' /proc/cmdline && FAILSAFE=true && export FAILSAFE + if [ "$FAILSAFE" != "true" ]; then + preinit_net_echo "Please press button now to enter failsafe" + echo -n "Press " + fs_wait_for_key f 'to enter failsafe mode' $fs_failsafe_wait_timeout && FAILSAFE=true && export FAILSAFE + fi +} + diff --git a/target/linux/x86/olpc/base-files/lib/preinit/15_essential_fs_x86 b/target/linux/x86/olpc/base-files/lib/preinit/15_essential_fs_x86 new file mode 100644 index 0000000..e4a380f --- /dev/null +++ b/target/linux/x86/olpc/base-files/lib/preinit/15_essential_fs_x86 @@ -0,0 +1,7 @@ +#!/bin/sh +# Copyright (C) 2006-2010 OpenWrt.org +# Copyright (C) 2010 Vertical Communications + +do_mount_procfs() { + mount -o noatime -t proc none /proc +} diff --git a/target/linux/x86/olpc/base-files/lib/preinit/45_failsafe_x86 b/target/linux/x86/olpc/base-files/lib/preinit/45_failsafe_x86 new file mode 100644 index 0000000..dd7330d --- /dev/null +++ b/target/linux/x86/olpc/base-files/lib/preinit/45_failsafe_x86 @@ -0,0 +1,14 @@ +#!/bin/sh +# Copyright (C) 2006-2010 OpenWrt.org +# Copyright (C) 2010 Vertical Communications + +failsafe_wait() { + FAILSAFE= + grep -q 'failsafe=' /proc/cmdline && FAILSAFE=true && export FAILSAFE + if [ "$FAILSAFE" != "true" ]; then + preinit_net_echo "Please press button now to enter failsafe" + echo -n "Press " + fs_wait_for_key f 'to enter failsafe mode' $fs_failsafe_wait_timeout && FAILSAFE=true && export FAILSAFE + fi +} + diff --git a/target/linux/x86/olpc/base-files/lib/upgrade/.svn/entries b/target/linux/x86/olpc/base-files/lib/upgrade/.svn/entries new file mode 100644 index 0000000..c00e749 --- /dev/null +++ b/target/linux/x86/olpc/base-files/lib/upgrade/.svn/entries @@ -0,0 +1,62 @@ +10 + +dir +36060 +svn://svn.openwrt.org/openwrt/trunk/target/linux/x86/olpc/base-files/lib/upgrade +svn://svn.openwrt.org/openwrt + + + +2007-10-28T21:20:48.722342Z +9457 +ryd + + + + + + + + + + + + + + +3c298f89-4303-0410-b956-a3cf2f4a3e73 + +platform.sh +file + + + + +2013-03-17T12:12:36.000000Z +c4e755af6dabe9fd271e599924967dc6 +2007-10-28T21:20:48.722342Z +9457 +ryd + + + + + + + + + + + + + + + + + + + + + +662 + diff --git a/target/linux/x86/olpc/base-files/lib/upgrade/.svn/text-base/platform.sh.svn-base b/target/linux/x86/olpc/base-files/lib/upgrade/.svn/text-base/platform.sh.svn-base new file mode 100644 index 0000000..ffd0b93 --- /dev/null +++ b/target/linux/x86/olpc/base-files/lib/upgrade/.svn/text-base/platform.sh.svn-base @@ -0,0 +1,27 @@ +platform_check_image() { + [ "$ARGC" -gt 1 ] && return 1 + + case "$(get_magic_word "$1")" in + 48eb) return 0;; + *) + echo "Invalid image type" + return 1 + ;; + esac +} + +platform_do_upgrade() { + get_image "$1" > /dev/hda + sync +} + +x86_prepare_ext2() { + # if we're running from ext2, we need to make sure that we have a mtd + # partition that points to the active rootfs partition. + # however this only matters if we actually need to preserve the config files + [ "$SAVE_CONFIG" -eq 1 ] && return 0 + grep rootfs /proc/mtd >/dev/null || { + echo /dev/hda2,65536,rootfs > /sys/module/block2mtd/parameters/block2mtd + } +} +append sysupgrade_pre_upgrade x86_prepare_ext2 diff --git a/target/linux/x86/olpc/base-files/lib/upgrade/platform.sh b/target/linux/x86/olpc/base-files/lib/upgrade/platform.sh new file mode 100644 index 0000000..ffd0b93 --- /dev/null +++ b/target/linux/x86/olpc/base-files/lib/upgrade/platform.sh @@ -0,0 +1,27 @@ +platform_check_image() { + [ "$ARGC" -gt 1 ] && return 1 + + case "$(get_magic_word "$1")" in + 48eb) return 0;; + *) + echo "Invalid image type" + return 1 + ;; + esac +} + +platform_do_upgrade() { + get_image "$1" > /dev/hda + sync +} + +x86_prepare_ext2() { + # if we're running from ext2, we need to make sure that we have a mtd + # partition that points to the active rootfs partition. + # however this only matters if we actually need to preserve the config files + [ "$SAVE_CONFIG" -eq 1 ] && return 0 + grep rootfs /proc/mtd >/dev/null || { + echo /dev/hda2,65536,rootfs > /sys/module/block2mtd/parameters/block2mtd + } +} +append sysupgrade_pre_upgrade x86_prepare_ext2 |