Date:2012-04-09 08:40:05 (8 years 1 month ago)
Author:Xiangfu
Commit:f74c593b03debf0960ad242eee9700acdbdf7461
Message:nanonote-files: cleanup the file structure. move data/qi_lb60/files to package root

Files: nanonote-files/Makefile (1 diff)
nanonote-files/data/qi_lb60/files/etc/asound.state (1 diff)
nanonote-files/data/qi_lb60/files/etc/config/network (1 diff)
nanonote-files/data/qi_lb60/files/etc/config/system (1 diff)
nanonote-files/data/qi_lb60/files/etc/directfbrc (1 diff)
nanonote-files/data/qi_lb60/files/etc/fw_env.config (1 diff)
nanonote-files/data/qi_lb60/files/etc/hosts (1 diff)
nanonote-files/data/qi_lb60/files/etc/init.d/ben-nanonote (1 diff)
nanonote-files/data/qi_lb60/files/etc/inittab (1 diff)
nanonote-files/data/qi_lb60/files/etc/inputrc (1 diff)
nanonote-files/data/qi_lb60/files/etc/opkg.conf (1 diff)
nanonote-files/data/qi_lb60/files/etc/profile (1 diff)
nanonote-files/data/qi_lb60/files/etc/triggerhappy/triggers.d/poweroff.conf (1 diff)
nanonote-files/data/qi_lb60/files/etc/uci-defaults/01-optimization-for-ben-nanonote (1 diff)
nanonote-files/files/etc/asound.state (1 diff)
nanonote-files/files/etc/config/network (1 diff)
nanonote-files/files/etc/config/system (1 diff)
nanonote-files/files/etc/directfbrc (1 diff)
nanonote-files/files/etc/fw_env.config (1 diff)
nanonote-files/files/etc/hosts (1 diff)
nanonote-files/files/etc/init.d/ben-nanonote (1 diff)
nanonote-files/files/etc/inittab (1 diff)
nanonote-files/files/etc/inputrc (1 diff)
nanonote-files/files/etc/opkg.conf (1 diff)
nanonote-files/files/etc/profile (1 diff)
nanonote-files/files/etc/triggerhappy/triggers.d/poweroff.conf (1 diff)
nanonote-files/files/etc/uci-defaults/01-optimization-for-ben-nanonote (1 diff)

Change Details

