Update default configuration to use profiles
SVN-Revision: 15229
This commit is contained in:
		| @@ -15,7 +15,7 @@ DEVICE_TYPE?=router | |||||||
| DEFAULT_PACKAGES:=base-files libc libgcc busybox dropbear mtd uci opkg | DEFAULT_PACKAGES:=base-files libc libgcc busybox dropbear mtd uci opkg | ||||||
| # For router targets | # For router targets | ||||||
| DEFAULT_PACKAGES.router:=dnsmasq iptables ppp ppp-mod-pppoe kmod-ipt-nathelper firewall | DEFAULT_PACKAGES.router:=dnsmasq iptables ppp ppp-mod-pppoe kmod-ipt-nathelper firewall | ||||||
| DEFAULT_PACKAGES.bootloader:=kexec-tools | DEFAULT_PACKAGES.bootloader:= | ||||||
|  |  | ||||||
| # Additional packages for Linux 2.6 | # Additional packages for Linux 2.6 | ||||||
| ifneq ($(KERNEL),2.4) | ifneq ($(KERNEL),2.4) | ||||||
|   | |||||||
| @@ -12,8 +12,6 @@ BOARDNAME:=Sony PS3 Game Console | |||||||
| MAINTAINER:=Geoff Levand <geoffrey.levand@am.sony.com> | MAINTAINER:=Geoff Levand <geoffrey.levand@am.sony.com> | ||||||
| SUBTARGETS=petitboot | SUBTARGETS=petitboot | ||||||
|  |  | ||||||
| DEVICE_TYPE=bootloader |  | ||||||
|  |  | ||||||
| LINUX_VERSION:=2.6.28.9 | LINUX_VERSION:=2.6.28.9 | ||||||
|  |  | ||||||
| KERNEL_CC:= | KERNEL_CC:= | ||||||
|   | |||||||
| @@ -169,9 +169,12 @@ CONFIG_INITRAMFS_SOURCE="/home/geoff/projects/cell/bootloader/openwrt-feeds/buil | |||||||
| CONFIG_INOTIFY=y | CONFIG_INOTIFY=y | ||||||
| CONFIG_INOTIFY_USER=y | CONFIG_INOTIFY_USER=y | ||||||
| CONFIG_INPUT=y | CONFIG_INPUT=y | ||||||
|  | CONFIG_INPUT_EVBUG=m | ||||||
|  | CONFIG_INPUT_EVDEV=m | ||||||
|  | CONFIG_INPUT_JOYDEV=m | ||||||
| CONFIG_INPUT_JOYSTICK=y | CONFIG_INPUT_JOYSTICK=y | ||||||
| CONFIG_INPUT_MOUSEDEV=y | CONFIG_INPUT_MOUSEDEV=y | ||||||
| # CONFIG_INPUT_MOUSEDEV_PSAUX is not set | CONFIG_INPUT_MOUSEDEV_PSAUX=y | ||||||
| CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024 | ||||||
| CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768 | ||||||
| CONFIG_IOMMU_HELPER=y | CONFIG_IOMMU_HELPER=y | ||||||
| @@ -337,7 +340,8 @@ CONFIG_SUNRPC=y | |||||||
| CONFIG_SUNRPC_GSS=y | CONFIG_SUNRPC_GSS=y | ||||||
| # CONFIG_SYN_COOKIES is not set | # CONFIG_SYN_COOKIES is not set | ||||||
| # CONFIG_SYSCTL_SYSCALL_CHECK is not set | # CONFIG_SYSCTL_SYSCALL_CHECK is not set | ||||||
| # CONFIG_SYSVIPC is not set | CONFIG_SYSVIPC_COMPAT=y | ||||||
|  | CONFIG_SYSVIPC_SYSCTL=y | ||||||
| # CONFIG_TCP_CONG_ADVANCED is not set | # CONFIG_TCP_CONG_ADVANCED is not set | ||||||
| CONFIG_TCP_CONG_CUBIC=y | CONFIG_TCP_CONG_CUBIC=y | ||||||
| CONFIG_TINY_SHMEM=y | CONFIG_TINY_SHMEM=y | ||||||
|   | |||||||
							
								
								
									
										13
									
								
								target/linux/ps3/petitboot/base-files/etc/config/network
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								target/linux/ps3/petitboot/base-files/etc/config/network
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,13 @@ | |||||||
|  | # 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 lan | ||||||
|  | 	option ifname	eth0 | ||||||
|  | 	option proto	dhcp | ||||||
|  | 	option ipaddr	192.168.1.1 | ||||||
|  | 	option netmask	255.255.255.0 | ||||||
| @@ -19,12 +19,13 @@ system_config() { | |||||||
|  |  | ||||||
| 	config_get log_ip "$cfg" log_ip | 	config_get log_ip "$cfg" log_ip | ||||||
| 	config_get log_size "$cfg" log_size | 	config_get log_size "$cfg" log_size | ||||||
|  | 	config_get log_port "$cfg" log_port | ||||||
| 	config_get log_file "$cfg" log_file | 	config_get log_file "$cfg" log_file | ||||||
| 	# use a shared mem buffer for local default |  | ||||||
| 	[ -z $log_file -a -z "$log_size" ] && log_size=16 | 	[ -z $log_file -a -z "$log_size" ] && log_size=16 | ||||||
| 	syslogd ${log_size:+-C $log_size} ${log_file:+-O $log_file} \ | 	[ -x /sbin/syslogd ] && syslogd ${log_size:+-C $log_size} \ | ||||||
| 		${log_ip:+-L -R $log_ip} | 		${log_file:+-O $log_file} ${log_ip:+-L -R $log_ip} | ||||||
| 	klogd | 	[ -x /sbin/klogd ] && klogd | ||||||
| } | } | ||||||
|  |  | ||||||
| apply_uci_config() {( | apply_uci_config() {( | ||||||
| @@ -37,16 +38,15 @@ start() { | |||||||
| 	[ -f /proc/jffs2_bbc ] && echo "S" > /proc/jffs2_bbc | 	[ -f /proc/jffs2_bbc ] && echo "S" > /proc/jffs2_bbc | ||||||
| 	[ -f /proc/net/vlan/config ] && vconfig set_name_type DEV_PLUS_VID_NO_PAD | 	[ -f /proc/net/vlan/config ] && vconfig set_name_type DEV_PLUS_VID_NO_PAD | ||||||
|  |  | ||||||
|  | 	apply_uci_config | ||||||
|  | 	config_load system | ||||||
|  | 	config_foreach system_config system | ||||||
|  |  | ||||||
| 	mkdir -p /var/run | 	mkdir -p /var/run | ||||||
| 	mkdir -p /var/log | 	mkdir -p /var/log | ||||||
| 	mkdir -p /var/lock | 	mkdir -p /var/lock | ||||||
| 	mkdir -p /var/state | 	mkdir -p /var/state | ||||||
| 	mkdir -p /tmp/.uci | 	mkdir -p /tmp/.uci | ||||||
|  |  | ||||||
| 	apply_uci_config |  | ||||||
| 	config_load system |  | ||||||
| 	config_foreach system_config system |  | ||||||
|  |  | ||||||
| 	chown 0700 /tmp/.uci | 	chown 0700 /tmp/.uci | ||||||
| 	touch /var/log/wtmp | 	touch /var/log/wtmp | ||||||
| 	touch /var/log/lastlog | 	touch /var/log/lastlog | ||||||
|   | |||||||
							
								
								
									
										11
									
								
								target/linux/ps3/petitboot/base-files/etc/sysctl.conf
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								target/linux/ps3/petitboot/base-files/etc/sysctl.conf
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,11 @@ | |||||||
|  | kernel.panic=3 | ||||||
|  | net.ipv4.conf.default.arp_ignore=1 | ||||||
|  | net.ipv4.conf.all.arp_ignore=1 | ||||||
|  | net.ipv4.ip_forward=1 | ||||||
|  | net.ipv4.icmp_echo_ignore_broadcasts=1 | ||||||
|  | net.ipv4.icmp_ignore_bogus_error_responses=1 | ||||||
|  | net.ipv4.tcp_ecn=1  | ||||||
|  | net.ipv4.tcp_fin_timeout=30 | ||||||
|  | net.ipv4.tcp_keepalive_time=120 | ||||||
|  | net.ipv4.tcp_timestamps=0 | ||||||
|  | net.core.netdev_max_backlog=30 | ||||||
							
								
								
									
										19
									
								
								target/linux/ps3/petitboot/profiles/000-Default.mk
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										19
									
								
								target/linux/ps3/petitboot/profiles/000-Default.mk
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,19 @@ | |||||||
|  | # | ||||||
|  | # Copyright (C) 2009 OpenWrt.org | ||||||
|  | # | ||||||
|  | # This is free software, licensed under the GNU General Public License v2. | ||||||
|  | # See /LICENSE for more information. | ||||||
|  | # | ||||||
|  |  | ||||||
|  | define Profile/Default | ||||||
|  |   NAME:=Default PS3 Petitboot profile | ||||||
|  |   PACKAGES:=-dnsmasq -iptables -ppp -ppp-mod-pppoe -kmod-ipt-nathelper \ | ||||||
|  | 	    -firewall \ | ||||||
|  | 	    kexec-tools petitboot | ||||||
|  | endef | ||||||
|  |  | ||||||
|  | define Profile/Default/Description | ||||||
|  |         Default PS3 Petitboot profile | ||||||
|  | endef | ||||||
|  | $(eval $(call Profile,Default)) | ||||||
|  |  | ||||||
| @@ -1,8 +1,6 @@ | |||||||
| BOARDNAME:=Petitboot | BOARDNAME:=Petitboot | ||||||
| FEATURES:=fpu ramdisk | FEATURES:=fpu ramdisk | ||||||
|  |  | ||||||
| DEFAULT_PACKAGES+= dnsmasq petitboot |  | ||||||
|  |  | ||||||
| define Target/Description | define Target/Description | ||||||
| 	Build Petitboot bootloader | 	Build Petitboot bootloader | ||||||
| endef | endef | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Hamish Guthrie
					Hamish Guthrie