aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/kirkwood/patches-5.15/112-sheevaplug.patch
blob: d1ff9884a068f191707ef3b4a534a0783c987d04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--- a/arch/arm/boot/dts/kirkwood-sheevaplug-common.dtsi
+++ b/arch/arm/boot/dts/kirkwood-sheevaplug-common.dtsi
@@ -78,13 +78,8 @@
 	};
 
 	partition@100000 {
-		label = "uImage";
-		reg = <0x0100000 0x400000>;
-	};
-
-	partition@500000 {
-		label = "root";
-		reg = <0x0500000 0x1fb00000>;
+		label = "ubi";
+		reg = <0x0100000 0x1ff00000>;
 	};
 };
 
--- a/arch/arm/boot/dts/kirkwood-sheevaplug.dts
+++ b/arch/arm/boot/dts/kirkwood-sheevaplug.dts
@@ -13,6 +13,13 @@
 	model = "Globalscale Technologies SheevaPlug";
 	compatible = "globalscale,sheevaplug", "marvell,kirkwood-88f6281", "marvell,kirkwood";
 
+	aliases {
+		led-boot = &led_health;
+		led-failsafe = &led_health;
+		led-running = &led_health;
+		led-upgrade = &led_health;
+	};
+
 	ocp@f1000000 {
 		mvsdio@90000 {
 			pinctrl-0 = <&pmx_sdio>;
@@ -28,10 +35,10 @@
 		pinctrl-0 = <&pmx_led_blue &pmx_led_red>;
 		pinctrl-names = "default";
 
-		health {
+		led_health: health {
 			label = "sheevaplug:blue:health";
 			gpios = <&gpio1 17 GPIO_ACTIVE_LOW>;
-			default-state = "keep";
+			default-state = "on";
 		};
 
 		misc {
labels are used right now) # * # * 'setlabel vmconfig-file security-label map-file' inserts the 'ssidref' # * that corresponds to the security-label under the # * current policy (if policy changes, 'label' # * must be re-run over the configuration files; # * map-file is created during policy translation and # * is found in the policy's directory # if [ -z "$runbash" ]; then runbash="1" export runbash exec sh -c "bash $0 $*" fi export PATH=$PATH:. dir=`dirname $0` source $dir/labelfuncs.sh usage () { prg=`basename $0` echo "Use this tool to put the ssidref corresponding to a label of a policy into the VM configuration file, or use it to display all labels of a policy. Usage: $prg [-r] <vmfile> <label> [<policy name> [<policy dir>]] or $prg -l [<policy name> [<policy dir>]] -r : to relabel a file without being prompted -l : to show the valid labels in a map file vmfile : XEN vm configuration file; give complete path label : the label to map to an ssidref policy name : the name of the policy, i.e. 'chwall' If the policy name is omitted, it is attempted to find the current policy's name in grub.conf. policy dir : the directory where the <policy name> policy is located The default location is '/etc/xen/acm-security/policies' " } if [ "$1" == "-r" ]; then mode="relabel" shift elif [ "$1" == "-l" ]; then mode="show" shift elif [ "$1" == "-h" ]; then mode="usage" fi if [ "$mode" == "usage" ]; then usage elif [ "$mode" == "show" ]; then setPolicyVars $1 $2 ret=$? if [ $ret -eq 0 ]; then echo "Error when trying to find policy-related information." exit -1 fi findMapFile $policy $policydir ret=$? if [ $ret -eq 0 ]; then echo "Could not find map file for policy '$policy'." exit -1 fi showLabels $mapfile else if [ "$2" == "" ]; then usage exit -1 fi setPolicyVars $3 $4 ret=$? if [ $ret -eq 0 ]; then echo "Error when trying to find policy-related information." exit -1 fi findMapFile $policy $policydir ret=$? if [ $ret -eq 0 ]; then echo "Could not find map file for policy '$policy'." exit -1 fi relabel $1 $2 $mapfile $mode fi