nanonote-files/Makefile
4545
4646define Package/nanonote-data-files/install
4747    $(INSTALL_DIR) $(1)/usr/share/nanonote/
48    $(INSTALL_DIR) $(1)/usr/share/nanonote/files/
49
50    $(CP) ./files/* $(1)/usr/share/nanonote/files/
4851    $(CP) ./data/qi_lb60/* $(1)/usr/share/nanonote/
4952endef
5053
nanonote-files/data/qi_lb60/files/etc/asound.state
1state.LB60 {
2    control.1 {
3        iface MIXER
4        name 'Master Playback Volume'
5        value 3
6        comment {
7            access 'read write'
8            type INTEGER
9            count 1
10            range '0 - 3'
11        }
12    }
13    control.2 {
14        iface MIXER
15        name 'Master Capture Volume'
16        value 31
17        comment {
18            access 'read write'
19            type INTEGER
20            count 1
21            range '0 - 31'
22        }
23    }
24    control.3 {
25        iface MIXER
26        name 'Master Playback Switch'
27        value true
28        comment {
29            access 'read write'
30            type BOOLEAN
31            count 1
32        }
33    }
34    control.4 {
35        iface MIXER
36        name 'Mic Capture Volume'
37        value 2
38        comment {
39            access 'read write'
40            type INTEGER
41            count 1
42            range '0 - 3'
43        }
44    }
45    control.5 {
46        iface MIXER
47        name 'Line Capture Switch'
48        value true
49        comment {
50            access 'read write'
51            type BOOLEAN
52            count 1
53        }
54    }
55    control.6 {
56        iface MIXER
57        name 'Mic Capture Switch'
58        value true
59        comment {
60            access 'read write'
61            type BOOLEAN
62            count 1
63        }
64    }
65    control.7 {
66        iface MIXER
67        name 'Output Mixer Bypass Switch'
68        value false
69        comment {
70            access 'read write'
71            type BOOLEAN
72            count 1
73        }
74    }
75    control.8 {
76        iface MIXER
77        name 'Output Mixer DAC Switch'
78        value true
79        comment {
80            access 'read write'
81            type BOOLEAN
82            count 1
83        }
84    }
85}
nanonote-files/data/qi_lb60/files/etc/config/network
1# Copyright (C) 2006 OpenWrt.org
2
3config interface loopback
4    option ifname lo
5    option proto static
6    option ipaddr 127.0.0.1
7    option netmask 255.0.0.0
8
9config interface lan
10    option ifname usb0
11    option proto static
12    option ipaddr 192.168.254.101
13    option netmask 255.255.255.0
14    option gateway 192.168.254.100
15    option dns "8.8.8.8 8.8.4.4"
16    option hostname BenNanoNote
nanonote-files/data/qi_lb60/files/etc/config/system
1config system
2    option hostname BenNanoNote
3    option timezone UTC
nanonote-files/data/qi_lb60/files/etc/directfbrc
1no-deinit-check
2
3mode=320x240
4
5# log-file=/root/.directfb.log
6# no-cursor
7# debug
nanonote-files/data/qi_lb60/files/etc/fw_env.config
1# Configuration file for fw_(printenv/saveenv) utility.
2# Up to two entries are valid, in this case the redundant
3# environment sector is assumed present.
4# Notice, that the "Number of sectors" is ignored on NOR.
5
6# MTD device name Device offset Env. size Flash sector size Number of sectors
7/dev/mtd0 0x100000 0x1000 0x80000
8/dev/mtd0 0x180000 0x1000 0x80000
9
10# NAND example
11#/dev/mtd0 0x4000 0x4000 0x20000 2
nanonote-files/data/qi_lb60/files/etc/hosts
1127.0.0.1 BenNanoNote localhost
nanonote-files/data/qi_lb60/files/etc/init.d/ben-nanonote
1#!/bin/sh /etc/rc.common
2
3START=01
4STOP=01
5
6start() {
7    /usr/bin/poke 0x10003024 0
8    /usr/sbin/alsactl restore -f /etc/asound.state
9    return 0
10}
11
12stop() {
13    /usr/sbin/alsactl store -f /etc/asound.state
14    killall gmenu2x.bin
15    return 0
16}
nanonote-files/data/qi_lb60/files/etc/inittab
1::sysinit:/etc/init.d/rcS S boot
2::shutdown:/etc/init.d/rcS K stop
3tts/0::askfirst:/bin/ash --login
4ttyS0::askfirst:/bin/ash --login
5tty1::respawn:/usr/bin/gmenu2x
6tty2::askfirst:/bin/ash --login
7tty3::askfirst:/bin/ash --login
8tty4::askfirst:/bin/ash --login
nanonote-files/data/qi_lb60/files/etc/inputrc
1# 8Bits supports.
2set meta-flag on
3set convert-meta off
4set input-meta on
5set output-meta on
nanonote-files/data/qi_lb60/files/etc/opkg.conf
1src/gz snapshots http://downloads.qi-hardware.com/software/packages/NanoNote/Ben/latest
2dest root /
3dest ram /usr/share/opkg/tmp
4lists_dir ext /usr/share/opkg
5option overlay_root /overlay
nanonote-files/data/qi_lb60/files/etc/profile
1#!/bin/sh
2
3export PATH=/bin:/sbin:/usr/bin:/usr/sbin
4export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6)
5export HOME=${HOME:-/root}
6export PS1='\u@\h:\w\$ '
7
8# NanoNote specific global settings
9## SDL
10### we do not have any mouse
11export SDL_NOMOUSE=1
12### do use fb-device directly
13export SDL_VIDEODRIVER=fbcon
14## QT4
15### set keyboard device
16export QWS_KEYBOARD=LinuxInput:/dev/input/event0:keymap=/usr/share/qmaps/ben.qmap
17### do use fb-device directly
18export QWS_DISPLAY=linuxfb
19
20export HISTFILE=$HOME/.ash_history
21export TERM=linux
22
23[ -e /dev/rtc0 ] && ! [ -e /dev/rtc ] && ln -s /dev/rtc0 /dev/rtc
24
25[ -x /bin/more ] || alias more=less
26[ -x /usr/bin/vim ] && alias vi=vim || alias vim=vi
27
28[ -z "$KSH_VERSION" -o \! -s /etc/mkshrc ] || . /etc/mkshrc
29
30[ -x /sbin/arp ] || arp() { cat /proc/net/arp; }
31[ -x /usr/bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }
nanonote-files/data/qi_lb60/files/etc/triggerhappy/triggers.d/poweroff.conf
1# This is an example configuration for the triggerhappy daemon (thd)
2# please note that every file to be processed must end in ".conf"
3#
4# To view a list of supported event codes, use "thd --listevents" or
5# "thd --dump /dev/input/event*"
6#
7# Format:
8# <eventcode> <value> <command>
9#
10# values for key events are 1 (pressed), 0 (released) or 2 (held)
11#
12## control an mpd instance
13KEY_POWER 1 /sbin/poweroff
nanonote-files/data/qi_lb60/files/etc/uci-defaults/01-optimization-for-ben-nanonote
1#!/bin/sh
2
3# no need in NanoNote
4/etc/init.d/atd disable
5/etc/init.d/led disable
6/etc/init.d/telnet disable
7
8# write default u-boot env to nand
9/usr/bin/mtd.nn fw_setenv_default
10
11# generate fontconfig cache
12/usr/bin/fc-cache
13
14exit 0
nanonote-files/files/etc/asound.state
1state.LB60 {
2    control.1 {
3        iface MIXER
4        name 'Master Playback Volume'
5        value 3
6        comment {
7            access 'read write'
8            type INTEGER
9            count 1
10            range '0 - 3'
11        }
12    }
13    control.2 {
14        iface MIXER
15        name 'Master Capture Volume'
16        value 31
17        comment {
18            access 'read write'
19            type INTEGER
20            count 1
21            range '0 - 31'
22        }
23    }
24    control.3 {
25        iface MIXER
26        name 'Master Playback Switch'
27        value true
28        comment {
29            access 'read write'
30            type BOOLEAN
31            count 1
32        }
33    }
34    control.4 {
35        iface MIXER
36        name 'Mic Capture Volume'
37        value 2
38        comment {
39            access 'read write'
40            type INTEGER
41            count 1
42            range '0 - 3'
43        }
44    }
45    control.5 {
46        iface MIXER
47        name 'Line Capture Switch'
48        value true
49        comment {
50            access 'read write'
51            type BOOLEAN
52            count 1
53        }
54    }
55    control.6 {
56        iface MIXER
57        name 'Mic Capture Switch'
58        value true
59        comment {
60            access 'read write'
61            type BOOLEAN
62            count 1
63        }
64    }
65    control.7 {
66        iface MIXER
67        name 'Output Mixer Bypass Switch'
68        value false
69        comment {
70            access 'read write'
71            type BOOLEAN
72            count 1
73        }
74    }
75    control.8 {
76        iface MIXER
77        name 'Output Mixer DAC Switch'
78        value true
79        comment {
80            access 'read write'
81            type BOOLEAN
82            count 1
83        }
84    }
85}
nanonote-files/files/etc/config/network
1# Copyright (C) 2006 OpenWrt.org
2
3config interface loopback
4    option ifname lo
5    option proto static
6    option ipaddr 127.0.0.1
7    option netmask 255.0.0.0
8
9config interface lan
10    option ifname usb0
11    option proto static
12    option ipaddr 192.168.254.101
13    option netmask 255.255.255.0
14    option gateway 192.168.254.100
15    option dns "8.8.8.8 8.8.4.4"
16    option hostname BenNanoNote
nanonote-files/files/etc/config/system
1config system
2    option hostname BenNanoNote
3    option timezone UTC
nanonote-files/files/etc/directfbrc
1no-deinit-check
2
3mode=320x240
4
5# log-file=/root/.directfb.log
6# no-cursor
7# debug
nanonote-files/files/etc/fw_env.config
1# Configuration file for fw_(printenv/saveenv) utility.
2# Up to two entries are valid, in this case the redundant
3# environment sector is assumed present.
4# Notice, that the "Number of sectors" is ignored on NOR.
5
6# MTD device name Device offset Env. size Flash sector size Number of sectors
7/dev/mtd0 0x100000 0x1000 0x80000
8/dev/mtd0 0x180000 0x1000 0x80000
9
10# NAND example
11#/dev/mtd0 0x4000 0x4000 0x20000 2
nanonote-files/files/etc/hosts
1127.0.0.1 BenNanoNote localhost
nanonote-files/files/etc/init.d/ben-nanonote
1#!/bin/sh /etc/rc.common
2
3START=01
4STOP=01
5
6start() {
7    /usr/bin/poke 0x10003024 0
8    /usr/sbin/alsactl restore -f /etc/asound.state
9    return 0
10}
11
12stop() {
13    /usr/sbin/alsactl store -f /etc/asound.state
14    killall gmenu2x.bin
15    return 0
16}
nanonote-files/files/etc/inittab
1::sysinit:/etc/init.d/rcS S boot
2::shutdown:/etc/init.d/rcS K stop
3tts/0::askfirst:/bin/ash --login
4ttyS0::askfirst:/bin/ash --login
5tty1::respawn:/usr/bin/gmenu2x
6tty2::askfirst:/bin/ash --login
7tty3::askfirst:/bin/ash --login
8tty4::askfirst:/bin/ash --login
nanonote-files/files/etc/inputrc
1# 8Bits supports.
2set meta-flag on
3set convert-meta off
4set input-meta on
5set output-meta on
nanonote-files/files/etc/opkg.conf
1src/gz snapshots http://downloads.qi-hardware.com/software/packages/NanoNote/Ben/latest
2dest root /
3dest ram /usr/share/opkg/tmp
4lists_dir ext /usr/share/opkg
5option overlay_root /overlay
nanonote-files/files/etc/profile
1#!/bin/sh
2
3export PATH=/bin:/sbin:/usr/bin:/usr/sbin
4export HOME=$(grep -e "^${USER:-root}:" /etc/passwd | cut -d ":" -f 6)
5export HOME=${HOME:-/root}
6export PS1='\u@\h:\w\$ '
7
8# NanoNote specific global settings
9## SDL
10### we do not have any mouse
11export SDL_NOMOUSE=1
12### do use fb-device directly
13export SDL_VIDEODRIVER=fbcon
14## QT4
15### set keyboard device
16export QWS_KEYBOARD=LinuxInput:/dev/input/event0:keymap=/usr/share/qmaps/ben.qmap
17### do use fb-device directly
18export QWS_DISPLAY=linuxfb
19
20export HISTFILE=$HOME/.ash_history
21export TERM=linux
22
23[ -e /dev/rtc0 ] && ! [ -e /dev/rtc ] && ln -s /dev/rtc0 /dev/rtc
24
25[ -x /bin/more ] || alias more=less
26[ -x /usr/bin/vim ] && alias vi=vim || alias vim=vi
27
28[ -z "$KSH_VERSION" -o \! -s /etc/mkshrc ] || . /etc/mkshrc
29
30[ -x /sbin/arp ] || arp() { cat /proc/net/arp; }
31[ -x /usr/bin/ldd ] || ldd() { LD_TRACE_LOADED_OBJECTS=1 $*; }
nanonote-files/files/etc/triggerhappy/triggers.d/poweroff.conf
1# This is an example configuration for the triggerhappy daemon (thd)
2# please note that every file to be processed must end in ".conf"
3#
4# To view a list of supported event codes, use "thd --listevents" or
5# "thd --dump /dev/input/event*"
6#
7# Format:
8# <eventcode> <value> <command>
9#
10# values for key events are 1 (pressed), 0 (released) or 2 (held)
11#
12## control an mpd instance
13KEY_POWER 1 /sbin/poweroff
nanonote-files/files/etc/uci-defaults/01-optimization-for-ben-nanonote
1#!/bin/sh
2
3# no need in NanoNote
4/etc/init.d/atd disable
5/etc/init.d/led disable
6/etc/init.d/telnet disable
7
8# write default u-boot env to nand
9/usr/bin/mtd.nn fw_setenv_default
10
11# generate fontconfig cache
12/usr/bin/fc-cache
13
14exit 0

Archive Download the corresponding diff file



interactive